Fix a memory exhaustion bug when attempting to allocate room for an impossible number...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
95b1f9ac
PW
12018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2
3 * source.c (forward_search_command): Fix leak by using
4 xrealloc even for the first allocation in the loop, as buf
5 is static.
6
e61667ef
RS
72018-11-29 Rajendra SY <rajendra.sy@gmail.com>
8
9 PR gdb/23093
10 * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target)
11 (fbsd_gdb_signal_to_target): New.
12 (fbsd_init_abi): Install gdbarch "signal_from_target" and
13 "signal_to_target" methods.
14
3d5500e9
TT
152018-11-29 Tom Tromey <tom@tromey.com>
16
17 * valarith.c (value_x_unop): Don't set argvec[3].
18
ed2df75c
SM
192018-11-26 Simon Marchi <simon.marchi@ericsson.com>
20
21 PR gdb/23917
22 * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
23 semicolon.
24
24bce9bb
PA
252018-11-26 Pedro Alves <palves@redhat.com>
26
27 * procfs.c (procfs_notice_thread): Replace uses of
28 in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
29 * sol-thread.c (sol_thread_target::wait)
30 (sol_update_thread_list_callback): Likewise.
31
b5b12e1d
TT
322018-11-25 Tom Tromey <tom@tromey.com>
33
34 * ui-out.c (ui_out::field_fmt): Remove comment.
35 * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
36 * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
37
54460946
PW
382018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
39
40 * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
41 leak in open_source_file' has been partially undone by '2179fbc36d23
42 Return scoped_fd from open_source_file'. Re-add the transfer of
43 current s->fullname to the unique_xmalloc_ptr fullname given
44 to find_and_open_source.
45
6af05e64
PA
462018-11-23 Pedro Alves <palves@redhat.com>
47
48 * gdbthread.h (enum thread_state): Move comments here.
49 (is_running, is_stopped, is_exited): Remove declarations.
50
08036331
PA
512018-11-22 Pedro Alves <palves@redhat.com>
52
53 * Makefile.in (COMMON_SFILES): Add thread-iter.c.
54 * breakpoint.c (breakpoints_should_be_inserted_now): Replace
55 ALL_NON_EXITED_THREADS with all_non_exited_threads.
56 (print_one_breakpoint_location): Replace ALL_INFERIORS with
57 all_inferiors.
58 * bsd-kvm.c: Include inferior.h.
59 * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
60 with all_non_exited_threads.
61 * common/filtered-iterator.h: New.
62 * common/safe-iterator.h: New.
63 * corelow.c (core_target_open): Don't call init_thread_list here.
64 * darwin-nat.c (thread_info_from_private_thread_info): Replace
65 ALL_THREADS with all_threads.
66 * fbsd-nat.c (fbsd_nat_target::resume): Replace
67 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
68 * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
69 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
70 * fork-child.c (postfork_hook): Don't call init_thread_list here.
71 * gdbarch-selftests.c (register_to_value_test): Adjust.
72 * gdbthread.h: Don't include "inferior.h" here.
73 (struct inferior): Forward declare.
74 (enum step_over_calls_kind): Moved here from inferior.h.
75 (thread_info::deletable): Definition moved to thread.c.
76 (find_thread_ptid (inferior *, ptid_t)): Declare.
77 (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
78 Include "thread-iter.h".
79 (all_threads, all_non_exited_threads, all_threads_safe): New.
80 (any_thread_p): Declare.
81 (thread_list): Delete.
82 * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
83 all_non_exited_threads.
84 (proceed_after_attach_callback): Delete.
85 (proceed_after_attach): Take an inferior pointer instead of an
86 integer PID. Adjust to use range-for.
87 (attach_post_wait): Pass down inferior pointer instead of pid.
88 Use range-for instead of ALL_NON_EXITED_THREADS.
89 (detach_command): Remove init_thread_list call.
90 * inferior-iter.h: New.
91 * inferior.c (struct delete_thread_of_inferior_arg): Delete.
92 (delete_thread_of_inferior): Delete.
93 (delete_inferior, exit_inferior_1): Use range-for with
94 inf->threads_safe() instead of iterate_over_threads.
95 (inferior_appeared): Call init_thread_list here.
96 (discard_all_inferiors): Use all_non_exited_inferiors.
97 (find_inferior_id, find_inferior_pid): Use all_inferiors.
98 (iterate_over_inferiors): Use all_inferiors_safe.
99 (have_inferiors, number_of_live_inferiors): Use
100 all_non_exited_inferiors.
101 (number_of_inferiors): Use all_inferiors and std::distance.
102 (print_inferior): Use all_inferiors.
103 * inferior.h: Include gdbthread.h.
104 (enum step_over_calls_kind): Moved to gdbthread.h.
105 (struct inferior) <thread_list>: New field.
106 <threads, non_exited_threads, threads_safe>: New methods.
107 (ALL_INFERIORS): Delete.
108 Include "inferior-iter.h".
109 (ALL_NON_EXITED_INFERIORS): Delete.
110 (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
111 functions.
112 * inflow.c (child_interrupt, child_pass_ctrlc): Replace
113 ALL_NON_EXITED_THREADS with all_non_exited_threads.
114 * infrun.c (follow_exec): Use all_threads_safe.
115 (clear_proceed_status, proceed): Use all_non_exited_threads.
116 (init_wait_for_inferior): Don't clear inline frame state here.
117 (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
118 all_threads instead of ALL_NON_EXITED_THREADS.
119 (random_pending_event_thread): Use all_non_exited_threads instead
120 of ALL_NON_EXITED_THREADS. Use a lambda for repeated code.
121 (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
122 instead of ALL_NON_EXITED_THREADS.
123 (handle_no_resumed): Use all_non_exited_threads instead of
124 ALL_NON_EXITED_THREADS. Use all_inferiors instead of
125 ALL_INFERIORS.
126 (restart_threads, switch_back_to_stepped_thread): Use
127 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
128 * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
129 all_inferiors.
130 (kill_unfollowed_fork_children): Use inf->non_exited_threads
131 instead of ALL_NON_EXITED_THREADS.
132 * linux-tdep.c (linux_make_corefile_notes): Use
133 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
134 * linux-thread-db.c (thread_db_target::update_thread_list):
135 Replace ALL_INFERIORS with all_inferiors.
136 (thread_db_target::thread_handle_to_thread_info): Use
137 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
138 * mi/mi-interp.c (multiple_inferiors_p): New.
139 (mi_on_resume_1): Simplify using all_non_exited_threads and
140 multiple_inferiors_p.
141 * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
142 instead of ALL_NON_EXITED_THREADS.
143 * nto-procfs.c (nto_procfs_target::open): Don't call
144 init_thread_list here.
145 * record-btrace.c (record_btrace_target_open)
146 (record_btrace_target::stop_recording)
147 (record_btrace_target::close)
148 (record_btrace_target::record_is_replaying)
149 (record_btrace_target::resume, record_btrace_target::wait)
150 (record_btrace_target::record_stop_replaying): Use
151 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
152 * record-full.c (record_full_wait_1): Use all_non_exited_threads
153 instead of ALL_NON_EXITED_THREADS.
154 * regcache.c (cooked_read_test): Remove reference to global
155 thread_list.
156 * remote-sim.c (gdbsim_target::create_inferior): Don't call
157 init_thread_list here.
158 * remote.c (remote_target::update_thread_list): Use
159 all_threads_safe instead of ALL_NON_EXITED_THREADS.
160 (remote_target::process_initial_stop_replies): Replace
161 ALL_INFERIORS with all_non_exited_inferiors and use
162 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
163 (remote_target::open_1): Don't call init_thread_list here.
164 (remote_target::append_pending_thread_resumptions)
165 (remote_target::remote_resume_with_hc): Use all_non_exited_threads
166 instead of ALL_NON_EXITED_THREADS.
167 (remote_target::commit_resume)
168 (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
169 with all_non_exited_inferiors and use all_non_exited_threads
170 instead of ALL_NON_EXITED_THREADS.
171 (remote_target::kill_new_fork_children): Use
172 all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove
173 init_thread_list and init_wait_for_inferior calls.
174 (remote_target::remote_btrace_maybe_reopen)
175 (remote_target::thread_handle_to_thread_info): Use
176 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
177 * target.c (target_terminal::restore_inferior)
178 (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
179 all_non_exited_inferiors.
180 * thread-iter.c: New file.
181 * thread-iter.h: New file.
182 * thread.c: Include "inline-frame.h".
183 (thread_list): Delete.
184 (clear_thread_inferior_resources): Call clear_inline_frame_state.
185 (init_thread_list): Use all_threads_safe instead of
186 ALL_THREADS_SAFE. Adjust to per-inferior thread lists.
187 (new_thread): Adjust to per-inferior thread lists.
188 (add_thread_silent): Pass inferior to find_thread_ptid.
189 (thread_info::deletable): New, moved from the header.
190 (delete_thread_1): Adjust to per-inferior thread lists.
191 (find_thread_global_id): Use inf->threads().
192 (find_thread_ptid): Use find_inferior_ptid and pass inferior to
193 find_thread_ptid.
194 (find_thread_ptid(inferior*, ptid_t)): New overload.
195 (iterate_over_threads): Use all_threads_safe.
196 (any_thread_p): New.
197 (thread_count): Use all_threads and std::distance.
198 (live_threads_count): Use all_non_exited_threads and
199 std::distance.
200 (valid_global_thread_id): Use all_threads.
201 (in_thread_list): Use find_thread_ptid.
202 (first_thread_of_inferior): Adjust to per-inferior thread lists.
203 (any_thread_of_inferior, any_live_thread_of_inferior): Use
204 inf->non_exited_threads().
205 (prune_threads, delete_exited_threads): Use all_threads_safe.
206 (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
207 (set_resumed, set_running): Use all_non_exited_threads.
208 (is_thread_state, is_stopped, is_exited, is_running)
209 (is_executing): Delete.
210 (set_executing, set_stop_requested, finish_thread_state): Use
211 all_non_exited_threads.
212 (print_thread_info_1): Use all_inferiors and all_threads.
213 (thread_apply_all_command): Use all_non_exited_threads.
214 (thread_find_command): Use all_threads.
215 (update_threads_executing): Use all_non_exited_threads.
216 * tid-parse.c (parse_thread_id): Use inf->threads.
217 * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
218
c4c17fb0
PA
2192018-11-22 Pedro Alves <palves@redhat.com>
220
221 * infrun.c (follow_exec) <set follow-exec new>: Add thread and
222 switch to it before calling into try_open_exec_file.
223
151bb4a5
PA
2242018-11-22 Pedro Alves <palves@redhat.com>
225
226 * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
227 inferior_thread instead of find_thread_ptid, and only when
228 inferior_ptid is not null_ptid.
229 * inferior.c (add_inferior): Don't include target_pid_to_str
230 output when the inferior is not started.
231 * python/py-inferior.c (python_on_normal_stop): Don't use
232 find_thread_ptid.
233 (tui_on_user_selected_context_changed): Use inferior_thread
234 instead of find_thread_ptid, and only when inferior_ptid is not
235 null_ptid.
236
1c97054b
BF
2372018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
238
239 PR python/23714
240 * gdb/python/python.c (execute_gdb_command): Call
241 prevent_dont_repeat earlier to avoid affecting dont_repeat.
242
b5ffee31
AB
2432018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
246 (HFILES_NO_SRCDIR): Add arch/riscv.h.
247 * arch/riscv.c: New file.
248 * arch/riscv.h: New file.
249 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
250 this list, and add arch/riscv.o.
251 * features/Makefile: Add riscv features.
252 * features/riscv/32bit-cpu.c: New file.
253 * features/riscv/32bit-cpu.xml: New file.
254 * features/riscv/32bit-csr.c: New file.
255 * features/riscv/32bit-csr.xml: New file.
256 * features/riscv/32bit-fpu.c: New file.
257 * features/riscv/32bit-fpu.xml: New file.
258 * features/riscv/64bit-cpu.c: New file.
259 * features/riscv/64bit-cpu.xml: New file.
260 * features/riscv/64bit-csr.c: New file.
261 * features/riscv/64bit-csr.xml: New file.
262 * features/riscv/64bit-fpu.c: New file.
263 * features/riscv/64bit-fpu.xml: New file.
264 * features/riscv/rebuild-csr-xml.sh: New file.
265 * riscv-tdep.c: Add 'arch/riscv.h' include.
266 (riscv_gdb_reg_names): Delete.
267 (csr_reggroup): New global.
268 (struct riscv_register_alias): Delete.
269 (struct riscv_register_feature): New structure.
270 (riscv_register_aliases): Delete.
271 (riscv_xreg_feature): New global.
272 (riscv_freg_feature): New global.
273 (riscv_virtual_feature): New global.
274 (riscv_csr_feature): New global.
275 (riscv_create_csr_aliases): New function.
276 (riscv_read_misa_reg): Delete.
277 (riscv_has_feature): Delete.
278 (riscv_isa_xlen): Simplify, just return cached xlen.
279 (riscv_isa_flen): Simplify, just return cached flen.
280 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
281 (riscv_register_name): Update to make use of tdesc_register_name.
282 Look up xreg and freg names in the new globals riscv_xreg_feature
283 and riscv_freg_feature. Don't supply csr aliases here.
284 (riscv_fpreg_q_type): Delete.
285 (riscv_register_type): Use tdesc_register_type in almost all
286 cases, override the returned type in a few specific cases only.
287 (riscv_print_one_register_info): Handle errors reading registers.
288 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
289 registers that are otherwise unknown to GDB. Also check the
290 csr_reggroup.
291 (riscv_print_registers_info): Remove assert about upper register
292 number, and use gdbarch_register_reggroup_p instead of
293 short-cutting.
294 (riscv_find_default_target_description): New function.
295 (riscv_check_tdesc_feature): New function.
296 (riscv_add_reggroups): New function.
297 (riscv_setup_register_aliases): New function.
298 (riscv_init_reggroups): New function.
299 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
300 setup register groups. Register new riscv debug variable.
301 * riscv-tdep.h: Add 'arch/riscv.h' include.
302 (struct gdbarch_tdep): Remove abi union, and add
303 riscv_gdbarch_features field. Remove cached quad floating point
304 type, and provide initialisation for double type field.
305 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
306 the list of targets using the feature based target descriptions.
307 * NEWS: Mention target description support.
308
38139a96
PA
3092018-11-21 Pedro Alves <palves@redhat.com>
310
311 * valops.c (find_method_list, value_find_oload_method_list)
312 (find_overload_match, find_oload_champ): Rename parameters and
313 locals.
314
85cca2bc
PA
3152018-11-21 Pedro Alves <palves@redhat.com>
316
317 * valops.c (find_method_list): Replace pointer and length
318 parameters with an gdb::array_view. Adjust.
319 (value_find_oload_method_list): Likewise.
320 (find_overload_match): Use gdb::array_view for methods list.
321 Adjust to find_oload_champ interface change.
322 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
323 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
324
82ceee50
PA
3252018-11-21 Pedro Alves <palves@redhat.com>
326
327 * gdbtypes.c (compare_badness): Change type of parameters to const
328 reference. Adjust to badness_vector being a std::vector now.
329 (rank_function): Adjust to badness_vector being a std::vector now.
330 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
331 (LENGTH_MATCH): Delete.
332 (compare_badness): Change type of parameters to const reference.
333 (rank_function): Return a badness_vector by value now.
334 (find_overload_match): Adjust to badness_vector being a
335 std::vector now. Remove cleanups.
336 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
337 badness_vector pointer.
338 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
339 a badness_vector pointer. Adjust to badness_vector being a
340 std::vector now. Remove cleanups.
341 (find_oload_champ): 'oload_champ_bv' parameter now
342 a badness_vector pointer. Adjust to badness_vector being a
343 std::vector now. Remove cleanups.
344
0891c3cc
PA
3452018-11-21 Pedro Alves <palves@redhat.com>
346
347 * cp-support.c (sym_return_val_size, sym_return_val_index)
348 (sym_return_val): Delete.
349 (overload_list_add_symbol): Add std::vector parameter. Adjust to
350 add to the vector.
351 (make_symbol_overload_list): Adjust to return a std::vector
352 instead of maintaining a global open coded vector.
353 (make_symbol_overload_list_block): Add std::vector parameter.
354 (make_symbol_overload_list_block): Rename to ...
355 (add_symbol_overload_list_block): ... this and add std::vector
356 parameter.
357 (make_symbol_overload_list_namespace): Rename to ...
358 (add_symbol_overload_list_namespace): ... this and add std::vector
359 parameter.
360 (make_symbol_overload_list_adl_namespace): Rename to ...
361 (add_symbol_overload_list_adl_namespace): ... this and add
362 std::vector parameter.
363 (make_symbol_overload_list_adl): Delete.
364 (add_symbol_overload_list_adl): New.
365 (make_symbol_overload_list_using): Rename to ...
366 (add_symbol_overload_list_using): ... this and add std::vector
367 parameter.
368 (make_symbol_overload_list_qualified): Rename to ...
369 (add_symbol_overload_list_qualified): ... this and add std::vector
370 parameter.
371 * cp-support.h: Include "common/array-view.h" and <vector>.
372 (make_symbol_overload_list): Change return type to std::vector.
373 (make_symbol_overload_list_adl): Delete declaration.
374 (add_symbol_overload_list_adl): New declaration.
375 * valops.c (find_overload_match): Local 'oload_syms' now a
376 std::vector.
377 (find_oload_champ_namespace): 'oload_syms' parameter now a
378 std::vector pointer.
379 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
380 std::vector pointer. Adjust to new make_symbol_overload_list
381 interface.
382
6b1747cd
PA
3832018-11-21 Pedro Alves <palves@redhat.com>
384
385 * common/array-view.h (array_view::splice(size_type, size_t)): New.
386 (array_view::splice(size_type)): New.
387 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
388 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
389 std::vector.
390 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
391 * extension.h: Include "common/array-view.h".
392 (xmethod_worker::invoke): Adjust to use gdb::array_view.
393 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
394 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
395 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
396 (xmethod_worker::do_get_result_type): Adjust to use
397 gdb::array_view.
398 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
399 * gdbtypes.h: Include "common/array-view.h".
400 (rank_function): Adjust to use gdb::array_view.
401 * python/py-xmethods.c (python_xmethod_worker::invoke)
402 (python_xmethod_worker::do_get_arg_types)
403 (python_xmethod_worker::do_get_result_type)
404 (python_xmethod_worker::invoke): Adjust to new interfaces.
405 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
406 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
407 * valops.c (find_overload_match, find_oload_champ_namespace)
408 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
409 gdb:array_view and the new xmethod_worker interfaces.
410 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
411 gdb::array_view.
412 * value.h (find_overload_match, result_type_of_xmethod)
413 (call_xmethod): Adjust to use gdb::array_view.
414 * unittests/array-view-selftests.c: Add slicing tests.
415
e71585ff
PA
4162018-11-21 Pedro Alves <palves@redhat.com>
417
418 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
419 * common/array-view.h (make_array_view): New.
420 * compile/compile-object-run.c (compile_object_run): Adjust to
421 pass an array_view.
422 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
423 * eval.c (eval_call): Adjust to pass an array_view.
424 (evaluate_subexp_standard): Adjust to pass an array_view.
425 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
426 * guile/scm-value.c (gdbscm_value_call): Likewise.
427 * infcall.c (push_dummy_code): Replace pointer + size parameters
428 with an array_view parameter.
429 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
430 adjust.
431 * infcall.h: Include "common/array-view.h".
432 (call_function_by_hand, call_function_by_hand_dummy): Replace
433 pointer + size parameters with an array_view parameter.
434 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
435 * linux-tdep.c (linux_infcall_mmap): Likewise.
436 * objc-lang.c (lookup_objc_class, lookup_child_selector)
437 (value_nsstring, print_object_command): Likewise.
438 * python/py-value.c (valpy_call): Likewise.
439 * rust-lang.c (rust_evaluate_funcall): Likewise.
440 * spu-tdep.c (flush_ea_cache): Likewise.
441 * valarith.c (value_x_binop, value_x_unop): Likewise.
442 * valops.c (value_allocate_space_in_inferior): Likewise.
443 * unittests/array-view-selftests.c (run_tests): Add
444 gdb::make_array_view test.
445
d63095c4
AB
4462018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
447
448 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
449 than a fixed size buffer.
450
1871a62d
AB
4512018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
452
453 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
454 and remove insertion of extra spaces in GDB's output.
455 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
456 Layout field into a temporary buffer, and then output it as a
457 string field.
458
604c4ca9
PW
4592018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
460
461 * NEWS: Document the language choice done by
462 'info [types|functions|variables]|rbreak'.
463
43d397ca
PW
4642018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
465
466 * symtab.c (treg_matches_sym_type_name): Use
467 scoped_switch_to_sym_language_if_auto instead of local logic.
468 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
469 to switch to SYM language when language mode is auto.
470
9e6a1ab6
PW
4712018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
472
473 * language.h (scoped_switch_to_sym_language_if_auto): New class.
474
a8462bbf
PW
4752018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
476
477 * symtab.c (search_symbols): Properly check absence of type regexp
478 before entering the loop scanning the minimal symbols.
479
4399bce9 4802018-11-20 John Darrington <john@darrington.wattle.id.au>
c3247a98
JD
481
482 * s12z-tdep.c (s12z_extract_return_value): New function.
483 (inv_reg_perm) New array.
484 (s12z_return_value): Populate readbuf if non-null.
485
970d89d8
EZ
4862018-11-20 Eli Zaretskii <eliz@gnu.org>
487
488 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
489 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
490 to MinGW fixed by Gnulib.
2fa1b319 491 (O_NOINHERIT): Define if not defined.
970d89d8 492
4399bce9 4932018-11-19 John Darrington <john@darrington.wattle.id.au>
7b5227d1 494
4399bce9 495 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
7b5227d1 496
dbe4e654
SM
4972018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
498
499 * infrun.c (displaced_step_inferior_state) <next>: Remove.
500
0614ef69
TT
5012018-11-19 Tom Tromey <tom@tromey.com>
502
503 * source.c (get_filename_and_charpos): Return void.
504
261f6f79
SM
5052018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
506
507 * skip.c (_initialize_step_skip): Fix "info skip" help.
508
73fc52c4
TT
5092018-11-16 Tom Tromey <tom@tromey.com>
510
511 PR rust/23625:
512 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
513
39a36629
SM
5142018-11-19 Simon Marchi <simon.marchi@ericsson.com>
515
516 * infrun.c (displaced_step_inferior_states): Change type to
517 std::forward_list.
518 (get_displaced_stepping_state): Adjust.
519 (displaced_step_in_progress_any_inferior): Adjust.
520 (add_displaced_stepping_state): Adjust.
521 (remove_displaced_stepping_state): Adjust.
522
c2a6c5da
TT
5232018-11-18 Tom Tromey <tom@tromey.com>
524
525 PR build/23814:
526 * target-delegates.c: Rebuild.
527 * ia64-linux-nat.c (class ia64_linux_nat_target)
528 <have_steppable_watchpoint>: Use override. Return true, not 1.
529 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
530 "self" argument.
531 (ia64_linux_nat_target::low_new_thread): Rename.
532 (class ia64_linux_nat_target) <read_description>: Don't declare.
533 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
534 bool.
535
38a72da0
AH
5362018-11-16 Alan Hayward <alan.hayward@arm.com>
537
538 PR gdb/22736:
539 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
540 lang_struct_return code.
541
cf84fa6b
AH
5422018-11-16 Alan Hayward <alan.hayward@arm.com>
543
544 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
545 return_method.
546 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
547 * amd64-tdep.c (amd64_push_arguments): Likewise.
548 (amd64_push_dummy_call): Likewise.
549 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
550 * arc-tdep.c (arc_push_dummy_call): Likewise.
551 * arm-tdep.c (arm_push_dummy_call): Likewise.
552 * avr-tdep.c (avr_push_dummy_call): Likewise.
553 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
554 * cris-tdep.c (cris_push_dummy_call): Likewise.
555 * csky-tdep.c (csky_push_dummy_call): Likewise.
556 * frv-tdep.c (frv_push_dummy_call): Likewise.
557 * gdbarch.c: Regenerate.
558 * gdbarch.h: Regenerate.
559 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
560 return_method.
561 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
562 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
563 (hppa64_push_dummy_call): Likewise.
564 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
565 * i386-tdep.c (i386_push_dummy_call): Likewise.
566 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
567 * infcall.c (call_function_by_hand_dummy): Likewise.
568 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
569 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
570 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
571 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
572 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
573 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
574 * mep-tdep.c (mep_push_dummy_call): Likewise.
575 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
576 (mips_n32n64_push_dummy_call): Likewise.
577 (mips_o32_push_dummy_call): Likewise.
578 (mips_o64_push_dummy_call): Likewise.
579 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
580 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
581 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
582 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
583 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
584 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
585 (ppc64_sysv_abi_push_dummy_call): Likewise.
586 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
587 (ppc64_sysv_abi_push_dummy_call): Likewise.
588 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
589 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
590 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
591 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
592 * rx-tdep.c (rx_push_dummy_call): Likewise.
593 * s390-tdep.c (s390_push_dummy_call): Likewise.
594 * score-tdep.c (score_push_dummy_call): Likewise.
595 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
596 (sh_push_dummy_call_nofpu): Likewise.
597 * sparc-tdep.c (sparc32_store_arguments): Likewise.
598 (sparc32_push_dummy_call): Likewise.
599 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
600 (sparc64_push_dummy_call): Likewise.
601 * spu-tdep.c (spu_push_dummy_call): Likewise.
602 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
603 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
604 * v850-tdep.c (v850_push_dummy_call): Likewise.
605 * vax-tdep.c (vax_push_dummy_call): Likewise.
606 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
607 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
608
c5ac5cbb
AH
6092018-11-16 Alan Hayward <alan.hayward@arm.com>
610
611 * gdbarch.sh (enum function_call_return_method): Add enum.
612 * gdbarch.h: Regenerate.
613 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
614
f9db0c4c
JB
6152018-11-15 Joel Brobecker <brobecker@adacore.com>
616
617 * unittests/copy_bitwise-selftests.c: New file.
618 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
619 (selftests::copy_bitwise_tests): Delete, moving this code to
620 unittests/copy_bitwise-selftests.c instead.
621 (_initialize_utils): Do not register copy_bitwise tests.
622 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
623 unittests/copy_bitwise-selftests.c.
624
a99bc3d2
JB
6252018-11-14 Joel Brobecker <brobecker@adacore.com>
626
627 * ada-lang.c (move_bits): Delete. Update all callers to use
628 copy_bitwise instead.
629 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
630 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
631 Move from here to utils.c.
632 (_initialize_dwarf2loc): Remove call to register copy_bitwise
633 selftests.
634 * utils.h (copy_bitwise): Add declaration.
635 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
636 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
637 Moved here from dwarf2loc.c.
638 (_initialize_utils): Register copy_bitwise selftests.
639
174f8ac8
JW
6402018-11-14 Jim Wilson <jimw@sifive.com>
641
8b2d40cb
JW
642 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
643 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
644 then increment next_regnum if odd.
645 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
646 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
647 function type. Pass new arg to riscv_arg_location based on function
648 type.
649 (riscv_return_value): Pass new arg to riscv_arg_location.
650
ef2de9e7
JW
651 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
652 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
653 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
654
174f8ac8
JW
655 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
656 setting len. New local align, set to max of arg align and xlen,
657 and pass to first riscv_assign_stack_location call.
658
53a89d6e
SM
6592018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
660
661 * skip.c (complete_skip_number): New function.
662 (_initialize_step_skip): Add completers to some skip commands.
663
eefce37f
TT
6642018-11-09 Tom Tromey <tom@tromey.com>
665
666 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
667 (struct remote_g_packet_data): Derive from allocate_on_obstack.
668 <guesses>: Now a std::vector.
669 (remote_g_packet_data_init, register_remote_g_packet_guess):
670 Update.
671 (remote_read_description_p): Update. Return bool.
672 (remote_target::read_description): Update.
673 (struct remote_g_packet_guess): Add constructor.
674
2179fbc3
TT
6752018-11-09 Tom Tromey <tom@tromey.com>
676
677 * common/scoped_fd.h (class scoped_fd): Add move constructor and
678 move assignment operator.
679 * psymtab.c (psymtab_to_fullname): Update.
680 * source.h (open_source_file): Return scoped_fd.
681 (find_and_open_source): Likewise.
682 * source.c (open_source_file): Return scoped_fd.
683 (get_filename_and_charpos): Update.
684 (print_source_lines_base): Update. Use scoped_fd::to_file.
685 (forward_search_command): Likewise.
686 (reverse_search_command): Likewise.
687 (find_and_open_source): Return scoped_fd.
688 * tui/tui-source.c (tui_set_source_content): Update. Use
689 gdb_file_up.
690
9c122c7f
JB
6912018-11-09 John Baldwin <jhb@FreeBSD.org>
692
693 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
694 overflow.
695
5d762de0
HAQ
6962018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
697
698 * configure: Regenerate.
699
9325300d
TV
7002018-11-09 Tom de Vries <tdevries@suse.de>
701
702 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
703 unconditionally, to set the language of the symbol. Manage freeing
704 returned pointer using gdb::unique_xmalloc_ptr.
705
9c710e11
TT
7062018-11-08 Tom Tromey <tom@tromey.com>
707
708 * record.c (require_record_target): Upper-case "<TAB>".
709
3c6618cd
TT
7102018-11-08 Tom Tromey <tom@tromey.com>
711
712 * python/lib/gdb/command/pretty_printers.py
713 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
714
20f0d60d
TT
7152018-11-08 Tom Tromey <tom@tromey.com>
716
717 PR gdb/23555:
718 PR gdb/23838:
719 * target.h (target_supports_terminal_ours): Return bool.
720 * target.c (target_supports_terminal_ours): Handle case where
721 current_top_target returns nullptr. Return bool.
722
d4718d5c
JB
7232018-11-08 Joel Brobecker <brobecker@adacore.com>
724
725 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
726 return the correct count for potential HFAs.
727
b5420128
JB
7282018-11-08 Jan Beulich <jbeulich@suse.com>
729
730 * i387-tdep.c (i387_supply_xsave): Split handling of
731 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
732 (i387_collect_xsave): Likewise.
733
17cf2897
AB
7342018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * riscv-tdep.c (riscv_insn::decode): Update header comment.
737 (riscv_frame_this_id): Catch errors thrown while building the
738 frame cache, leave the frame id as the default, which is the outer
739 frame id.
740
76136aed
JB
7412018-11-07 Joel Brobecker <brobecker@adacore.com>
742
743 * ada-lang.c (read_atcb): Only set task_info->called_task if
744 task_info->state == Entry_Caller_Sleep.
745 (print_ada_task_info): Do not check task_info->state before
746 checking task_info->called_task.
747 (info_task): Likewise.
748
07deea26
JB
7492018-11-07 Joel Brobecker <brobecker@adacore.com>
750
751 * ada-tasks.c (read_atcb): Clear task_info before computing
752 the value of each of its fields.
753
35ee2dc2
AB
7542018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
757 NULL before dereferencing it.
758
31aceee8
TV
7592018-11-06 Tom de Vries <tdevries@suse.de>
760
761 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
762 program headers.
763
f11acc5e
MF
7642018-11-06 Max Filippov <jcmvbkbc@gmail.com>
765
766 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
767 so that it applies to uclinux as well.
768
9e237747
MM
7692018-11-06 Marius Muench <marius.muench@eurecom.fr>
770
771 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
772 when on AAPCS.
773
bcecc11d
JB
7742018-11-06 John Baldwin <jhb@FreeBSD.org>
775
776 * riscv-fbsd-nat.c (getregs_supplies): Return true for
777 RISCV_CSR_SSTATUS_REGNUM.
778
bb20ccab
PW
7792018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
780
781 * source.c (open_source_file): Fix leak by transferring the
782 current s->fullname to the unique_xmalloc_ptr fullname given
783 to find_and_open_source.
784
a31abe80
TT
7852018-11-04 Tom Tromey <tom@tromey.com>
786
787 * varobj.c (install_default_visualizer): Update.
788 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
789 Return gdbpy_ref.
790 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
791 (find_pretty_printer_from_progspace)
792 (find_pretty_printer_from_gdb, find_pretty_printer)
793 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
794 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
795 Update.
796
833d985d
TT
7972018-11-04 Tom Tromey <tom@tromey.com>
798
799 * python/python.c (gdbpy_parameter_value): Update.
800 * python/python-internal.h (python_string_to_unicode)
801 (python_string_to_target_python_string)
802 (host_string_to_python_string): Return gdbpy_ref.
803 * python/py-utils.c (python_string_to_unicode)
804 (unicode_to_encoded_python_string)
805 (unicode_to_target_python_string)
806 (python_string_to_target_string)
807 (python_string_to_target_python_string): Return gdbpy_ref.
808 (python_string_to_host_string): Update.
809 (host_string_to_python_string): Return gdbpy_ref.
810 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
811 (stpy_fullname): Update.
812 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
813 Update.
814 * python/py-prettyprint.c (print_string_repr): Update.
815 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
816 (objfpy_get_build_id): Update.
817 * python/py-breakpoint.c (bppy_get_location)
818 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
819 Update.
820
12dfa12a
TT
8212018-11-04 Tom Tromey <tom@tromey.com>
822
823 * python/python-internal.h (gdb_py_object_from_longest)
824 (gdb_py_object_from_ulongest): Return gdbpy_ref.
825 * python/py-value.c (valpy_int): Update.
826 * python/py-utils.c (gdb_py_object_from_longest): Return
827 gdbpy_ref.
828 (gdb_py_object_from_ulongest): Likewise.
829 * python/py-type.c (typy_get_alignof): Update.
830 * python/py-linetable.c (ltpy_get_all_source_lines)
831 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
832 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
833
470678d7
PW
8342018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
835
836 * ada-lang.c (_initialize_ada_language): Fix typo.
837
814fa4f6
PW
8382018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
839
840 * language.c (type): Remove.
841 (_initialize_language): Remove assignment to type.
842
3c6dd3d1 8432018-11-02 Joel Brobecker <brobecker@adacore.com>
e8bf1ce4
JB
844
845 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
846 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
847 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
848 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
849 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
850 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
851 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
852 and aarch64-ravenscar-thread.o.
853 * NEWS: Add entry documenting Ravenscar tasking support
854 on AArch64 ELF.
855
d54cfd76
PW
8562018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
857
858 * symtab.c (info_functions_command): Initialize quiet flag.
859 * stack.c (info_args_command): Likewise.
860
3ba2ee38
JW
8612018-11-01 Jim Wilson <jimw@sifive.com>
862
863 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
864 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
865 debugging messages.
866
e2b7af72
JB
8672018-11-01 Joel Brobecker <brobecker@adacore.com>
868
869 * ada-lang.c (ada_watch_location_expression): New function.
870 (ada_language_defn): Set la_watch_location_expression to
871 ada_watch_location_expression.
872
8b578f9c
JB
8732018-11-01 Joel Brobecker <brobecker@adacore.com>
874
875 * print-utils.c (int_string): Remove unnecessary trailing spaces.
876
1cc62f2e
JB
8772018-11-01 Joel Brobecker <brobecker@adacore.com>
878
879 * rs6000-tdep.c (skip_prologue): Fix potential negative left
880 shifting.
881
e1c3a373
JG
8822018-11-01 Jerome Guitton <guitton@adacore.com>
883 Joel Brobecker <brobecker@adacore.com>
884
885 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
886 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
887 * arm-pikeos-tdep.c: New file.
888 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
889 embedded system.
890 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
891
e8d8cce6
SM
8922018-11-01 Simon Marchi <simon.marchi@ericsson.com>
893
894 * common/pathstuff.c (get_standard_temp_dir): New.
895 * common/pathstuff.h (get_standard_temp_dir): New.
896 * config.in: Re-generate.
897 * configure: Re-generate.
898 * configure.ac: Don't check for mkdtemp.
899 * gnulib/aclocal-m4-deps.mk: Re-generate.
900 * gnulib/aclocal.m4: Re-generate.
901 * gnulib/config.in: Re-generate.
902 * gnulib/configure: Re-generate.
903 * gnulib/import/Makefile.am: Re-generate.
904 * gnulib/import/Makefile.in: Re-generate.
905 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
906 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
907 * gnulib/import/m4/mkdtemp.m4: New file.
908 * gnulib/import/mkdtemp.c: New file.
909 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
910 Add mkdtemp module.
911 * unittests/mkdir-recursive-selftests.c (test): Use
912 get_standard_temp_dir.
913 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
914 ifdef.
915 * compile/compile.c (get_compile_file_tempdir): Likewise.
916
cdcda965
SM
9172018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
918
919 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
920 (SIG_FRAME_LR_OFFSET64): New define.
921 (SIG_FRAME_FP_OFFSET64): New define.
922 (aix_sighandle_frame_cache): New Function.
923 (aix_sighandle_frame_this_id): New Function.
924 (aix_sighandle_frame_prev_register): New Function.
925 (aix_sighandle_frame_sniffer): New Function.
926 (aix_sighandle_frame_unwind): New global variable.
927 (rs6000_aix_init_osabi): Install new frame unwinder.
928
656efb5e
SDJ
9292018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
930
931 PR gdb/23835
932 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
933 already defined.
934
64f57f3d
PFC
9352018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
936
937 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
938
eb77c9df
AB
9392018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
940
941 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
942 (producer_is_icc): New function.
943 (check_producer): Set producer_is_icc field on dwarf2_cu.
944 (dwarf2_init_integer_type): New function.
945 (read_base_type): Call dwarf2_init_integer_type instead of
946 init_integer_type in all cases.
947 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
948 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
949 LEN is greater than 0.
950
4d5d1049
TT
9512018-10-30 Tom Tromey <tom@tromey.com>
952
953 * main.c (captured_main_1): Check return value of bfd_init.
954
fd332753
SDJ
9552018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
956
957 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
958 Adjust comments.
959
30a7953d
RO
9602018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
961
962 * procfs.c: Include common/pathstuff.h.
963
a3d72268
AB
9642018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
965
966 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
967 Add missing braces. No functional change.
968
cd948f5b
PW
9692018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
970
971 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
972 to report a bad option and fix indentation.
973 * demangle.c (demangle_command): Use report_unrecognized_option_error
974 to report a bad option and correctly report the bad option.
975
b50a8b9a
TT
9762018-10-27 Tom Tromey <tom@tromey.com>
977
978 PR cli/23364:
979 * darwin-nat.c (copied_shell): New global.
980 (may_have_sip): Rename from should_disable_startup_with_shell.
981 (copy_shell_to_cache, maybe_cache_shell): New functions.
982 (darwin_nat_target::create_inferior): Update. Use
983 copied_shell.
984
36033ef5
TT
9852018-10-27 Tom Tromey <tom@tromey.com>
986
987 * unittests/scoped_fd-selftests.c (test_to_file): New function.
988 (run_tests): Call test_to_file.
989 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
990 temporary files.
991 * common/scoped_fd.h (scoped_fd::to_file): New method.
992
b3279b60
TT
9932018-10-27 Tom Tromey <tom@tromey.com>
994
995 * unittests/scoped_mmap-selftests.c (test_normal): Use
996 gdb_mkostemp_cloexec.
997 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
998 Use gdb_mkostemp_cloexec.
999 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
1000 gnulib/config.in, gnulib/configure,
1001 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
1002 gnulib/import/m4/gnulib-cache.m4,
1003 gnulib/import/m4/gnulib-comp.m4: Update.
1004 * gnulib/import/m4/mkostemp.m4: New file.
1005 * gnulib/import/m4/mkstemp.m4: Remove.
1006 * gnulib/import/mkostemp.c: New file.
1007 * gnulib/import/mkstemp.m4: Remove.
1008 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
1009 mkstemp, add mkostemp. Apply new patch.
1010 * gnulib/import/stdlib.in.h: Apply patch.
1011 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
1012 New file.
1013 * dwarf-index-write.c (write_psymtabs_to_index): Use
1014 gdb_mkostemp_cloexec.
1015 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
1016
e418a61a
TT
10172018-10-27 Tom Tromey <tom@tromey.com>
1018
1019 * unittests/mkdir-recursive-selftests.c: New file.
1020 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1021 unittests/mkdir-recursive-selftests.c.
1022 * dwarf-index-cache.c (mkdir_recursive): Move to
1023 common/filestuff.c.
1024 (index_cache::store): Check return value of mkdir_recursive.
1025 (create_dir_and_check, test_mkdir_recursive): Move to new file.
1026 (_initialize_index_cache): Don't register test.
1027 * common/filestuff.h (mkdir_recursive): Declare.
1028 * common/filestuff.c (mkdir_recursive): Move from
1029 dwarf-index-cache.c. Return bool.
1030
29be4d9d
TT
10312018-10-27 Tom Tromey <tom@tromey.com>
1032
1033 * dwarf-index-write.c (write_psymtabs_to_index): Move
1034 make_temp_filename to common/pathstuff.c.
1035 * common/pathstuff.h (make_temp_filename): Declare.
1036 * common/pathstuff.c (make_temp_filename): New function, moved
1037 from dwarf-index-write.c.
1038
974e6844
TT
10392018-10-27 Tom Tromey <tom@tromey.com>
1040
1041 * procfs.c (procfs_target::create_inferior): Use get_shell.
1042 * cli/cli-cmds.c (shell_escape): Use get_shell.
1043 * windows-nat.c (windows_nat_target::create_inferior): Use
1044 get_shell.
1045 * common/pathstuff.c (get_shell): New function.
1046 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
1047 (fork_inferior): Use get_shell.
1048 * common/pathstuff.h (get_shell): Declare.
1049
e0a7911f
PW
10502018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1051
1052 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
1053
12615cba
PW
10542018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1055
1056 * stack.c (print_variable_and_value_data): Add preg and treg.
1057 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
1058 and update callers.
1059 (print_frame_arg_vars): Likewise.
1060 (prepare_reg): New function.
1061 (info_locals_command): Extract info print args and use them.
1062 (info_args_command): Likewise.
1063 (_initialize_stack): Modify on-line help.
1064 * symtab.c (treg_matches_sym_type_name): New function.
1065 (search_symbols): New arg t_regexp.
1066 (symtab_symbol_info): New args quiet, regexp, t_regexp.
1067 (info_variables_command): Extract info print args and use them.
1068 (info_functions_command): Likewise.
1069 (info_types_command): Update call to symtab_symbol_info.
1070 (_initialize_symtab): Modify on-line help.
1071 * symtab.h (treg_matches_sym_type_name): New function.
1072 (search_symbols): New t_regexp arg.
1073
0d4cad90
PW
10742018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1075
1076 * cli-utils.c (extract_arg_maybe_quoted): New function.
1077 (extract_info_print_args): New function.
1078 (info_print_args_help): New function.
1079 (report_unrecognized_option_error): New function.
1080 * cli-utils.h (extract_arg_maybe_quoted): New function.
1081 (extract_info_print_args): New function.
1082 (info_print_args_help): New function.
1083 (report_unrecognized_option_error): New function.
1084
4c39bc03
TT
10852018-10-26 Tom Tromey <tom@tromey.com>
1086
1087 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
1088 (compute_compunit_symtab_includes): Update.
1089 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
1090 (compunit_symtab_ptr): Likewise.
1091
fd2b4de5
JB
10922018-10-26 John Baldwin <jhb@FreeBSD.org>
1093
1094 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
1095 default_print_auxv_entry for specific tag values.
1096
d7ded98f
JB
10972018-10-26 John Baldwin <jhb@FreeBSD.org>
1098
1099 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
1100
8a613826
JW
11012018-10-26 Jim Wilson <jimw@sifive.com>
1102
77c6f5fc
JW
1103 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
1104 (riscv_linux_sigframe_init): Declare.
1105 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
1106 (riscv_linux_sigframe): New.
1107 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
1108 (riscv_linux_sigframe_init): Define.
1109 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
1110
8a613826
JW
1111 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
1112 (riscv_isa_flen): Likewise. Drop static.
1113 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
1114 (riscv_isa_flen): Likewise. Declare.
1115
8d619c01
EBM
11162018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1117 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1118
1119 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
1120 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
1121 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
1122 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
1123 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
1124 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
1125 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
1126 Define.
1127 (struct ppc_linux_features) <htm>: New field.
1128 (ppc_linux_no_features): Add initializer for htm field.
1129 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1130 new tdescs.
1131 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
1132 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
1133 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
1134 Define if not already defined.
1135 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
1136 and rs6000/powerpc-isa207-htm-vsx64l.
1137 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
1138 rs6000/powerpc-isa207-htm-vsx64l.xml.
1139 * features/rs6000/power-htm-spr.xml: New file.
1140 * features/rs6000/power-htm-core.xml: New file.
1141 * features/rs6000/power64-htm-core.xml: New file.
1142 * features/rs6000/power-htm-fpu.xml: New file.
1143 * features/rs6000/power-htm-altivec.xml: New file.
1144 * features/rs6000/power-htm-vsx.xml: New file.
1145 * features/rs6000/power-htm-ppr.xml: New file.
1146 * features/rs6000/power-htm-dscr.xml: New file.
1147 * features/rs6000/power-htm-tar.xml: New file.
1148 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
1149 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
1150 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
1151 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
1152 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
1153 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
1154 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1155 fetch_regset with HTM regsets.
1156 (store_register, store_ppc_registers): Call store_regset with HTM
1157 regsets.
1158 (ppc_linux_nat_target::read_description): Set htm field in the
1159 features struct if needed.
1160 * ppc-linux-tdep.c: Include
1161 features/rs6000/powerpc-isa207-htm-vsx32l.c and
1162 features/rs6000/powerpc-isa207-htm-vsx64l.c.
1163 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
1164 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
1165 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
1166 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
1167 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
1168 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
1169 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
1170 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
1171 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
1172 (ppc32_linux_ctarregset): New globals.
1173 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
1174 (ppc_linux_collect_core_cpgrregset): New function.
1175 (ppc_linux_iterate_over_regset_sections): Call back with the htm
1176 regsets.
1177 (ppc_linux_core_read_description): Check if the tm spr section is
1178 present and set htm in the features struct.
1179 (_initialize_ppc_linux_tdep): Call
1180 initialize_tdesc_powerpc_isa207_htm_vsx32l and
1181 initialize_tdesc_powerpc_isa207_htm_vsx64l.
1182 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
1183 Declare.
1184 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
1185 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
1186 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
1187 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
1188 New fields.
1189 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
1190 Likewise.
1191 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
1192 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
1193 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
1194 New enum fields.
1195 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
1196 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
1197 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
1198 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
1199 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
1200 <PPC_CTAR_REGNUM>: Likewise.
1201 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
1202 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
1203 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
1204 (IS_CEFP_PSEUDOREG): Define.
1205 (rs6000_register_name): Hide the upper halves of checkpointed VSX
1206 registers. Return names for the checkpointed DFP, VSX, and EFP
1207 pseudo registers.
1208 (rs6000_pseudo_register_type): Remove initial assert and raise an
1209 internal error in the else clause instead. Return types for the
1210 checkpointed DFP, VSX, and EFP pseudo registers.
1211 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
1212 checkpointed DFP pseudo registers.
1213 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
1214 checkpointed VSX pseudo registers.
1215 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
1216 from efpr_pseudo_register_read and
1217 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
1218 registers.
1219 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1220 Handle checkpointed DFP, VSX, and EFP registers.
1221 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1222 (efp_ax_pseudo_register_collect): New functions.
1223 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1224 register logic to new functions. Handle checkpointed DFP, VSX,
1225 and EFP pseudo registers.
1226 (rs6000_gdbarch_init): Look for and validate the htm features.
1227 Include checkpointed DFP, VSX and EFP pseudo-registers.
1228 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1229 HTM registers.
1230
81ab84fd
PFC
12312018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1232
1233 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1234 without altivec or fpu.
1235
232bfb86
EBM
12362018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1237 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1238
1239 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1240 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1241 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1242 Define if not already defined.
1243 * features/rs6000/power-ebb.xml: New file.
1244 * features/rs6000/power-linux-pmu.xml: New file.
1245 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1246 features.
1247 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1248 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1249 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1250 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1251 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1252 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1253 fetch_regset with ebb and pmu regsets.
1254 (store_register, store_ppc_registers): Call store_regset with ebb
1255 and pmu regsets.
1256 (ppc_linux_nat_target::read_description): Set isa207 field in the
1257 features struct if ebb and pmu are avaiable.
1258 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1259 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1260 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1261 and pmu regsets.
1262 (ppc_linux_core_read_description): Check if the pmu section is
1263 present and set isa207 in the features struct.
1264 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1265 (ppc32_linux_pmuregset): Declare.
1266 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1267 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1268 <ppc_sier_regnum>: New field.
1269 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1270 New enum values.
1271 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1272 values.
1273 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1274 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1275 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1276 ebb and pmu features.
1277
f2cf6173
EBM
12782018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1279 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1280
1281 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1282 (tdesc_powerpc_isa207_vsx64l): Declare.
1283 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1284 (struct ppc_linux_features) <isa207>: New field.
1285 (ppc_linux_no_features): Add initializer for isa207 field.
1286 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1287 new tdescs.
1288 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1289 (NT_PPC_TAR): Define if not already defined.
1290 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1291 rs6000/powerpc-isa207-vsx64l.
1292 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1293 rs6000/powerpc-isa207-vsx64l.xml.
1294 * features/rs6000/power-tar.xml: New file.
1295 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1296 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1297 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1298 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1299 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1300 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1301 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1302 fetch_regset with the TAR regset.
1303 (store_register, store_ppc_registers): Call store_regset with the
1304 TAR regset.
1305 (ppc_linux_nat_target::read_description): Set isa207 field in the
1306 features struct if needed.
1307 * ppc-linux-tdep.c: Include
1308 features/rs6000/powerpc-isa207-vsx32l.c and
1309 features/rs6000/powerpc-isa207-vsx64l.c.
1310 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1311 (ppc_linux_iterate_over_regset_sections): Call back with the tar
1312 regset.
1313 (ppc_linux_core_read_description): Check if the tar section is
1314 present and set isa207 in the features struct.
1315 (_initialize_ppc_linux_tdep): Call
1316 initialize_tdesc_powerpc_isa207_vsx32l and
1317 initialize_tdesc_powerpc_isa207_vsx64l.
1318 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1319 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1320 (enum) <PPC_TAR_REGNUM>: New enum value.
1321 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1322 feature.
1323 (ppc_process_record_op31): Record changes to TAR.
1324
7ca18ed6
EBM
13252018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1326 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1327
1328 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1329 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1330 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1331 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1332 (struct ppc_linux_features) <ppr_dscr>: New field.
1333 (ppc_linux_no_features): Add initializer for ppr_dscr field.
1334 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1335 new tdescs.
1336 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1337 Define if not already defined.
1338 * features/Makefile (WHICH): Add
1339 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1340 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1341 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1342 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1343 * features/rs6000/power-dscr.xml: New file.
1344 * features/rs6000/power-ppr.xml: New file.
1345 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1346 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1347 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1348 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1349 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1350 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1351 * ppc-linux-nat.c: Include <sys/uio.h>.
1352 (fetch_regset, store_regset, check_regset): New functions.
1353 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1354 DSCR and PPR regsets.
1355 (store_register, store_ppc_registers): Call store_regset with
1356 DSCR and PPR regsets.
1357 (ppc_linux_get_hwcap2): New function.
1358 (ppc_linux_nat_target::read_description): Call
1359 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1360 features struct if needed.
1361 * ppc-linux-tdep.c: Include
1362 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1363 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1364 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1365 (ppc32_linux_dscrregset): New globals.
1366 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1367 and dscr regsets.
1368 (ppc_linux_core_read_description): Check if the ppr and dscr
1369 sections are present and set ppr_dscr in the features struct.
1370 (_initialize_ppc_linux_tdep): Call
1371 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1372 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1373 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1374 (ppc32_linux_dscrregset): Declare.
1375 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1376 <ppc_dscr_regnum>: New field.
1377 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1378 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1379 and dscr features.
1380 (ppc_process_record_op31): Record changes to PPR and DSCR.
1381
93b4691f
PFC
13822018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1383
1384 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1385 second initializer line for the have_* variables. Initialize
1386 have_fpu to 0 instead of 1.
1387
71733a7b
PFC
13882018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1389
1390 * arch/ppc-linux-common.c (ppc_linux_match_description):
1391 Parenthesize tdesc assignements and indent them properly.
1392
3d907528
PFC
13932018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1394
1395 * ppc-linux-nat.c (fetch_register): Change if statement to else
1396 if.
1397 (store_register): Likewise.
1398
500f01a0
PFC
13992018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1400
1401 * rs6000-tdep.c: Remove reggroups.h include.
1402 (rs6000_pseudo_register_reggroup_p): Remove.
1403 (rs6000_gdbarch_init): Remove call to
1404 set_tdesc_pseudo_register_reggroup_p.
1405
7ed29001
PFC
14062018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1407
1408 * reggroups.c (default_register_reggroup_p): Return true for
1409 decfloat registers and float_reggroup.
1410
5c849b22
PFC
14112018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1412
1413 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1414 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1415 ppc_linux_collect_vrregset by regcache_collect_regset.
1416
afde3032
PFC
14172018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1418
1419 * linux-tdep.c (linux_collect_regset_section_cb): Use
1420 std::vector<gdb_byte> instead of char * and malloc for buf.
1421 Remove xfree.
1422
b9718991
SM
14232018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1424
1425 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1426 symtab_start instead of always using language_unknown.
1427
0b0eff8b
AB
14282018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1429
1430 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1431 READ_P parameter, catch and ignore register access errors from
1432 either the old or new MISA location.
1433 (riscv_has_feature): Update call to riscv_read_misa_reg.
1434
b352ceb6
AB
14352018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1436
1437 * python/py-function.c (convert_values_to_python): Return
1438 gdbpy_ref<>. Add header comment.
1439 (fnpy_call): Adjust.
1440
50db9ef4
AB
14412018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1442
1443 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1444 (cmdpy_completer_handle_brkchars): Adjust.
1445 (cmdpy_completer): Adjust.
1446
ee67fd7f
AB
14472018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1448
1449 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1450 Pass correct regnum to raw_supply_zeroed.
1451
bea556ab
HAQ
14522018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1453
1454 * regcache.c (cooked_read_test): Add CSKY to the list of
1455 architectures with a save_reggroup
1456
35ed81d4
SM
14572018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 PR gdb/23368
1460 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1461 transfer terminal state from old new new inferior.
1462 * terminal.h (swap_terminal_info): New function.
1463 * inflow.c (swap_terminal_info): New function.
1464
79b8d3b0
TT
14652018-10-23 Tom Tromey <tom@tromey.com>
1466
1467 * record-btrace.c (get_thread_current_frame_id): Rename from
1468 get_thread_current_frame. Return a frame_id.
1469 (record_btrace_start_replaying): Update.
1470
420ecd9c
AB
14712018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1474 for CSRs.
1475
5a77b1b4
JB
14762018-10-23 Joel Brobecker <brobecker@adacore.com>
1477
1478 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1479 have_nonsteppable_watchpoint attribute to 1.
1480
0dbfcfff
AB
14812018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1484 register names.
1485 (struct register_alias): Rename to...
1486 (struct riscv_register_alias): ...this, and update comment.
1487 (riscv_register_aliases): Update type, and alias names. Remove
1488 CSR names from this list.
1489 (riscv_register_name): Use riscv_gdb_reg_names for int and float
1490 register names. Add an extra assertion.
1491 (riscv_is_regnum_a_named_csr): New function.
1492 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1493
32641fa9
JD
14942018-10-23 John Darrington <john@darrington.wattle.id.au>
1495
1496 * configure.tgt: Add configuration for s12z.
1497 * s12z-tdep.c: New file.
1498 * NEWS: Mention new target.
1499
270b9329
JW
15002018-10-22 Jim Wilson <jimw@sifive.com>
1501
3399f1b3
JW
1502 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1503 FP reg smaller than FP reg size, and fill with -1 instead of 0.
1504
270b9329
JW
1505 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1506 (riscv_register_type): Use them.
1507 (riscv_print_one_register_info): Handle union of floats same as float.
1508 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1509 riscv_fpreg_q_type fields.
1510
f6efe3f8
SM
15112018-10-21 Simon Marchi <simon.marchi@ericsson.com>
1512
1513 * gdbarch.sh (gdbarch_num_cooked_regs): New.
1514 * gdbarch.h: Re-generate.
1515 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1516 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1517 * eval.c (evaluate_subexp_standard): Likewise.
1518 * findvar.c (value_of_register): Likewise.
1519 (value_of_register_lazy): Likewise.
1520 (address_from_register): Likewise.
1521 * frame.c (get_frame_register_bytes): Likewise.
1522 * gdbarch-selftests.c (register_to_value_test): Likewise.
1523 * h8300-tdep.c (h8300_register_type): Likewise.
1524 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1525 (i386_svr4_reg_to_regnum): Likewise.
1526 * infcmd.c (default_print_registers_info): Likewise.
1527 (registers_info): Likewise.
1528 (print_vector_info): Likewise.
1529 (default_print_float_info): Likewise.
1530 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1531 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1532 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1533 (mi_cmd_data_list_changed_registers): Likewise.
1534 (mi_cmd_data_list_register_values): Likewise.
1535 (mi_cmd_data_write_register_values): Likewise.
1536 (mi_cmd_trace_frame_collected): Likewise.
1537 * mips-tdep.c (print_gp_register_row): Likewise.
1538 (mips_print_registers_info): Likewise.
1539 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1540 * regcache.c (init_regcache_descr): Likewise.
1541 (register_size): Likewise.
1542 (register_dump::dump): Likewise.
1543 (cooked_read_test): Likewise.
1544 (cooked_write_test): Likewise.
1545 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1546 (rs6000_gdbarch_init): Likewise.
1547 * stabsread.c (stab_reg_to_regnum): Likewise.
1548 * stack.c (info_frame_command): Likewise.
1549 * target-descriptions.c (tdesc_register_name): Likewise.
1550 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1551 * tui/tui-regs.c (tui_show_register_group): Likewise.
1552 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1553 (user_reg_map_regnum_to_name): Likewise.
1554 (value_of_user_reg): Likewise.
1555 (maintenance_print_user_registers): Likewise.
1556 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1557 (xtensa_register_name): Likewise.
1558 (xtensa_register_type): Likewise.
1559 (xtensa_reg_to_regnum): Likewise.
1560 (xtensa_pseudo_register_read): Likewise.
1561 (xtensa_pseudo_register_write): Likewise.
1562
925047fe
SM
15632018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1564
1565 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1566 correctly-sized buffer with raw_read.
1567 (amd64_pseudo_register_write): Use correctly-sized buffer for
1568 raw_read/raw_write.
1569
4051d2d6
PW
15702018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1571
1572 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1573 in add_prefix_cmd of set print type.
1574
7806cea7
TT
15752018-10-19 Tom Tromey <tom@tromey.com>
1576
1577 PR tui/18388:
1578 * NEWS: Mention tabset deprecation.
1579 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1580 (update_tab_width): New function.
1581 (tui_set_tab_width, tui_show_tab_width): New functions.
1582 (tui_set_tab_width_command): Use update_tab_width.
1583 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
1584 Add new "set tui tab-width" command.
1585 * tui/tui-source.c (tui_set_source_content): Update.
1586 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1587 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1588 Don't declare.
1589 (tui_tab_width): Declare.
1590 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1591 (tui_set_default_tab_len): Remove.
1592
84371624
TT
15932018-10-19 Tom Tromey <tom@tromey.com>
1594
1595 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1596 (key_is_backspace, tui_getc): Don't declare.
1597 * tui/tui-io.c (key_is_start_sequence): Now static.
1598 (key_is_end_sequence, key_is_backspace): Remove.
1599 (tui_getc): Now static.
1600
22ad8107
TT
16012018-10-19 Tom Tromey <tom@tromey.com>
1602
1603 * symfile.c (reread_symbols): Clear "static_links".
1604
74b3c713
AH
16052018-10-19 Alan Hayward <alan.hayward@arm.com>
1606
1607 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1608 define.
1609 (aarch64_linux_sigframe_init): Extra boundary checks.
1610
0667c506
AA
16112018-10-19 Andreas Arnez <arnez@linux.ibm.com>
1612
1613 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1614 the possibly non-existent tdesc type 'vec128', but the type of raw
1615 register v16 instead.
1616
ba543ca5
GB
16172018-10-19 Gary Benson <gbenson@redhat.com>
1618
1619 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1620
94c18618
SDJ
16212018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
1622
1623 PR cli/23785
1624 * cli/cli-dump.c (restore_binary_file): Check if "file" is
1625 NULL.
1626
89eb3c54
PK
16272018-10-17 Paul Koning <paul_koning@dell.com>
1628
1629 * charset.c (convert_between_encodings): Fix unsigned overflow.
1630
6f3b1098
JB
16312018-10-17 John Baldwin <jhb@FreeBSD.org>
1632
1633 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1634 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1635 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1636 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1637 New functions.
1638 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1639 and fbsd_info_proc_mappings_header.
1640 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1641 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1642 New.
1643
d500b4f2
JB
16442018-10-17 Joel Brobecker <brobecker@adacore.com>
1645
1646 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1647 Solaris Maintainer.
1648
63a33118
TT
16492018-10-15 Tom Tromey <tom@tromey.com>
1650
1651 * tui/tui.c (strcat_to_buf): Remove casts.
1652 * tui/tui-winsource.c (tui_show_source_line)
1653 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1654 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1655 * tui/tui-windata.c (tui_first_data_item_displayed)
1656 (tui_delete_data_content_windows, tui_erase_data_content)
1657 (tui_display_all_data, tui_display_data_from)
1658 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1659 * tui/tui-win.c (tui_set_win_height)
1660 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1661 casts.
1662 * tui/tui-win.c (tui_resize_all): Remove casts.
1663 (tui_scroll_backward_command, tui_set_focus)
1664 (tui_set_tab_width_command): Likewise.
1665 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1666 * tui/tui-regs.c (tui_show_register_group): Remove cast.
1667 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1668 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1669 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1670 Remove casts.
1671
933e62b1
SM
16722018-10-15 Simon Marchi <simon.marchi@ericsson.com>
1673
1674 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1675 AArch64/ARM maintainer.
1676
fbe61a36
GB
16772018-10-11 Gary Benson <gbenson@redhat.com>
1678
1679 * interps.h (interp::m_name): Make private and mutable.
1680 * interps.c (interp::~interp): Free m_name.
1681
8ecfd7bd
SDJ
16822018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1683 Simon Marchi <simark@simark.ca>
1684
1685 * README (`configure' options): Add documentation for new
1686 "--enable-unit-tests" option.
1687 * acinclude.m4: Include "selftest.m4".
1688 * configure: Regenerate.
1689 * configure.ac: Use "GDB_AC_SELFTEST".
1690 * maint.c (maintenance_selftest): Update message informing
1691 that selftests have been disabled.
1692 (maintenance_info_selftests): Likewise.
1693 * selftest.m4: New file.
1694
33b031ce
GB
16952018-10-10 Gary Benson <gbenson@redhat.com>
1696
1697 * remote.c (remote_target::remote_send_printf): Add
1698 missing va_end found by Coverity.
1699
2cb2ba9a
MM
17002018-10-10 Markus Metzger <markus.t.metzger@intel.com>
1701
1702 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1703
eff98030
TT
17042018-10-09 Tom Tromey <tom@tromey.com>
1705
1706 * configure: Rebuild.
1707 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1708 * NEWS: Update --enable-ubsan documentation.
1709
04fd5eed
GB
17102018-10-09 Gary Benson <gbenson@redhat.com>
1711
1712 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1713 found by Coverity.
1714
a0c3048e
TT
17152018-10-08 Tom Tromey <tom@tromey.com>
1716
1717 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1718 variable.
1719 (riscv_fbsd_init_abi): Likewise.
1720
a51bb70c
WP
17212018-10-08 Weimin Pan <weimin.pan@oracle.com>
1722 * valops.c (value_struct_elt_for_reference): Rename local variable
1723 to work around the shadowing a previous local warning.
1724
74792ff7
JB
17252018-10-08 John Baldwin <jhb@FreeBSD.org>
1726
1727 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1728 * NEWS: Mention new FreeBSD/riscv native configuration.
1729 * configure.host: Add riscv*-*-freebsd*.
1730 * configure.nat: Likewise.
1731 * riscv-fbsd-nat.c: New file.
1732
ed65e20b
JB
17332018-10-08 John Baldwin <jhb@FreeBSD.org>
1734
1735 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1736 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1737 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1738 * NEWS: Mention new FreeBSD/riscv target.
1739 * configure.tgt: Add riscv*-*-freebsd*.
1740 * riscv-fbsd-tdep.c: New file.
1741 * riscv-fbsd-tdep.h: New file.
1742
498f7407
JB
17432018-10-08 John Baldwin <jhb@FreeBSD.org>
1744
1745 * regcache.h (struct regcache_map_entry): Note that this type can
1746 be used with traditional frame caches.
1747 * trad-frame.c (trad_frame_set_reg_regmap): New.
1748 * trad-frame.h (trad_frame_set_reg_regmap): New.
1749
9f6b697b
WP
17502018-10-08 Weimin Pan <weimin.pan@oracle.com>
1751
1752 PR c++/16841
1753 * valops.c (get_virtual_base_offset): New function.
1754 (value_struct_elt_for_reference): Use it to get virtual base offset
1755 and add it in calculating class member address.
1756
4399bce9 17572018-10-08 John Darrington <john@darrington.wattle.id.au>
c258c396 1758
4399bce9
PA
1759 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1760 (check_producer): Check if the producer is codewarrior.
1761 (producer_is_codewarrior): New function.
1762 (lnp_state_machine::record_line): Ignore is_stmt flag for records
1763 produced by codewarrior.
1764 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
c258c396 1765
add5ded5
TT
17662018-10-06 Tom Tromey <tom@tromey.com>
1767
1768 PR python/19399:
1769 * python/py-inferior.c: Add "architecture" entry.
1770 (infpy_architecture): New function.
1771
51e78fc5
TT
17722018-10-06 Tom Tromey <tom@tromey.com>
1773
1774 PR python/21765:
1775 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1776 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1777 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
1778 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1779
a8a5dbca
TT
17802018-10-06 Tom Tromey <tom@tromey.com>
1781
1782 PR build/17077:
1783 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1784 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1785 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1786 #include.
1787
2a8be203
TT
17882018-10-06 Tom Tromey <tom@tromey.com>
1789
1790 * python/py-breakpoint.c (bppy_get_location): Handle a
1791 bp_breakpoint without a location.
1792
2fb009bb
TT
17932018-10-06 Tom Tromey <tom@tromey.com>
1794
1795 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1796 (_RegEx): Reformat help text.
1797 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1798 (AnyCallerIs, AnyCallerMatches): Reformat help text.
1799 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1800 text.
1801 * python/lib/gdb/command/xmethods.py (InfoXMethod)
1802 (EnableXMethod, DisableXMethod): Remove help indentation.
1803 Capitalize meta-syntactic variables.
1804 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1805 (EnableUnwinder, DisableUnwinder): Remove help indentation.
1806 Capitalize meta-syntactic variables.
1807 * python/lib/gdb/command/explore.py (ExploreCommand)
1808 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1809 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1810 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1811 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1812 Remove help indentation.
1813 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1814 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1815 (DisableFrameFilter, SetFrameFilterPriority)
1816 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1817
7a956928
TT
18182018-10-06 Tom Tromey <tom@tromey.com>
1819
1820 PR tui/28819:
1821 * tui/tui-io.c (gdb_wgetch): New function.
1822 (tui_mld_getc, tui_getc): Use it.
1823
f8740dc5
TT
18242018-10-05 Tom Tromey <tom@tromey.com>
1825
1826 * sol-thread.c (sol_thread_target::wait): Rename inner
1827 "save_ptid".
1828
96643e35
TT
18292018-10-04 Tom Tromey <tom@tromey.com>
1830
1831 * configure: Rebuild.
1832 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1833
d951f98b
TT
18342018-10-04 Tom Tromey <tom@tromey.com>
1835
1836 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1837 declaration of "block".
1838
b8c88847
TT
18392018-10-04 Tom Tromey <tom@tromey.com>
1840
1841 * common/filestuff.c (fdwalk): Remove inner declaration of
1842 "result".
1843
ef789dc4
TT
18442018-10-04 Tom Tromey <tom@tromey.com>
1845
1846 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1847 "structs_addr" and hoist declaration.
1848
3fba72f7
TT
18492018-10-04 Tom Tromey <tom@tromey.com>
1850
1851 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1852 variable "size".
1853
795afcbb
TT
18542018-10-04 Tom Tromey <tom@tromey.com>
1855
1856 * mdebugread.c (parse_partial_symbols): Use std::string.
1857
b926417a
TT
18582018-10-04 Tom Tromey <tom@tromey.com>
1859
1860 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1861 * p-valprint.c (pascal_val_print): Split inner "i" variable.
1862 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1863 header.
1864 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1865 more inner scope.
1866 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1867 * varobj.c (varobj_update): Rename inner "newobj",
1868 "type_changed".
1869 * valprint.c (generic_emit_char): Rename inner "buf".
1870 * valops.c (find_overload_match): Rename inner "temp".
1871 (value_struct_elt_for_reference): Declare "v" in more inner
1872 scope.
1873 * v850-tdep.c (v850_push_dummy_call): Rename "len".
1874 * unittests/array-view-selftests.c (run_tests): Rename inner
1875 "vec".
1876 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1877 header.
1878 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1879 "tsv" in more inner scope.
1880 (print_one_static_tracepoint_marker): Rename inner
1881 "tuple_emitter".
1882 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1883 (tic6x_push_dummy_call): Don't redeclare "addr".
1884 * target-float.c: Declare "dto" lower.
1885 * symtab.c (lookup_local_symbol): Rename inner "sym".
1886 (find_pc_sect_line): Rename inner "pc".
1887 * stack.c (print_frame): Don't redeclare "gdbarch".
1888 (return_command): Rename inner "gdbarch".
1889 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1890 "sp".
1891 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1892 header.
1893 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1894 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1895 scope.
1896 * remote.c (remote_target::update_thread_list): Don't redeclare
1897 "tp".
1898 (remote_target::process_initial_stop_replies): Rename inner
1899 "thread".
1900 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1901 (remote_target::wait_as): Don't redeclare "stop_reply".
1902 (remote_target::get_thread_local_address): Rename inner
1903 "result".
1904 (remote_target::get_tib_address): Likewise.
1905
1906 * regcache.c (cooked_read_test): Rename "regnum".
1907 * record-btrace.c (cmd_record_btrace_start): Rename inner
1908 "exception".
1909 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1910 loop header.
1911 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1912 header.
1913 (ppu2spu_sniffer): Rename inner "buf".
1914 * parse.c (operator_check_standard): Rename inner "type",
1915 "objfile".
1916 * p-valprint.c (pascal_val_print): Introduce new scope for
1917 "low_bound", "high_bound".
1918 * p-exp.y (yylex): Declare "i" in loop header.
1919 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1920 Lower declaration of "s".
1921 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1922 header.
1923 (nios2_push_dummy_call): Rename "len".
1924 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1925 "buf".
1926 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1927 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1928 (linux_xfer_osdata_modules): Likewise.
1929 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1930 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1931 (mips_o64_push_dummy_call): Likewise.
1932 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1933 "op".
1934 * mi/mi-main.c (list_available_thread_groups): Rename inner
1935 "tuple_emitter".
1936 (mi_cmd_data_read_memory): Rename inner "opts".
1937 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1938 "tuple_emitter".
1939 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1940 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
1941 more inner scope.
1942 (parse_partial_symbols): Rename inner "pst", "p", "name"
1943 * main.c (captured_main_1): Rename inner "i"s.
1944 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1945 "oso2".
1946 * linux-tdep.c (linux_info_proc): Rename inner "filename".
1947 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1948 * infrun.c (handle_no_resumed): Don't redeclare "thread".
1949 (handle_signal_stop): Rename inner "gdbarch".
1950 (handle_command): Declare "signum" in loop header.
1951 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1952 "status".
1953 (examine_prologue): Rename inner "sol" and "sof".
1954 (ia64_extract_return_value): Rename inner "val". Declare another
1955 "val" in a more inner scope.
1956 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1957 inner scope.
1958 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1959 "except".
1960 * findvar.c (default_read_var_value): Don't redeclare "addr".
1961 * f-exp.y (yylex): Declare "i" in loop header.
1962 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1963 Rename inner "type", "expect_type".
1964 (evaluate_subexp_for_sizeof): Rename inner "pc".
1965 * elfread.c (elf_symfile_read): Rename inner "abfd".
1966 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1967 "bytes_read".
1968 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1969 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1970 (dwarf_decode_line_header): Rename inner "lh".
1971 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1972 "offset". Declare "i" in loop header.
1973 (disassemble_dwarf_expression): Rename inner "addr_size".
1974 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1975 inner "result".
1976 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1977 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1978 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1979 "inner_list_emitter".
1980 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1981 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1982 declaration in a block.
1983 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1984 * cp-valprint.c (cp_print_value_fields): Don't redeclare
1985 "obstack_final_size".
1986 * cp-support.c (inspect_type): Declare "i" in loop header.
1987 * compile/compile.c (compile_instance::insert_symbol_error):
1988 Rename inner "e".
1989 * common/agent.c (agent_run_command): Remove inner "ret"
1990 declaration.
1991 * coffread.c (coff_symfile_read): Rename inner "name".
1992 (coff_symfile_read): Rename inner "abfd".
1993 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1994 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1995 "high".
1996 * c-exp.y (lex_one_token): Move "len" declaration lower.
1997 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1998 "gdbarch".
1999 (create_exception_master_breakpoint): Likewise. Don't redeclare
2000 "b".
2001 (watch_command_1): Declare "mark" later.
2002 (clear_command): Don't shadow "a" or "b".
2003 (delete_command): Rename inner "b".
2004 (delete_trace_command): Likewise.
2005 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
2006 "op".
2007 (arm_gdbarch_init): Remove inner "e_flags".
2008 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
2009 "offset" in inner blocks.
2010
1f88d0c8
SM
20112018-10-04 Simon Marchi <simon.marchi@ericsson.com>
2012
2013 * dwarf-index-write.c (file_write): Don't write if the vector is
2014 empty.
2015
5c4481cc
TV
20162018-10-05 Tom de Vries <tdevries@suse.de>
2017
2018 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
2019 PyArg_ParseTuple call.
2020
96b1ad86
TV
20212018-10-05 Tom de Vries <tdevries@suse.de>
2022
2023 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
2024 PyArg_ParseTuple call.
2025
d2f7dcb2
JB
20262018-10-04 Joel Brobecker <brobecker@adacore.com>
2027
2028 * psymtab.c (recursively_search_psymtabs): Reformat parameters
2029 to avoid exceeding 80 characters per line limit.
2030
5ca8c39f
TT
20312018-10-04 Tom Tromey <tom@tromey.com>
2032
2033 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2034 (reread_symbols): Update.
2035 * complaints.h (clear_complaints): Remove argument.
2036 * complaints.c (enum complaint_series): Remove.
2037 (series): Remove global.
2038 (complaint_internal): Update.
2039 (clear_complaints): Remove argument.
2040
e79497a1
TT
20412018-10-04 Tom Tromey <tom@tromey.com>
2042
2043 * symfile.c (symbol_file_add_with_addrs): Do not print "no
2044 debugging symbols" message if there is a separate debug objfile.
2045
3453e7e4
TT
20462018-10-04 Tom Tromey <tom@tromey.com>
2047
2048 PR cli/19551:
2049 * symfile.c (symbol_file_add_with_addrs): Update output.
2050 * psymtab.c (require_partial_symbols): Update output.
2051
6afcf761
TT
20522018-10-04 Tom Tromey <tom@tromey.com>
2053
2054 PR cli/22234:
2055 * complaints.c: Emit \n.
2056
22068491
TT
20572018-10-04 Tom Tromey <tom@tromey.com>
2058
2059 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
2060 (separate_debug_file_exists, find_separate_debug_file)
2061 (add_symbol_file_command, reread_symbols, allocate_symtab)
2062 (allocate_compunit_symtab): Use filtered printing, not
2063 unfiltered.
2064 * psymtab.c (require_partial_symbols, dump_psymtab)
2065 (allocate_psymtab): Use filtered printing, not unfiltered.
2066
9fdd7193
TT
20672018-10-04 Tom Tromey <tom@tromey.com>
2068
2069 * complaints.c (complaint_internal): Correctly check complaint
2070 count.
2071
3f2cf4dc
TT
20722018-10-04 Tom Tromey <tom@tromey.com>
2073
2074 * complaints.h (struct complaints): Remove declaration.
2075 * complaints.c (clear_complaints): Remove an unused variable.
2076
4f9bdf7f
RO
20772018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2078
2079 * MAINTAINERS (Write After Approval): Add self.
2080
875e5398
TT
20812018-10-03 Tom Tromey <tom@tromey.com>
2082
2083 * guile/scm-value.c (gdbscm_value_to_string): Initialize
2084 "buffer_contents".
2085 * coffread.c (coff_symtab_read): Initialize "newobj".
2086
8634679f
SM
20872018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
2088
2089 * dwarf2read.c (read_func_scope): Remove struct keyword in
2090 range-based for.
2091
f35d5ade
TT
20922018-10-03 Tom Tromey <tom@tromey.com>
2093
2094 * README: Mention --enable-ubsan.
2095 * NEWS: Mention --enable-ubsan.
2096 * acinclude.m4: Include sanitize.m4.
2097 * configure: Rebuild.
2098 * configure.ac: Call AM_GDB_UBSAN.
2099 * sanitize.m4: New file.
2100
1dffa580
TT
21012018-10-03 Tom Tromey <tom@tromey.com>
2102
2103 * expression.h (enum exp_opcode): Use uint8_t as base type.
2104 * expprint.c (op_name): Handle invalid opcodes.
2105
5e70ee09
TT
21062018-10-03 Tom Tromey <tom@tromey.com>
2107
2108 * parse.c (prefixify_expression): Add assert.
2109 (parse_exp_in_context_1): Throw exception if the expression is
2110 empty.
2111
4dd1b460
TT
21122018-10-03 Tom Tromey <tom@tromey.com>
2113
2114 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
2115
20562150
TT
21162018-10-03 Tom Tromey <tom@tromey.com>
2117
2118 * c-exp.y (parse_number): Work in unsigned. Remove casts.
2119
d359392f
TT
21202018-10-03 Tom Tromey <tom@tromey.com>
2121
2122 * dwarf2read.c (read_subrange_type): Make "negative_mask"
2123 unsigned.
2124
0101665f
TT
21252018-10-03 Tom Tromey <tom@tromey.com>
2126
2127 * findvar.c (extract_integer): Do work in an unsigned type.
2128
ad69edbb
TT
21292018-10-03 Tom Tromey <tom@tromey.com>
2130
2131 * common/enum-flags.h (enum_flags::operator~): Add static assert.
2132 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
2133 base type.
2134 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
2135 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
2136 type.
2137 * c-lang.h (enum c_string_type_values): Use unsigned as base
2138 type.
2139 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2140
780942fc
TT
21412018-10-03 Tom Tromey <tom@tromey.com>
2142
2143 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
2144 <~dwarf2_frame_state_reg_info>: Update.
2145 <dwarf2_frame_state_reg_info>: Update.
2146 <alloc_regs>: Add assertion. Update.
2147 <reg>: Now a std::vector.
2148 <num_regs>: Remove.
2149 <swap>: Update.
2150 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2151 (execute_cfa_program_test, dwarf2_frame_cache): Update.
2152
10657c04
TT
21532018-10-03 Tom Tromey <tom@tromey.com>
2154
2155 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
2156
34c0fc00
PW
21572018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2158
2159 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
2160
2398abf8
TT
21612018-10-02 Tom Tromey <tom@tromey.com>
2162
2163 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2164
4399bce9 21652018-10-02 John Darrington <john@darrington.wattle.id.au>
c1168a2f
JD
2166
2167 * NEWS: Mention changed commands.
2168 * ser-uds.c: New file.
2169 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
2170 * configure: Regenerate.
2171 * Makefile.in: Add new file.
2172 * serial.c (serial_open): Check if filename is a socket
4399bce9 2173 and lookup the appropriate interface accordingly.
c1168a2f 2174
05c71722
AH
21752018-10-01 Alan Hayward <alan.hayward@arm.com>
2176
2177 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
2178 define.
2179 (AARCH64_EXTRA_MAGIC): Likewise.
2180 (AARCH64_FPSIMD_MAGIC): Likewise.
2181 (AARCH64_SVE_MAGIC): Likewise.
2182 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
2183 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
2184 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
2185 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
2186 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
2187 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
2188 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
2189 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
2190 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
2191 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
2192 (read_aarch64_ctx): Add function.
2193 (aarch64_linux_sigframe_init): Detect FP registers.
2194
c74e7cb9
AH
21952018-10-01 Alan Hayward <alan.hayward@arm.com>
2196
2197 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
2198 (AARCH64_D0_REGNUM): Likewise.
2199 (AARCH64_S0_REGNUM): Likewise.
2200 (AARCH64_H0_REGNUM): Likewise.
2201 (AARCH64_B0_REGNUM): Likewise.
2202 (AARCH64_SVE_V0_REGNUM): Likewise.
2203 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
2204 (AARCH64_D0_REGNUM): Likewise.
2205 (AARCH64_S0_REGNUM): Likewise.
2206 (AARCH64_H0_REGNUM): Likewise.
2207 (AARCH64_B0_REGNUM): Likewise.
2208 (AARCH64_SVE_V0_REGNUM): Likewise.
2209
12b164e9
GB
22102018-10-01 Gary Benson <gbenson@redhat.com>
2211
2212 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
2213 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
2214 prfpregset_t instead of gdb_prfpregset_t.
2215 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
2216 * configure, config.in: Rebuild.
2217
7c619dbd
GB
22182018-10-01 Gary Benson <gbenson@redhat.com>
2219
2220 * common/gdb_proc_service.h: New file, factored out from...
2221 * gdb_proc_service.h: Moved common code to the above file.
2222 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2223
358ffcf2
GB
22242018-10-01 Gary Benson <gbenson@redhat.com>
2225
2226 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2227 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
2228
43b7e92b
GB
22292018-10-01 Gary Benson <gbenson@redhat.com>
2230
2231 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2232 (AC_CHECK_HEADERS): Check for linux/elf.h.
2233 * configure, config.in: Rebuild.
2234 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2235 doesn't define elf_fpregset_t.
2236
3795e814
GB
22372018-10-01 Gary Benson <gbenson@redhat.com>
2238
2239 * gdb_proc_service.h: Whitespace change.
2240
4176f14d
TT
22412018-10-01 Tom Tromey <tom@tromey.com>
2242
2243 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2244 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2245 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2246
a95746f9
TT
22472018-10-01 Tom Tromey <tom@tromey.com>
2248
2249 * README: Minor change.
2250
dd203782
PA
22512018-09-30 Pedro Alves <palves@redhat.com>
2252
2253 * darwin-nat-info.c (darwin_debug_regions_recurse)
2254 (info_mach_exceptions_command): Remove unused local variables.
2255 * darwin-nat.c (darwin_decode_notify_message)
2256 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2257 (darwin_stop_inferior, darwin_setup_exceptions)
2258 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2259 (darwin_nat_target::attach, darwin_nat_target::detach)
2260 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2261 local variables.
2262 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2263 variables.
2264
c82a2e6f
TT
22652018-09-29 Tom Tromey <tom@tromey.com>
2266
2267 * README: Remove some leftover text.
2268
7f0bd420
TT
22692018-09-29 Tom Tromey <tom@tromey.com>
2270
2271 * PROBLEMS: Rewrite.
2272 * README: Update.
2273
f37bc8b1
JB
22742018-09-28 John Baldwin <jhb@FreeBSD.org>
2275
2276 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2277 case with explicit breakpoint kind.
2278 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2279 'additional_info' and related logic.
2280 (riscv_debug_breakpoints): New variable.
2281 (riscv_breakpoint_kind_from_pc): Use the length of the existing
2282 instruction to determine the breakpoint kind.
2283 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2284 flag. Update description of 'set/show riscv
2285 use-compressed-breakpoints' flag.
2286
f67ffa6a
AB
22872018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
2288
2289 (NEWS): Mention changes to frame related commands.
2290 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2291 (add_prefix_cmd_suppress_notification): New function.
2292 (add_com_suppress_notification): Call
2293 add_cmd_suppress_notification.
2294 * command.h (add_cmd_suppress_notification): Declare.
2295 (add_prefix_cmd_suppress_notification): Declare.
2296 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2297 (parse_frame_specification): Moved from stack.c, with
2298 simplification to handle a single argument.
2299 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2300 switch to the selected frame. Add a header comment.
2301 * stack.c: Remove 'safe-ctype.h' include.
2302 (find_frame_for_function): Add declaration.
2303 (find_frame_for_address): New function.
2304 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2305 (frame_selection_by_function_completer): New function.
2306 (info_frame_command): Rename to...
2307 (info_frame_command_core): ...this, and update parameter types.
2308 (select_frame_command): Rename to...
2309 (select_frame_command_core): ...this, and update parameter types.
2310 (frame_command): Rename to...
2311 (frame_command_core): ...this, and update parameter types.
2312 (class frame_command_helper): New class to wrap implementations of
2313 frame related sub-commands.
2314 (frame_apply_cmd_list): New static global.
2315 (frame_cmd_list): Make static.
2316 (select_frame_cmd_list): New global for sub-commands.
2317 (info_frame_cmd_list): New global for sub-commands.
2318 (_initialize_stack): Register sub-commands for 'frame',
2319 'select-frame', and 'info frame'. Update 'frame apply' commands
2320 to use frame_apply_cmd_list. Move function local static
2321 frame_apply_list to file static frame_apply_cmd_list for
2322 consistency.
2323 * stack.h (select_frame_command): Delete declarationn.
2324 (select_frame_for_mi): Declare new function.
2325
d354055e
AB
23262018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2329 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2330 and NOP.
2331
85392414
SM
23322018-09-26 Simon Marchi <simon.marchi@ericsson.com>
2333
2334 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2335
896ee098
TT
23362018-09-26 Tom Tromey <tom@tromey.com>
2337
2338 * valops.c (auto_abandon): Remove dead code.
2339
57dbb3af
TT
23402018-09-26 Tom Tromey <tom@tromey.com>
2341
2342 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2343
b5a9bfbe
TT
23442018-09-24 Tom Tromey <tom@tromey.com>
2345
2346 * common/pathstuff.c (get_standard_cache_dir): Make
2347 "xdg_cache_home" and "home" const.
2348 * top.c (init_history): Make "tmpenv" const.
2349 * main.c (get_init_files): Make "homedir" const.
2350
ae778caf
TT
23512018-09-23 Tom Tromey <tom@tromey.com>
2352
2353 PR python/18852:
2354 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2355
2b4ad2fe
TT
23562018-09-23 Tom Tromey <tom@tromey.com>
2357
2358 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2359 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2360 * python/python-internal.h (gdbpy_handle_exception): Declare.
2361 * python/py-utils.c (gdbpy_handle_exception): New function.
2362
fd3ba736
TT
23632018-09-23 Tom Tromey <tom@tromey.com>
2364
2365 PR python/17284:
2366 * python/py-type.c (typy_template_argument): Check for negative
2367 argument number.
2368
39a24317
TT
23692018-09-23 Tom Tromey <tom@tromey.com>
2370
2371 PR python/14062:
2372 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2373
f5769a2c
TT
23742018-09-23 Tom Tromey <tom@tromey.com>
2375
2376 PR python/18170:
2377 * python/py-value.c (valpy_int): Allow conversion from pointer
2378 type.
2379
1c1e54f6
TT
23802018-09-23 Tom Tromey <tom@tromey.com>
2381
2382 PR python/20126:
2383 * python/py-value.c (valpy_int): Respect type sign.
2384
fb4fa946
TT
23852018-09-23 Tom Tromey <tom@tromey.com>
2386
2387 PR python/18352;
2388 * python/py-value.c (valpy_float): Allow conversions from int or
2389 char.
2390 (valpy_int, valpy_long): Allow conversions from float.
2391
65773341
TT
23922018-09-23 Tom Tromey <tom@tromey.com>
2393
2394 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2395 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2396
1db88d22
RO
23972018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2398
2399 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2400 __sighndlr.
2401 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2402
a44294f5
JT
24032018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2404
2405 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2406 target_terminal::ours().
2407
0c0a40e0
SM
24082018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2409
2410 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2411 of vl to ULONGEST.
2412
4daf1902
YS
24132018-09-21 Yacov Simhony <ysimhony@gmail.com>
2414
2415 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2416 redundant condition.
2417
c475f569
RO
24182018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2419
2420 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2421
2422 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2423 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2424 * sol-thread.c (ps_pdmodel): Don't guard definition.
2425
2426 * procfs.c: Fix formatting.
2427
2428 * procfs.c (sysset_t_alloc): Remove.
2429 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2430 (procfs_debug_inferior): Likewise.
2431 (procfs_set_exec_trap): Likewise.
2432 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2433 (proc_set_traced_sysexit): Likewise.
2434
2435 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2436 (dead_procinfo): Likewise.
2437 (proc_warn): Likewise.
2438 (proc_error): Likewise.
2439 (proc_get_LDT_entry): Likewise.
2440 (do_attach): Likewise.
2441 (procfs_target::pid_to_str): Likewise.
2442 (iterate_over_mappings): Likewise.
2443
2444 * procfs.c (create_procinfo): Fix ARI warning.
2445 (proc_get_status): Likewise.
2446 (proc_stop_process): Likewise.
2447 (proc_run_process): Likewise.
2448 (proc_kill): Likewise.
2449 (proc_get_LDT_entry): Likewise.
2450 (procfs_find_LDT_entry): Likewise.
2451 (proc_update_threads): Likewise.
2452 (proc_iterate_over_threads): Likewise.
2453 (do_attach): Likewise.
2454 (procfs_xfer_memory): Likewise.
2455 (invalidate_cache): Likewise.
2456 (procfs_target::resume): Likewise.
2457 (procfs_init_inferior): Likewise.
2458 (procfs_set_exec_trap): Likewise.
2459 (procfs_target::thread_alive): Likewise.
2460 (procfs_target::pid_to_exec_file): Likewise.
2461 (iterate_over_mappings): Likewise.
2462 (procfs_target::make_corefile_notes): Likewise.
2463 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2464
2465 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2466 (procfs_find_LDT_entry): Likewise.
2467 * sol-thread.c (ps_lgetLDT): Likewise.
2468
4206c05e
RO
24692018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2470
2471 PR tdep/17903
2472 * procfs.c (procfs_target): Declare pid_to_exec_file.
2473 (procfs_target::pid_to_exec_file): New.
2474
3d282ac3
RO
24752018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2476
2477 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2478 renaming.
2479 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2480 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2481
8c93fae6
RO
24822018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2483
2484 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2485 (supply_fpregset, fill_fpregset): Move ...
2486 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2487 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2488 Remove references to ioctl-based procfs.
2489 Include <sys/reg.h>.
2490 Remove PR_MODEL_NATIVE guards.
2491 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2492 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2493
79b32f4a
XR
24942018-09-19 Xavier Roirand <roirand@adacore.com>
2495
2496 PR gdb/20981:
2497 * solib-darwin.c (darwin_get_dyld_bfd): New function.
2498 (darwin_solib_get_all_image_info_addr_at_init): Update call.
2499 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2500
07147793
JB
25012018-09-19 John Baldwin <jhb@FreeBSD.org>
2502
2503 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2504 (fbsd_print_sockaddr_in6): Likewise.
2505
23be8da7
RB
25062018-09-19 Richard Bunt <richard.bunt@arm.com>
2507 Chris January <chris.january@arm.com>
2508
2509 * eval.c (skip_undetermined_arglist): Skip argument list helper.
2510 (evaluate_subexp_standard): Return a dummy type when
2511 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2512 OP_F77_UNDETERMINED_ARGLIST case.
2513 * expression.h (enum noside): Update comment.
2514
7307a73a
RO
25152018-09-19 George Vasick <george.vasick@oracle.com>
2516
2517 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2518
13db92d3
RO
25192018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
2520 April Chin <april.chin@oracle.com>
2521 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2522
2523 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2524 uint_t lwpid_t.
2525 (create_procinfo): Print pids in /proc without leading zeros.
2526
3d50f170
SL
25272018-09-18 Sandra Loosemore <sandra@codesourcery.com>
2528
2529 * nios2-tdep.c (nios2_gcc_target_options): New.
2530 (nios2_gdb_arch_init): Install new hook.
2531
b567ca63
SM
25322018-09-18 Simon Marchi <simon.marchi@ericsson.com>
2533
2534 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2535 New file.
2536 * update-gnulib.sh: Apply patch.
2537 * configure: Re-generate.
2538
73f1bd76
JB
25392018-09-18 John Baldwin <jhb@FreeBSD.org>
2540
2541 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2542 description. Make "info proc" command descriptions more
2543 consistent.
2544
8b113111
JB
25452018-09-18 John Baldwin <jhb@FreeBSD.org>
2546
2547 * NEWS: Mention 'info proc files' command.
2548
7e69672e
JB
25492018-09-18 John Baldwin <jhb@FreeBSD.org>
2550
2551 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2552 descriptors for IP_FILES and IP_ALL.
2553
57c2a98a
JB
25542018-09-18 John Baldwin <jhb@FreeBSD.org>
2555
2556 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2557 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2558 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2559 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2560 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2561 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2562 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2563 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2564 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2565 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2566 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2567 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2568 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2569 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2570 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2571 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2572 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2573 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2574 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2575 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2576 (struct fbsd_sockaddr_un): New types.
2577 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2578 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2579 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2580 (fbsd_core_info_proc_files): New functions.
2581 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2582 IP_ALL.
2583 * fbsd-tdep.h (fbsd_info_proc_files_header)
2584 (fbsd_info_proc_files_entry): New.
2585
e98ee8c4
JB
25862018-09-18 John Baldwin <jhb@FreeBSD.org>
2587
2588 * defs.h (enum info_proc_what) [IP_FILES]: New value.
2589 * infcmd.c (info_proc_cmd_files): New function.
2590 (_initialize_infcmd): Register 'info proc files' command.
2591
725e2999
JB
25922018-09-18 John Baldwin <jhb@FreeBSD.org>
2593
2594 * gnulib/aclocal-m4-deps.mk: Re-generate.
2595 * gnulib/aclocal.m4: Re-generate.
2596 * gnulib/config.in: Re-generate.
2597 * gnulib/configure: Re-generate.
2598 * gnulib/import/Makefile.am: Re-generate.
2599 * gnulib/import/Makefile.in: Re-generate.
2600 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2601 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2602 * gnulib/import/arpa_inet.in.h: New file.
2603 * gnulib/import/inet_ntop.c: New file.
2604 * gnulib/import/m4/arpa_inet_h.m4: New file.
2605 * gnulib/import/m4/inet_ntop.m4: New file.
2606 * gnulib/import/m4/netinet_in_h.m4: New file.
2607 * gnulib/import/m4/socklen.m4: New file.
2608 * gnulib/import/m4/sockpfaf.m4: New file.
2609 * gnulib/import/m4/stdalign.m4: New file.
2610 * gnulib/import/m4/sys_uio_h.m4: New file.
2611 * gnulib/import/netinet_in.in.h: New file.
2612 * gnulib/import/stdalign.in.h: New file.
2613 * gnulib/import/sys_socket.c: New file.
2614 * gnulib/import/sys_socket.in.h: New file.
2615 * gnulib/import/sys_uio.in.h: New file.
2616 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2617 module.
2618
2afffa7f
JB
26192018-09-18 John Baldwin <jhb@FreeBSD.org>
2620
2621 * gnulib/aclocal-m4-deps.mk: New file.
2622 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2623 deterministically.
2624
9f235e09
JB
26252018-09-18 John Baldwin <jhb@FreeBSD.org>
2626
2627 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2628 KVE_PATH.
2629
40f03055
TT
26302018-09-18 Tom Tromey <tom@tromey.com>
2631
2632 * compile/compile-object-load.c (struct
2633 link_hash_table_cleanup_data): Add constructor and destructor.
2634 Use DISABLE_COPY_AND_ASSIGN.
2635 (~link_hash_table_cleanup_data): Rename from
2636 link_hash_table_free. Now a destructor.
2637 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
2638
c9e0a7e3
TT
26392018-09-18 Tom Tromey <tom@tromey.com>
2640
2641 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2642 * compile/compile-object-load.c (struct munmap_list): Move to
2643 header file.
2644 (munmap_list::add): Rename from munmap_list_add; rewrite.
2645 (munmap_list::~munmap_list): Rename from munmap_list_free.
2646 (munmap_listp_free_cleanup): Remove.
2647 (compile_object_load): Update.
2648 * compile/compile-object-load.h (struct munmap_list): Move from
2649 compile-object-load.c. Rewrite.
2650
3ff2c72e
AH
26512018-09-18 Alan Hayward <alan.hayward@arm.com>
2652
2653 * aarch64-tdep.c (pass_in_v): Use register size.
2654 (aarch64_extract_return_value): Likewise.
2655 (aarch64_store_return_value): Likewise.
2656
206c1947
RO
26572018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2658
2659 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2660 rlim_t.
2661
6eb5dbce
PW
26622018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2663
2664 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2665 Fix short help line.
2666
ae292b3a
TT
26672018-09-17 Tom Tromey <tom@tromey.com>
2668
2669 PR python/20445:
2670 * configure: Rebuild.
2671 * configure.ac: Conditionally use -DNDEBUG for Python.
2672
da658607
TT
26732018-09-17 Tom Tromey <tom@tromey.com>
2674
2675 * configure: Rebuild.
2676 * configure.ac: Use gmp as a library dependency when checking for
2677 mpfr.
2678
d35da542
PA
26792018-09-17 Pedro Alves <palves@redhat.com>
2680
2681 * python/py-inferior.c (find_inferior_object): Delete.
2682
461464f2
SM
26832018-09-17 Simon Marchi <simon.marchi@ericsson.com>
2684
2685 * compile/compile-cplus-types.c
2686 (compile_cplus_instance::enter_scope): Don't use new_scope after
2687 std::move.
2688
e6cd1dc1
TT
26892018-09-17 Tom Tromey <tom@tromey.com>
2690
2691 * common/pathstuff.c (get_standard_cache_dir): Use
2692 ~/Library/Caches on macOS.
2693 * common/pathstuff.h (get_standard_cache_dir): Update comment.
2694
8588b356
SM
26952018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
2696
2697 PR python/23669
2698 * breakpoint.c (commands_cmd_element): New.
2699 (_initialize_breakpoint): Assign commands_cmd_element.
2700 * breakpoint.h (commands_cmd_element): New.
2701 * cli/cli-script.c (while_cmd_element, if_command,
2702 define_cmd_element): New.
2703 (command_name_equals): Remove.
2704 (process_next_line): Compare commands by pointer, not by name.
2705 (_initialize_cli_script): Assign the various cmd_list_element
2706 variables.
2707 * compile/compile.c (compile_cmd_element): New.
2708 (_initialize_compile): Assign compile_cmd_element.
2709 * compile/compile.h (compile_cmd_element): New.
2710 * guile/guile.c (guile_cmd_element): New.
2711 (install_gdb_commands): Assign guile_cmd_element.
2712 * guile/guile.h (guile_cmd_element): New.
2713 * python/python.c (python_cmd_element): New.
2714 (_initialize_python): Assign python_cmd_element.
2715 * python/python.h (python_cmd_element): New.
2716 * tracepoint.c (while_stepping_cmd_element): New.
2717 (_initialize_tracepoint): Assign while_stepping_cmd_element.
2718 * tracepoint.h (while_stepping_cmd_element): New.
2719
cb524840
TT
27202018-09-17 Tom Tromey <tom@tromey.com>
2721
2722 * infrun.c (save_infcall_suspend_state): Return
2723 infcall_suspend_state_up.
2724 (save_infcall_control_state): Return infcall_control_state_up.
2725 * inferior.h (save_infcall_suspend_state)
2726 (save_infcall_control_state): Declare later. Return unique
2727 pointers.
2728
2d844eaf
TT
27292018-09-17 Tom Tromey <tom@tromey.com>
2730
2731 * infrun.c (struct stop_context): Declare constructor,
2732 destructor, "changed" method.
2733 (stop_context::stop_context): Rename from save_stop_context.
2734 (stop_context::~stop_context): Rename from
2735 release_stop_context_cleanup.
2736 (normal_stop): Update.
2737 (stop_context::changed): Rename from stop_context_changed. Return
2738 bool.
2739
c7c4d3fa
TT
27402018-09-17 Tom Tromey <tom@tromey.com>
2741
2742 * inferior.h (struct infcall_suspend_state_deleter): New.
2743 (infcall_suspend_state_up): New typedef.
2744 (struct infcall_control_state_deleter): New.
2745 (infcall_control_state_up): New typedef.
2746 (make_cleanup_restore_infcall_suspend_state)
2747 (make_cleanup_restore_infcall_control_state): Don't declare.
2748 * infcall.c (call_function_by_hand_dummy): Update.
2749 * infrun.c (do_restore_infcall_suspend_state_cleanup)
2750 (make_cleanup_restore_infcall_suspend_state): Remove.
2751 (do_restore_infcall_control_state_cleanup)
2752 (make_cleanup_restore_infcall_control_state): Remove.
2753
ee841dd8
TT
27542018-09-17 Tom Tromey <tom@tromey.com>
2755
2756 * gdbthread.h (struct thread_control_state): Add initializer.
2757 (class thread_info) <control>: Remove initializer.
2758 * inferior.h (struct inferior_control_state): Add initializer.
2759 (class inferior) <control>: Remove initializer.
2760 (exit_inferior_1): Update.
2761 * infrun.c (struct infcall_control_state): Add constructors.
2762 (save_infcall_control_state): Use new.
2763 (restore_infcall_control_state, discard_infcall_control_state):
2764 Use delete.
2765
117f580a
TT
27662018-09-17 Tom Tromey <tom@tromey.com>
2767
2768 * infrun.c (struct infcall_suspend_state) <registers>: Now a
2769 unique_ptr.
2770 <siginfo_data>: Now a unique_xmalloc_ptr.
2771 (save_infcall_suspend_state, restore_infcall_suspend_state)
2772 (discard_infcall_suspend_state)
2773 (get_infcall_suspend_state_regcache): Update.
2774
dd848631
TT
27752018-09-17 Tom Tromey <tom@tromey.com>
2776
2777 * gdbthread.h (struct thread_suspend_state): Add initializers.
2778 (class thread_info) <suspend>: Remove initializer.
2779 * infrun.c (struct infcall_suspend_state): Add initializers.
2780 (save_infcall_suspend_state): Use new.
2781 (discard_infcall_suspend_state): Use delete.
2782
1a338907
TT
27832018-09-16 Tom Tromey <tom@tromey.com>
2784
2785 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2786 Remove.
2787 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2788 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2789 (py_varobj_iter_new): Likewise.
2790 (py_varobj_get_iterator): Use gdbpy_ref.
2791
4a137fec
TT
27922018-09-16 Tom Tromey <tom@tromey.com>
2793
2794 * python/py-threadevent.c (py_get_event_thread): Simplify.
2795 * python/py-inferior.c (infpy_thread_from_thread_handle):
2796 Return immediately after calling thread_to_thread_object. Use
2797 Py_RETURN_NONE.
2798 (thread_to_thread_object): Set the exception on a NULL return.
2799
8ff03f0b
SM
28002018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2801
2802 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2803
94c8b725
TT
28042018-09-16 Tom Tromey <tom@tromey.com>
2805
2806 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2807 Remove.
2808
db1337cc
TT
28092018-09-16 Tom Tromey <tom@tromey.com>
2810
2811 * python/python-internal.h (thread_to_thread_object): Change
2812 return type.
2813 * python/py-inferior.c (thread_to_thread_object): Return a new
2814 reference.
2815 (infpy_thread_from_thread_handle): Update.
2816 * python/py-infthread.c (gdbpy_selected_thread): Update.
2817 * python/py-stopevent.c (create_stop_event_object): Update.
2818 * python/py-threadevent.c (py_get_event_thread): Return a new
2819 reference.
2820 (py_get_event_thread): Update.
2821 * python/py-event.h (py_get_event_thread): Change return type.
2822 * python/py-continueevent.c (create_continue_event_object):
2823 Update.
2824
0a9db5ad
TT
28252018-09-16 Tom Tromey <tom@tromey.com>
2826
2827 * python/py-progspace.c (pspy_get_objfiles): Update.
2828 * python/python-internal.h (objfile_to_objfile_object): Change
2829 return type.
2830 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2831 Update.
2832 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2833 Update.
2834 * python/python.c (gdbpy_get_current_objfile): Update.
2835 (gdbpy_objfiles): Update.
2836 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2837 Update.
2838 (objfile_to_objfile_object): Return a new reference.
2839 * python/py-symtab.c (stpy_get_objfile): Update.
2840 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2841 Update.
2842
3c7aa307
TT
28432018-09-16 Tom Tromey <tom@tromey.com>
2844
2845 * python/py-inferior.c (infpy_get_progspace): Update.
2846 * python/python-internal.h (pspace_to_pspace_object): Change
2847 return type.
2848 * python/py-newobjfileevent.c
2849 (create_clear_objfiles_event_object): Update.
2850 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2851 Update.
2852 * python/python.c (gdbpy_get_current_progspace): Update.
2853 (gdbpy_progspaces): Update.
2854 * python/py-progspace.c (pspace_to_pspace_object): Return a new
2855 reference.
2856 * python/py-objfile.c (objfpy_get_progspace): Update.
2857 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2858 Update.
2859
8743a9cd
TT
28602018-09-16 Tom Tromey <tom@tromey.com>
2861
2862 * python/lib/gdb/__init__.py (current_progspace, objfiles)
2863 (solib_name, block_for_pc, find_pc_line): New functions.
2864 (execute_unwinders): Update.
2865 * python/py-block.c (gdbpy_block_for_pc): Remove.
2866 * python/py-inferior.c (infpy_get_progspace): New function.
2867 (inferior_object_getset) <progspace>: Add.
2868 * python/py-progspace.c (pspy_objfiles): Rewrite.
2869 (pspy_solib_name, pspy_block_for_pc)
2870 (pspy_find_pc_line, pspy_is_valid): New functions.
2871 (progspace_object_methods): Add entries for solib_name,
2872 block_for_pc, find_pc_line, is_valid.
2873 * python/python-internal.h (gdbpy_block_for_pc)
2874 (build_objfiles_list): Don't declare.
2875 * python/python.c: Don't include solib.h.
2876 (gdbpy_solib_name, gdbpy_find_pc_line)
2877 (gdbpy_get_current_progspace, build_objfiles_list)
2878 (gdbpy_objfiles): Remove.
2879 (GdbMethods) <current_progspace, objfiles, block_for_pc,
2880 solib_name, find_pc_line>: Remove entries.
2881
65e65158
TT
28822018-09-16 Tom Tromey <tom@tromey.com>
2883
2884 * top.c (new_ui_command): Use GNU style for metasyntactic
2885 variables.
2886 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2887 variables.
2888 * maint.c (maintenance_translate_address): Remove "<>" around
2889 text.
2890 * interps.c (interpreter_exec_cmd): Use GNU style for
2891 metasyntactic variables.
2892 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2893 metasyntactic variables.
2894 * tracepoint.c (tfind_range_command): Use GNU style for
2895 metasyntactic variables.
2896 (tfind_outside_command): Likewise.
2897 (_initialize_tracepoint): Likewise.
2898 * remote.c (extended_remote_target::create_inferior): Use GNU
2899 style for metasyntactic variables.
2900 * sparc64-tdep.c (adi_examine_command): Use GNU style for
2901 metasyntactic variables.
2902 (adi_assign_command): Likewise.
2903
f4bab6ff
TT
29042018-09-16 Tom Tromey <tom@tromey.com>
2905
2906 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2907 metasyntactic variables. Print message if no disassembler options
2908 are available.
2909
cbaaa0ca
TT
29102018-09-15 Tom Tromey <tom@tromey.com>
2911
2912 * infcmd.c (get_inferior_args): Return const char *.
2913 * inferior.h (get_inferior_args): Return type now const.
2914 * linux-tdep.c (linux_fill_prpsinfo): Update.
2915 * procfs.c (procfs_target::make_corefile_notes): Update.
2916
a3a6aef4
TT
29172018-09-07 Tom Tromey <tom@tromey.com>
2918
2919 * python/python.c (execute_gdb_command): Call bpstat_do_actions
2920 inside the TRY.
2921
f70e088f
SL
29222018-09-14 Sandra Loosemore <sandra@codesourcery.com>
2923
2924 * nios2-tdep.c (nios2_type_align): New.
2925 (nios2_gdb_arch_init): Install type_align hook.
2926
2fabdf33
AB
29272018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2928
2929 * eval.c (fake_method::fake_method): Call xzalloc directly for a
2930 type that is neither object file owned, nor gdbarch owned.
2931 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2932 gdbarch is non-NULL.
2933 (alloc_type_instance): Allocate non-objfile owned types on the
2934 gdbarch obstack.
2935 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2936 using TYPE_ALLOC to ensure memory is allocated on the correct
2937 obstack.
2938 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2939 obstack, or the gdbarch obstack.
2940 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2941
b4b08fa2
TT
29422018-09-14 Tom Tromey <tom@tromey.com>
2943
2944 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2945 block.
2946
87b240d4
TT
29472018-09-14 Tom Tromey <tom@tromey.com>
2948
2949 * nat/fork-inferior.c (get_startup_shell): Remove "static".
2950
7d221512
TT
29512018-09-13 Tom Tromey <tom@tromey.com>
2952
2953 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2954 static.
2955
97e67fc6
TT
29562018-09-13 Tom Tromey <tom@tromey.com>
2957
2958 * exec.c (try_open_exec_file): Use std::string.
2959
803c08d0
TT
29602018-09-13 Tom Tromey <tom@tromey.com>
2961
2962 * utils.h (gdb_bfd_errmsg): Return std::string.
2963 * exec.c (exec_file_attach): Update.
2964 * compile/compile-object-load.c (compile_object_load): Update.
2965 * utils.c (gdb_bfd_errmsg): Return std::string.
2966
5b4cbbe3
TT
29672018-09-13 Tom Tromey <tom@tromey.com>
2968
2969 * procfs.c (struct procinfo_deleter): New.
2970 (procinfo_up): New typedef.
2971 (do_destroy_procinfo_cleanup): Remove.
2972 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
2973
db68fbe2
TT
29742018-09-13 Tom Tromey <tom@tromey.com>
2975
2976 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2977
0ae1a321
SM
29782018-09-13 Simon Marchi <simon.marchi@ericsson.com>
29792018-09-13 Tom Tromey <tom@tromey.com>
2980
2981 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2982 (pspy_get_objfiles): New function.
2983 (progspace_object_methods): New.
2984 (pspace_object_type): Add tp_methods callback.
2985 * python/python-internal.h (build_objfiles_list): New
2986 declaration.
2987 * python/python.c (build_objfiles_list): New function.
2988 (gdbpy_objfiles): Implement using build_objfiles_list.
2989 * NEWS: Mention the Progspace.objfiles method.
2990
a40bf0c2
SM
29912018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2992
2993 * python/py-inferior.c (infpy_get_progspace): New function.
2994 (inferior_object_getset): Add progspace property.
2995 * NEWS: Mention the new property.
2996
4a3fe98f
TT
29972018-09-13 Tom Tromey <tom@tromey.com>
2998
2999 PR rust/23650:
3000 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
3001
098b2108
TT
30022018-09-13 Tom Tromey <tom@tromey.com>
3003
3004 PR rust/23626:
3005 * rust-lang.c (rust_enum_variant): Now static.
3006 (rust_empty_enum_p): New function.
3007 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
3008 Handle empty enum.
3009
1256af7d
SM
30102018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3011
3012 * python/py-inferior.c (infpy_repr): New.
3013 (inferior_object_type): Register infpy_repr.
3014 * python/py-objfile.c (objfpy_repr): New.
3015 (objfile_object_type): Register objfpy_repr.
3016
f117a62c
JB
30172018-09-12 John Baldwin <jhb@FreeBSD.org>
3018
3019 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
3020
88f22c34
JB
30212018-09-12 John Baldwin <jhb@FreeBSD.org>
3022
3023 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
3024 typo.
3025
3c025cfe
SDJ
30262018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
3027
3028 * common/common-utils.c: Don't include '<sys/stat.h>'.
3029 (is_regular_file): Move to...
3030 * common/filestuff.c (is_regular_file): ... here.
3031 * common/common-utils.h (is_regular_file): Move to...
3032 * common/filestuff.h (is_regular_file): ... here.
3033
3e68067f
SM
30342018-09-12 Simon Marchi <simon.marchi@ericsson.com>
3035
3036 * skip.c (debug_skip): New variable.
3037 (skiplist_entry::do_skip_file_p): Add debug output.
3038 (skiplist_entry::do_skip_gfile_p): Likewise.
3039 (skiplist_entry::skip_function_p): Likewise.
3040 (_initialize_step_skip): Create debug command.
3041 * NEWS: Mention set/show debug skip.
3042
d6be54ef
XR
30432018-09-11 Xavier Roirand <roirand@adacore.com>
3044
3045 * darwin-nat.c (should_disable_startup_with_shell):
3046 New function.
3047 (darwin_nat_target::create_inferior): Add call.
3048
de1ec836
XR
30492018-09-11 Xavier Roirand <roirand@adacore.com>
3050
3051 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
3052 inf_port, msg_state>: Initialize.
3053 (struct darwin_thread_info) <signaled, single_step>: Change
3054 type and initialize.
3055 (struct darwin_thread_info) <event>: Initialize.
3056
e2fc52e7
SDJ
30572018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3058
3059 PR gdb/23555
3060 PR gdb/23558
3061 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
3062 guesses.
3063
5e8754f9
SDJ
30642018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3065
3066 Revert:
3067 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3068
3069 PR gdb/23555
3070 PR gdb/23558
3071 * gnulib/aclocal.m4: Regenerate.
3072 * gnulib/config.in: Regenerate.
3073 * gnulib/configure: Regenerate.
3074 * gnulib/import/Makefile.am: Update.
3075 * gnulib/import/Makefile.in: Update.
3076 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3077 * gnulib/import/_Noreturn.h: ... this.
3078 * gnulib/import/alloca.in.h: Update.
3079 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3080 * gnulib/import/arg-nonnull.h: ... this.
3081 * gnulib/import/assure.h: Update.
3082 * gnulib/import/at-func.c: Update.
3083 * gnulib/import/basename-lgpl.c: Update.
3084 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3085 * gnulib/import/c++defs.h: ... this.
3086 * gnulib/import/canonicalize-lgpl.c: Update.
3087 * gnulib/import/cdefs.h: Update.
3088 * gnulib/import/chdir-long.c: Update.
3089 * gnulib/import/chdir-long.h: Update.
3090 * gnulib/import/cloexec.c: Update.
3091 * gnulib/import/cloexec.h: Update.
3092 * gnulib/import/close.c: Update.
3093 * gnulib/import/closedir.c: Update.
3094 * gnulib/import/config.charset: Update.
3095 * gnulib/import/dirent-private.h: Update.
3096 * gnulib/import/dirent.in.h: Update.
3097 * gnulib/import/dirfd.c: Update.
3098 * gnulib/import/dirname-lgpl.c: Update.
3099 * gnulib/import/dirname.h: Update.
3100 * gnulib/import/dosname.h: Update.
3101 * gnulib/import/dup-safer-flag.c: Update.
3102 * gnulib/import/dup-safer.c: Update.
3103 * gnulib/import/dup.c: Update.
3104 * gnulib/import/dup2.c: Update.
3105 * gnulib/import/errno.in.h: Update.
3106 * gnulib/import/error.c: Update.
3107 * gnulib/import/error.h: Update.
3108 * gnulib/import/exitfail.c: Update.
3109 * gnulib/import/exitfail.h: Update.
3110 * gnulib/import/extra/update-copyright: Update.
3111 * gnulib/import/fchdir.c: Update.
3112 * gnulib/import/fcntl.c: Update.
3113 * gnulib/import/fcntl.in.h: Update.
3114 * gnulib/import/fd-hook.c: Update.
3115 * gnulib/import/fd-hook.h: Update.
3116 * gnulib/import/fd-safer-flag.c: Update.
3117 * gnulib/import/fd-safer.c: Update.
3118 * gnulib/import/fdopendir.c: Update.
3119 * gnulib/import/filename.h: Update.
3120 * gnulib/import/filenamecat-lgpl.c: Update.
3121 * gnulib/import/filenamecat.h: Update.
3122 * gnulib/import/flexmember.h: Update.
3123 * gnulib/import/float+.h: Update.
3124 * gnulib/import/float.c: Update.
3125 * gnulib/import/float.in.h: Update.
3126 * gnulib/import/fnmatch.c: Update.
3127 * gnulib/import/fnmatch.in.h: Update.
3128 * gnulib/import/fnmatch_loop.c: Update.
3129 * gnulib/import/fpucw.h: Update.
3130 * gnulib/import/frexp.c: Update.
3131 * gnulib/import/frexpl.c: Update.
3132 * gnulib/import/fstat.c: Update.
3133 * gnulib/import/fstatat.c: Update.
3134 * gnulib/import/getcwd-lgpl.c: Update.
3135 * gnulib/import/getcwd.c: Update.
3136 * gnulib/import/getdtablesize.c: Update.
3137 * gnulib/import/getlogin_r.c: Update.
3138 * gnulib/import/getprogname.c: Update.
3139 * gnulib/import/getprogname.h: Update.
3140 * gnulib/import/gettext.h: Update.
3141 * gnulib/import/gettimeofday.c: Update.
3142 * gnulib/import/glob-libc.h: Update.
3143 * gnulib/import/glob.c: Update.
3144 * gnulib/import/glob.in.h: Update.
3145 * gnulib/import/glob_internal.h: Update.
3146 * gnulib/import/glob_pattern_p.c: Update.
3147 * gnulib/import/globfree.c: Update.
3148 * gnulib/import/hard-locale.c: Update.
3149 * gnulib/import/hard-locale.h: Update.
3150 * gnulib/import/intprops.h: Update.
3151 * gnulib/import/inttypes.in.h: Update.
3152 * gnulib/import/isnan.c: Update.
3153 * gnulib/import/isnand-nolibm.h: Update.
3154 * gnulib/import/isnand.c: Update.
3155 * gnulib/import/isnanl-nolibm.h: Update.
3156 * gnulib/import/isnanl.c: Update.
3157 * gnulib/import/itold.c: Update.
3158 * gnulib/import/libc-config.h: Update.
3159 * gnulib/import/limits.in.h: Update.
3160 * gnulib/import/localcharset.c: Update.
3161 * gnulib/import/localcharset.h: Update.
3162 * gnulib/import/localtime-buffer.c: Update.
3163 * gnulib/import/localtime-buffer.h: Update.
3164 * gnulib/import/lstat.c: Update.
3165 * gnulib/import/m4/00gnulib.m4: Update.
3166 * gnulib/import/m4/__inline.m4: Update.
3167 * gnulib/import/m4/absolute-header.m4: Update.
3168 * gnulib/import/m4/alloca.m4: Update.
3169 * gnulib/import/m4/builtin-expect.m4: Update.
3170 * gnulib/import/m4/canonicalize.m4: Update.
3171 * gnulib/import/m4/chdir-long.m4: Update.
3172 * gnulib/import/m4/close.m4: Update.
3173 * gnulib/import/m4/closedir.m4: Update.
3174 * gnulib/import/m4/configmake.m4: Update.
3175 * gnulib/import/m4/d-ino.m4: Update.
3176 * gnulib/import/m4/d-type.m4: Update.
3177 * gnulib/import/m4/dirent_h.m4: Update.
3178 * gnulib/import/m4/dirfd.m4: Update.
3179 * gnulib/import/m4/dirname.m4: Update.
3180 * gnulib/import/m4/double-slash-root.m4: Update.
3181 * gnulib/import/m4/dup.m4: Update.
3182 * gnulib/import/m4/dup2.m4: Update.
3183 * gnulib/import/m4/eealloc.m4: Update.
3184 * gnulib/import/m4/environ.m4: Update.
3185 * gnulib/import/m4/errno_h.m4: Update.
3186 * gnulib/import/m4/error.m4: Update.
3187 * gnulib/import/m4/exponentd.m4: Update.
3188 * gnulib/import/m4/exponentl.m4: Update.
3189 * gnulib/import/m4/extensions.m4: Update.
3190 * gnulib/import/m4/extern-inline.m4: Update.
3191 * gnulib/import/m4/fchdir.m4: Update.
3192 * gnulib/import/m4/fcntl-o.m4: Update.
3193 * gnulib/import/m4/fcntl.m4: Update.
3194 * gnulib/import/m4/fcntl_h.m4: Update.
3195 * gnulib/import/m4/fdopendir.m4: Update.
3196 * gnulib/import/m4/filenamecat.m4: Update.
3197 * gnulib/import/m4/flexmember.m4: Update.
3198 * gnulib/import/m4/float_h.m4: Update.
3199 * gnulib/import/m4/fnmatch.m4: Update.
3200 * gnulib/import/m4/fnmatch_h.m4: Update.
3201 * gnulib/import/m4/fpieee.m4: Update.
3202 * gnulib/import/m4/frexp.m4: Update.
3203 * gnulib/import/m4/frexpl.m4: Update.
3204 * gnulib/import/m4/fstat.m4: Update.
3205 * gnulib/import/m4/fstatat.m4: Update.
3206 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3207 * gnulib/import/m4/getcwd-path-max.m4: Update.
3208 * gnulib/import/m4/getcwd.m4: Update.
3209 * gnulib/import/m4/getdtablesize.m4: Update.
3210 * gnulib/import/m4/getlogin.m4: Update.
3211 * gnulib/import/m4/getlogin_r.m4: Update.
3212 * gnulib/import/m4/getpagesize.m4: Update.
3213 * gnulib/import/m4/getprogname.m4: Update.
3214 * gnulib/import/m4/gettimeofday.m4: Update.
3215 * gnulib/import/m4/glibc21.m4: Update.
3216 * gnulib/import/m4/glob.m4: Update.
3217 * gnulib/import/m4/glob_h.m4: Update.
3218 * gnulib/import/m4/gnulib-cache.m4: Update.
3219 * gnulib/import/m4/gnulib-common.m4: Update.
3220 * gnulib/import/m4/gnulib-comp.m4: Update.
3221 * gnulib/import/m4/gnulib-tool.m4: Update.
3222 * gnulib/import/m4/hard-locale.m4: Update.
3223 * gnulib/import/m4/include_next.m4: Update.
3224 * gnulib/import/m4/inttypes-pri.m4: Update.
3225 * gnulib/import/m4/inttypes.m4: Update.
3226 * gnulib/import/m4/isnand.m4: Update.
3227 * gnulib/import/m4/isnanl.m4: Update.
3228 * gnulib/import/m4/largefile.m4: Update.
3229 * gnulib/import/m4/limits-h.m4: Update.
3230 * gnulib/import/m4/localcharset.m4: Update.
3231 * gnulib/import/m4/locale-fr.m4: Update.
3232 * gnulib/import/m4/locale-ja.m4: Update.
3233 * gnulib/import/m4/locale-zh.m4: Update.
3234 * gnulib/import/m4/localtime-buffer.m4: Update.
3235 * gnulib/import/m4/longlong.m4: Update.
3236 * gnulib/import/m4/lstat.m4: Update.
3237 * gnulib/import/m4/malloc.m4: Update.
3238 * gnulib/import/m4/malloca.m4: Update.
3239 * gnulib/import/m4/math_h.m4: Update.
3240 * gnulib/import/m4/mbrtowc.m4: Update.
3241 * gnulib/import/m4/mbsinit.m4: Update.
3242 * gnulib/import/m4/mbsrtowcs.m4: Update.
3243 * gnulib/import/m4/mbstate_t.m4: Update.
3244 * gnulib/import/m4/memchr.m4: Update.
3245 * gnulib/import/m4/memmem.m4: Update.
3246 * gnulib/import/m4/mempcpy.m4: Update.
3247 * gnulib/import/m4/memrchr.m4: Update.
3248 * gnulib/import/m4/mkdir.m4: Update.
3249 * gnulib/import/m4/mkstemp.m4: Update.
3250 * gnulib/import/m4/mmap-anon.m4: Update.
3251 * gnulib/import/m4/mode_t.m4: Update.
3252 * gnulib/import/m4/msvc-inval.m4: Update.
3253 * gnulib/import/m4/msvc-nothrow.m4: Update.
3254 * gnulib/import/m4/multiarch.m4: Update.
3255 * gnulib/import/m4/nocrash.m4: Update.
3256 * gnulib/import/m4/off_t.m4: Update.
3257 * gnulib/import/m4/onceonly.m4: Update.
3258 * gnulib/import/m4/open-cloexec.m4: Update.
3259 * gnulib/import/m4/open.m4: Update.
3260 * gnulib/import/m4/openat.m4: Update.
3261 * gnulib/import/m4/opendir.m4: Update.
3262 * gnulib/import/m4/pathmax.m4: Update.
3263 * gnulib/import/m4/rawmemchr.m4: Update.
3264 * gnulib/import/m4/readdir.m4: Update.
3265 * gnulib/import/m4/readlink.m4: Update.
3266 * gnulib/import/m4/realloc.m4: Update.
3267 * gnulib/import/m4/rename.m4: Update.
3268 * gnulib/import/m4/rewinddir.m4: Update.
3269 * gnulib/import/m4/rmdir.m4: Update.
3270 * gnulib/import/m4/save-cwd.m4: Update.
3271 * gnulib/import/m4/secure_getenv.m4: Update.
3272 * gnulib/import/m4/setenv.m4: Update.
3273 * gnulib/import/m4/signal_h.m4: Update.
3274 * gnulib/import/m4/ssize_t.m4: Update.
3275 * gnulib/import/m4/stat-time.m4: Update.
3276 * gnulib/import/m4/stat.m4: Update.
3277 * gnulib/import/m4/std-gnu11.m4: Update.
3278 * gnulib/import/m4/stdbool.m4: Update.
3279 * gnulib/import/m4/stddef_h.m4: Update.
3280 * gnulib/import/m4/stdint.m4: Update.
3281 * gnulib/import/m4/stdio_h.m4: Update.
3282 * gnulib/import/m4/stdlib_h.m4: Update.
3283 * gnulib/import/m4/strchrnul.m4: Update.
3284 * gnulib/import/m4/strdup.m4: Update.
3285 * gnulib/import/m4/strerror.m4: Update.
3286 * gnulib/import/m4/string_h.m4: Update.
3287 * gnulib/import/m4/strstr.m4: Update.
3288 * gnulib/import/m4/strtok_r.m4: Update.
3289 * gnulib/import/m4/sys_socket_h.m4: Update.
3290 * gnulib/import/m4/sys_stat_h.m4: Update.
3291 * gnulib/import/m4/sys_time_h.m4: Update.
3292 * gnulib/import/m4/sys_types_h.m4: Update.
3293 * gnulib/import/m4/tempname.m4: Update.
3294 * gnulib/import/m4/time_h.m4: Update.
3295 * gnulib/import/m4/unistd-safer.m4: Update.
3296 * gnulib/import/m4/unistd_h.m4: Update.
3297 * gnulib/import/m4/warn-on-use.m4: Update.
3298 * gnulib/import/m4/wchar_h.m4: Update.
3299 * gnulib/import/m4/wchar_t.m4: Update.
3300 * gnulib/import/m4/wctype_h.m4: Update.
3301 * gnulib/import/m4/wint_t.m4: Update.
3302 * gnulib/import/malloc.c: Update.
3303 * gnulib/import/malloc/scratch_buffer.h: Update.
3304 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3305 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3306 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3307 * gnulib/import/malloca.c: Update.
3308 * gnulib/import/malloca.h: Update.
3309 * gnulib/import/malloca.valgrind: Update.
3310 * gnulib/import/math.in.h: Update.
3311 * gnulib/import/mbrtowc.c: Update.
3312 * gnulib/import/mbsinit.c: Update.
3313 * gnulib/import/mbsrtowcs-impl.h: Update.
3314 * gnulib/import/mbsrtowcs-state.c: Update.
3315 * gnulib/import/mbsrtowcs.c: Update.
3316 * gnulib/import/memchr.c: Update.
3317 * gnulib/import/memmem.c: Update.
3318 * gnulib/import/mempcpy.c: Update.
3319 * gnulib/import/memrchr.c: Update.
3320 * gnulib/import/mkdir.c: Update.
3321 * gnulib/import/mkstemp.c: Update.
3322 * gnulib/import/msvc-inval.c: Update.
3323 * gnulib/import/msvc-inval.h: Update.
3324 * gnulib/import/msvc-nothrow.c: Update.
3325 * gnulib/import/msvc-nothrow.h: Update.
3326 * gnulib/import/open.c: Update.
3327 * gnulib/import/openat-die.c: Update.
3328 * gnulib/import/openat-priv.h: Update.
3329 * gnulib/import/openat-proc.c: Update.
3330 * gnulib/import/openat.c: Update.
3331 * gnulib/import/openat.h: Update.
3332 * gnulib/import/opendir.c: Update.
3333 * gnulib/import/pathmax.h: Update.
3334 * gnulib/import/pipe-safer.c: Update.
3335 * gnulib/import/rawmemchr.c: Update.
3336 * gnulib/import/readdir.c: Update.
3337 * gnulib/import/readlink.c: Update.
3338 * gnulib/import/realloc.c: Update.
3339 * gnulib/import/ref-add.sin: Update.
3340 * gnulib/import/ref-del.sin: Update.
3341 * gnulib/import/rename.c: Update.
3342 * gnulib/import/rewinddir.c: Update.
3343 * gnulib/import/rmdir.c: Update.
3344 * gnulib/import/same-inode.h: Update.
3345 * gnulib/import/save-cwd.c: Update.
3346 * gnulib/import/save-cwd.h: Update.
3347 * gnulib/import/scratch_buffer.h: Update.
3348 * gnulib/import/secure_getenv.c: Update.
3349 * gnulib/import/setenv.c: Update.
3350 * gnulib/import/signal.in.h: Update.
3351 * gnulib/import/stat-time.c: Update.
3352 * gnulib/import/stat-time.h: Update.
3353 * gnulib/import/stat-w32.c: Update.
3354 * gnulib/import/stat-w32.h: Update.
3355 * gnulib/import/stat.c: Update.
3356 * gnulib/import/stdbool.in.h: Update.
3357 * gnulib/import/stddef.in.h: Update.
3358 * gnulib/import/stdint.in.h: Update.
3359 * gnulib/import/stdio.in.h: Update.
3360 * gnulib/import/stdlib.in.h: Update.
3361 * gnulib/import/str-two-way.h: Update.
3362 * gnulib/import/strchrnul.c: Update.
3363 * gnulib/import/strdup.c: Update.
3364 * gnulib/import/streq.h: Update.
3365 * gnulib/import/strerror-override.c: Update.
3366 * gnulib/import/strerror-override.h: Update.
3367 * gnulib/import/strerror.c: Update.
3368 * gnulib/import/string.in.h: Update.
3369 * gnulib/import/stripslash.c: Update.
3370 * gnulib/import/strnlen1.c: Update.
3371 * gnulib/import/strnlen1.h: Update.
3372 * gnulib/import/strstr.c: Update.
3373 * gnulib/import/strtok_r.c: Update.
3374 * gnulib/import/sys_stat.in.h: Update.
3375 * gnulib/import/sys_time.in.h: Update.
3376 * gnulib/import/sys_types.in.h: Update.
3377 * gnulib/import/tempname.c: Update.
3378 * gnulib/import/tempname.h: Update.
3379 * gnulib/import/time.in.h: Update.
3380 * gnulib/import/unistd--.h: Update.
3381 * gnulib/import/unistd-safer.h: Update.
3382 * gnulib/import/unistd.in.h: Update.
3383 * gnulib/import/unsetenv.c: Update.
3384 * gnulib/import/verify.h: Update.
3385 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3386 * gnulib/import/wchar.in.h: Update.
3387 * gnulib/import/wctype.in.h: Update.
3388 * gnulib/import/xalloc-oversized.h: Update.
3389 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3390 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3391
8ec23583
SM
33922018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3393
3394 * record-btrace.c (get_thread_current_frame): Remove
3395 old_inferior_ptid.
3396
1f5d1570
JG
33972018-09-10 Jerome Guitton <guitton@adacore.com>
3398
3399 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3400 with check_tag to 1 if and only if the type is tagged and the
3401 component being searched cannot been found in the current
3402 view. Otherwise, always call ada_to_fixed_type with
3403 check_tag to 0.
3404
d91e9ea8
XR
34052018-09-10 Xavier Roirand <roirand@adacore.com>
3406
3407 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3408 declaration.
3409 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3410 * ada-varobj.c (ada_varobj_get_number_of_children,
3411 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3412
cc330e39
XR
34132018-09-10 Xavier Roirand <roirand@adacore.com>
3414
3415 * ada-valprint.c (ada_value_print): Use type instead of
3416 enclosing type.
3417
b9c50e9a
XR
34182018-09-10 Xavier Roirand <roirand@adacore.com>
3419
3420 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3421 an array of access to unconstrained array.
3422
736ade86
XR
34232018-09-10 Xavier Roirand <roirand@adacore.com>
3424
3425 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3426 (ada_check_typedef): Use it.
3427
2963898f
XR
34282018-09-10 Xavier Roirand <roirand@adacore.com>
3429
3430 * ada-varobj.c (ada_varobj_describe_struct_child)
3431 (ada_varobj_describe_child): Handle union case like struct one.
3432
a154931e
TT
34332018-09-10 Tom Tromey <tom@tromey.com>
3434
3435 PR python/18380:
3436 * python/python.c (_initialize_python): Make example in "python"
3437 help work in Python 3.
3438
23c4651c
EZ
34392018-09-10 Eli Zaretskii <eliz@gnu.org>
3440
3441 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3442 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3443 $(EXEEXT) to the script, as it is not a program.
3444
a5c5eda7
SM
34452018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3446
3447 * python/py-prettyprint.c (pretty_print_one_value): Return
3448 gdbpy_ref<>.
3449 (print_string_repr): Adjust.
3450 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3451 * python/python-internal.h (apply_varobj_pretty_printer): Return
3452 gdbpy_ref<>.
3453 * varobj.c (varobj_value_get_print_value): Adjust.
3454
332cf4c9
TT
34552018-09-08 Tom Tromey <tom@tromey.com>
3456
3457 PR python/16047:
3458 * python/py-prettyprint.c (pretty_print_one_value): Check for
3459 to_string method.
3460
424da6cf
JB
34612018-09-08 Joel Brobecker <brobecker@adacore.com>
3462
3463 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3464 replace_operator_with_call.
3465
95f39a5b
JB
34662018-09-08 Joel Brobecker <brobecker@adacore.com>
3467
3468 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3469
16b9eb7b
JB
34702018-09-08 Joel Brobecker <brobecker@adacore.com>
3471
3472 * ada-typeprint.c (print_range): Print the bounds using TYPE
3473 rather than its TYPE_TARGET_TYPE.
3474
d8ce9127
JB
34752018-09-08 Joel Brobecker <brobecker@adacore.com>
3476
3477 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3478 call to ada_to_fixed_value_create.
3479
0d81f350
JG
34802018-09-08 Jerome Guitton <guitton@adacore.com>
3481
3482 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3483
57aff202
JB
34842018-09-08 Joel Brobecker <brobecker@adacore.com>
3485
3486 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3487 by calls to error.
3488
fb44b1a7
JB
34892018-09-08 Joel Brobecker <brobecker@adacore.com>
3490
3491 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3492 Move update of loop variable "fi".
3493
2a62dfa9
JB
34942018-09-08 Joel Brobecker <brobecker@adacore.com>
3495
3496 * ada-lang.c (value_assign_to_component): In the case of
3497 big-endian targets, extract the bits of the given VAL
3498 using an src_offset of zero if container is not a scalar.
3499
739ab2e9
SS
35002018-09-06 Simon Ser <contact@emersion.fr>
3501
3502 PR gdb/23105
3503 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3504 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3505 * fbsd-tdep.c (fbsd_make_note_desc): New.
3506 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3507 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3508 * target.h (enum target_object) Add FreeBSD-specific
3509 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3510
d82b3862
SM
35112018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3512
3513 * compile/compile-c.h (generate_c_for_variable_locations):
3514 Change reference to pointer.
3515 * compile/compile-c-support.c (compile_program) <compute>:
3516 Likewise.
3517 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3518 (generate_c_for_for_one_variable): Likewise
3519 (generate_c_for_variable_locations): Likewise
3520 * compile/compile-c-types.c (compile_c_instance::convert_type):
3521 Likewise
3522 * compile/compile-cplus-symbols.c (convert_one_symbol):
3523 std::move the scope passed to enter_scope.
3524 * compile/compile-cplus-types.c
3525 (compile_cplus_instance::enter_scope): Make parameter
3526 rvalue-reference.
3527 (compile_cplus_instance::new_scope): Change reference to
3528 pointer.
3529 (compile_cplus_instance::convert_type): Likewise
3530 (compile_cplus_convert_typedef): std::move the scope passed to
3531 enter_scope.
3532 (compile_cplus_convert_struct_or_union): Likewise.
3533 (compile_cplus_convert_enum): Likewise.
3534 (compile_cplus_convert_namespace): Likewise.
3535 * compile/compile-cplus.h (compile_cplus_instance)
3536 <enter_scope>: Make parameter rvalue-reference.
3537 * compile/compile-internal.h (compile_instance)
3538 <get_cached_type>: Likewise
3539 * compile/compile-loc2c.c (push): Likewise
3540 (pushf): Likewise
3541 (unary): Likewise
3542 (binary): Likewise
3543 (print_label): Likewise
3544 (pushf_register_address): Likewise
3545 (pushf_register): Likewise
3546 (do_compile_dwarf_expr_to_c): Likewise
3547 (compile_dwarf_expr_to_c): Likewise
3548 (compile_dwarf_bounds_to_c): Likewise
3549 * compile/compile.c (compile_instance::get_cached_type):
3550 Likewise
3551 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3552 (compile_dwarf_bounds_to_c): Likewise
3553 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3554 (dwarf2_compile_property_to_c): Likewise
3555 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3556 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3557 Likewise
3558
cc5a5ae5
SM
35592018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3560
3561 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3562 * tui/tui-data.c (init_content_element): Don't initialize it.
3563
137be540
SM
35642018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3565
3566 * tui/tui-data.h (struct tui_win_info)
3567 <detail::opaque>: Remove.
3568 * tui/tui-data.c (init_win_info): Remove assignment.
3569
f1628857
TT
35702018-09-05 Tom Tromey <tom@tromey.com>
3571
3572 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3573 -Wformat-nonliteral.
3574 * target-float.c (host_float_ops<T>::to_string)
3575 (host_float_ops<T>::from_string): Use
3576 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3577 * configure: Rebuild.
3578
af39b1c2
SM
35792018-09-05 Simon Marchi <simon.marchi@ericsson.com>
3580
3581 * printcmd.c (printf_c_string): Use
3582 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3583 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3584
081bca4d
TT
35852018-09-05 Tom Tromey <tom@tromey.com>
3586
3587 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3588
e4a62c65
TV
35892018-09-05 Tom de Vries <tdevries@suse.de>
3590
3591 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3592 with resolve_abstract_p == true.
3593 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3594 defaulting to false. Propagate resolve_abstract_p to
3595 dwarf2_fetch_die_loc_sect_off.
3596 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3597 parameter, defaulting to false.
3598 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3599 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3600 parameter.
3601 * dwarf2read.h (struct die_info): Forward-declare.
3602 (die_info_ptr): New typedef.
3603 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3604
2b69821e
JB
36052018-09-05 Joel Brobecker <brobecker@adacore.com>
3606
3607 GDB 8.2 released.
3608
fcc9b044
SDJ
36092018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3610 Pedro Alves <palves@redhat.com>
3611
3612 * gnulib/Makefile.in (aclocal_m4_deps): Move to
3613 "aclocal-m4-deps.mk". Include file here.
3614 $(srcdir)/aclocal.m4: Add "configure.ac".
3615 * gnulib/aclocal-m4-deps.mk: New file.
3616 * gnulib/update-gnulib.sh: Automatically update
3617 "aclocal-m4-deps.mk".
3618
d53d5436
TT
36192018-09-04 Tom Tromey <tom@tromey.com>
3620
3621 * configure: Rebuild.
3622 * configure.ac: Remove multi-ice code.
3623
8dc9fd87
TT
36242018-09-04 Tom Tromey <tom@tromey.com>
3625
3626 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3627 (ada-exp.o): Update.
3628
3322c5d9
TT
36292018-09-04 Tom Tromey <tom@tromey.com>
3630
3631 * Makefile.in (printcmd.o, target-float.o): Remove.
3632 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3633
ba2bf2aa
TT
36342018-09-04 Tom Tromey <tom@tromey.com>
3635
3636 * gnulib/Makefile.in: Remove obsolete comment.
3637 * Makefile.in: Remove obsolete comment.
3638
6c9d681b
AB
36392018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3640
3641 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3642 line with '+'.
3643
78a3b0fa
AB
36442018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * riscv-tdep.c: Add 'prologue-value.h' include.
3647 (struct riscv_unwind_cache): New struct.
3648 (riscv_debug_unwinder): New global.
3649 (riscv_scan_prologue): Update arguments, capture register details
3650 from prologue scan.
3651 (riscv_skip_prologue): Reformat arguments line, move end of
3652 prologue calculation into riscv_scan_prologue.
3653 (riscv_frame_cache): Update return type, create
3654 riscv_unwind_cache, scan the prologue, and fill in remaining cache
3655 details.
3656 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3657 (riscv_frame_prev_register): Use the trad_frame within the
3658 riscv_unwind_cache.
3659 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3660 flag.
3661
23e60e7a
AB
36622018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3663
3664 * trad-frame.h (trad_frame_set_realreg): Declare.
3665 (trad_frame_set_addr): Declare.
3666 * trad-frame.c (trad_frame_set_realreg): Define new function.
3667 (trad_frame_set_addr): Define new function.
3668 (trad_frame_set_reg_realreg): Use new function.
3669 (trad_frame_set_reg_addr): Use new function.
3670
5c889512
KS
36712018-09-01 Keith Seitz <keiths@redhat.com>
3672
3673 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3674 pulongest instead of "%lld".
3675 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3676 ATTRIBUTE_UNUSED.
3677
c8c81635
TT
36782018-08-31 Tom Tromey <tom@tromey.com>
3679
3680 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3681 variant part type.
3682
0c888588
PA
36832018-08-31 Pedro Alves <palves@redhat.com>
3684
3685 * gdbarch.h: Regenerate.
3686
7ea65f08
PA
36872018-08-31 Pedro Alves <palves@redhat.com>
3688
3689 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3690 * target.h (Hardware watchpoint interfaces): Describe
3691 continuable/steppable/non-steppable watchpoints.
3692 * gdbarch.h, gdbarch.c: Regenerate.
3693
7eb65faf
PA
36942018-08-31 Pedro Alves <palves@redhat.com>
3695
3696 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3697 Delete.
3698 * s390-linux-nat.c
3699 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3700 * target.h (target_ops::have_continuable_watchpoint): Delete.
3701 (target_have_continuable_watchpoint): Delete.
3702 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3703 * target-delegates.c: Regenerate.
3704
dab999b1
SDJ
37052018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3706
3707 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3708 the files present in "gnulib/import/m4/".
3709
ff3a05b3
AB
37102018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3711
3712 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3713 c.sw, c.swsp, and c.sdsp.
3714
0b3f9efc
AB
37152018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3716
3717 * riscv-tdep.c (struct riscv_inferior_data): Delete.
3718 (riscv_read_misa_reg): Don't cache value read into inferior data.
3719 (riscv_new_inferior_data): Delete.
3720 (riscv_inferior_data_cleanup): Delete.
3721 (riscv_inferior_data): Delete.
3722 (riscv_invalidate_inferior_data): Delete.
3723 (_initialize_riscv_tdep): Remove initialisation of inferior data.
3724
a0dc02a6
SM
37252018-08-30 Simon Marchi <simon.marchi@ericsson.com>
3726
3727 * compile/compile-cplus-types.c
3728 (compile_cplus_instance::leave_scope): Take the address of scope
3729 object.
3730 (compile_cplus_instance::convert_qualified_base): Compare quals
3731 to 0.
3732
fdad7678
KS
37332018-08-30 Keith Seitz <keiths@redhat.com>
3734
3735 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3736 Use "%s" and host_address_to_string instead of "%p" in printf.
3737
078a0207
KS
37382018-08-29 Keith Seitz <keiths@redhat.com>
3739
3740 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
3741 and compile-cplus-types.c.
3742 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
3743 * c-lang.c (cplus_language_defn): Set C++ compile functions.
3744 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3745 Declare.
3746 * compile/compile-c-support.c: Include compile-cplus.h.
3747 (load_libcompile): Templatize.
3748 (get_compile_context): "New" function.
3749 (c_get_compile_context): Use get_compile_context.
3750 (cplus_get_compile_context): New function.
3751 (cplus_push_user_expression, cplus_pop_user_expression)
3752 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3753 (cplus_compute_program): Define new structs/functions.
3754 * compile/compile-cplus-symmbols.c: New file.
3755 * compile/compile-cplus-types.c: New file.
3756 * compile/compile-cplus.h: New file.
3757 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3758 Declare.
3759 * compile/compile-object-load.c (get_out_value_type): Use
3760 strncmp_iw when comparing symbol names.
3761 (compile_object_load): Add mst_bss and mst_data.
3762 * compile/compile.c (_initialize_compile): Remove
3763 -Wno-implicit-function-declaration from `compile_args'.
3764 * compile/gcc-cp-plugin.h: New file.
3765 * NEWS: Mention C++ compile support and new debug options.
3766
fcaad03c
KS
37672018-08-29 Keith Seitz <keiths@redhat.com>
3768
3769 * linespec.c (collect_info::add_symbol): Make virtual.
3770 (struct symbol_searcher_collect_info): New struct.
3771 (symbol_searcher::find_all_symbols): New method.
3772 * symtab.h (class symbol_searcher): New class.
3773
7e41c8db
KS
37742018-08-29 Keith Seitz <keiths@redhat.com>
3775
3776 * linespec.c (struct linespec) <function_symbols, label_symbols>:
3777 Change to vector of block_symbol. Update all users.
3778 (struct collect_info) <symbols>: Likewise.
3779 (collect_info::add_symbol): Take block_symbol as argument.
3780 Update all callers.
3781 (decode_compound_collector) <m_symbols>: Change type to vector
3782 of block_symbol. Update all users.
3783 (decode_compound_collector::operator ()): Change parameter type
3784 to block_symbol.
3785 (find_method, find_function_symbols, find_linespec_symbols)
3786 (find_label_symbols_in_block, find_label_symbols): Change symbol
3787 vectors to block_symbol vectors.
3788 * symtab.h (symbol_found_callback_ftype): Change parameter type to
3789 block_symbol.
3790
63e8c3da
KS
37912018-08-29 Keith Seitz <keiths@redhat.com>
3792
3793 * linespec.c (symbolp): Remove typedef and VEC definitions.
3794 (bound_minimal_symbol_d): Likewise.
3795
4dedf84d
KS
37962018-08-29 Keith Seitz <keiths@redhat.com>
3797
3798 * linespec.c (decode_compound_collector::decode_compound_collector):
3799 Remove initialization for `m_symtabs'.
3800 (decode_compound_collector::release_symbols): Change return type
3801 to std::vector. Update all callers.
3802 (class decode_compound_collector) <m_symbols>: Change type to
3803 std::vector.
3804 (lookup_prefix_sym): Change return type to std::vector. Update all
3805 callers.
3806 (compare_symbols): Remove.
3807 (std_compare_symbols): Rename to `compare_symbols'.
3808 (find_method): Change `sym_classes' parameter to std::vector.
3809 Update all callers. Use std::sort to sort sym_classes.
3810 (find_linespec_symbols): Remove cleanup.
3811
c2a031c5
KS
38122018-08-29 Keith Seitz <keiths@redhat.com>
3813
3814 * linespec.c (struct linespec) <minimal_symbols>: Change type to
3815 std::vector. Update all users.
3816 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3817 (struct collect_info) <minimal_symbols>: Likewise.
3818 (compare_msymbols): Return bool. Change parameters to const
3819 bound_minimal_symbol references.
3820 (find_method, find_function_symbols, find_linespec_symbols): Change
3821 `minsyms' parameter to std::vector. Update all callers.
3822
3553eadc
KS
38232018-08-29 Keith Seitz <keiths@redhat.com>
3824
3825 * linespec.c (struct linespec) <label_symbols>: Change type to
3826 std::vector. Update all users.
3827 (find_label_symbols_in_block): Change `result' parameter to
3828 std::vector. Update all callers.
3829 (find_label_symbols): Return std::vector. Update all callers.
3830
7243d011
KS
38312018-08-29 Keith Seitz <keiths@redhat.com>
3832
3833 * linespec.c (struct linespec) <function_symbols>: Change type to
3834 std::vector. Update all users.
3835 (struct collect_info) <function_symbols>: Likewise.
3836 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3837 (std_compare_symbols): New function.
3838 (find_method, find_function_symbols, find_linespec_symbols)
3839 (find_label_symbols_in_block): Change `symbols' parameter to
3840 std::vector. Update all callers.
3841 (find_label_symbols): Likewise for `function_symbols' and
3842 `label_funcs_ret'.
3843
2a908241
KS
38442018-08-29 Keith Seitz <keiths@redhat.com>
3845
3846 * linespec.c (symtab_vector_up): Define.
3847 (struct linespec) <file_symtabs>: Change type to std::vector *.
3848 Update all uses.
3849 (struct collect_info) <file_symtabs>: Likewise.
3850 (collect_symtabs_from_filename): Return symtab_vector_up.
3851 Update all callers.
3852 (decode_objc): Remove cleanup.
3853 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3854 (symtab_collector::release_symtabs): Return symtab_vector_up.
3855 Update all callers.
3856 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3857 Update all users.
3858 (collect_symtabs_from_filename, symtabs_from_filename): Return
3859 symtab_vector_up. Update all callers.
3860
f6c4e3e8
TT
38612018-08-29 Tom Tromey <tom@tromey.com>
3862
3863 * csky-tdep.c (csky_analyze_prologue): Use
3864 core_addr_to_string_nz.
3865
73c13fe6
TT
38662018-08-29 Tom Tromey <tom@tromey.com>
3867
3868 * windows-nat.c (struct xlate_exception) <them>: Change type to
3869 DWORD.
3870 (xlate): Fix formatting. Remove last entry.
3871 (struct xlate_exception, xlate): Comment out.
3872 (windows_nat_target::resume): Use ranged for.
3873
4d3928d7
JW
38742018-08-29 Jim Wilson <jimw@sifive.com>
3875
3876 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3877 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3878 of NT_PRFPREG.
3879 (riscv_linux_nat_target::store_registers): Likewise.
3880
7a6dbc2f
SDJ
38812018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3882
3883 PR gdb/23555
3884 PR gdb/23558
3885 * gnulib/aclocal.m4: Regenerate.
3886 * gnulib/config.in: Regenerate.
3887 * gnulib/configure: Regenerate.
3888 * gnulib/import/Makefile.am: Update.
3889 * gnulib/import/Makefile.in: Update.
3890 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3891 * gnulib/import/_Noreturn.h: ... this.
3892 * gnulib/import/alloca.in.h: Update.
3893 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3894 * gnulib/import/arg-nonnull.h: ... this.
3895 * gnulib/import/assure.h: Update.
3896 * gnulib/import/at-func.c: Update.
3897 * gnulib/import/basename-lgpl.c: Update.
3898 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3899 * gnulib/import/c++defs.h: ... this.
3900 * gnulib/import/canonicalize-lgpl.c: Update.
3901 * gnulib/import/cdefs.h: Update.
3902 * gnulib/import/chdir-long.c: Update.
3903 * gnulib/import/chdir-long.h: Update.
3904 * gnulib/import/cloexec.c: Update.
3905 * gnulib/import/cloexec.h: Update.
3906 * gnulib/import/close.c: Update.
3907 * gnulib/import/closedir.c: Update.
3908 * gnulib/import/config.charset: Update.
3909 * gnulib/import/dirent-private.h: Update.
3910 * gnulib/import/dirent.in.h: Update.
3911 * gnulib/import/dirfd.c: Update.
3912 * gnulib/import/dirname-lgpl.c: Update.
3913 * gnulib/import/dirname.h: Update.
3914 * gnulib/import/dosname.h: Update.
3915 * gnulib/import/dup-safer-flag.c: Update.
3916 * gnulib/import/dup-safer.c: Update.
3917 * gnulib/import/dup.c: Update.
3918 * gnulib/import/dup2.c: Update.
3919 * gnulib/import/errno.in.h: Update.
3920 * gnulib/import/error.c: Update.
3921 * gnulib/import/error.h: Update.
3922 * gnulib/import/exitfail.c: Update.
3923 * gnulib/import/exitfail.h: Update.
3924 * gnulib/import/extra/update-copyright: Update.
3925 * gnulib/import/fchdir.c: Update.
3926 * gnulib/import/fcntl.c: Update.
3927 * gnulib/import/fcntl.in.h: Update.
3928 * gnulib/import/fd-hook.c: Update.
3929 * gnulib/import/fd-hook.h: Update.
3930 * gnulib/import/fd-safer-flag.c: Update.
3931 * gnulib/import/fd-safer.c: Update.
3932 * gnulib/import/fdopendir.c: Update.
3933 * gnulib/import/filename.h: Update.
3934 * gnulib/import/filenamecat-lgpl.c: Update.
3935 * gnulib/import/filenamecat.h: Update.
3936 * gnulib/import/flexmember.h: Update.
3937 * gnulib/import/float+.h: Update.
3938 * gnulib/import/float.c: Update.
3939 * gnulib/import/float.in.h: Update.
3940 * gnulib/import/fnmatch.c: Update.
3941 * gnulib/import/fnmatch.in.h: Update.
3942 * gnulib/import/fnmatch_loop.c: Update.
3943 * gnulib/import/fpucw.h: Update.
3944 * gnulib/import/frexp.c: Update.
3945 * gnulib/import/frexpl.c: Update.
3946 * gnulib/import/fstat.c: Update.
3947 * gnulib/import/fstatat.c: Update.
3948 * gnulib/import/getcwd-lgpl.c: Update.
3949 * gnulib/import/getcwd.c: Update.
3950 * gnulib/import/getdtablesize.c: Update.
3951 * gnulib/import/getlogin_r.c: Update.
3952 * gnulib/import/getprogname.c: Update.
3953 * gnulib/import/getprogname.h: Update.
3954 * gnulib/import/gettext.h: Update.
3955 * gnulib/import/gettimeofday.c: Update.
3956 * gnulib/import/glob-libc.h: Update.
3957 * gnulib/import/glob.c: Update.
3958 * gnulib/import/glob.in.h: Update.
3959 * gnulib/import/glob_internal.h: Update.
3960 * gnulib/import/glob_pattern_p.c: Update.
3961 * gnulib/import/globfree.c: Update.
3962 * gnulib/import/hard-locale.c: Update.
3963 * gnulib/import/hard-locale.h: Update.
3964 * gnulib/import/intprops.h: Update.
3965 * gnulib/import/inttypes.in.h: Update.
3966 * gnulib/import/isnan.c: Update.
3967 * gnulib/import/isnand-nolibm.h: Update.
3968 * gnulib/import/isnand.c: Update.
3969 * gnulib/import/isnanl-nolibm.h: Update.
3970 * gnulib/import/isnanl.c: Update.
3971 * gnulib/import/itold.c: Update.
3972 * gnulib/import/libc-config.h: Update.
3973 * gnulib/import/limits.in.h: Update.
3974 * gnulib/import/localcharset.c: Update.
3975 * gnulib/import/localcharset.h: Update.
3976 * gnulib/import/localtime-buffer.c: Update.
3977 * gnulib/import/localtime-buffer.h: Update.
3978 * gnulib/import/lstat.c: Update.
3979 * gnulib/import/m4/00gnulib.m4: Update.
3980 * gnulib/import/m4/__inline.m4: Update.
3981 * gnulib/import/m4/absolute-header.m4: Update.
3982 * gnulib/import/m4/alloca.m4: Update.
3983 * gnulib/import/m4/builtin-expect.m4: Update.
3984 * gnulib/import/m4/canonicalize.m4: Update.
3985 * gnulib/import/m4/chdir-long.m4: Update.
3986 * gnulib/import/m4/close.m4: Update.
3987 * gnulib/import/m4/closedir.m4: Update.
3988 * gnulib/import/m4/configmake.m4: Update.
3989 * gnulib/import/m4/d-ino.m4: Update.
3990 * gnulib/import/m4/d-type.m4: Update.
3991 * gnulib/import/m4/dirent_h.m4: Update.
3992 * gnulib/import/m4/dirfd.m4: Update.
3993 * gnulib/import/m4/dirname.m4: Update.
3994 * gnulib/import/m4/double-slash-root.m4: Update.
3995 * gnulib/import/m4/dup.m4: Update.
3996 * gnulib/import/m4/dup2.m4: Update.
3997 * gnulib/import/m4/eealloc.m4: Update.
3998 * gnulib/import/m4/environ.m4: Update.
3999 * gnulib/import/m4/errno_h.m4: Update.
4000 * gnulib/import/m4/error.m4: Update.
4001 * gnulib/import/m4/exponentd.m4: Update.
4002 * gnulib/import/m4/exponentl.m4: Update.
4003 * gnulib/import/m4/extensions.m4: Update.
4004 * gnulib/import/m4/extern-inline.m4: Update.
4005 * gnulib/import/m4/fchdir.m4: Update.
4006 * gnulib/import/m4/fcntl-o.m4: Update.
4007 * gnulib/import/m4/fcntl.m4: Update.
4008 * gnulib/import/m4/fcntl_h.m4: Update.
4009 * gnulib/import/m4/fdopendir.m4: Update.
4010 * gnulib/import/m4/filenamecat.m4: Update.
4011 * gnulib/import/m4/flexmember.m4: Update.
4012 * gnulib/import/m4/float_h.m4: Update.
4013 * gnulib/import/m4/fnmatch.m4: Update.
4014 * gnulib/import/m4/fnmatch_h.m4: Update.
4015 * gnulib/import/m4/fpieee.m4: Update.
4016 * gnulib/import/m4/frexp.m4: Update.
4017 * gnulib/import/m4/frexpl.m4: Update.
4018 * gnulib/import/m4/fstat.m4: Update.
4019 * gnulib/import/m4/fstatat.m4: Update.
4020 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
4021 * gnulib/import/m4/getcwd-path-max.m4: Update.
4022 * gnulib/import/m4/getcwd.m4: Update.
4023 * gnulib/import/m4/getdtablesize.m4: Update.
4024 * gnulib/import/m4/getlogin.m4: Update.
4025 * gnulib/import/m4/getlogin_r.m4: Update.
4026 * gnulib/import/m4/getpagesize.m4: Update.
4027 * gnulib/import/m4/getprogname.m4: Update.
4028 * gnulib/import/m4/gettimeofday.m4: Update.
4029 * gnulib/import/m4/glibc21.m4: Update.
4030 * gnulib/import/m4/glob.m4: Update.
4031 * gnulib/import/m4/glob_h.m4: Update.
4032 * gnulib/import/m4/gnulib-cache.m4: Update.
4033 * gnulib/import/m4/gnulib-common.m4: Update.
4034 * gnulib/import/m4/gnulib-comp.m4: Update.
4035 * gnulib/import/m4/gnulib-tool.m4: Update.
4036 * gnulib/import/m4/hard-locale.m4: Update.
4037 * gnulib/import/m4/include_next.m4: Update.
4038 * gnulib/import/m4/inttypes-pri.m4: Update.
4039 * gnulib/import/m4/inttypes.m4: Update.
4040 * gnulib/import/m4/isnand.m4: Update.
4041 * gnulib/import/m4/isnanl.m4: Update.
4042 * gnulib/import/m4/largefile.m4: Update.
4043 * gnulib/import/m4/limits-h.m4: Update.
4044 * gnulib/import/m4/localcharset.m4: Update.
4045 * gnulib/import/m4/locale-fr.m4: Update.
4046 * gnulib/import/m4/locale-ja.m4: Update.
4047 * gnulib/import/m4/locale-zh.m4: Update.
4048 * gnulib/import/m4/localtime-buffer.m4: Update.
4049 * gnulib/import/m4/longlong.m4: Update.
4050 * gnulib/import/m4/lstat.m4: Update.
4051 * gnulib/import/m4/malloc.m4: Update.
4052 * gnulib/import/m4/malloca.m4: Update.
4053 * gnulib/import/m4/math_h.m4: Update.
4054 * gnulib/import/m4/mbrtowc.m4: Update.
4055 * gnulib/import/m4/mbsinit.m4: Update.
4056 * gnulib/import/m4/mbsrtowcs.m4: Update.
4057 * gnulib/import/m4/mbstate_t.m4: Update.
4058 * gnulib/import/m4/memchr.m4: Update.
4059 * gnulib/import/m4/memmem.m4: Update.
4060 * gnulib/import/m4/mempcpy.m4: Update.
4061 * gnulib/import/m4/memrchr.m4: Update.
4062 * gnulib/import/m4/mkdir.m4: Update.
4063 * gnulib/import/m4/mkstemp.m4: Update.
4064 * gnulib/import/m4/mmap-anon.m4: Update.
4065 * gnulib/import/m4/mode_t.m4: Update.
4066 * gnulib/import/m4/msvc-inval.m4: Update.
4067 * gnulib/import/m4/msvc-nothrow.m4: Update.
4068 * gnulib/import/m4/multiarch.m4: Update.
4069 * gnulib/import/m4/nocrash.m4: Update.
4070 * gnulib/import/m4/off_t.m4: Update.
4071 * gnulib/import/m4/onceonly.m4: Update.
4072 * gnulib/import/m4/open-cloexec.m4: Update.
4073 * gnulib/import/m4/open.m4: Update.
4074 * gnulib/import/m4/openat.m4: Update.
4075 * gnulib/import/m4/opendir.m4: Update.
4076 * gnulib/import/m4/pathmax.m4: Update.
4077 * gnulib/import/m4/rawmemchr.m4: Update.
4078 * gnulib/import/m4/readdir.m4: Update.
4079 * gnulib/import/m4/readlink.m4: Update.
4080 * gnulib/import/m4/realloc.m4: Update.
4081 * gnulib/import/m4/rename.m4: Update.
4082 * gnulib/import/m4/rewinddir.m4: Update.
4083 * gnulib/import/m4/rmdir.m4: Update.
4084 * gnulib/import/m4/save-cwd.m4: Update.
4085 * gnulib/import/m4/secure_getenv.m4: Update.
4086 * gnulib/import/m4/setenv.m4: Update.
4087 * gnulib/import/m4/signal_h.m4: Update.
4088 * gnulib/import/m4/ssize_t.m4: Update.
4089 * gnulib/import/m4/stat-time.m4: Update.
4090 * gnulib/import/m4/stat.m4: Update.
4091 * gnulib/import/m4/std-gnu11.m4: Update.
4092 * gnulib/import/m4/stdbool.m4: Update.
4093 * gnulib/import/m4/stddef_h.m4: Update.
4094 * gnulib/import/m4/stdint.m4: Update.
4095 * gnulib/import/m4/stdio_h.m4: Update.
4096 * gnulib/import/m4/stdlib_h.m4: Update.
4097 * gnulib/import/m4/strchrnul.m4: Update.
4098 * gnulib/import/m4/strdup.m4: Update.
4099 * gnulib/import/m4/strerror.m4: Update.
4100 * gnulib/import/m4/string_h.m4: Update.
4101 * gnulib/import/m4/strstr.m4: Update.
4102 * gnulib/import/m4/strtok_r.m4: Update.
4103 * gnulib/import/m4/sys_socket_h.m4: Update.
4104 * gnulib/import/m4/sys_stat_h.m4: Update.
4105 * gnulib/import/m4/sys_time_h.m4: Update.
4106 * gnulib/import/m4/sys_types_h.m4: Update.
4107 * gnulib/import/m4/tempname.m4: Update.
4108 * gnulib/import/m4/time_h.m4: Update.
4109 * gnulib/import/m4/unistd-safer.m4: Update.
4110 * gnulib/import/m4/unistd_h.m4: Update.
4111 * gnulib/import/m4/warn-on-use.m4: Update.
4112 * gnulib/import/m4/wchar_h.m4: Update.
4113 * gnulib/import/m4/wchar_t.m4: Update.
4114 * gnulib/import/m4/wctype_h.m4: Update.
4115 * gnulib/import/m4/wint_t.m4: Update.
4116 * gnulib/import/malloc.c: Update.
4117 * gnulib/import/malloc/scratch_buffer.h: Update.
4118 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4119 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4120 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4121 * gnulib/import/malloca.c: Update.
4122 * gnulib/import/malloca.h: Update.
4123 * gnulib/import/malloca.valgrind: Update.
4124 * gnulib/import/math.in.h: Update.
4125 * gnulib/import/mbrtowc.c: Update.
4126 * gnulib/import/mbsinit.c: Update.
4127 * gnulib/import/mbsrtowcs-impl.h: Update.
4128 * gnulib/import/mbsrtowcs-state.c: Update.
4129 * gnulib/import/mbsrtowcs.c: Update.
4130 * gnulib/import/memchr.c: Update.
4131 * gnulib/import/memmem.c: Update.
4132 * gnulib/import/mempcpy.c: Update.
4133 * gnulib/import/memrchr.c: Update.
4134 * gnulib/import/mkdir.c: Update.
4135 * gnulib/import/mkstemp.c: Update.
4136 * gnulib/import/msvc-inval.c: Update.
4137 * gnulib/import/msvc-inval.h: Update.
4138 * gnulib/import/msvc-nothrow.c: Update.
4139 * gnulib/import/msvc-nothrow.h: Update.
4140 * gnulib/import/open.c: Update.
4141 * gnulib/import/openat-die.c: Update.
4142 * gnulib/import/openat-priv.h: Update.
4143 * gnulib/import/openat-proc.c: Update.
4144 * gnulib/import/openat.c: Update.
4145 * gnulib/import/openat.h: Update.
4146 * gnulib/import/opendir.c: Update.
4147 * gnulib/import/pathmax.h: Update.
4148 * gnulib/import/pipe-safer.c: Update.
4149 * gnulib/import/rawmemchr.c: Update.
4150 * gnulib/import/readdir.c: Update.
4151 * gnulib/import/readlink.c: Update.
4152 * gnulib/import/realloc.c: Update.
4153 * gnulib/import/ref-add.sin: Update.
4154 * gnulib/import/ref-del.sin: Update.
4155 * gnulib/import/rename.c: Update.
4156 * gnulib/import/rewinddir.c: Update.
4157 * gnulib/import/rmdir.c: Update.
4158 * gnulib/import/same-inode.h: Update.
4159 * gnulib/import/save-cwd.c: Update.
4160 * gnulib/import/save-cwd.h: Update.
4161 * gnulib/import/scratch_buffer.h: Update.
4162 * gnulib/import/secure_getenv.c: Update.
4163 * gnulib/import/setenv.c: Update.
4164 * gnulib/import/signal.in.h: Update.
4165 * gnulib/import/stat-time.c: Update.
4166 * gnulib/import/stat-time.h: Update.
4167 * gnulib/import/stat-w32.c: Update.
4168 * gnulib/import/stat-w32.h: Update.
4169 * gnulib/import/stat.c: Update.
4170 * gnulib/import/stdbool.in.h: Update.
4171 * gnulib/import/stddef.in.h: Update.
4172 * gnulib/import/stdint.in.h: Update.
4173 * gnulib/import/stdio.in.h: Update.
4174 * gnulib/import/stdlib.in.h: Update.
4175 * gnulib/import/str-two-way.h: Update.
4176 * gnulib/import/strchrnul.c: Update.
4177 * gnulib/import/strdup.c: Update.
4178 * gnulib/import/streq.h: Update.
4179 * gnulib/import/strerror-override.c: Update.
4180 * gnulib/import/strerror-override.h: Update.
4181 * gnulib/import/strerror.c: Update.
4182 * gnulib/import/string.in.h: Update.
4183 * gnulib/import/stripslash.c: Update.
4184 * gnulib/import/strnlen1.c: Update.
4185 * gnulib/import/strnlen1.h: Update.
4186 * gnulib/import/strstr.c: Update.
4187 * gnulib/import/strtok_r.c: Update.
4188 * gnulib/import/sys_stat.in.h: Update.
4189 * gnulib/import/sys_time.in.h: Update.
4190 * gnulib/import/sys_types.in.h: Update.
4191 * gnulib/import/tempname.c: Update.
4192 * gnulib/import/tempname.h: Update.
4193 * gnulib/import/time.in.h: Update.
4194 * gnulib/import/unistd--.h: Update.
4195 * gnulib/import/unistd-safer.h: Update.
4196 * gnulib/import/unistd.in.h: Update.
4197 * gnulib/import/unsetenv.c: Update.
4198 * gnulib/import/verify.h: Update.
4199 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4200 * gnulib/import/wchar.in.h: Update.
4201 * gnulib/import/wctype.in.h: Update.
4202 * gnulib/import/xalloc-oversized.h: Update.
4203 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4204 "53e2c179f26a890fa6685af4b6c1397ee370433b".
4205
b0f492b9
GB
42062018-08-16 Gary Benson <gbenson@redhat.com>
4207
4208 PR gdb/13000:
4209 * gdb/main.c (captured_main_1): Exit with nonzero status
4210 in batch mode if the last command to be executed failed.
4211 * NEWS: Mention the above.
4212
2362e7f7
SM
42132018-08-29 Simon Marchi <simon.marchi@ericsson.com>
4214
4215 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
4216 end of warning message.
4217
4f4aedeb
AH
42182018-08-29 Alan Hayward <alan.hayward@arm.com>
4219
4220 PR gdb/22943:
4221 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4222 (aarch64_extract_return_value): Use
4223 aapcs_is_vfp_call_or_return_candidate.
4224 (aarch64_return_in_memory): Likewise.
4225 (aarch64_store_return_value): Likewise.
4226
0e745c60
AH
42272018-08-29 Alan Hayward <alan.hayward@arm.com>
4228
4229 * aarch64-tdep.c
4230 (aapcs_is_vfp_call_or_return_candidate): Make static
4231 (pass_in_v_or_stack): Remove function.
4232 (pass_in_v_vfp_candidate): New function.
4233 (aarch64_push_dummy_call): Check for float register candidates.
4234
ea92689a
AH
42352018-08-29 Alan Hayward <alan.hayward@arm.com>
4236
4237 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4238 (aapcs_is_vfp_call_or_return_candidate_1): New function.
4239 (aapcs_is_vfp_call_or_return_candidate): Likewise.
4240
ad202fcc
SM
42412018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4242
4243 PR build/23399
4244 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4245 (struct ipa_sym_addresses): Rename to...
4246 (struct ipa_sym_addresses_common): ... this.
4247 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4248
5fe3f3e4
TT
42492018-08-28 Tom Tromey <tom@tromey.com>
4250
4251 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4252 (token_fifo): Now a std::vector.
4253 (yylex, c_parse): Update.
4254 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4255 (token_fifo): Now a std::vector.
4256 (yylex, d_parse): Update.
4257 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4258 (token_fifo): Now a std::vector.
4259 (yylex, go_parse): Update.
4260
858d8004
SM
42612018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4262
4263 * parser-defs.h (struct type_stack) <elements>: Change type to
4264 std::vector<union type_stack_elt>.
4265 <depth, size>: Remove.
4266 * parse.c (parse_exp_in_context_1): Adjust.
4267 (type_stack_reserve): Remove.
4268 (check_type_stack_depth): Remove.
4269 (insert_into_type_stack): Adjust to std::vector.
4270 (insert_type): Likewise.
4271 (push_type): Likewise.
4272 (push_type_int): Likewise.
4273 (insert_type_address_space): Likewise.
4274 (pop_type): Likewise.
4275 (pop_type_int): Likewise.
4276 (pop_typelist): Likewise.
4277 (pop_type_stack): Likewise.
4278 (append_type_stack): Likewise.
4279 (push_type_stack): Likewise.
4280 (get_type_stack): Likewise.
4281 (type_stack_cleanup): Likewise.
4282 (push_typelist): Likewise.
4283 (follow_types): Likewise.
4284 (_initialize_parse): Likewise.
4285
416a69af
HAQ
42862018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
4287
4288 * NEWS: Mention csky target.
4289
9d24df82
HAQ
42902018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
4291 Hafiz Abid Qadeer <abidh@codesourcery.com>
4292 Don Breazeal <donb@codesourcery.com>
4293
4294 * csky-linux-tdep.c: New file.
4295 * csky-tdep.c: Likewise.
4296 * csky-tdep.h: Likewise.
4297 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4298 csky-tdep.o.
4299 (HFILES_NO_SRCDIR): Add csky-tdep.h.
4300 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4301 * configure.tgt: Add csky support.
4302
3bf9c013
JV
43032018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
4304
4305 * python/py-framefilter.c (py_print_frame): Print frame architecture
4306 when printing on an MI output.
4307
d3d8724a
TT
43082018-08-27 Tom Tromey <tom@tromey.com>
4309
4310 PR build/23087:
4311 * configure: Rebuild.
4312 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4313
1885053b
TT
43142018-08-27 Tom Tromey <tom@tromey.com>
4315
4316 * aarch64-linux-tdep.c
4317 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4318 casts to int.
4319
8406672e
TT
43202018-08-27 Tom Tromey <tom@tromey.com>
4321
4322 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4323 unsigned.
4324 (ppc64_standard_linkage1, ppc64_standard_linkage2)
4325 (ppc64_standard_linkage3, ppc64_standard_linkage4)
4326 (ppc64_standard_linkage5, ppc64_standard_linkage6)
4327 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4328 unsigned.
4329
ec40cf90
TT
43302018-08-27 Tom Tromey <tom@tromey.com>
4331
4332 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4333 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4334
7bc02706
TT
43352018-08-27 Tom Tromey <tom@tromey.com>
4336
4337 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4338 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4339 ULONGEST_MAX.
4340 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4341 ULONGEST_MAX.
4342 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4343 ULONGEST_MAX.
4344 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4345 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4346 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4347 ULONGEST_MAX.
4348 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4349 (ppc64_linux_sigaction_tramp_frame)
4350 (ppc32_linux_sighandler_tramp_frame)
4351 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4352 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4353 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4354 * mn10300-linux-tdep.c (am33_linux_sigframe)
4355 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4356 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4357 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4358 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4359 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4360 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4361 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4362 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4363 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4364 * microblaze-linux-tdep.c
4365 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4366 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4367 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4368 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4369 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4370 * common/common-types.h (ULONGEST_MAX): New define.
4371 (CORE_ADDR_MAX): Fix formatting.
4372 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4373 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4374 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4375 (arm_linux_rt_sigreturn_tramp_frame)
4376 (arm_eabi_linux_sigreturn_tramp_frame)
4377 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4378 (thumb2_eabi_linux_sigreturn_tramp_frame)
4379 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4380 (arm_linux_restart_syscall_tramp_frame)
4381 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4382 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4383 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4384 ULONGEST_MAX.
4385 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4386
70ab8ccd
TT
43872018-08-27 Tom Tromey <tom@tromey.com>
4388
4389 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4390 CORE_ADDR_MAX.
4391 * mips-tdep.c (mips_deal_with_atomic_sequence)
4392 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4393 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4394 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4395 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4396 CORE_ADDR_MAX.
4397 * aarch64-tdep.c (aarch64_software_single_step): Use
4398 CORE_ADDR_MAX.
4399
896a7aa6
TT
44002018-08-27 Tom Tromey <tom@tromey.com>
4401
4402 * linespec.c (complete_linespec_component): Add cast to "char".
4403 * completer.c (completion_tracker::build_completion_result): Add
4404 cast to "char".
4405
dd33d41d
SM
44062018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4407
4408 * solist.h (struct solist, struct target_so_ops): Fix
4409 indentation.
4410
c645cda4
SM
44112018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4412
4413 * ada-tasks.c (ada_task_info_s): Remove typedef.
4414 (DEF_VEC_O(ada_task_info_s)): Remove.
4415 (struct ada_tasks_inferior_data): Initialize fields.
4416 <task_list>: Make an std::vector.
4417 (get_ada_tasks_inferior_data): Allocate with new.
4418 (ada_get_task_number): Adjust.
4419 (get_task_number_from_id): Likewise.
4420 (valid_task_id): Likewise.
4421 (ada_get_task_info_from_ptid): Likewise.
4422 (iterate_over_live_ada_tasks): Likewise.
4423 (add_ada_task): Likewise.
4424 (read_known_tasks): Likewise.
4425 (ada_build_task_list): Likewise.
4426 (print_ada_task_info): Likewise.
4427 (info_task): Likewise.
4428 (task_command_1): Likewise.
4429
39e7af3e
SM
44302018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4431
4432 * ada-lang.c (add_angle_brackets): Return std::string.
4433
bbbbbcee
SM
44342018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4435
4436 * python/py-threadevent.c (py_get_event_thread): Initialize
4437 pythread.
4438
d98fc15b
PA
44392018-08-24 Pedro Alves <palves@redhat.com>
4440
4441 * python/py-bpevent.c (create_breakpoint_event_object): Use
4442 copy-initialization.
4443 * python/py-continueevent.c (emit_continue_event): Use
4444 copy-initialization.
4445 * python/py-exitedevent.c (create_exited_event_object): Return a
4446 gdbpy_ref<>.
4447 (emit_exited_event): Use copy-initialization.
4448 * python/py-inferior.c (python_new_inferior)
4449 (python_inferior_deleted, add_thread_object): Use
4450 copy-initialization.
4451 * python/py-infevents.c (create_inferior_call_event_object)
4452 (create_register_changed_event_object)
4453 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4454 (emit_inferior_call_event, emit_memory_changed_event)
4455 (emit_register_changed_event): Use copy-initialization.
4456 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4457 Return a gdbpy_ref<>.
4458 (emit_new_objfile_event): Use copy-initialization.
4459 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4460 (emit_clear_objfiles_event): Use copy-initialization.
4461 * python/py-signalevent.c (create_signal_event_object): Use
4462 copy-initialization.
4463 * python/py-threadevent.c (create_thread_event_object): Use
4464 copy-initialization.
4465
da3c8738
PA
44662018-08-24 Pedro Alves <palves@redhat.com>
4467 Simon Marchi <simon.marchi@ericsson.com>
4468
4469 PR gdb/23379
4470 * python/py-continueevent.c: Include "gdbthread.h".
4471 (create_continue_event_object): Add intro comment. Add 'ptid'
4472 parameter. Use it to find thread to pass to
4473 create_thread_event_object.
4474 (emit_continue_event): Pass PTID down to
4475 create_continue_event_object.
4476 * python/py-event.h (py_get_event_thread): Declare.
4477 (create_thread_event_object): Remove default from 'thread'
4478 parameter.
4479 * python/py-stopevent.c (create_stop_event_object): Use
4480 py_get_event_thread.
4481 * python/py-threadevent.c (get_event_thread): Rename to ...
4482 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4483 and use it to find the thread.
4484 (create_thread_event_object): Assert that THREAD isn't null.
4485 Don't find the event thread here.
4486
26457a9c
KB
44872018-08-23 Kevin Buettner <kevinb@redhat.com>
4488
4489 * block.h (blockrange, blockranges): New struct declarations.
4490 (struct block): Add new field named `ranges'.
4491 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4492 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4493 macros for accessing ranges in struct block.
4494 (make_blockranges): New declaration.
4495 block.c (make_blockranges): New function.
2d5f09ec
KB
4496 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4497 for block.
fc811edd
KB
4498 * symtab.h (find_pc_partial_function): Add new parameter `block'.
4499 * blockframe.c (cache_pc_function_block): New static global.
4500 (clear_pc_function_cache): Clear cache_pc_function_block.
4501 (find_pc_partial_function): Move comment to symtab.h. Add
4502 support for non-contiguous blocks.
e9480230
KB
4503 * cli/cli-cmds.c (block.h): Include.
4504 (print_disassembly): Handle printing of non-contiguous blocks.
4505 (disassemble_current_function): Likewise.
4506 (disassemble_command): Likewise.
26457a9c 4507
2b1ffcfd
KB
4508 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4509 BLOCK_START.
4510 * blockframe.c (get_pc_function_start): Likewise.
4511 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4512 (gcc_symbol_address): Likewise.
4513 * compile/compile-object-run.c (compile_object_run): Likewise.
4514 * compile/compile.c (get_expr_block_and_pc): Likewise.
4515 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4516 (func_addr_to_tail_call_list): Likewise.
4517 * findvar.c (default_read_var_value): Likewise.
4518 * inline-frame.c (inline_frame_this_id): Likewise.
4519 (skip-inline_frames): Likewise.
4520 * infcmd.c (until_next_command): Likewise.
4521 * linespec.c (convert_linespec_to_sals): Likewise.
4522 * parse.c (parse_exp_in_context_1): Likewise.
4523 * printcmd.c (build_address_symbolic): likewise.
4524 (info_address_command): Likewise.
4525 symtab.c (find_function_start_sal): Likewise.
4526 (skip_prologue_sal): Likewise.
4527 (find_function_alias_target): Likewise.
4528 (find_gnu_ifunc): Likewise.
4529 * stack.c (find_frame_funname): Likewise.
4530 * symtab.c (fixup_symbol_section): Likewise.
4531 (find_function_start_sal): Likewise.
4532 (skip_prologue_sal): Likewsie.
4533 (find_function_alias_target): Likewise.
4534 (find_gnu_ifunc): Likewise.
4535 * tracepoint.c (info_scope_command): Likewise.
4536 * value.c (value_fn_field): Likewise.
4537
9644dc3a
KB
4538 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4539 in place of find_pc_partial_function.
4540 * blockframe.c (find_function_entry_range_from_pc): New function.
4541 * symtab.h (find_function_entry_range_from_pc): Declare and document.
4542 * objfiles.c (objfile_relocate1): Relocate start and end addresses
4543 for each range in a block.
4544
4545
12a0d0f6
XR
45462018-08-23 Xavier Roirand <roirand@adacore.com>
4547
4548 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4549 incrementation.
4550
d1012b8e
SM
45512018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4552
4553 * solib-svr4.c (read_program_headers_from_bfd): Return
4554 gdb::optional<gdb::byte_vector>.
4555 (svr4_exec_displacement): Adjust.
4556
17658d46
SM
45572018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4558
4559 * solib-svr4.c (read_program_header): Return
4560 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4561 (find_program_interpreter): Return
4562 gdb::optional<gdb::byte_vector>.
4563 (scan_dyntag_auxv): Adjust.
4564 (enable_break): Adjust.
4565 (svr4_exec_displacement): Adjust.
4566
ae739fe7
SM
45672018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4568
4569 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4570 * inf-child.c (inf_child_target::terminal_save_inferior): New.
4571
467dc1e2
SM
45722018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4573
4574 * guile/scm-string.c (gdbscm_scm_from_printf): Use
4575 string_vprintf.
4576 * guile/scm-utils.c (gdbscm_printf): Likewise.
4577 * serial.c (serial_printf): Likewise.
4578 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4579
6d52907e
JV
45802018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
4581
4582 * stack.c (print_frame): Print frame architecture when printing on
4583 an MI output.
4584 * NEWS: Mention new "arch" attribute in frame output.
4585
9758a8f8
AH
45862018-08-21 Alan Hayward <alan.hayward@arm.com>
4587
4588 * arch/aarch64.h (aarch64_regnum): Update comment.
4589
1461bdac
AH
45902018-08-21 Alan Hayward <alan.hayward@arm.com>
4591
4592 * NEWS: Add SVE to 8.2 section.
4593
4895f384
PA
45942018-08-21 Pedro Alves <palves@redhat.com>
4595
4596 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4597 out from gdbscm_parse_function_args.
4598 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4599 gdbscm_parse_function_args_1.
4600
a4497d2f
SM
46012018-08-21 Simon Marchi <simon.marchi@ericsson.com>
4602
4603 PR gdb/17816
4604 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4605 operator.
4606
c44deb73
SM
46072018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
4608
4609 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4610
be2d111a
MS
46112018-08-19 Michael Spang <spang@google.com>
4612
4613 PR gdb/11786
4614 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4615 for PT_TLS segments.
4616
a6b786da
KB
46172018-08-18 Kevin Buettner <kevinb@redhat.com>
4618
4619 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4620 dwarf_variable_value.
4621 * dwarf2-frame.c (class dwarf_expr_executor):
4622 Add override for dwarf_variable_value.
4623 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4624 (class symbol_needs_eval_context): Likewise.
4625 (indirect_synthetic_pointer): Add forward declaration.
4626 (sect_variable_value): New function.
4627 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4628 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4629 for DW_OP_GNU_variable_value.
4630
89fbedf3
TT
46312018-08-16 Tom Tromey <tom@tromey.com>
4632
4633 * top.c (read_command_file): Update.
4634 (command_line_input): Remove "repeat" argument.
4635 * ada-lang.c (get_selections): Update.
4636 * linespec.c (decode_line_2): Update.
4637 * defs.h (command_line_input): Remove argument.
4638 * cli/cli-script.c (read_next_line): Update.
4639 * python/py-gdb-readline.c: Update.
4640
12582533
TT
46412018-08-17 Tom Tromey <tom@tromey.com>
4642
4643 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4644 command_line_input.
4645
49514353
TT
46462018-08-15 Tom Tromey <tom@tromey.com>
4647
4648 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4649
26fb3983
JV
46502018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
4651
4652 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4653 If used, use find_pc_partial_function to find address range
4654 to disassemble.
4655 * mi/mi-main.c (mi_cmd_list_features): Report
4656 "data-disassemble-a-option" feature.
4657 * NEWS: Mention new -data-disassemble option -a.
4658
a97b53dd
TT
46592018-08-13 Tom Tromey <tom@tromey.com>
4660
4661 * common/common-defs.h (_FORTIFY_SOURCE): Define.
4662
0c76e06d
AH
46632018-08-13 Alan Hayward <alan.hayward@arm.com>
4664
4665 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4666 (aarch64_linux_collect_sve_regset): Likewise.
4667 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4668 * regcache.h (regcache_map_entry_size): New function.
4669
b7fd65b9
AH
46702018-08-13 Alan Hayward <alan.hayward@arm.com>
4671
4672 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4673 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4674 (SVE_HEADER_VL_LENGTH): Likewise.
4675 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4676 (SVE_HEADER_FLAGS_LENGTH): Likewise.
4677 (SVE_HEADER_RESERVED_LENGTH): Likewise.
4678 (SVE_HEADER_SIZE_OFFSET): Likewise.
4679 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4680 (SVE_HEADER_VL_OFFSET): Likewise.
4681 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4682 (SVE_HEADER_FLAGS_OFFSET): Likewise.
4683 (SVE_HEADER_RESERVED_OFFSET): Likewise.
4684 (SVE_HEADER_SIZE): Likewise.
4685 (aarch64_linux_core_read_vq): Add function.
4686 (aarch64_linux_core_read_description): Check for SVE section.
4687
a616bb94
AH
46882018-08-13 Alan Hayward <alan.hayward@arm.com>
4689
4690 * aarch64-fbsd-tdep.c
4691 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4692 collect_size.
4693 * aarch64-linux-tdep.c
4694 (aarch64_linux_iterate_over_regset_sections): Likewise.
4695 * alpha-linux-tdep.c
4696 (alpha_linux_iterate_over_regset_sections):
4697 * alpha-nbsd-tdep.c
4698 (alphanbsd_iterate_over_regset_sections): Likewise.
4699 * amd64-fbsd-tdep.c
4700 (amd64fbsd_iterate_over_regset_sections): Likewise.
4701 * amd64-linux-tdep.c
4702 (amd64_linux_iterate_over_regset_sections): Likewise.
4703 * arm-bsd-tdep.c
4704 (armbsd_iterate_over_regset_sections): Likewise.
4705 * arm-fbsd-tdep.c
4706 (arm_fbsd_iterate_over_regset_sections): Likewise.
4707 * arm-linux-tdep.c
4708 (arm_linux_iterate_over_regset_sections): Likewise.
4709 * corelow.c (get_core_registers_cb): Likewise.
4710 (core_target::fetch_registers): Likewise.
4711 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4712 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4713 * gdbarch.h (void): Regenerate.
4714 * gdbarch.sh: Add supply_size and collect_size.
4715 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4716 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4717 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4718 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4719 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4720 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4721 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4722 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4723 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4724 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4725 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4726 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4727 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4728 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4399bce9
PA
4729 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
4730 Likewise.
a616bb94
AH
4731 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4732 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4733 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4734 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4735 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4736 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4399bce9
PA
4737 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
4738 Likewise.
a616bb94
AH
4739 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
4740 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
4741 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
4742 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
4743 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
4744 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
4745 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
4746 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4747
a9925d4f
SM
47482018-08-10 Simon Marchi <simon.marchi@ericsson.com>
4749
4750 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4751 with string_printf.
4752
ad3a68e9
KS
47532018-08-10 Keith Seitz <keiths@redhat.com>
4754
4755 * compile/compile-c-support.c (add_code_header, add_code_footer):
4756 Move into policy class.
4757 (c_push_user_expression, pop_user_expression_nop)
4758 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4759 (compile_program): New host class.
4760 (c_compile_program): New typedef.
4761 (c_compute_porgram): Use c_compile_program.
4762
0cfbf430
KS
47632018-08-10 Keith Seitz <keiths@redhat.com>
4764
4765 * compile/compile-internal.h (compile_instance::~compile_instance):
4766 Remove calls to htab_delete.
4767 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4768 * compile.c (compile_instance::compile_instance): Initialize
4769 htab unique pointers.
4770 (compile_instance::get_cached_type, compile_instance::insert_type)
4771 (compile_instance::error_symbol_once): Update for unique_ptr.
4772
946d3d10
KS
47732018-08-10 Keith Seitz <keiths@redhat.com>
4774
4775 * compile/compile-c-symbols.c (struct symbol_error)
4776 (hash_symbol_error, eq_symbol_error, del_symbol_error)
4777 (compile_instance::insert_symbol_error)
4778 (compile_instance::error_symbol_once): Move to ...
4779 * compile/compile.c: ... here.
4780
9cdfd9a2
KS
47812018-08-10 Keith Seitz <keiths@redhat.com>
4782
4783 * compile/compile-c-support.c (c_get_compile_context): Use `new'
4784 instead of `new_compile_instance'.
4785 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4786 Update description.
4787 If the symbol error map is not initialized, create it.
4788 (generate_c_for_for_one_symbol): Do not check/initialize
4789 the symbol error map.
4790 * compile/compile-c-types.c (compile_c_instance): Make a class.
4791 Update all callers.
4792 (compile_instance::compile_instance): Initialize the type cache.
4793 (get_cached_type): New function.
4794 (insert_type): Update description.
4795 (compile_c_instance::m_default_cflags): Define.
4796 (convert_type): Update description. Use get_cached_type.
4797 (delete_instance): Moved to destructor.
4798 (new_compile_instance): Moved to constructor.
4799 * compile/compile-c.h (compile_c_instance): Make class inheriting
4800 from compile_instance.
4801 <base>: Remove field.
4802 <type_map, symbol_err_map>: Move to base class.
4803 <c_plugin>: Rename to `m_plugin' and remove pointer type.
4804 * compile/compile-internal.h (compile_instance): Make class.
4805 <type_map_t, symbol_err_map_t>: Define.
4806 <fe>: Rename to `m_gcc_fe'.
4807 <scope, block, gcc_target_options>: Add `m_' prefix.
4808 <m_type_map, m_symbol_err_map>: New fields, moved from
4809 compile_c_instance.
4810 <destroy>: Remove.
4811 (convert_type, new_compile_instance): Remove.
4812 * compile/compile.c (cleanup_compile_instance): Remove.
4813 (compile_to_object): Use unique_ptr to eliminate cleanups.
4814 (compile_instance::set_print_callback, compile_instance::version)
4815 (compile_instance::set_verbose)
4816 (compile_instance::set_driver_filename)
4817 (compile_instance::set_triplet_regexp)
4818 (compile_instance::set_arguments)
4819 (compile_instance::set_source_file)
4820 (compile_instance::compile): Define.
4821
18cdc6d8
KS
48222018-08-10 Keith Seitz <keiths@redhat.com>
4823
4824 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4825 * compile/compile-c-types.c: Define GCC_METHODN macros and include
4826 gcc-c-fe.def to define C plugin.
4827 (delete_instance): Delete `c_plugin'.
4828 (new_compile_instance): Initialize `c_plugin'.
4829 * compile/compile-c.h: Include gcc_c_plugin.h.
4830 (struct compile_c_instance) <c_plugin>: New member.
4831 * gcc-c-plugin.h: New file.
4832 Update all callers with API change.
4833
b7dc48b4
KS
48342018-08-10 Keith Seitz <keiths@redhat.com>
4835
4836 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4837 (HFILES_NO_SRCDIR): ... to here.
4838 Add compile-internal.h and compile-c.h.
4839 * compile/compile-c-support.c: Include compile-c.h.
4840 * compile/compile-c-symbols.c: Include compile-c.h.
4841 (generate_c_for_variable_locations): Update comment.
4842 * compile/compile-c-types.c: Include compile-c.h.
4843 * compile/compile-c.h: New file -- moved C language declarations
4844 from other files here.
4845 * compile/compile-internal.h: Do not include hashtab.h or
4846 common/enum-flags.h.
4847 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4848 (gcc_convert_symbol, gcc_symbol_address)
4849 (generate_c_for_variable_locations, c_get_mode_for_size)
4850 (c_get_range_decl_name): Definitions moved to compile-c.h.
4851 * compile/compile-loc2c.c: Include compile-c.h.
4852
6f36b6d2
KS
48532018-08-10 Keith Seitz <keiths@redhat.com>
4854
4855 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4856 (c_symbol_substitution_name): ... this.
4857 Update all callers.
4858
bd923e51
KS
48592018-08-10 Keith Seitz <keiths@redhat.com>
4860
4861 * compile/compile-c-support.c (c_compute_program): Use
4862 unique_xmalloc_ptr to eliminate cleanup.
4863 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4864 Return a unique_xmalloc_ptr and eliminate cleanup.
4865 * compile/compile-internal.h (generate_c_for_variable_locations):
4866 Return unique_xmalloc_ptr and update description.
4867
dbd534fe
AH
48682018-08-10 Alan Hayward <alan.hayward@arm.com>
4869
4870 * corelow.c (core_target::get_core_register_section): Rename
4871 min_size to section_min_size.
4872
90ad3654
JW
48732018-08-09 Jim Wilson <jimw@sifive.com>
4874
52a187f8
JW
4875 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4876 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4877 * NEWS: Mention new GNU/Linux RISC-V target.
4878 * configure.host: Add riscv*-*-linux*.
4879 * configure.nat: Add riscv*.
4880 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 4881 * riscv-linux-nat.c: New file.
90ad3654
JW
4882 * riscv-linux-tdep.c: New file.
4883
aff4e175
AB
48842018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4885
4886 * infrun.c (resume): Make static, add forward declaration.
4887 (proceed): Update header comment.
4888 * infrun.h (resume): Delete declaration.
4889
06ab9219
TT
48902018-08-09 Tom Tromey <tom@tromey.com>
4891
4892 * riscv-tdep.h: Minor formatting fixes.
4893
83c8d318
SM
48942018-08-09 Simon Marchi <simon.marchi@ericsson.com>
4895
4896 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4897 * dwarf-index-cache.c (create_dir_and_check): Likewise.
4898 (test_mkdir_recursive): Likewise.
4899 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4900
5ff2bbae
AB
49012018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4902
4903 * valarith.c (value_subscripted_rvalue): If an array is not in
4904 memory, and we don't know the upper bound, then we can't know that
4905 the requested element exists or not.
4906
fdbac7d8
SM
49072018-08-08 Simon Marchi <simon.marchi@ericsson.com>
4908
4909 * target.c (str_comma_list_concat_elem): Fix typo in comment.
4910 (target_options_to_string): Add comment.
4911
83202f7a
TT
49122018-08-08 Tom Tromey <tom@tromey.com>
4913
4914 * unittests/scoped_mmap-selftests.c: Check result of "write".
4915
411baa47
JW
49162018-08-08 Jim Wilson <jimw@sifive.com>
4917
5c720ed8
JW
4918 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4919 (decode_register_index_short): New.
4920 (decode_j_type_insn, decode_cj_type_insn): New.
4921 (decode_b_type_insn, decode_cb_type_insn): New.
4922 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
4923 local xlen. Check xlen when decoding ambiguous compressed insns. In
4924 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4925 is_c_sw_insn instead of is_sw_insn.
4926 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4927 (riscv_software_single_step): New.
4928 * riscv-tdep.h (riscv_software_single_step): Declare.
4929
411baa47
JW
4930 * riscv-tdep.c (riscv_isa_xlen): Drop static.
4931 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4932
9d4a934c
AB
49332018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
4934
4935 PR gdb/18050:
4936 * target.c (dispose_inferior): Don't dispose of inferiors that are
4937 already killed.
4938
ff36536c
SN
49392018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
4940
4941 * remote.c (remote_target::download_tracepoint): Change char* to
4942 const char*.
4943
09ce46f2
SM
49442018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4945
4946 * target.h (target_options_to_string): Return an std::string.
4947 * target.c (str_comma_list_concat_elem): Return void, use
4948 std::string.
4949 (do_option): Likewise.
4950 (target_options_to_string): Return an std::string.
4951 * linux-nat.c (linux_nat_target::wait): Adjust.
4952 * target-debug.h (target_debug_print_options): Adjust.
4953
9c612964
TT
49542018-08-07 Tom Tromey <tom@tromey.com>
4955
4956 * Makefile.in (CPPFLAGS): New variable.
4957 (INTERNAL_CPPFLAGS): Use it.
4958
7d11235d
SM
49592018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4960
4961 * NEWS: Mention the index cache.
4962
87d6a7aa
SM
49632018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4964
4965 * common/pathstuff.h (get_standard_cache_dir): New.
4966 * common/pathstuff.c (get_standard_cache_dir): New.
4967 * build-id.h (build_id_to_string): New.
4968 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4969 DEBUG_STR_SUFFIX): Move to here.
4970 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4971 DEBUG_STR_SUFFIX): Move from there.
4972 (write_psymtabs_to_index): Make non-static, add basename
4973 parameter. Write to temporary files, rename when done.
4974 (save_gdb_index_command): Adjust call to
4975 write_psymtabs_to_index.
4976 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4977 field.
4978 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4979 (get_gdb_index_contents_from_cache): New.
4980 (get_gdb_index_contents_from_cache_dwz): New.
4981 (dwarf2_initialize_objfile): Read index from cache.
4982 (dwarf2_build_psymtabs): Save to index.
4983 * dwarf-index-cache.h: New file.
4984 * dwarf-index-cache.c: New file.
4985 * dwarf-index-write.h: New file.
4986
8a99096f
SM
49872018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4988
4989 * gnulib/aclocal.m4: Re-generate.
4990 * gnulib/config.in: Re-generate.
4991 * gnulib/configure: Re-generate.
4992 * gnulib/import/Makefile.am: Re-generate.
4993 * gnulib/import/Makefile.in: Re-generate.
4994 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4995 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4996 * gnulib/import/m4/mkdir.m4: New file.
4997 * gnulib/import/mkdir.c: New file.
4998 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4999 module.
5000
5c831bb1
SM
50012018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5002
5003 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
5004 * common/scoped_mmap.c: New file.
5005 * common/scoped_mmap.h (destroy): New method.
5006 (~scoped_mmap, reset): Use destroy.
5007 (scoped_mmap): New move constructor.
5008 (mmap_file): New declaration.
5009 * unittests/scoped_mmap-selftests.c (test_normal,
5010 test_invalid_filename, run_tests): New functions.
5011 (_initialize_scoped_mmap_selftests): Register selftest.
5012
4485a1c1
SM
50132018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5014
5015 * dwarf2read.c (read_gdb_index_from_section): Rename to...
5016 (read_gdb_index_from_buffer): ... this. Remove section
5017 parameter, add buffer parameter.
5018 (get_gdb_index_contents_ftype,
5019 get_gdb_index_contents_dwz_ftype): New typedefs.
5020 (dwarf2_read_gdb_index): Add callback parameters to get the
5021 index contents.
5022 (get_gdb_index_contents_from_section): New.
5023 (dwarf2_initialize_objfile): Update call to
5024 dwarf2_read_gdb_index.
5025
528e1572
SM
50262018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5027
5028 * common/filestuff.h (gdb_fopen_cloexec): New overload.
5029 (gdb_open_cloexec): Likewise.
5030 * nat/linux-osdata.c (command_from_pid): Use string_printf.
5031 (commandline_from_pid): Likewise.
5032 (linux_xfer_osdata_threads): Likewise.
5033 (linux_xfer_osdata_fds): Likewise.
5034 * ada-lang.c (is_package_name): Likewise.
5035 * auxv.c (procfs_xfer_auxv): Likewise.
5036 * breakpoint.c (print_one_breakpoint_location): Use
5037 uiout::field_fmt.
5038 (print_one_catch_solib): Use string_printf.
5039 * coff-pe-read.c (add_pe_exported_sym): Likewise.
5040 (add_pe_forwarded_sym): Likewise.
5041 * dwarf2read.c (create_type_unit_group): Likewise.
5042 (build_error_marker_type): Likewise.
5043 * infcall.c (get_function_name): Likewise.
5044 * valprint.c (print_converted_chars_to_obstack): Likewise.
5045 * xtensa-tdep.c (xtensa_register_type): Likewise.
5046
a7f25a84
SM
50472018-08-06 Simon Marchi <simon.marchi@ericsson.com>
5048
5049 * remote.c (remote_target::download_tracepoint): Fix format
5050 string errors.
5051
296956be
PFC
50522018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5053
5054 * tracefile.c: Include common/byte-vector.h.
5055 (trace_save): Change type of buf to gdb::byte_vector. Initialize
5056 with trace_regblock_size if needed. Update uses of buf.
5057
a04b9d62
PFC
50582018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5059
5060 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
5061 std::vector<unsigned char>.
5062 * tracepoint.c (collection_list::collection_list): Remove
5063 m_regs_mask initializer from initializer list. Resize
5064 m_regs_mask using the largest remote register number.
5065 (collection_list::add_remote_register): Remove size check on
5066 m_regs_mask. Use at to access element.
5067 (collection_list::stringify): Change type of temp_buf to
5068 gdb::char_vector. Update uses of temp_buf. Resize if needed to
5069 stringify the register mask. Use pack_hex_byte for the register
5070 mask.
5071
4277c4b8
PFC
50722018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5073
5074 * tracepoint.h (class collection_list) <add_register>: Remove.
5075 <add_remote_register, add_ax_registers, add_local_register>:
5076 Declare.
5077 <add_memrange>: Add scope parameter.
5078 * tracepoint.c (encode_actions_1): Likewise.
5079 (collection_list::add_register): Rename to ...
5080 (collection_list::add_remote_register): ... this. Update
5081 comment.
5082 (collection_list::add_ax_registers, add_local_register): New
5083 methods.
5084 (collection_list::add_memrange): Add scope parameter. Call
5085 add_local_register instead of add_register.
5086 (finalize_tracepoint_aexpr): New function.
5087 (collection_list::collect_symbol): Update calls to add_memrange.
5088 Call add_local_register instead of add_register. Call
5089 add_ax_registers. Call finalize_tracepoint_aexpr.
5090 (encode_actions_1): Get remote regnos for $reg action. Call
5091 add_remote_register, add_ax_registers, and add_local_register.
5092 Update call to add_memrange. Call finalize_tracepoint_aexpr.
5093 (validate_actionline): Call finalize_tracepoint_aexpr.
5094
3df3a985
PFC
50952018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5096
5097 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
5098 Replace array buf with gdb::char_vector buf, of size
5099 get_remote_packet_size (). Replace references to buf and
5100 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
5101 and xsnprintf with snprintf. Raise errors if the buffer is too
5102 small.
5103
aa6f3694
PFC
51042018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5105
5106 * remote.c (remote_target::download_tracepoint): Fix the has_more
5107 predicate in the QTDP action list iteration.
5108
05abfc39
PFC
51092018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5110
5111 * remote.c (remote_target::download_tracepoint): Fix indentation
5112 in for block.
5113
821a2682
RO
51142018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5115
5116 * proc-api.c (_initialize_proc_api): Remove c, unused.
5117 * procfs.c (procfs_init_inferior): Remove signals, unused.
5118 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
5119 unused.
5120
95347337
AB
51212018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
5122 Andrew Burgess <andrew.burgess@embecosm.com>
5123
5124 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
5125 'W_STOPCODE (0)' as this could be ambiguous.
5126
425699f5
SDJ
51272018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
5128
5129 * ser-tcp.c (net_open): Fix thinko when deciding whether to
5130 disable TCP's Nagle algorithm (use "ai_protocol" instead of
5131 "ai_socktype").
5132
3e1d3d8c
TT
51332018-08-02 Tom Tromey <tom@tromey.com>
5134
5135 PR symtab/16842.
5136 * dwarf2read.c (read_func_scope): Set symtab on template parameter
5137 symbols.
5138 (process_structure_scope): Likewise.
5139
15843549
XR
51402018-08-02 Xavier Roirand <roirand@adacore.com>
5141
5142 PR gdb/22629:
4399bce9
PA
5143 * darwin-nat.c (darwin_kill_inferior): Fix handling of
5144 kill inferior.
15843549 5145
b5bddbbb
TT
51462018-08-02 Tom Tromey <tom@tromey.com>
5147
5148 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
5149 (darwin_suspend_inferior, darwin_resume_inferior)
5150 (darwin_decode_notify_message, darwin_resume_inferior_threads)
5151 (darwin_check_new_threads): Check result of get_darwin_inferior.
5152
f61cfa07
JB
51532018-07-31 Joel Brobecker <brobecker@adacore.com>
5154
5155 GDB 8.1.1 released.
5156
5abe0f0c
JV
51572018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
5158
5159 * varobj.c (varobj_get_path_expr_parent): Report an error if
5160 parent is a dynamic varobj.
5161
472fa5ee
SM
51622018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5163
5164 * gnulib/aclocal.m4: Re-generate.
5165 * gnulib/config.in: Re-generate.
5166 * gnulib/configure: Re-generate.
5167 * gnulib/import/Makefile.in: Re-generate.
5168 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5169 * gnulib/import/m4/onceonly.m4: Re-generate.
5170
1c28969e
SM
51712018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5172
5173 * target-descriptions.c (struct xml_test_tdesc): New.
5174 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
5175 (record_xml_tdesc): Update.
5176 (maintenance_check_xml_descriptions): Update.
5177 * target-descriptions.h (record_xml_tdesc): Update comment.
5178
c8f2dc0d
AB
51792018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
5180
5181 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
5182 checking array bounds are defined.
5183
463c08d1
TT
51842018-07-30 Tom Tromey <tom@tromey.com>
5185
5186 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
5187 irreflexivity violation.
5188
dba7455e
TT
51892018-07-30 Tom Tromey <tom@tromey.com>
5190
5191 * cli/cli-decode.c (lookup_cmd): Remove lint code.
5192 * value.c (unpack_long): Remove lint code.
5193 * valops.c (value_ind): Remove lint code.
5194 * valarith.c (value_x_binop, value_x_unop, value_equal)
5195 (value_pos): Remove lint code.
5196
37cc0cae
TV
51972018-07-28 Tom de Vries <tdevries@suse.de>
5198
5199 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
5200 with undefined upper bound as <optimized out>.
5201
129eb0f1
SDJ
52022018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
5203
5204 * gcore.in: Rename variable "name" to "prefix". Expand
5205 "usage" text.
5206
6af79d7b
JT
52072018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
5208
5209 * windows-nat.c (windows_nat_target::create_inferior): Update to
5210 call close() in global namespace.
5211
79748972
TT
52122018-07-26 Tom Tromey <tom@tromey.com>
5213
5214 * dwarf-index-write.c (add_address_entry): Don't add objfile
5215 offsets.
5216 * dbxread.c (find_stab_function): Rename from
5217 find_stab_function_addr. Return a bound_minimal_symbol.
5218 (read_dbx_symtab): Use raw_text_low, raw_text_high.
5219 Don't add objfile offsets.
5220 (end_psymtab): Use raw_text_low, raw_text_high,
5221 MSYMBOL_VALUE_RAW_ADDRESS.
5222 (read_ofile_symtab): Update.
5223 (process_one_symbol): Update.
5224 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5225 offsets.
5226 (dw2_relocate): Remove.
5227 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5228 searching addrmap.
5229 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5230 Update.
5231 (process_psymtab_comp_unit_reader, add_partial_symbol)
5232 (add_partial_subprogram, dwarf2_ranges_read): Update.
5233 (load_partial_dies): Update.
5234 (add_address_entry): Don't add objfile offsets.
5235 (dwarf2_build_include_psymtabs): Update.
5236 (create_addrmap_from_aranges): Don't add objfile offsets.
5237 (dw2_find_pc_sect_compunit_symtab): Update.
5238 * mdebugread.c (parse_symbol): Don't add objfile offsets.
5239 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5240 Update.
5241 (parse_partial_symbols): Don't add objfile offsets. Use
5242 raw_text_low, raw_text_high. Update.
5243 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5244 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5245 or call 'relocate' quick function. Clear psymbol_map.
5246 * psympriv.h (struct partial_symbol) <address>: Add section
5247 offset.
5248 <set_unrelocated_address>: Rename from set_address.
5249 <raw_text_low, raw_text_high>: New methods.
5250 <text_low, text_high>: Add objfile parameter.
5251 (add_psymbol_to_bcache): Add 'section' parameter. Call
5252 set_unrelocated_address.
5253 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5254 (find_pc_psymbol): Update.
5255 (fixup_psymbol_section, relocate_psymtabs): Remove.
5256 (dump_psymtab, psym_functions): Update.
5257 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5258 parameter.
5259 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5260 (start_psymtab_common): Update.
5261 * symfile-debug.c (debug_qf_relocate): Remove.
5262 (debug_sym_quick_functions): Update.
5263 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5264 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5265 Update.
5266
52948f01
TT
52672018-07-26 Tom Tromey <tromey@redhat.com>
5268
5269 * dbxread.c (end_psymtab): Use text_high_valid and
5270 text_low_valid.
5271 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5272 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5273 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5274 Update comment.
5275 <text_low_valid, text_high_valid>: New fields.
5276 <set_text_low, set_text_high>: Update.
5277 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5278
4ae976d1
TT
52792018-07-26 Tom Tromey <tom@tromey.com>
5280
5281 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5282 Update.
5283 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5284 textlow and texthigh fields.
5285 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5286 Update.
5287 * mdebugread.c (parse_lines, parse_partial_symbols)
5288 (psymtab_to_symtab_1): Update.
5289 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5290 Rename fields. Update comment. Now private.
5291 <text_low, text_high, set_text_low, set_text_high>: New methods.
5292 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5293 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5294 (start_psymtab_common, maintenance_info_psymtabs)
5295 (maintenance_check_psymtabs): Update.
5296 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5297 texthigh fields.
5298 (scan_xcoff_symtab): Update.
5299
02e9e7f7
TT
53002018-07-26 Tom Tromey <tromey@redhat.com>
5301
5302 * psympriv.h (struct partial_symbol) <unrelocated_address,
5303 address, set_address>: New methods.
5304 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5305 (fixup_psymbol_section, relocate_psymtabs): Update.
5306 (print_partial_symbols): Add 'objfile' parameter. Update.
5307 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5308 Update.
5309
8a6d4234
TT
53102018-07-26 Tom Tromey <tom@tromey.com>
5311
5312 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5313 (debug_names::write_psymbols): Update.
5314 * psympriv.h (struct partial_symbol): Derive from
5315 general_symbol_info.
5316 <obj_section>: New method.
5317 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5318 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5319 (find_pc_sect_psymbol, fixup_psymbol_section)
5320 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5321 (print_partial_symbols, recursively_search_psymtabs)
5322 (compare_psymbols, psymbol_hash, psymbol_compare)
5323 (add_psymbol_to_bcache, maintenance_check_psymtabs)
5324 (psymbol_name_matches, psym_fill_psymbol_map): Update.
5325
08994e1d
TT
53262018-07-26 Tom Tromey <tromey@redhat.com>
5327
5328 * dbxread.c (end_psymtab): Remove dead code.
5329
3c3bb058
AB
53302018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
5331
5332 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5333 DWARF unwinders are disabled.
5334 * dwarf2-frame.c: Add dwarf2read.h include.
5335 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5336 disabled.
5337 (dwarf2_frame_unwinders_enabled_p): Define.
5338 (show_dwarf_unwinders_enabled_p): New function.
5339 (_initialize_dwarf2_frame): Register switch to control DWARF
5340 unwinder use.
5341 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5342 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5343 (show_dwarf_cmdlist): Remove static keyword.
5344 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5345 (show_dwarf_cmdlist): Declare.
5346 * NEWS: Document new feature.
5347
9e7f3bbb
TV
53482018-07-26 Tom de Vries <tdevries@suse.de>
5349
5350 PR breakpoints/23366
5351 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5352
506f5c41
TV
53532018-07-26 Tom de Vries <tdevries@suse.de>
5354
5355 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5356 DW_AT_count can't be translated to a dynamic prop.
5357
16f808ec
TV
53582018-07-25 Tom de Vries <tdevries@suse.de>
5359
5360 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5361 try/catch.
5362
d7154a8d
JV
53632018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5364
5365 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5366
a45389f6
JB
53672018-07-25 Joel Brobecker <brobecker@adacore.com>
5368
5369 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5370
380618d6
KS
53712018-07-24 Keith Seitz <keiths@redhat.comt
5372
5373 PR symtab/23010
5374 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5375 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5376 instead of add_symbol_to_list.
5377 (read_file_scope): Call prepare_one_comp_unit before reading
5378 any other DIEs.
5379
4b17aefe
SM
53802018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5381
5382 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5383
29d17e47
TT
53842018-07-24 Tom Tromey <tom@tromey.com>
5385
5386 * utils.c (malloc, realloc, free): Don't declare.
5387 * configure, config.in: Rebuild.
5388 * configure.ac: Don't check for declarations of free, malloc, or
5389 realloc.
5390
cf4088a9
SM
53912018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5392
5393 * aarch64-linux-nat.c
5394 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5395 variable.
5396 * arm-linux-nat.c (fetch_regs): Likewise.
5397 (store_regs): Likewise.
5398 (fetch_vfp_regs): Likewise.
5399 (store_vfp_regs): Likewise.
5400 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5401 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5402 (arm_linux_nat_target::insert_watchpoint): Likewise.
5403 (arm_linux_nat_target::remove_watchpoint): Likewise.
5404 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5405 Likewise.
5406 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5407 Likewise.
5408 * ppc-linux-nat.c (fetch_register): Likewise.
5409 (fetch_all_gp_regs): Likewise.
5410 (fetch_ppc_registers): Likewise.
5411 (store_all_gp_regs): Likewise.
5412 (store_ppc_registers): Likewise.
5413 (hwdebug_insert_point): Likewise.
5414 (can_use_watchpoint_cond_accel): Likewise.
5415 * remote-sim.c (gdb_os_write_stdout): Likewise.
5416
a0de763e
TT
54172018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5418 Tom Tromey <tom@tromey.com>
5419
5420 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5421 test for it.
5422 * configure: Rebuild.
5423
3b20124b
TT
54242018-07-22 Tom Tromey <tom@tromey.com>
5425
5426 * regformats/regdat.sh: Define xmltarget_${name} inside
5427 #ifndef IN_PROCESS_AGENT.
5428
8c8807f4
TT
54292018-07-22 Tom Tromey <tom@tromey.com>
5430
5431 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5432
c486b610
TT
54332018-07-22 Tom Tromey <tom@tromey.com>
5434
5435 * symfile.c (reread_symbols): Notify iter, not objfile.
5436
494f80a9
TT
54372018-07-22 Tom Tromey <tom@tromey.com>
5438
5439 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5440 Use arch_ops.
5441 (ravenscar_thread_target::prepare_to_store): Likewise.
5442
c51f6a54
TT
54432018-07-22 Tom Tromey <tom@tromey.com>
5444
5445 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5446 unused variable. Call value_fetch_lazy when needed.
5447 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5448 Remove unused variable. Call value_fetch_lazy when needed.
5449
374fd1fd
TT
54502018-07-22 Tom Tromey <tom@tromey.com>
5451
5452 * m32c-tdep.c (mark_dma): Return void.
5453 (make_regs): Remove unused declarations.
5454
d5e9a511
TT
54552018-07-22 Tom Tromey <tom@tromey.com>
5456
5457 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5458 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5459 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5460 bkscm_get_valid_block_smob_arg_unsafe for effect.
5461
996d693a
TT
54622018-07-22 Tom Tromey <tom@tromey.com>
5463
5464 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5465 value_type.
5466
15766370
TT
54672018-07-22 Tom Tromey <tom@tromey.com>
5468
5469 * windows-nat.c (saved_context): Conditionally define.
5470 * remote.c (remote_target::remote_btrace_maybe_reopen):
5471 Conditionally declare "warned".
5472 * inflow.c (sigquit_ours): Conditionally define.
5473 (new_tty): Move "tty" declaration inside #if.
5474 * guile/guile.c (guile_datadir): Conditionally define.
5475 * charset.c (set_be_le_names): Move some declarations inside #if.
5476 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5477 #if.
5478 (parse_xml_btrace_conf): Likewise.
5479
f4e80e13
TT
54802018-07-22 Tom Tromey <tom@tromey.com>
5481
5482 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5483
8d49165d
TT
54842018-07-22 Tom Tromey <tom@tromey.com>
5485
5486 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5487 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5488 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5489 * buildsym-legacy.c (get_macro_table): Remove unused variable.
5490 * stack.c (frame_apply_level_command): Remove unused variable.
5491 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5492 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5493 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5494 unused variable.
5495 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5496 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5497 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5498 variable.
5499 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5500 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5501 variable.
5502 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5503 Remove unused variable.
5504 * cli/cli-script.c (recurse_read_control_structure): Remove unused
5505 variable.
5506 * common/tdesc.c (print_xml_feature::visit): Remove unused
5507 variable.
5508 * compile/compile-object-load.c (store_regs): Remove unused
5509 variables.
5510 * complaints.c (clear_complaints): Remove unused variable.
5511 * corelow.c (core_target_open): Remove unused variable.
5512 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5513 variable.
5514 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5515 variable.
5516 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5517 variable.
5518 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5519 variable.
5520 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5521 variable.
5522 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5523 variable.
5524 * ia64-tdep.c (examine_prologue): Remove unused variable.
5525 * infcall.c (run_inferior_call): Remove unused variable.
5526 * inferior.c (exit_inferior): Remove unused variable.
5527 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5528 * linespec.c (decode_line_2): Remove unused variable.
5529 * linux-nat.c (super_close): Remove.
5530 * linux-tdep.c (linux_info_proc): Remove unused variable.
5531 * mi/mi-main.c (mi_execute_command): Remove unused variable.
5532 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5533 Remove unused variable.
5534 * parse.c (find_minsym_type_and_address): Remove unused variable.
5535 * printcmd.c (info_symbol_command, printf_floating): Remove unused
5536 variable.
5537 * python/py-breakpoint.c (bppy_set_commands): Remove unused
5538 variable.
5539 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5540 variables.
5541 * record-btrace.c (record_btrace_target::store_registers): Remove
5542 unused variable.
5543 (cmd_show_record_btrace_cpu): Remove unused variable.
5544 * riscv-tdep.c (riscv_register_reggroup_p)
5545 (riscv_push_dummy_call, riscv_return_value): Remove unused
5546 variable.
5547 * rust-exp.y (literal): Remove unused variable.
5548 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5549 unused variable.
5550 <STRUCTOP_ANONYMOUS>: Likewise.
5551 * s390-linux-tdep.c (s390_linux_init_abi_31)
5552 (s390_linux_init_abi_64): Remove unused variable.
5553 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5554 (file_select_thread, net_windows_open, _initialize_ser_windows):
5555 Remove unused variables.
5556 * symtab.c (find_pc_sect_line): Remove unused variable.
5557 * target-memory.c (compute_garbled_blocks): Remove unused
5558 variable.
5559 (target_write_memory_blocks): Remove unused variable.
5560 * target.c (target_stack::unpush): Remove unused variables.
5561 * tracepoint.c (start_tracing, all_tracepoint_actions)
5562 (merge_uploaded_trace_state_variables)
5563 (print_one_static_tracepoint_marker): Remove unused variable.
5564 * unittests/basic_string_view/element_access/char/1.cc (test01):
5565 Remove unused variable.
5566 * windows-nat.c (windows_continue, windows_add_all_dlls)
5567 (do_initial_windows_stuff, windows_nat_target::create_inferior):
5568 Remove unused variables.
5569
17cbafdb
SM
55702018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5571
5572 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5573 attr_profile in HAVE_ELF.
5574 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5575 HAVE_ELF.
5576
0ee6c332
SM
55772018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
5578
5579 * frame.c (frame_register_unwind): Change parameter name.
5580 (frame_unwind_register): Likewise.
5581 (frame_unwind_register_value): Likewise.
5582 (frame_unwind_register_signed): Likewise.
5583 (frame_unwind_register_unsigned): Likewise.
5584 * frame.h (frame_register_unwind): Likewise.
5585 (frame_unwind_register): Likewise.
5586 (frame_unwind_register_value): Likewise.
5587 (frame_unwind_register_signed): Likewise.
5588 (frame_unwind_register_unsigned): Likewise.
5589 (frame_unwind_arch): Likewise.
5590
e2e31f10
MR
55912018-07-20 Maciej W. Rozycki <macro@mips.com>
5592
5593 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5594 ISA maintenance.
5595
2d389915
MR
55962018-07-20 Maciej W. Rozycki <macro@mips.com>
5597
5598 * mips-linux-nat.c (mips_linux_nat_target::read_description):
5599 Call `get_ptrace_pid' rather than extracting the ptrace PID by
5600 hand.
5601
cbb09508
KS
56022018-07-20 Keith Seitz <keiths@redhat.com>
5603
5604 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5605 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5606 m_compunit_symtab, m_language>: Add "m_" prefix.
5607 Update all uses.
5608 * buildsym.c: Update all uses.
5609
bfe2e011
TT
56102018-07-20 Tom Tromey <tom@tromey.com>
5611
5612 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5613 * buildsym.h (record_line_ftype): Remove typedef.
5614
0e6f3061
TT
56152018-07-20 Tom Tromey <tom@tromey.com>
5616
5617 * buildsym-legacy.h (augment_type_symtab): Don't declare.
5618 (end_expandable_symtab): Likewise.
5619 (end_symtab_get_static_block): Likewise.
5620 (end_symtab_from_static_block): Likewise.
5621 * buildsym-legacy.c (augment_type_symtab): Remove.
5622 (end_expandable_symtab): Remove.
5623 (end_symtab_get_static_block): Remove.
5624 (end_symtab_from_static_block): Remove.
5625
804d2729
TT
56262018-07-20 Tom Tromey <tom@tromey.com>
5627
5628 * dwarf2read.c: Include buildsym.h.
5629 (struct dwarf2_cu) <builder>: New method.
5630 (fixup_go_packaging): Update.
5631 (process_full_comp_unit, process_full_type_unit): Update. Don't
5632 use scoped_free_pendings.
5633 (using_directives): Add "cu" parameter, remove "language".
5634 (read_import_statement, setup_type_unit_groups, )
5635 (read_func_scope, read_lexical_block_scope)
5636 (dwarf2_record_block_ranges, read_namespace): Update.
5637 (lnp_state_machine::lnp_state_machine): Add cu parameter.
5638 (lnp_state_machine::handle_end_sequence): Update.
5639 (class lnp_state_machine) <m_cu>: New member.
5640 <m_record_line_callback>: Remove.
5641 <m_currently_recording_lines>: New member.
5642 (lnp_state_machine::handle_set_file): Update.
5643 (noop_record_line): Remove.
5644 (dwarf_record_line_p): Add cu parameter.
5645 (dwarf_record_line_1, dwarf_finish_line): Likewise.
5646 (lnp_state_machine::record_line)
5647 (lnp_state_machine::lnp_state_machine)
5648 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5649 (dwarf_decode_lines): Update.
5650 (dwarf2_start_subfile): Add cu parameter.
5651 (dwarf2_start_symtab, new_symbol): Update.
5652 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5653 Remove dwarf2_per_objfile parameter.
5654 (dwarf_decode_macros): Update.
5655
80e649fc
TT
56562018-07-20 Tom Tromey <tom@tromey.com>
5657
5658 * stabsread.c (define_symbol): Update.
5659 * buildsym-legacy.h (get_buildsym_compunit): Declare.
5660 * dwarf2read.c (new_symbol): Update.
5661 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5662 * cp-namespace.c: Include buildsym.h.
5663 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5664 * buildsym-legacy.c (get_buildsym_compunit): New function.
5665
0baae8db
TT
56662018-07-20 Tom Tromey <tom@tromey.com>
5667
5668 * xcoffread.c: Include buildsym-legacy.h.
5669 * windows-nat.c: Include buildsym-legacy.h.
5670 * stabsread.c: Include buildsym-legacy.h.
5671 * mdebugread.c: Include buildsym-legacy.h.
5672 * buildsym-legacy.h: New file.
5673 * buildsym-legacy.c: New file, from buildsym.c.
5674 * go32-nat.c: Include buildsym-legacy.h.
5675 * dwarf2read.c: Include buildsym-legacy.h.
5676 * dbxread.c: Include buildsym-legacy.h.
5677 * cp-namespace.c: Include buildsym-legacy.h.
5678 * coffread.c: Include buildsym-legacy.h.
5679 * buildsym.h: Move some contents to buildsym-legacy.h.
5680 * buildsym.c: Include buildsym-legacy.h. Move many functions to
5681 buildsym-legacy.c.
5682 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5683
ab209f6f
TT
56842018-07-20 Tom Tromey <tom@tromey.com>
5685
5686 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5687 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5688 (buildsym_compunit::buildsym_compunit)
5689 (buildsym_compunit::~buildsym_compunit)
5690 (buildsym_compunit::get_macro_table): Define.
5691
74c72eac
TT
56922018-07-20 Tom Tromey <tom@tromey.com>
5693
5694 * buildsym.c (reset_symtab_globals): Remove.
5695 (buildsym_compunit::end_symtab_from_static_block): Update.
5696 (buildsym_compunit::augment_type_symtab): Update.
5697 (end_symtab_from_static_block): Call free_buildsym_compunit.
5698 (augment_type_symtab, end_symtab, end_expandable_symtab):
5699 Likewise.
5700
da6580e5
TT
57012018-07-20 Tom Tromey <tom@tromey.com>
5702
5703 * arch-utils.c: Do not include buildsym.h.
5704 * mipsread.c: Do not include buildsym.h.
5705 * machoread.c: Do not include buildsym.h.
5706 * elfread.c: Do not include buildsym.h.
5707
4a2125f5
TT
57082018-07-20 Tom Tromey <tom@tromey.com>
5709
5710 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5711 initialization.
5712 (buildsym_compunit): Add new constructor.
5713 (struct buildsym_compunit) <get_last_source_file, finish_block,
5714 record_block_range, start_subfile, patch_subfile_names,
5715 push_subfile, pop_subfile, record_line, get_compunit_symtab,
5716 set_last_source_start_addr, get_last_source_start_addr,
5717 get_local_using_directives, set_local_using_directives,
5718 get_global_using_directives, outermost_context_p,
5719 get_current_context_stack, get_context_stack_depth,
5720 get_current_subfile, get_local_symbols, get_file_symbols,
5721 get_global_symbols, record_debugformat, record_producer,
5722 push_context, pop_context, end_symtab_get_static_block,
5723 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5724 New public methods.
5725 <record_pending_block, finish_block_internal, make_blockvector,
5726 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5727 private methods.
5728 Update all users.
5729
57302018-05-22 Tom Tromey <tom@tromey.com>
5731
5732 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5733 parameter.
5734 (finish_block_internal): Update.
5735
6b213a47
TT
57362018-07-20 Tom Tromey <tom@tromey.com>
5737
5738 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5739 parameter.
5740 (finish_block_internal): Update.
5741
b80a981d
TT
57422018-07-20 Tom Tromey <tom@tromey.com>
5743
5744 * buildsym.h (EXTERN): Don't define or undef.
5745 * buildsym.c (EXTERN): Don't define.
5746
ddb70602
TT
57472018-07-20 Tom Tromey <tom@tromey.com>
5748
5749 * buildsym.c: Remove TODO comment.
5750
b37dd3bc
TT
57512018-07-20 Tom Tromey <tom@tromey.com>
5752
5753 * coffread.c (coff_symtab_read): Update.
5754 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5755 (xcoff_new_init): Update.
5756 * mipsread.c (mipscoff_new_init): Update.
5757 * mdebugread.c (mdebug_build_psymtabs): Update.
5758 * elfread.c (elf_new_init): Update.
5759 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5760 Update.
5761 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5762 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5763 (stabsect_build_psymtabs): Update.
5764 * buildsym.h (buildsym_init): Don't declare.
5765 * buildsym.c: Update comment.
5766 (prepare_for_building): Remove.
5767 (start_symtab, restart_symtab): Update.
5768 (reset_symtab_globals): Update comment.
5769 (buildsym_init): Remove.
5770
e148f09d
TT
57712018-07-20 Tom Tromey <tom@tromey.com>
5772
5773 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5774 * stabsread.c (patch_block_stabs, define_symbol, read_type)
5775 (read_enum_type, common_block_start, common_block_end)
5776 (cleanup_undefined_types_1, finish_global_stabs): Update.
5777 * mdebugread.c (psymtab_to_symtab_1): Update.
5778 * dwarf2read.c (fixup_go_packaging, read_func_scope)
5779 (read_lexical_block_scope, new_symbol): Update.
5780 * dbxread.c (process_one_symbol): Update.
5781 * coffread.c (coff_symtab_read, process_coff_symbol)
5782 (coff_read_enum_type): Update.
5783 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5784 declare.
5785 (get_local_symbols, get_file_symbols, get_global_symbols): New
5786 functions.
5787 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5788 m_global_symbols.
5789 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5790 (~scoped_free_pendings): Update.
5791 (finish_block, prepare_for_building, reset_symtab_globals)
5792 (end_symtab_get_static_block, end_symtab_with_blockvector)
5793 (augment_type_symtab, push_context): Update.
5794 (get_local_symbols, get_file_symbols, get_global_symbols): New
5795 functions.
5796 (buildsym_init): Update.
5797
93b8bea4
TT
57982018-07-20 Tom Tromey <tom@tromey.com>
5799
5800 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5801 (process_full_type_unit): Likewise.
5802 (dwarf2_start_symtab): Set list_in_scope.
5803
f62f6af5
TT
58042018-07-20 Tom Tromey <tom@tromey.com>
5805
5806 * dwarf2read.c (process_psymtab_comp_unit_reader)
5807 (build_type_psymtabs_reader): Do not set list_in_scope.
5808
1d376700
TT
58092018-07-20 Tom Tromey <tom@tromey.com>
5810
5811 * buildsym.c (free_pendings): Remove.
5812 (add_symbol_to_list, scoped_free_pendings)
5813 (finish_block_internal, buildsym_init): Update.
5814
c233e9c6
TT
58152018-07-20 Tom Tromey <tom@tromey.com>
5816
5817 * xcoffread.c (read_xcoff_symtab): Update.
5818 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5819 Update.
5820 * dbxread.c (process_one_symbol): Update.
5821 * coffread.c (coff_symtab_read): Update.
5822 * buildsym.h (finish_block): Update.
5823 * buildsym.c (finish_block): Remove "listhead" argument.
5824 (end_symtab_get_static_block): Update.
5825
5ac04550
TT
58262018-07-20 Tom Tromey <tom@tromey.com>
5827
5828 * buildsym.h (class scoped_free_pendings): Remove constructor.
5829 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5830 method.
5831 <m_pending_block_obstack, m_pending_blocks>: New members.
5832 (pending_block_obstack, pending_blocks): Remove.
5833 (scoped_free_pendings::scoped_free_pendings): Default.
5834 (~scoped_free_pendings): Update.
5835 (free_pending_blocks): Remove.
5836 (finish_block_internal, record_pending_block, make_blockvector)
5837 (end_symtab_get_static_block, augment_type_symtab, push_context)
5838 (buildsym_init): Update.
5839
7ea05a7b
TT
58402018-07-20 Tom Tromey <tom@tromey.com>
5841
5842 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5843 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5844 members.
5845 (pending_addrmap, pending_addrmap_obstack)
5846 (pending_addrmap_interesting): Remove.
5847 (scoped_free_pendings, record_block_range, make_blockvector)
5848 (prepare_for_building, reset_symtab_globals, buildsym_init):
5849 Update.
5850
3c65e5b3
TT
58512018-07-20 Tom Tromey <tom@tromey.com>
5852
5853 * xcoffread.c (process_linenos): Update.
5854 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5855 * mdebugread.c (psymtab_to_symtab_1): Update.
5856 * dwarf2read.c (setup_type_unit_groups)
5857 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5858 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5859 * dbxread.c (process_one_symbol): Update.
5860 * coffread.c (coff_symtab_read, enter_linenos)
5861 (process_coff_symbol): Update.
5862 * buildsym.h (current_subfile): Don't declare.
5863 (get_current_subfile): Declare.
5864 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5865 member.
5866 (start_subfile, free_buildsym_compunit, push_subfile)
5867 (prepare_for_building, start_symtab): Update.
5868 (get_current_subfile): New function.
5869
a60f3166
TT
58702018-07-20 Tom Tromey <tom@tromey.com>
5871
5872 * coffread.c (coff_symtab_read): Update.
5873 * xcoffread.c (read_xcoff_symtab): Update.
5874 * dwarf2read.c (new_symbol): Update.
5875 (read_func_scope, read_lexical_block_scope): Update.
5876 * dbxread.c (process_one_symbol): Update.
5877 * buildsym.h (context_stack, context_stack_depth): Don't declare.
5878 (outermost_context_p): Remove macro.
5879 (outermost_context_p, get_current_context_stack)
5880 (get_context_stack_depth): Declare.
5881 (pop_context): Return struct context_stack.
5882 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5883 member.
5884 (context_stack_size): Remove.
5885 (INITIAL_CONTEXT_STACK_SIZE): Remove.
5886 (prepare_for_building, end_symtab_get_static_block)
5887 (augment_type_symtab, push_context): Update.
5888 (pop_context): Return struct context_stack.
5889 (outermost_context_p, get_current_context_stack)
5890 (get_context_stack_depth): New functions.
5891 (buildsym_init): Update.
5892
56ba65a0
TT
58932018-07-20 Tom Tromey <tom@tromey.com>
5894
5895 * rust-exp.y: Now a pure parser. Update all rules.
5896 (%union): Move earlier.
5897 (current_parser, work_obstack): Remove globals.
5898 (rust_parser, ~rust_parser): Update.
5899 (class rust_parser) <copy_name, concat3, crate_name, super_name,
5900 lex_character, lex_number, lex_string, lex_identifier,
5901 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5902 convert_name, convert_params_to_expression,
5903 convert_ast_to_expression, ast_basic_type, ast_operation,
5904 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5905 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5906 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5907 ast_array_type, ast_slice_type, ast_reference_type,
5908 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5909 (rust_parse): Update.
5910 (rustyyerror, rustyylex): Add parser parameter.
5911 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5912 (rust_lex_stringish_test, rust_lex_test_sequence)
5913 (rust_lex_test_trailing_dot, rust_lex_test_completion)
5914 (rust_lex_test_push_back, rust_lex_tests): Update.
5915
4c693332
PA
59162018-07-19 Pedro Alves <palves@redhat.com>
5917
5918 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5919 gdb::unique_xmalloc_ptr.
5920 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5921 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5922 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5923 copy-initialization.
5924 * guile/scm-pretty-print.c (ppscm_print_children): Use
5925 gdb::unique_xmalloc_ptr instead of cleanups.
5926 (gdbscm_apply_val_pretty_printer): Remove cleanups.
5927 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5928 gdb::unique_xmalloc_ptr.
5929 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5930 Adjust to use gdb::unique_xmalloc_ptr.
5931 * guile/scm-utils.c (extract_arg): Adjust.
5932 * guile/scm-value.c (gdbscm_value_field): Adjust to use
5933 gdb::unique_xmalloc_ptr instead of a cleanup.
5934
4581dc82
TT
59352018-07-19 Tom Tromey <tom@tromey.com>
5936
5937 * utils.c (do_value_free_to_mark)
5938 (make_cleanup_value_free_to_mark): Remove.
5939 * utils.h (make_cleanup_value_free_to_mark): Remove.
5940
43cc6c3a
PA
59412018-07-19 Pedro Alves <palves@redhat.com>
5942
5943 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5944 forwarding reference.
5945
3a5f2a48
PA
59462018-07-18 Pedro Alves <palves@redhat.com>
5947
5948 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5949 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
5950 cleanup.
5951
557e56be
PA
59522018-07-18 Pedro Alves <palves@redhat.com>
5953
5954 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5955 exceptions.
5956 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5957 (gdbscm_wrap): New.
5958 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5959 directly instead of a cleanup.
5960 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5961 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
5962 (vlscm_binop_gdbthrow): New, factored out from ...
5963 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
5964 (vlscm_rich_compare): Use gdbscm_wrap.
5965 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5966 instead of a cleanup.
5967 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5968 cleanup.
5969 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5970 Use xfree directly instead of a cleanup.
5971 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5972 Adjust to use gdbscm_wrap and scoped_value_mark.
5973 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5974 (gdbscm_value_address, gdbscm_value_dereference)
5975 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5976 scoped_value_mark.
5977 (gdbscm_value_dynamic_type): Use scoped_value_mark.
5978 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5979 scoped_value_mark.
5980 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5981 gdbscm_wrap and scoped_value_mark.
5982 (gdbscm_value_to_string): Use xfree directly instead of a
5983 cleanup. Move 'buffer' unique_ptr to TRY scope.
5984 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5985 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
5986 scoped_value_mark.
5987 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5988 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5989 scoped_value_mark.
5990 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5991 gdbscm_wrap.
5992
42dc7699
TV
59932018-07-18 Tom de Vries <tdevries@suse.de>
5994
5995 * findvar.c (default_read_var_value): Also resolve dynamic type for
5996 LOC_OPTIMIZED_OUT vars.
5997
6592ceed
MR
59982018-07-18 Maciej W. Rozycki <macro@mips.com>
5999
6000 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
6001 decoding.
6002
c6c6149a
TT
60032018-07-17 Tom Tromey <tom@tromey.com>
6004
6005 * guile/scm-param.c (pascm_set_func, pascm_show_func)
6006 (compute_enum_list, pascm_set_param_value_x)
6007 (gdbscm_parameter_value): Update.
6008 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
6009 (gdbscm_scm_to_host_string): Update.
6010 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
6011 Update.
6012 * guile/scm-cmd.c (cmdscm_add_completion): Update.
6013 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
6014 * guile/scm-string.c (gdbscm_scm_to_string): Return
6015 unique_xmalloc_ptr.
6016 (gdbscm_scm_to_host_string): Likewise.
6017
a1a31cb8
TT
60182018-07-17 Tom Tromey <tom@tromey.com>
6019
6020 * guile/guile.c (gdbscm_eval_from_control_command): Update.
6021 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
6022 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
6023 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
6024 unique_xmalloc_ptr.
6025
15bf3002
TT
60262018-07-17 Tom Tromey <tom@tromey.com>
6027
6028 * guile/scm-param.c (pascm_signal_setshow_error): Update.
6029 * guile/guile-internal.h (gdbscm_exception_message_to_string):
6030 Update.
6031 * guile/scm-cmd.c (cmdscm_function): Update.
6032 * guile/scm-pretty-print.c
6033 (ppscm_print_exception_unless_memory_error): Update.
6034 * guile/scm-exception.c (gdbscm_exception_message_to_string):
6035 Return unique_xmalloc_ptr.
6036
7eb1a66c
TT
60372018-07-17 Tom Tromey <tom@tromey.com>
6038
6039 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
6040 Use string_printf.
6041
ce73f310
JW
60422018-07-17 Jim Wilson <jimw@sifive.com>
6043
27724bad
JW
6044 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
6045 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
6046 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
6047 unecessary braces after EF_RISCV_RVC test. Delete call to
6048 set_gdbarch_decr_pc_after_break.
6049
ce73f310
JW
6050 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
6051 RISCV_LAST_FP_REGNUM + 1.
6052 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
6053
056dec39
TT
60542018-07-17 Tom Tromey <tom@tromey.com>
6055
6056 * configure.ac: Remove --disable-gdbcli.
6057 * configure: Rebuild.
6058 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
6059 (SUBDIR_CLI_CFLAGS): Remove.
6060 (SFILES): Use SUBDIR_CLI_SRCS.
6061 (COMMON_OBS): Use SUBDIR_CLI_OBS.
6062
4735f0ed
TT
60632018-07-17 Tom Tromey <tom@tromey.com>
6064
6065 PR gdb/18624:
6066 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
6067
117a0e99
JW
60682018-07-16 Jim Wilson <jimw@sifive.com>
6069
6070 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
6071
8a67aaa8
SM
60722018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6073
6074 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
6075 variable.
6076 (libunwind_frame_sniffer): Likewise.
6077 (libunwind_frame_prev_register): Likewise.
6078 (libunwind_sigtramp_frame_sniffer): Likewise.
6079 * ia64-tdep.c (ia64_access_reg): Likewise.
6080 (ia64_access_rse_reg): Likewise.
6081 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
6082 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
6083
ec74dcd8
SM
60842018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6085
6086 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
6087
a700e753
SM
60882018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6089
6090 * remote-sim.c (gdbsim_target::close,
6091 gdbsim_target::mourn_inferior): Remove unused variables.
6092
8b411ff8
SM
60932018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
6094
6095 * ia64-tdep.c (ktab_buf): New global.
6096 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
6097 (get_kernel_table): Adjust.
6098
edb0470b
TT
60992018-07-16 Tom Tromey <tom@tromey.com>
6100
6101 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
6102 * dwarf2read.c (using_directives, new_symbol): Use
6103 outermost_context_p.
6104 * dbxread.c (process_one_symbol): Use outermost_context_p.
6105 * coffread.c (coff_symtab_read): Use outermost_context_p.
6106
6cccc9a8
TT
61072018-07-16 Tom Tromey <tom@tromey.com>
6108
6109 * dwarf2read.c (using_directives, read_func_scope)
6110 (read_lexical_block_scope): Update.
6111 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6112 * buildsym.h (local_using_directives, global_using_directives):
6113 Don't declare.
6114 (get_local_using_directives, set_local_using_directives)
6115 (get_global_using_directives): Declare.
6116 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
6117 m_global_using_directives>: New members.
6118 (finish_block_internal, prepare_for_building)
6119 (reset_symtab_globals, end_symtab_get_static_block)
6120 (push_context): Update.
6121 (get_local_using_directives, set_local_using_directives)
6122 (get_global_using_directives): New functions.
6123 (buildsym_init): Update.
6124
652788a7
TT
61252018-07-16 Tom Tromey <tom@tromey.com>
6126
6127 * xcoffread.c (xcoff_initial_scan): Don't call
6128 free_pending_blocks.
6129 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
6130 * buildsym.h (class scoped_free_pendings): Add constructor.
6131 (free_pending_blocks): Don't declare.
6132 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
6133 (free_pending_blocks): Now static.
6134
8419ee53
TT
61352018-07-16 Tom Tromey <tom@tromey.com>
6136
6137 * buildsym.h (push_subfile, pop_subfile): Update declarations.
6138 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
6139 member.
6140 (struct subfile_stack): Remove.
6141 (subfile_stack): Remove.
6142 (push_subfile, pop_subfile, buildsym_init): Update.
6143
ccdac490
TT
61442018-07-16 Tom Tromey <tom@tromey.com>
6145
6146 * buildsym.c (push_subfile): Use gdb_assert.
6147 (pop_subfile): Use gdb_assert.
6148
43130d6f
TT
61492018-07-16 Tom Tromey <tom@tromey.com>
6150
6151 * buildsym.h (merge_symbol_lists): Remove.
6152 * buildsym.c (merge_symbol_lists): Remove.
6153
77d6f1aa
TT
61542018-07-16 Tom Tromey <tom@tromey.com>
6155
6156 * stabsread.c (scan_file_globals): Update comment.
6157 * stabsread.h (scan_file_globals): Move from buildsym.h.
6158 * buildsym.h (scan_file_globals): Move to stabsread.h.
6159
2c722d18
TT
61602018-07-16 Tom Tromey <tom@tromey.com>
6161
6162 * xcoffread.c (xcoff_new_init): Update.
6163 * mipsread.c (mipscoff_new_init): Update.
6164 * mdebugread.c (mdebug_build_psymtabs): Update.
6165 * elfread.c (elf_new_init): Update.
6166 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
6167 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
6168 * buildsym.h (buildsym_new_init): Don't declare.
6169 * buildsym.c (buildsym_new_init): Remove.
6170
5985ac61
TT
61712018-07-16 Tom Tromey <tom@tromey.com>
6172
6173 * stabsread.h (within_function): Move from buildsym.h.
6174 * stabsread.c (start_stabs): Clear within_function.
6175 * coffread.c (coff_start_symtab): Clear within_function.
6176 * buildsym.h (within_function): Move to stabsread.h.
6177 * buildsym.c (prepare_for_building): Update.
6178
6b84eeb2
TT
61792018-07-16 Tom Tromey <tom@tromey.com>
6180
6181 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
6182 * dwarf2read.c (dwarf2_start_symtab): Don't set
6183 processing_gcc_compilation.
6184 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
6185
2150c3ef
TT
61862018-07-16 Tom Tromey <tom@tromey.com>
6187
6188 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
6189 (next_symbol_text_func): Move from buildsym.h.
6190 * stabsread.c (hashname): Move from buildsym.c.
6191 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
6192 (next_symbol_text_func, hashname): Move to stabsread.h.
6193 * buildsym.c: Don't include bcache.h
6194 (hashname): Move to stasbread.c.
6195
0ec44fc0
TT
61962018-07-16 Tom Tromey <tom@tromey.com>
6197
6198 * buildsym.h (context_stack_size): Don't declare.
6199 * buildsym.c (context_stack_size): New global.
6200
81cc346d
TT
62012018-07-16 Tom Tromey <tom@tromey.com>
6202
6203 * dbxread.c (processing_acc_compilation): New global.
6204 * buildsym.h (processing_acc_compilation): Don't declare.
6205
2c99ee5c
TT
62062018-07-16 Tom Tromey <tom@tromey.com>
6207
6208 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
6209 * dbxread.c (read_ofile_symtab): Update.
6210 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
6211 * buildsym.h (last_source_start_addr): Remove.
6212 (set_last_source_start_addr, get_last_source_start_addr):
6213 Declare.
6214 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
6215 parameter.
6216 (struct buildsym_compunit) <m_last_source_start_addr>: New
6217 member.
6218 (prepare_for_building): Remove start_addr parameter.
6219 (start_symtab, restart_symtab, end_symtab_get_static_block)
6220 (end_symtab_with_blockvector): Update.
6221 (set_last_source_start_addr, get_last_source_start_addr): New
6222 functions.
6223
530fedbc
TT
62242018-07-16 Tom Tromey <tom@tromey.com>
6225
6226 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6227 member.
6228 (have_line_numbers): Remove.
6229 (record_line, prepare_for_building, end_symtab_get_static_block)
6230 (augment_type_symtab): Update.
6231
6a976300
TT
62322018-07-16 Tom Tromey <tom@tromey.com>
6233
6234 * buildsym.c (~buildsym_compunit): Free the macro table.
6235 (struct buildsym_compunit) <get_macro_table, release_macros>: New
6236 methods.
6237 <m_pending_macros>: New member.
6238 (pending_macros): Remove.
6239 (~scoped_free_pendings, get_macro_table, prepare_for_building)
6240 (reset_symtab_globals, end_symtab_get_static_block)
6241 (end_symtab_with_blockvector, augment_type_symtab)
6242 (buildsym_init): Update.
6243
c0015d44
TT
62442018-07-16 Tom Tromey <tom@tromey.com>
6245
6246 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6247 parameter.
6248 (buildsym_compunit::set_last_source_file): New method.
6249 <m_last_source_file>: New member.
6250 (prepare_for_building): Remove "name" parameter.
6251 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6252 (last_source_file): Remove.
6253 (set_last_source_file, get_last_source_file): Update.
6254
e62cca7c
TT
62552018-07-16 Tom Tromey <tom@tromey.com>
6256
6257 * buildsym.c (prepare_for_building): Add assert.
6258
905eb0e2
TT
62592018-07-16 Tom Tromey <tom@tromey.com>
6260
6261 * buildsym.c (~buildsym_compunit): Update.
6262 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6263 (start_subfile, patch_subfile_names)
6264 (end_symtab_with_blockvector): Update.
6265
b248663f
TT
62662018-07-16 Tom Tromey <tom@tromey.com>
6267
6268 * buildsym.c (struct buildsym_compunit): Add constructor,
6269 destructor, initializers.
6270 (start_buildsym_compunit): Remove.
6271 (free_buildsym_compunit): Use "delete".
6272 (start_symtab, restart_symtab): Use "new".
6273
ff27d073
SM
62742018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
6275
6276 * symfile.c (set_objfile_default_section_offset): Remove struct
6277 keyword.
6278
6a15ecf5
SH
62792018-07-14 Stafford Horne <shorne@gmail.com>
6280
6281 * (Responsible Maintainers): Add myself as or1k maintainer.
6282
027a4c30
TT
62832018-07-13 Tom Tromey <tom@tromey.com>
6284
6285 * symfile.c (set_objfile_default_section_offset): Use extra braces
6286 around initializer.
6287
5c1eda30
AA
62882018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6289
6290 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6291 non-branching basr.
6292
bc7b042b
PW
62932018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6294
6295 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6296 unittests/cli-utils-selftests.c
6297 * unittests/cli-utils-selftests.c: New file.
6298
a14c4daa
PW
62992018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6300
6301 * NEWS: Mention new commands. Mention change to 'thread apply'.
6302
1fe75df7
PW
63032018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6304
6305 * thread.c (thr_try_catch_cmd): New function.
6306 (thread_apply_all_command): Handle qcs flags.
6307 (thread_apply_command): Handle qcs flags.
6308 (taas_command): New function.
6309 (tfaas_command): New function.
6310 (_initialize_thread): Update to setup the new commands 'taas
6311 and 'tfaas'. Change doc string for 'thread apply'.
6312
6a70eb7d
PW
63132018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6314
6315 * stack.c: (trailing_outermost_frame): New function, mostly
6316 extracted from backtrace_command_1.
6317 (leading_innermost_frame): New function.
6318 (backtrace_command_1): Update to call trailing_outermost_frame.
6319 (frame_apply_command_count): New function.
6320 (frame_apply_level_command): New function.
6321 (frame_apply_all_command): New function.
6322 (frame_apply_command): New function.
6323 (faas_command): New function.
6324 (frame_cmd_list): New variable.
6325 (_initialize_stack): Update to setup the new commands 'frame apply'
6326 and 'faas'.
6327
529c08b2
PW
63282018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6329
6330 * cli-utils.c (number_or_range_parser::get_number): Only handle
6331 numbers or convenience var as numbers.
6332 (parse_flags): New function.
6333 (parse_flags_qcs): New function.
6334 (number_or_range_parser::finished): Ensure parsing end is detected
6335 before end of string.
6336 * cli-utils.h (parse_flags): New function.
6337 (parse_flags_qcs): New function.
6338 (number_or_range_parser): Remove m_finished bool.
6339 (number_or_range_parser::skip_range): Set m_in_range to false.
6340
64b58472
SDJ
63412018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
6342
6343 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6344 on Windows.
6345
c7ab0aef
SDJ
63462018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6347 Jan Kratochvil <jan.kratochvil@redhat.com>
6348 Paul Fertser <fercerpav@gmail.com>
6349 Tsutomu Seki <sekiriki@gmail.com>
6350 Pedro Alves <palves@redhat.com>
6351
6352 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6353 'unittests/parse-connection-spec-selftests.c'.
6354 (COMMON_SFILES): Add 'common/netstuff.c'.
6355 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6356 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6357 * common/netstuff.c: New file.
6358 * common/netstuff.h: New file.
6359 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6360 (wait_for_connect): Update comment. New parameter
6361 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6362 Use 'sock' directly instead of 'scb->fd'.
6363 (try_connect): New function, with code from 'net_open'.
6364 (net_open): Rewrite main loop to deal with multiple
6365 sockets/addresses. Handle IPv6-style hostnames; implement
6366 support for IPv6 connections.
6367 * unittests/parse-connection-spec-selftests.c: New file.
6368
4c7333b3
PA
63692018-07-11 Pedro Alves <palves@redhat.com>
6370
6371 PR gdb/23377
6372 * remote.c (remote_target::remote_detach_pid): Call
6373 set_current_process.
6374
a6f88f6e
PA
63752018-07-11 Pedro Alves <palves@redhat.com>
6376
6377 * h8300-tdep.c (h8300_gdbarch_init): Remove
6378 set_gdbarch_ecoff_reg_to_regnum calls.
6379
16ff70dd
SDJ
63802018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6381
6382 PR c++/23373
6383 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6384 offsets/sizes for static members of a class/struct.
6385
12863263
AH
63862018-07-11 Alan Hayward <alan.hayward@arm.com>
6387
6388 * target-descriptions.c (tdesc_register_bitsize): Rename.
6389 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6390 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6391 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6392
1123588c
TT
63932018-07-10 Tom Tromey <tom@tromey.com>
6394
6395 * breakpoint.c (moribund_locations): Now static and a
6396 std::vector.
6397 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6398 (build_bpstat_chain, update_global_location_list)
6399 (breakpoint_retire_moribund): Update.
6400 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6401 VEC.
6402
8c49aa89
AB
64032018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6404
6405 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6406 (riscv_register_reggroup_p): Use new function, remove unneeded
6407 parenthesis.
6408 (riscv_push_dummy_call): Extend assert to compare against xlen or
6409 flen based on register type.
6410
42ecac17
AB
64112018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6412
6413 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6414
055303e2
AB
64152018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6416
6417 * remote.c (show_hardware_watchpoint_limit): New function.
6418 (show_hardware_watchpoint_length_limit): New function.
6419 (show_hardware_breakpoint_limit): New function.
6420 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6421 where appropriate, update help text.
6422
8fd32c1c
TT
64232018-07-09 Tom Tromey <tom@tromey.com>
6424
6425 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6426 (CLIBS): Don't mention NAT_CLIBS.
6427
31278b51
TT
64282018-07-09 Tom Tromey <tom@tromey.com>
6429
6430 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6431 (LIBGDB_OBS, clean mostlyclean): Update.
6432 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6433
e5fd1493
TT
64342018-07-09 Tom Tromey <tom@tromey.com>
6435
6436 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6437 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6438 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6439
981e0c0c
TT
64402018-07-09 Tom Tromey <tom@tromey.com>
6441
6442 * Makefile.in (ALLDEPFILES): Remove exec.c.
6443 (COMMON_OBS): Remove exec.o.
6444 (COMMON_SFILES): Add exec.c.
6445
14ccceb2
TT
64462018-07-09 Tom Tromey <tom@tromey.com>
6447
6448 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6449
5d3c3a68
TT
64502018-07-09 Tom Tromey <tom@tromey.com>
6451
6452 * Makefile.in (clean mostlyclean): Remove stamp-version.
6453 (version.c): Depend on stamp-version.
6454 (stamp-version): New rule, from version.c rule.
6455
1998086d
TT
64562018-07-09 Tom Tromey <tom@tromey.com>
6457
6458 * Makefile.in (init.c): Depend on stamp-init.
6459 (stamp-init): New rule, from init.c rule.
6460 (clean mostlyclean): Remove stamp-init.
6461
4c754949
TT
64622018-07-09 Tom Tromey <tom@tromey.com>
6463
6464 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6465 SUBDIR_GCC_COMPILE_SRCS.
6466
6497f1dd
TT
64672018-07-09 Tom Tromey <tom@tromey.com>
6468
6469 * Makefile.in (init.c): Remove some unused sed rules.
6470
97a34db9
TT
64712018-07-09 Tom Tromey <tom@tromey.com>
6472
6473 * Makefile.in (TSOBS): Remove.
6474 (INIT_FILES): Update.
6475 (LIBGDB_OBS): Update.
6476 (COMMON_SFILES): Add inflow.c.
6477 (SFILES): Remove inflow.c.
6478
25289ac1
JK
64792018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6480
6481 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6482
e83f4d97
SM
64832018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
6484
4869c585
SM
6485 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6486 get_saveloc_name, is_signal_frame_name, step_name,
6487 init_remote_name, create_addr_space_name,
6488 destroy_addr_space_name, search_unwind_table_name,
6489 find_dyn_list_name): Constify.
e83f4d97 6490
6821842f
SM
64912018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
6492
6493 * darwin-nat.c (darwin_pthread_kill): New function.
6494 (darwin_resume_thread): Use darwin_pthread_kill.
6495
c530603c
TV
64962018-07-05 Tom de Vries <tdevries@suse.de>
6497
6498 * macroexp.c (macro_buffer) <operator=>: New member function.
6499
a7d0f0f0
TT
65002018-07-04 Tom Tromey <tom@tromey.com>
6501
6502 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6503
6242c6a6
SM
65042018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
6505
6506 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6507 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6508 * maint.c: Likewise.
6509 * top.c: Likewise.
6510
4e5b2f89
JB
65112018-07-04 Joel Brobecker <brobecker@adacore.com>
6512
6513 * NEWS: Create a new section for the next release branch.
6514 Rename the section of the current branch, now that it has
6515 been cut.
6516
538ccc4a
JB
65172018-07-04 Joel Brobecker <brobecker@adacore.com>
6518
6519 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6520 * version.in: Bump version to 8.2.50.DATE-git.
6521
1b919490
VB
65222018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6523 Pedro Alves <palves@redhat.com>
6524
6525 * linux-nat.c (linux_init_ptrace): Rename to ...
6526 (linux_init_ptrace_procfs): ... this. Call
6527 linux_proc_init_warnings.
6528 (linux_nat_target::post_attach)
6529 (linux_nat_target::post_startup_inferior): Adjust.
6530 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6531 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6532
1ea5da02
TV
65332018-07-04 Tom de Vries <tdevries@suse.de>
6534
6535 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6536 check ...
6537 (read_comp_unit_head): ... here.
6538
f51e0e20
TT
65392018-07-03 Tom Tromey <tom@tromey.com>
6540
6541 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6542 (stop_tracing, tstatus_command)
6543 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6544 (print_one_static_tracepoint_marker): Update.
6545 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6546 std::vector.
6547 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
6548 VEC.
6549 (all_tracepoints, static_tracepoints_here): Return std::vector.
6550
d7e15655
TT
65512018-07-03 Tom Tromey <tom@tromey.com>
6552
6553 * common/ptid.c (ptid_equal): Remove.
6554 * common/ptid.h (ptid_equal): Don't declare.
6555 * ada-tasks.c: Update.
6556 * breakpoint.c: Update.
6557 * common/agent.c: Update.
6558 * corelow.c: Update.
6559 * darwin-nat-info.c: Update.
6560 * darwin-nat.c: Update.
6561 * dcache.c: Update.
6562 * dtrace-probe.c: Update.
6563 * dummy-frame.c: Update.
6564 * fbsd-nat.c: Update.
6565 * frame.c: Update.
6566 * gdbthread.h: Update.
6567 * gnu-nat.c: Update.
6568 * go32-nat.c: Update.
6569 * inf-loop.c: Update.
6570 * inf-ptrace.c: Update.
6571 * infcall.c: Update.
6572 * infcmd.c: Update.
6573 * inflow.c: Update.
6574 * infrun.c: Update.
6575 * linux-fork.c: Update.
6576 * linux-nat.c: Update.
6577 * linux-thread-db.c: Update.
6578 * mi/mi-cmd-var.c: Update.
6579 * mi/mi-interp.c: Update.
6580 * mi/mi-main.c: Update.
6581 * nto-procfs.c: Update.
6582 * ppc-linux-tdep.c: Update.
6583 * procfs.c: Update.
6584 * python/py-inferior.c: Update.
6585 * python/py-record-btrace.c: Update.
6586 * python/py-record.c: Update.
6587 * ravenscar-thread.c: Update.
6588 * regcache.c: Update.
6589 * remote-sim.c: Update.
6590 * remote.c: Update.
6591 * sol-thread.c: Update.
6592 * solib.c: Update.
6593 * target.c: Update.
6594 * tui/tui-stack.c: Update.
6595 * varobj.c: Update.
6596 * windows-nat.c: Update.
6597 * windows-tdep.c: Update.
6598
26a57c92
TT
65992018-07-03 Tom Tromey <tom@tromey.com>
6600
6601 * common/ptid.c (ptid_match): Remove.
6602 * common/ptid.h (ptid_match): Don't declare.
6603 * fbsd-nat.c: Update.
6604 * infcmd.c: Update.
6605 * infrun.c: Update.
6606 * linux-nat.c: Update.
6607 * record-btrace.c: Update.
6608 * regcache.c: Update.
6609 * remote.c: Update.
6610
d2a107e3
TT
66112018-07-03 Tom Tromey <tom@tromey.com>
6612
6613 * common/ptid.c (ptid_tid_p): Remove.
6614 * common/ptid.h (ptid_tid_p): Don't declare.
6615 * sol-thread.c: Update.
6616
15a9e13e
TT
66172018-07-03 Tom Tromey <tom@tromey.com>
6618
6619 * common/ptid.c (ptid_lwp_p): Remove.
6620 * common/ptid.h (ptid_lwp_p): Don't declare.
6621 * fbsd-nat.c: Update.
6622 * linux-nat.c: Update.
6623 * nat/linux-procfs.c: Update.
6624 * nat/x86-linux-dregs.c: Update.
6625 * sol-thread.c: Update.
6626
0e998d96
TT
66272018-07-03 Tom Tromey <tom@tromey.com>
6628
6629 * common/ptid.c (ptid_is_pid): Remove.
6630 * common/ptid.h (ptid_is_pid): Don't declare.
6631 * infrun.c: Update.
6632 * linux-nat.c: Update.
6633 * mi/mi-interp.c: Update.
6634 * remote.c: Update.
6635 * thread.c: Update.
6636
cc6bcb54
TT
66372018-07-03 Tom Tromey <tom@tromey.com>
6638
6639 * common/ptid.c (ptid_get_tid): Remove.
6640 * common/ptid.h (ptid_get_tid): Don't declare.
6641 * ada-tasks.c: Update.
6642 * aix-thread.c: Update.
6643 * bsd-uthread.c: Update.
6644 * darwin-nat.c: Update.
6645 * fbsd-nat.c: Update.
6646 * i386-darwin-nat.c: Update.
6647 * infrun.c: Update.
6648 * linux-tdep.c: Update.
6649 * nto-procfs.c: Update.
6650 * ppc-ravenscar-thread.c: Update.
6651 * python/py-infthread.c: Update.
6652 * ravenscar-thread.c: Update.
6653 * sol-thread.c: Update.
6654 * sparc-ravenscar-thread.c: Update.
6655 * windows-nat.c: Update.
6656
e38504b3
TT
66572018-07-03 Tom Tromey <tom@tromey.com>
6658
6659 * common/ptid.c (ptid_get_lwp): Remove.
6660 * common/ptid.h (ptid_get_lwp): Don't declare.
6661 * aarch64-linux-nat.c: Update.
6662 * ada-tasks.c: Update.
6663 * aix-thread.c: Update.
6664 * amd64-linux-nat.c: Update.
6665 * arm-linux-nat.c: Update.
6666 * corelow.c: Update.
6667 * fbsd-nat.c: Update.
6668 * fbsd-tdep.c: Update.
6669 * gnu-nat.c: Update.
6670 * i386-cygwin-tdep.c: Update.
6671 * i386-gnu-nat.c: Update.
6672 * i386-linux-nat.c: Update.
6673 * ia64-linux-nat.c: Update.
6674 * inf-ptrace.c: Update.
6675 * infrun.c: Update.
6676 * linux-fork.c: Update.
6677 * linux-nat.c: Update.
6678 * linux-tdep.c: Update.
6679 * linux-thread-db.c: Update.
6680 * mips-linux-nat.c: Update.
6681 * nat/aarch64-linux-hw-point.c: Update.
6682 * nat/aarch64-linux.c: Update.
6683 * nat/linux-btrace.c: Update.
6684 * nat/linux-osdata.c: Update.
6685 * nat/linux-procfs.c: Update.
6686 * nat/x86-linux-dregs.c: Update.
6687 * obsd-nat.c: Update.
6688 * ppc-fbsd-nat.c: Update.
6689 * ppc-linux-nat.c: Update.
6690 * procfs.c: Update.
6691 * python/py-infthread.c: Update.
6692 * ravenscar-thread.c: Update.
6693 * remote.c: Update.
6694 * s390-linux-nat.c: Update.
6695 * sol-thread.c: Update.
6696 * sol2-tdep.c: Update.
6697 * spu-linux-nat.c: Update.
6698 * x86-linux-nat.c: Update.
6699 * xtensa-linux-nat.c: Update.
6700
e99b03dc
TT
67012018-07-03 Tom Tromey <tom@tromey.com>
6702
6703 * common/ptid.c (ptid_get_pid): Remove.
6704 * common/ptid.h (ptid_get_pid): Don't declare.
6705 * aarch64-linux-nat.c: Update.
6706 * ada-lang.c: Update.
6707 * aix-thread.c: Update.
6708 * alpha-bsd-nat.c: Update.
6709 * amd64-fbsd-nat.c: Update.
6710 * amd64-linux-nat.c: Update.
6711 * arm-linux-nat.c: Update.
6712 * arm-nbsd-nat.c: Update.
6713 * auxv.c: Update.
6714 * break-catch-syscall.c: Update.
6715 * breakpoint.c: Update.
6716 * bsd-uthread.c: Update.
6717 * corelow.c: Update.
6718 * ctf.c: Update.
6719 * darwin-nat.c: Update.
6720 * fbsd-nat.c: Update.
6721 * fbsd-tdep.c: Update.
6722 * gcore.c: Update.
6723 * gnu-nat.c: Update.
6724 * hppa-nbsd-nat.c: Update.
6725 * hppa-obsd-nat.c: Update.
6726 * i386-fbsd-nat.c: Update.
6727 * ia64-linux-nat.c: Update.
6728 * inf-ptrace.c: Update.
6729 * infcmd.c: Update.
6730 * inferior.c: Update.
6731 * inferior.h: Update.
6732 * inflow.c: Update.
6733 * infrun.c: Update.
6734 * linux-fork.c: Update.
6735 * linux-nat.c: Update.
6736 * linux-tdep.c: Update.
6737 * linux-thread-db.c: Update.
6738 * m68k-bsd-nat.c: Update.
6739 * mi/mi-interp.c: Update.
6740 * mi/mi-main.c: Update.
6741 * mips-linux-nat.c: Update.
6742 * mips-nbsd-nat.c: Update.
6743 * mips64-obsd-nat.c: Update.
6744 * nat/aarch64-linux-hw-point.c: Update.
6745 * nat/aarch64-linux.c: Update.
6746 * nat/linux-btrace.c: Update.
6747 * nat/linux-osdata.c: Update.
6748 * nat/linux-procfs.c: Update.
6749 * nat/x86-linux-dregs.c: Update.
6750 * nto-procfs.c: Update.
6751 * obsd-nat.c: Update.
6752 * ppc-linux-nat.c: Update.
6753 * ppc-nbsd-nat.c: Update.
6754 * ppc-obsd-nat.c: Update.
6755 * proc-service.c: Update.
6756 * procfs.c: Update.
6757 * python/py-inferior.c: Update.
6758 * python/py-infthread.c: Update.
6759 * ravenscar-thread.c: Update.
6760 * record.c: Update.
6761 * remote-sim.c: Update.
6762 * remote.c: Update.
6763 * rs6000-nat.c: Update.
6764 * s390-linux-nat.c: Update.
6765 * sh-nbsd-nat.c: Update.
6766 * sol-thread.c: Update.
6767 * sparc-nat.c: Update.
6768 * sparc64-tdep.c: Update.
6769 * spu-linux-nat.c: Update.
6770 * spu-tdep.c: Update.
6771 * target-debug.h: Update.
6772 * target.c: Update.
6773 * thread.c: Update.
6774 * tid-parse.c: Update.
6775 * tracefile-tfile.c: Update.
6776 * vax-bsd-nat.c: Update.
6777 * windows-nat.c: Update.
6778 * x86-linux-nat.c: Update.
6779 * x86-nat.c: Update.
6780
f2907e49
TT
67812018-07-03 Tom Tromey <tom@tromey.com>
6782
6783 * common/ptid.c (pid_to_ptid): Remove.
6784 * common/ptid.h (pid_to_ptid): Don't declare.
6785 * aix-thread.c: Update.
6786 * arm-linux-nat.c: Update.
6787 * common/ptid.c: Update.
6788 * common/ptid.h: Update.
6789 * corelow.c: Update.
6790 * ctf.c: Update.
6791 * darwin-nat.c: Update.
6792 * fbsd-nat.c: Update.
6793 * fork-child.c: Update.
6794 * gnu-nat.c: Update.
6795 * go32-nat.c: Update.
6796 * inf-ptrace.c: Update.
6797 * infcmd.c: Update.
6798 * inferior.c: Update.
6799 * infrun.c: Update.
6800 * linux-fork.c: Update.
6801 * linux-nat.c: Update.
6802 * nat/aarch64-linux-hw-point.c: Update.
6803 * nat/fork-inferior.c: Update.
6804 * nat/x86-linux-dregs.c: Update.
6805 * nto-procfs.c: Update.
6806 * obsd-nat.c: Update.
6807 * procfs.c: Update.
6808 * progspace.c: Update.
6809 * remote.c: Update.
6810 * rs6000-nat.c: Update.
6811 * s390-linux-nat.c: Update.
6812 * sol-thread.c: Update.
6813 * spu-linux-nat.c: Update.
6814 * target.c: Update.
6815 * top.c: Update.
6816 * tracefile-tfile.c: Update.
6817 * windows-nat.c: Update.
6818
fd79271b
TT
68192018-07-03 Tom Tromey <tom@tromey.com>
6820
6821 * common/ptid.h (ptid_build): Don't declare.
6822 * common/ptid.c (ptid_build): Remove.
6823 * aix-thread.c: Update.
6824 * bsd-kvm.c: Update.
6825 * bsd-uthread.c: Update.
6826 * common/agent.c: Update.
6827 * common/ptid.c: Update.
6828 * common/ptid.h: Update.
6829 * corelow.c: Update.
6830 * darwin-nat.c: Update.
6831 * fbsd-nat.c: Update.
6832 * gnu-nat.c: Update.
6833 * linux-fork.c: Update.
6834 * linux-nat.c: Update.
6835 * linux-thread-db.c: Update.
6836 * nat/linux-osdata.c: Update.
6837 * nat/linux-procfs.c: Update.
6838 * nto-procfs.c: Update.
6839 * obsd-nat.c: Update.
6840 * proc-service.c: Update.
6841 * procfs.c: Update.
6842 * ravenscar-thread.c: Update.
6843 * remote-sim.c: Update.
6844 * remote.c: Update.
6845 * sol-thread.c: Update.
6846 * target.c: Update.
6847 * windows-nat.c: Update.
6848
057302ce
TT
68492018-07-03 Tom Tromey <tom@tromey.com>
6850
6851 * infrun.c (follow_exec): Use exit_inferior_silent.
6852 * inferior.c (exit_inferior_num_silent): Remove.
6853 * inferior.h (exit_inferior_num_silent): Don't declare.
6854
a50c11c6
TT
68552018-07-03 Tom Tromey <tom@tromey.com>
6856
6857 PR cli/23340:
6858 * darwin-nat.c (darwin_attach_pid): Reset inferior and
6859 inferior_ptid on error.
6860
471b9d15
MR
68612018-07-02 Maciej W. Rozycki <macro@mips.com>
6862 Simon Marchi <simon.marchi@polymtl.ca>
6863
6864 PR tdep/8282
6865 * disasm.h (gdb_disassembler): Add
6866 `m_disassembler_options_holder'. member
6867 * disasm.c (get_all_disassembler_options): New function.
6868 (gdb_disassembler::gdb_disassembler): Use it.
6869 (gdb_buffered_insn_length_init_dis): Likewise.
6870 (gdb_buffered_insn_length): Adjust accordingly.
6871 (set_disassembler_options): Handle options with arguments.
6872 (show_disassembler_options_sfunc): Likewise. Add a leading new
6873 line if showing options with descriptions.
6874 (disassembler_options_completer): Adapt to using the
6875 `disasm_options_and_args_t' structure.
6876 * mips-tdep.c (mips_disassembler_options): New variable.
6877 (mips_disassembler_options_o32): Likewise.
6878 (mips_disassembler_options_n32): Likewise.
6879 (mips_disassembler_options_n64): Likewise.
6880 (gdb_print_insn_mips): Don't set `disassembler_options'.
6881 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6882 functions.
6883 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6884 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
6885 `gdbarch_disassembler_options_implicit' and
6886 `gdbarch_valid_disassembler_options'.
6887 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6888 `disasm_options_and_args_t' structure.
6889 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6890 method.
6891 (valid_disassembler_options): Switch from `disasm_options_t' to
6892 the `disasm_options_and_args_t' structure.
6893 * NEWS: Document `set disassembler-options' support for the MIPS
6894 target.
6895 * gdbarch.h: Regenerate.
6896 * gdbarch.c: Regenerate.
6897
41823f29
SH
68982018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6899
6900 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6901
41206e32
JB
69022018-06-29 Joel Brobecker <brobecker@adacore.com>
6903
6904 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6905 parameter in call to amd64_target_description.
6906 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6907 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6908 (amd64fbsd_init_abi): Likewise.
6909 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6910 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6911 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6912 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6913
de52b960
PA
69142018-06-29 Pedro Alves <palves@redhat.com>
6915
6916 * gdb/amd64-tdep.h (amd64_create_target_description): Add
6917 "segments" parameter.
6918 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6919 (_initialize_amd64_tdep): Update call to
6920 amd64_create_target_description.
6921 (amd64_target_description): Add "segments" parameter. Adjust
6922 the implementation to use it.
6923 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6924 call to amd64_create_target_description.
6925 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6926 * gdb/arch/amd64.h (amd64_create_target_description): Add
6927 "segments" register.
6928 * gdb/arch/amd64.c (amd64_create_target_description): Add
6929 "segments" parameter. Call create_feature_i386_64bit_segments
6930 only if SEGMENTS is true.
6931 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6932 call to amd64_create_target_description.
6933
75acb486
PA
69342018-06-29 Pedro Alves <palves@redhat.com>
6935
6936 * thread.c (thread_target_id_str): New, factored out from ...
6937 (print_thread_info_1): ... here. Use it to compute the max
6938 "Target Id" column width.
6939
c76a8ea3
PA
69402018-06-29 Pedro Alves <palves@redhat.com>
6941
6942 * remote.c (remote_target::extra_thread_info): Delete
6943 'display_buf' and 'n' locals. from the cache, regardless of
6944 packet mechanims is in use. Use cache for qThreadExtra and qP
6945 methods too.
6946
cd2bb709
PA
69472018-06-29 Pedro Alves <palves@redhat.com>
6948
6949 * blockframe.c (find_pc_sect_containing_function): New function.
6950 * breakpoint.c (print_breakpoint_location): Don't call
6951 find_pc_sect_function.
6952 * linespec.c (create_sals_line_offset): Record the location's
6953 symbol in the sal.
6954 * linespec.c (convert_address_location_to_sals): Fill in sal's
6955 symbol with find_pc_sect_containing_function.
6956 * symtab.c (find_function_start_sal): Rename to ...
6957 (find_function_start_sal_1): ... this.
6958 (find_function_start_sal): Reimplement as wrapper around
6959 find_function_start_sal_1, and use
6960 find_pc_sect_containing_function to fill in the sal's symbol.
6961 (find_function_start_sal(symbol*, bool)): Adjust.
6962 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6963 comments.
6964 (find_pc_sect_containing_function): Declare.
6965
991ff292
PA
69662018-06-29 Pedro Alves <palves@redhat.com>
6967
6968 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6969 true if the the location has no symbol.
6970
44cee4fd
TT
69712018-06-28 Tom Tromey <tom@tromey.com>
6972
6973 * NEWS: Mention --enable-codesign.
6974 * silent-rules.mk (ECHO_SIGN): New variable.
6975 * configure.ac: Add --enable-codesign.
6976 * configure: Rebuild.
6977 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6978 (gdb$(EXEEXT)): Optionally invoke codesign.
6979
f2ffa92b
PA
69802018-06-28 Pedro Alves <palves@redhat.com>
6981
6982 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6983 comments.
6984 (switch_to_thread_no_regs): Adjust comment.
6985 * infcmd.c (stop_pc): Delete.
6986 (post_create_inferior, info_program_command): Replace references
6987 to stop_pc with references to thread_info->suspend.stop_pc.
6988 * inferior.h (stop_pc): Delete declaration.
6989 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6990 (handle_inferior_event_1, handle_signal_stop)
6991 (process_event_stop_test, keep_going_stepped_thread)
6992 (handle_step_into_function, handle_step_into_function_backward)
6993 (print_stop_location): Replace references to stop_pc with
6994 references to thread_info->suspend.stop_pc.
6995 (struct infcall_suspend_state) <stop_pc>: Delete field.
6996 (save_infcall_suspend_state, restore_infcall_suspend_state):
6997 Remove references to inf_stat->stop_pc.
6998 * linux-fork.c (fork_load_infrun_state): Likewise.
6999 * record-btrace.c (record_btrace_set_replay): Likewise.
7000 * record-full.c (record_full_goto_entry): Likewise.
7001 * remote.c (print_one_stopped_thread): Likewise.
7002 * target.c (target_resume): Extend comment.
7003 * thread.c (set_executing_thread): New.
7004 (set_executing): Use it.
7005 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
7006 Remove references to stop_pc.
7007
ecdc3a72
PA
70082018-06-28 Pedro Alves <palves@redhat.com>
7009
7010 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
7011 Moving fetching stop_pc until after ecs->event_thread is refreshed.
7012
d95d3aef
TT
70132018-06-28 Tom Tromey <tom@tromey.com>
7014
7015 * coffread.c (coff_symfile_finish): Update.
7016 * xcoffread.c (xcoff_symfile_finish): Update.
7017 * elfread.c (elf_symfile_finish): Update.
7018 * symfile.h (dwarf2_free_objfile): Don't declare.
7019 * dwarf2read.c (_initialize_dwarf2_read): Use
7020 register_objfile_data_with_cleanup.
7021 (dwarf2_free_objfile): Now static. Change signature.
7022
291f9a96
PT
70232018-06-28 Petr Tesarik <ptesarik@suse.cz>
7024
7025 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
7026 option "-o" to add-symbol-file-load to add an offset to each
7027 section's load address.
7028 * symfile.c (set_objfile_default_section_offset): New function.
7029
d81a3eaf
PT
70302018-06-28 Petr Tesarik <ptesarik@suse.cz>
7031
7032 * symfile.c (add_symbol_file_command): Make sure that sections
7033 with the same name are sorted in the same order.
7034
ed6dfe51
PT
70352018-06-28 Petr Tesarik <ptesarik@suse.cz>
7036
7037 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
7038 require the second argument. If omitted, load sections at the
7039 addresses specified in the file.
7040
d4d429d5
PT
70412018-06-28 Petr Tesarik <ptesarik@suse.cz>
7042
7043 * symfile.c (symbol_file_command, symbol_file_add_main_1)
7044 (_initialize_symfile): Add option "-o" to symbol-file to add an
7045 offset to each section of the symbol file.
7046
39b27ab6
PT
70472018-06-28 Petr Tesarik <ptesarik@suse.cz>
7048
7049 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
7050
41827fc3
TT
70512018-06-27 Tom Tromey <tom@tromey.com>
7052
7053 * stack.c (_initialize_stack): Update "func" help text.
7054
0c6aef22
TT
70552018-06-27 Tom Tromey <tom@tromey.com>
7056
7057 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
7058 std::vector.
7059 (unwind_infopy_str, pyuw_create_unwind_info)
7060 (unwind_infopy_add_saved_register, pyuw_sniffer)
7061 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
7062 Update.
7063 (struct saved_reg): Add constructor.
7064 <value>: Now a gdbpy_ref<>.
7065
63177289
TT
70662018-06-27 Tom Tromey <tom@tromey.com>
7067
7068 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
7069
e76f78a0
SM
70702018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7071
7072 * gdb-gdb.py.in: Format using autopep8.
7073
9a14af7b
SM
70742018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7075
7076 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
7077 (type_lookup_function): Recognize CORE_ADDR values.
7078
189366cd
SM
70792018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7080
7081 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
7082 print tag_name.
7083
68ad5fb9
SM
70842018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7085
7086 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
7087 <__lt__>: Add.
7088
141ec9f6
SM
70892018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7090
7091 * gdb-gdb.py: Move to...
7092 * gdb-gdb.py.in: ... here.
7093 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
7094 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
7095 dependencies.
7096 (distclean): Remove gdb-gdb.py when cleaning.
7097 (gdb-gdb.py, gdb-gdb.gdb): New rules.
7098 * configure: Re-generate.
7099
4c4e7ad4
PA
71002018-06-27 Pedro Alves <palves@redhat.com>
7101
7102 * proc-service.c (get_ps_regcache): New.
7103 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7104 (ps_lsetfpregs): Use it.
7105
7ab6656f
OJ
71062018-06-27 Omair Javaid <omair.javaid@linaro.org>
7107
7108 PR gdb/21695
4399bce9
PA
7109 * dwarf2read.c (lnp_state_machine::check_line_address): Update
7110 declaration.
7ab6656f
OJ
7111 (dwarf_decode_lines_1): Adjust.
7112
bd583225
SM
71132018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7114
7115 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
7116 override.
7117 <info_proc>: Likewise.
7118
9a325b7b
JB
71192018-06-26 Joel Brobecker <brobecker@adacore.com>
7120
7121 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
7122 to windows_fetch_one_register, and only handle the case of
7123 fetching one register. Move the code that reloads the context
7124 and iterates over all registers if R is negative to...
7125 (windows_nat_target::fetch_registers): ... here.
7126 (do_windows_store_inferior_registers): Rename to
7127 windows_store_one_register, and only handle the case of storing
7128 one register. Move the code that handles the case where r is
7129 negative to...
7130 (windows_nat_target::store_registers) ... here.
7131
a33ccfc7
TT
71322018-06-26 Tom Tromey <tom@tromey.com>
7133
7134 PR rust/22574:
7135 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
7136 * rust-lang.c (rust_print_struct_def): Add podata parameter.
7137 Update.
7138 (rust_internal_print_type): Add podata parameter.
7139 (rust_print_type): Update.
7140
e0c547d1
TT
71412018-06-26 Tom Tromey <tom@tromey.com>
7142
7143 * typeprint.h (struct print_offset_data) <update, finish,
7144 maybe_print_hole>: New methods.
7145 <indentation>: New constant.
7146 * typeprint.c (print_offset_data::indentation): Define.
7147 (print_offset_data::maybe_print_hole, print_offset_data::update)
7148 (print_offset_data::finish): Move from c-typeprint.c and rename.
7149 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
7150 (print_spaces_filtered_with_print_options): Update.
7151 (c_print_type_union_field_offset, maybe_print_hole)
7152 (c_print_type_struct_field_offset): Move to typeprint.c and
7153 rename.
7154 (c_type_print_base_struct_union): Update.
7155
75cbc781
PA
71562018-06-25 Pedro Alves <palves@redhat.com>
7157
7158 * gdbthread.h (thread_info_ref, delete_thread)
7159 (delete_thread_silent, first_thread_of_inferior)
7160 (any_thread_of_inferior, switch_to_thread)
7161 (enable_thread_stack_temporaries)
7162 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7163 (get_last_thread_stack_temporary)
7164 (value_in_thread_stack_temporaries, can_access_registers_thread):
7165 Spell out "struct thread_info" instead of just "thread_info".
7166 * inferior.h (notice_new_inferior): Likewise.
7167
b7a08269
PA
71682018-06-25 Pedro Alves <palves@redhat.com>
7169
7170 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7171 pass thread_info pointer to delete_thread.
7172 (windows_nat_target::detach): Pass inferior pointer to
7173 detach_inferior.
7174 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
7175 delete_thread.
7176 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
7177 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
7178 and pass a thread_info pointer to delete_thread.
7179 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
7180 pass thread_info pointer to delete_thread.
7181 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
7182 delete_thread_silent call.
7183 * procfs.c (procfs_target::detach): Pass inferior pointer to
7184 detach_inferior.
7185 (procfs_target::wait): Pass thread_info pointer to delete_thread.
7186 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
7187 delete_thread_silent call.
7188 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7189 pass thread_info pointer to delete_thread.
7190 (windows_nat_target::detach): Pass inferior pointer to
7191 delete_inferior.
7192
8e7767e3
AH
71932018-06-22 Alan Hayward <alan.hayward@arm.com>
7194
7195 * regcache.c (readable_regcache::read_part): Fix asserts.
7196 (reg_buffer::raw_collect_part): New function.
7197 (regcache::write_part): Fix asserts.
7198 (reg_buffer::raw_supply_part): New function.
7199 (regcache::transfer_regset_register): New helper function.
7200 (regcache::transfer_regset): Call new functions.
7201 (regcache_supply_regset): Use gdb_byte*.
7202 (regcache::supply_regset): Likewise.
7203 (regcache_collect_regset): Likewise.
7204 (regcache::collect_regset): Likewise.
7205 * regcache.h (reg_buffer::raw_collect_part): New declaration.
7206 (reg_buffer::raw_supply_part): Likewise.
7207 (regcache::transfer_regset_register): Likewise.
7208 (regcache::transfer_regset): Use gdb_byte*.
7209
bfd60e34
AH
72102018-06-22 Alan Hayward <alan.hayward@arm.com>
7211
7212 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
7213
00431a78
PA
72142018-06-21 Pedro Alves <palves@redhat.com>
7215
7216 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
7217 instead of a ptid_t. All callers adjusted.
7218 * ada-tasks.c (ada_get_task_number): Likewise. All callers
7219 adjusted.
7220 (print_ada_task_info, display_current_task_id, task_command_1):
7221 Adjust.
7222 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7223 inferior_thread.
7224 (breakpoint_kind): Adjust.
7225 (remove_breakpoints_pid): Rename to ...
7226 (remove_breakpoints_inf): ... this. Adjust to take an inferior
7227 pointer. All callers adjusted.
7228 (bpstat_clear_actions): Use inferior_thread.
7229 (get_bpstat_thread): New.
7230 (bpstat_do_actions): Use it.
7231 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7232 to take a thread_info pointer. All callers adjusted.
7233 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7234 (breakpoint_re_set_thread): Use inferior_thread.
7235 * breakpoint.h (struct inferior): Forward declare.
7236 (bpstat_stop_status): Update.
7237 (remove_breakpoints_pid): Delete.
7238 (remove_breakpoints_inf): New.
7239 * bsd-uthread.c (bsd_uthread_target::wait)
7240 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7241 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7242 (maint_btrace_packet_history_cmd)
7243 (maint_btrace_clear_packet_history_cmd): Adjust.
7244 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7245 inferior_thread.
7246 * cli/cli-interp.c: Include "inferior.h".
7247 * common/refcounted-object.h (struct
7248 refcounted_object_ref_policy): New.
7249 * compile/compile-object-load.c: Include gdbthread.h.
7250 (store_regs): Use inferior_thread.
7251 * corelow.c (core_target::close): Use current_inferior.
7252 (core_target_open): Adjust to use first_thread_of_inferior and use
7253 the current inferior.
7254 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7255 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7256 <thread>: ... this new field. All references adjusted.
7257 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7258 Take a thread_info pointer instead of a ptid_t.
7259 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7260 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7261 thread_info pointer instead of a ptid_t.
7262 * elfread.c: Include "inferior.h".
7263 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7264 Use inferior_thread.
7265 * eval.c (evaluate_subexp): Likewise.
7266 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7267 inferior_thread.
7268 * gdb_proc_service.h (struct thread_info): Forward declare.
7269 (struct ps_prochandle) <ptid>: Delete, replaced by ...
7270 <thread>: ... this new field. All references adjusted.
7271 * gdbarch.h, gdbarch.c: Regenerate.
7272 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7273 'thread' parameter. All implementations and callers adjusted.
7274 * gdbthread.h (thread_info) <set_running>: New method.
7275 (delete_thread, delete_thread_silent): Take a thread_info pointer
7276 instead of a ptid.
7277 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7278 (first_thread_of_process): Delete, replaced by ...
7279 (first_thread_of_inferior): ... this new function. All callers
7280 adjusted.
7281 (any_live_thread_of_process): Delete, replaced by ...
7282 (any_live_thread_of_inferior): ... this new function. All callers
7283 adjusted.
7284 (switch_to_thread, switch_to_no_thread): Declare.
7285 (is_executing): Delete.
7286 (enable_thread_stack_temporaries): Update comment.
7287 <enable_thread_stack_temporaries>: Take a thread_info pointer
7288 instead of a ptid_t. Incref the thread.
7289 <~enable_thread_stack_temporaries>: Decref the thread.
7290 <m_ptid>: Delete
7291 <m_thr>: New.
7292 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7293 (get_last_thread_stack_temporary)
7294 (value_in_thread_stack_temporaries, can_access_registers_thread):
7295 Take a thread_info pointer instead of a ptid_t. All callers
7296 adjusted.
7297 * infcall.c (get_call_return_value): Use inferior_thread.
7298 (run_inferior_call): Work with thread pointers instead of ptid_t.
7299 (call_function_by_hand_dummy): Work with thread pointers instead
7300 of ptid_t. Use thread_info_ref.
7301 * infcmd.c (proceed_thread_callback): Access thread's state
7302 directly.
7303 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7304 access thread's state directly.
7305 (continue_command): Use inferior_thread.
7306 (info_program_command): Use find_thread_ptid and access thread
7307 state directly.
7308 (proceed_after_attach_callback): Use thread state directly.
7309 (notice_new_inferior): Take a thread_info pointer instead of a
7310 ptid_t. All callers adjusted.
7311 (exit_inferior): Take an inferior pointer instead of a pid. All
7312 callers adjusted.
7313 (exit_inferior_silent): New.
7314 (detach_inferior): Delete.
7315 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7316 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7317 (detach_inferior_command, kill_inferior_command): Use
7318 find_inferior_id instead of valid_gdb_inferior_id and
7319 gdb_inferior_id_to_pid.
7320 (inferior_command): Use inferior and thread pointers.
7321 * inferior.h (struct thread_info): Forward declare.
7322 (notice_new_inferior): Take a thread_info pointer instead of a
7323 ptid_t. All callers adjusted.
7324 (detach_inferior): Delete declaration.
7325 (exit_inferior, exit_inferior_silent): Take an inferior pointer
7326 instead of a pid. All callers adjusted.
7327 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7328 (valid_gdb_inferior_id): Delete.
7329 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7330 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7331 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7332 ...
7333 <inf>: ... this new field.
7334 <step_ptid>: Delete, replaced by ...
7335 <step_thread>: ... this new field.
7336 (get_displaced_stepping_state): Take an inferior pointer instead
7337 of a pid. All callers adjusted.
7338 (displaced_step_in_progress_any_inferior): Adjust.
7339 (displaced_step_in_progress_thread): Take a thread pointer instead
7340 of a ptid_t. All callers adjusted.
7341 (displaced_step_in_progress, add_displaced_stepping_state): Take
7342 an inferior pointer instead of a pid. All callers adjusted.
7343 (get_displaced_step_closure_by_addr): Adjust.
7344 (remove_displaced_stepping_state): Take an inferior pointer
7345 instead of a pid. All callers adjusted.
7346 (displaced_step_prepare_throw, displaced_step_prepare)
7347 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7348 All callers adjusted.
7349 (start_step_over): Adjust.
7350 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7351 displaced step queue.
7352 (do_target_resume): Adjust.
7353 (fetch_inferior_event): Use inferior_thread.
7354 (context_switch, get_inferior_stop_soon): Take an
7355 execution_control_state pointer instead of a ptid_t. All callers
7356 adjusted.
7357 (switch_to_thread_cleanup): Delete.
7358 (stop_all_threads): Use scoped_restore_current_thread.
7359 * inline-frame.c: Include "gdbthread.h".
7360 (inline_state) <inline_state>: Take a thread pointer instead of a
7361 ptid_t. All callers adjusted.
7362 <ptid>: Delete, replaced by ...
7363 <thread>: ... this new field.
7364 (find_inline_frame_state): Take a thread pointer instead of a
7365 ptid_t. All callers adjusted.
7366 (skip_inline_frames, step_into_inline_frame)
7367 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7368 pointer instead of a ptid_t. All callers adjusted.
7369 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7370 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7371 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7372 pointers directly.
7373 * linux-nat.c (get_detach_signal): Likewise.
7374 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7375 (thread_db_notice_clone): Adjust.
7376 (thread_db_find_new_threads_silently)
7377 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7378 a thread pointer instead of a ptid_t. All callers adjusted.
7379 * mi/mi-cmd-var.c: Include "inferior.h".
7380 (mi_cmd_var_update_iter): Update to use thread pointers.
7381 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7382 inferior directly.
7383 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7384 out to ...
7385 (mi_output_running): ... this new function.
7386 (mi_on_resume_1): Adjust to use it.
7387 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7388 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7389 directly.
7390 (interrupt_thread_callback): : Adjust to use thread and inferior
7391 pointers.
7392 * proc-service.c: Include "gdbthread.h".
7393 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7394 * progspace-and-thread.c: Include "inferior.h".
7395 * progspace.c: Include "inferior.h".
7396 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7397 hold a reference to an inferior_object.
7398 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7399 inferior_thread.
7400 * python/py-inferior.c (struct inferior_object): Give the type a
7401 tag name instead of a typedef.
7402 (python_on_normal_stop): No need to check if the current thread is
7403 listed.
7404 (inferior_to_inferior_object): Change return type to
7405 inferior_object. All callers adjusted.
7406 (find_thread_object): Delete, bits factored out to ...
7407 (thread_to_thread_object): ... this new function.
7408 * python/py-infthread.c (create_thread_object): Use
7409 inferior_to_inferior_object.
7410 (thpy_is_stopped): Use thread pointer directly.
7411 (gdbpy_selected_thread): Use inferior_thread.
7412 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7413 field, replaced with ...
7414 <thread>: ... this new field. All users adjusted.
7415 (btpy_insn_or_gap_new): Drop const.
7416 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7417 callers adjusted.
7418 * python/py-record.c: Include "gdbthread.h".
7419 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7420 a ptid_t. All callers adjusted.
7421 (gdbpy_current_recording): Use inferior_thread.
7422 * python/py-record.h (recpy_record_object) <ptid>: Delete
7423 field, replaced with ...
7424 <thread>: ... this new field. All users adjusted.
7425 (recpy_element_object) <ptid>: Delete
7426 field, replaced with ...
7427 <thread>: ... this new field. All users adjusted.
7428 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7429 a ptid_t. All callers adjusted.
7430 * python/py-threadevent.c: Include "gdbthread.h".
7431 (get_event_thread): Use thread_to_thread_object.
7432 * python/python-internal.h (struct inferior_object): Forward
7433 declare.
7434 (find_thread_object, find_inferior_object): Delete declarations.
7435 (thread_to_thread_object, inferior_to_inferior_object): New
7436 declarations.
7437 * record-btrace.c: Include "inferior.h".
7438 (require_btrace_thread): Use inferior_thread.
7439 (record_btrace_frame_sniffer)
7440 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7441 (get_thread_current_frame): Use scoped_restore_current_thread and
7442 switch_to_thread.
7443 (get_thread_current_frame): Use thread pointer directly.
7444 (record_btrace_replay_at_breakpoint): Use thread's inferior
7445 pointer directly.
7446 * record-full.c: Include "inferior.h".
7447 * regcache.c: Include "gdbthread.h".
7448 (get_thread_arch_regcache): Use the inferior's address space
7449 directly.
7450 (get_thread_regcache, registers_changed_thread): New.
7451 * regcache.h (get_thread_regcache(thread_info *thread)): New
7452 overload.
7453 (registers_changed_thread): New.
7454 (remote_target) <remote_detach_1>: Swap order of parameters.
7455 (remote_add_thread): <remote_add_thread>: Return the new thread.
7456 (get_remote_thread_info(ptid_t)): New overload.
7457 (remote_target::remote_notice_new_inferior): Use thread pointers
7458 directly.
7459 (remote_target::process_initial_stop_replies): Use
7460 thread_info::set_running.
7461 (remote_target::remote_detach_1, remote_target::detach)
7462 (extended_remote_target::detach): Adjust.
7463 * stack.c (frame_show_address): Use inferior_thread.
7464 * target-debug.h (target_debug_print_thread_info_pp): New.
7465 * target-delegates.c: Regenerate.
7466 * target.c (default_thread_address_space): Delete.
7467 (memory_xfer_partial_1): Use current_inferior.
7468 (target_detach): Use current_inferior.
7469 (target_thread_address_space): Delete.
7470 (generic_mourn_inferior): Use current_inferior.
7471 * target.h (struct target_ops) <thread_address_space>: Delete.
7472 (target_thread_address_space): Delete.
7473 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
7474 pointers directly.
7475 (delete_thread_1, delete_thread, delete_thread_silent): Take a
7476 thread pointer instead of a ptid_t. Adjust all callers.
7477 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7478 (first_thread_of_process): Delete, replaced by ...
7479 (first_thread_of_inferior): ... this new function. All callers
7480 adjusted.
7481 (any_thread_of_process): Rename to ...
7482 (any_thread_of_inferior): ... this, and take an inferior pointer.
7483 (any_live_thread_of_process): Rename to ...
7484 (any_live_thread_of_inferior): ... this, and take an inferior
7485 pointer.
7486 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7487 (value_in_thread_stack_temporaries)
7488 (get_last_thread_stack_temporary): Take a thread pointer instead
7489 of a ptid_t. Adjust all callers.
7490 (thread_info::set_running): New.
7491 (validate_registers_access): Use inferior_thread.
7492 (can_access_registers_ptid): Rename to ...
7493 (can_access_registers_thread): ... this, and take a thread
7494 pointer.
7495 (print_thread_info_1): Adjust to compare thread pointers instead
7496 of ptids.
7497 (switch_to_no_thread, switch_to_thread): Make extern.
7498 (scoped_restore_current_thread::~scoped_restore_current_thread):
7499 Use m_thread pointer directly.
7500 (scoped_restore_current_thread::scoped_restore_current_thread):
7501 Use inferior_thread.
7502 (thread_command): Use thread pointer directly.
7503 (thread_num_make_value_helper): Use inferior_thread.
7504 * top.c (execute_command): Use inferior_thread.
7505 * tui/tui-interp.c: Include "inferior.h".
7506 * varobj.c (varobj_create): Use inferior_thread.
7507 (value_of_root_1): Use find_thread_global_id instead of
7508 global_thread_id_to_ptid.
7509
33bab475
AH
75102018-06-21 Alan Hayward <alan.hayward@arm.com>
7511
4399bce9
PA
7512 * regcache.c (readable_regcache::read_part): Avoid memcpy when
7513 possible.
7514 (regcache::write_part): Likewise.
7515 (readable_regcache::cooked_read_part): Update comment.
7516 (readable_regcache::cooked_write_part): Likewise.
7517 * regcache.h: (readable_regcache::read_part): Likewise.
7518 (regcache::write_part): Likewise.
33bab475 7519
8363f9d5
RB
75202018-06-21 Richard Bunt <richard.bunt@arm.com>
7521 Dirk Schubert <dirk.schubert@arm.com>
7522
7523 * aarch64-linux-nat.c (post_attach): New.
7524 (aarch64_linux_nat_target::post_attach): Override post_attach to
7525 record the number of hardware debug registers.
7526
0d0b0ea2
TT
75272018-06-20 Tom Tromey <tom@tromey.com>
7528
7529 * python/py-param.c (add_setshow_generic): Make parameters const.
7530 (parmpy_init): Update.
7531
302abd6e
SM
75322018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7533
7534 * regcache.h (regcache_cooked_read_ftype): Rename to...
7535 (register_read_ftype): ...this, change type to function_view.
7536 (class reg_buffer) <save>: Remove src parameter.
7537 (readonly_detached_regcache) <readonly_detached_regcache>: Make
7538 parameter non-const in first overload. Remove src parameter in
7539 second overload.
7540 * regcache.c (do_cooked_read): Remove.
7541 (readonly_detached_regcache::readonly_detached_regcache): Make
7542 parameter non-const, adjust call to other constructor.
7543 (reg_buffer::save): Remove src parameter.
7544 * frame.c (do_frame_register_read): Remove.
7545 (frame_save_as_regcache): Use lambda function.
7546 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7547 parameter to ppu2spu_data *.
7548 (ppu2spu_sniffer): Use lambda function.
7549
19f3f25f
SM
75502018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7551
7552 * record-full.c (record_full_target::insert_breakpoint): Remove
7553 "struct" keyword, add const.
7554
d0ac1c44
SM
75552018-06-19 Simon Marchi <simon.marchi@ericsson.com>
7556
7557 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7558 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7559 * configure.ac: Remove AC_PREREQ, add missing quoting.
7560 * gnulib/configure.ac: Modernize usage of
7561 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
7562 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7563 (AUTOMAKE_VERSION): Bump to 1.15.1.
7564 * configure: Re-generate.
7565 * config.in: Re-generate.
7566 * aclocal.m4: Re-generate.
7567 * gnulib/aclocal.m4: Re-generate.
7568 * gnulib/config.in: Re-generate.
7569 * gnulib/configure: Re-generate.
7570 * gnulib/import/Makefile.in: Re-generate.
7571
6ae50267
PA
75722018-06-19 Pedro Alves <palves@redhat.com>
7573
7574 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7575 (lookup_minimal_symbol_by_pc_section): ... here with
7576 gdb_assert_not_reached added.
7577
61b04dd0
PA
75782018-06-19 Pedro Alves <palves@redhat.com>
7579
7580 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7581 parameter with a block parameter. Compare location's block symbol
7582 with the frame's block instead of addresses.
7583 (skip_inline_frames): Pass the current block instead of the
7584 frame's address. Break out as soon as we determine the frame
7585 should not be skipped.
7586
f709fabb
TT
75872018-06-18 Tom Tromey <tom@tromey.com>
7588
7589 * solib-aix.c (solib_aix_get_section_offsets): Return
7590 unique_xmalloc_ptr.
7591 (solib_aix_solib_create_inferior_hook): Update.
7592
668eb2f0
TT
75932018-06-18 Tom Tromey <tom@tromey.com>
7594
7595 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7596
309822ca
TT
75972018-06-18 Tom Tromey <tom@tromey.com>
7598
7599 * solib-frv.c (frv_relocate_main_executable): Use
7600 unique_xmalloc_ptr.
7601 * solib-dsbt.c (dsbt_relocate_main_executable): Use
7602 unique_xmalloc_ptr.
7603
06424eac
TT
76042018-06-18 Tom Tromey <tom@tromey.com>
7605
7606 * objfiles.h (inhibit_section_map_updates): Update.
7607 (resume_section_map_updates, resume_section_map_updates_cleanup):
7608 Remove.
7609 * solib-svr4.c (svr4_handle_solib_event): Update.
7610 * objfiles.c (inhibit_section_map_updates): Return
7611 scoped_restore_tmpl<int>.
7612 (resume_section_map_updates, resume_section_map_updates_cleanup):
7613 Remove.
7614
b4be9fad
TT
76152018-06-18 Tom Tromey <tom@tromey.com>
7616
7617 * valprint.h (read_string): Update.
7618 * valprint.c (read_string): Change type of "buffer".
7619 (val_print_string): Update.
7620 * python/py-value.c (valpy_string): Update.
7621 * language.h (struct language_defn) <la_get_string>: Change
7622 type of "buffer".
7623 (default_get_string, c_get_string): Update.
7624 * language.c (default_get_string): Change type of "buffer".
7625 * guile/scm-value.c (gdbscm_value_to_string): Update.
7626 * c-lang.c (c_get_string): Change type of "buffer".
7627
3f0dbd67
TT
76282018-06-18 Tom Tromey <tom@tromey.com>
7629
7630 * ser-mingw.c (struct pipe_state_destroyer): New.
7631 (pipe_state_up): New typedef.
7632 (cleanup_pipe_state): Remove.
7633 (pipe_windows_open): Use pipe_state_up. Don't release argv.
7634
69d340c6
TT
76352018-06-18 Tom Tromey <tom@tromey.com>
7636
7637 * rust-lang.h (rust_yyerror): Don't declare.
7638 * rust-lang.c (rust_language_defn): Update.
7639 * rust-exp.y (yyerror): Now static.
7640 * parse.c (parse_exp_in_context_1): Update.
7641 * p-lang.h (p_yyerror): Don't declare.
7642 * p-lang.c (p_language_defn): Update.
7643 * p-exp.y (yyerror): Now static.
7644 * opencl-lang.c (opencl_language_defn): Update.
7645 * objc-lang.c (objc_language_defn): Update.
7646 * m2-lang.h (m2_yyerror): Don't declare.
7647 * m2-lang.c (m2_language_defn): Update.
7648 * m2-exp.y (yyerror): Now static.
7649 * language.h (struct language_defn) <la_error>: Remove.
7650 * language.c (unk_lang_error): Remove.
7651 (unknown_language_defn, auto_language_defn): Remove.
7652 * go-lang.h (go_yyerror): Don't declare.
7653 * go-lang.c (go_language_defn): Update.
7654 * go-exp.y (yyerror): Now static.
7655 * f-lang.h (f_yyerror): Don't declare.
7656 * f-lang.c (f_language_defn): Update.
7657 * f-exp.y (yyerror): Now static.
7658 * d-lang.h (d_yyerror): Don't declare.
7659 * d-lang.c (d_language_defn): Update.
7660 * d-exp.y (yyerror): Now static.
7661 * c-lang.h (c_yyerror): Don't declare.
7662 * c-lang.c (c_language_defn, cplus_language_defn)
7663 (asm_language_defn, minimal_language_defn): Update.
7664 * c-exp.y (yyerror): Now static.
7665 * ada-lang.h (ada_yyerror): Don't declare.
7666 * ada-lang.c (ada_language_defn): Update.
7667 * ada-exp.y (yyerror): Now static.
7668
e9902bfc
AH
76692018-06-18 Alan Hayward <alan.hayward@arm.com>
7670
7671 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7672 (store_sveregs_to_thread): Likewise.
7673 (aarch64_linux_fetch_inferior_registers): Check for SVE.
7674 (aarch64_linux_store_inferior_registers): Likewise.
7675 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7676 function.
7677 (aarch64_sve_regs_copy_to_regcache): Likewise.
7678 (aarch64_sve_regs_copy_from_regcache): Likewise.
7679 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7680 declaration.
7681 (aarch64_sve_regs_copy_to_regcache): Likewise.
7682 (aarch64_sve_regs_copy_from_regcache): Likewise.
7683 (sve_context): Structure from Linux headers.
7684 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7685 (SVE_SIG_ZREG_SIZE): Likewise.
7686 (SVE_SIG_PREG_SIZE): Likewise.
7687 (SVE_SIG_FFR_SIZE): Likewise.
7688 (SVE_SIG_REGS_OFFSET): Likewise.
7689 (SVE_SIG_ZREGS_OFFSET): Likewise.
7690 (SVE_SIG_ZREG_OFFSET): Likewise.
7691 (SVE_SIG_ZREGS_SIZE): Likewise.
7692 (SVE_SIG_PREGS_OFFSET): Likewise.
7693 (SVE_SIG_PREG_OFFSET): Likewise.
7694 (SVE_SIG_PREGS_SIZE): Likewise.
7695 (SVE_SIG_FFR_OFFSET): Likewise.
7696 (SVE_SIG_REGS_SIZE): Likewise.
7697 (SVE_SIG_CONTEXT_SIZE): Likewise.
7698 (SVE_PT_REGS_MASK): Likewise.
7699 (SVE_PT_REGS_FPSIMD): Likewise.
7700 (SVE_PT_REGS_SVE): Likewise.
7701 (SVE_PT_VL_INHERIT): Likewise.
7702 (SVE_PT_VL_ONEXEC): Likewise.
7703 (SVE_PT_REGS_OFFSET): Likewise.
7704 (SVE_PT_FPSIMD_OFFSET): Likewise.
7705 (SVE_PT_FPSIMD_SIZE): Likewise.
7706 (SVE_PT_SVE_ZREG_SIZE): Likewise.
7707 (SVE_PT_SVE_PREG_SIZE): Likewise.
7708 (SVE_PT_SVE_FFR_SIZE): Likewise.
7709 (SVE_PT_SVE_FPSR_SIZE): Likewise.
7710 (SVE_PT_SVE_FPCR_SIZE): Likewise.
7711 (__SVE_SIG_TO_PT): Likewise.
7712 (SVE_PT_SVE_OFFSET): Likewise.
7713 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7714 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7715 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7716 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7717 (SVE_PT_SVE_PREG_OFFSET): Likewise.
7718 (SVE_PT_SVE_PREGS_SIZE): Likewise.
7719 (SVE_PT_SVE_FFR_OFFSET): Likewise.
7720 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7721 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7722 (SVE_PT_SVE_SIZE): Likewise.
7723 (SVE_PT_SIZE): Likewise.
7724 (HAS_SVE_STATE): New define.
7725
17a1cc89
AH
77262018-06-18 Alan Hayward <alan.hayward@arm.com>
7727
7728 * nat/aarch64-sve-linux-sigcontext.h: New file.
7729 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7730 new files.
7731 (SVE_VQ_MIN): Likewise.
7732 (SVE_VQ_MAX): Likewise.
7733 (SVE_VL_MIN): Likewise.
7734 (SVE_VL_MAX): Likewise.
7735 (SVE_NUM_ZREGS): Likewise.
7736 (SVE_NUM_PREGS): Likewise.
7737 (sve_vl_valid): Likewise.
7738 (struct user_sve_header): Likewise.
7739
7010835a
AB
77402018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7741 Richard Bunt <Richard.Bunt@arm.com>
7742
7743 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
7744 was requested by GDB.
7745
479b3ef4
TV
77462018-06-15 Tom de Vries <tdevries@suse.de>
7747
7748 * MAINTAINERS (Write After Approval): Add Tom de Vries.
7749
8199b8f4
SM
77502018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
7751
7752 * gnulib/update-gnulib.sh: Print expected versions of
7753 autoconf/aclocal.
7754
55c748a1
SM
77552018-06-14 Simon Marchi <simon.marchi@ericsson.com>
7756
7757 * arch-utils.c (default_type_align): Use type_length_units.
7758 * gdbtypes.c (type_align): Use type_length_units.
7759
87a8eca7
PW
77602018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7761
7762 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7763 of 'define' command.
7764
5d9a0608
TV
77652018-06-14 Tom de Vries <tdevries@suse.de>
7766
7767 PR cli/22573
7768 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7769 get_no_prettyformat_print_options.
7770
ab89b5a5
SM
77712018-06-13 Simon Marchi <simon.marchi@ericsson.com>
7772
7773 * sparc-nat.h: Include target.h.
7774 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7775 <fetch_registers>: Remove this argument in function call.
7776 <store_registers>: Remove this argument in function call, remove
7777 extra semicolon.
7778 <low_forget_process>: Call sparc64_forget_process instead of
7779 sparc_forget_process.
7780
62c808ae
RO
77812018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7782
7783 * procfs.c (_initialize_procfs): Use add_inf_child_target.
7784 (procfs_target::make_corefile_notes): Adjust to new
7785 target_read_alloc return type.
7786
1840d81a
AB
77872018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7788 Stephen Roberts <stephen.roberts@arm.com>
7789
7790 PR gdb/22882
7791 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7792 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7793 Move should_notify_stop local into more inner scope.
7794
9516f85a
AB
77952018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7796 Stephen Roberts <stephen.roberts@arm.com>
7797
7798 PR gdb/22882
7799 * infrun.c (resume_1): Add call to mark_async_event_handler.
7800
defd2172
AB
78012018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7802
7803 * infrun.c (do_target_wait): Change old version of $pc printed.
7804
7b23e087
SM
78052018-06-11 Simon Marchi <simon.marchi@ericsson.com>
7806
7807 * dwarf2read.c (read_index_from_section): Rename to...
7808 (read_gdb_index_from_section): ... this, update all callers.
7809 (dwarf2_read_index): Rename to...
7810 (dwarf2_read_gdb_index): ... this, update all callers.
7811
69c67a0b
JDA
78122018-06-11 John David Anglin <danglin@gcc.gnu.org>
7813
4399bce9 7814 * hppa-linux-nat.c
69c67a0b
JDA
7815 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7816 hppa_linux_nat_target::fetch_registers.
7817
65d4cada
AH
78182018-06-11 Alan Hayward <alan.hayward@arm.com>
7819
7820 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7821 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7822 (AARCH64_DWARF_SVE_FFR): Likewise.
7823 (AARCH64_DWARF_SVE_P0): Likewise.
7824 (AARCH64_DWARF_SVE_Z0): Likewise.
7825
f868386e
AH
78262018-06-11 Alan Hayward <alan.hayward@arm.com>
7827
7828 * common/common-regcache.h (raw_compare): New function.
7829 * regcache.c (regcache::raw_compare): Likewise.
7830 * regcache.h (regcache::raw_compare): New declaration.
7831
9c861883
AH
78322018-06-11 Alan Hayward <alan.hayward@arm.com>
7833
7834 * common/common-regcache.h (reg_buffer_common): New structure.
7835 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
7836 (reg_buffer::raw_supply): Likewise.
7837 (reg_buffer::raw_supply_integer): Likewise.
7838 (reg_buffer::raw_supply_zeroed): Likewise.
7839 (reg_buffer::raw_collect): Likewise.
7840 (reg_buffer::raw_collect_integer): Likewise.
7841 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7842 (reg_buffer::raw_supply): Likewise.
7843 (reg_buffer::raw_supply_integer): Likewise.
7844 (reg_buffer::raw_supply_zeroed): Likewise.
7845 (reg_buffer::raw_collect): Likewise.
7846 (reg_buffer::raw_collect_integer): Likewise.
7847
953edf2b
TT
78482018-06-10 Tom Tromey <tom@tromey.com>
7849
7850 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
7851 (class remote_state) <stop_reply_queue>: Now std::vector.
7852 (remote_state::~remote_state)
7853 (remote_target::stop_reply_queue_length): Update.
7854 (struct queue_iter_param, remove_child_of_pending_fork)
7855 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7856 (check_pending_event_prevents_wildcard_vcont_callback)
7857 (remove_stop_reply_for_inferior)
7858 (remove_stop_reply_of_remote_state)
7859 (remote_notif_remove_once_on_match)
7860 (stop_reply_match_ptid_and_ws)
7861 (remote_kill_child_of_pending_fork): Remove.
7862 (remote_target::remove_new_fork_children)
7863 (remote_target::check_pending_events_prevent_wildcard_vcont)
7864 (remote_target::discard_pending_stop_replies)
7865 (remote_target::discard_pending_stop_replies_in_queue)
7866 (remote_target::remote_notif_remove_queued_reply)
7867 (remote_target::queued_stop_reply)
7868 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7869 (remote_target::wait, remote_target::kill_new_fork_children)
7870 (remote_target::async): Update.
7871
1ddbba9d
TT
78722018-06-10 Tom Tromey <tom@tromey.com>
7873
7874 * record-full.c (record_full_arch_list_cleanups): Remove.
7875 (record_full_message): Use try/catch.
7876 (record_full_wait_cleanups): Remove.
7877 (record_full_wait_1): Use try/catch.
7878 (record_full_restore): Likewise.
7879
219605fd
TT
78802018-06-10 Tom Tromey <tom@tromey.com>
7881
7882 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
7883 declare VEC. Add constructor.
7884 <in_target_beneath>: Now bool.
7885 (record_full_breakpoints): Now a std::vector, static.
7886 (record_full_sync_record_breakpoints)
7887 (record_full_init_record_breakpoints)
7888 (record_full_target::insert_breakpoint)
7889 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
7890
71b73764
SM
78912018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7892
7893 * dwarf2read.c (process_cu_includes): Remove struct keyword.
7894 * serial.c (serial_interface_lookup): Remove struct keyword.
7895
4360561f
TT
78962018-06-10 Tom Tromey <tom@tromey.com>
7897
7898 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7899 method.
7900 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7901 a method.
7902 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7903 method.
7904 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7905 "beneath" as a method.
7906 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7907 Use "beneath" as a method.
7908
d14b92bf
TT
79092018-06-10 Tom Tromey <tom@tromey.com>
7910
7911 * tracefile.c (struct trace_file_writer_deleter): New.
7912 <operator()>: Rename from trace_file_writer_xfree.
7913 (trace_file_writer_up): New typedef.
7914 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7915
835dcf92
SM
79162018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7917
7918 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7919 <m_registers, m_register_status>: Change type to
7920 std::unique_ptr.
7921 * regcache.c (reg_buffer::reg_buffer): Use new instead of
7922 XCNEWVEC.
7923
aac0d564
SM
79242018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7925
7926 * common/common-regcache.h (enum register_status): Add
7927 underlying type "signed char".
7928 * regcache.h (reg_buffer) <m_register_status>: Change type to
7929 register_status *.
7930 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7931 register_status instead of signed char.
7932 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7933 (reg_buffer::get_register_status): Remove cast.
7934 (readable_regcache::raw_read): Remove cast.
7935 (readable_regcache::cooked_read): Remove cast.
7936
77ad7394
TT
79372018-06-09 Tom Tromey <tom@tromey.com>
7938
7939 * source.c (reverse_search_command, forward_search_command): Use
7940 scoped_fd.
7941
191cca63
TT
79422018-06-09 Tom Tromey <tom@tromey.com>
7943
7944 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
7945 (serial_ops_list): Now static, std::vector.
7946 (serial_interface_lookup, serial_add_interface): Update.
7947
c5d0225d
TT
79482018-06-09 Tom Tromey <tom@tromey.com>
7949
7950 * dwarf2read.c (process_cu_includes): Update.
7951 (process_full_comp_unit): Update.
7952 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7953 std::vector.
7954
aeab5128
PK
79552018-06-08 Paul Koning <paul_koning@dell.com>
7956
7957 PR gdb/23252
7958
7959 * python/python.c (do_start_initialization):
7960 Avoid call to internal Python API.
7961 (init__gdb_module): New function.
7962
5045b3d7
GB
79632018-06-08 Gary Benson <gbenson@redhat.com>
7964
7965 * linux-thread-db.c (valprint.h): New include.
7966 (struct check_thread_db_info): New structure.
7967 (check_thread_db_on_load, tdb_testinfo): New static globals.
7968 (check_thread_db, check_thread_db_callback): New functions.
7969 (try_thread_db_load_1): Run integrity checks if requested.
7970 (maintenance_check_libthread_db): New function.
7971 (_initialize_thread_db): Register "maint check libthread-db"
7972 and "maint set/show check-libthread-db".
7973 * NEWS: Mention the above new commands.
7974
2f4f025f
TT
79752018-06-08 Tom Tromey <tom@tromey.com>
7976
7977 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7978 now a method.
7979
343b0027
TT
79802018-06-08 Tom Tromey <tom@tromey.com>
7981
7982 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7983
8dcc53b3
TT
79842018-06-08 Tom Tromey <tom@tromey.com>
7985
7986 * common/btrace-common.h (struct btrace_data): Add constructor,
7987 destructor, move assignment operator.
7988 <empty, clear, fini>: New methods.
7989 <format>: Initialize.
7990 (btrace_data_init, btrace_data_fini, btrace_data_clear)
7991 (btrace_data_empty): Don't declare.
7992 * common/btrace-common.c (btrace_data_init): Remove.
7993 (btrace_data::fini): Rename from btrace_data_fini.
7994 (btrace_data::empty): Rename from btrace_data_empty.
7995 (btrace_data::clear): Rename from btrace_data_clear. Return
7996 bool.
7997 * btrace.h (make_cleanup_btrace_data): Don't declare.
7998 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7999 (parse_xml_btrace): Update.
8000 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
8001 (maint_btrace_clear_packet_history_cmd): Update.
8002
a1740ee1
PA
80032018-06-07 Pedro Alves <palves@redhat.com>
8004
8005 * target.h (target_ops) <beneath>: Now a method. All references
8006 updated.
8007 (class target_stack): New.
8008 * target.c (g_target_stack): New.
8009 (g_current_top_target): Delete.
8010 (current_top_target): Get the top target out of g_target_stack.
8011 (target_stack::push, target_stack::unpush): New.
8012 (push_target, unpush_target): Reimplement.
8013 (target_is_pushed): Reimplement in terms of g_target_stack.
8014 (target_ops::beneath, target_stack::find_beneath): New.
8015
d6ca69cd
PA
80162018-06-07 Pedro Alves <palves@redhat.com>
8017
8018 * target.h (find_target_beneath): Delete declaration.
8019 * target.c (find_target_beneath): Delete definition.
8020 * aix-thread.c: All callers of find_target_beneath adjusted to
8021 call target_ops::beneath instead.
8022 * bsd-uthread.c: Likewise.
8023 * linux-thread-db.c: Likewise.
8024 * ravenscar-thread.c: Likewise.
8025 * sol-thread.c: Likewise.
8026 * spu-multiarch.c: Likewise.
8027
b6a8c27b
PA
80282018-06-07 Pedro Alves <palves@redhat.com>
8029
8030 * target.h (target_ops) <beneath>: Now a method. All references
8031 updated.
8032 (target_ops) <m_beneath>: New.
8033 * target.c (target_ops::beneath): New.
8034 * corelow.c: Adjust all references to target_ops::beneath.
8035 * linux-thread-db.c: Likewise.
8036 * make-target-delegates: Likewise.
8037 * record-btrace.c: Likewise.
8038 * record-full.c: Likewise.
8039 * remote.c: Likewise.
8040 * target.c: Likewise.
8041 * target-delegates.c: Regenerate.
8042
8b88a78e
PA
80432018-06-07 Pedro Alves <palves@redhat.com>
8044
8045 * target.h (target_stack): Delete.
8046 (current_top_target): Declare function.
8047 * target.c (target_stack): Delete.
8048 (g_current_top_target): New.
8049 (current_top_target): New function.
8050 * auxv.c: Use current_top_target instead of target_stack
8051 throughout.
8052 * avr-tdep.c: Likewise.
8053 * breakpoint.c: Likewise.
8054 * corefile.c: Likewise.
8055 * elfread.c: Likewise.
8056 * eval.c: Likewise.
8057 * exceptions.c: Likewise.
8058 * frame.c: Likewise.
8059 * gdbarch-selftests.c: Likewise.
8060 * gnu-v3-abi.c: Likewise.
8061 * ia64-tdep.c: Likewise.
8062 * ia64-vms-tdep.c: Likewise.
8063 * infcall.c: Likewise.
8064 * infcmd.c: Likewise.
8065 * infrun.c: Likewise.
8066 * linespec.c: Likewise.
8067 * linux-tdep.c: Likewise.
8068 * minsyms.c: Likewise.
8069 * ppc-linux-nat.c: Likewise.
8070 * ppc-linux-tdep.c: Likewise.
8071 * procfs.c: Likewise.
8072 * regcache.c: Likewise.
8073 * remote.c: Likewise.
8074 * rs6000-tdep.c: Likewise.
8075 * s390-linux-nat.c: Likewise.
8076 * s390-tdep.c: Likewise.
8077 * solib-aix.c: Likewise.
8078 * solib-darwin.c: Likewise.
8079 * solib-dsbt.c: Likewise.
8080 * solib-spu.c: Likewise.
8081 * solib-svr4.c: Likewise.
8082 * solib-target.c: Likewise.
8083 * sparc-tdep.c: Likewise.
8084 * sparc64-tdep.c: Likewise.
8085 * spu-tdep.c: Likewise.
8086 * symfile.c: Likewise.
8087 * symtab.c: Likewise.
8088 * target-descriptions.c: Likewise.
8089 * target-memory.c: Likewise.
8090 * target.c: Likewise.
8091 * target.h: Likewise.
8092 * tracefile-tfile.c: Likewise.
8093 * tracepoint.c: Likewise.
8094 * valops.c: Likewise.
8095 * valprint.c: Likewise.
8096 * value.c: Likewise.
8097 * windows-tdep.c: Likewise.
8098 * mi/mi-main.c: Likewise.
8099
c7110220
TT
81002018-06-07 Tom Tromey <tom@tromey.com>
8101
8102 * valprint.h (build_address_symbolic): Declare.
8103 * printcmd.c (print_address_symbolic): Update.
8104 (build_address_symbolic): Change "name" and "filename" to
8105 std::string.
8106 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
8107 Update.
8108 * defs.h (build_address_symbolic): Remove declaration.
8109
63bad7b6
AH
81102018-06-07 Alan Hayward <alan.hayward@arm.com>
8111
8112 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
8113 (aarch64_vnv_type): Add function.
8114 (aarch64_pseudo_register_name): Add V regs for SVE.
8115 (aarch64_pseudo_register_type): Likewise.
8116 (aarch64_pseudo_register_reggroup_p): Likewise.
8117 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
8118 (aarch64_pseudo_read_value): Add V regs for SVE.
8119 (aarch64_pseudo_write_2): Use V0 offset for SVE
8120 (aarch64_pseudo_write): Add V regs for SVE.
8121 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
8122
13e3c608
SDJ
81232018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
8124
8125 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
8126 (sve_vl_from_vq): Likewise.
8127
c61b06a1
TT
81282018-06-05 Tom Tromey <tom@tromey.com>
8129
8130 * cli/cli-cmds.c (show_version): Update.
8131 * top.c (print_gdb_version): Add "interactive" parameter.
8132 Update.
8133 * main.c (captured_main_1): Update.
8134 * top.h (print_gdb_version): Add "interactive" parameter and a
8135 comment.
8136
115f7325
DM
81372018-06-05 David Malcolm <dmalcolm@redhat.com>
8138
8139 * common/enum-flags.h: Add trailing semicolon to example in
8140 comment.
8141
eb6af809
TT
81422018-06-05 Tom Tromey <tom@tromey.com>
8143
8144 PR cli/12326:
8145 * NEWS: Add entry about pager.
8146 * utils.c (pagination_disabled_for_command): New global.
8147 (prompt_for_continue): Allow "c" response to prompt.
8148 (reinitialize_more_filter): Clear
8149 pagination_disabled_for_command.
8150 (fputs_maybe_filtered): Check pagination_disabled_for_command.
8151
54d343a2
TT
81522018-06-04 Tom Tromey <tom@tromey.com>
8153
8154 * ada-lang.h (ada_lookup_symbol_list): Update.
8155 * ada-lang.c (resolve_subexp): Update.
8156 (symbols_are_identical_enums): Change type of syms. Remove nsyms
8157 parameter.
8158 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
8159 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
8160 results parameter to std::vector.
8161 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
8162 Update.
8163 * ada-exp.y (block_lookup): Update.
8164 (select_possible_type_sym): Change type of syms. Remove nsyms
8165 parameter.
8166 (write_var_or_type, write_name_assoc): Update.
8167
178d6a63
JB
81682018-06-04 Joel Brobecker <brobecker@adacore.com>
8169
8170 * windows-nat.c (windows_nat_target::xfer_partial): Return
8171 TARGET_XFER_E_IO if we need to delegate to the target beneath
8172 but BENEATH is NULL.
8173
baf00c2d
SM
81742018-06-04 Simon Marchi <simon.marchi@ericsson.com>
8175
8176 * Makefile.in (config.status): Add configure.nat as a
8177 dependency.
8178
214b073c
TT
81792018-06-04 Tom Tromey <tom@tromey.com>
8180
8181 * cp-name-parser.y (cpname_state): Add method declarations.
8182 (HANDLE_QUAL): Update.
8183 (cpname_state::d_grab, cpname_state::fill_comp)
8184 (cpname_state::make_operator, cpname_state::make_dtor)
8185 (cpname_state::make_builtin_type, cpname_state::make_name)
8186 (cpname_state::d_qualify, cpname_state::d_int_type)
8187 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
8188 (%union): Move earlier.
8189
62b74cb8
AH
81902018-06-04 Alan Hayward <alan.hayward@arm.com>
8191
8192 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
8193
3c5cd5c3
AH
81942018-06-04 Alan Hayward <alan.hayward@arm.com>
8195
8196 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
8197 (aarch64_pseudo_write_1): Likewise.
8198 (aarch64_pseudo_read_value): Use helper.
8199 (aarch64_pseudo_write): Likewise.
8200
59f413d5
PA
82012018-06-04 Pedro Alves <palves@redhat.com>
8202
8203 * darwin-nat.c (darwin_ops): Delete.
8204 (darwin_attach_pid): Use get_native_target.
8205
1332a140
AH
82062018-06-04 Alan Hayward <alan.hayward@arm.com>
8207
8208 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
8209 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
8210
ba2d2bb2
AH
82112018-06-04 Alan Hayward <alan.hayward@arm.com>
8212
8213 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
8214 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
8215 (aarch64_gdbarch_init): Check for SVE.
8216 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
8217
82182018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
8219
8220 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8221 * aarch64-tdep.h (aarch64_read_description): Likewise.
8222 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8223 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8224 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8225 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8226 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8227
41c60b4b
SM
82282018-06-02 Simon Marchi <simon.marchi@ericsson.com>
8229
8230 * value.c (value_fetch_lazy_bitfield): New.
8231 (value_fetch_lazy_memory): New.
8232 (value_fetch_lazy_register): New.
8233 (value_fetch_lazy): Factor out to smaller functions.
8234
7b640f72
TT
82352018-06-01 Tom Tromey <tom@tromey.com>
8236
8237 * cp-name-parser.y (backslashable, represented): Now const.
8238
98e69eb3
TT
82392018-06-01 Tom Tromey <tom@tromey.com>
8240
8241 * cp-name-parser.y: Include parser-defs.h.
8242 (parser_fprintf): Remove declaration.
8243
49265499
TT
82442018-06-01 Tom Tromey <tom@tromey.com>
8245
8246 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8247 %parse-param.
8248 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8249 (global_result): Remove globals.
8250 (struct cpname_state): New.
8251 (yyparse): Don't declare.
8252 (yylex, yyerror): Move declarations after %union.
8253 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8254 (make_name): Add state parameter.
8255 Update all callers.
8256 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8257 parameter.
8258 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8259 Update.
8260 (yylex): Add lvalp, state parameters.
8261 (yyerror): Add state parameter.
8262 (cp_demangled_name_to_comp): Update.
8263
55b6c984
TT
82642018-06-01 Tom Tromey <tom@tromey.com>
8265
8266 * cp-name-parser.y (parser_fprintf): Declare.
8267 (GDB_YY_REMAP_PREFIX): Define.
8268 Include yy-remap.h. Don't redefine yy* identifiers.
8269
3513a6bb
TT
82702018-06-01 Tom Tromey <tom@tromey.com>
8271
8272 * python/py-type.c (typy_legacy_template_argument): Update.
8273 * cp-support.h (cp_demangled_name_to_comp): Update.
8274 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8275 parameter to be a "std::string *".
8276 (main): Update.
8277
e9cb46ab
L
82782018-06-01 H.J. Lu <hongjiu.lu@intel.com>
8279
8280 * ada-lex.l: Include "diagnostics.h" instead of
8281 "common/diagnostics.h".
8282 * unittests/environ-selftests.c: Likewise.
8283 * common/diagnostics.h: Moved to ../include.
8284
8e817061
JB
82852018-06-01 Joel Brobecker <brobecker@adacore.com>
8286
8287 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8288 to language_mode_manual while calling breakpoint_re_set_one.
8289
a737d952
TT
82902018-06-01 Tom Tromey <tom@tromey.com>
8291
8292 * valops.c (value_cast_structs, destructor_name_p): Update.
8293 * symtab.c (gdb_mangle_name): Update.
8294 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8295 Update.
8296 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8297 (pascal_object_print_value_fields, pascal_object_print_value):
8298 Update.
8299 * p-typeprint.c (pascal_type_print_derivation_info): Update.
8300 * linespec.c (find_methods): Update.
8301 * gdbtypes.h (type_name_no_tag): Remove.
8302 (type_name_or_error): Rename from type_name_no_tag_or_error.
8303 * gdbtypes.c (type_name_no_tag): Remove.
8304 (type_name_or_error): Rename from type_name_no_tag_or_error.
8305 (lookup_struct_elt_type, check_typedef): Update.
8306 * expprint.c (print_subexp_standard): Update.
8307 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8308 * d-namespace.c (d_lookup_nested_symbol): Update.
8309 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8310 (cp_print_class_member): Update.
8311 * cp-namespace.c (cp_lookup_nested_symbol): Update.
8312 * completer.c (add_struct_fields): Update.
8313 * c-typeprint.c (cp_type_print_derivation_info)
8314 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8315 Update.
8316 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8317 (ada_prefer_type, ada_is_exception_sym): Update.
8318
e86ca25f
TT
83192018-06-01 Tom Tromey <tom@tromey.com>
8320
8321 * valops.c (enum_constant_from_type, value_namespace_elt)
8322 (value_maybe_namespace_elt): Update.
8323 * valarith.c (find_size_for_pointer_math): Update.
8324 * target-descriptions.c (make_gdb_type): Update.
8325 * symmisc.c (print_symbol): Update.
8326 * stabsread.c (define_symbol, read_type)
8327 (complain_about_struct_wipeout, add_undefined_type)
8328 (cleanup_undefined_types_1): Update.
8329 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8330 (rust_range_type_p, val_print_struct, rust_print_struct_def)
8331 (rust_internal_print_type, rust_composite_type)
8332 (rust_evaluate_funcall, rust_evaluate_subexp)
8333 (rust_inclusive_range_type_p): Update.
8334 * python/py-type.c (typy_get_tag): Update.
8335 * p-typeprint.c (pascal_type_print_base): Update.
8336 * mdebugread.c (parse_symbol, parse_type): Update.
8337 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8338 Update.
8339 * guile/scm-type.c (gdbscm_type_tag): Update.
8340 * go-lang.c (sixg_string_p): Update.
8341 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8342 Update.
8343 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8344 (TYPE_TAG_NAME): Remove.
8345 * gdbtypes.c (type_name_no_tag): Simplify.
8346 (check_typedef, check_types_equal, recursive_dump_type)
8347 (copy_type_recursive, arch_composite_type): Update.
8348 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8349 in summary mode when needed.
8350 * eval.c (evaluate_funcall): Update.
8351 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8352 (process_structure_scope, read_enumeration_type)
8353 (read_namespace_type, read_module_type, determine_prefix): Update.
8354 * cp-support.c (inspect_type): Update.
8355 * coffread.c (process_coff_symbol, decode_base_type): Update.
8356 * c-varobj.c (c_is_path_expr_parent): Update.
8357 * c-typeprint.c (c_type_print_base_struct_union): Update.
8358 (c_type_print_base_1): Update. Print struct/class/union/enum in
8359 summary when using C language.
8360 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8361 (gen_maybe_namespace_elt): Update.
8362 * ada-lang.c (ada_type_name): Simplify.
8363 (empty_record, ada_template_to_fixed_record_type_1)
8364 (template_to_static_fixed_type)
8365 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8366
c1ec8cea
TT
83672018-06-01 Tom Tromey <tom@tromey.com>
8368
8369 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8370 c_print_type.
8371 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8372 (c_print_type): Update.
8373 (c_print_type): New overload.
8374 (c_type_print_varspec_prefix, c_type_print_args)
8375 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8376 (c_type_print_base_struct_union, c_type_print_base_1)
8377 (cp_type_print_method_args): Add "language" parameter.
8378 (c_type_print_base): Update.
8379 * c-lang.h (c_print_type): Add new overload.
8380
bc8453a7
TT
83812018-06-01 Tom Tromey <tom@tromey.com>
8382
8383 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8384 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8385
739e8682
AH
83862018-06-01 Alan Hayward <alan.hayward@arm.com>
8387
8388 * aarch64-tdep.c (aarch64_sve_register_names): New const
8389 var.
8390 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8391 (AARCH64_SVE_Z_REGS_NUM): New define.
8392 (AARCH64_SVE_P_REGS_NUM): Likewise.
8393 (AARCH64_SVE_NUM_REGS): Likewise.
8394
8a60efe7
UB
83952018-05-31 Uros Bizjak <ubizjak@gmail.com>
8396
8397 * nat/linux-ptrace.h [__alpha__]
8398 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8399 definitions.
8400
4b2dfa9d
MR
84012018-05-31 Maciej W. Rozycki <macro@mips.com>
8402
8403 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8404 the endianness selected.
8405 * NEWS: Document `set endian auto' mode operation update.
8406
122394f1
AH
84072018-05-31 Alan Hayward <alan.hayward@arm.com>
8408
8409 * Makefile.in: Add new header.
8410 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8411 (sve_vl_from_vg): Likewise.
8412 (sve_vq_from_vl): Likewise.
8413 (sve_vl_from_vq): Likewise.
8414 (sve_vq_from_vg): Likewise.
8415 (sve_vg_from_vq): Likewise.
8416 * configure.nat: Add new c file.
8417 * nat/aarch64-sve-linux-ptrace.c: New file.
8418 * nat/aarch64-sve-linux-ptrace.h: New file.
8419
95228a0d
AH
84202018-05-31 Alan Hayward <alan.hayward@arm.com>
8421
8422 * aarch64-linux-nat.c (aarch64_linux_read_description):
8423 Add parmeter zero.
8424 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8425 Likewise.
8426 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8427 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8428 (aarch64_gdbarch_init): Add parmeter zero.
8429 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8430 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8431 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8432 parmeter.
8433 * doc/gdb.texinfo: Describe SVE feature
8434 * features/aarch64-sve.c: New file.
8435
5969f0db
OJ
84362018-05-31 Omair Javaid <omair.javaid@linaro.org>
8437
8438 PR gdb/23210
8439 * gdbarch.sh (significant_addr_bit): Default to zero when
8440 not set by target architecture.
8441 * gdbarch.c: Re-generated.
8442 * utils.c (address_significant): Update.
8443
61367c61
JB
84442018-05-30 Joel Brobecker <brobecker@adacore.com>
8445
8446 * stack.c (func_command): Remove trailing newline in call to error.
8447
34a79281
SM
84482018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8449
8450 * regcache.h (regcache_raw_collect): Remove, update callers to
8451 use regcache::raw_collect.
8452 * regcache.c (regcache_raw_collect): Remove.
8453
73e1c03f
SM
84542018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8455
8456 * regcache.h (regcache_raw_supply): Remove, update callers to
8457 use detached_regcache::raw_supply.
8458 * regcache.c (regcache_raw_supply): Remove.
8459
e4c4a59b
SM
84602018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8461
8462 * regcache.h (regcache_cooked_write_part): Remove, update
8463 callers to use regcache::cooked_write_part.
8464 * regcache.c (regcache_cooked_write_part): Remove.
8465
73bb0000
SM
84662018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8467
8468 * regcache.h (regcache_cooked_read_part): Remove, update callers
8469 to use readable_regcache::cooked_read_part.
8470 * regcache.c (regcache_cooked_read_part): Remove.
8471
46a45e9d
SM
84722018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8473
8474 * regcache.h (regcache_cooked_read_value): Remove, update
8475 callers to use readable_regcache::cooked_read_value.
8476 * regcache.c (regcache_cooked_read_value): Remove.
8477
b66f5587
SM
84782018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8479
8480 * regcache.h (regcache_cooked_write): Remove, update callers to
8481 use regcache::cooked_write.
8482 * regcache.c (regcache_cooked_write): Remove.
8483
6aa7d724
SM
84842018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8485
8486 * regcache.h (regcache_invalidate): Remove, update callers to
8487 use detached_regcache::invalidate instead.
8488 * regcache.c (regcache_invalidate): Remove.
8489
4f0420fd
SM
84902018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8491
8492 * regcache.h (regcache_raw_write_part): Remove, update callers
8493 to use regcache::raw_write_part instead.
8494 * regcache.c (regcache_raw_write_part): Remove.
8495
502fe83e
SM
84962018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8497
8498 * regcache.h (regcache_raw_read_part): Remove, update callers to
8499 use readable_regcache::raw_read_part instead.
8500 * regcache.c (regcache_raw_read_part): Remove.
8501
dca08e1f
SM
85022018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8503
8504 * regcache.h (regcache_cooked_read): Remove, update callers to
8505 use readable_regcache::cooked_read instead.
8506 * regcache.c (regcache_cooked_read): Remove.
8507
10eaee5f
SM
85082018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8509
8510 * regcache.h (regcache_raw_write): Remove, update callers to use
8511 regcache::raw_write instead.
8512 * regcache.c (regcache_raw_write): Remove.
8513
0b883586
SM
85142018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8515
8516 * regcache.h (regcache_raw_read): Remove, update callers to use
8517 readable_regcache::raw_read instead.
8518 * regcache.c (regcache_raw_read): Remove.
8519
0b47d985
SM
85202018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8521
8522 * regcache.h (regcache_raw_update): Remove, update callers to
8523 use readable_regcache::raw_update instead.
8524 * regcache.c (regcache_raw_update): Remove.
8525
0ec9f114
SM
85262018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8527
8528 * regcache.h (regcache_register_status): Remove, update callers
8529 to use reg_buffer::get_register_status directly instead.
8530 * regcache.c (regcache_register_status): Remove.
8531
222312d3
SM
85322018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8533
8534 * regcache.h (regcache_get_ptid): Remove, update all callers to
8535 call regcache::ptid instead.
8536 * regcache.c (regcache_get_ptid): Remove.
8537
fdbe37e3
SM
85382018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8539
8540 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8541
f7c6f423
PA
85422018-05-30 Pedro Alves <palves@redhat.com>
8543
8544 * common/common-exceptions.h (exception_rethrow): Use
8545 ATTRIBUTE_NORETURN.
8546
52941706
SM
85472018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
8548
8549 * breakpoint.c (print_solib_event, check_status_catch_solib):
8550 Remove struct keyword in range-based for loops.
8551 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8552 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8553 Likewise.
8554 * linespec.c (find_superclass_methods, search_minsyms_for_name):
8555 Likewise.
8556 * symfile.c (addr_info_make_relative): Likewise.
8557 * thread.c (value_in_thread_stack_temporaries): Likewise.
8558
bf2977b5
WP
85592018-06-12 Weimin Pan <weimin.pan@oracle.com>
8560
8561 PR gdb/16841
8562 * valops.c (value_struct_elt_for_reference): Call check_typedef on
8563 aggregate type to get its real type before accessing it.
8564
64cc34d8
WP
85652018-05-29 Weimin Pan <weimin.pan@oracle.com>
8566
8567 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8568 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8569 * coff-pe-read.c (add_pe_forwarded_sym): Replace
8570 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8571 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8572 * jit.c (jit_breakpoint_re_set_internal): Likewise.
8573 * printcmd.c (info_address_command): Likewise.
8574
e7ec8713
TT
85752018-05-29 Tom Tromey <tom@tromey.com>
8576
8577 * windows-nat.c (handle_exception): Update fall-through comment.
8578
bcb430e4
TT
85792018-05-29 Tom Tromey <tom@tromey.com>
8580
8581 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
8582 (struct program_space) <added_solibs>: Now a std::vector.
8583 * breakpoint.c (print_solib_event): Update.
8584 (check_status_catch_solib): Update.
8585 * progspace.c (clear_program_space_solib_cache): Update.
8586 * solib.c (update_solib_list): Update.
8587
894882e3
TT
85882018-05-29 Tom Tromey <tom@tromey.com>
8589
8590 * python/py-type.c (typy_richcompare): Update.
8591 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8592 * gdbtypes.h (types_deeply_equal): Return bool.
8593 (types_equal): Likewise.
8594 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
8595 declare VEC.
8596 (check_types_equal): Change worklist to std::vector. Return
8597 bool.
8598 (struct type_equality_entry): Add constructor.
8599 (compare_maybe_null_strings): Return bool.
8600 (check_types_worklist): Return bool. Change worklist to
8601 std::vector.
8602 (types_deeply_equal): Use std::vector.
8603 (types_equal): Return bool.
8604 (compare_maybe_null_strings): Simplify.
8605
10b2ded4
TT
86062018-05-29 Tom Tromey <tom@tromey.com>
8607
8608 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
8609
4f7deebe
TT
86102018-05-29 Tom Tromey <tom@tromey.com>
8611
8612 * objc-lang.h: Don't include cp-support.h.
8613 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
8614 declare VEC.
8615
b8283aea
TT
86162018-05-27 Tom Tromey <tom@tromey.com>
8617
8618 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8619
41a883c8
TT
86202018-05-25 Tom Tromey <tom@tromey.com>
8621
8622 * value.c (value::location): Initialize.
8623
bf259e25
TT
86242018-05-25 Tom Tromey <tom@tromey.com>
8625
8626 * dbxread.c (init_bincl_list): Remove.
8627 (bincl_list): Now a std::vector.
8628 (bincls_allocated, next_bincl): Remove.
8629 (free_bincl_list, do_free_bincl_list_cleanup)
8630 (make_cleanup_free_bincl_list): Remove.
8631 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8632 unique_xmalloc_ptr.
8633 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8634 (struct header_file_location): Add constructor.
8635 (add_bincl_to_list): Remove.
8636
d525a99b
TT
86372018-05-25 Tom Tromey <tom@tromey.com>
8638
8639 * tui/tui.c (tui_enable): Update.
8640 * mi/mi-interp.c (mi_interp::init): Update.
8641 * interps.h (class interp) <name>: New method.
8642 <m_name>: Rename from name.
8643 (~scoped_restore_interp): Update.
8644 * interps.c (interp::interp): Update.
8645 (interp_add, interp_set, interp_lookup_existing)
8646 (current_interp_named_p): Update.
8647
da505cff
TT
86482018-05-25 Tom Tromey <tom@tromey.com>
8649
8650 * interps.c (interp_name): Remove.
8651 * mi/mi-interp.c (mi_interp::init): Update.
8652 * interps.h (interp_name): Remove.
8653 (~scoped_restore_interp): Update.
8654 * tui/tui.c (tui_enable): Update.
8655
29f94340
TT
86562018-05-25 Tom Tromey <tom@tromey.com>
8657
8658 * utils.c (fputs_maybe_filtered): Update.
8659 * linespec.c (decode_line_full): Update.
8660 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8661 (mi_print_breakpoint_for_event, mi_solib_loaded)
8662 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8663 (mi_user_selected_context_changed): Update.
8664 * mi/mi-main.c (mi_execute_command): Update.
8665 * cli/cli-script.c (execute_control_command): Update.
8666 * python/python.c (execute_gdb_command): Update.
8667 * solib.c (info_sharedlibrary_command): Update.
8668 * interps.c (interp_ui_out): Remove.
8669 * interps.h (interp_ui_out): Remove.
8670
716b8bc5
TT
86712018-05-25 Tom Tromey <tom@tromey.com>
8672
8673 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8674 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8675 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8676
753ff9bd
TT
86772018-05-25 Tom Tromey <tom@tromey.com>
8678
8679 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8680 * interps.c (interp_exec): Use scoped_restore.
8681
5ca3b260
TT
86822018-05-25 Tom Tromey <tom@tromey.com>
8683
8684 * remote.c (remote_target::remote_file_get): Use
8685 gdb::byte_vector.
8686 (remote_target::remote_file_put): Likewise.
8687
3173aa2f
TT
86882018-05-25 Tom Tromey <tom@tromey.com>
8689
8690 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8691 a std::string.
8692 (get_pe_section_index, add_pe_exported_sym): Update.
8693 (read_pe_exported_syms): Use gdb::def_vector.
8694
09a5e1b5
TT
86952018-05-25 Tom Tromey <tom@tromey.com>
8696
8697 * frame.c (remove_prev_frame): Remove.
8698 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8699
d8dab6c3
MR
87002018-05-25 Maciej W. Rozycki <macro@mips.com>
8701
8702 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8703 Remove prototypes.
8704 * mips-linux-nat.c (supply_fpregset): Always call
8705 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8706 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8707 `mips_fill_fpregset'.
8708 * mips-linux-tdep.c (mips_supply_fpregset)
8709 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8710 (mips_fill_fpregset_wrapper): Remove functions.
8711 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8712 (mips_linux_fpregset): Remove variable.
8713 (mips_linux_iterate_over_regset_sections): Use
8714 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8715 (mips_linux_o32_sigframe_init): Remove comment.
8716
3c69da40
PA
87172018-05-25 Pedro Alves <palves@redhat.com>
8718
8719 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8720 (struct readahead_cache, struct packet_reg, struct
8721 remote_arch_state, class remote_state): Move higher up in the
8722 file.
8723 (remote_target::m_remote_state): Now an object instead of a pointer.
8724 (remote_target::get_remote_state): Adjust.
8725
39f0c204
AB
87262018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8727
8728 * stack.c (select_and_print_frame): Delete.
8729 (struct function_bounds): Move struct within function.
8730 (func_command): Most content moved into new function
8731 find_frame_for_function, use new function, print result, add
8732 function comment.
8733 (find_frame_for_function): New function, now returns a result.
8734
d392224a
PW
87352018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8736
8737 * stack.c (iterate_over_block_arg_vars): Fix comment.
8738 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8739
45f25d6c
AB
87402018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8741
8742 PR gdb/23203
8743 * frame.c
8744 (scoped_restore_selected_frame::scoped_restore_selected_frame):
8745 Define.
8746 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8747 Define.
8748 * frame.h (class scoped_restore_selected_frame): New class.
8749 * stack.c (print_frame_local_vars): Remove catching and rethrowing
8750 of any exception, use scoped_restore_selected_frame to restore the
8751 frame instead.
8752
da05d921
PA
87532018-05-24 Pedro Alves <palves@redhat.com>
8754
8755 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8756 override.
8757
a8be540e
TT
87582018-05-23 Tom Tromey <tom@tromey.com>
8759
8760 * complaints.c (struct complaints): Remove.
8761 (symfile_complaint_book): Remove.
8762 (series): New global.
8763 (complaint_internal): Update.
8764 (clear_complaints): Update.
8765
ff1cf532
TT
87662018-05-23 Tom Tromey <tom@tromey.com>
8767
8768 * complaints.c (counters): New global.
8769 (struct complain): Remove.
8770 (struct complaints) <root>: Remove.
8771 (complaint_sentinel): Remove.
8772 (symfile_complaint_book): Update.
8773 (find_complaint) Remove.
8774 (complaint_internal, clear_complaints): Update.
8775
7ff88174
TT
87762018-05-23 Tom Tromey <tom@tromey.com>
8777
8778 * complaints.c (struct complain) <file, line>: Remove.
8779 (find_complaint): Remove file, line parameters.
8780 (complaint_internal): Update.
8781
de54e1a5
TT
87822018-05-23 Tom Tromey <tom@tromey.com>
8783
8784 * complaints.c (vcomplaint): Remove.
8785 (complaint_internal) Merge in contents of vcomplaint.
8786
2ac237e5
TT
87872018-05-23 Tom Tromey <tom@tromey.com>
8788
8789 * complaints.c (struct complaints) <explanation>: Remove.
8790 (symfile_explanations): Remove.
8791 (symfile_complaint_book): Update.
8792 (vcomplaint): Update.
8793 (struct explanation): Remove.
8794
b98664d3
TT
87952018-05-23 Tom Tromey <tom@tromey.com>
8796
8797 * complaints.c (symfile_complaints): Remove.
8798 (complaint_internal): Remove "complaints" parameter.
8799 (clear_complaints, vcomplaint): Remove "c" parameter.
8800 (get_complaints): Remove.
8801 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8802 (dwarf2_debug_line_missing_file_complaint)
8803 (dwarf2_debug_line_missing_end_sequence_complaint)
8804 (dwarf2_complex_location_expr_complaint)
8805 (dwarf2_const_value_length_mismatch_complaint)
8806 (dwarf2_section_buffer_overflow_complaint)
8807 (dwarf2_macro_malformed_definition_complaint)
8808 (dwarf2_invalid_attrib_class_complaint)
8809 (create_addrmap_from_index, dw2_symtab_iter_next)
8810 (dw2_expand_marked_cus)
8811 (dw2_debug_names_iterator::find_vec_in_debug_names)
8812 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8813 (create_debug_type_hash_table, init_cutu_and_read_dies)
8814 (partial_die_parent_scope, add_partial_enumeration)
8815 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8816 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8817 (read_import_statement, read_file_scope, create_dwo_cu_reader)
8818 (create_cus_hash_table, create_dwp_hash_table)
8819 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8820 (dwarf2_rnglists_process, dwarf2_ranges_process)
8821 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8822 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8823 (handle_struct_member_die, process_structure_scope)
8824 (read_array_type, read_common_block, read_module_type)
8825 (read_tag_pointer_type, read_typedef, read_base_type)
8826 (read_subrange_type, load_partial_dies, partial_die_info::read)
8827 (partial_die_info::read, partial_die_info::read)
8828 (partial_die_info::read, read_checked_initial_length_and_offset)
8829 (dwarf2_string_attr, read_formatted_entries)
8830 (dwarf_decode_line_header)
8831 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8832 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8833 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8834 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8835 (get_signatured_type, get_DW_AT_signature_type)
8836 (decode_locdesc, file_file_name, consume_improper_spaces)
8837 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8838 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8839 (dwarf2_symbol_mark_computed, set_die_type)
8840 (read_attribute_value): Update.
8841 * stap-probe.c (handle_stap_probe, get_stap_base_address):
8842 Update.
8843 * dbxread.c (unknown_symtype_complaint)
8844 (lbrac_mismatch_complaint, repeated_header_complaint)
8845 (set_namestring, function_outside_compilation_unit_complaint)
8846 (read_dbx_symtab, process_one_symbol): Update.
8847 * gdbtypes.c (stub_noname_complaint): Update.
8848 * windows-nat.c (handle_unload_dll): Update.
8849 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8850 (decode_base_type): Update.
8851 * xcoffread.c (bf_notfound_complaint, ef_complaint)
8852 (eb_complaint, record_include_begin, record_include_end)
8853 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8854 (process_xcoff_symbol, read_symbol)
8855 (function_outside_compilation_unit_complaint)
8856 (scan_xcoff_symtab): Update.
8857 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8858 * buildsym.c (finish_block_internal, make_blockvector)
8859 (end_symtab_get_static_block, augment_type_symtab): Update.
8860 * dtrace-probe.c (dtrace_process_dof)
8861 (dtrace_static_probe_ops::get_probes): Update.
8862 * complaints.h (struct complaint): Don't declare.
8863 (symfile_complaints): Remove.
8864 (complaint_internal): Remove "complaints" parameter.
8865 (complaint): Likewise.
8866 (clear_complaints): Likewise.
8867 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8868 (reread_symbols): Update.
8869 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8870 (dwarf2_frame_cache, decode_frame_entry): Update.
8871 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8872 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8873 (info_selectors_command): Update.
8874 * macrotab.c (macro_include, check_for_redefinition)
8875 (macro_undef): Update.
8876 * objfiles.c (filter_overlapping_sections): Update.
8877 * stabsread.c (invalid_cpp_abbrev_complaint)
8878 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8879 (define_symbol, error_type, read_type, rs6000_builtin_type)
8880 (stabs_method_name_from_physname, read_member_functions)
8881 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8882 (attach_fields_to_type, complain_about_struct_wipeout)
8883 (read_range_type, read_args, common_block_start)
8884 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8885 Update.
8886 * mdebugread.c (index_complaint, unknown_ext_complaint)
8887 (basic_type_complaint, bad_tag_guess_complaint)
8888 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8889 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8890 (parse_procedure, parse_lines)
8891 (function_outside_compilation_unit_complaint)
8892 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8893 (bad_tag_guess_complaint, reg_value_complaint): Update.
8894 * cp-support.c (demangled_name_complaint): Update.
8895 * macroscope.c (sal_macro_scope): Update.
8896 * dwarf-index-write.c (class debug_names): Update.
8897
4e9668d0
TT
88982018-05-23 Tom Tromey <tom@tromey.com>
8899
8900 * complaints.c (clear_complaints): Remove "noisy" parameter.
8901 * complaints.h (clear_complaints): Update.
8902 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8903 (reread_symbols): Update.
8904
43ba33c7
TT
89052018-05-23 Tom Tromey <tom@tromey.com>
8906
8907 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8908 SUBSEQUENT_MESSAGE.
8909 (vcomplaint, clear_complaints): Update.
8910 (symfile_explanations): Remove some messages.
8911
2b9496b2
TT
89122018-05-23 Tom Tromey <tom@tromey.com>
8913
8914 * complaints.c (internal_complaint): Remove.
8915 * complaints.h (internal_complaint): Remove.
8916
35f1fea3
MR
89172018-05-22 Maciej W. Rozycki <macro@mips.com>
8918
8919 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8920
6b8edb51
PA
89212018-05-22 Pedro Alves <palves@redhat.com>
8922
8923 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8924 (remote_fileio_badfd, remote_fileio_return_errno)
8925 (remote_fileio_return_success, remote_fileio_func_open)
8926 (remote_fileio_func_open, remote_fileio_func_close)
8927 (remote_fileio_func_read, remote_fileio_func_write)
8928 (remote_fileio_func_lseek, remote_fileio_func_rename)
8929 (remote_fileio_func_unlink, remote_fileio_func_stat)
8930 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8931 (remote_fileio_func_isatty, remote_fileio_func_system): Add
8932 remote_target parameter.
8933 (remote_fio_func_map) <func>: Add remote_target parameter.
8934 (do_remote_fileio_request, remote_fileio_request):
8935 * remote-fileio.h (remote_fileio_request):
8936 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8937 remote_target parameter.
8938 (remote_notif_process, handle_notification): Adjust to pass down
8939 the remote.
8940 (remote_notif_state_allocate): Add remote_target parameter. Save
8941 it.
8942 * remote-notif.h (struct remote_target): Forward declare.
8943 (struct notif_client) <parse, ack, can_get_pending_events>: Add
8944 remote_target parameter.
8945 (struct remote_notif_state) <remote>: New field.
8946 (remote_notif_ack, remote_notif_parse): Add remote_target
8947 parameter.
8948 (remote_notif_state_allocate, remote_notif_state_allocate): Add
8949 remote_target parameter.
8950 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8951 (threads_listing_context, rmt_thread_action, protocol_feature)
8952 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8953 (packet_result, struct threads_listing_context, remote_state):
8954 Move definitions and declarations higher up.
8955 (remote_target) <~remote_target>: Declare.
8956 (remote_download_command_source, remote_file_put, remote_file_get)
8957 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8958 (remote_hostio_pread_vFile, remote_hostio_send_command)
8959 (remote_hostio_set_filesystem, remote_hostio_open)
8960 (remote_hostio_close, remote_hostio_unlink, remote_state)
8961 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8962 (get_memory_write_packet_size, get_memory_read_packet_size)
8963 (append_pending_thread_resumptions, remote_detach_1)
8964 (append_resumption, remote_resume_with_vcont)
8965 (add_current_inferior_and_thread, wait_ns, wait_as)
8966 (process_stop_reply, remote_notice_new_inferior)
8967 (process_initial_stop_replies, remote_add_thread)
8968 (btrace_sync_conf, remote_btrace_maybe_reopen)
8969 (remove_new_fork_children, kill_new_fork_children)
8970 (discard_pending_stop_replies, stop_reply_queue_length)
8971 (check_pending_events_prevent_wildcard_vcont)
8972 (discard_pending_stop_replies_in_queue, stop_reply)
8973 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8974 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8975 (remote_interrupt_as, remote_interrupt_ns)
8976 (remote_get_noisy_reply, remote_query_attached)
8977 (remote_add_inferior, remote_current_thread, get_current_thread)
8978 (set_thread, set_general_thread, set_continue_thread)
8979 (set_general_process, write_ptid)
8980 (remote_unpack_thread_info_response, remote_get_threadinfo)
8981 (parse_threadlist_response, remote_get_threadlist)
8982 (remote_threadlist_iterator, remote_get_threads_with_ql)
8983 (remote_get_threads_with_qxfer)
8984 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8985 (get_offsets, remote_check_symbols, remote_supported_packet)
8986 (remote_query_supported, remote_packet_size)
8987 (remote_serial_quit_handler, remote_detach_pid)
8988 (remote_vcont_probe, remote_resume_with_hc)
8989 (send_interrupt_sequence, interrupt_query)
8990 (remote_notif_get_pending_events, fetch_register_using_p)
8991 (send_g_packet, process_g_packet, fetch_registers_using_g)
8992 (store_register_using_P, store_registers_using_G)
8993 (set_remote_traceframe, check_binary_download)
8994 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8995 (remote_xfer_live_readonly_partial, remote_read_bytes)
8996 (remote_send_printf, remote_flash_write, readchar)
8997 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8998 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8999 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
9000 (extended_remote_disable_randomization, extended_remote_run)
9001 (send_environment_packet, extended_remote_environment_support)
9002 (extended_remote_set_inferior_cwd, remote_write_qxfer)
9003 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
9004 (packet_command): Now methods of ...
9005 (remote_target): ... this class.
9006 (m_remote_state) <remote_target>: New field.
9007 (struct remote_state) <stop_reply_queue,
9008 remote_async_inferior_event_token, wait_forever_enabled_p>: New
9009 fields.
9010 (remote_state::remote_state): Allocate stop_reply_queue.
9011 (remote_state): Delete global.
9012 (get_remote_state_raw): Delete.
9013 (remote_target::get_remote_state): Allocate m_remote_state on
9014 demand.
9015 (get_current_remote_target): New.
9016 (remote_ops, extended_remote_ops): Delete.
9017 (wait_forever_enabled_p, remote_async_inferior_event_token):
9018 Delete, moved to struct remote_state.
9019 (remote_target::close): Delete self. Destruction bits split to
9020 ...
9021 (remote_target::~remote_target): ... this.
9022 (show_memory_packet_size): Adjust to use
9023 get_current_remote_target.
9024 (struct protocol_feature) <func>: Add remote_target parameter.
9025 All callers adjusted.
9026 (curr_quit_handler_target): New.
9027 (remote_serial_quit_handler): Reimplement.
9028 (remote_target::open_1): Adjust to use get_current_remote_target.
9029 Heap-allocate remote_target/extended_remote_target instances.
9030 (vcont_builder::vcont_builder): Add remote_target parameter, and
9031 save it in m_remote. All callers adjusted.
9032 (vcont_builder::m_remote): New field.
9033 (vcont_builder::restart, vcont_builder::flush)
9034 (vcont_builder::push_action): Use it.
9035 (remote_target::commit_resume): Use it.
9036 (struct queue_iter_param) <remote>: New field.
9037 (remote_target::remove_new_fork_children): Fill in 'remote' field.
9038 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
9039 (check_pending_event_prevents_wildcard_vcont_callback)
9040 (remote_target::check_pending_events_prevent_wildcard_vcont)
9041 (remote_target::discard_pending_stop_replies)
9042 (remote_target::discard_pending_stop_replies_in_queue)
9043 (remote_target::remote_notif_remove_queued_reply): Fill in
9044 'remote' field.
9045 (remote_notif_get_pending_events): New.
9046 (remote_target::readchar, remote_target::remote_serial_write):
9047 Save/restore curr_quit_handler_target.
9048 (putpkt): New.
9049 (kill_new_fork_children): Fill in 'remote' field.
9050 (packet_command): Use get_current_remote_target, defer to
9051 remote_target method of same name.
9052 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
9053 parameter, and save it in m_remote. All callers adjusted.
9054 (scoped_remote_fd::release): Use m_remote.
9055 (scoped_remote_fd::m_remote): New field.
9056 (remote_file_put, remote_file_get, remote_file_delete): Use
9057 get_current_remote_target, defer to remote_target method of same
9058 name.
9059 (remote_btrace_reset): Add remote_state paremeter. Update all
9060 callers.
9061 (remote_async_inferior_event_handler). Pass down 'data'.
9062 (remote_new_objfile): Use get_current_remote_target.
9063 (remote_target::vcont_r_supported): New.
9064 (set_range_stepping): Use get_current_remote_target and
9065 remote_target::vcont_r_supported.
9066 (_initialize_remote): Don't allocate 'remote_state' and
9067 'stop_reply_queue' globals.
9068 * remote.h (struct remote_target): Forward declare.
9069 (getpkt, putpkt, remote_notif_get_pending_events): Add
9070 'remote_target' parameter.
9071
f5db4863
PA
90722018-05-22 Pedro Alves <palves@redhat.com>
9073
9074 * remote.c (vcont_builder): Now a class. Make all data members
9075 private.
9076 (vcont_builder) <vcont_builder, restart, flush, push_action>:
9077 Declare methods.
9078 (vcont_builder_restart): Rename to ...
9079 (vcont_builder::restart): ... this.
9080 (vcont_builder_flush): Rename to ...
9081 (vcont_builder::flush): ... this.
9082 (vcont_builder_push_action): Rename to ...
9083 (vcont_builder::push_action): ... this.
9084 (remote_target::commit_resume): Adjust.
9085
cc0be08f
PA
90862018-05-22 Pedro Alves <palves@redhat.com>
9087
9088 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
9089 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
9090 (get_fixed_memory_packet_size): New.
9091 (get_memory_packet_size): Use it.
9092 (set_memory_packet_size): Don't override the config size with
9093 DEFAULT_MAX_MEMORY_PACKET_SIZE.
9094 (show_memory_packet_size): Use get_fixed_memory_packet_size.
9095 Don't refer to get_memory_packet_size if not connected to a remote
9096 target. Show "(default)" if configured size is 0.
9097
9607784a
PA
90982018-05-22 Pedro Alves <palves@redhat.com>
9099
9100 * remote.c (remote_target::mourn_inferior): Move
9101 discard_pending_stop_replies call here from ...
9102 (_initialize_remote): ... here.
9103
0e9a6b2f
PA
91042018-05-22 Pedro Alves <palves@redhat.com>
9105
9106 * remote.c (compare_section_command): Remove set_general_process
9107 call.
9108
43c3a0e4
PA
91092018-05-22 Pedro Alves <palves@redhat.com>
9110
9111 * remote.c (struct packet_reg, struct remote_arch_state):
9112 Move higher up in the file.
9113 (remote_state) <m_arch_states>: Store remote_arch_state values
9114 instead of remote_arch_state pointers.
9115 (remote_state::get_remote_arch_state): Adjust.
9116
9d6eea31
PA
91172018-05-22 Pedro Alves <palves@redhat.com>
9118
9119 * remote.c: Include <unordered_map>.
9120 (remote_state): Now a class.
9121 (remote_state) <get_remote_arch_state>: Declare method.
9122 <get_remote_arch_state>: New field.
9123 (remote_arch_state) <remote_arch_state>: Declare ctor.
9124 <regs>: Now a unique_ptr.
9125 (remote_gdbarch_data_handle): Delete.
9126 (get_remote_arch_state): Delete.
9127 (remote_state::get_remote_arch_state): New.
9128 (get_remote_state): Adjust to call remote_state's
9129 get_remote_arch_state method.
9130 (init_remote_state): Delete, bits factored out to ...
9131 (remote_arch_state::remote_arch_state): ... this new method.
9132 (get_remote_packet_size, get_memory_packet_size)
9133 (process_g_packet, remote_target::fetch_registers)
9134 (remote_target::prepare_to_store, store_registers_using_G)
9135 (remote_target::store_registers, remote_target::get_trace_status):
9136 Adjust to call remote_state's method.
9137 (_initialize_remote): Remove reference to
9138 remote_gdbarch_data_handle.
9139
dd194f6b
PA
91402018-05-22 Pedro Alves <palves@redhat.com>
9141
9142 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
9143 pread>: New method declarations.
9144 (remote_target::open_1): Adjust.
9145 (readahead_cache_invalidate): Rename to ...
9146 (readahead_cache::invalidate): ... this, and adjust to be a class
9147 method.
9148 (readahead_cache_invalidate_fd): Rename to ...
9149 (readahead_cache::invalidate_fd): ... this, and adjust to be a
9150 class method.
9151 (remote_hostio_pwrite): Adjust.
9152 (remote_hostio_pread_from_cache): Rename to ...
9153 (readahead_cache::pread): ... this, and adjust to be a class
9154 method.
9155 (remote_hostio_close): Adjust.
9156
440b7aec
PA
91572018-05-22 Pedro Alves <palves@redhat.com>
9158
9159 * remote.c (remote_hostio_close_cleanup): Delete.
9160 (class scoped_remote_fd): New.
9161 (remote_file_put, remote_file_get): Use it.
9162
de44f5a7
PA
91632018-05-22 Pedro Alves <palves@redhat.com>
9164
9165 (struct vCont_action_support): Use bool and initialize all fields.
9166 (struct readahead_cache): Initialize all fields.
9167 (remote_state): Use bool and initialize all fields.
9168 (remote_state::remote_state, remote_state::~remote_state): New.
9169 (new_remote_state): Delete.
9170 (_initialize_remote): Use new to allocate remote_state.
9171
b1b60145
PA
91722018-05-22 Pedro Alves <palves@redhat.com>
9173 張俊芝 <zjz@zjz.name>
9174
9175 PR gdb/22973
9176 * c-exp.y: Include "c-support.h".
9177 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
9178 of tolower. Use c_ident_is_alpha to scan names.
9179 * c-lang.c: Include "c-support.h".
9180 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
9181 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
9182 * c-support.h: New file, with bits factored out from ...
9183 * cp-name-parser.y: ... this file.
9184 Include "c-support.h".
9185 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
9186 c-support.h and renamed.
9187 (symbol_end, yylex): Adjust.
9188
0ec848ad
PFC
91892018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9190
9191 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
9192 parameter type to CORE_ADDR.
9193 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
9194 parameter type in declaration to CORE_ADDR.
9195 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
9196 target_auxv_search to get AT_HWCAP and use the result to get the
9197 target description.
9198 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
9199 to CORE_ADDR. Remove the cast of the return value to unsigned
9200 long. Fix error predicate of target_auxv_search.
9201 (ppc_linux_nat_target::read_description): Change the type of the
9202 hwcap variable to CORE_ADDR.
9203
0fb2aaa1
PFC
92042018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9205
9206 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
9207 if the size of fpscr is larger than 32 bits.
9208
2c3305f6
PFC
92092018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9210
9211 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
9212 (ppc32_linux_vsxregmap): New global.
9213 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
9214 regcache_supply_regset, and regcache_collect_regset.
9215 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
9216 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
9217 (fetch_vsx_register, store_vsx_register): Remove.
9218 (fetch_vsx_registers): Add regno parameter. Get regset using
9219 ppc_linux_vsxregset. Use regset to supply registers.
9220 (store_vsx_registers): Add regno parameter. Get regset using
9221 ppc_linux_vsxregset. Use regset to collect registers.
9222 (fetch_register): Call fetch_vsx_registers instead of
9223 fetch_vsx_register.
9224 (store_register): Call store_vsx_registers instead of
9225 store_vsx_register.
9226 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9227 new regno parameter.
9228 (store_ppc_registers): Call store_vsx_registers with -1 for the
9229 new regno parameter.
9230 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9231 (ppc_collect_vsxregset): Remove.
9232
1d75a658
PFC
92332018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9234
9235 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9236 offset fields.
9237 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9238 for vector register offset fields.
9239 (ppc64_fbsd_reg_offsets): Likewise.
9240 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9241 to vector register offset fields.
9242 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9243 to vector register offset fields.
9244 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9245 vector register offset fields.
9246 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9247 initializers for vector register offset fields.
9248 (rs6000_aix64_reg_offsets): Likewise.
9249 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9250 (ppc_supply_vrregset): Remove.
9251 (ppc_collect_vrregset): Remove.
9252 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9253 (ppc_linux_vrregset) : New function.
9254 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9255 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9256 (ppc32_linux_vrregset): Remove.
9257 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9258 and use result instead of ppc32_linux_vrregset.
9259 (ppc32_linux_reg_offsets): Remove initializers for vector register
9260 offset fields.
9261 (ppc64_linux_reg_offsets): Likewise.
9262 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9263 * ppc-linux-nat.c: Include regset.h.
9264 (gdb_vrregset_t): Adjust comment to account for little-endian
9265 mode.
9266 (supply_vrregset, fill_vrregset): Remove.
9267 (fetch_altivec_register, store_altivec_register): Remove.
9268 (fetch_altivec_registers): Add regno parameter. Get regset using
9269 ppc_linux_vrregset. Use regset to supply registers.
9270 (store_altivec_registers): Add regno parameter. Get regset using
9271 ppc_linux_vrregset. Use regset to collect registers.
9272 (fetch_register): Call fetch_altivec_registers instead of
9273 fetch_altivec_register.
9274 (store_register): Call store_altivec_registers instead of
9275 store_altivec_register.
9276 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9277 the new regno parameter.
9278 (store_ppc_registers): Call store_altivec_registers with -1 for
9279 the new regno parameter.
9280
d078308a
PFC
92812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9282
9283 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9284 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9285 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9286 (gdb_vrregset_t): Change array type size to
9287 PPC_LINUX_SIZEOF_VRREGSET.
9288 (gdb_vsxregset_t): Change array type size to
9289 PPC_LINUX_SIZEOF_VSXREGSET.
9290 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9291 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9292 PPC_LINUX_SIZEOF_VSXREGSET.
9293
2e077f5e
PFC
92942018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9295
9296 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9297 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9298 nat/ppc-linux.c.
9299 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9300 ppc_linux_target_wordsize with tid.
9301 (ppc_linux_nat_target::read_description): Call ppc_linux_target
9302 wordsize with tid.
9303 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9304 (ppc64_64bit_inferior_p): Add static and inline specifiers.
9305 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9306 tid parameter. Remove static specifier.
9307 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9308 (ppc_linux_target_wordsize): New declaration.
9309
bd64614e
PFC
93102018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9311
9312 * arch/ppc-linux-common.c: New file.
9313 * arch/ppc-linux-common.h: New file.
9314 * arch/ppc-linux-tdesc.h: New file.
9315 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9316 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9317 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9318 arch/ppc-linux-tdesc.h.
9319 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9320 arch/ppc-linux-tdesc.h.
9321 (ppc_linux_nat_target::read_description): Remove target
9322 description matching code. Fill a ppc_linux_features struct and
9323 call ppc_linux_match_description with it. Move comment about ISA
9324 2.05 to ppc-linux-common.c.
9325 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9326 arch/ppc-linux-tdesc.h.
9327 (ppc_linux_core_read_description): Remove target description
9328 matching code. Fill a ppc_linux_features struct and call
9329 ppc_linux_match_description with it.
9330 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9331 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9332 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9333 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9334 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9335 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9336 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9337 (tdesc_powerpc_e500l): Remove.
9338
241db429
JB
93392018-05-22 Joel Brobecker <brobecker@adacore.com>
9340
9341 * ada-lang.c (catch_assert_command): Pass empty string instead
9342 of NULL for excep_string argument.
9343
75d74cca
MR
93442018-05-22 Maciej W. Rozycki <macro@mips.com>
9345
9346 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9347 the width of the requested register exceeds the width of the
9348 `ptrace' data type.
9349
122b53ea
TT
93502018-05-21 Tom Tromey <tom@tromey.com>
9351
9352 * printcmd.c (output_command): Remove.
9353 (output_command_const): Rename to output_command.
9354 * valprint.h (output_command): Rename from output_command_const.
9355 * tracepoint.c (trace_dump_actions): Call output_command.
9356
bc18fbb5
TT
93572018-05-21 Tom Tromey <tom@tromey.com>
9358
9359 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9360 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9361 * ada-lang.h (create_ada_exception_catchpoint): Update.
9362 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9363 std::string.
9364 (create_excep_cond_exprs, ~ada_catchpoint)
9365 (should_stop_exception, print_one_exception)
9366 (print_mention_exception, print_recreate_exception): Update.
9367 (ada_get_next_arg): Remove.
9368 (catch_ada_exception_command_split): Use std::string. Change type
9369 of "excep_string", "cond_string".
9370 (catch_ada_exception_command): Update.
9371 (create_ada_exception_catchpoint): Change type of excep_string.
9372 (ada_exception_sal): Remove excep_string parameter.
9373 (~ada_catchpoint): Remove.
9374
790217f6
TT
93752018-05-21 Tom Tromey <tom@tromey.com>
9376
9377 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9378 cleanup.
9379
6f46ac85
TT
93802018-05-21 Tom Tromey <tom@tromey.com>
9381
9382 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9383 Return unique_xmalloc_ptr.
9384 (print_it_exception): Update.
9385
15b6611c
TT
93862018-05-21 Tom Tromey <tom@tromey.com>
9387
9388 * tracepoint.c (trace_dump_actions): Use std::string.
9389
c0c9f665
TT
93902018-05-21 Tom Tromey <tom@tromey.com>
9391
9392 * symfile.c (reread_symbols): Use std::string for original_name.
9393
22ca247e
TT
93942018-05-21 Tom Tromey <tom@tromey.com>
9395
9396 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9397 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9398 constructor.
9399
184cde75
SM
94002018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9401
9402 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9403 instance to...
9404 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9405 * objfiles.c (get_objfile_bfd_data): Allocate
9406 objfile_per_bfd_storage with obstack_new when allocating on
9407 obstack.
9408
e39db4db
SM
94092018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9410
9411 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9412 OBSTACK_ZALLOC.
9413 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9414 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9415 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9416 (add_pending): Likewise.
9417 (parse_symbol): Likewise.
9418 (parse_partial_symbols): Likewise.
9419 (psymtab_to_symtab_1): Likewise.
9420 (new_psymtab): Likewise.
9421 (elfmdebug_build_psymtabs): Likewise.
9422 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9423 * objfiles.c (get_objfile_bfd_data): Likewise.
9424 (objfile_register_static_link): Likewise.
9425 * psymtab.c (allocate_psymtab): Likewise.
9426 * stabsread.c (read_member_functions): Likewise.
9427 * xcoffread.c (xcoff_end_psymtab): Likewise.
9428
284a0e3c
SM
94292018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9430
9431 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9432 compiler supports std::is_trivially_constructible.
9433 * common/poison.h: Include obstack.h.
9434 (IsMallocable): Define to is_trivially_constructible if the
9435 compiler supports it, define to true_type otherwise.
9436 (xobnew): New.
9437 (XOBNEW): Redefine.
9438 (xobnewvec): New.
9439 (XOBNEWVEC): Redefine.
9440 * gdb_obstack.h (obstack_zalloc): New.
9441 (OBSTACK_ZALLOC): Redefine.
9442 (obstack_calloc): New.
9443 (OBSTACK_CALLOC): Redefine.
9444 (obstack_new): New.
9445 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9446 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9447 gdbarch.c.
9448 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9449 obstack_calloc/obstack_zalloc.
9450 (gdbarch_obstack_zalloc): Remove.
9451 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9452
59f66be3
PW
94532018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9454
9455 * stack.c (backtrace_command_1): Remove useless variable int i.
9456
50c65c2d
PW
94572018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9458
9459 * stack.c (print_frame_info): Fix comment.
9460
7ff8cb8c
TT
94612018-05-18 Tom Tromey <tom@tromey.com>
9462
9463 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9464 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9465 (~dwarf2_per_objfile): Update
9466 (dwarf2_get_dwz_file): Use new.
9467 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9468 unique_ptr.
9469
400174b1
TT
94702018-05-18 Tom Tromey <tom@tromey.com>
9471
9472 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9473 unique_ptr.
9474 * dwarf2read.c (struct dwp_file): Add constructor and
9475 initializers.
9476 (open_and_init_dwp_file): Return a unique_ptr.
9477 (dwarf2_per_objfile, create_dwp_hash_table)
9478 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9479 (lookup_dwo_unit_in_dwp): Update.
9480 (open_and_init_dwp_file, get_dwp_file): Update.
9481
3063847f
TT
94822018-05-18 Tom Tromey <tom@tromey.com>
9483
9484 * dwarf2read.c (dwarf2_per_objfile): Update.
9485 (struct mapped_index): Add initializers.
9486 (dwarf2_read_index): Use new.
9487 (dw2_symtab_iter_init): Update.
9488 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9489 unique_ptr.
9490
d3d02dee
SM
94912018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9492
9493 * dwarf2read.c (mapped_index) <total_size>: Remove.
9494
1d143c36
SM
94952018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9496
9497 * unittests/format_pieces-selftests.c (test_format_specifier):
9498 Add ARI comments.
9499
ce1e8424
TT
95002018-05-18 Tom Tromey <tom@tromey.com>
9501
9502 * c-typeprint.c (maybe_print_hole): New function.
9503 (c_print_type_struct_field_offset): Update.
9504 (c_type_print_base_struct_union): Call maybe_print_hole.
9505
ddfe970e
KS
95062018-05-17 Keith Seitz <keiths@redhat.com>
9507
9508 * breakpoint.c (build_bpstat_chain): New function, moved from
9509 bpstat_stop_status.
9510 (bpstat_stop_status): Add optional parameter, `stop_chain'.
9511 If no stop chain is passed, call build_bpstat_chain to build it.
9512 * breakpoint.h (build_bpstat_chain): Declare.
9513 (bpstat_stop_status): Move documentation here from breakpoint.c.
9514 * infrun.c (handle_signal_stop): Before eliding inlined frames,
9515 build the stop chain and pass it to skip_inline_frames.
9516 Pass this stop chain to bpstat_stop_status.
9517 * inline-frame.c: Include breakpoint.h.
9518 (stopped_by_user_bp_inline_frame): New function.
9519 (skip_inline_frames): Add parameter `stop_chain'.
9520 Move documention to inline-frame.h.
9521 If non-NULL, use stopped_by_user_bp_inline_frame to determine
9522 whether the frame should be elided.
9523 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9524 Add moved documentation and update for new parameter.
9525
b17992c1
SM
95262018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9527
9528 PR cli/14975
9529 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9530 unittests/format_pieces-selftests.c.
9531 * common/format.h (format_piece) <operator==>: New.
9532 (format_pieces) <operator[]>: Remove.
9533 * common/format.c (format_pieces::format_pieces): Handle \e.
9534 * unittests/format_pieces-selftests.c: New.
9535
58f0c718
TT
95362018-05-17 Tom Tromey <tom@tromey.com>
9537
9538 PR symtab/23010:
9539 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9540 (dw2_instantiate_symtab): Add skip_partial parameter.
9541 (dw2_find_last_source_symtab, dw2_map_expand_apply)
9542 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9543 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9544 (dw2_expand_symtabs_matching_one)
9545 (dw2_find_pc_sect_compunit_symtab)
9546 (dw2_debug_names_lookup_symbol)
9547 (dw2_debug_names_expand_symtabs_for_function): Update.
9548 (init_cutu_and_read_dies): Add skip_partial parameter.
9549 (process_psymtab_comp_unit, build_type_psymtabs_1)
9550 (process_skeletonless_type_unit, load_partial_comp_unit)
9551 (psymtab_to_symtab_1): Update.
9552 (load_full_comp_unit): Add skip_partial parameter.
9553 (process_imported_unit_die, dwarf2_read_addr_index)
9554 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9555 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9556 (read_signatured_type): Update.
9557
3e618834
SM
95582018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9559
9560 * value.c (release_value): Remove unused variable.
9561 (record_latest_value): Likewise.
9562 (access_value_history): Likewise.
9563 (preserve_values): Likewise.
9564
fe10fe31
TT
95652018-05-17 Tom Tromey <tom@tromey.com>
9566
9567 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9568 Initialize.
9569
1d761124
MR
95702018-05-16 Maciej W. Rozycki <macro@mips.com>
9571
9572 PR gdb/22286
9573 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9574 Also handle registers whose width is not a multiple of
9575 PTRACE_TYPE_RET.
9576 (linux_nat_trad_target::store_register): Likewise.
9577
06333fea
TT
95782018-05-16 Tom Tromey <tom@tromey.com>
9579
9580 * gdbcore.h (core_bfd): Redefine.
9581 * corelow.c (core_target::close): Update.
9582 (core_target_open): Update.
9583 * progspace.h (struct program_space) <cbfd>: Now a
9584 gdb_bfd_ref_ptr.
9585
921222e2
TT
95862018-05-16 Tom Tromey <tom@tromey.com>
9587
9588 PR cli/19551:
9589 * symfile-add-flags.h (enum symfile_add_flags)
9590 <SYMFILE_NOT_FILENAME>: New constant.
9591 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
9592 objfile name from BFD.
9593 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9594 * minidebug.c (find_separate_debug_file_in_section): Put
9595 ".gnu_debugdata" into BFD's file name.
9596
3acb7083
SM
95972018-05-16 Simon Marchi <simon.marchi@ericsson.com>
9598
9599 * regcache.c (regcache_read_ftype, regcache_write_ftype):
9600 Remove.
9601
561a72d4
TC
96022018-05-15 Tamar Christina <tamar.christina@arm.com>
9603
9604 PR binutils/21446
9605 * aarch64-tdep.c (aarch64_analyze_prologue,
9606 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9607 Indicate not interested in errors.
9608
4e6ff0e1
MR
96092018-05-15 Maciej W. Rozycki <macro@mips.com>
9610
9611 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9612 Supply the MIPS_ZERO_REGNUM register.
9613
ea33cd92
MR
96142018-05-15 Maciej W. Rozycki <macro@mips.com>
9615
9616 * mips-tdep.c (mask_address_var): Make variable static.
9617
2d79090e
TT
96182018-05-14 Tom Tromey <tom@tromey.com>
9619
9620 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9621
cf4912ae
AB
96222018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
9623
9624 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9625 FXSAVE_ADDR for the mxcsr register.
9626
67e6f569
MF
96272018-05-11 Max Filippov <jcmvbkbc@gmail.com>
9628
9629 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9630
15244507
PA
96312018-05-11 Pedro Alves <palves@redhat.com>
9632
9633 * corelow.c (core_target) <core_target>: No longer inline.
9634 Initialize m_core_gdbarch, m_core_vec and build the section table
9635 here.
9636 <~core_target>: New.
9637 <core_gdbarch, get_core_register_section>: New methods.
9638 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9639 factored out from ...
9640 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9641 (core_ops): Delete.
9642 (sniff_core_bfd): Add gdbarch parameter.
9643 (core_close): Delete, merged into ...
9644 (core_target::close): ... here. Delete self.
9645 (core_close_cleanup): Delete.
9646 (core_target_open): Allocate a core_target on the heap. Use a
9647 unique_ptr instead of a cleanup. Bits moved into the core_target
9648 ctor. Adjust to use core_target methods instead of globals.
9649 (get_core_register_section): Rename to ...
9650 (core_target::get_core_register_section): ... this and adjust.
9651 (struct get_core_registers_cb_data): New.
9652 (get_core_registers_cb): Use it. Use bool.
9653 (core_target::fetch_registers, core_target::files_info)
9654 (core_target::xfer_partial, core_target::read_description)
9655 (core_target::pid_to, core_target::thread_name): Adjust to
9656 reference class fields instead of globals.
9657 * target.h (struct target_ops_deleter, target_ops_up): New.
9658
451953fa
PA
96592018-05-11 Pedro Alves <palves@redhat.com>
9660
9661 * corefile.c (core_file_command): Move to corelow.c.
9662 * corelow.c (the_core_target): Delete.
9663 (core_file_command): Moved from corefile.c. Check exec_bfd
9664 instead of the_core_target. Use target_detach instead of calling
9665 into the_core_target directly.
9666 (maybe_say_no_core_file_now): New.
9667 (core_target::detach): Use it.
9668 (_initialize_corelow): Remove references to the_core_target.
9669 * gdbcore.h (the_core_target): Delete.
9670
e540a5a2 96712018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 9672 Pedro Alves <palves@redhat.com>
e540a5a2
TT
9673
9674 * corefile.c (core_bfd): Remove.
9675 * gdbcore.h (core_bfd): Now a macro.
9676 * progspace.h (struct program_space) <cbfd>: New field.
9677
633cf254
TT
96782018-05-11 Tom Tromey <tom@tromey.com>
9679
9680 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9681 gdb::def_vector.
9682
1a34f210
TT
96832018-05-10 Tom Tromey <tom@tromey.com>
9684
9685 * configure: Rebuild.
9686 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9687
190852c8
JB
96882018-05-10 Joel Brobecker <brobecker@adacore.com>
9689
9690 PR server/23158:
9691 * regformats/regdat.sh: Adjust script, following the addition
9692 of the new expedite_regs parameter to init_target_desc.
9693
8727de56
OJ
96942018-05-10 Omair Javaid <omair.javaid@linaro.org>
9695
9696 PR gdb/23127
9697 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9698 set_gdbarch_significant_addr_bit.
9699 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9700 set_gdbarch_significant_addr_bit.
9701 * utils.c (address_significant): Update to sign extend addr.
9702
37d9e062
MF
97032018-05-09 Max Filippov <jcmvbkbc@gmail.com>
9704
9705 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9706 (xtensa_linux_init_abi): Limit tdep->num_regs by
9707 tdep->num_nopriv_regs.
9708 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9709 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9710 not initialized.
9711
7402fbca
SM
97122018-05-08 Simon Marchi <simon.marchi@ericsson.com>
9713
9714 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9715
8ee22052
AB
97162018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9717
9718 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9719 (I387_MXCSR_INIT_VAL): New constant.
9720 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9721 buffer if it was supplied by the inferior.
9722 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9723 (i387_xsave_get_clear_bv): New function.
9724 (i387_supply_xsave): Only read x87 control registers from the
9725 xsave buffer if the feature is enabled, and the state will have
9726 been written, otherwise, provide a suitable default.
9727 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9728 including x87 control registers. Update control registers if they
9729 have changed from the default value, and mark features as enabled
9730 as required.
9731 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9732
968ae51b
UW
97332018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
9734
9735 * spu-tdep.c (info_spu_event_command): Fix output formatting.
9736
aff689d3
TT
97372018-05-07 Tom Tromey <tom@tromey.com>
9738
9739 * configure: Rebuild.
9740 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
9741
ce887586
TT
97422018-05-07 Tom Tromey <tom@tromey.com>
9743
9744 PR tdep/20362:
9745 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
9746 bit. Use correct value for VDIV.
9747
85e26832
TT
97482018-05-04 Tom Tromey <tom@tromey.com>
9749
9750 * configure: Rebuild.
9751 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9752
449b1ac7
TT
97532018-05-04 Tom Tromey <tom@tromey.com>
9754
9755 * linux-record.c (record_linux_system_call) <case
9756 RECORD_SYS_RECVFROM>: Add "break".
9757
15c9ffd6
TT
97582018-05-04 Tom Tromey <tom@tromey.com>
9759
9760 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9761 Add missing "break".
9762 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9763 Add missing "break".
9764
e3829d13
TT
97652018-05-04 Tom Tromey <tom@tromey.com>
9766
9767 * rs6000-tdep.c (ppc_process_record_op4)
9768 (ppc_process_record_op63): Add fall-through comment.
9769
da0e1563
TT
97702018-05-04 Tom Tromey <tom@tromey.com>
9771
9772 * i386-tdep.c (i386_process_record): Add fall-through comment.
9773
0019cd49
TT
97742018-05-04 Tom Tromey <tom@tromey.com>
9775
9776 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9777 comment.
9778
565e0eda
TT
97792018-05-04 Tom Tromey <tom@tromey.com>
9780
9781 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9782 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9783 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9784 comment.
9785 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9786 comment.
9787 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9788 comment.
9789
621846f4
TT
97902018-05-04 Tom Tromey <tom@tromey.com>
9791
9792 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9793
86a73007
TT
97942018-05-04 Tom Tromey <tom@tromey.com>
9795
9796 * s390-tdep.c (s390_process_record): Fix fall-through comments.
9797 * xcoffread.c (scan_xcoff_symtab): Move comment later.
9798 * symfile.c (section_is_mapped): Fix fall-through comment.
9799 * stabsread.c (define_symbol, read_member_functions): Fix
9800 fall-through comment.
9801 * s390-linux-tdep.c (s390_process_record): Fix fall-through
9802 comment.
9803 * remote.c (remote_wait_as): Fix fall-through comment.
9804 * p-exp.y (yylex): Fix fall-through comment.
9805 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9806 comment.
9807 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9808 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9809 * jv-exp.y (yylex): Fix fall-through comment.
9810 * go-exp.y (lex_one_token): Fix fall-through comment.
9811 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9812 fall-through comment.
9813 * f-exp.y (yylex): Fix fall-through comment.
9814 * dwarf2read.c (process_die): Fix fall-through comments.
9815 * dbxread.c (process_one_symbol): Fix fall-through comment.
9816 * d-exp.y (lex_one_token): Fix fall-through comment.
9817 * cp-name-parser.y (yylex): Fix fall-through comment.
9818 * coffread.c (coff_symtab_read): Fix fall-through comment.
9819 * c-exp.y (lex_one_token): Fix fall-through comment.
9820 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9821 comment.
9822 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9823 comment.
9824
56bcdbea
TT
98252018-05-04 Tom Tromey <tom@tromey.com>
9826
9827 PR python/22730:
9828 * NEWS: Mention gdb.execute change.
9829 * gdbcmd.h (execute_control_command): Don't declare.
9830 * python/python.c (execute_gdb_command): Use read_command_lines_1,
9831 execute_control_commands, execute_control_commands_to_string.
9832 * cli/cli-script.h (execute_control_commands)
9833 (execute_control_commands_to_string): Declare.
9834 (execute_control_command): Add from_tty parameter.
9835 * cli/cli-script.c (execute_control_commands)
9836 (execute_control_commands_to_string): New functions.
9837 (execute_user_command): Use execute_control_commands.
9838 (execute_control_command_1): Add "from_tty" parameter. Update.
9839 (execute_control_command): Likewise.
9840
a913fffb
TT
98412018-05-04 Tom Tromey <tom@tromey.com>
9842
9843 PR python/22731:
9844 * NEWS: Mention that breakpoint commands are writable.
9845 * python/py-breakpoint.c (bppy_set_commands): New function.
9846 (breakpoint_object_getset) <"commands">: Use it.
9847
60b3cef2
TT
98482018-05-04 Tom Tromey <tom@tromey.com>
9849
9850 * tracepoint.c (actions_command): Update.
9851 * mi/mi-cmd-break.c (mi_command_line_array)
9852 (mi_command_line_array_cnt, mi_command_line_array_ptr)
9853 (mi_read_next_line): Remove.
9854 (mi_cmd_break_commands): Update.
9855 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9856 function_view.
9857 * cli/cli-script.c (get_command_line): Update.
9858 (process_next_line): Use function_view. Constify.
9859 (recurse_read_control_structure, read_command_lines)
9860 (read_command_lines_1): Change argument types to function_view.
9861 (do_define_command, document_command): Update.
9862 * breakpoint.h (check_tracepoint_command): Don't declare.
9863 * breakpoint.c (check_tracepoint_command): Remove.
9864 (commands_command_1, create_tracepoint_from_upload): Update.
9865
7a2c85f2
TT
98662018-05-04 Tom Tromey <tom@tromey.com>
9867
9868 PR gdb/11750:
9869 * cli/cli-script.h (enum command_control_type) <define_control>:
9870 New constant.
9871 * cli/cli-script.c (multi_line_command_p): Handle define_control.
9872 (build_command_line, execute_control_command_1)
9873 (process_next_line): Likewise.
9874 (do_define_command): New function, extracted from define_command.
9875 (define_command): Use it.
9876
295dc222
TT
98772018-05-04 Tom Tromey <tom@tromey.com>
9878
9879 * tracepoint.c (actions_command): Update.
9880 * cli/cli-script.h (read_command_lines): Update.
9881 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9882 (MAX_TMPBUF): Remove define.
9883 (define_command): Use string_printf.
9884 (document_command): Likewise.
9885 * breakpoint.c (commands_command_1): Update.
9886
1263a9d5
TT
98872018-05-04 Tom Tromey <tom@tromey.com>
9888
9889 * top.c (execute_command): Update.
9890 * cli/cli-script.h (print_command_lines): Now varargs.
9891 * cli/cli-script.c (print_command_lines): Now varargs.
9892 (execute_control_command_1) <case while_control, case if_control>:
9893 Update.
9894
12973681
TT
98952018-05-04 Tom Tromey <tom@tromey.com>
9896
9897 * tracepoint.c (all_tracepoint_actions): Rename from
9898 all_tracepoint_actions_and_cleanup. Change return type.
9899 (actions_command, encode_actions_1, encode_actions)
9900 (trace_dump_actions, tdump_command): Update.
9901 * remote.c (remote_download_command_source): Update.
9902 * python/python.c (gdbpy_eval_from_control_command)
9903 (python_command, python_interactive_command): Update.
9904 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9905 * guile/guile.c (guile_command)
9906 (gdbscm_eval_from_control_command, guile_command): Update.
9907 * compile/compile.c (compile_code_command)
9908 (compile_print_command, compile_to_object): Update.
9909 * cli/cli-script.h (struct command_lines_deleter): New.
9910 (counted_command_line): New typedef.
9911 (struct command_line): Add constructor, destructor.
9912 <body_list>: Remove.
9913 <body_list_0, body_list_1>: New members.
9914 (command_line_up): Remove typedef.
9915 (read_command_lines, read_command_lines_1, get_command_line):
9916 Update.
9917 (copy_command_lines): Don't declare.
9918 * cli/cli-script.c (build_command_line): Use "new".
9919 (get_command_line): Return counted_command_line.
9920 (print_command_lines, execute_user_command)
9921 (execute_control_command_1, while_command, if_command): Update.
9922 (realloc_body_list): Remove.
9923 (process_next_line, recurse_read_control_structure): Update.
9924 (read_command_lines, read_command_lines_1): Return counted_command_line.
9925 (free_command_lines): Use "delete".
9926 (copy_command_lines): Remove.
9927 (define_command, document_command, show_user_1): Update.
9928 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9929 a counted_command_line.
9930 * breakpoint.h (counted_command_line): Remove typedef.
9931 (breakpoint_set_commands): Update.
9932 * breakpoint.c (check_no_tracepoint_commands)
9933 (validate_commands_for_breakpoint): Update.
9934 (breakpoint_set_commands): Change commands to be a
9935 counted_command_line.
9936 (commands_command_1, update_dprintf_command_list)
9937 (create_tracepoint_from_upload): Update.
9938
e2fc72e2
TT
99392018-05-04 Tom Tromey <tom@tromey.com>
9940
9941 * cli/cli-decode.h (cmd_list_element): New constructor.
9942 (~cmd_list_element): New destructor.
9943 (struct cmd_list_element): Add initializers.
9944 * cli/cli-decode.c (do_add_cmd): Use "new".
9945 (delete_cmd): Use "delete".
9946
a3b60e45
JK
99472018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9948 Pedro Alves <palves@redhat.com>
9949
9950 PR breakpoints/19806 and support for PR external/20207.
9951 * NEWS: Mention Aarch64 watchpoint improvements.
9952 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9953 watchpoints and PR external/20207 watchpoints.
9954 * nat/aarch64-linux-hw-point.c
9955 (kernel_supports_any_contiguous_range): New.
9956 (aarch64_watchpoint_offset): New.
9957 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9958 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9959 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9960 (aarch64_align_watchpoint): New parameters aligned_offset_p and
9961 next_addr_orig_p. Support PR external/20207 watchpoints.
9962 (aarch64_downgrade_regs): New.
9963 (aarch64_dr_state_insert_one_point): New parameters offset and
9964 addr_orig.
9965 (aarch64_dr_state_remove_one_point): Likewise.
9966 (aarch64_handle_breakpoint): Update caller.
9967 (aarch64_handle_aligned_watchpoint): Likewise.
9968 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9969 aligned_offset.
9970 (aarch64_linux_set_debug_regs): Remove const from state. Call
9971 aarch64_downgrade_regs.
9972 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9973 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9974 (DR_CONTROL_MASK): ... this.
9975 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9976 (unsigned int aarch64_watchpoint_offset): New prototype.
9977 (aarch64_linux_set_debug_regs): Remove const from state.
9978 * utils.c (align_up, align_down): Move to ...
9979 * common/common-utils.c (align_up, align_down): ... here.
9980 * utils.h (align_up, align_down): Move to ...
9981 * common/common-utils.h (align_up, align_down): ... here.
9982
05bc7456
JB
99832018-05-04 Joel Brobecker <brobecker@adacore.com>
9984
9985 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9986 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9987 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9988 Re-implement to match the ABI as summarized in GCC's
9989 gcc/config/sparc/sparc.c. All callers updated.
9990 (sparc32_store_arguments): Remove assertion.
9991
2f433492
TT
99922018-05-04 Tom Tromey <tom@tromey.com>
9993
9994 * printcmd.c: Don't include tui.h.
9995 (decode_format): Use skip_spaces.
9996
9be2ae8f
TT
99972018-05-04 Tom Tromey <tom@tromey.com>
9998
9999 PR gdb/22619:
10000 * printcmd.c (last_count): New global.
10001 (x_command): Use saved count when repeating.
10002
f0b3976b
TT
100032018-05-04 Tom Tromey <tom@tromey.com>
10004
10005 * nto-procfs.c (do_closedir_cleanup): Remove.
10006 (procfs_pidlist): Use gdb_dir_up.
10007 * procfs.c (do_closedir_cleanup): Remove.
10008 (proc_update_threads): Use gdb_dir_up.
10009 * common/filestuff.h (struct gdb_dir_deleter): New.
10010 (gdb_dir_up): New typedef.
10011
862d101a
TT
100122018-05-04 Tom Tromey <tom@tromey.com>
10013
10014 * ada-lang.c (print_mention_exception): Use std::string.
10015
cb7de75e
TT
100162018-05-04 Tom Tromey <tom@tromey.com>
10017
10018 * ada-lang.c (create_excep_cond_exprs): Update.
10019 (ada_exception_catchpoint_cond_string): Use std::string.
10020
49d83361
TT
100212018-05-04 Tom Tromey <tom@tromey.com>
10022
10023 * ada-lang.c (xget_renaming_scope): Return std::string.
10024 (old_renaming_is_invisible): Update.
10025
ade72a34
TT
100262018-05-04 Tom Tromey <tom@tromey.com>
10027
10028 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
10029 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
10030
2be4d7f0
UW
100312018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
10032
10033 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
10034
69b6ecb0
TT
100352018-05-04 Tom Tromey <tom@tromey.com>
10036
10037 * remote.c (remote_query_supported_append): Change type.
10038 (remote_check_symbols): Update.
10039
bf27f0e2
PP
100402018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
10041
10042 PR gdb/11420
10043 * configure.ac: Prepend libpython.
10044 * python/python-config.py: Likewise.
10045 * configure: Regenerate.
10046
4ea17de8
SM
100472018-05-03 Simon Marchi <simon.marchi@ericsson.com>
10048
10049 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
10050
bd732259
PA
100512018-05-03 Pedro Alves <palves@redhat.com>
10052
10053 * s390-linux-nat.c
10054 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
10055 override. Write 'true' instead of '1'.
10056 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
10057 declaration.
10058
d9f719f1
PA
100592018-05-02 Pedro Alves <palves@redhat.com>
10060
10061 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
10062 add_inf_child_target.
10063 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
10064 add_inf_child_target.
10065 * aix-thread.c (aix_thread_target_info): New.
10066 (aix_thread_target) <shortname, longname, doc>: Delete.
10067 <info>: New.
10068 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
10069 add_inf_child_target.
10070 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
10071 add_inf_child_target.
10072 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
10073 add_inf_child_target.
10074 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
10075 add_inf_child_target.
10076 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
10077 add_inf_child_target.
10078 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
10079 add_inf_child_target.
10080 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
10081 add_inf_child_target.
10082 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
10083 add_inf_child_target.
10084 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
10085 add_inf_child_target.
10086 * bfd-target.c (target_bfd_target_info): New.
10087 (target_bfd) <shortname, longname, doc>: Delete.
10088 <info>: New.
10089 * bsd-kvm.c (bsd_kvm_target_info): New.
10090 (bsd_kvm_target) <shortname, longname, doc>: Delete.
10091 <info>: New.
10092 (bsd_kvm_target::open): Rename to ...
10093 (bsd_kvm_target_open): ... this. Adjust.
10094 * bsd-uthread.c (bsd_uthread_target_info): New.
10095 (bsd_uthread_target) <shortname, longname, doc>: Delete.
10096 <info>: New.
10097 * corefile.c (core_file_command): Adjust.
10098 * corelow.c (core_target_info): New.
10099 (core_target) <shortname, longname, doc>: Delete.
10100 <info>: New.
10101 (core_target::open): Rename to ...
10102 (core_target_open): ... this. Adjust.
10103 * ctf.c (ctf_target_info): New.
10104 (ctf_target) <shortname, longname, doc>: Delete.
10105 <info>: New.
10106 (ctf_target::open): Rename to ...
10107 (ctf_target_open): ... this.
10108 (_initialize_ctf): Adjust.
10109 * exec.c (exec_target_info): New.
10110 (exec_target) <shortname, longname, doc>: Delete.
10111 <info>: New.
10112 (exec_target::open): Rename to ...
10113 (exec_target_open): ... this.
10114 * gdbcore.h (core_target_open): Declare.
10115 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
10116 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
10117 add_inf_child_target.
10118 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
10119 add_inf_child_target.
10120 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
10121 add_inf_child_target.
10122 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
10123 add_inf_child_target.
10124 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
10125 add_inf_child_target.
10126 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
10127 add_inf_child_target.
10128 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
10129 add_inf_child_target.
10130 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
10131 add_inf_child_target.
10132 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
10133 add_inf_child_target.
10134 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
10135 add_inf_child_target.
10136 * inf-child.c (inf_child_target_info): New.
10137 (inf_child_target::info): New.
10138 (inf_child_open_target): Remove 'target' parameter. Use
10139 get_native_target instead.
10140 (inf_child_target::open): Delete.
10141 (add_inf_child_target): New.
10142 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
10143 Delete.
10144 <info>: New.
10145 (add_inf_child_target): Declare.
10146 (inf_child_open_target): Declare.
10147 * linux-thread-db.c (thread_db_target_info): New.
10148 (thread_db_target) <shortname, longname, doc>: Delete.
10149 <info>: New.
10150 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
10151 add_inf_child_target.
10152 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
10153 add_inf_child_target.
10154 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
10155 add_inf_child_target.
10156 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
10157 add_inf_child_target.
10158 * make-target-delegates (print_class): Adjust.
10159 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
10160 add_inf_child_target.
10161 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
10162 add_inf_child_target.
10163 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
10164 add_inf_child_target.
10165 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
10166 add_inf_child_target.
10167 * nto-procfs.c (nto_native_target_info): New.
10168 (nto_procfs_target_native) <shortname, longname, doc>:
10169 Delete.
10170 <info>: New.
10171 (nto_procfs_target_info): New.
10172 (nto_procfs_target_procfs) <shortname, longname, doc>:
10173 Delete.
10174 <info>: New.
10175 (init_procfs_targets): Adjust.
10176 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
10177 add_inf_child_target.
10178 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
10179 add_inf_child_target.
10180 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
10181 add_inf_child_target.
10182 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
10183 add_inf_child_target.
10184 * ravenscar-thread.c (ravenscar_target_info): New.
10185 (ravenscar_thread_target) <shortname, longname, doc>:
10186 Delete.
10187 <info>: New.
10188 * record-btrace.c (record_btrace_target_info):
10189 (record_btrace_target) <shortname, longname, doc>: Delete.
10190 <info>: New.
10191 (record_btrace_target::open): Rename to ...
10192 (record_btrace_target_open): ... this. Adjust.
10193 * record-full.c (record_longname, record_doc): New.
10194 (record_full_base_target) <shortname, longname, doc>: Delete.
10195 <info>: New.
10196 (record_full_target_info): New.
10197 (record_full_target): <shortname>: Delete.
10198 <info>: New.
10199 (record_full_core_open_1, record_full_open_1): Update comments.
10200 (record_full_base_target::open): Rename to ...
10201 (record_full_open): ... this.
10202 (cmd_record_full_restore): Update.
10203 (_initialize_record_full): Update.
10204 * remote-sim.c (remote_sim_target_info): New.
10205 (gdbsim_target) <shortname, longname, doc>: Delete.
10206 <info>: New.
10207 (gdbsim_target::open): Rename to ...
10208 (gdbsim_target_open): ... this.
10209 (_initialize_remote_sim): Adjust.
10210 * remote.c (remote_doc): New.
10211 (remote_target_info): New.
10212 (remote_target) <shortname, longname, doc>: Delete.
10213 <info>: New.
10214 (extended_remote_target_info): New.
10215 (extended_remote_target) <shortname, longname, doc>: Delete.
10216 <info>: New.
10217 (remote_target::open_1): Make static. Adjust.
10218 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10219 * s390-linux-nat.c (_initialize_s390_nat): Use
10220 add_inf_child_target.
10221 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10222 add_inf_child_target.
10223 * sol-thread.c (thread_db_target_info): New.
10224 (sol_thread_target) <shortname, longname, doc>: Delete.
10225 <info>: New.
10226 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10227 add_inf_child_target.
10228 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10229 add_inf_child_target.
10230 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10231 add_inf_child_target.
10232 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10233 add_inf_child_target.
10234 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10235 add_inf_child_target.
10236 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10237 add_inf_child_target.
10238 * spu-linux-nat.c (_initialize_spu_nat): Use
10239 add_inf_child_target.
10240 * spu-multiarch.c (spu_multiarch_target_info): New.
10241 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10242 <info>: New.
10243 * target-delegates.c: Regenerate.
10244 * target.c: Include <unordered_map>.
10245 (target_ops_p): Delete.
10246 (DEF_VEC_P(target_ops_p)): Delete.
10247 (target_factories): New.
10248 (test_target_info): New.
10249 (test_target_ops::info): New.
10250 (open_target): Adjust to use target_factories.
10251 (add_target_with_completer): Rename to ...
10252 (add_target): ... this. Change prototype. Register target_info
10253 and open callback in target_factories. Register target_info in
10254 command context instead of target_ops.
10255 (add_target): Delete old implementation.
10256 (add_deprecated_target_alias): Change prototype. Adjust.
10257 (the_native_target): New.
10258 (set_native_target, get_native_target): New.
10259 (find_default_run_target): Use the_native_target.
10260 (find_attach_target, find_run_target): Simplify.
10261 (target_ops::open): Delete.
10262 (dummy_target_info): New.
10263 (dummy_target::shortname, dummy_target::longname)
10264 (dummy_target::doc): Delete.
10265 (dummy_target::info): New.
10266 (debug_target::shortname, debug_target::longname)
10267 (debug_target::doc): Delete.
10268 (debug_target::info): New.
10269 * target.h (struct target_info): New.
10270 (target_ops::~target_ops): Add comment.
10271 (target_ops::info): New.
10272 (target_ops::shortname, target_ops::longname, target_ops::doc): No
10273 longer virtual. Implement in terms of target_info.
10274 (set_native_target, get_native_target): Declare.
10275 (target_open_ftype): New.
10276 (add_target, add_target_with_completer)
10277 (add_deprecated_target_alias): Change prototype.
10278 (test_target) <shortname, longname, doc>: Delete.
10279 <info>: New.
10280 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10281 add_inf_child_target.
10282 * tracefile-tfile.c (tfile_target_info): New.
10283 (tfile_target) <shortname, longname, doc>: Delete.
10284 <info>: New.
10285 (tfile_target::open): Rename to ...
10286 (tfile_target_open): ... this.
10287 (_initialize_tracefile_tfile): Adjust.
10288 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10289 add_inf_child_target.
10290 * windows-nat.c (_initialize_windows_nat): Use
10291 add_inf_child_target.
10292 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10293 add_inf_child_target.
10294
135340af
PA
102952018-05-02 Pedro Alves <palves@redhat.com>
10296
10297 * linux-nat.h (linux_nat_target) <low_new_thread,
10298 low_delete_thread, low_new_fork, low_forget_process,
10299 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10300 New virtual methods.
10301 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10302 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10303 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10304 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10305 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10306 Delete.
10307 * linux-fork.c (delete_fork): Adjust to call low method.
10308 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10309 (linux_nat_new_fork, linux_nat_forget_process_hook)
10310 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10311 (linux_nat_status_is_event):
10312 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10313 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10314 to call low method.
10315 (sigtrap_is_event): Rename to ...
10316 (linux_nat_target::low_status_is_event): ... this.
10317 (linux_nat_set_status_is_event): Delete.
10318 (save_stop_reason, linux_nat_wait_1)
10319 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10320 low methods.
10321 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10322 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10323 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10324 (linux_nat_set_prepare_to_resume): Delete.
10325 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10326 low virtual methods.
10327 * amd64-linux-nat.c: Likewise.
10328 * arm-linux-nat.c: Likewise.
10329 * i386-linux-nat.c: Likewise.
10330 * ia64-linux-nat.c: Likewise.
10331 * mips-linux-nat.c: Likewise.
10332 * ppc-linux-nat.c: Likewise.
10333 * s390-linux-nat.c: Likewise.
10334 * sparc64-linux-nat.c: Likewise.
10335 * x86-linux-nat.c: Likewise.
10336 * x86-linux-nat.h: Include "nat/x86-linux.h".
10337 (x86_linux_nat_target) <low_new_fork, low_forget_process,
10338 low_prepare_to_resume, low_new_thread, low_delete_thread>:
10339 Override methods.
10340
57810aa7
PA
103412018-05-02 Pedro Alves <palves@redhat.com>
10342
10343 * target.h (target_ops)
10344 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10345 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10346 stopped_by_watchpoint, have_continuable_watchpoint,
10347 stopped_data_address, watchpoint_addr_within_range,
10348 can_accel_watchpoint_condition, can_run, thread_alive,
10349 has_all_memory, has_memory, has_stack, has_registers,
10350 has_execution, can_async_p, is_async_p, supports_non_stop,
10351 always_non_stop_p, can_execute_reverse, supports_multi_process,
10352 supports_enable_disable_tracepoint,
10353 supports_disable_randomization, supports_string_tracing,
10354 supports_evaluation_of_breakpoint_conditions,
10355 can_run_breakpoint_commands, filesystem_is_local,
10356 can_download_tracepoint, get_trace_state_variable_value,
10357 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10358 record_is_replaying, record_will_replay,
10359 augmented_libraries_svr4_read>: Adjust to return bool.
10360 * aarch64-linux-nat.c: All implementations adjusted.
10361 * aix-thread.c: All implementations adjusted.
10362 * arm-linux-nat.c: All implementations adjusted.
10363 * breakpoint.c: All implementations adjusted.
10364 * bsd-kvm.c: All implementations adjusted.
10365 * bsd-uthread.c: All implementations adjusted.
10366 * corelow.c: All implementations adjusted.
10367 * ctf.c: All implementations adjusted.
10368 * darwin-nat.c: All implementations adjusted.
10369 * darwin-nat.h: All implementations adjusted.
10370 * exec.c: All implementations adjusted.
10371 * fbsd-nat.c: All implementations adjusted.
10372 * fbsd-nat.h: All implementations adjusted.
10373 * gnu-nat.c: All implementations adjusted.
10374 * gnu-nat.h: All implementations adjusted.
10375 * go32-nat.c: All implementations adjusted.
10376 * ia64-linux-nat.c: All implementations adjusted.
10377 * inf-child.c: All implementations adjusted.
10378 * inf-child.h: All implementations adjusted.
10379 * inf-ptrace.c: All implementations adjusted.
10380 * inf-ptrace.h: All implementations adjusted.
10381 * linux-nat.c: All implementations adjusted.
10382 * linux-nat.h: All implementations adjusted.
10383 * mips-linux-nat.c: All implementations adjusted.
10384 * nto-procfs.c: All implementations adjusted.
10385 * ppc-linux-nat.c: All implementations adjusted.
10386 * procfs.c: All implementations adjusted.
10387 * ravenscar-thread.c: All implementations adjusted.
10388 * record-btrace.c: All implementations adjusted.
10389 * record-full.c: All implementations adjusted.
10390 * remote-sim.c: All implementations adjusted.
10391 * remote.c: All implementations adjusted.
10392 * s390-linux-nat.c: All implementations adjusted.
10393 * sol-thread.c: All implementations adjusted.
10394 * spu-multiarch.c: All implementations adjusted.
10395 * target-delegates.c: All implementations adjusted.
10396 * target.c: All implementations adjusted.
10397 * target.h: All implementations adjusted.
10398 * tracefile-tfile.c: All implementations adjusted.
10399 * tracefile.c: All implementations adjusted.
10400 * tracefile.h: All implementations adjusted.
10401 * windows-nat.c: All implementations adjusted.
10402 * x86-linux-nat.h: All implementations adjusted.
10403 * x86-nat.h: All implementations adjusted.
10404
ad6a4e2d
PA
104052018-05-02 Pedro Alves <palves@redhat.com>
10406
10407 * make-target-delegates (scan_target_h): Don't trim lines here.
10408 Replace sequences of tabs and/or whitespace with a single
10409 whitespace.
10410 (top level, parsing methods): Trim each line before processing it
10411 here.
10412
f6ac5f3d
PA
104132018-05-02 Pedro Alves <palves@redhat.com>
10414 John Baldwin <jhb@freebsd.org>
10415
10416 * target.h (enum strata) <debug_stratum>: New.
10417 (struct target_ops) <all delegation methods>: Replace by C++
10418 virtual methods, and drop "to_" prefix. All references updated
10419 throughout.
10420 <to_shortname, to_longname, to_doc, to_data,
10421 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10422 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10423 virtual methods. All references updated throughout.
10424 <can_attach, supports_terminal_ours, can_create_inferior,
10425 get_thread_control_capabilities, attach_no_wait>: New
10426 virtual methods.
10427 <insert_breakpoint, remove_breakpoint>: Now
10428 TARGET_DEFAULT_NORETURN methods.
10429 <info_proc>: Now returns bool.
10430 <to_magic>: Delete.
10431 (OPS_MAGIC): Delete.
10432 (current_target): Delete. All references replaced by references
10433 to ...
10434 (target_stack): ... this. New.
10435 (target_shortname, target_longname): Adjust.
10436 (target_can_run): Now a function declaration.
10437 (default_child_has_all_memory, default_child_has_memory)
10438 (default_child_has_stack, default_child_has_registers)
10439 (default_child_has_execution): Remove target_ops parameter.
10440 (complete_target_initialization): Delete.
10441 (memory_breakpoint_target): New template class.
10442 (test_target_ops): Refactor as a C++ class with virtual methods.
10443 * make-target-delegates (NAME_PART): Tighten.
10444 (POINTER_PART, CP_SYMBOL): New.
10445 (SIMPLE_RETURN_PART): Reimplement.
10446 (VEC_RETURN_PART): Expect less.
10447 (RETURN_PART, VIRTUAL_PART): New.
10448 (METHOD): Adjust to C++ virtual methods.
10449 (scan_target_h): Remove reference to C99.
10450 (dname): Output "target_ops::" prefix.
10451 (write_function_header): Adjust to output a C++ class method.
10452 (write_declaration): New.
10453 (write_delegator): Adjust to output a C++ class method.
10454 (tdname): Output "dummy_target::" prefix.
10455 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10456 method.
10457 (tdefault_names, debug_names): Delete.
10458 (return_types, tdefaults, styles, argtypes_array): New.
10459 (top level): All methods are delegators.
10460 (print_class): New.
10461 (top level): Print dummy_target and debug_target classes.
10462 * target-delegates.c: Regenerate.
10463 * target-debug.h (target_debug_print_enum_info_proc_what)
10464 (target_debug_print_thread_control_capabilities)
10465 (target_debug_print_thread_info_p): New.
10466 * target.c (dummy_target): Delete.
10467 (the_dummy_target, the_debug_target): New.
10468 (target_stack): Now extern.
10469 (set_targetdebug): Push/unpush debug target.
10470 (default_child_has_all_memory, default_child_has_memory)
10471 (default_child_has_stack, default_child_has_registers)
10472 (default_child_has_execution): Remove target_ops parameter.
10473 (complete_target_initialization): Delete.
10474 (add_target_with_completer): No longer call
10475 complete_target_initialization.
10476 (target_supports_terminal_ours): Use regular delegation.
10477 (update_current_target): Delete.
10478 (push_target): No longer check magic number. Don't call
10479 update_current_target.
10480 (unpush_target): Don't call update_current_target.
10481 (target_is_pushed): No longer check magic number.
10482 (target_require_runnable): Skip for all stratums over
10483 process_stratum.
10484 (target_ops::info_proc): New.
10485 (target_info_proc): Use find_target_at and
10486 find_default_run_target.
10487 (target_supports_disable_randomization): Use regular delegation.
10488 (target_get_osdata): Use find_target_at.
10489 (target_ops::open, target_ops::close, target_ops::can_attach)
10490 (target_ops::attach, target_ops::can_create_inferior)
10491 (target_ops::create_inferior, target_ops::can_run)
10492 (target_can_run): New.
10493 (default_fileio_target): Use regular delegation.
10494 (target_ops::fileio_open, target_ops::fileio_pwrite)
10495 (target_ops::fileio_pread, target_ops::fileio_fstat)
10496 (target_ops::fileio_close, target_ops::fileio_unlink)
10497 (target_ops::fileio_readlink): New.
10498 (target_fileio_open_1, target_fileio_unlink)
10499 (target_fileio_readlink): Always call the target method. Handle
10500 FILEIO_ENOSYS.
10501 (return_zero, return_zero_has_execution): Delete.
10502 (init_dummy_target): Delete.
10503 (dummy_target::dummy_target, dummy_target::shortname)
10504 (dummy_target::longname, dummy_target::doc)
10505 (debug_target::debug_target, debug_target::shortname)
10506 (debug_target::longname, debug_target::doc): New.
10507 (target_supports_delete_record): Use regular delegation.
10508 (setup_target_debug): Delete.
10509 (maintenance_print_target_stack): Skip debug_stratum.
10510 (initialize_targets): Instantiate the_dummy_target and
10511 the_debug_target.
10512 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
10513 use target_stack.
10514 (target_auxv_search, fprint_target_auxv): Adjust.
10515 (info_auxv_command): Adjust to use target_stack.
10516 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10517 * exceptions.c (print_flush): Handle a NULL target_stack.
10518 * regcache.c (target_ops_no_register): Refactor as class with
10519 virtual methods.
10520
10521 * exec.c (exec_target): New class.
10522 (exec_ops): Now an exec_target.
10523 (exec_open, exec_close_1, exec_get_section_table)
10524 (exec_xfer_partial, exec_files_info, exec_has_memory)
10525 (exec_make_note_section): Refactor as exec_target methods.
10526 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10527 Delete.
10528 (exec_target::find_memory_regions): New.
10529 (_initialize_exec): Don't call init_exec_ops.
10530 * gdbcore.h (exec_file_clear): Delete.
10531
10532 * corefile.c (core_target): Delete.
10533 (core_file_command): Adjust.
10534 * corelow.c (core_target): New class.
10535 (the_core_target): New.
10536 (core_close): Remove target_ops parameter.
10537 (core_close_cleanup): Adjust.
10538 (core_target::close): New.
10539 (core_open, core_detach, get_core_registers, core_files_info)
10540 (core_xfer_partial, core_thread_alive, core_read_description)
10541 (core_pid_to_str, core_thread_name, core_has_memory)
10542 (core_has_stack, core_has_registers, core_info_proc): Rework as
10543 core_target methods.
10544 (ignore, core_remove_breakpoint, init_core_ops): Delete.
10545 (_initialize_corelow): Initialize the_core_target.
10546 * gdbcore.h (core_target): Delete.
10547 (the_core_target): New.
10548
10549 * ctf.c: (ctf_target): New class.
10550 (ctf_ops): Now a ctf_target.
10551 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10552 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10553 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10554 methods.
10555 (init_ctf_ops): Delete.
10556 (_initialize_ctf): Don't call it.
10557 * tracefile-tfile.c (tfile_target): New class.
10558 (tfile_ops): Now a tfile_target.
10559 (tfile_open, tfile_close, tfile_files_info)
10560 (tfile_get_tracepoint_status, tfile_trace_find)
10561 (tfile_fetch_registers, tfile_xfer_partial)
10562 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10563 Refactor as tfile_target methods.
10564 (tfile_xfer_partial_features): Remove target_ops parameter.
10565 (init_tfile_ops): Delete.
10566 (_initialize_tracefile_tfile): Don't call it.
10567 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10568 (tracefile_has_stack, tracefile_has_registers)
10569 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10570 tracefile_target methods.
10571 (init_tracefile_ops): Delete.
10572 (tracefile_target::tracefile_target): New.
10573 * tracefile.h: Include "target.h".
10574 (tracefile_target): New class.
10575 (init_tracefile_ops): Delete.
10576
10577 * spu-multiarch.c (spu_multiarch_target): New class.
10578 (spu_ops): Now a spu_multiarch_target.
10579 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10580 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10581 (spu_search_memory, spu_mourn_inferior): Refactor as
10582 spu_multiarch_target methods.
10583 (init_spu_ops): Delete.
10584 (_initialize_spu_multiarch): Remove references to init_spu_ops,
10585 complete_target_initialization.
10586
10587 * ravenscar-thread.c (ravenscar_thread_target): New class.
10588 (ravenscar_ops): Now a ravenscar_thread_target.
10589 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10590 (ravenscar_thread_alive, ravenscar_pid_to_str)
10591 (ravenscar_fetch_registers, ravenscar_store_registers)
10592 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10593 (ravenscar_stopped_by_hw_breakpoint)
10594 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10595 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10596 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10597 methods.
10598 (init_ravenscar_thread_ops): Delete.
10599 (_initialize_ravenscar): Remove references to
10600 init_ravenscar_thread_ops and complete_target_initialization.
10601
10602 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10603 (bsd_uthread_target): New class.
10604 (bsd_uthread_ops): Now a bsd_uthread_target.
10605 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10606 (bsd_uthread_close, bsd_uthread_mourn_inferior)
10607 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10608 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10609 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10610 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10611 (bsd_uthread_target): Delete function.
10612 (_initialize_bsd_uthread): Remove reference to
10613 complete_target_initialization.
10614
10615 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
10616 (target_bfd): ... this new class.
10617 (target_bfd_xfer_partial, target_bfd_get_section_table)
10618 (target_bfd_close): Refactor as target_bfd methods.
10619 (target_bfd::~target_bfd): New.
10620 (target_bfd_reopen): Adjust.
10621 (target_bfd::close): New.
10622
10623 * record-btrace.c (record_btrace_target): New class.
10624 (record_btrace_ops): Now a record_btrace_target.
10625 (record_btrace_open, record_btrace_stop_recording)
10626 (record_btrace_disconnect, record_btrace_close)
10627 (record_btrace_async, record_btrace_info)
10628 (record_btrace_insn_history, record_btrace_insn_history_range)
10629 (record_btrace_insn_history_from, record_btrace_call_history)
10630 (record_btrace_call_history_range)
10631 (record_btrace_call_history_from, record_btrace_record_method)
10632 (record_btrace_is_replaying, record_btrace_will_replay)
10633 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10634 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10635 (record_btrace_store_registers, record_btrace_prepare_to_store)
10636 (record_btrace_to_get_unwinder)
10637 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10638 (record_btrace_commit_resume, record_btrace_wait)
10639 (record_btrace_stop, record_btrace_can_execute_reverse)
10640 (record_btrace_stopped_by_sw_breakpoint)
10641 (record_btrace_supports_stopped_by_sw_breakpoint)
10642 (record_btrace_stopped_by_hw_breakpoint)
10643 (record_btrace_supports_stopped_by_hw_breakpoint)
10644 (record_btrace_update_thread_list, record_btrace_thread_alive)
10645 (record_btrace_goto_begin, record_btrace_goto_end)
10646 (record_btrace_goto, record_btrace_stop_replaying_all)
10647 (record_btrace_execution_direction)
10648 (record_btrace_prepare_to_generate_core)
10649 (record_btrace_done_generating_core): Refactor as
10650 record_btrace_target methods.
10651 (init_record_btrace_ops): Delete.
10652 (_initialize_record_btrace): Remove reference to
10653 init_record_btrace_ops.
10654 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
10655 the execution_direction global.
10656 (record_full_base_target, record_full_target)
10657 (record_full_core_target): New classes.
10658 (record_full_ops): Now a record_full_target.
10659 (record_full_core_ops): Now a record_full_core_target.
10660 (record_full_target::detach, record_full_target::disconnect)
10661 (record_full_core_target::disconnect)
10662 (record_full_target::mourn_inferior, record_full_target::kill):
10663 New.
10664 (record_full_open, record_full_close, record_full_async): Refactor
10665 as methods of the record_full_base_target class.
10666 (record_full_resume, record_full_commit_resume): Refactor
10667 as methods of the record_full_target class.
10668 (record_full_wait, record_full_stopped_by_watchpoint)
10669 (record_full_stopped_data_address)
10670 (record_full_stopped_by_sw_breakpoint)
10671 (record_full_supports_stopped_by_sw_breakpoint)
10672 (record_full_stopped_by_hw_breakpoint)
10673 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10674 methods of the record_full_base_target class.
10675 (record_full_store_registers, record_full_xfer_partial)
10676 (record_full_insert_breakpoint, record_full_remove_breakpoint):
10677 Refactor as methods of the record_full_target class.
10678 (record_full_can_execute_reverse, record_full_get_bookmark)
10679 (record_full_goto_bookmark, record_full_execution_direction)
10680 (record_full_record_method, record_full_info, record_full_delete)
10681 (record_full_is_replaying, record_full_will_replay)
10682 (record_full_goto_begin, record_full_goto_end, record_full_goto)
10683 (record_full_stop_replaying): Refactor as methods of the
10684 record_full_base_target class.
10685 (record_full_core_resume, record_full_core_kill)
10686 (record_full_core_fetch_registers)
10687 (record_full_core_prepare_to_store)
10688 (record_full_core_store_registers, record_full_core_xfer_partial)
10689 (record_full_core_insert_breakpoint)
10690 (record_full_core_remove_breakpoint)
10691 (record_full_core_has_execution): Refactor
10692 as methods of the record_full_core_target class.
10693 (record_full_base_target::supports_delete_record): New.
10694 (init_record_full_ops): Delete.
10695 (init_record_full_core_ops): Delete.
10696 (record_full_save): Refactor as method of the
10697 record_full_base_target class.
10698 (_initialize_record_full): Remove references to
10699 init_record_full_ops and init_record_full_core_ops.
10700
10701 * remote.c (remote_target, extended_remote_target): New classes.
10702 (remote_ops): Now a remote_target.
10703 (extended_remote_ops): Now an extended_remote_target.
10704 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10705 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10706 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10707 (remote_pass_signals, remote_set_syscall_catchpoint)
10708 (remote_program_signals, )
10709 (remote_thread_always_alive): Remove target_ops parameter.
10710 (remote_thread_alive, remote_thread_name)
10711 (remote_update_thread_list, remote_threads_extra_info)
10712 (remote_static_tracepoint_marker_at)
10713 (remote_static_tracepoint_markers_by_strid)
10714 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10715 (remote_open): Refactor as methods of remote_target.
10716 (extended_remote_open, extended_remote_detach)
10717 (extended_remote_attach, extended_remote_post_attach):
10718 (extended_remote_supports_disable_randomization)
10719 (extended_remote_create_inferior): : Refactor as method of
10720 extended_remote_target.
10721 (remote_set_permissions, remote_open_1, remote_detach)
10722 (remote_follow_fork, remote_follow_exec, remote_disconnect)
10723 (remote_resume, remote_commit_resume, remote_stop)
10724 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10725 (remote_terminal_ours, remote_wait, remote_fetch_registers)
10726 (remote_prepare_to_store, remote_store_registers)
10727 (remote_flash_erase, remote_flash_done, remote_files_info)
10728 (remote_kill, remote_mourn, remote_insert_breakpoint)
10729 (remote_remove_breakpoint, remote_insert_watchpoint)
10730 (remote_watchpoint_addr_within_range)
10731 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10732 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10733 (remote_supports_stopped_by_sw_breakpoint)
10734 (remote_stopped_by_hw_breakpoint)
10735 (remote_supports_stopped_by_hw_breakpoint)
10736 (remote_stopped_by_watchpoint, remote_stopped_data_address)
10737 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10738 (remote_verify_memory): Refactor as methods of remote_target.
10739 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
10740 parameter.
10741 (remote_xfer_partial, remote_get_memory_xfer_limit)
10742 (remote_search_memory, remote_rcmd, remote_memory_map)
10743 (remote_pid_to_str, remote_get_thread_local_address)
10744 (remote_get_tib_address, remote_read_description): Refactor as
10745 methods of remote_target.
10746 (remote_target::fileio_open, remote_target::fileio_pwrite)
10747 (remote_target::fileio_pread, remote_target::fileio_close): New.
10748 (remote_hostio_readlink, remote_hostio_fstat)
10749 (remote_filesystem_is_local, remote_can_execute_reverse)
10750 (remote_supports_non_stop, remote_supports_disable_randomization)
10751 (remote_supports_multi_process, remote_supports_cond_breakpoints)
10752 (remote_supports_enable_disable_tracepoint)
10753 (remote_supports_string_tracing)
10754 (remote_can_run_breakpoint_commands, remote_trace_init)
10755 (remote_download_tracepoint, remote_can_download_tracepoint)
10756 (remote_download_trace_state_variable, remote_enable_tracepoint)
10757 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10758 (remote_trace_start, remote_get_trace_status)
10759 (remote_get_tracepoint_status, remote_trace_stop)
10760 (remote_trace_find, remote_get_trace_state_variable_value)
10761 (remote_save_trace_data, remote_get_raw_trace_data)
10762 (remote_set_disconnected_tracing, remote_core_of_thread)
10763 (remote_set_circular_trace_buffer, remote_traceframe_info)
10764 (remote_get_min_fast_tracepoint_insn_len)
10765 (remote_set_trace_buffer_size, remote_set_trace_notes)
10766 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10767 (remote_disable_btrace, remote_teardown_btrace)
10768 (remote_read_btrace, remote_btrace_conf)
10769 (remote_augmented_libraries_svr4_read, remote_load)
10770 (remote_pid_to_exec_file, remote_can_do_single_step)
10771 (remote_execution_direction, remote_thread_handle_to_thread_info):
10772 Refactor as methods of remote_target.
10773 (init_remote_ops, init_extended_remote_ops): Delete.
10774 (remote_can_async_p, remote_is_async_p, remote_async)
10775 (remote_thread_events, remote_upload_tracepoints)
10776 (remote_upload_trace_state_variables): Refactor as methods of
10777 remote_target.
10778 (_initialize_remote): Remove references to init_remote_ops and
10779 init_extended_remote_ops.
10780
10781 * remote-sim.c (gdbsim_target): New class.
10782 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10783 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10784 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10785 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10786 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10787 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10788 Refactor as methods of gdbsim_target.
10789 (gdbsim_ops): Now a gdbsim_target.
10790 (init_gdbsim_ops): Delete.
10791 (gdbsim_cntrl_c): Adjust.
10792 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10793
10794 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10795 (the_amd64_linux_nat_target): New.
10796 (amd64_linux_fetch_inferior_registers)
10797 (amd64_linux_store_inferior_registers): Refactor as methods of
10798 amd64_linux_nat_target.
10799 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
10800 * i386-linux-nat.c: Don't include "linux-nat.h".
10801 (i386_linux_nat_target): New class.
10802 (the_i386_linux_nat_target): New.
10803 (i386_linux_fetch_inferior_registers)
10804 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10805 as methods of i386_linux_nat_target.
10806 (_initialize_i386_linux_nat): Adjust. Set linux_target.
10807 * inf-child.c (inf_child_ops): Delete.
10808 (inf_child_fetch_inferior_registers)
10809 (inf_child_store_inferior_registers): Delete.
10810 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10811 methods of inf_child_target.
10812 (inf_child_target::supports_terminal_ours)
10813 (inf_child_target::terminal_init)
10814 (inf_child_target::terminal_inferior)
10815 (inf_child_target::terminal_ours_for_output)
10816 (inf_child_target::terminal_ours, inf_child_target::interrupt)
10817 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10818 New.
10819 (inf_child_open, inf_child_disconnect, inf_child_close)
10820 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10821 (inf_child_post_startup_inferior, inf_child_can_run)
10822 (inf_child_pid_to_exec_file): Refactor as methods of
10823 inf_child_target.
10824 (inf_child_follow_fork): Delete.
10825 (inf_child_target::can_create_inferior)
10826 (inf_child_target::can_attach): New.
10827 (inf_child_target::has_all_memory, inf_child_target::has_memory)
10828 (inf_child_target::has_stack, inf_child_target::has_registers)
10829 (inf_child_target::has_execution): New.
10830 (inf_child_fileio_open, inf_child_fileio_pwrite)
10831 (inf_child_fileio_pread, inf_child_fileio_fstat)
10832 (inf_child_fileio_close, inf_child_fileio_unlink)
10833 (inf_child_fileio_readlink, inf_child_use_agent)
10834 (inf_child_can_use_agent): Refactor as methods of
10835 inf_child_target.
10836 (return_zero, inf_child_target): Delete.
10837 (inf_child_target::inf_child_target): New.
10838 * inf-child.h: Include "target.h".
10839 (inf_child_target): Delete function prototype.
10840 (inf_child_target): New class.
10841 (inf_child_open_target, inf_child_mourn_inferior)
10842 (inf_child_maybe_unpush_target): Delete.
10843 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10844 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10845 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10846 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10847 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10848 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10849 (inf_ptrace_wait, inf_ptrace_xfer_partial)
10850 (inf_ptrace_thread_alive, inf_ptrace_files_info)
10851 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10852 methods of inf_ptrace_target.
10853 (inf_ptrace_target): Delete function.
10854 * inf-ptrace.h: Include "inf-child.h".
10855 (inf_ptrace_target): Delete function declaration.
10856 (inf_ptrace_target): New class.
10857 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10858 * linux-nat.c (linux_target): New.
10859 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10860 (linux_nat_target::~linux_nat_target): New.
10861 (linux_child_post_attach, linux_child_post_startup_inferior)
10862 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10863 (linux_child_remove_fork_catchpoint)
10864 (linux_child_insert_vfork_catchpoint)
10865 (linux_child_remove_vfork_catchpoint)
10866 (linux_child_insert_exec_catchpoint)
10867 (linux_child_remove_exec_catchpoint)
10868 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10869 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10870 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10871 (linux_nat_stopped_data_address)
10872 (linux_nat_stopped_by_sw_breakpoint)
10873 (linux_nat_supports_stopped_by_sw_breakpoint)
10874 (linux_nat_stopped_by_hw_breakpoint)
10875 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10876 (linux_nat_kill, linux_nat_mourn_inferior)
10877 (linux_nat_xfer_partial, linux_nat_thread_alive)
10878 (linux_nat_update_thread_list, linux_nat_pid_to_str)
10879 (linux_nat_thread_name, linux_child_pid_to_exec_file)
10880 (linux_child_static_tracepoint_markers_by_strid)
10881 (linux_nat_is_async_p, linux_nat_can_async_p)
10882 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10883 (linux_nat_supports_multi_process)
10884 (linux_nat_supports_disable_randomization, linux_nat_async)
10885 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10886 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10887 (linux_nat_fileio_open, linux_nat_fileio_readlink)
10888 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10889 methods of linux_nat_target.
10890 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10891 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10892 parameter.
10893 (check_stopped_by_watchpoint): Adjust.
10894 (linux_xfer_partial): Delete.
10895 (linux_target_install_ops, linux_target, linux_nat_add_target):
10896 Delete.
10897 (linux_nat_target::linux_nat_target): New.
10898 * linux-nat.h: Include "inf-ptrace.h".
10899 (linux_nat_target): New.
10900 (linux_target, linux_target_install_ops, linux_nat_add_target):
10901 Delete function declarations.
10902 (linux_target): Declare global.
10903 * linux-thread-db.c (thread_db_target): New.
10904 (thread_db_target::thread_db_target): New.
10905 (thread_db_ops): Delete.
10906 (the_thread_db_target): New.
10907 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10908 (thread_db_update_thread_list, thread_db_pid_to_str)
10909 (thread_db_extra_thread_info)
10910 (thread_db_thread_handle_to_thread_info)
10911 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10912 (thread_db_resume): Refactor as methods of thread_db_target.
10913 (init_thread_db_ops): Delete.
10914 (_initialize_thread_db): Remove reference to init_thread_db_ops.
10915 * x86-linux-nat.c: Don't include "linux-nat.h".
10916 (super_post_startup_inferior): Delete.
10917 (x86_linux_nat_target::~x86_linux_nat_target): New.
10918 (x86_linux_child_post_startup_inferior)
10919 (x86_linux_read_description, x86_linux_enable_btrace)
10920 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10921 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10922 methods of x86_linux_nat_target.
10923 (x86_linux_create_target): Delete. Bits folded ...
10924 (x86_linux_add_target): ... here. Now takes a linux_nat_target
10925 pointer.
10926 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10927 (x86_linux_nat_target): New class.
10928 (x86_linux_create_target): Delete.
10929 (x86_linux_add_target): Now takes a linux_nat_target pointer.
10930 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10931 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10932 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10933 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10934 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10935 make extern.
10936 (x86_use_watchpoints): Delete.
10937 * x86-nat.h: Include "breakpoint.h" and "target.h".
10938 (x86_use_watchpoints): Delete.
10939 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10940 (x86_stopped_by_watchpoint, x86_stopped_data_address)
10941 (x86_insert_watchpoint, x86_remove_watchpoint)
10942 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10943 (x86_stopped_by_hw_breakpoint): New declarations.
10944 (x86_nat_target): New template class.
10945
10946 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10947 (the_ppc_linux_nat_target): New.
10948 (ppc_linux_fetch_inferior_registers)
10949 (ppc_linux_can_use_hw_breakpoint)
10950 (ppc_linux_region_ok_for_hw_watchpoint)
10951 (ppc_linux_ranged_break_num_registers)
10952 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10953 (ppc_linux_insert_mask_watchpoint)
10954 (ppc_linux_remove_mask_watchpoint)
10955 (ppc_linux_can_accel_watchpoint_condition)
10956 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10957 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10958 (ppc_linux_watchpoint_addr_within_range)
10959 (ppc_linux_masked_watch_num_registers)
10960 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10961 (ppc_linux_read_description): Refactor as methods of
10962 ppc_linux_nat_target.
10963 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
10964
10965 * procfs.c (procfs_xfer_partial): Delete forward declaration.
10966 (procfs_target): New class.
10967 (the_procfs_target): New.
10968 (procfs_target): Delete function.
10969 (procfs_auxv_parse, procfs_attach, procfs_detach)
10970 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10971 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10972 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10973 (procfs_create_inferior, procfs_update_thread_list)
10974 (procfs_thread_alive, procfs_pid_to_str)
10975 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10976 (procfs_stopped_data_address, procfs_insert_watchpoint)
10977 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10978 (proc_find_memory_regions, procfs_info_proc)
10979 (procfs_make_note_section): Refactor as methods of procfs_target.
10980 (_initialize_procfs): Adjust.
10981 * sol-thread.c (sol_thread_target): New class.
10982 (sol_thread_ops): Now a sol_thread_target.
10983 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10984 (sol_thread_fetch_registers, sol_thread_store_registers)
10985 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10986 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10987 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10988 (init_sol_thread_ops): Delete.
10989 (_initialize_sol_thread): Adjust. Remove references to
10990 init_sol_thread_ops and complete_target_initialization.
10991
10992 * windows-nat.c (windows_nat_target): New class.
10993 (windows_fetch_inferior_registers)
10994 (windows_store_inferior_registers, windows_resume, windows_wait)
10995 (windows_attach, windows_detach, windows_pid_to_exec_file)
10996 (windows_files_info, windows_create_inferior)
10997 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10998 (windows_close, windows_pid_to_str, windows_xfer_partial)
10999 (windows_get_tib_address, windows_get_ada_task_ptid)
11000 (windows_thread_name, windows_thread_alive): Refactor as
11001 windows_nat_target methods.
11002 (do_initial_windows_stuff): Adjust.
11003 (windows_target): Delete function.
11004 (_initialize_windows_nat): Adjust.
11005
11006 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
11007 (darwin_mourn_inferior, darwin_kill_inferior)
11008 (darwin_create_inferior, darwin_attach, darwin_detach)
11009 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
11010 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
11011 (darwin_supports_multi_process): Refactor as darwin_nat_target
11012 methods.
11013 (darwin_resume_to, darwin_files_info): Delete.
11014 (_initialize_darwin_inferior): Rename to ...
11015 (_initialize_darwin_nat): ... this. Adjust to C++ification.
11016 * darwin-nat.h: Include "inf-child.h".
11017 (darwin_nat_target): New class.
11018 (darwin_complete_target): Delete.
11019 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
11020 (darwin_target): New.
11021 (i386_darwin_fetch_inferior_registers)
11022 (i386_darwin_store_inferior_registers): Refactor as methods of
11023 darwin_nat_target.
11024 (darwin_complete_target): Delete, with ...
11025 (_initialize_i386_darwin_nat): ... bits factored out here.
11026
11027 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
11028 (the_alpha_linux_nat_target): New.
11029 (alpha_linux_register_u_offset): Refactor as
11030 alpha_linux_nat_target method.
11031 (_initialize_alpha_linux_nat): Adjust.
11032 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
11033 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11034 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
11035 methods of linux_nat_trad_target.
11036 (linux_trad_target): Delete.
11037 * linux-nat-trad.h (linux_trad_target): Delete function.
11038 (linux_nat_trad_target): New class.
11039 * mips-linux-nat.c (mips_linux_nat_target): New class.
11040 (super_fetch_registers, super_store_registers, super_close):
11041 Delete.
11042 (the_mips_linux_nat_target): New.
11043 (mips64_linux_regsets_fetch_registers)
11044 (mips64_linux_regsets_store_registers)
11045 (mips64_linux_fetch_registers, mips64_linux_store_registers)
11046 (mips_linux_register_u_offset, mips_linux_read_description)
11047 (mips_linux_can_use_hw_breakpoint)
11048 (mips_linux_stopped_by_watchpoint)
11049 (mips_linux_stopped_data_address)
11050 (mips_linux_region_ok_for_hw_watchpoint)
11051 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
11052 (mips_linux_close): Refactor as methods of mips_linux_nat.
11053 (_initialize_mips_linux_nat): Adjust to C++ification.
11054
11055 * aix-thread.c (aix_thread_target): New class.
11056 (aix_thread_ops): Now an aix_thread_target.
11057 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11058 (aix_thread_fetch_registers, aix_thread_store_registers)
11059 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11060 (aix_thread_thread_alive, aix_thread_pid_to_str)
11061 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
11062 Refactor as methods of aix_thread_target.
11063 (init_aix_thread_ops): Delete.
11064 (_initialize_aix_thread): Remove references to init_aix_thread_ops
11065 and complete_target_initialization.
11066 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
11067 (rs6000_nat_target): New class.
11068 (the_rs6000_nat_target): New.
11069 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
11070 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
11071 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
11072 (super_create_inferior): Delete.
11073 (_initialize_rs6000_nat): Adjust to C++ification.
11074
11075 * arm-linux-nat.c (arm_linux_nat_target): New class.
11076 (the_arm_linux_nat_target): New.
11077 (arm_linux_fetch_inferior_registers)
11078 (arm_linux_store_inferior_registers, arm_linux_read_description)
11079 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
11080 (arm_linux_remove_hw_breakpoint)
11081 (arm_linux_region_ok_for_hw_watchpoint)
11082 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
11083 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
11084 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
11085 arm_linux_nat_target.
11086 (_initialize_arm_linux_nat): Adjust to C++ification.
11087
11088 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
11089 (the_aarch64_linux_nat_target): New.
11090 (aarch64_linux_fetch_inferior_registers)
11091 (aarch64_linux_store_inferior_registers)
11092 (aarch64_linux_child_post_startup_inferior)
11093 (aarch64_linux_read_description)
11094 (aarch64_linux_can_use_hw_breakpoint)
11095 (aarch64_linux_insert_hw_breakpoint)
11096 (aarch64_linux_remove_hw_breakpoint)
11097 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
11098 (aarch64_linux_region_ok_for_hw_watchpoint)
11099 (aarch64_linux_stopped_data_address)
11100 (aarch64_linux_stopped_by_watchpoint)
11101 (aarch64_linux_watchpoint_addr_within_range)
11102 (aarch64_linux_can_do_single_step): Refactor as methods of
11103 aarch64_linux_nat_target.
11104 (super_post_startup_inferior): Delete.
11105 (_initialize_aarch64_linux_nat): Adjust to C++ification.
11106
11107 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
11108 (the_hppa_linux_nat_target): New.
11109 (hppa_linux_fetch_inferior_registers)
11110 (hppa_linux_store_inferior_registers): Refactor as methods of
11111 hppa_linux_nat_target.
11112 (_initialize_hppa_linux_nat): Adjust to C++ification.
11113
11114 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
11115 (the_ia64_linux_nat_target): New.
11116 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
11117 (ia64_linux_stopped_data_address)
11118 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
11119 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
11120 ia64_linux_nat_target methods.
11121 (super_xfer_partial): Delete.
11122 (_initialize_ia64_linux_nat): Adjust to C++ification.
11123
11124 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
11125 (the_m32r_linux_nat_target): New.
11126 (m32r_linux_fetch_inferior_registers)
11127 (m32r_linux_store_inferior_registers): Refactor as
11128 m32r_linux_nat_target methods.
11129 (_initialize_m32r_linux_nat): Adjust to C++ification.
11130
11131 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
11132 (the_m68k_linux_nat_target): New.
11133 (m68k_linux_fetch_inferior_registers)
11134 (m68k_linux_store_inferior_registers): Refactor as
11135 m68k_linux_nat_target methods.
11136 (_initialize_m68k_linux_nat): Adjust to C++ification.
11137
11138 * s390-linux-nat.c (s390_linux_nat_target): New class.
11139 (the_s390_linux_nat_target): New.
11140 (s390_linux_fetch_inferior_registers)
11141 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
11142 (s390_insert_watchpoint, s390_remove_watchpoint)
11143 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
11144 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
11145 (s390_auxv_parse, s390_read_description): Refactor as methods of
11146 s390_linux_nat_target.
11147 (_initialize_s390_nat): Adjust to C++ification.
11148
11149 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
11150 (the_sparc_linux_nat_target): New.
11151 (_initialize_sparc_linux_nat): Adjust to C++ification.
11152 * sparc-nat.c (sparc_fetch_inferior_registers)
11153 (sparc_store_inferior_registers): Remove target_ops parameter.
11154 * sparc-nat.h (sparc_fetch_inferior_registers)
11155 (sparc_store_inferior_registers): Remove target_ops parameter.
11156 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
11157 (the_sparc64_linux_nat_target): New.
11158 (_initialize_sparc64_linux_nat): Adjust to C++ification.
11159
11160 * spu-linux-nat.c (spu_linux_nat_target): New class.
11161 (the_spu_linux_nat_target): New.
11162 (spu_child_post_startup_inferior, spu_child_post_attach)
11163 (spu_child_wait, spu_fetch_inferior_registers)
11164 (spu_store_inferior_registers, spu_xfer_partial)
11165 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
11166 methods.
11167 (_initialize_spu_nat): Adjust to C++ification.
11168
11169 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
11170 (the_tilegx_linux_nat_target): New.
11171 (fetch_inferior_registers, store_inferior_registers):
11172 Refactor as methods.
11173 (_initialize_tile_linux_nat): Adjust to C++ification.
11174
11175 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
11176 (the_xtensa_linux_nat_target): New.
11177 (xtensa_linux_fetch_inferior_registers)
11178 (xtensa_linux_store_inferior_registers): Refactor as
11179 xtensa_linux_nat_target methods.
11180 (_initialize_xtensa_linux_nat): Adjust to C++ification.
11181
11182 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
11183 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
11184 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
11185 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
11186 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
11187 (fbsd_stopped_by_sw_breakpoint)
11188 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
11189 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
11190 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
11191 (fbsd_post_startup_inferior, fbsd_post_attach)
11192 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
11193 (fbsd_set_syscall_catchpoint)
11194 (super_xfer_partial, super_resume, super_wait)
11195 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
11196 (fbsd_handle_debug_trap): Remove target_ops parameter.
11197 (fbsd_nat_add_target): Delete.
11198 * fbsd-nat.h: Include "inf-ptrace.h".
11199 (fbsd_nat_add_target): Delete.
11200 (USE_SIGTRAP_SIGINFO): Define.
11201 (fbsd_nat_target): New class.
11202
11203 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
11204 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
11205 (amd64bsd_target): Delete.
11206 * amd64-bsd-nat.h: New file.
11207 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
11208 "x86-bsd-nat.h".
11209 (amd64_fbsd_nat_target): New class.
11210 (the_amd64_fbsd_nat_target): New.
11211 (amd64fbsd_read_description): Refactor as method of
11212 amd64_fbsd_nat_target.
11213 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11214 (_initialize_amd64fbsd_nat): Adjust to C++ification.
11215 * amd64-nat.h (amd64bsd_target): Delete function declaration.
11216 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
11217 (i386bsd_store_inferior_registers): Remove target_ops parameter.
11218 (i386bsd_target): Delete.
11219 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11220 (i386bsd_fetch_inferior_registers)
11221 (i386bsd_store_inferior_registers): Declare.
11222 (i386_bsd_nat_target): New class.
11223 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11224 (the_i386_fbsd_nat_target): New.
11225 (i386fbsd_resume, i386fbsd_read_description): Refactor as
11226 i386_fbsd_nat_target methods.
11227 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11228 (_initialize_i386fbsd_nat): Adjust to C++ification.
11229 * x86-bsd-nat.c (super_mourn_inferior): Delete.
11230 (x86bsd_mourn_inferior, x86bsd_target): Delete.
11231 (_initialize_x86_bsd_nat): Adjust to C++ification.
11232 * x86-bsd-nat.h: Include "x86-nat.h".
11233 (x86bsd_target): Delete declaration.
11234 (x86bsd_nat_target): New class.
11235
11236 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11237 (the_aarch64_fbsd_nat_target): New.
11238 (aarch64_fbsd_fetch_inferior_registers)
11239 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11240 aarch64_fbsd_nat_target.
11241 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11242 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11243 (the_alpha_bsd_nat_target): New.
11244 (alphabsd_fetch_inferior_registers)
11245 (alphabsd_store_inferior_registers): Refactor as
11246 alpha_bsd_nat_target methods.
11247 (_initialize_alphabsd_nat): Refactor as methods of
11248 alpha_bsd_nat_target.
11249 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11250 (the_amd64_nbsd_nat_target): New.
11251 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11252 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11253 (the_amd64_obsd_nat_target): New.
11254 (_initialize_amd64obsd_nat): Adjust to C++ification.
11255 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11256 (the_arm_fbsd_nat_target): New.
11257 (arm_fbsd_fetch_inferior_registers)
11258 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11259 (_initialize_arm_fbsd_nat): Refactor as methods of
11260 arm_fbsd_nat_target.
11261 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11262 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11263 (the_arm_netbsd_nat_target): New.
11264 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11265 arm_netbsd_nat_target.
11266 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11267 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11268 (the_hppa_nbsd_nat_target): New.
11269 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11270 hppa_nbsd_nat_target methods.
11271 (_initialize_hppanbsd_nat): Adjust to C++ification.
11272 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11273 (the_hppa_obsd_nat_target): New.
11274 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11275 methods of hppa_obsd_nat_target.
11276 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
11277 add_target.
11278 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11279 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
11280 add_target.
11281 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11282 (_initialize_i386obsd_nat): Use add_target.
11283 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11284 (the_m68k_bsd_nat_target): New.
11285 (m68kbsd_fetch_inferior_registers)
11286 (m68kbsd_store_inferior_registers): Refactor as methods of
11287 m68k_bsd_nat_target.
11288 (_initialize_m68kbsd_nat): Adjust to C++ification.
11289 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11290 (the_mips_fbsd_nat_target): New.
11291 (mips_fbsd_fetch_inferior_registers)
11292 (mips_fbsd_store_inferior_registers): Refactor as methods of
11293 mips_fbsd_nat_target.
11294 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
11295 add_target.
11296 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11297 (the_mips_nbsd_nat_target): New.
11298 (mipsnbsd_fetch_inferior_registers)
11299 (mipsnbsd_store_inferior_registers): Refactor as methods of
11300 mips_nbsd_nat_target.
11301 (_initialize_mipsnbsd_nat): Adjust to C++ification.
11302 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11303 (the_mips64_obsd_nat_target): New.
11304 (mips64obsd_fetch_inferior_registers)
11305 (mips64obsd_store_inferior_registers): Refactor as methods of
11306 mips64_obsd_nat_target.
11307 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
11308 add_target.
11309 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11310 nbsd_nat_target.
11311 * nbsd-nat.h: Include "inf-ptrace.h".
11312 (nbsd_nat_target): New class.
11313 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11314 (obsd_wait): Refactor as methods of obsd_nat_target.
11315 (obsd_add_target): Delete.
11316 * obsd-nat.h: Include "inf-ptrace.h".
11317 (obsd_nat_target): New class.
11318 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11319 (the_ppc_fbsd_nat_target): New.
11320 (ppcfbsd_fetch_inferior_registers)
11321 (ppcfbsd_store_inferior_registers): Refactor as methods of
11322 ppc_fbsd_nat_target.
11323 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
11324 add_target.
11325 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11326 (the_ppc_nbsd_nat_target): New.
11327 (ppcnbsd_fetch_inferior_registers)
11328 (ppcnbsd_store_inferior_registers): Refactor as methods of
11329 ppc_nbsd_nat_target.
11330 (_initialize_ppcnbsd_nat): Adjust to C++ification.
11331 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11332 (the_ppc_obsd_nat_target): New.
11333 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11334 methods of ppc_obsd_nat_target.
11335 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
11336 add_target.
11337 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11338 (the_sh_nbsd_nat_target): New.
11339 (shnbsd_fetch_inferior_registers)
11340 (shnbsd_store_inferior_registers): Refactor as methods of
11341 sh_nbsd_nat_target.
11342 (_initialize_shnbsd_nat): Adjust to C++ification.
11343 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11344 (inf_ptrace_xfer_partial): Delete.
11345 (sparc_xfer_partial, sparc_target): Delete.
11346 * sparc-nat.h (sparc_fetch_inferior_registers)
11347 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11348 (sparc_target): Delete function declaration.
11349 (sparc_target): New template class.
11350 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11351 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11352 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11353 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11354 add_target.
11355 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11356 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11357 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11358 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11359 add_target.
11360 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11361 (the_vax_bsd_nat_target): New.
11362 (vaxbsd_fetch_inferior_registers)
11363 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11364 methods.
11365 (_initialize_vaxbsd_nat): Adjust to C++ification.
11366
11367 * bsd-kvm.c (bsd_kvm_target): New class.
11368 (bsd_kvm_ops): Now a bsd_kvm_target.
11369 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11370 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11371 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11372 bsd_kvm_target.
11373 (bsd_kvm_return_one): Delete.
11374 (bsd_kvm_add_target): Adjust to C++ification.
11375
11376 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11377 (nto_procfs_target_procfs): New classes.
11378 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11379 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11380 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11381 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11382 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11383 (procfs_remove_hw_breakpoint, procfs_resume)
11384 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11385 (procfs_kill_inferior, procfs_store_registers)
11386 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11387 as methods of nto_procfs_target.
11388 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11389 (nto_native_ops): Delete.
11390 (procfs_open, procfs_native_open): Delete.
11391 (nto_native_ops): Now an nto_procfs_target_native.
11392 (init_procfs_targets): Adjust to C++ification.
11393 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11394 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11395 Refactor as methods of nto_procfs_target.
11396
11397 * go32-nat.c (go32_nat_target): New class.
11398 (the_go32_nat_target): New.
11399 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11400 (go32_store_registers, go32_xfer_partial, go32_files_info)
11401 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11402 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11403 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11404 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11405 (go32_target): Delete.
11406 (_initialize_go32_nat): Adjust to C++ification.
11407
11408 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11409 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11410 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11411 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11412 gnu_nat_target.
11413 (gnu_target): Delete.
11414 * gnu-nat.h (gnu_target): Delete.
11415 (gnu_nat_target): New class.
11416 * i386-gnu-nat.c (gnu_base_target): New.
11417 (i386_gnu_nat_target): New class.
11418 (the_i386_gnu_nat_target): New.
11419 (_initialize_i386gnu_nat): Adjust to C++ification.
11420
3fffc070
PA
114212018-05-02 Pedro Alves <palves@redhat.com>
11422
11423 * bfd-target.c (target_bfd_xclose): Rename to ...
11424 (target_bfd_close): ... this.
11425 (target_bfd_reopen): Adjust.
11426 * target.c (target_close): Remove references to to_xclose.
11427 * target.h (target_ops::to_xclose): Delete.
11428 (target_ops::to_close): Update comments.
11429
6798487f
PA
114302018-05-02 Pedro Alves <palves@redhat.com>
11431
11432 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11433 "linux-nat.h".
11434 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11435 * inf-ptrace.c (inf_ptrace_register_u_offset)
11436 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11437 (inf_ptrace_store_register, inf_ptrace_store_registers)
11438 (inf_ptrace_trad_target): Move to ...
11439 * linux-nat-trad.c: ... this new file.
11440 * linux-nat-trad.h: New file.
11441 * linux-nat.c (linux_target_install_ops): Make extern.
11442 (linux_trad_target): Delete.
11443 * linux-nat.h (linux_trad_target): Delete declaration.
11444 (linux_target_install_ops): Declare.
11445 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11446 "linux-nat.h".
11447
c1955e17
PA
114482018-05-02 Pedro Alves <palves@redhat.com>
11449
11450 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11451 procfs_target/add_target here.
11452 * procfs.c (procfs_target): Make static.
11453 (_initialize_procfs): Call add_target here.
11454 * procfs.h (struct target_ops): Remove forward declaration.
11455 (procfs_target): Remove declaration.
11456 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11457
b5c8fcb1
PA
114582018-05-02 Pedro Alves <palves@redhat.com>
11459
11460 * procfs.c (procfs_stopped_by_watchpoint)
11461 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11462 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11463 Forward declare.
11464 (procfs_use_watchpoints): Delete, move contents...
11465 (procfs_target): ... here.
11466 * procfs.h (procfs_use_watchpoints): Delete declaration.
11467 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11468 procfs_use_watchpoints.
11469 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11470 procfs_use_watchpoints.
11471
0489430a
TT
114722018-05-02 Tom Tromey <tom@tromey.com>
11473
11474 PR python/20084:
11475 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11476 and var_zuinteger_unlimited.
11477 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11478 and PARAM_ZUINTEGER_UNLIMITED.
11479 (set_parameter_value): Handle var_zuinteger and
11480 var_zuinteger_unlimited.
11481 (add_setshow_generic): Likewise.
11482 (parmpy_init): Likewise.
11483
1632f8ba
DR
114842018-04-28 Dan Robertson <danlrobertson89@gmail.com>
11485
11486 PR rust/23124
11487 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11488 pointer is not null before dereferencing it.
11489
76761936
TT
114902018-04-30 Tom Tromey <tom@tromey.com>
11491
11492 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11493 is_mi_like_p.
11494
2d33446d
TT
114952018-04-30 Tom Tromey <tom@tromey.com>
11496
11497 * breakpoint.c (mention): Remove use of is_mi_like_p.
11498 (print_mention_ranged_breakpoint): Likewise.
11499 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11500 of is_mi_like_p.
11501
f3c6abab
TT
115022018-04-30 Tom Tromey <tom@tromey.com>
11503
11504 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11505
40c03530
TT
115062018-04-30 Tom Tromey <tom@tromey.com>
11507
11508 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11509 (info_spu_event_command): Remove some uses of is_mi_like_p.
11510
2038b7fd
TT
115112018-04-30 Tom Tromey <tom@tromey.com>
11512
11513 * python/py-framefilter.c (py_print_single_arg)
11514 (enumerate_locals, py_print_args, py_print_frame): Remove some
11515 uses of is_mi_like_p.
11516
4904c3c6
TT
115172018-04-30 Tom Tromey <tom@tromey.com>
11518
11519 * ui-out.c: Update.
11520 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11521 * ui-out.h (ui_out::is_mi_like_p): Now const.
11522 (ui_out::do_is_mi_like_p): Now const.
11523 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11524
7c66fffc
TT
115252018-04-30 Tom Tromey <tom@tromey.com>
11526
11527 * varobj.c (varobj_set_visualizer): Use new_reference.
11528 * python/python.c (gdbpy_decode_line): Use new_reference.
11529 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11530 new_reference.
11531
bbfa6f00
TT
115322018-04-30 Tom Tromey <tom@tromey.com>
11533
11534 * varobj.c (install_new_value): Use new_reference.
11535 * value.h (value_incref): Return void. Swap intro comment with
11536 value_decref.
11537 * value.c (set_value_parent): Use new_reference.
11538 (value_incref): Return void. Update intro comment.
11539 (release_value): Use new_reference.
11540 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11541
1831a9f9
TT
115422018-04-30 Tom Tromey <tom@tromey.com>
11543
11544 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11545 * gdb_bfd.h (new_bfd_ref): Remove.
11546 (gdb_bfd_open): Update comment.
11547 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11548 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11549 (gdb_bfd_fdopenr): Use new_reference.
11550 * exec.c (exec_file_attach): Use new_reference.
11551
7c1b5f3d
TT
115522018-04-30 Tom Tromey <tom@tromey.com>
11553
11554 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11555 method.
11556
e11fb955
TT
115572018-04-30 Tom Tromey <tom@tromey.com>
11558
11559 * jit.c (jit_read_code_entry): Use type_align.
11560 * i386-tdep.c (i386_gdbarch_init): Don't call
11561 set_gdbarch_long_long_align_bit.
11562 * gdbarch.sh: Remove long_long_align_bit.
11563 * gdbarch.c, gdbarch.h: Rebuild.
11564 * arc-tdep.c (arc_type_align): New function.
11565 (arc_gdbarch_init): Use arc_type_align. Don't call
11566 set_gdbarch_long_long_align_bit.
11567
2fff16dd
TT
115682018-04-30 Tom Tromey <tom@tromey.com>
11569
11570 * rust-lang.c (rust_type_alignment): Remove.
11571 (rust_composite_type): Use type_align.
11572
6d7bb824
TT
115732018-04-30 Tom Tromey <tom@tromey.com>
11574
11575 * NEWS: Mention Type.align.
11576 * python/py-type.c (typy_get_alignof): New function.
11577 (type_object_getset): Add "alignof".
11578
007e1530
TT
115792018-04-30 Tom Tromey <tom@tromey.com>
11580
11581 PR exp/17095:
11582 * NEWS: Update.
11583 * std-operator.def (UNOP_ALIGNOF): New operator.
11584 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11585 New.
11586 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11587 * c-lang.c (c_op_print_tab): Add alignof.
11588 * c-exp.y (ALIGNOF): New token.
11589 (exp): Add "ALIGNOF" production.
11590 (ident_tokens): Add _Alignof and alignof.
11591
2b4424c3
TT
115922018-04-30 Tom Tromey <tom@tromey.com>
11593
11594 * i386-tdep.c (i386_type_align): New function.
11595 (i386_gdbarch_init): Update.
11596 * gdbarch.sh (type_align): New method.
11597 * gdbarch.c, gdbarch.h: Rebuild.
11598 * arch-utils.h (default_type_align): Declare.
11599 * arch-utils.c (default_type_align): New function.
11600 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11601 (struct type) <align_log2>: New field.
11602 <instance_flags>: Now a bitfield.
11603 (TYPE_RAW_ALIGN): New macro.
11604 (type_align, type_raw_align, set_type_align): Declare.
11605 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11606 functions.
11607 * dwarf2read.c (quirk_rust_enum): Set type alignment.
11608 (get_alignment, maybe_set_alignment): New functions.
11609 (read_structure_type, read_enumeration_type, read_array_type)
11610 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11611 (read_subrange_type, read_base_type): Set type alignment.
11612
d33bc52e
SM
116132018-04-30 Simon Marchi <simon.marchi@ericsson.com>
11614
11615 * dwarf2read.c (read_index_from_section): Use bool.
11616
e28b63a9
FG
116172018-04-29 Fabian Groffen <grobian@gentoo.org>
11618
11619 PR gdb/22950
11620 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11621 with #ifdef.
11622
cd8c76e4
JR
116232018-04-29 John Reiser <jreiser@BitWagon.com>
11624
11625 PR build/22873
11626 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11627 last step, and do it atomically.
11628
476d250e
AO
116292018-04-27 Alexandre Oliva <aoliva@redhat.com>
11630
11631 * compile/compile-c-types.c (convert_int, convert_float):
11632 Update for C FE v1.
11633
6873858b
TT
116342018-04-27 Tom Tromey <tom@tromey.com>
11635
11636 PR rust/22545:
11637 * rust-lang.c (rust_inclusive_range_type_p): New function.
11638 (rust_range): Handle inclusive ranges.
11639 (rust_compute_range): Likewise.
11640 * rust-exp.y (struct rust_op) <inclusive>: New field.
11641 (DOTDOTEQ): New constant.
11642 (range_expr): Add "..=" productions.
11643 (operator_tokens): Add "..=" token.
11644 (ast_range): Add "inclusive" parameter.
11645 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11646 ranges.
11647 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11648 bounds values.
11649 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11650 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11651 Update comments.
11652 * expprint.c (print_subexp_standard): Handle new bounds values.
11653 (dump_subexp_body_standard): Likewise.
11654
632e107b
TT
116552018-04-27 Tom Tromey <tom@tromey.com>
11656
11657 * configure: Rebuild.
11658 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11659 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11660 "OVERRIDE".
11661 (class symbol_needs_eval_context): Likewise.
11662 * dwarf2read.c (mock_mapped_index::symbol_name_count)
11663 (mock_mapped_index::symbol_name_at): Use "override". Remove
11664 "virtual".
11665 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11666 "override".
11667 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11668 * aarch64-tdep.c (instruction_reader::read): Use "override".
11669 (instruction_reader_test::read): Likewise.
11670 * arm-tdep.c (instruction_reader::read): Use "override".
11671 (instruction_reader_thumb::read): Likewise.
11672
b75abf5b
AK
116732018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
11674
11675 PR remote/9665
11676 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11677 instead of remote_send.
11678 (remote_send): Remove.
11679
79188d8d
PA
116802018-04-26 Pedro Alves <palves@redhat.com>
11681
11682 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11683 find_function_start_sal instead of find_pc_line.
11684
f50776aa
PA
116852018-04-26 Pedro Alves <palves@redhat.com>
11686
11687 * breakpoint.c (set_breakpoint_location_function): Handle
11688 mst_data_gnu_ifunc.
11689 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11690 * elfread.c (elf_symtab_read): Give data symbols with
11691 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11692 (elf_rel_plt_read): Update comment.
11693 * linespec.c (convert_linespec_to_sals): Handle
11694 mst_data_gnu_ifunc.
11695 (minsym_found): Handle mst_data_gnu_ifunc.
11696 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11697 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11698 * parse.c (find_minsym_type_and_address): Handle
11699 mst_data_gnu_ifunc.
11700 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11701 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11702 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11703 comment.
11704 <mst_data_gnu_ifunc>: New enumerator.
11705
20944a6e
PA
117062018-04-26 Pedro Alves <palves@redhat.com>
11707
11708 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11709 (lookup_minimal_symbol_by_pc_section): ... this. Replace
11710 'want_trampoline' parameter by a lookup_msym_prefer parameter.
11711 Handle it.
11712 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11713 (lookup_minimal_symbol_by_pc): Adjust.
11714 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11715 (lookup_solib_trampoline_symbol_by_pc): Adjust.
11716 * minsyms.h (lookup_msym_prefer): New enum.
11717 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11718 parameter by a lookup_msym_prefer parameter.
11719
1adeb822
PA
117202018-04-26 Pedro Alves <palves@redhat.com>
11721
11722 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11723 ends in "@plt" instead of looking at the symbol's section.
11724
a0aca7b0
PA
117252018-04-26 Pedro Alves <palves@redhat.com>
11726
11727 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
11728 all references.
11729 (find_pc_partial_function_gnu_ifunc): Rename to ...
11730 (find_pc_partial_function): ... this, and remove references to
11731 'is_gnu_ifunc_p'.
11732 (find_pc_partial_function): Delete old implementation.
11733 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11734
76af0f26
PA
117352018-04-26 Pedro Alves <palves@redhat.com>
11736
11737 * linespec.c (struct bound_minimal_symbol_search_key): New.
11738 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
11739 skip first line if we found a GNU ifunc minimal symbol by name.
11740 (compare_msymbols): Change parameters to work with a destructured
11741 lhs minsym.
11742 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
11743 functions.
11744
3467ec66
PA
117452018-04-26 Pedro Alves <palves@redhat.com>
11746
11747 * breakpoint.c (set_breakpoint_location_function): Don't resolve
11748 ifunc targets here. Instead, if we have an ifunc minsym, use its
11749 address/name.
11750 (add_location_to_breakpoint): Store the minsym and the objfile in
11751 the breakpoint location.
11752 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11753 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11754 Record the minsym in the sal.
11755 * symtab.h (symtab_and_line) <msymbol>: New field.
11756
28f4fa4d
PA
117572018-04-26 Pedro Alves <palves@redhat.com>
11758
11759 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11760 unless we actually resolved the ifunc.
11761
ca31ab1d
PA
117622018-04-26 Pedro Alves <palves@redhat.com>
11763
11764 * c-exp.y (variable production): Prefer ifunc minsyms over
11765 regular function symbols.
11766 * symtab.c (find_gnu_ifunc): New function.
11767 * minsyms.h (lookup_msym_prefer): New enum.
11768 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11769 parameter by a lookup_msym_prefer parameter.
11770 * symtab.h (find_gnu_ifunc): New declaration.
11771
8388016d
PA
117722018-04-26 Pedro Alves <palves@redhat.com>
11773
11774 * blockframe.c (find_gnu_ifunc_target_type): New function.
11775 (find_function_type): New.
11776 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11777 return a value with a memory address.
11778 (eval_call): For calls to GNU ifunc functions, try to find the
11779 type of the target function from the type that the resolver
11780 returns.
11781 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11782 symbols.
11783 * infcall.c (find_function_return_type): Delete.
11784 (find_function_addr): Add 'function_type' parameter. For calls to
11785 GNU ifunc functions, try to find the type of the target function
11786 from the type that the resolver returns, and return it via
11787 FUNCTION_TYPE.
11788 (call_function_by_hand_dummy): Adjust to use the function type
11789 returned by find_function_addr.
11790 (find_function_addr): Add 'function_type' parameter and move
11791 description here.
11792 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11793 declarations.
11794
a376e11d
PA
117952018-04-26 Pedro Alves <palves@redhat.com>
11796
11797 * c-exp.y (variable production): Skip finding an alias for ifunc
11798 symbols.
11799
02e169e2
PA
118002018-04-26 Pedro Alves <palves@redhat.com>
11801
11802 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11803
249b5733
PA
118042018-04-25 Pedro Alves <palves@redhat.com>
11805
11806 * infcmd.c (kill_command): Print the pid as string, not the whole
11807 thread's ptid. Add comment. s/has been killed/killed/ in output
11808 message.
11809 * remote.c (remote_detach_1): Print the pid as string, not the
11810 whole thread's ptid.
11811
f67c0c91
SDJ
118122018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11813 Sergio Durigan Junior <sergiodj@redhat.com>
11814 Pedro Alves <palves@redhat.com>
11815
11816 * infcmd.c (kill_command): Print message when inferior has
11817 been killed.
11818 * inferior.c (print_inferior_events): Remove 'static'. Set as
11819 '1'.
11820 (add_inferior): Improve message printed when
11821 'print_inferior_events' is on.
11822 (exit_inferior): Remove message printed when
11823 'print_inferior_events' is on.
11824 (detach_inferior): Improve message printed when
11825 'print_inferior_events' is on.
11826 (initialize_inferiors): Use 'add_inferior_silent' to set
11827 'current_inferior_'.
11828 * inferior.h (print_inferior_events): Declare here as
11829 'extern'.
11830 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11831 '[Detaching...]' messages when 'print_inferior_events' is on.
11832 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
11833 as prefix/suffix for messages. Remove periods. Fix erroneous
11834 'Detaching after fork from child...', replace it by '... from
11835 parent...'.
11836 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11837 prefix/suffix when printing 'Detaching...' messages. Print
11838 them when 'print_inferior_events' is on.
11839 * remote.c (remote_detach_1): Print message when detaching
11840 from inferior and '!is_fork_parent'.
11841
e427af18
TT
118422018-04-24 Tom Tromey <tom@tromey.com>
11843
11844 * cli-out.h: Reindent.
11845
05b1d8d6
TT
118462018-04-24 Tom Tromey <tom@tromey.com>
11847
11848 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11849 (cli_ui_out::do_field_string): Use fputs_filtered.
11850 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11851
a95c7dab
TT
118522018-04-23 Tom Tromey <tom@tromey.com>
11853
11854 * guile/scm-frame.c (gdbscm_frame_read_var): Use
11855 gdb::unique_xmalloc_ptr.
11856
458412c3
TT
118572018-04-23 Tom Tromey <tom@tromey.com>
11858
11859 * configure: Rebuild.
11860
db86b02b
RS
118612018-04-22 Rajendra SY <rajendra.sy@gmail.com>
11862
11863 PR gdb/23095
11864 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11865 prepare_for_testing. Set normal_bp to r_debug_state if target
11866 is bsd.
11867
00aecdcf
PA
118682018-04-21 Pedro Alves <palves@redhat.com>
11869 Rajendra SY <rajendra.sy@gmail.com>
11870
11871 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11872 * remote.c (extended_remote_attach): In all-stop mode, mark the
11873 thread as executing.
11874
224608c3
PW
118752018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11876
11877 * thread.c (thread_apply_all_command): Fix comment.
11878 (thread_command): Fix comment.
11879
3b74854b
AH
118802018-04-10 Alan Hayward <alan.hayward@arm.com>
11881
11882 * common/tdesc.h (tdesc_create_feature): Remove xml filename
11883 parameter.
11884 * features/aarch64-core.c (create_feature_aarch64_core):
11885 Regenerate.
11886 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11887 Likewise.
11888 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11889 Likewise.
11890 * features/i386/32bit-avx512.c
11891 (create_feature_i386_32bit_avx512): Likewise.
11892 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11893 Likewise.
11894 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11895 Likewise.
11896 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11897 Likewise.
11898 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11899 Likewise.
11900 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11901 Likewise.
11902 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11903 Likewise.
11904 * features/i386/64bit-avx512.c
11905 (create_feature_i386_64bit_avx512): Likewise.
11906 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11907 Likewise.
11908 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11909 Likewise.
11910 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11911 Likewise.
11912 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11913 Likewise.
11914 * features/i386/64bit-segments.c
11915 (create_feature_i386_64bit_segments): Likewise.
11916 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11917 Likewise.
11918 * features/i386/x32-core.c
11919 (create_feature_i386_x32_core): Likewise.
11920 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11921 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11922 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11923 * target-descriptions.c: In generated code, don't pass xml
11924 filename.
11925
e98577a9
AH
119262018-04-18 Alan Hayward <alan.hayward@arm.com>
11927
11928 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11929 (print_xml_feature::visit_post): Likewise.
11930 (print_xml_feature::visit): Likewise.
11931 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11932 (print_xml_feature): Add new class.
11933 * regformats/regdat.sh: Null xmltarget on feature targets.
11934 * target-descriptions.c (struct target_desc): Add xmltarget.
11935 (maintenance_check_tdesc_xml_convert): Add unittest function.
11936 (tdesc_get_features_xml): Add function to get xml.
11937 (maintenance_check_xml_descriptions): Test xml generation.
11938 * xml-tdesc.c (string_read_description_xml): Add function.
11939 * xml-tdesc.h (string_read_description_xml): Add declaration.
11940
ad7fc756
AH
119412018-04-18 Alan Hayward <alan.hayward@arm.com>
11942
11943 * features/Makefile: Add feature marker to targets with new style
11944 target descriptions.
11945 * regformats/aarch64.dat: Regenerate.
11946 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11947 * regformats/i386/amd64-avx-linux.dat: Likewise.
11948 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11949 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11950 * regformats/i386/amd64-linux.dat: Likewise.
11951 * regformats/i386/amd64-mpx-linux.dat: Likewise.
11952 * regformats/i386/amd64.dat: Likewise.
11953 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11954 * regformats/i386/i386-avx-linux.dat: Likewise.
11955 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11956 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11957 * regformats/i386/i386-linux.dat: Likewise.
11958 * regformats/i386/i386-mmx-linux.dat: Likewise.
11959 * regformats/i386/i386-mpx-linux.dat: Likewise.
11960 * regformats/i386/i386.dat: Likewise.
11961 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11962 * regformats/i386/x32-avx-linux.dat: Likewise.
11963 * regformats/i386/x32-linux.dat: Likewise.
11964 * regformats/tic6x-c62x-linux.dat: Likewise.
11965 * regformats/tic6x-c64x-linux.dat: Likewise.
11966 * regformats/tic6x-c64xp-linux.dat: Likewise.
11967 * regformats/regdat.sh: Parse feature marker.
11968
d278f585
AH
119692018-04-18 Alan Hayward <alan.hayward@arm.com>
11970
11971 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11972 (tdesc_osabi_name): Likewise.
11973 * target-descriptions.c (tdesc_architecture_name): Add new
11974 function.
11975 (tdesc_osabi_name): Likewise.
11976
eee8a18d
AH
119772018-04-18 Alan Hayward <alan.hayward@arm.com>
11978
11979 * common/tdesc.c (tdesc_predefined_type): Move to here.
11980 (tdesc_named_type): Likewise.
11981 (tdesc_create_vector): Likewise.
11982 (tdesc_create_struct): Likewise.
11983 (tdesc_set_struct_size): Likewise.
11984 (tdesc_create_union): Likewise.
11985 (tdesc_create_flags): Likewise.
11986 (tdesc_create_enum): Likewise.
11987 (tdesc_add_field): Likewise.
11988 (tdesc_add_typed_bitfield): Likewise.
11989 (tdesc_add_bitfield): Likewise.
11990 (tdesc_add_flag): Likewise.
11991 (tdesc_add_enum_value): Likewise.
11992 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11993 (struct tdesc_type_vector): Likewise.
11994 (struct tdesc_type_field): Likewise.
11995 (struct tdesc_type_with_fields): Likewise.
11996 (tdesc_create_enum): Add declaration.
11997 (tdesc_add_typed_bitfield): Likewise.
11998 (tdesc_add_enum_value): Likewise.
11999 * target-descriptions.c (tdesc_type_field): Move from here.
12000 (tdesc_type_builtin): Likewise.
12001 (tdesc_type_vector): Likewise.
12002 (tdesc_type_with_fields): Likewise.
12003 (tdesc_predefined_types): Likewise.
12004 (tdesc_named_type): Likewise.
12005 (tdesc_create_vector): Likewise.
12006 (tdesc_create_struct): Likewise.
12007 (tdesc_set_struct_size): Likewise.
12008 (tdesc_create_union): Likewise.
12009 (tdesc_create_flags): Likewise.
12010 (tdesc_create_enum): Likewise.
12011 (tdesc_add_field): Likewise.
12012 (tdesc_add_typed_bitfield): Likewise.
12013 (tdesc_add_bitfield): Likewise.
12014 (tdesc_add_flag): Likewise.
12015 (tdesc_add_enum_value): Likewise.
12016 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
12017 (tdesc_add_typed_bitfield): Likewise.
12018 (tdesc_add_enum_value): Likewise.
12019
82ec9bc7
AH
120202018-04-18 Alan Hayward <alan.hayward@arm.com>
12021
12022 * common/tdesc.c (tdesc_feature::accept): Move to here.
12023 (tdesc_feature::operator==): Likewise.
12024 (tdesc_create_reg): Likewise.
12025 * common/tdesc.h (tdesc_type_kind): Likewise.
12026 (struct tdesc_type): Likewise.
12027 (struct tdesc_feature): Likewise.
12028 * regformats/regdat.sh: Create a feature.
12029 * target-descriptions.c (tdesc_type_kind): Move from here.
12030 (tdesc_type): Likewise.
12031 (tdesc_type_up): Likewise.
12032 (tdesc_feature): Likewise.
12033 (tdesc_create_reg): Likewise.
12034
ea3e7d71
AH
120352018-04-18 Alan Hayward <alan.hayward@arm.com>
12036
12037 * Makefile.in: Add arch/tdesc.c
12038 * common/tdesc.c: New file.
12039 * common/tdesc.h (tdesc_element_visitor): Move to here.
12040 (tdesc_element): Likewise.
12041 (tdesc_reg): Likewise.
12042 (tdesc_reg_up): Likewise.
12043 * regformats/regdef.h (reg): Add offset to constructors.
12044 * target-descriptions.c (tdesc_element_visitor): Move from here.
12045 (tdesc_element): Likewise.
12046 (tdesc_reg): Likewise.
12047 (tdesc_reg_up): Likewise.
12048
bedda9ac
TT
120492018-04-17 Tom Tromey <tom@tromey.com>
12050
12051 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
12052 discriminant field.
12053
a037790e
TT
120542018-04-17 Tom Tromey <tom@tromey.com>
12055
12056 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
12057
c7dcbf88
AA
120582018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
12059
12060 * symtab.c (print_symbol_info): Skip printing filename and line
12061 number when `last' is NULL.
12062 (symtab_symbol_info): Use empty string instead of NULL for first
12063 invocation of print_symbol_info.
12064 (rbreak_command): Pass NULL to `last' parameter of
12065 print_symbol_info.
12066
07d28c77
SM
120672018-04-16 Simon Marchi <simon.marchi@ericsson.com>
12068
12069 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
12070 instead of nullptr.
12071
8a3de5e1
PA
120722018-04-16 Pedro Alves <palves@redhat.com>
12073
12074 * MAINTAINERS (sh): Remove.
12075 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
12076 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
12077 (ALLDEPFILES): Remove sh64-tdep.c.
12078 * NEWS: Mentions that support for SH-5/SH64 is removed.
12079 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
12080 (sh*-*-openbsd*): Ditto.
12081 (sh64-*-elf*): Remove.
12082 (sh*): Remove.
12083 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
12084 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
12085 * sh-tdep.c: No longer include "sh64-tdep.h".
12086 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
12087 * sh64-tdep.c, sh64-tdep.h: Remove files.
12088
a2a79012
PA
120892018-04-16 Pedro Alves <palves@redhat.com>
12090
12091 * MAINTAINERS: Remove m88k.
12092 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
12093 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
12094 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
12095 * NEWS: Mention that support for m88k was removed.
12096 * configure.host (m88*-*-*): Remove support.
12097 * configure.nat (m88k-*-*): Remove support.
12098 * configure.tgt (m88*-*-openbsd*): Remove.
12099 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
12100
eda4efb1
SM
121012018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
12102
12103 * configure.tgt (x86_tobjs): New variable.
12104 (amd64_tobjs, i386_tobjs): Use it.
12105
b744723f
AA
121062018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12107
12108 * symtab.c (print_symbol_info): Precede the symbol definition by
12109 the line number when available.
12110 * NEWS: Advertise this enhancement.
12111
4a4495d6
MM
121122018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12113
12114 * NEWS (New options): announce set/show record btrace cpu.
12115 * btrace.c: Include record-btrace.h.
12116 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
12117 the vendor is unknown.
12118 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
12119 Maybe overwrite the btrace configuration's cpu.
12120 (btrace_compute_ftrace): Add cpu parameter. Update callers.
12121 (btrace_fetch): Add cpu parameter. Update callers.
12122 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
12123 Maybe overwrite the btrace configuration's cpu. Skip enabling
12124 errata workarounds if the vendor is unknown.
12125 * python/py-record-btrace.c: Include record-btrace.h.
12126 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
12127 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
12128 * record-btrace.c (record_btrace_cpu_state_kind): New.
12129 (record_btrace_cpu): New.
12130 (set_record_btrace_cpu_cmdlist): New.
12131 (record_btrace_get_cpu): New.
12132 (require_btrace_thread, record_btrace_info)
12133 (record_btrace_resume_thread): Call record_btrace_get_cpu.
12134 (cmd_set_record_btrace_cpu_none): New.
12135 (cmd_set_record_btrace_cpu_auto): New.
12136 (cmd_set_record_btrace_cpu): New.
12137 (cmd_show_record_btrace_cpu): New.
12138 (_initialize_record_btrace): Initialize set/show record btrace cpu
12139 commands.
12140 * record-btrace.h (record_btrace_get_cpu): New.
12141
69f90c75
MM
121422018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12143
12144 * record.c (set_record_command): Fix typo in message.
12145
b85310e1
MM
121462018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12147
12148 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
12149
1d509aa6
MM
121502018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12151
12152 * infrun.c (process_event_stop_test): Call
12153 gdbarch_in_indirect_branch_thunk.
12154 * gdbarch.sh (in_indirect_branch_thunk): New.
12155 * gdbarch.c: Regenerated.
12156 * gdbarch.h: Regenerated.
12157 * x86-tdep.h: New.
12158 * x86-tdep.c: New.
12159 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
12160 (HFILES_NO_SRCDIR): Add x86-tdep.h.
12161 (ALLDEPFILES): Add x86-tdep.c.
12162 * arch-utils.h (default_in_indirect_branch_thunk): New.
12163 * arch-utils.c (default_in_indirect_branch_thunk): New.
12164 * i386-tdep: Include x86-tdep.h.
12165 (i386_in_indirect_branch_thunk): New.
12166 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
12167 function.
12168 * amd64-tdep: Include x86-tdep.h.
12169 (amd64_in_indirect_branch_thunk): New.
12170 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
12171
b4be9bfd
JK
121722018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12173
12174 PR gdb/23053
12175 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
12176 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
12177 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
12178 regression.
12179
53d7df28
TT
121802018-04-12 Tom Tromey <tom@tromey.com>
12181
12182 * rust-lang.c (rust_print_struct_def): Remove univariant code.
12183 (rust_evaluate_subexp): Likewise.
12184
70b33f19
PA
121852018-04-12 Pedro Alves <palves@redhat.com>
12186
12187 * procfs.c (procfs_detach): Make forward declaration's prototype
12188 match definition's protototype.
12189 (proc_get_LDT_entry): Remove stale do_cleanups call.
12190
436411b1
PA
121912018-04-12 Pedro Alves <palves@redhat.com>
12192
12193 * target.h (target_ops::to_has_exited): Delete.
12194 (target_has_exited): Delete.
12195 * target-delegates.c: Regenerate.
12196
20db9c52
PA
121972018-04-11 Pedro Alves <palves@redhat.com>
12198
12199 * target.c (fileio_fh_t::t): Add comment.
12200 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12201 (target_fileio_close): Handle a NULL target.
12202 (invalidate_fileio_fh): New.
12203 (target_close): Call it.
12204 * remote.c (remote_hostio_send_command): No longer check whether
12205 remote_desc is open.
12206
5ff79300
PA
122072018-04-11 Pedro Alves <palves@redhat.com>
12208
12209 * target.c (fileio_fh_t): Make it a named struct instead of a
12210 typedef.
12211 (fileio_fh_t::is_closed): New method.
12212 (DEF_VEC_O (fileio_fh_t)): Remove.
12213 (fileio_fhandles): Now a std::vector.
12214 (is_closed_fileio_fh): Delete.
12215 (acquire_fileio_fd): Adjust. Rename parameters.
12216 (release_fileio_fd): Adjust.
12217 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12218 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12219 (target_fileio_close): Adjust.
12220
6e22e10d
SM
122212018-04-10 Simon Marchi <simon.marchi@ericsson.com>
12222
12223 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12224 index.
12225
731f534f
PA
122262018-04-10 Pedro Alves <palves@redhat.com>
12227
12228 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12229 (scoped_finish_thread_state): New class.
12230 * infcmd.c (run_command_1): Use it instead of finish_thread_state
12231 cleanup.
12232 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12233 (fetch_inferior_event, normal_stop): Likewise.
12234 * thread.c (finish_thread_state_cleanup): Delete.
12235
d5f4488f
SM
122362018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12237 Pedro Alves <palves@redhat.com>
12238
12239 * value.c: Include "selftest.h" and "common/array-view.h".
12240 (struct range) <operator ==>: New.
12241 (test_ranges_contain): New.
12242 (check_ranges_vector): New.
12243 (test_insert_into_bit_range_vector): New.
12244 (_initialize_values): Register selftests.
12245 * common/array-view.h (operator==, operator!=): New.
12246
b24531ed
SM
122472018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12248
12249 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12250 an iterator.
12251 * inline-frame.c: Include <algorithm>.
12252 (struct inline_state): Add constructor.
12253 (inline_state_s): Remove.
12254 (DEF_VEC_O(inline_state_s)): Remove.
12255 (inline_states): Change type to std::vector.
12256 (find_inline_frame_state): Adjust to std::vector.
12257 (allocate_inline_frame_state): Remove.
12258 (clear_inline_frame_state): Adjust to std::vector.
12259 (skip_inline_frames): Adjust to std::vector.
12260
c252925c
SM
122612018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12262
12263 * tracepoint.h (struct trace_state_variable): Add constructor.
12264 <name>: Change type to std::string.
12265 * tracepoint.c (tsv_s): Remove.
12266 (DEF_VEC_O(tsv_s)): Remove.
12267 (tvariables): Change to std::vector.
12268 (create_trace_state_variable): Adjust to std::vector.
12269 (find_trace_state_variable): Likewise.
12270 (find_trace_state_variable_by_number): Likewise.
12271 (delete_trace_state_variable): Likewise.
12272 (trace_variable_command): Adjust to std::string.
12273 (delete_trace_variable_command): Likewise.
12274 (tvariables_info_1): Adjust to std::vector.
12275 (save_trace_state_variables): Likewise.
12276 (start_tracing): Likewise.
12277 (merge_uploaded_trace_state_variables): Adjust to std::vector
12278 and std::string.
12279 * target.h (struct target_ops)
12280 <to_download_trace_state_variable>: Pass reference to
12281 trace_state_variable.
12282 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12283 * target-delegates.c: Re-generate.
12284 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12285 (mi_tsv_deleted): Likewise.
12286 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12287 * remote.c (remote_download_trace_state_variable): Change
12288 pointer to reference and adjust.
12289 * make-target-delegates (parse_argtypes): Handle references.
12290 (write_function_header): Likewise.
12291 (munge_type): Likewise.
12292
c9638d26
SM
122932018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12294
12295 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12296 string_view-selftests.c.
12297 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12298 testsuite.
12299 * unittests/basic_string_view/cons/char/1.cc: Likewise.
12300 * unittests/basic_string_view/cons/char/2.cc: Likewise.
12301 * unittests/basic_string_view/cons/char/3.cc: Likewise.
12302 * unittests/basic_string_view/element_access/char/1.cc:
12303 Likewise.
12304 * unittests/basic_string_view/element_access/char/empty.cc:
12305 Likewise.
12306 * unittests/basic_string_view/element_access/char/front_back.cc:
12307 Likewise.
12308 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12309 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12310 Likewise.
12311 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12312 Likewise.
12313 * unittests/basic_string_view/modifiers/swap/char/1.cc:
12314 Likewise.
12315 * unittests/basic_string_view/operations/compare/char/1.cc:
12316 Likewise.
12317 * unittests/basic_string_view/operations/compare/char/13650.cc:
12318 Likewise.
12319 * unittests/basic_string_view/operations/copy/char/1.cc:
12320 Likewise.
12321 * unittests/basic_string_view/operations/data/char/1.cc:
12322 Likewise.
12323 * unittests/basic_string_view/operations/find/char/1.cc:
12324 Likewise.
12325 * unittests/basic_string_view/operations/find/char/2.cc:
12326 Likewise.
12327 * unittests/basic_string_view/operations/find/char/3.cc:
12328 Likewise.
12329 * unittests/basic_string_view/operations/find/char/4.cc:
12330 Likewise.
12331 * unittests/basic_string_view/operations/rfind/char/1.cc:
12332 Likewise.
12333 * unittests/basic_string_view/operations/rfind/char/2.cc:
12334 Likewise.
12335 * unittests/basic_string_view/operations/rfind/char/3.cc:
12336 Likewise.
12337 * unittests/basic_string_view/operations/substr/char/1.cc:
12338 Likewise.
12339 * unittests/basic_string_view/operators/char/2.cc: Likewise.
12340 * unittests/string_view-selftests.c: New file.
12341
fdc11678
SM
123422018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12343
12344 * unittests/basic_string_view/capacity/1.cc: New file.
12345 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12346 * unittests/basic_string_view/cons/char/1.cc: New file.
12347 * unittests/basic_string_view/cons/char/2.cc: New file.
12348 * unittests/basic_string_view/cons/char/3.cc: New file.
12349 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12350 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12351 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12352 * unittests/basic_string_view/element_access/char/1.cc: New file.
12353 * unittests/basic_string_view/element_access/char/2.cc: New file.
12354 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12355 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12356 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12357 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12358 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12359 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12360 * unittests/basic_string_view/include.cc: New file.
12361 * unittests/basic_string_view/inserters/char/1.cc: New file.
12362 * unittests/basic_string_view/inserters/char/2.cc: New file.
12363 * unittests/basic_string_view/inserters/char/3.cc: New file.
12364 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12365 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12366 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12367 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12368 * unittests/basic_string_view/literals/types.cc: New file.
12369 * unittests/basic_string_view/literals/values.cc: New file.
12370 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12371 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12372 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12373 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12374 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12375 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12376 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12377 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12378 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12379 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12380 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12381 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12382 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12383 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12384 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12385 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12386 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12387 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12388 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12389 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12390 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12391 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12392 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12393 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12394 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12395 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12396 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12397 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12398 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12399 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12400 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12401 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12402 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12403 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12404 * unittests/basic_string_view/operators/char/2.cc: New file.
12405 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12406 * unittests/basic_string_view/range_access/char/1.cc: New file.
12407 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12408 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12409 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12410 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12411 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12412 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12413 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12414 * unittests/basic_string_view/typedefs.cc: New file.
12415 * unittests/basic_string_view/types/1.cc: New file.
12416
8345c4a2
SM
124172018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12418
12419 * common/gdb_string_view.h: Remove libstdc++ implementation
12420 details, adjust to gdb reality.
12421 * common/gdb_string_view.tcc: Likewise.
12422 * cli/cli-script.c (struct string_view): Remove.
12423 (user_args) <m_args>: Change element type to gdb::string_view.
12424 (user_args::insert_args): Adjust.
12425
7adcdf08
SM
124262018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12427
12428 * common/gdb_string_view.h: New file.
12429 * common/gdb_string_view.tcc: New file.
12430
41260ac2
SM
124312018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12432
12433 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12434 * configure: Re-generate.
12435
0bee6dd4
PA
124362018-04-09 Pedro Alves <palves@redhat.com>
12437
12438 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12439 (set_target_gdbarch): Call
12440 gdb::observers::architecture_changed.notify instead of
12441 observer_notify_architecture_changed.
12442
6f14adc5
SM
124432018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12444
12445 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12446 (do_restore_current_traceframe_cleanup): Remove.
12447 (restore_current_traceframe_cleanup_dtor): Remove.
12448 (make_cleanup_restore_current_traceframe): Remove.
12449 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12450 New.
12451 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12452 * infrun.c (fetch_inferior_event): Use
12453 scoped_restore_current_traceframe.
12454
b2bdb8cf
SM
124552018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12456
12457 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12458 Remove.
12459 <n_allocated_type_units>: Remove.
12460 <all_type_units>: Change to std::vector.
12461 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12462 to std::vector change.
12463 (dwarf2_per_objfile::get_cutu): Likewise.
12464 (dwarf2_per_objfile::get_tu): Likewise.
12465 (create_signatured_type_table_from_index): Likewise.
12466 (create_signatured_type_table_from_debug_names): Likewise.
12467 (dw2_symtab_iter_next): Likewise.
12468 (dw2_print_stats): Likewise.
12469 (dw2_expand_all_symtabs): Likewise.
12470 (dw2_expand_marked_cus): Likewise.
12471 (dw2_debug_names_iterator::next): Likewise.
12472 (dwarf2_initialize_objfile): Likewise.
12473 (add_signatured_type_cu_to_table): Likewise.
12474 (create_all_type_units): Likewise.
12475 (add_type_unit): Likewise.
12476 (struct tu_abbrev_offset): Add constructor.
12477 (build_type_psymtabs_1): Adjust to std::vector change.
12478 (print_tu_stats): Likewise.
12479 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12480 (write_debug_names): Likewise.
12481
b76e467d
SM
124822018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12483
12484 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12485 Make an std::vector.
12486 <n_comp_units>: Remove.
12487 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12488 to std::vector change.
12489 (dwarf2_per_objfile::get_cutu): Likewise.
12490 (dwarf2_per_objfile::get_cu): Likewise.
12491 (create_cus_from_index): Likewise.
12492 (create_addrmap_from_index): Likewise.
12493 (create_addrmap_from_aranges): Likewise.
12494 (dwarf2_read_index): Likewise.
12495 (dw2_find_last_source_symtab): Likewise.
12496 (dw2_map_symtabs_matching_filename): Likewise.
12497 (dw2_symtab_iter_next): Likewise.
12498 (dw2_print_stats): Likewise.
12499 (dw2_expand_all_symtabs): Likewise.
12500 (dw2_expand_symtabs_with_fullname): Likewise.
12501 (dw2_expand_marked_cus): Likewise.
12502 (dw2_map_symbol_filenames): Likewise.
12503 (create_cus_from_debug_names): Likewise.
12504 (dwarf2_read_debug_names): Likewise.
12505 (dw2_debug_names_iterator::next): Likewise.
12506 (dwarf2_initialize_objfile): Likewise.
12507 (set_partial_user): Likewise.
12508 (dwarf2_build_psymtabs_hard): Likewise.
12509 (read_comp_units_from_section): Remove arguments, adjust to
12510 std::vector change.
12511 (create_all_comp_units): Adjust to std::vector and
12512 read_comp_units_from_section changes.
12513 (dwarf2_find_containing_comp_unit): Adjust to std::vector
12514 change.
12515 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12516 (psyms_seen_size): Likewise.
12517 (write_gdbindex): Likewise.
12518 (write_debug_names): Likewise.
12519
12359b5e
SM
125202018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12521
12522 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12523 with dwarf2_per_objfile.
12524 (create_cus_from_index): Likewise.
12525 (create_signatured_type_table_from_index): Likewise.
12526 (dwarf2_read_index): Likewise.
12527 (dwarf2_initialize_objfile): Likewise.
12528 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
12529 per_cu rather than get_dwarf2_per_objfile.
12530
ff4c9fec
SM
125312018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12532
12533 * dwarf2read.h (struct signatured_type): Forward declare.
12534 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12535 New methods.
12536 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12537 (dw2_get_cutu): ...this.
12538 (dwarf2_per_objfile::get_cu): Rename from...
12539 (dw2_get_cu): ...this.
12540 (dwarf2_per_objfile::get_tu): New.
12541 (create_addrmap_from_index): Adjust.
12542 (create_addrmap_from_aranges): Adjust.
12543 (dw2_find_last_source_symtab): Adjust.
12544 (dw2_map_symtabs_matching_filename): Adjust.
12545 (dw2_symtab_iter_next): Adjust.
12546 (dw2_print_stats): Adjust.
12547 (dw2_expand_all_symtabs): Adjust.
12548 (dw2_expand_symtabs_with_fullname): Adjust.
12549 (dw2_expand_marked_cus): Adjust.
12550 (dw_expand_symtabs_matching_file_matcher): Adjust.
12551 (dw2_map_symbol_filenames): Adjust.
12552 (dw2_debug_names_iterator::next): Adjust.
12553 (dwarf2_initialize_objfile): Adjust.
12554 (set_partial_user): Adjust.
12555 (dwarf2_build_psymtabs_hard): Adjust.
12556
5ca3fcb6
SM
125572018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12558
12559 * dwarf2read.c (create_signatured_type_table_from_debug_names):
12560 Remove unused variables.
12561 (dw2_map_symtabs_matching_filename): Likewise.
12562 (dwarf2_record_block_ranges): Likewise.
12563 (dwarf2_read_addr_index): Likewise.
12564 (follow_die_offset): Likewise.
12565
b2e586e8
SM
125662018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12567
12568 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12569 to symbol_file_add_main.
12570
7c4e78cf
SM
125712018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12572
12573 PR mi/22299
12574 * mi/mi-console.c (do_fputc_async_safe): New.
12575 (mi_console_file::write_async_safe): New.
12576 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12577 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12578 New.
12579 * ui-file.c (ui_file::putstrn): Adjust call to
12580 fputstrn_unfiltered.
12581 * utils.c (printchar): Replace do_fputs and do_fprintf
12582 parameters by do_fputc.
12583 (fputstr_filtered): Adjust call to printchar.
12584 (fputstr_unfiltered): Likewise.
12585 (fputstrn_filtered): Likewise.
12586 (fputstrn_unfiltered): Add do_fputc parameter, pass to
12587 printchar.
12588 * utils.h (do_fputc_ftype): New typedef.
12589 (fputstrn_unfiltered): Add do_fputc parameter.
12590
5dc026d3
SM
125912018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12592
12593 * regformats/i386/i386-avx.dat: Remove.
12594
c912f608
SM
125952018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12596
12597 PR gdb/22979
12598 * amd64-tdep.c (amd64_none_init_abi): New function.
12599 (amd64_x32_none_init_abi): New function.
12600 (_initialize_amd64_tdep): Register handlers for x86-64 and
12601 x64_32 with GDB_OSABI_NONE.
12602 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12603 GDB_OSABI_NONE osabi.
12604
26540402
SM
126052018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12606
12607 PR gdb/22980
12608 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12609 GDB_OSABI_NONE.
12610 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12611 * osabi.c (gdb_osabi_names): Add "unknown" entry.
12612
9018be22
SM
126132018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12614
12615 * common/byte-vector.h (char_vector): New type.
12616 * target.h (target_read_alloc): Return
12617 gdb::optional<byte_vector>.
12618 (target_read_stralloc): Return gdb::optional<char_vector>.
12619 (target_get_osdata): Return gdb::optional<char_vector>.
12620 * target.c (target_read_alloc_1): Templatize. Replacement
12621 manual memory management with vector.
12622 (target_read_alloc): Change return type, adjust.
12623 (target_read_stralloc): Change return type, adjust.
12624 (target_get_osdata): Change return type, adjust.
12625 * auxv.c (struct auxv_info) <length>: Remove.
12626 <data>: Change type to gdb::optional<byte_vector>.
12627 (auxv_inferior_data_cleanup): Free auxv_info with delete.
12628 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12629 (target_auxv_search): Adjust.
12630 (fprint_target_auxv): Adjust.
12631 * avr-tdep.c (avr_io_reg_read_command): Adjust.
12632 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12633 (linux_make_corefile_notes): Adjust.
12634 * osdata.c (get_osdata): Adjust.
12635 * remote.c (remote_get_threads_with_qxfer): Adjust.
12636 (remote_memory_map): Adjust.
12637 (remote_traceframe_info): Adjust.
12638 (btrace_read_config): Adjust.
12639 (remote_read_btrace): Adjust.
12640 (remote_pid_to_exec_file): Adjust.
12641 * solib-aix.c (solib_aix_get_library_list): Adjust.
12642 * solib-dsbt.c (decode_loadmap): Don't free buf.
12643 (dsbt_get_initial_loadmaps): Adjust.
12644 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12645 * solib-target.c (solib_target_current_sos): Adjust.
12646 * tracepoint.c (sdata_make_value): Adjust.
12647 * xml-support.c (xinclude_start_include): Adjust.
12648 (xml_fetch_content_from_file): Adjust.
12649 * xml-support.h (xml_fetch_another): Change return type.
12650 (xml_fetch_content_from_file): Change return type.
12651 * xml-syscall.c (xml_init_syscalls_info): Adjust.
12652 * xml-tdesc.c (file_read_description_xml): Adjust.
12653 (fetch_available_features_from_target): Change return type.
12654 (target_fetch_description_xml): Adjust.
12655 (target_read_description_xml): Adjust.
12656
14c88955
TT
126572018-04-06 Tom Tromey <tom@tromey.com>
12658
12659 * value.c (~value): Update.
12660 (struct value) <contents>: Now unique_xmalloc_ptr.
12661 (value_contents_bits_eq, allocate_value_contents)
12662 (value_contents_raw, value_contents_all_raw)
12663 (value_contents_for_printing, value_contents_for_printing_const)
12664 (set_value_enclosing_type): Update.
12665
0c7e6dd8
TT
126662018-04-06 Tom Tromey <tom@tromey.com>
12667
12668 * value.c (range_s): Remove typedef, VEC.
12669 (struct range): Add operator<.
12670 (range_lessthan): Remove.
12671 (ranges_contain): Change type.
12672 (~value): Update.
12673 (struct value) <unavailable, optimized_out>: Now std::vector.
12674 (value_entirely_available)
12675 (value_entirely_covered_by_range_vector)
12676 (value_entirely_unavailable, value_entirely_optimized_out):
12677 Update.
12678 (insert_into_bit_range_vector): Change argument type.
12679 (find_first_range_overlap): Likewise.
12680 (struct ranges_and_idx, value_contents_bits_eq)
12681 (require_not_optimized_out, require_available): Update.
12682 (ranges_copy_adjusted): Change argument types.
12683 (value_optimized_out, value_copy, value_fetch_lazy): Update.
12684
2c8331b9
TT
126852018-04-06 Tom Tromey <tom@tromey.com>
12686
12687 * value.c (~value): Update.
12688 (struct value) <parent>: Now a value_ref_ptr.
12689 (value_parent, set_value_parent, value_address, value_copy):
12690 Update.
12691
466ce3ae
TT
126922018-04-06 Tom Tromey <tom@tromey.com>
12693
12694 * value.c (struct value): Add constructor, destructor, and member
12695 initializers.
12696 (allocate_value_lazy, value_decref): Update.
12697
062d818d
TT
126982018-04-06 Tom Tromey <tom@tromey.com>
12699
12700 * value.c (struct value) <released, next>: Remove.
12701 (all_values): Now a std::vector.
12702 (allocate_value_lazy): Update.
12703 (value_next): Remove.
12704 (value_mark, value_free_to_mark, release_value)
12705 (value_release_to_mark): Update.
12706
a6535de1
TT
127072018-04-06 Tom Tromey <tom@tromey.com>
12708
12709 * value.h (fetch_subexp_value, value_release_to_mark): Update.
12710 (free_value_chain): Remove.
12711 * value.c (free_value_chain): Remove.
12712 (value_release_to_mark): Return a std::vector.
12713 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12714 std::vector.
12715 (check_condition): Update.
12716 * eval.c (fetch_subexp_value): Change "val_chain" to a
12717 std::vector.
12718 * breakpoint.c (update_watchpoint): Update.
12719 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12720
b5621201
TT
127212018-04-06 Tom Tromey <tom@tromey.com>
12722
12723 * value.h (free_all_values): Remove.
12724 * value.c (free_all_values): Remove.
12725
4d0266a0
TT
127262018-04-06 Tom Tromey <tom@tromey.com>
12727
12728 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12729 (value_history_chain, value_history_count): Remove.
12730 (value_history): New global.
12731 (record_latest_value, access_value_history, show_values)
12732 (preserve_values): Update.
12733
b4d61099
TT
127342018-04-06 Tom Tromey <tom@tromey.com>
12735
12736 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12737 * varobj.c (varobj_set_display_format, varobj_set_value)
12738 (install_default_visualizer, construct_visualizer)
12739 (install_new_value, ~varobj, varobj_get_value_type)
12740 (my_value_of_variable, varobj_editable_p): Update.
12741 * c-varobj.c (c_describe_child, c_value_of_variable)
12742 (cplus_number_of_children, cplus_describe_child): Update.
12743 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
12744 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
12745 (ada_value_of_variable, ada_value_is_changeable_p): Update.
12746
9b558729
TT
127472018-04-06 Tom Tromey <tom@tromey.com>
12748
12749 * printcmd.c (last_examine_address): Change type to
12750 value_ref_ptr.
12751 (do_examine, x_command): Update.
12752
850645cf
TT
127532018-04-06 Tom Tromey <tom@tromey.com>
12754
12755 * value.c (release_value): Update.
12756 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12757 (struct bpstats) <val>: Now a value_ref_ptr.
12758 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12759 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12760 (~watchpoint, print_it_watchpoint, watch_command_1)
12761 (invalidate_bp_value_on_memory_change): Update.
12762
22bc8444
TT
127632018-04-06 Tom Tromey <tom@tromey.com>
12764
12765 * varobj.c (varobj_clear_saved_item)
12766 (update_dynamic_varobj_children, install_new_value, ~varobj):
12767 Update.
12768 * value.h (value_incref): Move declaration earlier.
12769 (value_decref): Rename from value_free.
12770 (struct value_ref_policy): New.
12771 (value_ref_ptr): New typedef.
12772 (struct value_deleter): Remove.
12773 (gdb_value_up): Remove typedef.
12774 (release_value): Change return type.
12775 (release_value_or_incref): Remove.
12776 * value.c (set_value_parent): Update.
12777 (value_incref): Change return type.
12778 (value_decref): Rename from value_free.
12779 (value_free_to_mark, free_all_values, free_value_chain): Update.
12780 (release_value): Return value_ref_ptr.
12781 (release_value_or_incref): Remove.
12782 (record_latest_value, set_internalvar, clear_internalvar):
12783 Update.
12784 * stack.c (info_frame_command): Don't call value_free.
12785 * python/py-value.c (valpy_dealloc, valpy_new)
12786 (value_to_value_object): Update.
12787 * printcmd.c (do_examine): Update.
12788 * opencl-lang.c (lval_func_free_closure): Update.
12789 * mi/mi-main.c (register_changed_p): Don't call value_free.
12790 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12791 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12792 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12793 value_free.
12794 * guile/scm-value.c (vlscm_free_value_smob)
12795 (vlscm_scm_from_value): Update.
12796 * frame.c (frame_register_unwind, frame_unwind_register_signed)
12797 (frame_unwind_register_unsigned, get_frame_register_bytes)
12798 (put_frame_register_bytes): Don't call value_free.
12799 * findvar.c (address_from_register): Don't call value_free.
12800 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12801 * dwarf2loc.c (entry_data_value_free_closure)
12802 (value_of_dwarf_reg_entry, free_pieced_value_closure)
12803 (dwarf2_evaluate_loc_desc_full): Update.
12804 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12805 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12806 (~watchpoint, watch_command_1)
12807 (invalidate_bp_value_on_memory_change): Update.
12808 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12809
7f8a5d38
SM
128102018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
12811
12812 PR gdb/23022
12813 * warning.m4: Add -Wno-error=deprecated-register.
12814 * configure: Re-generate.
12815
8a76bd3b
TT
128162018-04-05 Tom Tromey <tom@tromey.com>
12817
12818 * linespec.h: Remove include of "vec.h".
12819
8e8d776e
TT
128202018-04-05 Tom Tromey <tom@tromey.com>
12821
12822 * linespec.c (typep): Remove typedef.
12823 (find_methods, find_superclass_methods): Take a std::vector.
12824 (find_method): Use std::vector.
12825
9b2f8581
TT
128262018-04-05 Tom Tromey <tom@tromey.com>
12827
12828 * utils.c (compare_strings): Remove.
12829 * utils.h (compare_strings): Remove.
12830 * objc-lang.h (find_imps): Update.
12831 * objc-lang.c (find_methods): Take a std::vector.
12832 (uniquify_strings, find_imps): Likewise.
12833 * linespec.c (find_methods): Take a std::vector.
12834 (decode_objc): Use std::vector.
12835 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12836 a std::vector.
12837 (find_method, find_function_symbols): Use std::vector.
12838
459a2e4c
TT
128392018-04-05 Tom Tromey <tom@tromey.com>
12840
12841 * completer.c (completion_tracker::completion_tracker): Remove
12842 cast.
12843 (completion_tracker::discard_completions): Likewise.
12844 * breakpoint.c (ambiguous_names_p): Remove cast.
12845 * ada-lang.c (_initialize_ada_language): Remove cast.
12846 * utils.h (streq): Update.
12847 (streq_hash): Add new declaration.
12848 * utils.c (streq): Return bool.
12849 (streq_hash): New function.
12850
9be2c17a
TT
128512018-04-05 Tom Tromey <tom@tromey.com>
12852
12853 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12854 Remove a string copy.
12855
f73c6ece
TT
128562018-04-05 Tom Tromey <tom@tromey.com>
12857
12858 * linespec.c (filter_results): Use std::vector.
12859 (decode_line_2, decode_line_full): Update.
12860
53a0f8a2
TT
128612018-04-05 Tom Tromey <tom@tromey.com>
12862
12863 * linespec.c (canonical_to_fullform): Return std::string.
12864 (filter_results): Update.
12865 (struct decode_line_2_item): Add constructor.
12866 <fullform, displayform>: Now std::string.
12867 (decode_line_2_compare_items): Now a std::sort comparator.
12868 (decode_line_2): Update.
12869
a5b5adf5
TT
128702018-04-05 Tom Tromey <tom@tromey.com>
12871
12872 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12873 (unexpected_linespec_error): Update.
12874 (linespec_parse_basic, parse_linespec): Update.
12875
6a307fc5
TT
128762018-04-05 Tom Tromey <tom@tromey.com>
12877
12878 * linespec.c (linespec_parse_basic): Reindent.
12879
41c1efc6
TT
128802018-04-05 Tom Tromey <tom@tromey.com>
12881
12882 * minsyms.h (iterate_over_minimal_symbols): Update.
12883 * minsyms.c (iterate_over_minimal_symbols): Take a
12884 gdb::function_view.
12885 * linespec.c (struct collect_minsyms): Remove.
12886 (compare_msyms): Now a std::sort comparator.
12887 (add_minsym): Add parameters.
12888 (search_minsyms_for_name): Update. Use std::vector.
12889
c5edbf3d
TT
128902018-04-03 Tom Tromey <tom@tromey.com>
12891
12892 * mipsread.c (read_alphacoff_dynamic_symtab): Use
12893 gdb::byte_vector.
12894
b39efc48
WP
128952018-04-02 Weimin Pan <weimin.pan@oracle.com>
12896
12897 * MAINTAINERS (Write After Approval): Add Weimin Pan.
12898
121ad66c 128992018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
12900
12901 PR gdb/16959
12902 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
12903 printing static type.
12904
09473be8
TT
129052018-04-01 Tom Tromey <tom@tromey.com>
12906
12907 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12908 (rs6000_xfer_shared_libraries): Update.
12909
ec1f2d91
SM
129102018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12911
12912 * common/gdb_vecs.h (char_ptr): Remove.
12913 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12914
d8611974
SM
129152018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12916
12917 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12918 with std::vector.
12919 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12920
a18ba4e4
SM
129212018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12922
12923 * tracepoint.h (struct uploaded_tp): Initialize fields.
12924 <actions, step_actions, cmd_strings>: Change type to
12925 std::vector<char *>.
12926 * tracepoint.c (get_uploaded_tp): Allocate with new.
12927 (free_uploaded_tps): Free with delete.
12928 (parse_tracepoint_definition): Adjust to std::vector change.
12929 * breakpoint.c (read_uploaded_action): Likewise.
12930 (create_tracepoint_from_upload): Likewise.
12931 * ctf.c (ctf_write_uploaded_tp): Likewise.
12932 (SET_ARRAY_FIELD): Likewise.
12933 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12934
a7961323
TT
129352018-03-30 Tom Tromey <tom@tromey.com>
12936
12937 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
12938 std::unique_ptr.
12939 (svr4_keep_data_in_core): Update.
12940 (svr4_read_so_list): Update.
12941
e83e4e24
TT
129422018-03-30 Tom Tromey <tom@tromey.com>
12943
12944 * windows-nat.c (handle_output_debug_string, handle_exception):
12945 Update.
12946 * target.h (target_read_string): Update.
12947 * target.c (target_read_string): Change "string" to
12948 unique_xmalloc_ptr.
12949 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12950 Update.
12951 * solib-frv.c (frv_current_sos): Update.
12952 * solib-dsbt.c (dsbt_current_sos): Update.
12953 * solib-darwin.c (darwin_current_sos): Update.
12954 * linux-thread-db.c (inferior_has_bug): Update.
12955 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12956 Update. Remove alloca.
12957 * ada-lang.c (ada_main_name): Update.
12958
263db9a1
TT
129592018-03-30 Tom Tromey <tom@tromey.com>
12960
12961 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12962 (struct dwo_file_deleter): New.
12963 (dwo_file_up): New typedef.
12964 (open_and_init_dwo_file): Use dwo_file_up.
12965 (free_dwo_file_cleanup): Remove.
12966
5dafb3d1
TT
129672018-03-30 Tom Tromey <tom@tromey.com>
12968
12969 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12970 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12971
11ed8cad
TT
129722018-03-30 Tom Tromey <tom@tromey.com>
12973
12974 * dwarf2read.c (class free_cached_comp_units): New class.
12975 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12976 (free_cached_comp_units): Remove function.
12977
9ae79dac
TT
129782018-03-30 Tom Tromey <tom@tromey.com>
12979
12980 * utils.h (make_cleanup_unpush_target): Remove.
12981 * inf-ptrace.c (struct target_unpusher): New.
12982 (target_unpush_up) New typedef.
12983 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12984 target_unpush_up.
12985 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12986
5aa89276
TT
129872018-03-27 Tom Tromey <tom@tromey.com>
12988
12989 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12990
1dbeed45
TT
129912018-03-27 Pedro Alves <palves@redhat.com>
12992 Tom Tromey <tom@tromey.com>
12993
12994 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12995 destructor. Now a class.
12996 (gdb_readline_wrapper_cleanup): Remove function.
12997 (gdb_readline_wrapper): Remove cleanups.
12998
c819b2c0
TT
129992018-03-27 Tom Tromey <tom@tromey.com>
13000
13001 * typeprint.h (struct type_print_options) <local_typedefs,
13002 global_typedefs>: Remove "struct" keyword.
13003 (class typedef_hash_table): New class.
13004 (recursively_update_typedef_hash, add_template_parameters)
13005 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
13006 (find_typedef_in_hash): Don't declare.
13007 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
13008 (typedef_hash_table::recursively_update): Rename from
13009 recursively_update_typedef_hash. Now a member.
13010 (typedef_hash_table::add_template_parameters): Rename from
13011 add_template_parameters. Now a member.
13012 (typedef_hash_table::typedef_hash_table): Now a constructor;
13013 rename from create_typedef_hash.
13014 (typedef_hash_table::~typedef_hash_table): Now a destructor;
13015 rename from free_typedef_hash.
13016 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
13017 (do_free_global_table): Remove.
13018 (typedef_hash_table::typedef_hash_table): New constructor; renamed
13019 from copy_type_recursive.
13020 (create_global_typedef_table): Remove.
13021 (typedef_hash_table::find_global_typedef): Now a member of
13022 typedef_hash_table.
13023 (typedef_hash_table::find_typedef): Rename from
13024 find_typedef_in_hash; now a member.
13025 (whatis_exp): Update.
13026 * extension.h (struct ext_lang_type_printers): Add constructor and
13027 destructor.
13028 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
13029 declare.
13030 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
13031 Now a constructor; rename from start_ext_lang_type_printers.
13032 (ext_lang_type_printers): Now a destructor; rename from
13033 free_ext_lang_type_printers.
13034 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
13035 Update.
13036 (c_type_print_base_struct_union): Update. Remove cleanups.
13037
608219fb
TT
130382018-03-27 Tom Tromey <tom@tromey.com>
13039
13040 * dwarf-index-write.c: Include <cmath>.
13041
3fcded8f
JB
130422018-03-27 Joel Brobecker <brobecker@adacore.com>
13043
13044 * NEWS: Add entry describing new "set|show varsize-limit" command.
13045 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
13046 command.
13047 * printcmd.c (_initialize_printcmd): Add "set var" alias of
13048 "set variable".
13049
cd4fb1b2
SM
130502018-03-27 Simon Marchi <simon.marchi@ericsson.com>
13051
13052 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13053 dwarf-index-write.c
13054 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
13055 * dwarf-index-common.c: New file.
13056 * dwarf-index-common.h: New file.
13057 * dwarf-index-write.c: New file.
13058 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
13059 (struct dwarf2_section_info): Move from here.
13060 (dwarf2_section_info_def): Likewise.
13061 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
13062 (offset_type): Likewise.
13063 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
13064 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
13065 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
13066 (byte_swap): Likewise.
13067 (MAYBE_SWAP): Likewise.
13068 (dwarf2_per_cu_ptr): Likewise.
13069 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
13070 (struct tu_stats): Likewise.
13071 (struct dwarf2_per_objfile): Likewise.
13072 (struct dwarf2_per_cu_data): Likewise.
13073 (struct signatured_type): Likewise.
13074 (sig_type_ptr): Likewise.
13075 (DEF_VEC_P (sig_type_ptr)): Likewise.
13076 (INDEX4_SUFFIX): Likewise.
13077 (INDEX5_SUFFIX): Likewise.
13078 (DEBUG_STR_SUFFIX): Likewise.
13079 (dwarf2_read_section): Make non-static.
13080 (mapped_index_string_hash): Move from here.
13081 (dwarf5_djb_hash): Likewise.
13082 (file_write): Likewise.
13083 (class data_buf): Likewise.
13084 (struct symtab_index_entry): Likewise.
13085 (struct mapped_symtab): Likewise.
13086 (find_slot): Likewise.
13087 (hash_expand): Likewise.
13088 (add_index_entry): Likewise.
13089 (uniquify_cu_indices): Likewise.
13090 (class c_str_view): Likewise.
13091 (class c_str_view_hasher): Likewise.
13092 (class vector_hasher): Likewise.
13093 (write_hash_table): Likewise.
13094 (psym_index_map): Likewise.
13095 (struct addrmap_index_data): Likewise.
13096 (add_address_entry): Likewise.
13097 (add_address_entry_worker): Likewise.
13098 (write_address_map): Likewise.
13099 (symbol_kind): Likewise.
13100 (write_psymbols): Likewise.
13101 (struct signatured_type_index_data): Likewise.
13102 (write_one_signatured_type): Likewise.
13103 (recursively_count_psymbols): Likewise.
13104 (recursively_write_psymbols): Likewise.
13105 (class debug_names): Likewise.
13106 (check_dwarf64_offsets): Likewise.
13107 (psyms_seen_size): Likewise.
13108 (write_gdbindex): Likewise.
13109 (write_debug_names): Likewise.
13110 (assert_file_size): Likewise.
13111 (write_psymtabs_to_index): Likewise.
13112 (save_gdb_index_command): Likewise.
13113 (_initialize_dwarf2_read): Don't register the "save gdb-index"
13114 command.
13115 * dwarf2read.h: New file.
13116
59cc4834
JB
131172018-03-27 Joel Brobecker <brobecker@adacore.com>
13118
13119 PR gdb/22670
13120 * dwarf2read.c (dwarf2_physname): Do not return the demangled
13121 symbol name if the CU's language stores symbol names in linkage
13122 format.
13123 * language.h (struct language_defn)
13124 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
13125 all instances of this struct.
13126
67501539
TT
131272018-03-26 Tom Tromey <tom@tromey.com>
13128
13129 * stack.c (backtrace_command_1): Remove verbose code.
13130
76c939ac
TT
131312018-03-26 Tom Tromey <tom@tromey.com>
13132
13133 * python/py-framefilter.c (py_print_type): Don't catch
13134 exceptions. Return void.
13135 (py_print_value): Likewise.
13136 (py_print_single_arg): Likewise.
13137 (enumerate_args): Don't catch exceptions.
13138 (py_print_args): Likewise.
13139 (py_print_frame): Likewise.
13140 (gdbpy_apply_frame_filter): Catch exceptions here.
13141
9507b29c
TT
131422018-03-26 Tom Tromey <tom@tromey.com>
13143
13144 * stack.c (_initialize_stack): Remove trailing newlines from help
13145 text. Add "Usage" line to "backtrace" help.
13146
eb68e487
TT
131472018-03-26 Tom Tromey <tom@tromey.com>
13148
13149 PR python/16486:
13150 * python/py-framefilter.c (py_print_args): Call wrap_hint.
13151
1f111921
TT
131522018-03-26 Tom Tromey <tom@tromey.com>
13153
13154 * python/py-framefilter.c (py_print_single_arg): Return
13155 EXT_LANG_BT_ERROR from catch.
13156
fb7eb8b5
TT
131572018-03-26 Tom Tromey <tom@tromey.com>
13158
13159 PR backtrace/15584:
13160 * stack.c (backtrace_command_1): Move some code into no-filters
13161 "if".
13162
4ca59a9f
TT
131632018-03-26 Tom Tromey <tom@tromey.com>
13164
13165 * python/py-framefilter.c (throw_quit_or_print_exception): New
13166 function.
13167 (gdbpy_apply_frame_filter): Use it.
13168
92256134
TT
131692018-03-26 Tom Tromey <tom@tromey.com>
13170
13171 PR cli/17716:
13172 * python/py-framefilter.c (py_print_type, py_print_value)
13173 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
13174 RETURN_MASK_ERROR.
13175
7a630bc2
TT
131762018-03-26 Tom Tromey <tom@tromey.com>
13177
13178 * python/py-framefilter.c (enumerate_args): Use
13179 gdb::unique_xmalloc_ptr.
13180
63283d4a
TT
131812018-03-26 Tom Tromey <tom@tromey.com>
13182
13183 * python/py-framefilter.c (py_print_frame): Return
13184 EXT_LANG_BT_OK.
13185 (gdbpy_apply_frame_filter): Update comment.
13186 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
13187 Remove.
13188 <EXT_LANG_BT_NO_FILTERS>: Change value.
13189
978d6c75
TT
131902018-03-26 Tom Tromey <tom@tromey.com>
13191
13192 PR backtrace/15582:
13193 * stack.c (backtrace_command): Parse "hide" argument.
13194 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
13195 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
13196 constant.
13197
1cf7e640
TT
131982018-03-26 Tom Tromey <tom@tromey.com>
13199
13200 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13201 add "flags".
13202 (backtrace_command): Remove "fulltrace", add "flags".
13203
ea3b0687
TT
132042018-03-26 Tom Tromey <tom@tromey.com>
13205
13206 * stack.c (backtrace_command): Rewrite command line parsing.
13207
9f034d75
SM
132082018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13209
13210 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
13211
ce1459e5
SM
132122018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13213
13214 * filename-seen-cache.h: Add include guard.
13215
4f7ae6f5
KS
132162018-03-26 Keith Seitz <keiths@redhat.com>
13217
13218 * symfile.c (place_section): Remove "struct" from section_addr_info
13219 in comment.
13220 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13221 "struct" keyword from section_addr_info.
13222
5cd3e386
AH
132232018-03-26 Alan Hayward <alan.hayward@arm.com>
13224
13225 * regformats/regdef.h (reg): Add constructors.
13226
3e5ef9a4
PA
132272018-03-25 Pedro Alves <palves@redhat.com>
13228
13229 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13230 if then/else bodies in var_func_name extraction.
13231
c88d2fcc 132322018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
13233
13234 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13235 lookup_minimal_symbol() to find symbol entry.
13236 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13237
b7fee5a3
KS
132382018-03-23 Keith Seitz <keiths@redhat.com>
13239
13240 PR c++/22968
13241 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13242 nested type definitions for C++, too.
13243
2cc9b304
TT
132442018-03-23 Tom Tromey <tom@tromey.com>
13245
13246 * machoread.c (struct oso_el): Add a constructor. Don't define as
13247 a typedef.
13248 (macho_register_oso): Remove.
13249 (macho_symtab_read): Take a std::vector.
13250 (oso_el_compare_name): Now a std::sort comparator.
13251 (macho_symfile_read_all_oso): Take a std::vector.
13252 (macho_symfile_read): Use std::vector. Remove cleanups.
13253
a2b2bc12
TT
132542018-03-22 Tom Tromey <tom@tromey.com>
13255
13256 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13257 (record_full_goto_bookmark): Use std::string.
13258
7a8f494c
PFC
132592018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13260
13261 PR tdep/18295
13262 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13263 a single mask.
13264
dd6d677f
PFC
132652018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13266
13267 * rs6000-tdep.c (store_insn_p): New function.
13268 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13269 and cr_reg to their unshifted values. Use store_insn_p to
13270 match LR saves using either R1 or fdata->alloca_reg. Use
13271 store_insn_p to match CR saves. Set alloca_reg_offset
13272 when alloca_reg and framep are set. Remove lr_reg shift
13273 when assigning to fdata->lr_register.
13274
26d6cec4
AA
132752018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
13276
13277 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13278 command line args instead of emitting a warning.
13279
5d9310c4
SM
132802018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13281
13282 * tracepoint.h (struct static_tracepoint_marker): Initialize
13283 fields, define default constructor, move constructor and move
13284 assignment, disable the rest.
13285 <str_id, extra>: Make std::string.
13286 (release_static_tracepoint_marker): Remove.
13287 (free_current_marker): Remove.
13288 * tracepoint.c (free_current_marker): Remove.
13289 (parse_static_tracepoint_marker_definition): Adjust to
13290 std::string, use new hex2str overload.
13291 (release_static_tracepoint_marker): Remove.
13292 (print_one_static_tracepoint_marker): Get marker by reference
13293 and adjust to std::string.
13294 (info_static_tracepoint_markers_command): Adjust to std::vector
13295 changes
13296 * target.h (static_tracepoint_marker_p): Remove typedef.
13297 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13298 (struct target_ops) <to_static_tracepoint_marker_at>: Return
13299 bool.
13300 <to_static_tracepoint_markers_by_strid>: Return std::vector.
13301 * target-debug.h
13302 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13303 (target_debug_print_std_vector_static_tracepoint_marker): New.
13304 (target_debug_print_struct_static_tracepoint_marker_p): Rename
13305 to...
13306 (target_debug_print_static_tracepoint_marker_p): ... this.
13307 * target-delegates.c: Re-generate.
13308 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13309 Make std::string.
13310 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13311 (decode_static_tracepoint_spec): Adjust to std::vector.
13312 (tracepoint_print_one_detail): Adjust to std::string.
13313 (strace_marker_decode_location): Adjust to std::string.
13314 (update_static_tracepoint): Adjust to std::string, remove call
13315 to release_static_tracepoint_marker.
13316 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13317 Adjust to std::vector.
13318 * remote.c (remote_static_tracepoint_marker_at): Return bool.
13319 (remote_static_tracepoint_markers_by_strid): Adjust to
13320 std::vector.
13321 * common/rsp-low.h (hex2str): New overload with explicit count
13322 of bytes.
13323 * common/rsp-low.c (hex2str): New overload with explicit count
13324 of bytes.
13325 * unittests/rsp-low-selftests.c (test_hex2str): New function.
13326 (_initialize_rsp_low_selftests): Add test_hex2str test.
13327 * unittests/tracepoint-selftests.c
13328 (test_parse_static_tracepoint_marker_definition): Adjust to
13329 std::string.
13330
62c222b6
SM
133312018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13332
13333 * tracepoint.c (parse_static_tracepoint_marker_definition):
13334 Consider case where the definition is followed by more
13335 definitions.
13336 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13337 tracepoint-selftests.c.
13338 * unittests/tracepoint-selftests.c: New.
13339
7eb2418f
PFC
133402018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13341
13342 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13343 Carvalho.
13344
7cbe16e9
SR
133452018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13346
3d6b3b82 13347 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 13348
4ee89e90
SR
133492018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13350
3d6b3b82 13351 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 13352
92630041
TT
133532018-03-19 Tom Tromey <tom@tromey.com>
13354
13355 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13356 "IDENT" production.
13357
76727919
TT
133582018-03-19 Pedro Alves <palves@redhat.com>
13359 Tom Tromey <tom@tromey.com>
13360
13361 * unittests/observable-selftests.c: New file.
13362 * common/observable.h: New file.
13363 * observable.h: New file.
13364 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13365 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13366 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13367 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13368 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13369 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13370 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13371 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13372 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13373 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13374 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13375 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13376 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13377 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13378 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13379 tui/tui-interp.c, valops.c: Update all users.
13380 * tui/tui-hooks.c (tui_bp_created_observer)
13381 (tui_bp_deleted_observer, tui_bp_modified_observer)
13382 (tui_inferior_exit_observer, tui_before_prompt_observer)
13383 (tui_normal_stop_observer, tui_register_changed_observer):
13384 Remove.
13385 (tui_observers_token): New global.
13386 (attach_or_detach, tui_attach_detach_observers): New functions.
13387 (tui_install_hooks, tui_remove_hooks): Use
13388 tui_attach_detach_observers.
13389 * record-btrace.c (record_btrace_thread_observer): Remove.
13390 (record_btrace_thread_observer_token): New global.
13391 * observer.sh: Remove.
13392 * observer.c: Rename to observable.c.
13393 * observable.c (namespace gdb_observers): Define new objects.
13394 (observer_debug): Move into gdb_observers namespace.
13395 (struct observer, struct observer_list, xalloc_observer_list_node)
13396 (xfree_observer_list_node, generic_observer_attach)
13397 (generic_observer_detach, generic_observer_notify): Remove.
13398 (_initialize_observer): Update.
13399 Don't include observer.inc.
13400 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13401 (clean mostlyclean): Likewise.
13402 (observer.h, observer.inc): Remove targets.
13403 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13404 (COMMON_SFILES): Use observable.c, not observer.c.
13405 * .gitignore: Remove observer.h.
13406
1cb1f3da
TT
134072018-03-18 Tom Tromey <tom@tromey.com>
13408
13409 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13410 gdb::def_vector.
13411 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13412
a06ab151
TT
134132018-03-17 Tom Tromey <tom@tromey.com>
13414
13415 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13416
770623f7
TT
134172018-03-17 Tom Tromey <tom@tromey.com>
13418
13419 * target.c (class scoped_target_fd): New.
13420 (target_fileio_close_cleanup): Remove.
13421 (target_fileio_read_alloc_1): Use scoped_target_fd.
13422
39be3c7e
SM
134232018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13424
13425 * silent-rules.mk: New.
13426 * Makefile.in: Include silent-rules.mk
13427 (srcdir, VPATH, top_srcdir): Move up.
13428 (COMPILE): Add ECHO_CXX.
13429 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13430 (init.c): Add ECHO_INIT_C.
13431 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13432 (version.c): Add ECHO_GEN.
13433 (printcmd.o): Add ECHO_CXX.
13434 (target-float.o): Add ECHO_CXX.
13435 (ada-exp.o): Add ECHO_CXX.
13436 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13437 (insight$(EXEEXT)): Add ECHO_CXXLD.
13438 * gnulib/configure.ac: Add AM_SILENT_RULES.
13439 * gnulib/aclocal.m4: Re-generate.
13440 * gnulib/configure: Re-generate.
13441 * gnulib/import/Makefile.in: Re-generate.
13442
37e136b1
TT
134432018-03-16 Tom Tromey <tom@tromey.com>
13444
13445 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13446 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13447 * utils.c (do_free_section_addr_info)
13448 (make_cleanup_free_section_addr_info): Remove.
13449 * symfile.h (struct other_sections): Add constructor.
13450 (struct section_addr_info): Remove.
13451 (section_addr_info): New typedef.
13452 (struct sym_fns) <sym_offsets>: Change type of parameter.
13453 (build_section_addr_info_from_objfile)
13454 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13455 (default_symfile_offsets, symbol_file_add)
13456 (symbol_file_add_from_bfd)
13457 (build_section_addr_info_from_section_table): Update.
13458 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13459 * symfile.c (alloc_section_addr_info): Remove.
13460 (build_section_addr_info_from_section_table): Change return type.
13461 Update.
13462 (build_section_addr_info_from_bfd)
13463 (build_section_addr_info_from_objfile): Likewise.
13464 (free_section_addr_info): Remove.
13465 (relative_addr_info_to_section_offsets): Change type of "addrs".
13466 (addrs_section_compar): Now a std::sort comparator.
13467 (addrs_section_sort): Change return type.
13468 (addr_info_make_relative): Change type of "addrs". Update.
13469 (default_symfile_offsets, syms_from_objfile_1)
13470 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13471 (symbol_file_add_separate): Update.
13472 (symbol_file_add): Change type of "addrs". Update.
13473 (add_symbol_file_command): Update. Remove cleanups.
13474 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
13475 cleanups.
13476 * symfile-debug.c (debug_sym_offsets): Change type of "info".
13477 * solib.c (solib_read_symbols): Update.
13478 * objfiles.c (objfile_relocate): Update. Remove cleanups.
13479 * machoread.c (macho_symfile_offsets): Update.
13480 * jit.c (jit_bfd_try_read_symtab): Update.
13481
03afa6ef
SM
134822018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
13483
13484 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13485 unittests/utils-selftests.c.
13486 * unittests/utils-selftests.c: New file.
13487
3ae9ce5d
TT
134882018-03-14 Tom Tromey <tom@tromey.com>
13489
13490 PR cli/14977:
13491 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13492 for NULL.
13493
b8c2339b
TT
134942018-03-14 Tom Tromey <tom@tromey.com>
13495
13496 PR cli/19918:
13497 * printcmd.c (printf_pointer): Allow "-" in format.
13498
80ae639d
TT
134992018-03-14 Tom Tromey <tom@tromey.com>
13500
13501 * printcmd.c (_initialize_printcmd): Add usage to printf.
13502
0d671d99
YQ
135032018-03-14 Yao Qi <qiyao@sourceware.org>
13504
13505 * MAINTAINERS: Update my email address.
13506
b577b6af
TT
135072018-03-13 Tom Tromey <tom@tromey.com>
13508
13509 * machoread.c (macho_check_dsym): Change filenamep to a
13510 std::string*.
13511 (macho_symfile_read): Update.
13512 * symfile.c (load_command): Use std::string.
13513
89a3b63e
AB
135142018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
13515
13516 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13517 to error message string.
13518 (riscv_register_name): Use xsnprintf instead of sprintf.
13519 (riscv_insn::fetch_instruction): Use gdb_assert instead of
13520 internal_error.
13521 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13522 error.
13523 (riscv_push_dummy_call): Likewise.
13524
984c7238
TT
135252018-03-12 Tom Tromey <tom@tromey.com>
13526
13527 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13528 Use gdb::byte_vector.
13529 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13530
933522d1
YQ
135312018-03-12 Yao Qi <yao.qi@linaro.org>
13532
13533 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13534 parameter type to readable_regcache.
13535 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13536 the declaration.
13537
be2daae6
TT
135382018-03-11 Tom Tromey <tom@tromey.com>
13539
13540 * dwarf2read.c (struct nextfield): Add initializers.
13541 (struct nextfnfield): Remove.
13542 (struct fnfieldlist): Add initializers. Remove "length" and
13543 "head", use std::vector.
13544 (struct decl_field_list): Remove.
13545 (struct field_info): Add initializers.
13546 <fields, baseclasses>: Now std::vector.
13547 <nbaseclasses, nfnfields, typedef_field_list_count,
13548 nested_types_list_count>: Remove.
13549 (dwarf2_add_field, dwarf2_add_type_defn)
13550 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13551 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13552 (process_structure_scope): Update.
13553
484cf504
TT
135542018-03-11 Tom Tromey <tom@tromey.com>
13555
13556 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13557 for use by std::sort.
13558 (build_type_psymtabs_1): Use std::vector.
13559
9bd8e0b0
EZ
135602018-03-09 Eli Zaretskii <eliz@gnu.org>
13561
13562 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13563 and LIBMPFR in the printed configuration.
13564
5dc1a704
TT
135652018-03-08 Tom Tromey <tom@tromey.com>
13566
13567 * source.c (get_filename_and_charpos): Use scoped_fd.
13568 * nto-procfs.c (procfs_open_1): Use scoped_fd.
13569 (procfs_pidlist): Likewise.
13570 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13571 (iterate_over_mappings): Likewise.
13572
fdf07f3a
TT
135732018-03-08 Tom Tromey <tom@tromey.com>
13574
13575 * infcall.c (struct call_return_meta_info)
13576 <stack_temporaries_enabled>: Remove.
13577 (get_call_return_value, call_function_by_hand_dummy): Update.
13578 * thread.c (disable_thread_stack_temporaries): Remove.
13579 (enable_thread_stack_temporaries): Remove.
13580 (thread_stack_temporaries_enabled_p): Return bool.
13581 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13582 (get_last_thread_stack_temporary): Update.
13583 * eval.c (evaluate_subexp): Update.
13584 * gdbthread.h (class enable_thread_stack_temporaries): Now a
13585 class, not a function.
13586 (value_ptr, value_vec): Remove typedefs.
13587 (class thread_info) <stack_temporaries_enabled>: Now bool.
13588 <stack_temporaries>: Now a std::vector.
13589 (thread_stack_temporaries_enabled_p)
13590 (value_in_thread_stack_temporaries): Return bool.
13591
567a3e54
SM
135922018-03-08 Simon Marchi <simon.marchi@ericsson.com>
13593
13594 * remote.c (putpkt_binary): Fix omitted bytes reporting.
13595 (getpkt_or_notif_sane_1): Likewise.
13596
00b40057
SM
135972018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13598
13599 * build-id.c (build_id_to_debug_bfd): Use std::string.
13600
a8dbfd58
SM
136012018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13602
13603 * build-id.c (find_separate_debug_file_by_buildid): Return
13604 std::string.
13605 * build-id.h (find_separate_debug_file_by_buildid): Return
13606 std::string.
13607 * coffread.c (coff_symfile_read): Adjust to std::string.
13608 * elfread.c (elf_symfile_read): Adjust to std::string.
13609 * symfile.c (separate_debug_file_exists): Change parameter to
13610 std::string.
13611 (find_separate_debug_file): Return std::string.
13612 (find_separate_debug_file_by_debuglink): Return std::string.
13613 * symfile.h (find_separate_debug_file_by_debuglink): Return
13614 std::string.
13615
e6a58aa8
SM
136162018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13617
13618 * common/xml-utils.c (xml_escape_text): Move code to...
13619 (xml_escape_text_append): ... this new function.
13620 * common/xml-utils.h (xml_escape_text_append): New declaration.
13621 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13622 New function.
13623 (_initialize_xml_utils): register test_xml_escape_text_append as
13624 a selftest.
13625
4ef0bef6
AH
136262018-03-07 Alan Hayward <alan.hayward@arm.com>
13627
13628 * defs.h: Remove MAX_REGISTER_SIZE.
13629 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13630 asserts.
13631 * python/py-unwind.c (pyuw_sniffer): Likewise.
13632
e0d3522b
TT
136332018-03-07 Tom Tromey <tom@tromey.com>
13634
13635 * linux-tdep.c (linux_info_proc): Update.
13636 * target.h (struct target_ops) <to_fileio_readlink>: Return
13637 optional<string>.
13638 (target_fileio_readlink): Return optional<string>.
13639 * remote.c (remote_hostio_readlink): Return optional<string>.
13640 * inf-child.c (inf_child_fileio_readlink): Return
13641 optional<string>.
13642 * target.c (target_fileio_readlink): Return optional<string>.
13643
ea005f31
AB
136442018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13645
13646 * regcache.c (cooked_read_test): Add riscv to the list of
13647 architectures that have a save_reggroup.
13648
e95a97d4
AA
136492018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13650
13651 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13652 value is not a dynamic class object.
13653
d8344f3d
TT
136542018-03-06 Tom Tromey <tom@tromey.com>
13655
13656 * rust-exp.y: Formatting fixes.
13657
9add17f2
AB
136582018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13659
13660 * riscv-tdep.c (riscv_register_name): Remove target description
13661 support.
13662 (riscv_gdbarch_init): Remove target description check.
13663
c9486dfe
AB
136642018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13665
13666 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13667 comment.
13668 * riscv-tdep.h: Likewise.
13669
d74aff3d
AB
136702018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13671
13672 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13673 (riscv_pseudo_register_write): Delete.
13674 (riscv_gdbarch_init): Remove all use of pseudo registers.
13675
7ea78b59
SM
136762018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13677
13678 * record-btrace.c (btrace_print_lines): Replace cleanup
13679 parameter with RAII equivalents.
13680 (btrace_insn_history): Replace cleanup with RAII equivalents.
13681 * ui-out.h (make_cleanup_ui_out_list_begin_end,
13682 make_cleanup_ui_out_tuple_begin_end): Remove.
13683 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13684 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13685 make_cleanup_ui_out_list_begin_end): Remove.
13686
53127008
SM
136872018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13688
13689 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13690 parameter types to std::vector. Use bool.
13691 (record_btrace_wait): Replace VEC(tp_t) with
13692 std::vector<thread_info *>.
13693 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13694
228f1508
SM
136952018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13696
13697 * record-btrace.c (record_btrace_disable_callback): Remove.
13698 (struct scoped_btrace_disable): New.
13699 (record_btrace_open): Use scoped_btrace_disable.
13700
b2970c23
AB
137012018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13702
13703 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13704 reading values from registers.
13705
fb294655
AB
137062018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13707
13708 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13709 where appropriate.
13710
cab5bb9d
AB
137112018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13712
13713 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13714 change parameter type. Use GDB's print functions, and use
13715 core_addr_to_string where appropriate.
13716 (riscv_push_dummy_call): Use core_addr_to_string where
13717 appropriate, update call to riscv_print_arg_location, and reindent
13718 a few lines.
13719 (riscv_return_value): Update call to riscv_print_arg_location.
13720
dbbb1059
AB
137212018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13722 Tim Newsome <tim@sifive.com>
13723 Albert Ou <a0u@eecs.berkeley.edu>
13724 Darius Rad <darius@bluespec.com>
13725
13726 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13727 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13728 (ALLDEPFILES): Add riscv-tdep.c
13729 * configure.tgt: Add riscv support.
13730 * riscv-tdep.c: New file.
13731 * riscv-tdep.h: New file.
13732 * NEWS: Mention new target.
13733 * MAINTAINERS: Add entry for riscv.
13734
5dc43913
AB
137352018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13736
13737 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13738 fields within aggregates.
13739
3dea1ef7
SM
137402018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
13741
13742 * record-btrace.c (btrace_print_lines): Change type of flags to
13743 gdb_disassembly_flags.
13744
7efba073
JB
137452018-03-04 John Baldwin <jhb@FreeBSD.org>
13746
13747 * fbsd-nat.c: Include "inf-ptrace.h".
13748 (USE_SIGTRAP_SIGINFO): Conditionally define.
13749 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13750 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13751 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13752 function.
13753 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13754 Likewise.
13755 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13756 Likewise.
13757 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13758 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13759 "supports_stopped_by_hw_breakpoint" target methods.
13760
386a8676
JB
137612018-03-04 John Baldwin <jhb@FreeBSD.org>
13762
13763 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13764 * fbsd-nat.c (debug_fbsd_nat): New variable.
13765 (show_fbsd_nat_debug): New function.
13766 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13767 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13768
12279366
JB
137692018-03-04 John Baldwin <jhb@FreeBSD.org>
13770
13771 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13772 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13773 prototype.
13774 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13775 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13776 method.
13777
54693cf5
SM
137782018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13779
13780 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13781 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13782
ccb2231c
SM
137832018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13784
13785 * charset.c (struct charset_vector): New.
13786 (charsets): Change type to charset_vector.
13787 (find_charset_names): Adjust.
13788 (add_one): Adjust.
13789 (_initialize_charset): Adjust.
13790
6fb16ce6
SM
137912018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13792
13793 * progspace.h (struct program_space) <deleted_solibs>: Change
13794 type to std::vector<std::string>.
13795 * progspace.c (clear_program_space_solib_cache): Adjust.
13796 * breakpoint.c (print_solib_event): Adjust.
13797 (check_status_catch_solib): Adjust.
13798 * solib.c (update_solib_list): Adjust.
13799 * ui-out.h (class ui_out) <field_string>: New overload.
13800 * ui-out.c (ui_out::field_string): New overload.
13801
564b1e3f
SM
138022018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13803
13804 * progspace.h (struct program_space): Add constructor and
13805 destructor, initialize fields.
13806 (add_program_space): Remove.
13807 * progspace.c (add_program_space): Rename to...
13808 (program_space::program_space): ... this.
13809 (release_program_space): Rename to...
13810 (program_space::~program_space): ... this.
13811 (delete_program_space): Use delete to delete program_space.
13812 (initialize_progspace): Use new to allocate program_space.
13813 * inferior.c (add_inferior_with_spaces): Likewise.
13814 (clone_inferior_command): Likewise.
13815 * infrun.c (follow_fork_inferior): Likewise.
13816 (handle_vfork_child_exec_or_exit): Likewise.
13817
e80aaf61
SM
138182018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13819
13820 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13821 (delim_string_to_char_ptr_vec): Return std::vector of
13822 gdb::unique_xmalloc_ptr.
13823 (dirnames_to_char_ptr_vec_append): Take std::vector of
13824 gdb::unique_xmalloc_ptr.
13825 (dirnames_to_char_ptr_vec): Return std::vector of
13826 gdb::unique_xmalloc_ptr.
13827 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13828 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13829 (delim_string_to_char_ptr_vec): Return an std::vector of
13830 gdb::unique_xmalloc_ptr, adjust the code.
13831 (dirnames_to_char_ptr_vec_append): Take an std::vector of
13832 gdb::unique_xmalloc_ptr, adjust the code.
13833 (dirnames_to_char_ptr_vec): Return an std::vector of
13834 gdb::unique_xmalloc_ptr, adjust the code.
13835 * auto-load.c (auto_load_safe_path_vec): Change type to
13836 std::vector of gdb::unique_xmalloc_ptr.
13837 (auto_load_expand_dir_vars): Return an std::vector of
13838 gdb::unique_xmalloc_ptr, adjust the code.
13839 (auto_load_safe_path_vec_update): Adjust.
13840 (filename_is_in_auto_load_safe_path_vec): Adjust.
13841 (auto_load_objfile_script_1): Adjust.
13842 * build-id.c (build_id_to_debug_bfd): Adjust.
13843 * linux-thread-db.c (thread_db_load_search): Adjust.
13844 * source.c (add_path): Adjust.
13845 (openp): Adjust.
13846 * symfile.c (find_separate_debug_file): Adjust.
13847 * utils.c (do_free_char_ptr_vec): Remove.
13848 (make_cleanup_free_char_ptr_vec): Remove.
13849
ab818ade
SDJ
138502018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
13851
13852 PR gdb/22907
13853 * common/pathstuff.c: Conditionally include "<windows.h>".
13854
e1e6f073
GS
138552018-03-01 Georg Sauthoff <mail@georg.so>
13856
13857 PR gdb/22888
13858 * gcore.in: Quote variables and switch interpreter to bash.
13859
c7b15a66
TT
138602018-03-01 Tom Tromey <tom@tromey.com>
13861
13862 * dwarf2read.c (alloc_discriminant_info): Fix default_index
13863 assertion. Add assertion for discriminant_index.
13864 (quirk_rust_enum): Use correct base type name in univariant case.
13865
0cb7c7b0
SM
138662018-03-01 Simon Marchi <simon.marchi@ericsson.com>
13867
13868 * record.c (get_call_history_modifiers): Return a
13869 record_print_flags.
13870 (cmd_record_call_history): Adjust.
13871 * record-btrace.c (record_btrace_call_history): Adjust.
13872 (record_btrace_call_history_range): Adjust.
13873 (record_btrace_call_history_from): Adjust.
13874 * target-debug.h (target_debug_print_record_print_flags): New.
13875 * target-delegates.c: Re-generate.
13876 * target.c (target_call_history): Change flags type.
13877 (target_call_history_from): Likewise.
13878 (target_call_history_range): Likewise.
13879 * target.h (struct target_ops) <target_call_history>: Likewise.
13880 (target_call_history_from): Likewise.
13881 (target_call_history_range): Likewise.
13882
25e3c82c
SDJ
138832018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13884 Simon Marchi <simon.marchi@polymtl.ca>
13885
13886 * common/common-utils.c: Include "sys/stat.h".
13887 (is_regular_file): Move here from "source.c"; change return
13888 type to "bool".
13889 * common/common-utils.h (is_regular_file): New prototype.
13890 * common/pathstuff.c (contains_dir_separator): New function.
13891 * common/pathstuff.h (contains_dir_separator): New prototype.
13892 * source.c: Don't include "sys/stat.h".
13893 (is_regular_file): Move to "common/common-utils.c".
13894
b4987c95
SDJ
138952018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13896
13897 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13898 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13899 * auto-load.c: Include "common/pathstuff.h".
13900 * common/common-def.h (current_directory): Move here.
13901 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13902 function.
13903 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13904 prototype.
13905 * common/pathstuff.c: New file.
13906 * common/pathstuff.h: New file.
13907 * compile/compile.c: Include "common/pathstuff.h".
13908 * defs.h (current_directory): Move to "common/common-defs.h".
13909 * dwarf2read.c: Include "common/pathstuff.h".
13910 * exec.c: Likewise.
13911 * guile/scm-safe-call.c: Likewise.
13912 * linux-thread-db.c: Likewise.
13913 * main.c: Likewise.
13914 * nto-tdep.c: Likewise.
13915 * objfiles.c: Likewise.
13916 * source.c: Likewise.
13917 * symtab.c: Likewise.
13918 * utils.c: Include "common/pathstuff.h".
13919 (gdb_realpath): Move to "common/pathstuff.c".
13920 (gdb_realpath_keepfile): Likewise.
13921 (gdb_abspath): Likewise.
13922 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13923 (gdb_realpath_keepfile): Likewise.
13924 (gdb_abspath): Likewise.
13925
f169cfdc
JB
139262018-02-28 John Baldwin <jhb@FreeBSD.org>
13927
13928 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13929 wildcard process pid for super_resume for kernels with a
13930 specific bug.
13931
e05cac70
PM
139322018-02-27 Phil Muldoon <pmuldoon@redhat.com>
13933
13934 * compile/compile.c (get_args): Add additional comments
13935 explaining function.
13936
55089490
TT
139372018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
13938 Tom Tromey <tom@tromey.com>
13939
13940 * target.h (memory_write_request_s): Remove typedef. Don't define
13941 VEC.
13942 (target_write_memory_blocks): Change argument to std::vector.
13943 (struct memory_write_request): Add constructor.
13944 * target-memory.c (compare_block_starting_address): Return bool.
13945 Change argument types.
13946 (claim_memory): Change arguments to use std::vector.
13947 (split_regular_and_flash_blocks, blocks_to_erase)
13948 (compute_garbled_blocks): Likewise.
13949 (cleanup_request_data, cleanup_write_requests_vector): Remove.
13950 (target_write_memory_blocks): Change argument to std::vector.
13951 * symfile.c (struct load_section_data): Add constructor and
13952 destructor. Use std::vector for "requests".
13953 (struct load_progress_data): Add initializers.
13954 (load_section_callback): Update. Use "new".
13955 (clear_memory_write_data): Remove.
13956 (generic_load): Update.
13957
0c305b61
AH
139582018-02-27 Alan Hayward <alan.hayward@arm.com>
13959
13960 * arch/aarch64.h: Use common/tdesc.h.
13961
c5196c92
MR
139622018-02-26 Maciej W. Rozycki <macro@mips.com>
13963
13964 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13965 architecture with a 64-bit ABI.
13966
37c33887
MR
139672018-02-26 Maciej W. Rozycki <macro@mips.com>
13968
13969 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13970 ahead of target description loading.
13971
d4dd3282
TT
139722018-02-26 Tom Tromey <tom@tromey.com>
13973
13974 * stack.c (backtrace_command_1): Update.
13975 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13976 of "flags".
13977 * python/py-framefilter.c (py_print_frame)
13978 (gdbpy_apply_frame_filter): Change type of "flags".
13979 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13980 of "flags".
13981 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13982 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13983 * extension.h (enum frame_filter_flag): Rename from
13984 frame_filter_flags.
13985 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13986 (apply_ext_lang_frame_filter): Change type of "flags".
13987 * extension.c (apply_ext_lang_frame_filter): Change type of
13988 "flags".
13989 * extension-priv.h (struct extension_language_ops)
13990 <apply_frame_filter>: Change type of "flags".
13991
6893c19a
TT
139922018-02-26 Tom Tromey <tom@tromey.com>
13993
13994 PR python/16497:
13995 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
13996 off-by-one in py_end computation.
13997 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13998 PRINT_MORE_FRAMES.
13999 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
14000 constant.
14001
2ddeaf8a
TT
140022018-02-26 Tom Tromey <tom@tromey.com>
14003
14004 * dwarf2read.c (struct variant_field): New.
14005 (struct nextfield) <variant>: New field.
14006 (dwarf2_add_field): Handle DW_TAG_variant_part.
14007 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
14008 discriminated union.
14009 (read_structure_type): Handle DW_TAG_variant_part.
14010 (handle_struct_member_die): New function, extracted from
14011 process_structure_scope. Handle DW_TAG_variant.
14012 (process_structure_scope): Handle discriminated unions. Call
14013 handle_struct_member_die.
14014
c9317f21
TT
140152018-02-26 Tom Tromey <tom@tromey.com>
14016
14017 * rust-lang.h (rust_last_path_segment): Declare.
14018 * rust-lang.c (rust_last_path_segment): Now public. Change
14019 contract.
14020 (struct disr_info): Remove.
14021 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
14022 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
14023 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
14024 (rust_enum_p, rust_enum_variant): New function.
14025 (rust_underscore_fields): Remove "offset" parameter.
14026 (rust_print_enum): New function.
14027 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
14028 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
14029 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
14030 enums.
14031 (rust_internal_print_type): New function, from rust_print_type.
14032 Remove enum code.
14033 (rust_print_type): Call rust_internal_print_type.
14034 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
14035 Update enum handling.
14036 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
14037 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
14038 (rust_union_quirks): New functions.
14039 (process_full_comp_unit, process_full_type_unit): Call
14040 rust_union_quirks.
14041 (process_structure_scope): Update rust_unions if necessary.
14042
7c22600a
TT
140432018-02-26 Tom Tromey <tom@tromey.com>
14044
14045 * value.h (value_union_variant): Declare.
14046 * valops.c (value_union_variant): New function.
14047 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
14048 (struct discriminant_info): New.
14049 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
14050 enumerator.
14051 (struct main_type) <flag_discriminated_union>: New field.
14052
15ce8941
TT
140532018-02-26 Tom Tromey <tom@tromey.com>
14054
14055 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14056 unittests/unpack-selftests.c.
14057 * unittests/unpack-selftests.c: New file.
14058 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
14059
48fbe735
YQ
140602018-02-26 Yao Qi <yao.qi@linaro.org>
14061
14062 * dwarf2read.c (struct partial_die_info) <read>: New method.
14063 (read_partial_die): Remove the declaration.
14064 (load_partial_dies): Update.
14065 (partial_die_info::partial_die_info):
14066 (read_partial_die): Change it to partial_die_info::read.
14067
52356b79
YQ
140682018-02-26 Yao Qi <yao.qi@linaro.org>
14069
14070 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
14071 (fixup_partial_die): Remove declaration.
14072 (scan_partial_symbols): Update.
14073 (partial_die_parent_scope): Likewise.
14074 (partial_die_full_name): Likewise.
14075 (fixup_partial_die): Change it to partial_die_info::fixup.
14076
35cc7ed7
YQ
140772018-02-26 Yao Qi <yao.qi@linaro.org>
14078
14079 * dwarf2read.c (read_partial_die): Update the declaration.
14080 (load_partial_dies): Caller update.
14081 (read_partial_die): Remove one argument abbrev_len.
14082
6f06d47b
YQ
140832018-02-26 Yao Qi <yao.qi@linaro.org>
14084
14085 * dwarf2read.c (struct partial_die_info): Add ctor, delete
14086 assignment operator.
14087 (load_partial_dies): Use ctor and copy ctor.
14088 (read_partial_die): Update.
14089 (dwarf2_cu::find_partial_die): Use ctor.
14090
d590ff25
YQ
140912018-02-26 Yao Qi <yao.qi@linaro.org>
14092
14093 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
14094 (find_partial_die_in_comp_unit): Change it to
14095 dwarf2_cu::find_partial_die.
14096 (find_partial_die): Update.
14097
fd0a254f
YQ
140982018-02-26 Yao Qi <yao.qi@linaro.org>
14099
14100 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
14101 is NULL.
14102
cd9983dd
YQ
141032018-02-26 Yao Qi <yao.qi@linaro.org>
14104
14105 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
14106
f46cd62a
AH
141072018-02-26 Alan Hayward <alan.hayward@arm.com>
14108
14109 * arch/amd64.h: Use common/tdesc.h.
14110 * arch/i386.c: Likewise.
14111 * arch/i386.h: Likewise.
14112 * arch/tic6x.c: Likewise.
14113 * arch/tdesc.h: Move file from here...
14114 * common/tdesc.h: ...to here.
14115 * features/aarch64-core.c: Regenerate.
14116 * features/aarch64-fpu.c: Regenerate.
14117 * features/i386/32bit-avx.c: Regenerate.
14118 * features/i386/32bit-avx512.c: Regenerate.
14119 * features/i386/32bit-core.c: Regenerate.
14120 * features/i386/32bit-linux.c: Regenerate.
14121 * features/i386/32bit-mpx.c: Regenerate.
14122 * features/i386/32bit-pkeys.c: Regenerate.
14123 * features/i386/32bit-sse.c: Regenerate.
14124 * features/i386/64bit-avx.c: Regenerate.
14125 * features/i386/64bit-avx512.c: Regenerate.
14126 * features/i386/64bit-core.c: Regenerate.
14127 * features/i386/64bit-linux.c: Regenerate.
14128 * features/i386/64bit-mpx.c: Regenerate.
14129 * features/i386/64bit-pkeys.c: Regenerate.
14130 * features/i386/64bit-segments.c: Regenerate.
14131 * features/i386/64bit-sse.c: Regenerate.
14132 * features/i386/x32-core.c: Regenerate.
14133 * features/tic6x-c6xp.c: Regenerate.
14134 * features/tic6x-core.c: Regenerate.
14135 * features/tic6x-gp.c: Regenerate.
14136 * target-descriptions.c: Use common/tdesc.h.
14137 * target-descriptions.h: Likewise.
14138
9b292f68
TT
141392018-02-24 Tom Tromey <tom@tromey.com>
14140
14141 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
14142 (try_thread_db_load_from_dir, thread_db_load_search): Use
14143 std::string.
14144 (info_auto_load_libthread_db_compare): Return bool. Change
14145 argument types.
14146 (info_auto_load_libthread_db): Use std::vector, std::string.
14147 Remove cleanups.
14148
281d762b
TT
141492018-02-24 Tom Tromey <tom@tromey.com>
14150
14151 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
14152 std::string.
14153 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
14154 std::string*.
14155 * gdbarch.c: Rebuild.
14156 * gdbarch.h: Rebuild.
14157 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
14158 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
14159 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
14160 std::string*.
14161
9d8780f0
SM
141622018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
14163
14164 * gdbtypes.h (sect_offset): Change type to uint64_t.
14165 (sect_offset_str): New function.
14166 * dwarf2read.c (create_addrmap_from_aranges): Use
14167 sect_offset_str.
14168 (error_check_comp_unit_head): Likewise.
14169 (create_debug_type_hash_table): Likewise.
14170 (read_cutu_die_from_dwo): Likewise.
14171 (init_cutu_and_read_dies): Likewise.
14172 (init_cutu_and_read_dies_no_follow): Likewise.
14173 (process_psymtab_comp_unit_reader): Likewise.
14174 (partial_die_parent_scope): Likewise.
14175 (peek_die_abbrev): Likewise.
14176 (process_queue): Likewise.
14177 (dwarf2_physname): Likewise.
14178 (read_namespace_alias): Likewise.
14179 (read_import_statement): Likewise.
14180 (create_dwo_cu_reader): Likewise.
14181 (create_cus_hash_table): Likewise.
14182 (lookup_dwo_cutu): Likewise.
14183 (inherit_abstract_dies): Likewise.
14184 (read_func_scope): Likewise.
14185 (read_call_site_scope): Likewise.
14186 (dwarf2_add_member_fn): Likewise.
14187 (read_common_block): Likewise.
14188 (read_module_type): Likewise.
14189 (read_typedef): Likewise.
14190 (read_subrange_type): Likewise.
14191 (load_partial_dies): Likewise.
14192 (read_partial_die): Likewise.
14193 (find_partial_die): Likewise.
14194 (read_str_index): Likewise.
14195 (dwarf2_string_attr): Likewise.
14196 (build_error_marker_type): Likewise.
14197 (lookup_die_type): Likewise.
14198 (dump_die_shallow): Likewise.
14199 (follow_die_ref): Likewise.
14200 (dwarf2_fetch_die_loc_sect_off): Likewise.
14201 (dwarf2_fetch_constant_bytes): Likewise.
14202 (follow_die_sig): Likewise.
14203 (get_signatured_type): Likewise.
14204 (get_DW_AT_signature_type): Likewise.
14205 (dwarf2_find_containing_comp_unit): Likewise.
14206 (set_die_type): Likewise.
14207
8ec57239
JB
142082018-02-21 John Baldwin <jhb@FreeBSD.org>
14209
14210 * arch/aarch64.c: Include "common-defs.h".
14211 * arch/amd64.c: Likewise.
14212 * arch/i386.c: Likewise.
14213
3eac2b65
TT
142142018-02-21 Tom Tromey <tom@tromey.com>
14215
14216 * value.h: (extract_field_op): Update.
14217 * eval.c (extract_field_op): Return a const char *.
14218 * expression.h (parse_expression_for_completion): Update.
14219 * completer.c (complete_expression): Update.
14220 (add_struct_fields): Make fieldname const.
14221 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14222 (mark_completion_tag, parse_exp_in_context_1): Update.
14223 (parse_expression_for_completion): Change "name" to
14224 unique_xmalloc_ptr*.
14225
6ccb583f
TT
142262018-02-21 Tom Tromey <tom@tromey.com>
14227
14228 * infcall.c (call_function_by_hand_dummy): Use std::vector.
14229
c113ed0c
YQ
142302018-02-21 Yao Qi <yao.qi@linaro.org>
14231
14232 * avr-tdep.c (avr_read_pc): Change parameter type to
14233 readable_regcache.
14234 * gdbarch.sh (read_pc): Likewise.
14235 * gdbarch.c: Re-generated.
14236 * gdbarch.h: Re-generated.
14237 * hppa-tdep.c (hppa_read_pc): Change parameter type to
14238 readable_regcache.
14239 * ia64-tdep.c (ia64_read_pc): Likewise.
14240 * mips-tdep.c (mips_read_pc): Likewise.
14241 * spu-tdep.c (spu_read_pc): Likewise.
14242
4c74fe6b
YQ
142432018-02-21 Yao Qi <yao.qi@linaro.org>
14244
14245 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14246 * regcache-dump.c: New file.
14247 * regcache.c: Move register_dump to regcache-dump.c.
14248 (maintenance_print_registers): Likewise.
14249 (maintenance_print_raw_registers): Likewise.
14250 (maintenance_print_cooked_registers): Likewise.
14251 (maintenance_print_register_groups): Likewise.
14252 (maintenance_print_remote_registers): Likewise.
14253 (_initialize_regcache): Likewise.
14254 * regcache.h (register_dump): Moved from regcache.c.
14255
796bb026
YQ
142562018-02-21 Yao Qi <yao.qi@linaro.org>
14257
14258 * regcache.c (regcache::regcache): Update.
14259 (regcache::invalidate): Move it to detached_regcache::invalidate.
14260 (get_thread_arch_aspace_regcache): Update.
14261 (regcache::raw_update): Update.
14262 (regcache::cooked_read): Remove some code.
14263 (regcache::cooked_read_value): Likewise.
14264 (regcache::raw_write): Remove assert on m_readonly_p.
14265 (regcache::raw_supply_integer): Move it to
14266 detached_regcache::raw_supply_integer.
14267 (regcache::raw_supply_zeroed): Likewise.
14268 * regcache.h (detached_regcache) <raw_supply_integer>: New
14269 declaration.
14270 <raw_supply_zeroed, invalidate>: Likewise.
14271 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14272 <invalidate>: Likewise.
14273 <m_readonly_p>: Removed.
14274
215c69dc
YQ
142752018-02-21 Yao Qi <yao.qi@linaro.org>
14276
14277 * infcmd.c (get_return_value): Let stop_regs point to
14278 get_current_regcache.
14279 * regcache.c (regcache::regcache): Remove.
14280 (register_dump_reg_buffer): New class.
14281 (regcache_print): Adjust.
14282 * regcache.h (regcache): Remove constructors.
14283
f3384e66
YQ
142842018-02-21 Yao Qi <yao.qi@linaro.org>
14285
14286 * regcache.c (class register_dump): New class.
14287 (register_dump_regcache, register_dump_none): New class.
14288 (register_dump_remote, register_dump_groups): New class.
14289 (regcache_print): Update.
14290 * regcache.h (regcache_dump_what): Move it to regcache.c.
14291 (regcache) <dump>: Remove.
14292
c8ec2f33
YQ
142932018-02-21 Yao Qi <yao.qi@linaro.org>
14294
14295 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14296 reg_buffer_rw *.
14297 (jit_unwind_reg_set_impl): Call raw_supply.
14298 (jit_frame_sniffer): Use reg_buffer_rw.
14299 * record-full.c (record_full_core_regbuf): Change its type.
14300 (record_full_core_open_1): Use reg_buffer_rw.
14301 (record_full_close): Likewise.
14302 (record_full_core_fetch_registers): Use regcache->raw_supply.
14303 (record_full_core_store_registers): Likewise.
14304 * regcache.c (regcache::get_register_status): Move it to
14305 reg_buffer.
14306 (regcache_raw_set_cached_value): Remove.
14307 (regcache::raw_set_cached_value): Remove.
14308 (regcache::raw_write): Call raw_supply.
14309 (regcache::raw_supply): Move it to reg_buffer_rw.
14310 * regcache.h (regcache_raw_set_cached_value): Remove.
14311 (reg_buffer_rw): New class.
14312
daf6667d
YQ
143132018-02-21 Yao Qi <yao.qi@linaro.org>
14314
14315 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14316 readonly_detached_regcache.
14317 (dummy_frame_prev_register): Use regcache->cooked_read.
14318 * frame.c (frame_save_as_regcache): Change return type.
14319 (frame_pop): Update.
14320 * frame.h (frame_save_as_regcache): Update declaration.
14321 * inferior.h (get_infcall_suspend_state_regcache): Update
14322 declaration.
14323 * infrun.c (infcall_suspend_state) <registers>: use
14324 readonly_detached_regcache.
14325 (save_infcall_suspend_state): Don't use regcache_dup.
14326 (get_infcall_suspend_state_regcache): Change return type.
14327 * linux-fork.c (struct fork_info) <savedregs>: Change to
14328 readonly_detached_regcache.
14329 <pc>: New field.
14330 (fork_save_infrun_state): Don't use regcache_dup.
14331 (info_checkpoints_command): Adjust.
14332 * mi/mi-main.c (register_changed_p): Update declaration.
14333 (mi_cmd_data_list_changed_registers): Use
14334 readonly_detached_regcache.
14335 (register_changed_p): Change parameter type to
14336 readonly_detached_regcache.
14337 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14338 readonly_detached_regcache.
14339 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14340 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14341 New.
14342 (regcache::save): Move it to reg_buffer.
14343 (regcache::restore): Change parameter type.
14344 (regcache_dup): Remove.
14345 * regcache.h (reg_buffer) <save>: New method.
14346 (readonly_detached_regcache): New class.
14347 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14348 readonly_detached_regcache.
14349 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14350
fc5b8736
YQ
143512018-02-21 Yao Qi <yao.qi@linaro.org>
14352
14353 * frame.c (frame_save_as_regcache): Use regcache method save.
14354 (frame_pop): Use regcache method restore.
14355 * infrun.c (restore_infcall_suspend_state): Likewise.
14356 * linux-fork.c (fork_load_infrun_state): Likewise.
14357 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14358 save.
14359 * regcache.c (regcache_save): Remove.
14360 (regcache::restore): More asserts.
14361 (regcache_cpy): Remove.
14362 * regcache.h (regcache_save): Remove the declaration.
14363 (regcache::restore): Move from private to public.
14364 Remove the friend declaration of regcache_cpy.
14365 (regcache_cpy): Remove declaration.
14366
849d0ba8
YQ
143672018-02-21 Yao Qi <yao.qi@linaro.org>
14368
14369 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14370 parameter type to 'readable_regcache *'.
14371 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14372 * arm-tdep.c (arm_neon_quad_read): Likewise.
14373 (arm_pseudo_read): Likewise.
14374 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14375 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14376 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14377 * gdbarch.c: Re-generated.
14378 * gdbarch.h: Re-generated.
14379 * gdbarch.sh (pseudo_register_read): Change parameter type to
14380 'readable_regcache *'.
14381 (pseudo_register_read_value): Likewise.
14382 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14383 (h8300_pseudo_register_read): Likewise.
14384 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14385 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14386 (i386_pseudo_register_read_into_value): Likewise.
14387 (i386_pseudo_register_read_value): Likewise.
14388 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14389 declaration.
14390 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14391 * m32c-tdep.c (m32c_raw_read): Likewise.
14392 (m32c_read_flg): Likewise.
14393 (m32c_banked_register): Likewise.
14394 (m32c_banked_read): Likewise.
14395 (m32c_sb_read): Likewise.
14396 (m32c_part_read): Likewise.
14397 (m32c_cat_read): Likewise.
14398 (m32c_r3r2r1r0_read): Likewise.
14399 (m32c_pseudo_register_read): Likewise.
14400 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14401 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14402 (mep_pseudo_cr64_read): Likewise.
14403 (mep_pseudo_register_read): Likewise.
14404 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14405 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14406 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14407 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14408 (regcache::cooked_read): Likewise.
14409 (regcache::cooked_read_value): Likewise.
14410 (regcache_cooked_read_signed):
14411 (regcache::cooked_read): Likewise.
14412 * regcache.h (readable_regcache): New class.
14413 (regcache): Inherit readable_regcache. Move some methods to
14414 readable_regcache.
14415 * rl78-tdep.c (rl78_pseudo_register_read): Change
14416 parameter type to 'readable_regcache *'.
14417 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14418 (e500_pseudo_register_read): Change parameter type to
14419 'readable_regcache *'.
14420 (dfp_pseudo_register_read): Likewise.
14421 (vsx_pseudo_register_read): Likewise.
14422 (efpr_pseudo_register_read): Likewise.
14423 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14424 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14425 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14426 (sh64_pseudo_register_read): Likewise.
14427 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14428 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14429 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14430 (spu_pseudo_register_read): Likewise.
14431 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14432 (xtensa_pseudo_register_read): Likewise.
14433
31716595
YQ
144342018-02-21 Yao Qi <yao.qi@linaro.org>
14435
14436 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14437 (regcache::arch): Move it to reg_buffer::arch.
14438 (regcache::register_buffer): Likewise.
14439 (regcache::assert_regnum): Likewise.
14440 (regcache::num_raw_registers): Likewise.
14441 * regcache.h (reg_buffer): New class.
14442 (regcache): Inherit reg_buffer.
14443
7104e59b
SM
144442018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14445
14446 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14447 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14448
2d8adcbd
MM
144492018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14450
14451 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14452
b5884fa7
AH
144532018-02-19 Alan Hayward <alan.hayward@arm.com>
14454
14455 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14456 (SFILES): Remove common/*.c files.
14457 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14458 * common/common.host: Add common reference.
14459 * configure.ac: Likewise.
14460 * configure: Regenerate.
14461
fd90ace4
YQ
144622018-02-16 Yao Qi <yao.qi@linaro.org>
14463
14464 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14465 (block_initialize_namespace): Use new.
14466 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14467 (dwarf2_free_objfile): Use delete.
14468 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14469 (copy_type_recursive): Use new.
14470 * gdb_obstack.h (allocate_on_obstack): New.
14471
85046ae2
YQ
144722018-02-15 Yao Qi <yao.qi@linaro.org>
14473
14474 PR gdb/22849
14475 * inferior.c (exit_inferior_1): Reset inf->control.
14476
355c559b
JB
144772018-02-15 Joel Brobecker <brobecker@adacore.com>
14478
14479 * ada-lang.c (ada_to_fixed_value_create): Delete advance
14480 declaration.
14481
980548fd
PA
144822018-02-14 Pedro Alves <palves@redhat.com>
14483
14484 * frame-unwind.c (frame_unwind_try_unwinder): Always call
14485 frame_cleanup_after_sniffer on exception.
14486
692d6f97
TT
144872018-02-14 Tom Tromey <tom@tromey.com>
14488
14489 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14490 const.
14491 (solib_bfd_open): Make pathname const.
14492 * solib.c (solib_bfd_open): Make pathname const.
14493 * solib-spu.c (spu_bfd_fopen): Make name const.
14494 (spu_bfd_open): Make pathname const.
14495 * solib-darwin.c (darwin_bfd_open): Make pathname const.
14496 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14497
e0cc99a6
TT
144982018-02-14 Tom Tromey <tom@tromey.com>
14499
14500 * symfile.c (symfile_bfd_open): Update.
14501 * source.h (openp, source_full_path_of, find_and_open_source):
14502 Change argument type to unique_xmalloc_ptr.
14503 * source.c (openp): Take a unique_xmalloc_ptr.
14504 (source_full_path_of, find_and_open_source): Likewise.
14505 (open_source_file, symtab_to_fullname): Update.
14506 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14507 unique_xmalloc_ptr.
14508 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14509 (exec_file_find): Update.
14510 * psymtab.c (psymtab_to_fullname): Update.
14511 * nto-tdep.h (nto_find_and_open_solib): Update.
14512 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14513 unique_xmalloc_ptr.
14514 * exec.c (exec_file_attach): Update.
14515 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14516 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14517
b46a8d7c
TT
145182018-02-14 Tom Tromey <tom@tromey.com>
14519
14520 * solib.c: Include source.h.
14521 * nto-tdep.c: Include source.h.
14522 * mi/mi-cmd-env.c: Include source.h.
14523 * infcmd.c: Include source.h.
14524 * exec.c: Include source.h.
14525 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14526 (add_path, directory_switch, source_path, init_source_path): Move
14527 declarations...
14528 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14529 (add_path, directory_switch, source_path, init_source_path):
14530 ...here.
14531
797bc1cb
TT
145322018-02-14 Tom Tromey <tom@tromey.com>
14533
14534 * solist.h (exec_file_find, solib_find): Return
14535 unique_xmalloc_ptr.
14536 (solib_bfd_fopen): Take a const char *.
14537 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14538 (exec_file_find, solib_find): Likewise.
14539 (solib_bfd_fopen): Do not take ownership of "pathname".
14540 (solib_bfd_open): Use unique_xmalloc_ptr.
14541 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14542 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14543 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14544 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14545
f98b2e33
JB
145462018-02-14 Joel Brobecker <brobecker@adacore.com>
14547
14548 * ada-lang.c (name_match_type_from_name): Remove reference to
14549 ada_name_for_lookup in function's documentation.
14550 * ada-lang.h (ada_name_for_lookup): Delete declaration.
14551
24b9144d
SM
145522018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14553
14554 * defs.h (enum openp_flags): New enum.
14555 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14556 Move to enum openp_flags.
14557 (openp_flags): New enum flags.
14558 (openp): Change parameter type to openp_flags.
14559 * source.c (openp): Change parameter type to openp_flags.
14560 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14561 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14562
387cd15b
SM
145632018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14564
14565 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14566 per-command.
14567
b303c6f6
AB
145682018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
14569
14570 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14571 into...
14572 (class dwarf2_queue_guard): ...the destructor of this new class.
14573 (dw2_do_instantiate_symtab): Create instance of the new class
14574 dwarf2_queue_guard, remove cleanup.
14575
9c3630e9
TT
145762018-02-09 Tom Tromey <tom@tromey.com>
14577
14578 * source.c (find_source_lines): Don't reference past the end of
14579 the vector.
14580
c4e12631
MM
145812018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14582
14583 * remote.c (remote_btrace_maybe_reopen): Change error message.
14584 * btrace.c (btrace_enable): Likewise.
14585 (parse_xml_btrace): Likewise.
14586 (parse_xml_btrace_conf): Likewise.
14587
88711fbf
MM
145882018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14589
14590 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14591 (linux_enable_pt, linux_enable_bts): Call
14592 diagnose_perf_event_open_fail.
14593
17ad2a4f
MM
145942018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14595
14596 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14597 Remove parameter and change return type. Update callers. Move it.
14598 (linux_enable_bts, linux_enable_pt): Improve error message.
14599 (linux_enable_pt): Remove zero buffer size check.
14600 (linux_enable_btrace): Improve error messages. Remove NULL return
14601 check.
14602
de6242d3
MM
146032018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14604
14605 * btrace.c (btrace_enable): Remove target_supports_btrace call.
14606 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14607 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14608 (linux_supports_pt, linux_supports_btrace): Remove.
14609 (linux_enable_bts): Call cpu_supports_bts.
14610 * nat/linux-btrace.h (linux_supports_btrace): Remove.
14611 * remote.c (remote_supports_btrace): Remove.
14612 (init_remote_ops): Remove remote_supports_btrace.
14613 * target-delegates.c: Regenerated.
14614 * target.c (target_supports_btrace): Remove.
14615 * target.h (target_ops) <to_supports_btrace>: Remove
14616 (target_supports_btrace): Remove.
14617 * x86-linux-nat.c (x86_linux_create_target): Remove
14618 linux_supports_btrace.
14619
9ee23a85
MM
146202018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14621
14622 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14623 btrace failed.
14624 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14625 exception and use message in own exception.
14626
5c3284c1
MM
146272018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14628
14629 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14630 (perf_event_pt_event_type): Use gdb_file_up.
14631 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14632 scoped_fd, and scoped_mmap.
14633
84696f37
MM
146342018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14635
14636 * common/scoped_mmap.h: New.
14637 * unittests/scoped_mmap-selftest.c: New.
14638 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14639 unittests/scoped_mmap-selftest.c.
14640
ea4a0888
MM
146412018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14642
14643 * common/scoped_fd.h: New.
14644 * unittests/scoped_fd-selftest.c: New.
14645 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14646 unittests/scoped_fd-selftest.c.
14647
869e8290
TT
146482018-02-09 Tom Tromey <tom@tromey.com>
14649
14650 * auto-load.c (auto_load_section_scripts): Use
14651 gdb::unique_xmalloc_ptr.
14652
a37a2ae7
TT
146532018-02-09 Tom Tromey <tom@tromey.com>
14654
14655 * auto-load.c (execute_script_contents): Use std::string.
14656
4e725347
JB
146572018-02-09 Joel Brobecker <brobecker@adacore.com>
14658
14659 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14660 Python function, rather than a new command.
14661
9a897d43
TT
146622018-02-08 Tom Tromey <tom@tromey.com>
14663
14664 * solib.c (solib_find_1): Use std::string.
14665 (solib_bfd_fopen): Use unique_xmalloc_ptr.
14666
58ef3771
TT
146672018-02-08 Tom Tromey <tom@tromey.com>
14668
14669 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14670
a9abc434
TT
146712018-02-08 Tom Tromey <tom@tromey.com>
14672
14673 * source.c (find_source_lines): Use gdb::def_vector.
14674
84f27c6f
TT
146752018-02-08 Tom Tromey <tom@tromey.com>
14676
14677 * macrocmd.c (struct temporary_macro_definition): New.
14678 (macro_define_command): Use temporary_macro_definition. Remove
14679 cleanups.
14680 (free_macro_definition_ptr): Remove.
14681
0354904b
TT
146822018-02-08 Tom Tromey <tom@tromey.com>
14683
14684 * macroexp.c (maybe_expand): Use std::string.
14685
1739cf24
TT
146862018-02-08 Tom Tromey <tom@tromey.com>
14687
14688 * macroexp.c (struct macro_buffer): Add initializers for some
14689 members.
14690 (init_buffer, init_shared_buffer, free_buffer)
14691 (free_buffer_return_text): Remove.
14692 (macro_buffer): New constructors.
14693 (~macro_buffer): New destructor.
14694 (macro_buffer::set_shared): New method.
14695 (macro_buffer::resize_buffer, macro_buffer::appendc)
14696 (macro_buffer::appendmem): Now methods, not free functions.
14697 (set_token, append_tokens_without_splicing, stringify)
14698 (macro_stringify): Update.
14699 (gather_arguments): Change return type. Remove argc_p argument,
14700 add args_ptr argument. Use std::vector.
14701 (substitute_args): Remove argc argument. Accept std::vector.
14702 (expand): Update. Use std::vector.
14703 (scan, macro_expand, macro_expand_next): Update.
14704
f6c2623e
TT
147052018-02-08 Tom Tromey <tom@tromey.com>
14706
14707 * symtab.c (default_collect_symbol_completion_matches_break_on):
14708 Use unique_xmalloc_ptr.
14709 * macroscope.h: (sal_macro_scope, user_macro_scope)
14710 (default_macro_scope): Return unique_xmalloc_ptr.
14711 * macroscope.c (sal_macro_scope, user_macro_scope)
14712 (default_macro_scope): Return unique_xmalloc_ptr.
14713 * macroexp.h (macro_expand, macro_expand_once): Return
14714 unique_xmalloc_ptr.
14715 * macroexp.c (macro_expand, macro_expand_once): Return
14716 unique_xmalloc_ptr.
14717 * macrocmd.c (macro_expand_command, macro_expand_once_command)
14718 (info_macro_command, info_macros_command): Use
14719 unique_xmalloc_ptr.
14720 * compile/compile-c-support.c (write_macro_definitions): Use
14721 unique_xmalloc_ptr.
14722 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14723
c2e0e465
SM
147242018-02-07 Simon Marchi <simon.marchi@ericsson.com>
14725
14726 * value.c (value_static_field): Assign field type instead of
14727 containing type when returning an optimized out value.
14728
3f8c94b4
YQ
147292018-02-06 Yao Qi <yao.qi@linaro.org>
14730
14731 * ft32-tdep.c (ft32_read_pc): Remove.
14732 (ft32_write_pc): Remove.
14733 (ft32_gdbarch_init): Update.
14734 * m32r-tdep.c (m32r_read_pc): Remove.
14735 (m32r_gdbarch_init): Update.
14736 * mep-tdep.c (mep_read_pc): Remove.
14737 (mep_gdbarch_init): Update.
14738 * microblaze-tdep.c (microblaze_write_pc): Remove.
14739 (microblaze_gdbarch_init): Update.
14740 * mn10300-tdep.c (mn10300_read_pc): Remove.
14741 (mn10300_write_pc): Remove.
14742 (mn10300_gdbarch_init): Update.
14743 * moxie-tdep.c (moxie_read_pc): Remove.
14744 (moxie_write_pc): Remove.
14745 (moxie_gdbarch_init): Update.
14746
bca65a23
YQ
147472018-02-06 Yao Qi <yao.qi@linaro.org>
14748
14749 * expprint.c (print_subexp_standard): Handle
14750 OP_F77_UNDETERMINED_ARGLIST.
14751 (dump_subexp_body_standard): Likewise.
14752
583e3f90 147532018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 14754
583e3f90
YQ
14755 * target-descriptions.c (tdesc_element_visitor) Add empty
14756 implementations.
b8df6ca7
AH
14757 (tdesc_type): Move make_gdb_type from here.
14758 (tdesc_type_builtin): Likewise.
14759 (tdesc_type_vector): Likewise.
14760 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14761 (make_gdb_type_struct): Move from tdesc_type_with_fields.
14762 (make_gdb_type_union): Likewise.
14763 (make_gdb_type_flags): Likewise.
14764 (make_gdb_type_enum): Likewise.
14765 (make_gdb_type): New function.
14766 (tdesc_register_type): Use static make_gdb_type.
14767
e813d34a
RK
147682018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
14769
14770 * infcmd.c (default_print_one_register_info): Align natural-format
14771 column values consistently one under another.
14772 (pad_to_column): New function.
14773
0eb876f5
JB
147742018-02-05 Joel Brobecker <brobecker@adacore.com>
14775
14776 * dwarf2read.c (dwarf2_physname): Move commment.
14777
0625771b
LS
147782018-02-01 Leszek Swirski <leszeks@google.com>
14779
14780 * varobj.c (varobj_formatted_print_options): Allow recursive
14781 pretty printing if pretty printing is enabled.
14782
59498c30
LS
147832018-02-01 Leszek Swirski <leszeks@google.com>
14784
14785 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14786 names after a structop as a filename.
14787
2d9e6acb
YQ
147882018-02-01 Yao Qi <yao.qi@linaro.org>
14789
14790 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14791 (arm_record_coproc_data_proc): Likewise.
14792
df95a9cf
YQ
147932018-02-01 Yao Qi <yao.qi@linaro.org>
14794
14795 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14796
07e5f5cf
NP
147972018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
14798
14799 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14800 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14801
3045b475
PA
148022018-01-31 Pedro Alves <palves@redhat.com>
14803
14804 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14805 * inflow.c (child_terminal_save_inferior): Wrap reference to
14806 tcgetpgrp in HAVE_TERMIOS_H.
14807 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14808 _WIN32.
14809 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14810 always iterate over all inferiors.
14811 (gdbsim_cntrl_c): Adjust.
14812 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14813
929b5ad4
JB
148142018-01-31 Joel Brobecker <brobecker@adacore.com>
14815
14816 * gdbtypes.c (lookup_array_range_type): Make sure the array's
14817 index type is objfile-owned if the element type is as well.
14818
29236ca2
JB
148192018-01-31 Joel Brobecker <brobecker@adacore.com>
14820
14821 GDB 8.1 released.
14822
c81e8879
PR
148232018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
14824
14825 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14826 "features/s390x-linux64.c".
14827 (_initialize_s390_linux_tdep): Remove initialization of tdescs
14828 s390_linux32 and s390x_linux64.
14829 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14830 default tdesc.
14831 * s390-tdep.c: Include "features/s390-linux32.c" and
14832 "features/s390x-linux64.c".
14833 (s390_tdesc_valid): Add check for tdesc_has_registers.
14834 (s390_gdbarch_init): Make sure there is always a valid tdesc.
14835 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14836 tdesc_s390x_linux64.
14837 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14838 tdesc_s390x_linux64 to...
14839 * s390-tdep.h: ...here.
14840
e671cd59
PA
148412018-01-30 Pedro Alves <palves@redhat.com>
14842
14843 PR gdb/13211
14844 * config.in, configure: Regenerate.
14845 * configure.ac: Check for getpgid.
14846 * go32-nat.c (go32_pass_ctrlc): New.
14847 (go32_target): Install it.
14848 * inf-child.c (inf_child_target): Install
14849 child_terminal_save_inferior, child_pass_ctrlc and
14850 child_interrupt.
14851 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14852 (inf_ptrace_target): No longer install it.
14853 * infcmd.c (interrupt_target_1): Adjust.
14854 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14855 (child_interrupt): Declare.
14856 (inferior::terminal_state): New.
14857 * inflow.c (struct terminal_info): Update comments.
14858 (inferior_process_group): Delete.
14859 (terminal_is_ours): Delete.
14860 (gdb_tty_state): New.
14861 (child_terminal_init): Adjust.
14862 (is_gdb_terminal, sharing_input_terminal_1)
14863 (sharing_input_terminal): New functions.
14864 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
14865 Set the process's actual process group in the foreground if
14866 possible. Handle is_ours_for_output/is_ours distinction. Don't
14867 mark terminal as the inferior's if not sharing GDB's terminal.
14868 Don't check attach_flag.
14869 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14870 pass down a target_terminal_state.
14871 (child_terminal_save_inferior): New, factored out from ...
14872 (child_terminal_ours_1): ... this. Handle
14873 target_terminal_state::is_ours_for_output.
14874 (child_interrupt, child_pass_ctrlc): New.
14875 (inflow_inferior_exit): Clear the inferior's terminal_state.
14876 (copy_terminal_info): Copy the inferior's terminal state.
14877 (_initialize_inflow): Remove reference to terminal_is_ours.
14878 * inflow.h (inferior_process_group): Delete.
14879 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14880 * procfs.c (procfs_target): Don't install procfs_interrupt.
14881 (procfs_interrupt): Delete.
14882 * remote.c (remote_serial_quit_handler): Adjust.
14883 (remote_interrupt): Remove ptid parameter. Adjust.
14884 * target-delegates.c: Regenerate.
14885 * target.c: Include "terminal.h".
14886 (target_terminal::terminal_state): Rename to ...
14887 (target_terminal::m_terminal_state): ... this.
14888 (target_terminal::init): Adjust.
14889 (target_terminal::inferior): Adjust to per-inferior
14890 terminal_state.
14891 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14892 (target_terminal::ours, target_terminal::ours_for_output): Use
14893 target_terminal_is_ours_kind.
14894 (target_interrupt): Remove ptid parameter. Adjust.
14895 (default_target_pass_ctrlc): Adjust.
14896 * target.h (target_ops::to_terminal_save_inferior): New field.
14897 (target_ops::to_interrupt): Remove ptid_t parameter.
14898 (target_interrupt): Remove ptid_t parameter. Update comment.
14899 (target_pass_ctrlc): Update comment.
14900 * target/target.h (target_terminal_state): New scoped enum,
14901 factored out of ...
14902 (target_terminal::terminal_state): ... here.
14903 (target_terminal::inferior): Update comments.
14904 (target_terminal::restore_inferior): New.
14905 (target_terminal::is_inferior, target_terminal::is_ours)
14906 (target_terminal::is_ours_for_output): Adjust.
14907 (target_terminal::scoped_restore_terminal_state): Adjust to
14908 rename, and call restore_inferior() instead of inferior().
14909 (target_terminal::scoped_restore_terminal_state::m_state): Change
14910 type.
14911 (target_terminal::terminal_state): Rename to ...
14912 (target_terminal::m_terminal_state): ... this and change type.
14913
9c3a5d93
PA
149142018-01-30 Pedro Alves <palves@redhat.com>
14915
14916 * linux-nat.c (wait_for_signal): New function.
14917 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14918 directly.
14919 (async_terminal_is_ours)
14920 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14921 (linux_nat_add_target): Don't override
14922 to_terminal_inferior/to_terminal_ours.
14923
69ab5edb
SDJ
149242018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
14925
14926 * remote.c (remote_follow_fork): Don't call "detach_inferior".
14927
fc8e7e75
SM
149282018-01-28 Simon Marchi <simon.marchi@ericsson.com>
14929
14930 * dwarf2read.c (free_dwo_files): Add forward-declaration.
14931 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14932 dwarf2_per_objfile_free here.
14933 (dwarf2_per_objfile_free): Remove.
14934 (_initialize_dwarf2_read): Don't register
14935 dwarf2_per_objfile_free as a registry cleanup.
14936
b2a426e2
EZ
149372018-01-27 Eli Zaretskii <eliz@gnu.org>
14938
14939 Avoid compilation errors in MinGW native builds
14940
14941 The error is triggered by including python-internal.h, and the
14942 error message is:
14943
14944 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14945 from build-gnulib/import/math.h:27,
14946 from d:/usr/Python26/include/pyport.h:235,
14947 from d:/usr/Python26/include/Python.h:58,
14948 from python/python-internal.h:94,
14949 from python/py-arch.c:24:
14950 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14951 using ::hypot;
14952 ^~~~~
14953
14954 This happens because Python headers define 'hypot' to expand t
14955 '_hypot' in the Windows builds.
14956 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14957 'hypoth'. This avoids a compilation error.
14958
0bdd8eac
AH
149592018-01-26 Alan Hayward <alan.hayward@arm.com>
14960
14961 * MAINTAINERS (Write After Approval): Fix ordering.
14962
56ae9dc3
AH
149632018-01-26 Alan Hayward <alan.hayward@arm.com>
14964
14965 * MAINTAINERS (Write After Approval): Add Alan Hayward.
14966
7433498b
AM
149672018-01-26 Alan Modra <amodra@gmail.com>
14968
14969 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14970 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14971 Remove nop. Make const. Comment.
14972 (powerpc32_plt_stub_so_2): New.
14973 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14974 Correct count. Update uses.
14975 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14976 Move common code reading PLT entry word. Correct
14977 powerpc32_plt_stub PLT address calculation.
14978 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14979 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14980 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14981 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14982 (ppc64_standard_linkage8): Likewise.
14983 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14984 Correct insns description.
14985 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14986
0f59d5fc
PA
149872018-01-24 Pedro Alves <palves@redhat.com>
14988
14989 GCC PR libstdc++/83906
14990 * gdbtypes.c (operator==(const dynamic_prop &,
14991 const dynamic_prop &)): New.
14992 (operator==(const range_bounds &, const range_bounds &)): New.
14993 (check_types_equal): Use them instead of memcmp.
14994 * gdbtypes.h (operator==(const dynamic_prop &,
14995 const dynamic_prop &)): Declare.
14996 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14997 (operator==(const range_bounds &, const range_bounds &)): Declare.
14998 (operator!=(const range_bounds &, const range_bounds &)): Declare.
14999
ef8914a4
PR
150002018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15001
15002 * s390-linux-tdep.c (s390_record_address_mask)
15003 (s390_record_calc_disp_common, s390_record_calc_disp)
15004 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15005 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15006 (s390_process_record): Move to s390-tdep.c.
15007 (s390_linux_init_abi_any): Adjust.
15008 * s390-tdep.c (s390_record_address_mask)
15009 (s390_record_calc_disp_common, s390_record_calc_disp)
15010 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15011 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15012 (s390_process_record): Moved from s390-linux-tdep.c
15013 (s390_gdbarch_init): Adjust.
15014
d6e58945
PR
150152018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15016
15017 * s390-linux-nat.c (s390-tdep.h): New include.
15018 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
15019 (HFILES_NO_SRCDIR): Add s390-tdep.h.
15020 (ALLDEPFILES): Add s390-tdep.c.
15021 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
15022 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
15023 * s390-tdep.h: ...this. New file.
15024 * s390-linux-tdep.c (s390-tdep.h): New include.
15025 (_initialize_s390_tdep): Rename to...
15026 (_initialize_s390_linux_tdep): ...this and adjust.
15027 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
15028 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
15029 s390-tdep.h.
15030 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
15031 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
15032 (s390_is_partial_instruction, s390_software_single_step)
15033 (is_non_branch_ril, s390_displaced_step_copy_insn)
15034 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
15035 (s390_prologue_data, s390_addr, s390_store, s390_load)
15036 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
15037 (s390_register_call_saved, s390_guess_tracepoint_registers)
15038 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
15039 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
15040 (s390_pseudo_register_name, s390_pseudo_register_type)
15041 (s390_pseudo_register_read, s390_pseudo_register_write)
15042 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
15043 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
15044 (s390_addr_bits_remove, s390_address_class_type_flags)
15045 (s390_address_class_type_flags_to_name)
15046 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
15047 (s390_function_arg_float, s390_function_arg_vector)
15048 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
15049 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
15050 (s390_frame_align, s390_register_return_value, s390_return_value)
15051 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
15052 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
15053 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
15054 (s390_trad_frame_prev_register, s390_unwind_cache)
15055 (s390_prologue_frame_unwind_cache)
15056 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
15057 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
15058 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
15059 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
15060 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
15061 (s390_frame_base_address, s390_local_base_address)
15062 (s390_frame_base, s390_gcc_target_options)
15063 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
15064 (s390_validate_reg_range, s390_tdesc_valid)
15065 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
15066 * s390-tdep.c: ...this. New file.
15067
9c0b896e
PR
150682018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15069
15070 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
15071 (s390_process_record, s390_gdbarch_tdep_alloc)
15072 (s390_linux_init_abi_any): Use/set new hook.
15073
7042632b
PR
150742018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15075
15076 * s390-linux-tdep.c (osabi.h): New include.
15077 (s390_linux_init_abi_31, s390_linux_init_abi_64)
15078 (s390_linux_init_abi_any): New functions.
15079 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
15080
650f5e13
PR
150812018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15082
15083 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
15084 tdesc_has_registers check
15085
47c9317e
PR
150862018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15087
15088 * s390-linux-tdep.c (s390_tdesc_valid): New function.
15089 (s390_validate_reg_range): New macro.
15090 (s390_gdbarch_init): Adjust.
15091
095085d8
PR
150922018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15093
15094 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15095 (s390_gdbarch_tdep_alloc): Adjust.
15096 (s390_gdbarch_init): Adjust.
15097
ab9bcc67
PR
150982018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15099
15100 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
15101 <have_tdb>: Change type to bool.
15102 (s390_gdbarch_tdep_alloc): Adjust.
15103 (s390_gdbarch_init): Adjust.
15104
21f6f5ff
PR
151052018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15106
15107 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
15108 (gdbarch_tdep) <have_upper, have_vx>: New fields.
15109 (s390_gdbarch_tdep_alloc): New function.
15110 (s390_gdbarch_init): Allocate tdep at start and use its fields
15111 instead of separate variables.
15112
0eb97953
PR
151132018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15114
15115 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
15116 when looking for cached gdbarch and add comment for remaining.
15117
5c319bb2
PA
151182018-01-22 Pedro Alves <palves@redhat.com>
15119 Sergio Durigan Junior <sergiodj@redhat.com>
15120
15121 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
15122 case.
15123
d65ce302
MR
151242018-01-22 Maciej W. Rozycki <macro@mips.com>
15125
15126 * MAINTAINERS: Update my company e-mail address.
15127
ec7a5fcb
YQ
151282018-01-22 Yao Qi <yao.qi@linaro.org>
15129
15130 * regcache.c (cooked_write_test): New function.
15131 (_initialize_regcache): Register the test.
15132
11f57cb6
YQ
151332018-01-22 Yao Qi <yao.qi@linaro.org>
15134
15135 * ia64-tdep.c (ia64_pseudo_register_read): Call
15136 regcache->cooked_read instead of regcache_cooked_read_unsigned.
15137 * m32c-tdep.c (m32c_cat_read): Likewise.
15138 (m32c_r3r2r1r0_read): Likewise.
15139 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15140 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15141
03f50fc8
YQ
151422018-01-22 Yao Qi <yao.qi@linaro.org>
15143
15144 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
15145 method raw_read instead of regcache_raw_read.
15146 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15147 * arm-tdep.c (arm_neon_quad_read): Likewise.
15148 * avr-tdep.c (avr_pseudo_register_read): Likewise.
15149 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15150 * frv-tdep.c (frv_pseudo_register_read): Likewise.
15151 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
15152 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15153 (i386_pseudo_register_read_into_value): Likewise.
15154 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15155 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15156 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15157 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
15158 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
15159 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
15160 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15161 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
15162 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
15163
dc711524
YQ
151642018-01-22 Yao Qi <yao.qi@linaro.org>
15165
15166 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
15167 * configure.tgt: Remove target mt.
15168 * mt-tdep.c: Remove.
15169 * regcache.c (cooked_read_test): Remove the check for mt.
15170
3f5a868b
YQ
151712018-01-22 Yao Qi <yao.qi@linaro.org>
15172
15173 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
15174 instead of gdbarch_pseudo_register_read_value.
15175
de4cb04a
JB
151762018-01-22 Joel Brobecker <brobecker@adacore.com>
15177
15178 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
15179 language is Ada.
15180
a9e40818
JB
151812018-01-22 Joel Brobecker <brobecker@adacore.com>
15182
15183 * linespec.c (create_sals_line_offset): Remove code that preserved
15184 the symtab_and_line's line number.
15185
e707fc44
AB
151862018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15187
15188 * varobj.c (varobj_create): Don't set valid_block when creating a
15189 floating varobj.
15190
03d0bf7b
AB
151912018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15192
15193 * varobj.c (varobj_create): Remove out of date comment.
15194
ae451627
AB
151952018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15196
15197 PR mi/20395
15198 * ada-exp.y (write_var_from_sym): Pass extra parameter when
15199 updating innermost block.
15200 * parse.c (innermost_block_tracker::update): Take extra type
15201 parameter, and check types match before updating innermost block.
15202 (write_dollar_variable): Update innermost block for registers.
15203 * parser-defs.h (enum innermost_block_tracker_type): New enum.
15204 (innermost_block_tracker::innermost_block_tracker): Initialise
15205 m_types member.
15206 (innermost_block_tracker::reset): Take type parameter.
15207 (innermost_block_tracker::update): Take type parameter, and pass
15208 type through as needed.
15209 (innermost_block_tracker::m_types): New member.
15210 * varobj.c (varobj_create): Pass type when reseting innermost
15211 block.
15212
aee1fcdf
AB
152132018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15214
15215 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
15216 * ada-lang.c (resolve_subexp): Likewise.
15217 * breakpoint.c (set_breakpoint_condition) Likewise.
15218 (watch_command_1) Likewise.
15219 * c-exp.y (variable): Likewise.
15220 * d-exp.y (PrimaryExpression): Likewise.
15221 * f-exp.y (variable): Likewise.
15222 * go-exp.y (variable): Likewise.
15223 * m2-exp.y (variable): Likewise.
15224 * objfiles.c (objfile::~objfile): Likewise.
15225 * p-exp.y (variable): Likewise.
15226 * parse.c (innermost_block): Change type.
15227 * parser-defs.h (class innermost_block_tracker): New.
15228 (innermost_block): Change to innermost_block_tracker.
15229 * printcmd.c (display_command): Switch to innermost_block API.
15230 (do_one_display): Likewise.
15231 * rust-exp.y (do_one_display): Likewise.
15232 * symfile.c (clear_symtab_users): Likewise.
15233 * varobj.c (varobj_create): Switch to innermost_block API, replace
15234 use of innermost_block with block stored on varobj object.
15235
396af9a1
AB
152362018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15237
15238 * expression.h (innermost_block): Remove declaration.
15239 * varobj.c: Add 'parser-defs.h' include.
15240
fcfcc376
TT
152412018-01-19 Tom Tromey <tom@tromey.com>
15242
15243 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15244 symbols in the static and global blocks.
15245
5a6c3296
JC
152462018-01-19 James Clarke <jrtc27@jrtc27.com>
15247
15248 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15249 gdb_ptrace.h, and move including gdb_wait.h ...
15250 * nat/linux-ptrace.h: ... to here.
15251
bc09b0c1
SM
152522018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15253
15254 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15255 inf_ptrace_detach_success.
15256 (inf_ptrace_detach_success): Add inferior parameter, use it
15257 instead of inferior_ptid, pass it to detach_inferior.
15258 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15259 parameter.
15260 * inferior.c (detach_inferior): Add overload that takes an
15261 inferior object.
15262 * inferior.h (detach_inferior): Likewise.
15263 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15264 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15265 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15266
6e1e1966
SM
152672018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15268
15269 * target.h (struct target_ops) <to_detach>: Add inferior
15270 parameter.
15271 (target_detach): Likewise.
15272 * target.c (dispose_inferior): Pass inferior down.
15273 (target_detach): Pass inferior down. Assert that it is equal to
15274 the current inferior.
15275 * aix-thread.c (aix_thread_detach): Pass inferior down.
15276 * corefile.c (core_file_command): Pass current_inferior() down.
15277 * corelow.c (core_detach): Add inferior parameter.
15278 * darwin-nat.c (darwin_detach): Likewise.
15279 * gnu-nat.c (gnu_detach): Likewise.
15280 * inf-ptrace.c (inf_ptrace_detach): Likewise.
15281 * infcmd.c (detach_command): Pass current_inferior() down to
15282 target_detach.
15283 * infrun.c (follow_fork_inferior): Pass parent_inf to
15284 target_detach.
15285 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15286 target_detach.
15287 * linux-nat.c (linux_nat_detach): Add inferior parameter.
15288 * linux-thread-db.c (thread_db_detach): Likewise.
15289 * nto-procfs.c (procfs_detach): Likewise.
15290 * procfs.c (procfs_detach): Likewise.
15291 * record.c (record_detach): Likewise.
15292 * record.h (struct inferior): Forward-declare.
15293 (record_detach): Add inferior parameter.
15294 * remote-sim.c (gdbsim_detach): Likewise.
15295 * remote.c (remote_detach_1): Likewise.
15296 (remote_detach): Likewise.
15297 (extended_remote_detach): Likewise.
15298 * sol-thread.c (sol_thread_detach): Likewise.
15299 * target-debug.h (target_debug_print_inferior_p): New macro.
15300 * target-delegates.c: Re-generate.
15301 * top.c (kill_or_detach): Pass inferior down to target_detach.
15302 * windows-nat.c (windows_detach): Add inferior parameter.
15303
6bd6f3b6
SM
153042018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15305
15306 * target.h (struct target_ops) <to_detach>: Remove args
15307 parameter.
15308 (target_detach): Likewise.
15309 * target.c (dispose_inferior): Adjust.
15310 (target_detach): Remove args parameter, adjust.
15311 * aix-thread.c (aix_thread_detach): Adjust.
15312 * corefile.c (core_file_command): Adjust.
15313 * corelow.c (core_detach): Adjust.
15314 * darwin-nat.c (darwin_detach): Adjust.
15315 * gnu-nat.c (gnu_detach): Adjust.
15316 * inf-ptrace.c (inf_ptrace_detach): Adjust.
15317 * infcmd.c (detach_command): Adjust
15318 * infrun.c (follow_fork_inferior): Adjust.
15319 (handle_vfork_child_exec_or_exit): Adjust.
15320 * linux-fork.c (linux_fork_detach): Remove args parameter.
15321 * linux-fork.h (linux_fork_detach): Likewise.
15322 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15323 * linux-thread-db.c (thread_db_detach): Likewise.
15324 * nto-procfs.c (procfs_detach): Likewise.
15325 * procfs.c (procfs_detach): Likewise.
15326 (do_detach): Remove signo parameter.
15327 * record.c (record_detach): Remove args parameter.
15328 * record.h (record_detach): Likewise.
15329 * remote-sim.c (gdbsim_detach): Likewise.
15330 * remote.c (remote_detach_1): Likewise.
15331 (remote_detach): Likewise.
15332 (extended_remote_detach): Likewise.
15333 * sol-thread.c (sol_thread_detach): Likewise.
15334 * target-delegates.c: Re-generate.
15335 * top.c (struct qt_args) <args>: Remove field.
15336 (kill_or_detach): Don't pass args.
15337 (quit_force): Don't set args.
15338 * windows-nat.c (windows_detach): Remove args parameter.
15339
88af8ea8
YQ
153402018-01-19 Yao Qi <yao.qi@linaro.org>
15341
15342 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15343 (arm_linux_init_abi): Install it.
15344
dea445b9
YQ
153452018-01-19 Yao Qi <yao.qi@linaro.org>
15346
15347 * osabi.c (gdb_osabi_names): Extend the regexp for
15348 arm-linux-gnueabihf.
15349
4a17f768
YQ
153502018-01-18 Yao Qi <yao.qi@linaro.org>
15351
15352 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15353 m_abbrevs.
15354 (abbrev_table::add_abbrev): Update.
15355 (abbrev_table::lookup_abbrev): Update.
15356
d679c21a
YQ
153572018-01-18 Yao Qi <yao.qi@linaro.org>
15358
15359 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15360
7d937cad
SDJ
153612018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15362
15363 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15364 to "std::string".
15365
9e14690d
TT
153662018-01-17 Tom Tromey <tom@tromey.com>
15367
15368 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15369
50a82047
TT
153702018-01-17 Tom Tromey <tom@tromey.com>
15371
15372 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15373 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15374 (create_array_type_with_stride): Update.
15375 * dwarf2read.c (set_die_type): Update.
15376
c89b44cd
TT
153772018-01-17 Tom Tromey <tom@tromey.com>
15378
15379 * dwarf2read.c (delayed_method_info): Remove typedef.
15380 (dwarf2_cu::method_info): Now a std::vector.
15381 (add_to_method_list): Update.
15382 (free_delayed_list): Remove.
15383 (compute_delayed_physnames): Update.
15384 (process_full_comp_unit, process_full_type_unit): Clear the method
15385 list. Remove cleanups.
15386 (psymtab_include_file_name): Add name_holder parameter. Use
15387 unique_xmalloc_ptr.
15388 (dwarf_decode_lines): Update.
15389
fcd3b13d
SM
153902018-01-17 Tom Tromey <tom@tromey.com>
15391 Simon Marchi <simon.marchi@ericsson.com>
15392
15393 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15394 (dwarf2_per_objfile::free_cached_comp_units)
15395 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15396 (init_cutu_and_read_dies_no_follow): Update.
15397 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15398 (dwarf2_cu::~dwarf2_cu): New.
15399 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15400 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15401
685af9cd
TT
154022018-01-17 Tom Tromey <tom@tromey.com>
15403 Simon Marchi <simon.marchi@ericsson.com>
15404
15405 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15406 (struct die_reader_specs) <abbrev_table>: New member.
15407 (struct abbrev_table): Add constructor.
15408 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15409 <abbrev_obstack>: Now an auto_obstack.
15410 (abbrev_table_up): New typedef.
15411 (init_cu_die_reader): Add abbrev_table parameter.
15412 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15413 Add result_dwo_abbrev_table.
15414 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15415 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15416 Update.
15417 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15418 parameter.
15419 (skip_children): Update.
15420 (abbrev_table::alloc_abbrev): Rename from
15421 abbrev_table_alloc_abbrev.
15422 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15423 (abbrev_table::lookup_abbrev): Rename from
15424 abbrev_table_lookup_abbrev.
15425 (abbrev_table_read_table): Return abbrev_table_up.
15426 (abbrev_table_free, abbrev_table_free_cleanup)
15427 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15428 (load_partial_dies): Update.
15429
5e2db402
TT
154302018-01-17 Tom Tromey <tom@tromey.com>
15431
15432 * dwarf2read.c (dwarf2_compute_name): Update comment.
15433 (read_func_scope, read_variable): Update.
15434 (new_symbol): Remove.
15435 (new_symbol_full): Rename to new_symbol.
15436
ee7f689e 154372018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
15438
15439 PR gdb/16577
15440 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15441 a warning instead of throwing an error, set section size to 0 and return
15442 NULL.
15443 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15444
4d9b86e1
SM
154452018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15446
15447 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15448 std::string.
15449 (linux_ptrace_attach_fail_reason_string): Likewise.
15450 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15451 Likewise.
15452 (linux_ptrace_attach_fail_reason_string): Likewise.
15453 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15454
a7b2d0fb
SM
154552018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15456
15457 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15458
f517c180
EA
154592018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15460
15461 PR gdb/21559
15462 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15463 checking for fs_base/gs_base fields in struct user_regs_struct.
15464 * configure: Regenerate.
15465
7045b1ca
YQ
154662018-01-17 Yao Qi <yao.qi@linaro.org>
15467
15468 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15469 function.
15470 (aarch64_linux_init_abi): Install it to gdbarch hook
15471 gcc_target_options.
15472
db422fb2
PA
154732018-01-15 Pedro Alves <palves@redhat.com>
15474
15475 * common/signals-state-save-restore.c
15476 (save_original_signals_state): Fix typos.
15477
ba643918
SDJ
154782017-01-12 Tom Tromey <tom@tromey.com>
15479 Sergio Durigan Junior <sergiodj@redhat.com>
15480
15481 * Makefile.in (install-only): Install gdb-add-index.
15482
906b4aac
JB
154832018-01-12 John Baldwin <jhb@FreeBSD.org>
15484
15485 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15486
bdf2a94a
AA
154872018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
15488
15489 * infrun.c (keep_going_pass_signal): Clear step-over info when
15490 insert_breakpoints fails.
15491
71d378ae
PA
154922018-01-11 Pedro Alves <palves@redhat.com>
15493
15494 PR gdb/22583
15495 * infrun.c (resume): Rename to ...
15496 (resume_1): ... this.
15497 (resume): Reimplement as wrapper around resume_1.
15498
3cada740
PA
154992018-01-11 Pedro Alves <palves@redhat.com>
15500
15501 PR remote/22597
15502 * remote.c (remote_parse_stop_reply): Default to the last-set
15503 general thread instead of to 'magic_null_ptid'.
15504
618daa93
PA
155052018-01-10 Pedro Alves <palves@redhat.com>
15506
15507 * language.h (language_get_symbol_name_matcher): Rename ...
15508 (get_symbol_name_matcher): ... this.
15509 * language.c (language_get_symbol_name_matcher): Ditto.
15510 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15511 callers adjusted.
15512
c63d3e8d
PA
155132018-01-10 Pedro Alves <palves@redhat.com>
15514
15515 PR gdb/22670
15516 * dwarf2read.c
15517 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15518 Adjust to use language_get_symbol_name_matcher instead of
15519 language_defn::la_get_symbol_name_matcher.
15520 * language.c (language_get_symbol_name_matcher): If in Ada mode
15521 and the lookup name is a verbatim match, return Ada's matcher.
15522 * language.h (language_get_symbol_name_matcher): Adjust comment.
15523 (ada_lookup_name_info::verbatim_p):: New method.
15524
d4c2a405
PA
155252018-01-10 Pedro Alves <palves@redhat.com>
15526
15527 PR gdb/22670
15528 * ada-lang.c (ada_collect_symbol_completion_matches): If the
15529 minsym's language is language_auto or language_cplus, pass down
15530 language_ada instead.
15531 * symtab.c (compare_symbol_name): Don't frob symbol language here.
15532
8825213e
PA
155332018-01-10 Pedro Alves <palves@redhat.com>
15534
15535 PR gdb/22670
15536 * minsyms.c (linkage_name_str): New function.
15537 (iterate_over_minimal_symbols): Use it.
15538
2d97a5d9
JB
155392018-01-09 John Baldwin <jhb@FreeBSD.org>
15540
15541 * NEWS: Document that 'info proc' now works on FreeBSD.
15542
92fce24d
JB
155432018-01-09 John Baldwin <jhb@FreeBSD.org>
15544
15545 * configure.ac: Check for kinfo_getfile in libutil.
15546 * configure: Regenerate.
15547 * config.in: Regenerate.
15548 * fbsd-nat.c: Include "fbsd-tdep.h".
15549 (fbsd_fetch_cmdline): New.
15550 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15551 rather than calling error.
15552 (fbsd_info_proc): New.
15553 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15554 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15555 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15556
262f62f5
JB
155572018-01-09 John Baldwin <jhb@FreeBSD.org>
15558
15559 * fbsd-nat.c (struct free_deleter): Remove.
15560 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15561
b999e203
JB
155622018-01-09 John Baldwin <jhb@FreeBSD.org>
15563
15564 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15565 NULL for an empty pathname.
15566
d2176225
JB
155672018-01-09 John Baldwin <jhb@FreeBSD.org>
15568
15569 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15570 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15571 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15572 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15573 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15574 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15575 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15576 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15577 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15578 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15579 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15580 (fbsd_core_fetch_timeval, fbsd_print_sigset)
15581 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15582 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
15583 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15584
9c4ac400
ST
155852018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
15586
15587 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15588 (gnu_xfer_auxv): New function.
15589 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15590 TARGET_OBJECT_AUXV.
15591
1e5ded6c
YQ
155922018-01-08 Yao Qi <yao.qi@linaro.org>
15593 Simon Marchi <simon.marchi@ericsson.com>
15594
15595 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15596 common/selftest.c.
15597 (COMMON_OBS): Remove selftest.o.
15598 * configure.ac: Append selftest-arch.c and common/selftest.c to
15599 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
15600 * configure: Re-generated.
15601 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15602 GDB_SELF_TEST.
15603 (maintenance_info_selftests): Likewise.
15604
04bafb1e
XR
156052018-01-08 Xavier Roirand <roirand@adacore.com>
15606
15607 * ada-valprint.c (val_print_packed_array_elements): Use
15608 proper number of elements when printing an array indexed
15609 by an enumeration type.
15610
518817b3
SM
156112018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15612
15613 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15614 (dw2_get_file_names_reader): Adjust.
15615 (lookup_dwo_signatured_type): Adjust.
15616 (lookup_dwp_signatured_type): Adjust.
15617 (lookup_signatured_type): Adjust.
15618 (create_type_unit_group): Adjust.
15619 (get_type_unit_group): Adjust.
15620 (process_psymtab_comp_unit_reader): Adjust.
15621 (build_type_psymtabs_reader): Adjust.
15622 (scan_partial_symbols): Adjust.
15623 (add_partial_symbol): Adjust.
15624 (add_partial_subprogram): Adjust.
15625 (peek_die_abbrev): Adjust.
15626 (fixup_go_packaging): Adjust.
15627 (process_imported_unit_die): Adjust.
15628 (dwarf2_compute_name): Adjust.
15629 (dwarf2_physname): Adjust.
15630 (read_import_statement): Adjust.
15631 (handle_DW_AT_stmt_list): Adjust.
15632 (read_file_scope): Adjust.
15633 (read_func_scope): Adjust.
15634 (read_lexical_block_scope): Adjust.
15635 (read_call_site_scope): Adjust.
15636 (read_variable): Adjust.
15637 (dwarf2_rnglists_process): Adjust.
15638 (dwarf2_ranges_process): Adjust.
15639 (dwarf2_ranges_read): Adjust.
15640 (dwarf2_get_pc_bounds): Adjust.
15641 (dwarf2_record_block_ranges): Adjust.
15642 (dwarf2_add_field): Adjust.
15643 (dwarf2_add_member_fn): Adjust.
15644 (read_structure_type): Adjust.
15645 (process_structure_scope): Adjust.
15646 (read_enumeration_type): Adjust.
15647 (read_array_type): Adjust.
15648 (mark_common_block_symbol_computed): Adjust.
15649 (read_common_block): Adjust.
15650 (read_namespace_type): Adjust.
15651 (read_namespace): Adjust.
15652 (read_module_type): Adjust.
15653 (read_tag_pointer_type): Adjust.
15654 (read_tag_ptr_to_member_type): Adjust.
15655 (read_tag_string_type): Adjust.
15656 (read_subroutine_type): Adjust.
15657 (read_typedef): Adjust.
15658 (read_base_type): Adjust.
15659 (attr_to_dynamic_prop): Adjust.
15660 (read_subrange_type): Adjust.
15661 (read_unspecified_type): Adjust.
15662 (dwarf2_read_abbrevs): Adjust.
15663 (load_partial_dies): Adjust.
15664 (read_partial_die): Adjust.
15665 (find_partial_die): Adjust.
15666 (guess_partial_die_structure_name): Adjust.
15667 (fixup_partial_die): Adjust.
15668 (read_attribute_value): Adjust.
15669 (read_addr_index): Adjust.
15670 (read_addr_index_from_leb128): Adjust.
15671 (read_str_index): Adjust.
15672 (dwarf2_string_attr): Adjust.
15673 (get_debug_line_section): Adjust.
15674 (dwarf_decode_line_header): Adjust.
15675 (lnp_state_machine::check_line_address): Adjust.
15676 (dwarf_decode_lines_1): Adjust.
15677 (dwarf_decode_lines): Adjust.
15678 (dwarf2_start_symtab): Adjust.
15679 (var_decode_location): Adjust.
15680 (new_symbol_full): Adjust.
15681 (dwarf2_const_value_data): Adjust.
15682 (dwarf2_const_value_attr): Adjust.
15683 (dwarf2_const_value): Adjust.
15684 (die_type): Adjust.
15685 (die_containing_type): Adjust.
15686 (build_error_marker_type): Adjust.
15687 (lookup_die_type): Adjust.
15688 (guess_full_die_structure_name): Adjust.
15689 (anonymous_struct_prefix): Adjust.
15690 (determine_prefix): Adjust.
15691 (dwarf2_name): Adjust.
15692 (follow_die_ref_or_sig): Adjust.
15693 (follow_die_offset): Adjust.
15694 (follow_die_ref): Adjust.
15695 (follow_die_sig_1): Adjust.
15696 (follow_die_sig): Adjust.
15697 (get_signatured_type): Adjust.
15698 (get_DW_AT_signature_type): Adjust.
15699 (decode_locdesc): Adjust.
15700 (dwarf_decode_macros): Adjust.
15701 (cu_debug_loc_section): Adjust.
15702 (fill_in_loclist_baton): Adjust.
15703 (dwarf2_symbol_mark_computed): Adjust.
15704 (init_one_comp_unit): Don't assign
15705 dwarf2_cu::dwarf2_per_objfile.
15706 (set_die_type): Adjust.
15707
ed2dc618
SM
157082018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15709
15710 * dwarf2read.c (struct mapped_debug_names): Add constructor.
15711 <dwarf2_per_objfile>: New field.
15712 (dwarf2_per_objfile): Remove global.
15713 (get_dwarf2_per_objfile): New function.
15714 (set_dwarf2_per_objfile): New function.
15715 (dwarf2_build_psymtabs_hard): Change objfile parameter to
15716 dwarf2_per_objfile.
15717 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15718 (read_abbrev_offset): Likewise.
15719 (read_indirect_string): Likewise.
15720 (read_indirect_line_string): Likewise.
15721 (read_indirect_string_at_offset): Likewise.
15722 (read_indirect_string_from_dwz): Likewise.
15723 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15724 dwarf2_per_objfile.
15725 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15726 (create_all_comp_units): Change objfile parameter to
15727 dwarf2_per_objfile.
15728 (create_all_type_units): Likewise.
15729 (process_queue): Add dwarf2_per_objfile parameter.
15730 (read_and_check_comp_unit_head): Likewise.
15731 (lookup_dwo_unit_in_dwp): Likewise.
15732 (get_dwp_file): Likewise.
15733 (process_cu_includes): Likewise.
15734 (struct free_dwo_file_cleanup_data): New struct.
15735 (dwarf2_has_info): Use get_dwarf2_per_objfile and
15736 set_dwarf2_per_objfile.
15737 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15738 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15739 context, adjust calls.
15740 (dw2_instantiate_symtab): Likewise.
15741 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
15742 (dw2_get_cu): Likewise.
15743 (create_cu_from_index_list): Change objfile parameter to
15744 dwarf2_per_objfile.
15745 (create_cus_from_index_list): Get dwarf2_per_objfile from
15746 context, adjust calls.
15747 (create_cus_from_index): Likewise.
15748 (create_signatured_type_table_from_index): Change objfile
15749 parameter to dwarf2_per_objfile.
15750 (create_signatured_type_table_from_debug_names): Change objfile
15751 parameter to dwarf2_per_objfile.
15752 (create_addrmap_from_index): Likewise.
15753 (create_addrmap_from_aranges): Likewise.
15754 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15755 (dw2_setup): Remove.
15756 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15757 context.
15758 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15759 get_dwarf2_per_objfile.
15760 (dw2_forget_cached_source_info): Likewise.
15761 (dw2_map_symtabs_matching_filename): Likewise.
15762 (struct dw2_symtab_iterator) <index>: Remove.
15763 <dwarf2_per_objfile>: New field.
15764 (dw2_symtab_iter_init): Replace index parameter with
15765 dwarf2_per_objfile.
15766 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15767 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15768 (dw2_print_stats): Likewise.
15769 (dw2_dump): Likewise.
15770 (dw2_expand_symtabs_for_function): Likewise.
15771 (dw2_expand_all_symtabs): Likewise.
15772 (dw2_expand_symtabs_with_fullname): Likewise.
15773 (dw2_expand_marked_cus): Replace index and objfile parameters
15774 with dwarf2_per_objfile.
15775 (dw_expand_symtabs_matching_file_matcher): Add
15776 dwarf2_per_objfile parameter and adjust calls.
15777 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15778 adjust calls.
15779 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15780 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15781 adjust calls.
15782 (create_cus_from_debug_names_list): Replace objfile parameter
15783 with dwarf2_per_objfile and adjust calls.
15784 (create_cus_from_debug_names): Likewise.
15785 (dwarf2_read_debug_names): Likewise.
15786 (mapped_debug_names::namei_to_name): Adjust call.
15787 (dw2_debug_names_iterator::next): Likewise.
15788 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15789 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15790 (dw2_debug_names_dump): Likewise.
15791 (dw2_debug_names_expand_symtabs_for_function): Likewise.
15792 (dw2_debug_names_expand_symtabs_matching): Likewise.
15793 (dwarf2_initialize_objfile): Likewise.
15794 (dwarf2_build_psymtabs): Likewise.
15795 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15796 this_cu.
15797 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15798 (read_and_check_comp_unit_head): Likewise.
15799 (read_abbrev_offset): Likewise.
15800 (create_debug_type_hash_table): Likewise.
15801 (create_debug_types_hash_table): Likewise.
15802 (create_all_type_units): Replace objfile parameter with
15803 dwarf2_per_objfile.
15804 (add_type_unit): Add dwarf2_per_objfile parameter.
15805 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15806 with dwarf2_per_objfile.
15807 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15808 (lookup_dwp_signatured_type): Likewise.
15809 (lookup_signatured_type): Likewise.
15810 (read_cutu_die_from_dwo): Likewise.
15811 (init_tu_and_read_dwo_dies): Likewise.
15812 (init_cutu_and_read_dies): Likewise.
15813 (init_cutu_and_read_dies_no_follow): Likewise.
15814 (allocate_type_unit_groups_table): Add objfile parameter.
15815 (create_type_unit_group): Use dwarf2_per_objfile from cu.
15816 (get_type_unit_group): Likewise.
15817 (process_psymtab_comp_unit): Update call.
15818 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15819 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15820 (print_tu_stats): Likewise.
15821 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15822 in void* parameter.
15823 (build_type_psymtabs): Change objfile parameter to
15824 dwarf2_per_objfile.
15825 (process_skeletonless_type_unit): Use dwarf2_per_objfile
15826 passed in void* parameter.
15827 (process_skeletonless_type_units): Change objfile parameter to
15828 dwarf2_per_objfile.
15829 (set_partial_user): Likewise.
15830 (dwarf2_build_psymtabs_hard): Likewise.
15831 (read_comp_units_from_section): Likewise.
15832 (create_all_comp_units): Likewise.
15833 (scan_partial_symbols): Update calls.
15834 (add_partial_symbol): Likewise.
15835 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15836 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15837 (process_queue): Add dwarf2_per_objfile parameter.
15838 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15839 (compute_compunit_symtab_includes): Likewise.
15840 (process_cu_includes): Add dwarf2_per_objfile parameter.
15841 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15842 (process_full_type_unit): Likewise.
15843 (process_imported_unit_die): Update call.
15844 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15845 (read_file_scope): Likewise.
15846 (allocate_dwo_file_hash_table): Add objfile parameter.
15847 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15848 (create_cus_hash_table): Likewise.
15849 (create_dwp_hash_table): Likewise.
15850 (create_dwo_unit_in_dwp_v1): Likewise.
15851 (create_dwp_v2_section): Likewise.
15852 (create_dwo_unit_in_dwp_v2): Likewise.
15853 (lookup_dwo_unit_in_dwp): Likewise.
15854 (try_open_dwop_file): Likewise.
15855 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15856 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15857 cleanup to include a reference to dwarf2_per_objfile.
15858 (open_dwp_file): Add dwarf2_per_objfile parameter.
15859 (open_and_init_dwp_file): Likewise.
15860 (get_dwp_file): Likewise.
15861 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15862 (queue_and_load_all_dwo_tus): Update call.
15863 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15864 data.
15865 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15866 (dwarf2_ranges_process): Likewise.
15867 (dwarf2_get_pc_bounds): Likewise.
15868 (mark_common_block_symbol_computed): Likewise.
15869 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15870 (dwarf2_read_abbrevs): Update call.
15871 (read_partial_die): Use dwarf2_per_objfile from cu.
15872 (find_partial_die): Likewise.
15873 (fixup_partial_die): Likewise.
15874 (read_attribute_value): Likewise.
15875 (read_indirect_string_at_offset_from): Add objfile parameter.
15876 (read_indirect_string_at_offset): Add dwarf2_per_objfile
15877 parameter.
15878 (read_indirect_string_from_dwz): Add objfile parameter.
15879 (read_indirect_string): Add objfile parameter.
15880 (read_addr_index_1): Add dwarf2_per_objfile parameter.
15881 (read_addr_index): Use dwarf2_per_objfile from cu.
15882 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15883 call dw2_setup.
15884 (read_str_index): Use dwarf2_per_objfile from cu.
15885 (get_debug_line_section): Likewise.
15886 (read_formatted_entries): Add dwarf2_per_objfile parameter.
15887 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15888 (new_symbol_full): Use dwarf2_per_objfile from cu.
15889 (build_error_marker_type): Likewise.
15890 (lookup_die_type): Likewise.
15891 (determine_prefix): Likewise.
15892 (follow_die_offset): Likewise.
15893 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15894 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15895 (dwarf2_fetch_die_type_sect_off): Likewise.
15896 (dwarf2_get_die_type): Likewise.
15897 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15898 (get_signatured_type): Likewise.
15899 (get_DW_AT_signature_type): Likewise.
15900 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15901 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15902 (cu_debug_loc_section): Likewise.
15903 (fill_in_loclist_baton): Likewise.
15904 (dwarf2_symbol_mark_computed): Likewise.
15905 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15906 dwarf2_per_objfile.
15907 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15908 parameter.
15909 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15910 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15911 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15912 (set_die_type): Use dwarf2_free_objfile from cu.
15913 (get_die_type_at_offset): Likewise.
15914 (dwarf2_per_objfile_free): Don't assign global variable.
15915 (debug_names) <constructor>: Add dwarf2_per_objfile
15916 parameter, update m_debugstrlookup construction.
15917 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15918 parameter.
15919 <m_dwarf2_per_objfile>: New field.
15920 <lookup>: Use m_dwarf2_per_objfile.
15921 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15922 (psyms_seen_size): Likewise.
15923 (write_gdbindex): Replace objfile parameter with
15924 dwarf2_per_objfile.
15925 (write_debug_names): Likewise.
15926 (write_psymtabs_to_index): Likewise.
15927 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15928 calls.
15929
e3b94546
SM
159302018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15931
15932 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15933 <dwarf2_per_objfile>: New field.
15934 (struct dwarf2_per_cu_data) <objfile>: Remove.
15935 <dwarf2_per_objfile>: New field.
15936 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15937 of objfile.
15938 (create_signatured_type_table_from_index): Likewise.
15939 (create_debug_type_hash_table): Likewise.
15940 (fill_in_sig_entry_from_dwo_entry): Likewise.
15941 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15942 (create_type_unit_group): Assign dwarf2_per_objfile instead of
15943 objfile.
15944 (create_partial_symtab): Access objfile through
15945 dwarf2_per_objfile.
15946 (process_psymtab_comp_unit_reader): Likewise.
15947 (read_comp_units_from_section): Likewise.
15948 (scan_partial_symbols): Likewise.
15949 (add_partial_symbol): Likewise.
15950 (add_partial_subprogram): Likewise.
15951 (peek_die_abbrev): Likewise.
15952 (fixup_go_packaging): Likewise.
15953 (process_full_comp_unit): Likewise.
15954 (process_full_type_unit): Likewise.
15955 (process_imported_unit_die): Likewise.
15956 (dwarf2_compute_name): Likewise.
15957 (dwarf2_physname): Likewise.
15958 (read_import_statement): Likewise.
15959 (create_cus_hash_table): Assign dwarf2_physname instead of
15960 objfile.
15961 (read_func_scope): Access objfile through dwarf2_per_objfile.
15962 (read_lexical_block_scope): Likewise.
15963 (read_call_site_scope): Likewise.
15964 (read_variable): Likewise.
15965 (dwarf2_rnglists_process): Likewise.
15966 (dwarf2_ranges_process): Likewise.
15967 (dwarf2_ranges_read): Likewise.
15968 (dwarf2_record_block_ranges): Likewise.
15969 (dwarf2_add_field): Likewise.
15970 (dwarf2_add_member_fn): Likewise.
15971 (read_structure_type): Likewise.
15972 (process_structure_scope): Likewise.
15973 (read_enumeration_type): Likewise.
15974 (read_array_type): Likewise.
15975 (read_common_block): Likewise.
15976 (read_namespace_type): Likewise.
15977 (read_namespace): Likewise.
15978 (read_module_type): Likewise.
15979 (read_tag_pointer_type): Likewise.
15980 (read_tag_ptr_to_member_type): Likewise.
15981 (read_tag_string_type): Likewise.
15982 (read_subroutine_type): Likewise.
15983 (read_typedef): Likewise.
15984 (read_base_type): Likewise.
15985 (attr_to_dynamic_prop): Likewise.
15986 (read_subrange_type): Likewise.
15987 (read_unspecified_type): Likewise.
15988 (load_partial_dies): Likewise.
15989 (read_partial_die): Likewise.
15990 (find_partial_die): Likewise.
15991 (guess_partial_die_structure_name): Likewise.
15992 (fixup_partial_die): Likewise.
15993 (read_attribute_value): Likewise.
15994 (read_addr_index_from_leb128): Likewise.
15995 (dwarf2_read_addr_index): Likewise.
15996 (dwarf2_string_attr): Likewise.
15997 (lnp_state_machine::check_line_address): Likewise.
15998 (dwarf_decode_lines_1): Likewise.
15999 (dwarf_decode_lines): Likewise.
16000 (dwarf2_start_symtab): Likewise.
16001 (var_decode_location): Likewise.
16002 (new_symbol_full): Likewise.
16003 (dwarf2_const_value_data): Likewise.
16004 (dwarf2_const_value_attr): Likewise.
16005 (dwarf2_const_value): Likewise.
16006 (die_type): Likewise.
16007 (die_containing_type): Likewise.
16008 (lookup_die_type): Likewise.
16009 (guess_full_die_structure_name): Likewise.
16010 (anonymous_struct_prefix): Likewise.
16011 (dwarf2_name): Likewise.
16012 (follow_die_ref_or_sig): Likewise.
16013 (follow_die_offset): Likewise.
16014 (follow_die_ref): Likewise.
16015 (dwarf2_fetch_die_loc_sect_off): Likewise.
16016 (dwarf2_fetch_constant_bytes): Likewise.
16017 (dwarf2_fetch_die_type_sect_off): Likewise.
16018 (dwarf2_get_die_type): Likewise.
16019 (follow_die_sig): Likewise.
16020 (decode_locdesc): Likewise.
16021 (dwarf2_per_cu_objfile): Likewise.
16022 (dwarf2_per_cu_text_offset): Likewise.
16023 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
16024 objfile.
16025 (set_die_type): Access objfile through
16026 dwarf2_per_objfile.
16027
b01ba14d
SM
160282018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16029
16030 * valprint.c (converted_character_d): Remove typedef.
16031 (DEF_VEC_O (converted_character_d)): Remove.
16032 (count_next_character): Use std::vector.
16033 (print_converted_chars_to_obstack): Likewise.
16034 (generic_printstr): Likewise.
16035
4d0fdd9b
SM
160362018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16037
16038 * xml-support.h (struct gdb_xml_value): Add constructor.
16039 <value>: Change type to unique_xmalloc_ptr.
16040 (gdb_xml_value_s): Remove typedef.
16041 (DEF_VEC_O (gdb_xml_value_s)): Remove.
16042 (gdb_xml_element_start_handler): Change parameter type to
16043 std::vector.
16044 (xml_find_attribute): Likewise.
16045 * xml-support.c (xml_find_attribute): Change parameter type to
16046 std::vector and adjust.
16047 (gdb_xml_values_cleanup): Remove.
16048 (gdb_xml_parser::start_element): Adjust to std::vector.
16049 (xinclude_start_include): Change paraeter type to std::vector
16050 and adjust.
16051 * btrace.c (check_xml_btrace_version): Likewise.
16052 (parse_xml_btrace_block): Likewise.
16053 (parse_xml_btrace_pt_config_cpu): Likewise.
16054 (parse_xml_btrace_pt): Likewise.
16055 (parse_xml_btrace_conf_bts): Likewise.
16056 (parse_xml_btrace_conf_pt): Likewise.
16057 * memory-map.c (memory_map_start_memory): Likewise.
16058 (memory_map_start_property): Likewise.
16059 * osdata.c (osdata_start_osdata): Likewise.
16060 (osdata_start_item): Likewise.
16061 (osdata_start_column): Likewise.
16062 * remote.c (start_thread): Likewise.
16063 * solib-aix.c (library_list_start_library): Likewise.
16064 (library_list_start_list): Likewise.
16065 * solib-svr4.c (library_list_start_library): Likewise.
16066 (svr4_library_list_start_list): Likewise.
16067 * solib-target.c (library_list_start_segment): Likewise.
16068 (library_list_start_section): Likewise.
16069 (library_list_start_library): Likewise.
16070 (library_list_start_list): Likewise.
16071 * tracepoint.c (traceframe_info_start_memory): Likewise.
16072 (traceframe_info_start_tvar): Likewise.
16073 * xml-syscall.c (syscall_start_syscall): Likewise.
16074 * xml-tdesc.c (tdesc_start_target): Likewise.
16075 (tdesc_start_feature): Likewise.
16076 (tdesc_start_reg): Likewise.
16077 (tdesc_start_union): Likewise.
16078 (tdesc_start_struct): Likewise.
16079 (tdesc_start_flags): Likewise.
16080 (tdesc_start_enum): Likewise.
16081 (tdesc_start_field): Likewise.
16082 (tdesc_start_enum_value): Likewise.
16083 (tdesc_start_vector): Likewise.
16084
f979c73f
SM
160852018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16086
16087 * extension.h (struct xmethod_worker) <clone>: Remove.
16088 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
16089 Remove.
16090 (python_xmethod_worker::clone): Remove.
16091 * valops.c (find_overload_match): Use std::move instead of
16092 clone.
16093
ba18742c
SM
160942018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16095
16096 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
16097 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
16098 <free_xmethod_worker_data>: Remove.
16099 <get_matching_xmethod_workers>: Chance VEC to std::vector.
16100 <get_xmethod_arg_types>: Remove.
16101 <get_xmethod_result_type>: Remove.
16102 <invoke_xmethod>: Remove.
16103 * extension.c (new_xmethod_worker): Remove.
16104 (clone_xmethod_worker): Remove.
16105 (get_matching_xmethod_workers): Return void, pass std::vector by
16106 pointer.
16107 (get_xmethod_arg_types): Rename to...
16108 (xmethod_worker::get_arg_types): ... this, and adjust.
16109 (get_xmethod_result_type): Rename to...
16110 (xmethod_worker::get_result_type): ... this, and adjust.
16111 (invoke_xmethod): Remove.
16112 (free_xmethod_worker): Remove.
16113 (free_xmethod_worker_vec): Remove.
16114 * extension.h (enum ext_lang_rc): Move here from
16115 extension-priv.h.
16116 (struct xmethod_worker): Add constructor and destructor.
16117 <data>: Remove.
16118 <value>: Remove.
16119 <invoke, clone, do_get_result_type, do_get_arg_types>: New
16120 virtual pure methods.
16121 <get_arg_types, get_result_type>: New methods.
16122 (xmethod_worker_ptr): Remove typedef.
16123 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
16124 (xmethod_worker_vec): Remove typedef.
16125 (xmethod_worker_up): New typedef.
16126 (invoke_xmethod): Remove.
16127 (clone_xmethod_worker): Remove.
16128 (free_xmethod_worker): Remove.
16129 (free_xmethod_worker_vec): Remove.
16130 (get_xmethod_arg_types): Remove.
16131 (get_xmethod_result_type): Remove.
16132 * valops.c (find_method_list): Use std::vector, don't use
16133 intermediate vector.
16134 (value_find_oload_method_list): Use std::vector.
16135 (find_overload_match): Use std::vector.
16136 (find_oload_champ): Use std::vector.
16137 * value.c (value_free): Use operator delete.
16138 (value_of_xmethod): Rename to...
16139 (value_from_xmethod): ... this. Don't assign
16140 xmethod_worker::value, take rvalue-reference.
16141 (result_type_of_xmethod): Adjust.
16142 (call_xmethod): Adjust.
16143 * value.h: Include extension.h.
16144 (struct xmethod_worker): Don't forward-declare.
16145 (value_of_xmethod): Rename to...
16146 (value_from_xmethod): ... this, take rvalue-reference.
16147 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
16148 (struct python_xmethod_worker): ... this, add constructor and
16149 destructor.
16150 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
16151 (gdbpy_free_xmethod_worker_data): Rename to...
16152 (python_xmethod_worker::~python_xmethod_worker): ... this and
16153 adjust.
16154 (gdbpy_clone_xmethod_worker_data): Rename to...
16155 (python_xmethod_worker::clone): ... this and adjust.
16156 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
16157 temporary vector.
16158 (gdbpy_get_xmethod_arg_types): Rename to...
16159 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
16160 (gdbpy_get_xmethod_result_type): Rename to...
16161 (python_xmethod_worker::do_get_result_type): ... this and
16162 adjust.
16163 (gdbpy_invoke_xmethod): Rename to...
16164 (python_xmethod_worker::invoke): ... this and adjust.
16165 (new_python_xmethod_worker): Rename to...
16166 (python_xmethod_worker::python_xmethod_worker): ... this and
16167 adjust.
16168 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
16169 Remove.
16170 (gdbpy_free_xmethod_worker_data): Remove.
16171 (gdbpy_get_matching_xmethod_workers): Use std::vector.
16172 (gdbpy_get_xmethod_arg_types): Remove.
16173 (gdbpy_get_xmethod_result_type): Remove.
16174 (gdbpy_invoke_xmethod): Remove.
16175 * python/python.c (python_extension_ops): Remove obsolete
16176 callbacks.
16177
e379cee6
PA
161782018-01-05 Pedro Alves <palves@redhat.com>
16179
16180 PR gdb/18653
16181 * common/signals-state-save-restore.c
16182 (save_original_signals_state): New parameter 'quiet'. Warn if we
16183 find a custom handler preinstalled, instead of internal erroring.
16184 But only warn if !quiet.
16185 * common/signals-state-save-restore.h
16186 (save_original_signals_state): New parameter 'quiet'.
16187 * main.c (captured_main_1): Move save_original_signals_state call
16188 after option handling, and pass QUIET.
16189
a655456c
PA
161902018-01-05 Pedro Alves <palves@redhat.com>
16191
16192 * spu-tdep.c (spu_catch_start): Pass
16193 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
16194
de63c46b
PA
161952018-01-05 Pedro Alves <palves@redhat.com>
16196
16197 PR gdb/22670
16198 * ada-lang.c (literal_symbol_name_matcher): New function.
16199 (ada_get_symbol_name_matcher): Use it for
16200 symbol_name_match_type::SEARCH_NAME.
16201 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
16202 it down instead of assuming symbol_name_match_type::FULL.
16203 * block.h (block_lookup_symbol): New parameter 'match_type'.
16204 * c-valprint.c (print_unpacked_pointer): Use
16205 lookup_symbol_search_name instead of lookup_symbol.
16206 * compile/compile-object-load.c (get_out_value_type): Pass down
16207 symbol_name_match_type::SEARCH_NAME.
16208 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
16209 symbol_name_match_type::FULL.
16210 * cp-support.c (cp_get_symbol_name_matcher): Handle
16211 symbol_name_match_type::SEARCH_NAME.
16212 * infrun.c (insert_exception_resume_breakpoint): Use
16213 lookup_symbol_search_name.
16214 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
16215 * psymtab.c (maintenance_check_psymtabs): Use
16216 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
16217 * stack.c (print_frame_args): Use lookup_symbol_search_name and
16218 SYMBOL_SEARCH_NAME.
16219 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16220 if symbol_name_match_type::SEARCH_NAME.
16221 (lookup_symbol_in_language): Pass down
16222 symbol_name_match_type::FULL.
16223 (lookup_symbol_search_name): New.
16224 (lookup_language_this): Pass down
16225 symbol_name_match_type::SEARCH_NAME.
16226 (lookup_symbol_aux, lookup_local_symbol): New parameter
16227 'match_type'. Pass it down.
16228 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16229 (lookup_symbol_search_name): New declaration.
16230 (lookup_symbol_in_block): New 'match_type' parameter.
16231
f98fc17b
PA
162322018-01-05 Pedro Alves <palves@redhat.com>
16233
16234 PR gdb/22670
16235 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16236 ada_lookup_symbol.
16237 (ada_lookup_symbol): Reimplement in terms of
16238 ada_lookup_symbol_list, bits factored out from
16239 ada_lookup_encoded_symbol.
16240
342f8240
JB
162412018-01-05 Joel Brobecker <brobecker@adacore.com>
16242
16243 * ada-exp.y (write_object_renaming): When subscripting an array
16244 using a symbol as the index, pass the block in call to
16245 ada_lookup_encoded_symbol when looking that symbol up.
16246
7150d33c
JG
162472018-01-05 Jerome Guitton <guitton@adacore.com>
16248
16249 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16250 TYPE_INDEX_TYPE.
16251
cc0e770c
JB
162522018-01-05 Joel Brobecker <brobecker@adacore.com>
16253
16254 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16255 the case where VALUE_LVAL (val0) is not lval_memory.
16256
f79da888 162572018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
16258
16259 * ada-valprint.c (print_optional_low_bound): Handle
16260 character-indexed array printing like boolean-indexed array
16261 printing.
16262
cd385f94
JB
162632018-01-05 Joel Brobecker <brobecker@adacore.com>
16264
16265 * NEWS: Create a new section for the next release branch.
16266 Rename the section of the current branch, now that it has
16267 been cut.
16268
09aca949
JB
162692018-01-05 Joel Brobecker <brobecker@adacore.com>
16270
16271 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16272 * version.in: Bump version to 8.1.50.DATE-git.
16273
9f757bf7
XR
162742018-01-03 Xavier Roirand <roirand@adacore.com>
16275
16276 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16277 Add field.
16278 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16279 Add field.
16280 (default_exception_support_info) <catch_handlers_sym>: Add field.
16281 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16282 (ada_exception_name_addr_1): Add "catch handlers" handling.
16283 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16284 Update all callers.
16285 (create_excep_cond_exprs) <ex>: Add parameter.
16286 (re_set_exception): Update create_excep_cond_exprs call.
16287 (print_it_exception, print_one_exception, print_mention_exception)
16288 (print_recreate_exception): Add "catch handler" handling.
16289 (allocate_location_catch_handlers, re_set_catch_handlers)
16290 (check_status_catch_handlers, print_it_catch_handlers)
16291 (print_one_catch_handlers, print_mention_catch_handlers)
16292 (print_recreate_catch_handlers): New function.
16293 (catch_handlers_breakpoint_ops): New variable.
16294 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16295 Add parameter. Add "catch handler" handling.
16296 (ada_exception_sym_name, ada_exception_breakpoint_ops):
16297 Add "catch handler" handling.
16298 (ada_exception_catchpoint_cond_string): Add "catch handler"
16299 handling.
16300 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16301 call.
16302 (catch_ada_handlers_command): New function.
16303 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16304 operations structure.
16305 (_initialize_ada_language): Add "catch handlers" command entry.
16306 * NEWS: Document "catch handlers" feature.
16307
9fe561ab
JB
163082018-01-02 Joel Brobecker <brobecker@adacore.com>
16309
16310 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16311 account when creating the array type of the slice.
16312 (ada_value_slice): Likewise.
16313
a405673c
JB
163142018-01-02 Joel Brobecker <brobecker@adacore.com>
16315
16316 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16317 New enum value.
16318 (create_array_type_with_stride): Add byte_stride_prop parameter.
16319 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16320 New parameter. Update all callers in this file.
16321 (array_type_has_dynamic_stride): New function.
16322 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16323 of arrays with dynamic byte strides.
16324 * dwarf2read.c (read_array_type): Add support for dynamic
16325 DW_AT_byte_stride attributes.
16326
74a2f8ff
JB
163272018-01-02 Joel Brobecker <brobecker@adacore.com>
16328
16329 * dwarf2read.c (read_unspecified_type): Treat
16330 DW_TAG_enumeration_type DIEs from Ada units as stubs.
16331
e2882c85
JB
163322018-01-01 Joel Brobecker <brobecker@adacore.com>
16333
16334 Update copyright year range in all GDB files.
16335
5e70ee09 163362018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
1690bb24
JB
16337
16338 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16339 and gdb/testsuite/gdb.base/step-line.c.
16340
0f0c98a8
JB
163412018-01-01 Joel Brobecker <brobecker@adacore.com>
16342
16343 * copyright.py (main): Dump the contents of
16344 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16345 even if BY_HAND is empty.
16346
82e1e79a
JB
163472018-01-01 Joel Brobecker <brobecker@adacore.com>
16348
16349 * top.c (print_gdb_version): Update Copyright year in version
16350 message.
16351
053f54e5 163522018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 16353
053f54e5 16354 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 16355
053f54e5 16356For older changes see ChangeLog-2017.
c906108c
SS
16357\f
16358Local Variables:
16359mode: change-log
16360left-margin: 8
16361fill-column: 74
16362version-control: never
57da7796 16363coding: utf-8
c906108c 16364End:
This page took 6.159994 seconds and 4 git commands to generate.