Fix "fall through" comments
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
86a73007
TT
12018-05-04 Tom Tromey <tom@tromey.com>
2
3 * s390-tdep.c (s390_process_record): Fix fall-through comments.
4 * xcoffread.c (scan_xcoff_symtab): Move comment later.
5 * symfile.c (section_is_mapped): Fix fall-through comment.
6 * stabsread.c (define_symbol, read_member_functions): Fix
7 fall-through comment.
8 * s390-linux-tdep.c (s390_process_record): Fix fall-through
9 comment.
10 * remote.c (remote_wait_as): Fix fall-through comment.
11 * p-exp.y (yylex): Fix fall-through comment.
12 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
13 comment.
14 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
15 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
16 * jv-exp.y (yylex): Fix fall-through comment.
17 * go-exp.y (lex_one_token): Fix fall-through comment.
18 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
19 fall-through comment.
20 * f-exp.y (yylex): Fix fall-through comment.
21 * dwarf2read.c (process_die): Fix fall-through comments.
22 * dbxread.c (process_one_symbol): Fix fall-through comment.
23 * d-exp.y (lex_one_token): Fix fall-through comment.
24 * cp-name-parser.y (yylex): Fix fall-through comment.
25 * coffread.c (coff_symtab_read): Fix fall-through comment.
26 * c-exp.y (lex_one_token): Fix fall-through comment.
27 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
28 comment.
29 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
30 comment.
31
56bcdbea
TT
322018-05-04 Tom Tromey <tom@tromey.com>
33
34 PR python/22730:
35 * NEWS: Mention gdb.execute change.
36 * gdbcmd.h (execute_control_command): Don't declare.
37 * python/python.c (execute_gdb_command): Use read_command_lines_1,
38 execute_control_commands, execute_control_commands_to_string.
39 * cli/cli-script.h (execute_control_commands)
40 (execute_control_commands_to_string): Declare.
41 (execute_control_command): Add from_tty parameter.
42 * cli/cli-script.c (execute_control_commands)
43 (execute_control_commands_to_string): New functions.
44 (execute_user_command): Use execute_control_commands.
45 (execute_control_command_1): Add "from_tty" parameter. Update.
46 (execute_control_command): Likewise.
47
a913fffb
TT
482018-05-04 Tom Tromey <tom@tromey.com>
49
50 PR python/22731:
51 * NEWS: Mention that breakpoint commands are writable.
52 * python/py-breakpoint.c (bppy_set_commands): New function.
53 (breakpoint_object_getset) <"commands">: Use it.
54
60b3cef2
TT
552018-05-04 Tom Tromey <tom@tromey.com>
56
57 * tracepoint.c (actions_command): Update.
58 * mi/mi-cmd-break.c (mi_command_line_array)
59 (mi_command_line_array_cnt, mi_command_line_array_ptr)
60 (mi_read_next_line): Remove.
61 (mi_cmd_break_commands): Update.
62 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
63 function_view.
64 * cli/cli-script.c (get_command_line): Update.
65 (process_next_line): Use function_view. Constify.
66 (recurse_read_control_structure, read_command_lines)
67 (read_command_lines_1): Change argument types to function_view.
68 (do_define_command, document_command): Update.
69 * breakpoint.h (check_tracepoint_command): Don't declare.
70 * breakpoint.c (check_tracepoint_command): Remove.
71 (commands_command_1, create_tracepoint_from_upload): Update.
72
7a2c85f2
TT
732018-05-04 Tom Tromey <tom@tromey.com>
74
75 PR gdb/11750:
76 * cli/cli-script.h (enum command_control_type) <define_control>:
77 New constant.
78 * cli/cli-script.c (multi_line_command_p): Handle define_control.
79 (build_command_line, execute_control_command_1)
80 (process_next_line): Likewise.
81 (do_define_command): New function, extracted from define_command.
82 (define_command): Use it.
83
295dc222
TT
842018-05-04 Tom Tromey <tom@tromey.com>
85
86 * tracepoint.c (actions_command): Update.
87 * cli/cli-script.h (read_command_lines): Update.
88 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
89 (MAX_TMPBUF): Remove define.
90 (define_command): Use string_printf.
91 (document_command): Likewise.
92 * breakpoint.c (commands_command_1): Update.
93
1263a9d5
TT
942018-05-04 Tom Tromey <tom@tromey.com>
95
96 * top.c (execute_command): Update.
97 * cli/cli-script.h (print_command_lines): Now varargs.
98 * cli/cli-script.c (print_command_lines): Now varargs.
99 (execute_control_command_1) <case while_control, case if_control>:
100 Update.
101
12973681
TT
1022018-05-04 Tom Tromey <tom@tromey.com>
103
104 * tracepoint.c (all_tracepoint_actions): Rename from
105 all_tracepoint_actions_and_cleanup. Change return type.
106 (actions_command, encode_actions_1, encode_actions)
107 (trace_dump_actions, tdump_command): Update.
108 * remote.c (remote_download_command_source): Update.
109 * python/python.c (gdbpy_eval_from_control_command)
110 (python_command, python_interactive_command): Update.
111 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
112 * guile/guile.c (guile_command)
113 (gdbscm_eval_from_control_command, guile_command): Update.
114 * compile/compile.c (compile_code_command)
115 (compile_print_command, compile_to_object): Update.
116 * cli/cli-script.h (struct command_lines_deleter): New.
117 (counted_command_line): New typedef.
118 (struct command_line): Add constructor, destructor.
119 <body_list>: Remove.
120 <body_list_0, body_list_1>: New members.
121 (command_line_up): Remove typedef.
122 (read_command_lines, read_command_lines_1, get_command_line):
123 Update.
124 (copy_command_lines): Don't declare.
125 * cli/cli-script.c (build_command_line): Use "new".
126 (get_command_line): Return counted_command_line.
127 (print_command_lines, execute_user_command)
128 (execute_control_command_1, while_command, if_command): Update.
129 (realloc_body_list): Remove.
130 (process_next_line, recurse_read_control_structure): Update.
131 (read_command_lines, read_command_lines_1): Return counted_command_line.
132 (free_command_lines): Use "delete".
133 (copy_command_lines): Remove.
134 (define_command, document_command, show_user_1): Update.
135 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
136 a counted_command_line.
137 * breakpoint.h (counted_command_line): Remove typedef.
138 (breakpoint_set_commands): Update.
139 * breakpoint.c (check_no_tracepoint_commands)
140 (validate_commands_for_breakpoint): Update.
141 (breakpoint_set_commands): Change commands to be a
142 counted_command_line.
143 (commands_command_1, update_dprintf_command_list)
144 (create_tracepoint_from_upload): Update.
145
e2fc72e2
TT
1462018-05-04 Tom Tromey <tom@tromey.com>
147
148 * cli/cli-decode.h (cmd_list_element): New constructor.
149 (~cmd_list_element): New destructor.
150 (struct cmd_list_element): Add initializers.
151 * cli/cli-decode.c (do_add_cmd): Use "new".
152 (delete_cmd): Use "delete".
153
a3b60e45
JK
1542018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
155 Pedro Alves <palves@redhat.com>
156
157 PR breakpoints/19806 and support for PR external/20207.
158 * NEWS: Mention Aarch64 watchpoint improvements.
159 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
160 watchpoints and PR external/20207 watchpoints.
161 * nat/aarch64-linux-hw-point.c
162 (kernel_supports_any_contiguous_range): New.
163 (aarch64_watchpoint_offset): New.
164 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
165 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
166 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
167 (aarch64_align_watchpoint): New parameters aligned_offset_p and
168 next_addr_orig_p. Support PR external/20207 watchpoints.
169 (aarch64_downgrade_regs): New.
170 (aarch64_dr_state_insert_one_point): New parameters offset and
171 addr_orig.
172 (aarch64_dr_state_remove_one_point): Likewise.
173 (aarch64_handle_breakpoint): Update caller.
174 (aarch64_handle_aligned_watchpoint): Likewise.
175 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
176 aligned_offset.
177 (aarch64_linux_set_debug_regs): Remove const from state. Call
178 aarch64_downgrade_regs.
179 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
180 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
181 (DR_CONTROL_MASK): ... this.
182 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
183 (unsigned int aarch64_watchpoint_offset): New prototype.
184 (aarch64_linux_set_debug_regs): Remove const from state.
185 * utils.c (align_up, align_down): Move to ...
186 * common/common-utils.c (align_up, align_down): ... here.
187 * utils.h (align_up, align_down): Move to ...
188 * common/common-utils.h (align_up, align_down): ... here.
189
05bc7456
JB
1902018-05-04 Joel Brobecker <brobecker@adacore.com>
191
192 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
193 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
194 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
195 Re-implement to match the ABI as summarized in GCC's
196 gcc/config/sparc/sparc.c. All callers updated.
197 (sparc32_store_arguments): Remove assertion.
198
2f433492
TT
1992018-05-04 Tom Tromey <tom@tromey.com>
200
201 * printcmd.c: Don't include tui.h.
202 (decode_format): Use skip_spaces.
203
9be2ae8f
TT
2042018-05-04 Tom Tromey <tom@tromey.com>
205
206 PR gdb/22619:
207 * printcmd.c (last_count): New global.
208 (x_command): Use saved count when repeating.
209
f0b3976b
TT
2102018-05-04 Tom Tromey <tom@tromey.com>
211
212 * nto-procfs.c (do_closedir_cleanup): Remove.
213 (procfs_pidlist): Use gdb_dir_up.
214 * procfs.c (do_closedir_cleanup): Remove.
215 (proc_update_threads): Use gdb_dir_up.
216 * common/filestuff.h (struct gdb_dir_deleter): New.
217 (gdb_dir_up): New typedef.
218
862d101a
TT
2192018-05-04 Tom Tromey <tom@tromey.com>
220
221 * ada-lang.c (print_mention_exception): Use std::string.
222
cb7de75e
TT
2232018-05-04 Tom Tromey <tom@tromey.com>
224
225 * ada-lang.c (create_excep_cond_exprs): Update.
226 (ada_exception_catchpoint_cond_string): Use std::string.
227
49d83361
TT
2282018-05-04 Tom Tromey <tom@tromey.com>
229
230 * ada-lang.c (xget_renaming_scope): Return std::string.
231 (old_renaming_is_invisible): Update.
232
ade72a34
TT
2332018-05-04 Tom Tromey <tom@tromey.com>
234
235 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
236 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
237
2be4d7f0
UW
2382018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
239
240 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
241
69b6ecb0
TT
2422018-05-04 Tom Tromey <tom@tromey.com>
243
244 * remote.c (remote_query_supported_append): Change type.
245 (remote_check_symbols): Update.
246
bf27f0e2
PP
2472018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
248
249 PR gdb/11420
250 * configure.ac: Prepend libpython.
251 * python/python-config.py: Likewise.
252 * configure: Regenerate.
253
4ea17de8
SM
2542018-05-03 Simon Marchi <simon.marchi@ericsson.com>
255
256 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
257
bd732259
PA
2582018-05-03 Pedro Alves <palves@redhat.com>
259
260 * s390-linux-nat.c
261 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
262 override. Write 'true' instead of '1'.
263 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
264 declaration.
265
d9f719f1
PA
2662018-05-02 Pedro Alves <palves@redhat.com>
267
268 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
269 add_inf_child_target.
270 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
271 add_inf_child_target.
272 * aix-thread.c (aix_thread_target_info): New.
273 (aix_thread_target) <shortname, longname, doc>: Delete.
274 <info>: New.
275 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
276 add_inf_child_target.
277 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
278 add_inf_child_target.
279 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
280 add_inf_child_target.
281 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
282 add_inf_child_target.
283 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
284 add_inf_child_target.
285 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
286 add_inf_child_target.
287 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
288 add_inf_child_target.
289 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
290 add_inf_child_target.
291 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
292 add_inf_child_target.
293 * bfd-target.c (target_bfd_target_info): New.
294 (target_bfd) <shortname, longname, doc>: Delete.
295 <info>: New.
296 * bsd-kvm.c (bsd_kvm_target_info): New.
297 (bsd_kvm_target) <shortname, longname, doc>: Delete.
298 <info>: New.
299 (bsd_kvm_target::open): Rename to ...
300 (bsd_kvm_target_open): ... this. Adjust.
301 * bsd-uthread.c (bsd_uthread_target_info): New.
302 (bsd_uthread_target) <shortname, longname, doc>: Delete.
303 <info>: New.
304 * corefile.c (core_file_command): Adjust.
305 * corelow.c (core_target_info): New.
306 (core_target) <shortname, longname, doc>: Delete.
307 <info>: New.
308 (core_target::open): Rename to ...
309 (core_target_open): ... this. Adjust.
310 * ctf.c (ctf_target_info): New.
311 (ctf_target) <shortname, longname, doc>: Delete.
312 <info>: New.
313 (ctf_target::open): Rename to ...
314 (ctf_target_open): ... this.
315 (_initialize_ctf): Adjust.
316 * exec.c (exec_target_info): New.
317 (exec_target) <shortname, longname, doc>: Delete.
318 <info>: New.
319 (exec_target::open): Rename to ...
320 (exec_target_open): ... this.
321 * gdbcore.h (core_target_open): Declare.
322 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
323 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
324 add_inf_child_target.
325 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
326 add_inf_child_target.
327 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
328 add_inf_child_target.
329 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
330 add_inf_child_target.
331 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
332 add_inf_child_target.
333 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
334 add_inf_child_target.
335 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
336 add_inf_child_target.
337 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
338 add_inf_child_target.
339 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
340 add_inf_child_target.
341 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
342 add_inf_child_target.
343 * inf-child.c (inf_child_target_info): New.
344 (inf_child_target::info): New.
345 (inf_child_open_target): Remove 'target' parameter. Use
346 get_native_target instead.
347 (inf_child_target::open): Delete.
348 (add_inf_child_target): New.
349 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
350 Delete.
351 <info>: New.
352 (add_inf_child_target): Declare.
353 (inf_child_open_target): Declare.
354 * linux-thread-db.c (thread_db_target_info): New.
355 (thread_db_target) <shortname, longname, doc>: Delete.
356 <info>: New.
357 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
358 add_inf_child_target.
359 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
360 add_inf_child_target.
361 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
362 add_inf_child_target.
363 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
364 add_inf_child_target.
365 * make-target-delegates (print_class): Adjust.
366 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
367 add_inf_child_target.
368 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
369 add_inf_child_target.
370 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
371 add_inf_child_target.
372 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
373 add_inf_child_target.
374 * nto-procfs.c (nto_native_target_info): New.
375 (nto_procfs_target_native) <shortname, longname, doc>:
376 Delete.
377 <info>: New.
378 (nto_procfs_target_info): New.
379 (nto_procfs_target_procfs) <shortname, longname, doc>:
380 Delete.
381 <info>: New.
382 (init_procfs_targets): Adjust.
383 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
384 add_inf_child_target.
385 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
386 add_inf_child_target.
387 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
388 add_inf_child_target.
389 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
390 add_inf_child_target.
391 * ravenscar-thread.c (ravenscar_target_info): New.
392 (ravenscar_thread_target) <shortname, longname, doc>:
393 Delete.
394 <info>: New.
395 * record-btrace.c (record_btrace_target_info):
396 (record_btrace_target) <shortname, longname, doc>: Delete.
397 <info>: New.
398 (record_btrace_target::open): Rename to ...
399 (record_btrace_target_open): ... this. Adjust.
400 * record-full.c (record_longname, record_doc): New.
401 (record_full_base_target) <shortname, longname, doc>: Delete.
402 <info>: New.
403 (record_full_target_info): New.
404 (record_full_target): <shortname>: Delete.
405 <info>: New.
406 (record_full_core_open_1, record_full_open_1): Update comments.
407 (record_full_base_target::open): Rename to ...
408 (record_full_open): ... this.
409 (cmd_record_full_restore): Update.
410 (_initialize_record_full): Update.
411 * remote-sim.c (remote_sim_target_info): New.
412 (gdbsim_target) <shortname, longname, doc>: Delete.
413 <info>: New.
414 (gdbsim_target::open): Rename to ...
415 (gdbsim_target_open): ... this.
416 (_initialize_remote_sim): Adjust.
417 * remote.c (remote_doc): New.
418 (remote_target_info): New.
419 (remote_target) <shortname, longname, doc>: Delete.
420 <info>: New.
421 (extended_remote_target_info): New.
422 (extended_remote_target) <shortname, longname, doc>: Delete.
423 <info>: New.
424 (remote_target::open_1): Make static. Adjust.
425 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
426 * s390-linux-nat.c (_initialize_s390_nat): Use
427 add_inf_child_target.
428 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
429 add_inf_child_target.
430 * sol-thread.c (thread_db_target_info): New.
431 (sol_thread_target) <shortname, longname, doc>: Delete.
432 <info>: New.
433 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
434 add_inf_child_target.
435 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
436 add_inf_child_target.
437 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
438 add_inf_child_target.
439 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
440 add_inf_child_target.
441 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
442 add_inf_child_target.
443 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
444 add_inf_child_target.
445 * spu-linux-nat.c (_initialize_spu_nat): Use
446 add_inf_child_target.
447 * spu-multiarch.c (spu_multiarch_target_info): New.
448 (spu_multiarch_target) <shortname, longname, doc>: Delete.
449 <info>: New.
450 * target-delegates.c: Regenerate.
451 * target.c: Include <unordered_map>.
452 (target_ops_p): Delete.
453 (DEF_VEC_P(target_ops_p)): Delete.
454 (target_factories): New.
455 (test_target_info): New.
456 (test_target_ops::info): New.
457 (open_target): Adjust to use target_factories.
458 (add_target_with_completer): Rename to ...
459 (add_target): ... this. Change prototype. Register target_info
460 and open callback in target_factories. Register target_info in
461 command context instead of target_ops.
462 (add_target): Delete old implementation.
463 (add_deprecated_target_alias): Change prototype. Adjust.
464 (the_native_target): New.
465 (set_native_target, get_native_target): New.
466 (find_default_run_target): Use the_native_target.
467 (find_attach_target, find_run_target): Simplify.
468 (target_ops::open): Delete.
469 (dummy_target_info): New.
470 (dummy_target::shortname, dummy_target::longname)
471 (dummy_target::doc): Delete.
472 (dummy_target::info): New.
473 (debug_target::shortname, debug_target::longname)
474 (debug_target::doc): Delete.
475 (debug_target::info): New.
476 * target.h (struct target_info): New.
477 (target_ops::~target_ops): Add comment.
478 (target_ops::info): New.
479 (target_ops::shortname, target_ops::longname, target_ops::doc): No
480 longer virtual. Implement in terms of target_info.
481 (set_native_target, get_native_target): Declare.
482 (target_open_ftype): New.
483 (add_target, add_target_with_completer)
484 (add_deprecated_target_alias): Change prototype.
485 (test_target) <shortname, longname, doc>: Delete.
486 <info>: New.
487 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
488 add_inf_child_target.
489 * tracefile-tfile.c (tfile_target_info): New.
490 (tfile_target) <shortname, longname, doc>: Delete.
491 <info>: New.
492 (tfile_target::open): Rename to ...
493 (tfile_target_open): ... this.
494 (_initialize_tracefile_tfile): Adjust.
495 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
496 add_inf_child_target.
497 * windows-nat.c (_initialize_windows_nat): Use
498 add_inf_child_target.
499 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
500 add_inf_child_target.
501
135340af
PA
5022018-05-02 Pedro Alves <palves@redhat.com>
503
504 * linux-nat.h (linux_nat_target) <low_new_thread,
505 low_delete_thread, low_new_fork, low_forget_process,
506 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
507 New virtual methods.
508 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
509 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
510 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
511 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
512 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
513 Delete.
514 * linux-fork.c (delete_fork): Adjust to call low method.
515 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
516 (linux_nat_new_fork, linux_nat_forget_process_hook)
517 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
518 (linux_nat_status_is_event):
519 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
520 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
521 to call low method.
522 (sigtrap_is_event): Rename to ...
523 (linux_nat_target::low_status_is_event): ... this.
524 (linux_nat_set_status_is_event): Delete.
525 (save_stop_reason, linux_nat_wait_1)
526 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
527 low methods.
528 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
529 (linux_nat_set_new_fork, linux_nat_set_forget_process)
530 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
531 (linux_nat_set_prepare_to_resume): Delete.
532 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
533 low virtual methods.
534 * amd64-linux-nat.c: Likewise.
535 * arm-linux-nat.c: Likewise.
536 * i386-linux-nat.c: Likewise.
537 * ia64-linux-nat.c: Likewise.
538 * mips-linux-nat.c: Likewise.
539 * ppc-linux-nat.c: Likewise.
540 * s390-linux-nat.c: Likewise.
541 * sparc64-linux-nat.c: Likewise.
542 * x86-linux-nat.c: Likewise.
543 * x86-linux-nat.h: Include "nat/x86-linux.h".
544 (x86_linux_nat_target) <low_new_fork, low_forget_process,
545 low_prepare_to_resume, low_new_thread, low_delete_thread>:
546 Override methods.
547
57810aa7
PA
5482018-05-02 Pedro Alves <palves@redhat.com>
549
550 * target.h (target_ops)
551 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
552 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
553 stopped_by_watchpoint, have_continuable_watchpoint,
554 stopped_data_address, watchpoint_addr_within_range,
555 can_accel_watchpoint_condition, can_run, thread_alive,
556 has_all_memory, has_memory, has_stack, has_registers,
557 has_execution, can_async_p, is_async_p, supports_non_stop,
558 always_non_stop_p, can_execute_reverse, supports_multi_process,
559 supports_enable_disable_tracepoint,
560 supports_disable_randomization, supports_string_tracing,
561 supports_evaluation_of_breakpoint_conditions,
562 can_run_breakpoint_commands, filesystem_is_local,
563 can_download_tracepoint, get_trace_state_variable_value,
564 set_trace_notes, get_tib_address, use_agent, can_use_agent,
565 record_is_replaying, record_will_replay,
566 augmented_libraries_svr4_read>: Adjust to return bool.
567 * aarch64-linux-nat.c: All implementations adjusted.
568 * aix-thread.c: All implementations adjusted.
569 * arm-linux-nat.c: All implementations adjusted.
570 * breakpoint.c: All implementations adjusted.
571 * bsd-kvm.c: All implementations adjusted.
572 * bsd-uthread.c: All implementations adjusted.
573 * corelow.c: All implementations adjusted.
574 * ctf.c: All implementations adjusted.
575 * darwin-nat.c: All implementations adjusted.
576 * darwin-nat.h: All implementations adjusted.
577 * exec.c: All implementations adjusted.
578 * fbsd-nat.c: All implementations adjusted.
579 * fbsd-nat.h: All implementations adjusted.
580 * gnu-nat.c: All implementations adjusted.
581 * gnu-nat.h: All implementations adjusted.
582 * go32-nat.c: All implementations adjusted.
583 * ia64-linux-nat.c: All implementations adjusted.
584 * inf-child.c: All implementations adjusted.
585 * inf-child.h: All implementations adjusted.
586 * inf-ptrace.c: All implementations adjusted.
587 * inf-ptrace.h: All implementations adjusted.
588 * linux-nat.c: All implementations adjusted.
589 * linux-nat.h: All implementations adjusted.
590 * mips-linux-nat.c: All implementations adjusted.
591 * nto-procfs.c: All implementations adjusted.
592 * ppc-linux-nat.c: All implementations adjusted.
593 * procfs.c: All implementations adjusted.
594 * ravenscar-thread.c: All implementations adjusted.
595 * record-btrace.c: All implementations adjusted.
596 * record-full.c: All implementations adjusted.
597 * remote-sim.c: All implementations adjusted.
598 * remote.c: All implementations adjusted.
599 * s390-linux-nat.c: All implementations adjusted.
600 * sol-thread.c: All implementations adjusted.
601 * spu-multiarch.c: All implementations adjusted.
602 * target-delegates.c: All implementations adjusted.
603 * target.c: All implementations adjusted.
604 * target.h: All implementations adjusted.
605 * tracefile-tfile.c: All implementations adjusted.
606 * tracefile.c: All implementations adjusted.
607 * tracefile.h: All implementations adjusted.
608 * windows-nat.c: All implementations adjusted.
609 * x86-linux-nat.h: All implementations adjusted.
610 * x86-nat.h: All implementations adjusted.
611
ad6a4e2d
PA
6122018-05-02 Pedro Alves <palves@redhat.com>
613
614 * make-target-delegates (scan_target_h): Don't trim lines here.
615 Replace sequences of tabs and/or whitespace with a single
616 whitespace.
617 (top level, parsing methods): Trim each line before processing it
618 here.
619
f6ac5f3d
PA
6202018-05-02 Pedro Alves <palves@redhat.com>
621 John Baldwin <jhb@freebsd.org>
622
623 * target.h (enum strata) <debug_stratum>: New.
624 (struct target_ops) <all delegation methods>: Replace by C++
625 virtual methods, and drop "to_" prefix. All references updated
626 throughout.
627 <to_shortname, to_longname, to_doc, to_data,
628 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
629 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
630 virtual methods. All references updated throughout.
631 <can_attach, supports_terminal_ours, can_create_inferior,
632 get_thread_control_capabilities, attach_no_wait>: New
633 virtual methods.
634 <insert_breakpoint, remove_breakpoint>: Now
635 TARGET_DEFAULT_NORETURN methods.
636 <info_proc>: Now returns bool.
637 <to_magic>: Delete.
638 (OPS_MAGIC): Delete.
639 (current_target): Delete. All references replaced by references
640 to ...
641 (target_stack): ... this. New.
642 (target_shortname, target_longname): Adjust.
643 (target_can_run): Now a function declaration.
644 (default_child_has_all_memory, default_child_has_memory)
645 (default_child_has_stack, default_child_has_registers)
646 (default_child_has_execution): Remove target_ops parameter.
647 (complete_target_initialization): Delete.
648 (memory_breakpoint_target): New template class.
649 (test_target_ops): Refactor as a C++ class with virtual methods.
650 * make-target-delegates (NAME_PART): Tighten.
651 (POINTER_PART, CP_SYMBOL): New.
652 (SIMPLE_RETURN_PART): Reimplement.
653 (VEC_RETURN_PART): Expect less.
654 (RETURN_PART, VIRTUAL_PART): New.
655 (METHOD): Adjust to C++ virtual methods.
656 (scan_target_h): Remove reference to C99.
657 (dname): Output "target_ops::" prefix.
658 (write_function_header): Adjust to output a C++ class method.
659 (write_declaration): New.
660 (write_delegator): Adjust to output a C++ class method.
661 (tdname): Output "dummy_target::" prefix.
662 (write_tdefault, write_debugmethod): Adjust to output a C++ class
663 method.
664 (tdefault_names, debug_names): Delete.
665 (return_types, tdefaults, styles, argtypes_array): New.
666 (top level): All methods are delegators.
667 (print_class): New.
668 (top level): Print dummy_target and debug_target classes.
669 * target-delegates.c: Regenerate.
670 * target-debug.h (target_debug_print_enum_info_proc_what)
671 (target_debug_print_thread_control_capabilities)
672 (target_debug_print_thread_info_p): New.
673 * target.c (dummy_target): Delete.
674 (the_dummy_target, the_debug_target): New.
675 (target_stack): Now extern.
676 (set_targetdebug): Push/unpush debug target.
677 (default_child_has_all_memory, default_child_has_memory)
678 (default_child_has_stack, default_child_has_registers)
679 (default_child_has_execution): Remove target_ops parameter.
680 (complete_target_initialization): Delete.
681 (add_target_with_completer): No longer call
682 complete_target_initialization.
683 (target_supports_terminal_ours): Use regular delegation.
684 (update_current_target): Delete.
685 (push_target): No longer check magic number. Don't call
686 update_current_target.
687 (unpush_target): Don't call update_current_target.
688 (target_is_pushed): No longer check magic number.
689 (target_require_runnable): Skip for all stratums over
690 process_stratum.
691 (target_ops::info_proc): New.
692 (target_info_proc): Use find_target_at and
693 find_default_run_target.
694 (target_supports_disable_randomization): Use regular delegation.
695 (target_get_osdata): Use find_target_at.
696 (target_ops::open, target_ops::close, target_ops::can_attach)
697 (target_ops::attach, target_ops::can_create_inferior)
698 (target_ops::create_inferior, target_ops::can_run)
699 (target_can_run): New.
700 (default_fileio_target): Use regular delegation.
701 (target_ops::fileio_open, target_ops::fileio_pwrite)
702 (target_ops::fileio_pread, target_ops::fileio_fstat)
703 (target_ops::fileio_close, target_ops::fileio_unlink)
704 (target_ops::fileio_readlink): New.
705 (target_fileio_open_1, target_fileio_unlink)
706 (target_fileio_readlink): Always call the target method. Handle
707 FILEIO_ENOSYS.
708 (return_zero, return_zero_has_execution): Delete.
709 (init_dummy_target): Delete.
710 (dummy_target::dummy_target, dummy_target::shortname)
711 (dummy_target::longname, dummy_target::doc)
712 (debug_target::debug_target, debug_target::shortname)
713 (debug_target::longname, debug_target::doc): New.
714 (target_supports_delete_record): Use regular delegation.
715 (setup_target_debug): Delete.
716 (maintenance_print_target_stack): Skip debug_stratum.
717 (initialize_targets): Instantiate the_dummy_target and
718 the_debug_target.
719 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
720 use target_stack.
721 (target_auxv_search, fprint_target_auxv): Adjust.
722 (info_auxv_command): Adjust to use target_stack.
723 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
724 * exceptions.c (print_flush): Handle a NULL target_stack.
725 * regcache.c (target_ops_no_register): Refactor as class with
726 virtual methods.
727
728 * exec.c (exec_target): New class.
729 (exec_ops): Now an exec_target.
730 (exec_open, exec_close_1, exec_get_section_table)
731 (exec_xfer_partial, exec_files_info, exec_has_memory)
732 (exec_make_note_section): Refactor as exec_target methods.
733 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
734 Delete.
735 (exec_target::find_memory_regions): New.
736 (_initialize_exec): Don't call init_exec_ops.
737 * gdbcore.h (exec_file_clear): Delete.
738
739 * corefile.c (core_target): Delete.
740 (core_file_command): Adjust.
741 * corelow.c (core_target): New class.
742 (the_core_target): New.
743 (core_close): Remove target_ops parameter.
744 (core_close_cleanup): Adjust.
745 (core_target::close): New.
746 (core_open, core_detach, get_core_registers, core_files_info)
747 (core_xfer_partial, core_thread_alive, core_read_description)
748 (core_pid_to_str, core_thread_name, core_has_memory)
749 (core_has_stack, core_has_registers, core_info_proc): Rework as
750 core_target methods.
751 (ignore, core_remove_breakpoint, init_core_ops): Delete.
752 (_initialize_corelow): Initialize the_core_target.
753 * gdbcore.h (core_target): Delete.
754 (the_core_target): New.
755
756 * ctf.c: (ctf_target): New class.
757 (ctf_ops): Now a ctf_target.
758 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
759 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
760 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
761 methods.
762 (init_ctf_ops): Delete.
763 (_initialize_ctf): Don't call it.
764 * tracefile-tfile.c (tfile_target): New class.
765 (tfile_ops): Now a tfile_target.
766 (tfile_open, tfile_close, tfile_files_info)
767 (tfile_get_tracepoint_status, tfile_trace_find)
768 (tfile_fetch_registers, tfile_xfer_partial)
769 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
770 Refactor as tfile_target methods.
771 (tfile_xfer_partial_features): Remove target_ops parameter.
772 (init_tfile_ops): Delete.
773 (_initialize_tracefile_tfile): Don't call it.
774 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
775 (tracefile_has_stack, tracefile_has_registers)
776 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
777 tracefile_target methods.
778 (init_tracefile_ops): Delete.
779 (tracefile_target::tracefile_target): New.
780 * tracefile.h: Include "target.h".
781 (tracefile_target): New class.
782 (init_tracefile_ops): Delete.
783
784 * spu-multiarch.c (spu_multiarch_target): New class.
785 (spu_ops): Now a spu_multiarch_target.
786 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
787 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
788 (spu_search_memory, spu_mourn_inferior): Refactor as
789 spu_multiarch_target methods.
790 (init_spu_ops): Delete.
791 (_initialize_spu_multiarch): Remove references to init_spu_ops,
792 complete_target_initialization.
793
794 * ravenscar-thread.c (ravenscar_thread_target): New class.
795 (ravenscar_ops): Now a ravenscar_thread_target.
796 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
797 (ravenscar_thread_alive, ravenscar_pid_to_str)
798 (ravenscar_fetch_registers, ravenscar_store_registers)
799 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
800 (ravenscar_stopped_by_hw_breakpoint)
801 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
802 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
803 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
804 methods.
805 (init_ravenscar_thread_ops): Delete.
806 (_initialize_ravenscar): Remove references to
807 init_ravenscar_thread_ops and complete_target_initialization.
808
809 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
810 (bsd_uthread_target): New class.
811 (bsd_uthread_ops): Now a bsd_uthread_target.
812 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
813 (bsd_uthread_close, bsd_uthread_mourn_inferior)
814 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
815 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
816 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
817 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
818 (bsd_uthread_target): Delete function.
819 (_initialize_bsd_uthread): Remove reference to
820 complete_target_initialization.
821
822 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
823 (target_bfd): ... this new class.
824 (target_bfd_xfer_partial, target_bfd_get_section_table)
825 (target_bfd_close): Refactor as target_bfd methods.
826 (target_bfd::~target_bfd): New.
827 (target_bfd_reopen): Adjust.
828 (target_bfd::close): New.
829
830 * record-btrace.c (record_btrace_target): New class.
831 (record_btrace_ops): Now a record_btrace_target.
832 (record_btrace_open, record_btrace_stop_recording)
833 (record_btrace_disconnect, record_btrace_close)
834 (record_btrace_async, record_btrace_info)
835 (record_btrace_insn_history, record_btrace_insn_history_range)
836 (record_btrace_insn_history_from, record_btrace_call_history)
837 (record_btrace_call_history_range)
838 (record_btrace_call_history_from, record_btrace_record_method)
839 (record_btrace_is_replaying, record_btrace_will_replay)
840 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
841 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
842 (record_btrace_store_registers, record_btrace_prepare_to_store)
843 (record_btrace_to_get_unwinder)
844 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
845 (record_btrace_commit_resume, record_btrace_wait)
846 (record_btrace_stop, record_btrace_can_execute_reverse)
847 (record_btrace_stopped_by_sw_breakpoint)
848 (record_btrace_supports_stopped_by_sw_breakpoint)
849 (record_btrace_stopped_by_hw_breakpoint)
850 (record_btrace_supports_stopped_by_hw_breakpoint)
851 (record_btrace_update_thread_list, record_btrace_thread_alive)
852 (record_btrace_goto_begin, record_btrace_goto_end)
853 (record_btrace_goto, record_btrace_stop_replaying_all)
854 (record_btrace_execution_direction)
855 (record_btrace_prepare_to_generate_core)
856 (record_btrace_done_generating_core): Refactor as
857 record_btrace_target methods.
858 (init_record_btrace_ops): Delete.
859 (_initialize_record_btrace): Remove reference to
860 init_record_btrace_ops.
861 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
862 the execution_direction global.
863 (record_full_base_target, record_full_target)
864 (record_full_core_target): New classes.
865 (record_full_ops): Now a record_full_target.
866 (record_full_core_ops): Now a record_full_core_target.
867 (record_full_target::detach, record_full_target::disconnect)
868 (record_full_core_target::disconnect)
869 (record_full_target::mourn_inferior, record_full_target::kill):
870 New.
871 (record_full_open, record_full_close, record_full_async): Refactor
872 as methods of the record_full_base_target class.
873 (record_full_resume, record_full_commit_resume): Refactor
874 as methods of the record_full_target class.
875 (record_full_wait, record_full_stopped_by_watchpoint)
876 (record_full_stopped_data_address)
877 (record_full_stopped_by_sw_breakpoint)
878 (record_full_supports_stopped_by_sw_breakpoint)
879 (record_full_stopped_by_hw_breakpoint)
880 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
881 methods of the record_full_base_target class.
882 (record_full_store_registers, record_full_xfer_partial)
883 (record_full_insert_breakpoint, record_full_remove_breakpoint):
884 Refactor as methods of the record_full_target class.
885 (record_full_can_execute_reverse, record_full_get_bookmark)
886 (record_full_goto_bookmark, record_full_execution_direction)
887 (record_full_record_method, record_full_info, record_full_delete)
888 (record_full_is_replaying, record_full_will_replay)
889 (record_full_goto_begin, record_full_goto_end, record_full_goto)
890 (record_full_stop_replaying): Refactor as methods of the
891 record_full_base_target class.
892 (record_full_core_resume, record_full_core_kill)
893 (record_full_core_fetch_registers)
894 (record_full_core_prepare_to_store)
895 (record_full_core_store_registers, record_full_core_xfer_partial)
896 (record_full_core_insert_breakpoint)
897 (record_full_core_remove_breakpoint)
898 (record_full_core_has_execution): Refactor
899 as methods of the record_full_core_target class.
900 (record_full_base_target::supports_delete_record): New.
901 (init_record_full_ops): Delete.
902 (init_record_full_core_ops): Delete.
903 (record_full_save): Refactor as method of the
904 record_full_base_target class.
905 (_initialize_record_full): Remove references to
906 init_record_full_ops and init_record_full_core_ops.
907
908 * remote.c (remote_target, extended_remote_target): New classes.
909 (remote_ops): Now a remote_target.
910 (extended_remote_ops): Now an extended_remote_target.
911 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
912 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
913 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
914 (remote_pass_signals, remote_set_syscall_catchpoint)
915 (remote_program_signals, )
916 (remote_thread_always_alive): Remove target_ops parameter.
917 (remote_thread_alive, remote_thread_name)
918 (remote_update_thread_list, remote_threads_extra_info)
919 (remote_static_tracepoint_marker_at)
920 (remote_static_tracepoint_markers_by_strid)
921 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
922 (remote_open): Refactor as methods of remote_target.
923 (extended_remote_open, extended_remote_detach)
924 (extended_remote_attach, extended_remote_post_attach):
925 (extended_remote_supports_disable_randomization)
926 (extended_remote_create_inferior): : Refactor as method of
927 extended_remote_target.
928 (remote_set_permissions, remote_open_1, remote_detach)
929 (remote_follow_fork, remote_follow_exec, remote_disconnect)
930 (remote_resume, remote_commit_resume, remote_stop)
931 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
932 (remote_terminal_ours, remote_wait, remote_fetch_registers)
933 (remote_prepare_to_store, remote_store_registers)
934 (remote_flash_erase, remote_flash_done, remote_files_info)
935 (remote_kill, remote_mourn, remote_insert_breakpoint)
936 (remote_remove_breakpoint, remote_insert_watchpoint)
937 (remote_watchpoint_addr_within_range)
938 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
939 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
940 (remote_supports_stopped_by_sw_breakpoint)
941 (remote_stopped_by_hw_breakpoint)
942 (remote_supports_stopped_by_hw_breakpoint)
943 (remote_stopped_by_watchpoint, remote_stopped_data_address)
944 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
945 (remote_verify_memory): Refactor as methods of remote_target.
946 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
947 parameter.
948 (remote_xfer_partial, remote_get_memory_xfer_limit)
949 (remote_search_memory, remote_rcmd, remote_memory_map)
950 (remote_pid_to_str, remote_get_thread_local_address)
951 (remote_get_tib_address, remote_read_description): Refactor as
952 methods of remote_target.
953 (remote_target::fileio_open, remote_target::fileio_pwrite)
954 (remote_target::fileio_pread, remote_target::fileio_close): New.
955 (remote_hostio_readlink, remote_hostio_fstat)
956 (remote_filesystem_is_local, remote_can_execute_reverse)
957 (remote_supports_non_stop, remote_supports_disable_randomization)
958 (remote_supports_multi_process, remote_supports_cond_breakpoints)
959 (remote_supports_enable_disable_tracepoint)
960 (remote_supports_string_tracing)
961 (remote_can_run_breakpoint_commands, remote_trace_init)
962 (remote_download_tracepoint, remote_can_download_tracepoint)
963 (remote_download_trace_state_variable, remote_enable_tracepoint)
964 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
965 (remote_trace_start, remote_get_trace_status)
966 (remote_get_tracepoint_status, remote_trace_stop)
967 (remote_trace_find, remote_get_trace_state_variable_value)
968 (remote_save_trace_data, remote_get_raw_trace_data)
969 (remote_set_disconnected_tracing, remote_core_of_thread)
970 (remote_set_circular_trace_buffer, remote_traceframe_info)
971 (remote_get_min_fast_tracepoint_insn_len)
972 (remote_set_trace_buffer_size, remote_set_trace_notes)
973 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
974 (remote_disable_btrace, remote_teardown_btrace)
975 (remote_read_btrace, remote_btrace_conf)
976 (remote_augmented_libraries_svr4_read, remote_load)
977 (remote_pid_to_exec_file, remote_can_do_single_step)
978 (remote_execution_direction, remote_thread_handle_to_thread_info):
979 Refactor as methods of remote_target.
980 (init_remote_ops, init_extended_remote_ops): Delete.
981 (remote_can_async_p, remote_is_async_p, remote_async)
982 (remote_thread_events, remote_upload_tracepoints)
983 (remote_upload_trace_state_variables): Refactor as methods of
984 remote_target.
985 (_initialize_remote): Remove references to init_remote_ops and
986 init_extended_remote_ops.
987
988 * remote-sim.c (gdbsim_target): New class.
989 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
990 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
991 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
992 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
993 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
994 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
995 Refactor as methods of gdbsim_target.
996 (gdbsim_ops): Now a gdbsim_target.
997 (init_gdbsim_ops): Delete.
998 (gdbsim_cntrl_c): Adjust.
999 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
1000
1001 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
1002 (the_amd64_linux_nat_target): New.
1003 (amd64_linux_fetch_inferior_registers)
1004 (amd64_linux_store_inferior_registers): Refactor as methods of
1005 amd64_linux_nat_target.
1006 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
1007 * i386-linux-nat.c: Don't include "linux-nat.h".
1008 (i386_linux_nat_target): New class.
1009 (the_i386_linux_nat_target): New.
1010 (i386_linux_fetch_inferior_registers)
1011 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
1012 as methods of i386_linux_nat_target.
1013 (_initialize_i386_linux_nat): Adjust. Set linux_target.
1014 * inf-child.c (inf_child_ops): Delete.
1015 (inf_child_fetch_inferior_registers)
1016 (inf_child_store_inferior_registers): Delete.
1017 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
1018 methods of inf_child_target.
1019 (inf_child_target::supports_terminal_ours)
1020 (inf_child_target::terminal_init)
1021 (inf_child_target::terminal_inferior)
1022 (inf_child_target::terminal_ours_for_output)
1023 (inf_child_target::terminal_ours, inf_child_target::interrupt)
1024 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
1025 New.
1026 (inf_child_open, inf_child_disconnect, inf_child_close)
1027 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
1028 (inf_child_post_startup_inferior, inf_child_can_run)
1029 (inf_child_pid_to_exec_file): Refactor as methods of
1030 inf_child_target.
1031 (inf_child_follow_fork): Delete.
1032 (inf_child_target::can_create_inferior)
1033 (inf_child_target::can_attach): New.
1034 (inf_child_target::has_all_memory, inf_child_target::has_memory)
1035 (inf_child_target::has_stack, inf_child_target::has_registers)
1036 (inf_child_target::has_execution): New.
1037 (inf_child_fileio_open, inf_child_fileio_pwrite)
1038 (inf_child_fileio_pread, inf_child_fileio_fstat)
1039 (inf_child_fileio_close, inf_child_fileio_unlink)
1040 (inf_child_fileio_readlink, inf_child_use_agent)
1041 (inf_child_can_use_agent): Refactor as methods of
1042 inf_child_target.
1043 (return_zero, inf_child_target): Delete.
1044 (inf_child_target::inf_child_target): New.
1045 * inf-child.h: Include "target.h".
1046 (inf_child_target): Delete function prototype.
1047 (inf_child_target): New class.
1048 (inf_child_open_target, inf_child_mourn_inferior)
1049 (inf_child_maybe_unpush_target): Delete.
1050 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
1051 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
1052 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
1053 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
1054 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
1055 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
1056 (inf_ptrace_wait, inf_ptrace_xfer_partial)
1057 (inf_ptrace_thread_alive, inf_ptrace_files_info)
1058 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
1059 methods of inf_ptrace_target.
1060 (inf_ptrace_target): Delete function.
1061 * inf-ptrace.h: Include "inf-child.h".
1062 (inf_ptrace_target): Delete function declaration.
1063 (inf_ptrace_target): New class.
1064 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
1065 * linux-nat.c (linux_target): New.
1066 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
1067 (linux_nat_target::~linux_nat_target): New.
1068 (linux_child_post_attach, linux_child_post_startup_inferior)
1069 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
1070 (linux_child_remove_fork_catchpoint)
1071 (linux_child_insert_vfork_catchpoint)
1072 (linux_child_remove_vfork_catchpoint)
1073 (linux_child_insert_exec_catchpoint)
1074 (linux_child_remove_exec_catchpoint)
1075 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
1076 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
1077 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
1078 (linux_nat_stopped_data_address)
1079 (linux_nat_stopped_by_sw_breakpoint)
1080 (linux_nat_supports_stopped_by_sw_breakpoint)
1081 (linux_nat_stopped_by_hw_breakpoint)
1082 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
1083 (linux_nat_kill, linux_nat_mourn_inferior)
1084 (linux_nat_xfer_partial, linux_nat_thread_alive)
1085 (linux_nat_update_thread_list, linux_nat_pid_to_str)
1086 (linux_nat_thread_name, linux_child_pid_to_exec_file)
1087 (linux_child_static_tracepoint_markers_by_strid)
1088 (linux_nat_is_async_p, linux_nat_can_async_p)
1089 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
1090 (linux_nat_supports_multi_process)
1091 (linux_nat_supports_disable_randomization, linux_nat_async)
1092 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
1093 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
1094 (linux_nat_fileio_open, linux_nat_fileio_readlink)
1095 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
1096 methods of linux_nat_target.
1097 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
1098 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
1099 parameter.
1100 (check_stopped_by_watchpoint): Adjust.
1101 (linux_xfer_partial): Delete.
1102 (linux_target_install_ops, linux_target, linux_nat_add_target):
1103 Delete.
1104 (linux_nat_target::linux_nat_target): New.
1105 * linux-nat.h: Include "inf-ptrace.h".
1106 (linux_nat_target): New.
1107 (linux_target, linux_target_install_ops, linux_nat_add_target):
1108 Delete function declarations.
1109 (linux_target): Declare global.
1110 * linux-thread-db.c (thread_db_target): New.
1111 (thread_db_target::thread_db_target): New.
1112 (thread_db_ops): Delete.
1113 (the_thread_db_target): New.
1114 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
1115 (thread_db_update_thread_list, thread_db_pid_to_str)
1116 (thread_db_extra_thread_info)
1117 (thread_db_thread_handle_to_thread_info)
1118 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
1119 (thread_db_resume): Refactor as methods of thread_db_target.
1120 (init_thread_db_ops): Delete.
1121 (_initialize_thread_db): Remove reference to init_thread_db_ops.
1122 * x86-linux-nat.c: Don't include "linux-nat.h".
1123 (super_post_startup_inferior): Delete.
1124 (x86_linux_nat_target::~x86_linux_nat_target): New.
1125 (x86_linux_child_post_startup_inferior)
1126 (x86_linux_read_description, x86_linux_enable_btrace)
1127 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
1128 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
1129 methods of x86_linux_nat_target.
1130 (x86_linux_create_target): Delete. Bits folded ...
1131 (x86_linux_add_target): ... here. Now takes a linux_nat_target
1132 pointer.
1133 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
1134 (x86_linux_nat_target): New class.
1135 (x86_linux_create_target): Delete.
1136 (x86_linux_add_target): Now takes a linux_nat_target pointer.
1137 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
1138 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
1139 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
1140 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
1141 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
1142 make extern.
1143 (x86_use_watchpoints): Delete.
1144 * x86-nat.h: Include "breakpoint.h" and "target.h".
1145 (x86_use_watchpoints): Delete.
1146 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
1147 (x86_stopped_by_watchpoint, x86_stopped_data_address)
1148 (x86_insert_watchpoint, x86_remove_watchpoint)
1149 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
1150 (x86_stopped_by_hw_breakpoint): New declarations.
1151 (x86_nat_target): New template class.
1152
1153 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
1154 (the_ppc_linux_nat_target): New.
1155 (ppc_linux_fetch_inferior_registers)
1156 (ppc_linux_can_use_hw_breakpoint)
1157 (ppc_linux_region_ok_for_hw_watchpoint)
1158 (ppc_linux_ranged_break_num_registers)
1159 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1160 (ppc_linux_insert_mask_watchpoint)
1161 (ppc_linux_remove_mask_watchpoint)
1162 (ppc_linux_can_accel_watchpoint_condition)
1163 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
1164 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
1165 (ppc_linux_watchpoint_addr_within_range)
1166 (ppc_linux_masked_watch_num_registers)
1167 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
1168 (ppc_linux_read_description): Refactor as methods of
1169 ppc_linux_nat_target.
1170 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
1171
1172 * procfs.c (procfs_xfer_partial): Delete forward declaration.
1173 (procfs_target): New class.
1174 (the_procfs_target): New.
1175 (procfs_target): Delete function.
1176 (procfs_auxv_parse, procfs_attach, procfs_detach)
1177 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
1178 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
1179 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
1180 (procfs_create_inferior, procfs_update_thread_list)
1181 (procfs_thread_alive, procfs_pid_to_str)
1182 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
1183 (procfs_stopped_data_address, procfs_insert_watchpoint)
1184 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
1185 (proc_find_memory_regions, procfs_info_proc)
1186 (procfs_make_note_section): Refactor as methods of procfs_target.
1187 (_initialize_procfs): Adjust.
1188 * sol-thread.c (sol_thread_target): New class.
1189 (sol_thread_ops): Now a sol_thread_target.
1190 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
1191 (sol_thread_fetch_registers, sol_thread_store_registers)
1192 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
1193 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
1194 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
1195 (init_sol_thread_ops): Delete.
1196 (_initialize_sol_thread): Adjust. Remove references to
1197 init_sol_thread_ops and complete_target_initialization.
1198
1199 * windows-nat.c (windows_nat_target): New class.
1200 (windows_fetch_inferior_registers)
1201 (windows_store_inferior_registers, windows_resume, windows_wait)
1202 (windows_attach, windows_detach, windows_pid_to_exec_file)
1203 (windows_files_info, windows_create_inferior)
1204 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
1205 (windows_close, windows_pid_to_str, windows_xfer_partial)
1206 (windows_get_tib_address, windows_get_ada_task_ptid)
1207 (windows_thread_name, windows_thread_alive): Refactor as
1208 windows_nat_target methods.
1209 (do_initial_windows_stuff): Adjust.
1210 (windows_target): Delete function.
1211 (_initialize_windows_nat): Adjust.
1212
1213 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
1214 (darwin_mourn_inferior, darwin_kill_inferior)
1215 (darwin_create_inferior, darwin_attach, darwin_detach)
1216 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
1217 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
1218 (darwin_supports_multi_process): Refactor as darwin_nat_target
1219 methods.
1220 (darwin_resume_to, darwin_files_info): Delete.
1221 (_initialize_darwin_inferior): Rename to ...
1222 (_initialize_darwin_nat): ... this. Adjust to C++ification.
1223 * darwin-nat.h: Include "inf-child.h".
1224 (darwin_nat_target): New class.
1225 (darwin_complete_target): Delete.
1226 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
1227 (darwin_target): New.
1228 (i386_darwin_fetch_inferior_registers)
1229 (i386_darwin_store_inferior_registers): Refactor as methods of
1230 darwin_nat_target.
1231 (darwin_complete_target): Delete, with ...
1232 (_initialize_i386_darwin_nat): ... bits factored out here.
1233
1234 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
1235 (the_alpha_linux_nat_target): New.
1236 (alpha_linux_register_u_offset): Refactor as
1237 alpha_linux_nat_target method.
1238 (_initialize_alpha_linux_nat): Adjust.
1239 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
1240 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
1241 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
1242 methods of linux_nat_trad_target.
1243 (linux_trad_target): Delete.
1244 * linux-nat-trad.h (linux_trad_target): Delete function.
1245 (linux_nat_trad_target): New class.
1246 * mips-linux-nat.c (mips_linux_nat_target): New class.
1247 (super_fetch_registers, super_store_registers, super_close):
1248 Delete.
1249 (the_mips_linux_nat_target): New.
1250 (mips64_linux_regsets_fetch_registers)
1251 (mips64_linux_regsets_store_registers)
1252 (mips64_linux_fetch_registers, mips64_linux_store_registers)
1253 (mips_linux_register_u_offset, mips_linux_read_description)
1254 (mips_linux_can_use_hw_breakpoint)
1255 (mips_linux_stopped_by_watchpoint)
1256 (mips_linux_stopped_data_address)
1257 (mips_linux_region_ok_for_hw_watchpoint)
1258 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
1259 (mips_linux_close): Refactor as methods of mips_linux_nat.
1260 (_initialize_mips_linux_nat): Adjust to C++ification.
1261
1262 * aix-thread.c (aix_thread_target): New class.
1263 (aix_thread_ops): Now an aix_thread_target.
1264 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
1265 (aix_thread_fetch_registers, aix_thread_store_registers)
1266 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
1267 (aix_thread_thread_alive, aix_thread_pid_to_str)
1268 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
1269 Refactor as methods of aix_thread_target.
1270 (init_aix_thread_ops): Delete.
1271 (_initialize_aix_thread): Remove references to init_aix_thread_ops
1272 and complete_target_initialization.
1273 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
1274 (rs6000_nat_target): New class.
1275 (the_rs6000_nat_target): New.
1276 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
1277 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
1278 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
1279 (super_create_inferior): Delete.
1280 (_initialize_rs6000_nat): Adjust to C++ification.
1281
1282 * arm-linux-nat.c (arm_linux_nat_target): New class.
1283 (the_arm_linux_nat_target): New.
1284 (arm_linux_fetch_inferior_registers)
1285 (arm_linux_store_inferior_registers, arm_linux_read_description)
1286 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
1287 (arm_linux_remove_hw_breakpoint)
1288 (arm_linux_region_ok_for_hw_watchpoint)
1289 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
1290 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
1291 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
1292 arm_linux_nat_target.
1293 (_initialize_arm_linux_nat): Adjust to C++ification.
1294
1295 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
1296 (the_aarch64_linux_nat_target): New.
1297 (aarch64_linux_fetch_inferior_registers)
1298 (aarch64_linux_store_inferior_registers)
1299 (aarch64_linux_child_post_startup_inferior)
1300 (aarch64_linux_read_description)
1301 (aarch64_linux_can_use_hw_breakpoint)
1302 (aarch64_linux_insert_hw_breakpoint)
1303 (aarch64_linux_remove_hw_breakpoint)
1304 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
1305 (aarch64_linux_region_ok_for_hw_watchpoint)
1306 (aarch64_linux_stopped_data_address)
1307 (aarch64_linux_stopped_by_watchpoint)
1308 (aarch64_linux_watchpoint_addr_within_range)
1309 (aarch64_linux_can_do_single_step): Refactor as methods of
1310 aarch64_linux_nat_target.
1311 (super_post_startup_inferior): Delete.
1312 (_initialize_aarch64_linux_nat): Adjust to C++ification.
1313
1314 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
1315 (the_hppa_linux_nat_target): New.
1316 (hppa_linux_fetch_inferior_registers)
1317 (hppa_linux_store_inferior_registers): Refactor as methods of
1318 hppa_linux_nat_target.
1319 (_initialize_hppa_linux_nat): Adjust to C++ification.
1320
1321 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
1322 (the_ia64_linux_nat_target): New.
1323 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
1324 (ia64_linux_stopped_data_address)
1325 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
1326 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
1327 ia64_linux_nat_target methods.
1328 (super_xfer_partial): Delete.
1329 (_initialize_ia64_linux_nat): Adjust to C++ification.
1330
1331 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
1332 (the_m32r_linux_nat_target): New.
1333 (m32r_linux_fetch_inferior_registers)
1334 (m32r_linux_store_inferior_registers): Refactor as
1335 m32r_linux_nat_target methods.
1336 (_initialize_m32r_linux_nat): Adjust to C++ification.
1337
1338 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
1339 (the_m68k_linux_nat_target): New.
1340 (m68k_linux_fetch_inferior_registers)
1341 (m68k_linux_store_inferior_registers): Refactor as
1342 m68k_linux_nat_target methods.
1343 (_initialize_m68k_linux_nat): Adjust to C++ification.
1344
1345 * s390-linux-nat.c (s390_linux_nat_target): New class.
1346 (the_s390_linux_nat_target): New.
1347 (s390_linux_fetch_inferior_registers)
1348 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
1349 (s390_insert_watchpoint, s390_remove_watchpoint)
1350 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
1351 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
1352 (s390_auxv_parse, s390_read_description): Refactor as methods of
1353 s390_linux_nat_target.
1354 (_initialize_s390_nat): Adjust to C++ification.
1355
1356 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
1357 (the_sparc_linux_nat_target): New.
1358 (_initialize_sparc_linux_nat): Adjust to C++ification.
1359 * sparc-nat.c (sparc_fetch_inferior_registers)
1360 (sparc_store_inferior_registers): Remove target_ops parameter.
1361 * sparc-nat.h (sparc_fetch_inferior_registers)
1362 (sparc_store_inferior_registers): Remove target_ops parameter.
1363 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
1364 (the_sparc64_linux_nat_target): New.
1365 (_initialize_sparc64_linux_nat): Adjust to C++ification.
1366
1367 * spu-linux-nat.c (spu_linux_nat_target): New class.
1368 (the_spu_linux_nat_target): New.
1369 (spu_child_post_startup_inferior, spu_child_post_attach)
1370 (spu_child_wait, spu_fetch_inferior_registers)
1371 (spu_store_inferior_registers, spu_xfer_partial)
1372 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
1373 methods.
1374 (_initialize_spu_nat): Adjust to C++ification.
1375
1376 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
1377 (the_tilegx_linux_nat_target): New.
1378 (fetch_inferior_registers, store_inferior_registers):
1379 Refactor as methods.
1380 (_initialize_tile_linux_nat): Adjust to C++ification.
1381
1382 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
1383 (the_xtensa_linux_nat_target): New.
1384 (xtensa_linux_fetch_inferior_registers)
1385 (xtensa_linux_store_inferior_registers): Refactor as
1386 xtensa_linux_nat_target methods.
1387 (_initialize_xtensa_linux_nat): Adjust to C++ification.
1388
1389 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
1390 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
1391 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
1392 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
1393 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
1394 (fbsd_stopped_by_sw_breakpoint)
1395 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
1396 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
1397 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
1398 (fbsd_post_startup_inferior, fbsd_post_attach)
1399 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
1400 (fbsd_set_syscall_catchpoint)
1401 (super_xfer_partial, super_resume, super_wait)
1402 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
1403 (fbsd_handle_debug_trap): Remove target_ops parameter.
1404 (fbsd_nat_add_target): Delete.
1405 * fbsd-nat.h: Include "inf-ptrace.h".
1406 (fbsd_nat_add_target): Delete.
1407 (USE_SIGTRAP_SIGINFO): Define.
1408 (fbsd_nat_target): New class.
1409
1410 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
1411 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
1412 (amd64bsd_target): Delete.
1413 * amd64-bsd-nat.h: New file.
1414 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
1415 "x86-bsd-nat.h".
1416 (amd64_fbsd_nat_target): New class.
1417 (the_amd64_fbsd_nat_target): New.
1418 (amd64fbsd_read_description): Refactor as method of
1419 amd64_fbsd_nat_target.
1420 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
1421 (_initialize_amd64fbsd_nat): Adjust to C++ification.
1422 * amd64-nat.h (amd64bsd_target): Delete function declaration.
1423 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
1424 (i386bsd_store_inferior_registers): Remove target_ops parameter.
1425 (i386bsd_target): Delete.
1426 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
1427 (i386bsd_fetch_inferior_registers)
1428 (i386bsd_store_inferior_registers): Declare.
1429 (i386_bsd_nat_target): New class.
1430 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
1431 (the_i386_fbsd_nat_target): New.
1432 (i386fbsd_resume, i386fbsd_read_description): Refactor as
1433 i386_fbsd_nat_target methods.
1434 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
1435 (_initialize_i386fbsd_nat): Adjust to C++ification.
1436 * x86-bsd-nat.c (super_mourn_inferior): Delete.
1437 (x86bsd_mourn_inferior, x86bsd_target): Delete.
1438 (_initialize_x86_bsd_nat): Adjust to C++ification.
1439 * x86-bsd-nat.h: Include "x86-nat.h".
1440 (x86bsd_target): Delete declaration.
1441 (x86bsd_nat_target): New class.
1442
1443 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
1444 (the_aarch64_fbsd_nat_target): New.
1445 (aarch64_fbsd_fetch_inferior_registers)
1446 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
1447 aarch64_fbsd_nat_target.
1448 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
1449 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
1450 (the_alpha_bsd_nat_target): New.
1451 (alphabsd_fetch_inferior_registers)
1452 (alphabsd_store_inferior_registers): Refactor as
1453 alpha_bsd_nat_target methods.
1454 (_initialize_alphabsd_nat): Refactor as methods of
1455 alpha_bsd_nat_target.
1456 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
1457 (the_amd64_nbsd_nat_target): New.
1458 (_initialize_amd64nbsd_nat): Adjust to C++ification.
1459 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
1460 (the_amd64_obsd_nat_target): New.
1461 (_initialize_amd64obsd_nat): Adjust to C++ification.
1462 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
1463 (the_arm_fbsd_nat_target): New.
1464 (arm_fbsd_fetch_inferior_registers)
1465 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
1466 (_initialize_arm_fbsd_nat): Refactor as methods of
1467 arm_fbsd_nat_target.
1468 (_initialize_arm_fbsd_nat): Adjust to C++ification.
1469 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
1470 (the_arm_netbsd_nat_target): New.
1471 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
1472 arm_netbsd_nat_target.
1473 (_initialize_arm_netbsd_nat): Adjust to C++ification.
1474 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
1475 (the_hppa_nbsd_nat_target): New.
1476 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
1477 hppa_nbsd_nat_target methods.
1478 (_initialize_hppanbsd_nat): Adjust to C++ification.
1479 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
1480 (the_hppa_obsd_nat_target): New.
1481 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
1482 methods of hppa_obsd_nat_target.
1483 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
1484 add_target.
1485 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
1486 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
1487 add_target.
1488 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
1489 (_initialize_i386obsd_nat): Use add_target.
1490 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
1491 (the_m68k_bsd_nat_target): New.
1492 (m68kbsd_fetch_inferior_registers)
1493 (m68kbsd_store_inferior_registers): Refactor as methods of
1494 m68k_bsd_nat_target.
1495 (_initialize_m68kbsd_nat): Adjust to C++ification.
1496 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
1497 (the_mips_fbsd_nat_target): New.
1498 (mips_fbsd_fetch_inferior_registers)
1499 (mips_fbsd_store_inferior_registers): Refactor as methods of
1500 mips_fbsd_nat_target.
1501 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
1502 add_target.
1503 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
1504 (the_mips_nbsd_nat_target): New.
1505 (mipsnbsd_fetch_inferior_registers)
1506 (mipsnbsd_store_inferior_registers): Refactor as methods of
1507 mips_nbsd_nat_target.
1508 (_initialize_mipsnbsd_nat): Adjust to C++ification.
1509 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
1510 (the_mips64_obsd_nat_target): New.
1511 (mips64obsd_fetch_inferior_registers)
1512 (mips64obsd_store_inferior_registers): Refactor as methods of
1513 mips64_obsd_nat_target.
1514 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
1515 add_target.
1516 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
1517 nbsd_nat_target.
1518 * nbsd-nat.h: Include "inf-ptrace.h".
1519 (nbsd_nat_target): New class.
1520 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
1521 (obsd_wait): Refactor as methods of obsd_nat_target.
1522 (obsd_add_target): Delete.
1523 * obsd-nat.h: Include "inf-ptrace.h".
1524 (obsd_nat_target): New class.
1525 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
1526 (the_ppc_fbsd_nat_target): New.
1527 (ppcfbsd_fetch_inferior_registers)
1528 (ppcfbsd_store_inferior_registers): Refactor as methods of
1529 ppc_fbsd_nat_target.
1530 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
1531 add_target.
1532 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
1533 (the_ppc_nbsd_nat_target): New.
1534 (ppcnbsd_fetch_inferior_registers)
1535 (ppcnbsd_store_inferior_registers): Refactor as methods of
1536 ppc_nbsd_nat_target.
1537 (_initialize_ppcnbsd_nat): Adjust to C++ification.
1538 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
1539 (the_ppc_obsd_nat_target): New.
1540 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
1541 methods of ppc_obsd_nat_target.
1542 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
1543 add_target.
1544 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
1545 (the_sh_nbsd_nat_target): New.
1546 (shnbsd_fetch_inferior_registers)
1547 (shnbsd_store_inferior_registers): Refactor as methods of
1548 sh_nbsd_nat_target.
1549 (_initialize_shnbsd_nat): Adjust to C++ification.
1550 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
1551 (inf_ptrace_xfer_partial): Delete.
1552 (sparc_xfer_partial, sparc_target): Delete.
1553 * sparc-nat.h (sparc_fetch_inferior_registers)
1554 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
1555 (sparc_target): Delete function declaration.
1556 (sparc_target): New template class.
1557 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
1558 (_initialize_sparcnbsd_nat): Adjust to C++ification.
1559 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
1560 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
1561 add_target.
1562 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
1563 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
1564 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
1565 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
1566 add_target.
1567 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
1568 (the_vax_bsd_nat_target): New.
1569 (vaxbsd_fetch_inferior_registers)
1570 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
1571 methods.
1572 (_initialize_vaxbsd_nat): Adjust to C++ification.
1573
1574 * bsd-kvm.c (bsd_kvm_target): New class.
1575 (bsd_kvm_ops): Now a bsd_kvm_target.
1576 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
1577 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
1578 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
1579 bsd_kvm_target.
1580 (bsd_kvm_return_one): Delete.
1581 (bsd_kvm_add_target): Adjust to C++ification.
1582
1583 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
1584 (nto_procfs_target_procfs): New classes.
1585 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
1586 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
1587 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
1588 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
1589 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
1590 (procfs_remove_hw_breakpoint, procfs_resume)
1591 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
1592 (procfs_kill_inferior, procfs_store_registers)
1593 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
1594 as methods of nto_procfs_target.
1595 (nto_procfs_ops): Now an nto_procfs_target_procfs.
1596 (nto_native_ops): Delete.
1597 (procfs_open, procfs_native_open): Delete.
1598 (nto_native_ops): Now an nto_procfs_target_native.
1599 (init_procfs_targets): Adjust to C++ification.
1600 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
1601 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
1602 Refactor as methods of nto_procfs_target.
1603
1604 * go32-nat.c (go32_nat_target): New class.
1605 (the_go32_nat_target): New.
1606 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
1607 (go32_store_registers, go32_xfer_partial, go32_files_info)
1608 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
1609 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
1610 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
1611 (go32_pid_to_str): Refactor as methods of go32_nat_target.
1612 (go32_target): Delete.
1613 (_initialize_go32_nat): Adjust to C++ification.
1614
1615 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
1616 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
1617 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
1618 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
1619 gnu_nat_target.
1620 (gnu_target): Delete.
1621 * gnu-nat.h (gnu_target): Delete.
1622 (gnu_nat_target): New class.
1623 * i386-gnu-nat.c (gnu_base_target): New.
1624 (i386_gnu_nat_target): New class.
1625 (the_i386_gnu_nat_target): New.
1626 (_initialize_i386gnu_nat): Adjust to C++ification.
1627
3fffc070
PA
16282018-05-02 Pedro Alves <palves@redhat.com>
1629
1630 * bfd-target.c (target_bfd_xclose): Rename to ...
1631 (target_bfd_close): ... this.
1632 (target_bfd_reopen): Adjust.
1633 * target.c (target_close): Remove references to to_xclose.
1634 * target.h (target_ops::to_xclose): Delete.
1635 (target_ops::to_close): Update comments.
1636
6798487f
PA
16372018-05-02 Pedro Alves <palves@redhat.com>
1638
1639 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
1640 "linux-nat.h".
1641 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
1642 * inf-ptrace.c (inf_ptrace_register_u_offset)
1643 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
1644 (inf_ptrace_store_register, inf_ptrace_store_registers)
1645 (inf_ptrace_trad_target): Move to ...
1646 * linux-nat-trad.c: ... this new file.
1647 * linux-nat-trad.h: New file.
1648 * linux-nat.c (linux_target_install_ops): Make extern.
1649 (linux_trad_target): Delete.
1650 * linux-nat.h (linux_trad_target): Delete declaration.
1651 (linux_target_install_ops): Declare.
1652 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
1653 "linux-nat.h".
1654
c1955e17
PA
16552018-05-02 Pedro Alves <palves@redhat.com>
1656
1657 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
1658 procfs_target/add_target here.
1659 * procfs.c (procfs_target): Make static.
1660 (_initialize_procfs): Call add_target here.
1661 * procfs.h (struct target_ops): Remove forward declaration.
1662 (procfs_target): Remove declaration.
1663 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
1664
b5c8fcb1
PA
16652018-05-02 Pedro Alves <palves@redhat.com>
1666
1667 * procfs.c (procfs_stopped_by_watchpoint)
1668 (procfs_insert_watchpoint, procfs_remove_watchpoint)
1669 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
1670 Forward declare.
1671 (procfs_use_watchpoints): Delete, move contents...
1672 (procfs_target): ... here.
1673 * procfs.h (procfs_use_watchpoints): Delete declaration.
1674 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
1675 procfs_use_watchpoints.
1676 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
1677 procfs_use_watchpoints.
1678
0489430a
TT
16792018-05-02 Tom Tromey <tom@tromey.com>
1680
1681 PR python/20084:
1682 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
1683 and var_zuinteger_unlimited.
1684 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
1685 and PARAM_ZUINTEGER_UNLIMITED.
1686 (set_parameter_value): Handle var_zuinteger and
1687 var_zuinteger_unlimited.
1688 (add_setshow_generic): Likewise.
1689 (parmpy_init): Likewise.
1690
1632f8ba
DR
16912018-04-28 Dan Robertson <danlrobertson89@gmail.com>
1692
1693 PR rust/23124
1694 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
1695 pointer is not null before dereferencing it.
1696
76761936
TT
16972018-04-30 Tom Tromey <tom@tromey.com>
1698
1699 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
1700 is_mi_like_p.
1701
2d33446d
TT
17022018-04-30 Tom Tromey <tom@tromey.com>
1703
1704 * breakpoint.c (mention): Remove use of is_mi_like_p.
1705 (print_mention_ranged_breakpoint): Likewise.
1706 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
1707 of is_mi_like_p.
1708
f3c6abab
TT
17092018-04-30 Tom Tromey <tom@tromey.com>
1710
1711 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
1712
40c03530
TT
17132018-04-30 Tom Tromey <tom@tromey.com>
1714
1715 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
1716 (info_spu_event_command): Remove some uses of is_mi_like_p.
1717
2038b7fd
TT
17182018-04-30 Tom Tromey <tom@tromey.com>
1719
1720 * python/py-framefilter.c (py_print_single_arg)
1721 (enumerate_locals, py_print_args, py_print_frame): Remove some
1722 uses of is_mi_like_p.
1723
4904c3c6
TT
17242018-04-30 Tom Tromey <tom@tromey.com>
1725
1726 * ui-out.c: Update.
1727 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
1728 * ui-out.h (ui_out::is_mi_like_p): Now const.
1729 (ui_out::do_is_mi_like_p): Now const.
1730 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
1731
7c66fffc
TT
17322018-04-30 Tom Tromey <tom@tromey.com>
1733
1734 * varobj.c (varobj_set_visualizer): Use new_reference.
1735 * python/python.c (gdbpy_decode_line): Use new_reference.
1736 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
1737 new_reference.
1738
bbfa6f00
TT
17392018-04-30 Tom Tromey <tom@tromey.com>
1740
1741 * varobj.c (install_new_value): Use new_reference.
1742 * value.h (value_incref): Return void. Swap intro comment with
1743 value_decref.
1744 * value.c (set_value_parent): Use new_reference.
1745 (value_incref): Return void. Update intro comment.
1746 (release_value): Use new_reference.
1747 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
1748
1831a9f9
TT
17492018-04-30 Tom Tromey <tom@tromey.com>
1750
1751 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
1752 * gdb_bfd.h (new_bfd_ref): Remove.
1753 (gdb_bfd_open): Update comment.
1754 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1755 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
1756 (gdb_bfd_fdopenr): Use new_reference.
1757 * exec.c (exec_file_attach): Use new_reference.
1758
7c1b5f3d
TT
17592018-04-30 Tom Tromey <tom@tromey.com>
1760
1761 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
1762 method.
1763
e11fb955
TT
17642018-04-30 Tom Tromey <tom@tromey.com>
1765
1766 * jit.c (jit_read_code_entry): Use type_align.
1767 * i386-tdep.c (i386_gdbarch_init): Don't call
1768 set_gdbarch_long_long_align_bit.
1769 * gdbarch.sh: Remove long_long_align_bit.
1770 * gdbarch.c, gdbarch.h: Rebuild.
1771 * arc-tdep.c (arc_type_align): New function.
1772 (arc_gdbarch_init): Use arc_type_align. Don't call
1773 set_gdbarch_long_long_align_bit.
1774
2fff16dd
TT
17752018-04-30 Tom Tromey <tom@tromey.com>
1776
1777 * rust-lang.c (rust_type_alignment): Remove.
1778 (rust_composite_type): Use type_align.
1779
6d7bb824
TT
17802018-04-30 Tom Tromey <tom@tromey.com>
1781
1782 * NEWS: Mention Type.align.
1783 * python/py-type.c (typy_get_alignof): New function.
1784 (type_object_getset): Add "alignof".
1785
007e1530
TT
17862018-04-30 Tom Tromey <tom@tromey.com>
1787
1788 PR exp/17095:
1789 * NEWS: Update.
1790 * std-operator.def (UNOP_ALIGNOF): New operator.
1791 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
1792 New.
1793 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
1794 * c-lang.c (c_op_print_tab): Add alignof.
1795 * c-exp.y (ALIGNOF): New token.
1796 (exp): Add "ALIGNOF" production.
1797 (ident_tokens): Add _Alignof and alignof.
1798
2b4424c3
TT
17992018-04-30 Tom Tromey <tom@tromey.com>
1800
1801 * i386-tdep.c (i386_type_align): New function.
1802 (i386_gdbarch_init): Update.
1803 * gdbarch.sh (type_align): New method.
1804 * gdbarch.c, gdbarch.h: Rebuild.
1805 * arch-utils.h (default_type_align): Declare.
1806 * arch-utils.c (default_type_align): New function.
1807 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
1808 (struct type) <align_log2>: New field.
1809 <instance_flags>: Now a bitfield.
1810 (TYPE_RAW_ALIGN): New macro.
1811 (type_align, type_raw_align, set_type_align): Declare.
1812 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
1813 functions.
1814 * dwarf2read.c (quirk_rust_enum): Set type alignment.
1815 (get_alignment, maybe_set_alignment): New functions.
1816 (read_structure_type, read_enumeration_type, read_array_type)
1817 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
1818 (read_subrange_type, read_base_type): Set type alignment.
1819
d33bc52e
SM
18202018-04-30 Simon Marchi <simon.marchi@ericsson.com>
1821
1822 * dwarf2read.c (read_index_from_section): Use bool.
1823
e28b63a9
FG
18242018-04-29 Fabian Groffen <grobian@gentoo.org>
1825
1826 PR gdb/22950
1827 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
1828 with #ifdef.
1829
cd8c76e4
JR
18302018-04-29 John Reiser <jreiser@BitWagon.com>
1831
1832 PR build/22873
1833 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
1834 last step, and do it atomically.
1835
476d250e
AO
18362018-04-27 Alexandre Oliva <aoliva@redhat.com>
1837
1838 * compile/compile-c-types.c (convert_int, convert_float):
1839 Update for C FE v1.
1840
6873858b
TT
18412018-04-27 Tom Tromey <tom@tromey.com>
1842
1843 PR rust/22545:
1844 * rust-lang.c (rust_inclusive_range_type_p): New function.
1845 (rust_range): Handle inclusive ranges.
1846 (rust_compute_range): Likewise.
1847 * rust-exp.y (struct rust_op) <inclusive>: New field.
1848 (DOTDOTEQ): New constant.
1849 (range_expr): Add "..=" productions.
1850 (operator_tokens): Add "..=" token.
1851 (ast_range): Add "inclusive" parameter.
1852 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
1853 ranges.
1854 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
1855 bounds values.
1856 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
1857 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
1858 Update comments.
1859 * expprint.c (print_subexp_standard): Handle new bounds values.
1860 (dump_subexp_body_standard): Likewise.
1861
632e107b
TT
18622018-04-27 Tom Tromey <tom@tromey.com>
1863
1864 * configure: Rebuild.
1865 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
1866 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
1867 "OVERRIDE".
1868 (class symbol_needs_eval_context): Likewise.
1869 * dwarf2read.c (mock_mapped_index::symbol_name_count)
1870 (mock_mapped_index::symbol_name_at): Use "override". Remove
1871 "virtual".
1872 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
1873 "override".
1874 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
1875 * aarch64-tdep.c (instruction_reader::read): Use "override".
1876 (instruction_reader_test::read): Likewise.
1877 * arm-tdep.c (instruction_reader::read): Use "override".
1878 (instruction_reader_thumb::read): Likewise.
1879
b75abf5b
AK
18802018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
1881
1882 PR remote/9665
1883 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
1884 instead of remote_send.
1885 (remote_send): Remove.
1886
79188d8d
PA
18872018-04-26 Pedro Alves <palves@redhat.com>
1888
1889 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
1890 find_function_start_sal instead of find_pc_line.
1891
f50776aa
PA
18922018-04-26 Pedro Alves <palves@redhat.com>
1893
1894 * breakpoint.c (set_breakpoint_location_function): Handle
1895 mst_data_gnu_ifunc.
1896 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
1897 * elfread.c (elf_symtab_read): Give data symbols with
1898 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
1899 (elf_rel_plt_read): Update comment.
1900 * linespec.c (convert_linespec_to_sals): Handle
1901 mst_data_gnu_ifunc.
1902 (minsym_found): Handle mst_data_gnu_ifunc.
1903 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
1904 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
1905 * parse.c (find_minsym_type_and_address): Handle
1906 mst_data_gnu_ifunc.
1907 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
1908 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
1909 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
1910 comment.
1911 <mst_data_gnu_ifunc>: New enumerator.
1912
20944a6e
PA
19132018-04-26 Pedro Alves <palves@redhat.com>
1914
1915 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
1916 (lookup_minimal_symbol_by_pc_section): ... this. Replace
1917 'want_trampoline' parameter by a lookup_msym_prefer parameter.
1918 Handle it.
1919 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
1920 (lookup_minimal_symbol_by_pc): Adjust.
1921 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
1922 (lookup_solib_trampoline_symbol_by_pc): Adjust.
1923 * minsyms.h (lookup_msym_prefer): New enum.
1924 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
1925 parameter by a lookup_msym_prefer parameter.
1926
1adeb822
PA
19272018-04-26 Pedro Alves <palves@redhat.com>
1928
1929 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
1930 ends in "@plt" instead of looking at the symbol's section.
1931
a0aca7b0
PA
19322018-04-26 Pedro Alves <palves@redhat.com>
1933
1934 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
1935 all references.
1936 (find_pc_partial_function_gnu_ifunc): Rename to ...
1937 (find_pc_partial_function): ... this, and remove references to
1938 'is_gnu_ifunc_p'.
1939 (find_pc_partial_function): Delete old implementation.
1940 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
1941
76af0f26
PA
19422018-04-26 Pedro Alves <palves@redhat.com>
1943
1944 * linespec.c (struct bound_minimal_symbol_search_key): New.
1945 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
1946 skip first line if we found a GNU ifunc minimal symbol by name.
1947 (compare_msymbols): Change parameters to work with a destructured
1948 lhs minsym.
1949 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
1950 functions.
1951
3467ec66
PA
19522018-04-26 Pedro Alves <palves@redhat.com>
1953
1954 * breakpoint.c (set_breakpoint_location_function): Don't resolve
1955 ifunc targets here. Instead, if we have an ifunc minsym, use its
1956 address/name.
1957 (add_location_to_breakpoint): Store the minsym and the objfile in
1958 the breakpoint location.
1959 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
1960 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
1961 Record the minsym in the sal.
1962 * symtab.h (symtab_and_line) <msymbol>: New field.
1963
28f4fa4d
PA
19642018-04-26 Pedro Alves <palves@redhat.com>
1965
1966 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
1967 unless we actually resolved the ifunc.
1968
ca31ab1d
PA
19692018-04-26 Pedro Alves <palves@redhat.com>
1970
1971 * c-exp.y (variable production): Prefer ifunc minsyms over
1972 regular function symbols.
1973 * symtab.c (find_gnu_ifunc): New function.
1974 * minsyms.h (lookup_msym_prefer): New enum.
1975 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
1976 parameter by a lookup_msym_prefer parameter.
1977 * symtab.h (find_gnu_ifunc): New declaration.
1978
8388016d
PA
19792018-04-26 Pedro Alves <palves@redhat.com>
1980
1981 * blockframe.c (find_gnu_ifunc_target_type): New function.
1982 (find_function_type): New.
1983 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
1984 return a value with a memory address.
1985 (eval_call): For calls to GNU ifunc functions, try to find the
1986 type of the target function from the type that the resolver
1987 returns.
1988 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
1989 symbols.
1990 * infcall.c (find_function_return_type): Delete.
1991 (find_function_addr): Add 'function_type' parameter. For calls to
1992 GNU ifunc functions, try to find the type of the target function
1993 from the type that the resolver returns, and return it via
1994 FUNCTION_TYPE.
1995 (call_function_by_hand_dummy): Adjust to use the function type
1996 returned by find_function_addr.
1997 (find_function_addr): Add 'function_type' parameter and move
1998 description here.
1999 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
2000 declarations.
2001
a376e11d
PA
20022018-04-26 Pedro Alves <palves@redhat.com>
2003
2004 * c-exp.y (variable production): Skip finding an alias for ifunc
2005 symbols.
2006
02e169e2
PA
20072018-04-26 Pedro Alves <palves@redhat.com>
2008
2009 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
2010
249b5733
PA
20112018-04-25 Pedro Alves <palves@redhat.com>
2012
2013 * infcmd.c (kill_command): Print the pid as string, not the whole
2014 thread's ptid. Add comment. s/has been killed/killed/ in output
2015 message.
2016 * remote.c (remote_detach_1): Print the pid as string, not the
2017 whole thread's ptid.
2018
f67c0c91
SDJ
20192018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2020 Sergio Durigan Junior <sergiodj@redhat.com>
2021 Pedro Alves <palves@redhat.com>
2022
2023 * infcmd.c (kill_command): Print message when inferior has
2024 been killed.
2025 * inferior.c (print_inferior_events): Remove 'static'. Set as
2026 '1'.
2027 (add_inferior): Improve message printed when
2028 'print_inferior_events' is on.
2029 (exit_inferior): Remove message printed when
2030 'print_inferior_events' is on.
2031 (detach_inferior): Improve message printed when
2032 'print_inferior_events' is on.
2033 (initialize_inferiors): Use 'add_inferior_silent' to set
2034 'current_inferior_'.
2035 * inferior.h (print_inferior_events): Declare here as
2036 'extern'.
2037 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
2038 '[Detaching...]' messages when 'print_inferior_events' is on.
2039 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
2040 as prefix/suffix for messages. Remove periods. Fix erroneous
2041 'Detaching after fork from child...', replace it by '... from
2042 parent...'.
2043 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
2044 prefix/suffix when printing 'Detaching...' messages. Print
2045 them when 'print_inferior_events' is on.
2046 * remote.c (remote_detach_1): Print message when detaching
2047 from inferior and '!is_fork_parent'.
2048
e427af18
TT
20492018-04-24 Tom Tromey <tom@tromey.com>
2050
2051 * cli-out.h: Reindent.
2052
05b1d8d6
TT
20532018-04-24 Tom Tromey <tom@tromey.com>
2054
2055 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
2056 (cli_ui_out::do_field_string): Use fputs_filtered.
2057 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
2058
a95c7dab
TT
20592018-04-23 Tom Tromey <tom@tromey.com>
2060
2061 * guile/scm-frame.c (gdbscm_frame_read_var): Use
2062 gdb::unique_xmalloc_ptr.
2063
458412c3
TT
20642018-04-23 Tom Tromey <tom@tromey.com>
2065
2066 * configure: Rebuild.
2067
db86b02b
RS
20682018-04-22 Rajendra SY <rajendra.sy@gmail.com>
2069
2070 PR gdb/23095
2071 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
2072 prepare_for_testing. Set normal_bp to r_debug_state if target
2073 is bsd.
2074
00aecdcf
PA
20752018-04-21 Pedro Alves <palves@redhat.com>
2076 Rajendra SY <rajendra.sy@gmail.com>
2077
2078 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
2079 * remote.c (extended_remote_attach): In all-stop mode, mark the
2080 thread as executing.
2081
224608c3
PW
20822018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2083
2084 * thread.c (thread_apply_all_command): Fix comment.
2085 (thread_command): Fix comment.
2086
3b74854b
AH
20872018-04-10 Alan Hayward <alan.hayward@arm.com>
2088
2089 * common/tdesc.h (tdesc_create_feature): Remove xml filename
2090 parameter.
2091 * features/aarch64-core.c (create_feature_aarch64_core):
2092 Regenerate.
2093 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
2094 Likewise.
2095 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
2096 Likewise.
2097 * features/i386/32bit-avx512.c
2098 (create_feature_i386_32bit_avx512): Likewise.
2099 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
2100 Likewise.
2101 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
2102 Likewise.
2103 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
2104 Likewise.
2105 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
2106 Likewise.
2107 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
2108 Likewise.
2109 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
2110 Likewise.
2111 * features/i386/64bit-avx512.c
2112 (create_feature_i386_64bit_avx512): Likewise.
2113 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
2114 Likewise.
2115 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
2116 Likewise.
2117 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
2118 Likewise.
2119 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
2120 Likewise.
2121 * features/i386/64bit-segments.c
2122 (create_feature_i386_64bit_segments): Likewise.
2123 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
2124 Likewise.
2125 * features/i386/x32-core.c
2126 (create_feature_i386_x32_core): Likewise.
2127 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
2128 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
2129 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
2130 * target-descriptions.c: In generated code, don't pass xml
2131 filename.
2132
e98577a9
AH
21332018-04-18 Alan Hayward <alan.hayward@arm.com>
2134
2135 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
2136 (print_xml_feature::visit_post): Likewise.
2137 (print_xml_feature::visit): Likewise.
2138 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
2139 (print_xml_feature): Add new class.
2140 * regformats/regdat.sh: Null xmltarget on feature targets.
2141 * target-descriptions.c (struct target_desc): Add xmltarget.
2142 (maintenance_check_tdesc_xml_convert): Add unittest function.
2143 (tdesc_get_features_xml): Add function to get xml.
2144 (maintenance_check_xml_descriptions): Test xml generation.
2145 * xml-tdesc.c (string_read_description_xml): Add function.
2146 * xml-tdesc.h (string_read_description_xml): Add declaration.
2147
ad7fc756
AH
21482018-04-18 Alan Hayward <alan.hayward@arm.com>
2149
2150 * features/Makefile: Add feature marker to targets with new style
2151 target descriptions.
2152 * regformats/aarch64.dat: Regenerate.
2153 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
2154 * regformats/i386/amd64-avx-linux.dat: Likewise.
2155 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
2156 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
2157 * regformats/i386/amd64-linux.dat: Likewise.
2158 * regformats/i386/amd64-mpx-linux.dat: Likewise.
2159 * regformats/i386/amd64.dat: Likewise.
2160 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
2161 * regformats/i386/i386-avx-linux.dat: Likewise.
2162 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
2163 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
2164 * regformats/i386/i386-linux.dat: Likewise.
2165 * regformats/i386/i386-mmx-linux.dat: Likewise.
2166 * regformats/i386/i386-mpx-linux.dat: Likewise.
2167 * regformats/i386/i386.dat: Likewise.
2168 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
2169 * regformats/i386/x32-avx-linux.dat: Likewise.
2170 * regformats/i386/x32-linux.dat: Likewise.
2171 * regformats/tic6x-c62x-linux.dat: Likewise.
2172 * regformats/tic6x-c64x-linux.dat: Likewise.
2173 * regformats/tic6x-c64xp-linux.dat: Likewise.
2174 * regformats/regdat.sh: Parse feature marker.
2175
d278f585
AH
21762018-04-18 Alan Hayward <alan.hayward@arm.com>
2177
2178 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
2179 (tdesc_osabi_name): Likewise.
2180 * target-descriptions.c (tdesc_architecture_name): Add new
2181 function.
2182 (tdesc_osabi_name): Likewise.
2183
eee8a18d
AH
21842018-04-18 Alan Hayward <alan.hayward@arm.com>
2185
2186 * common/tdesc.c (tdesc_predefined_type): Move to here.
2187 (tdesc_named_type): Likewise.
2188 (tdesc_create_vector): Likewise.
2189 (tdesc_create_struct): Likewise.
2190 (tdesc_set_struct_size): Likewise.
2191 (tdesc_create_union): Likewise.
2192 (tdesc_create_flags): Likewise.
2193 (tdesc_create_enum): Likewise.
2194 (tdesc_add_field): Likewise.
2195 (tdesc_add_typed_bitfield): Likewise.
2196 (tdesc_add_bitfield): Likewise.
2197 (tdesc_add_flag): Likewise.
2198 (tdesc_add_enum_value): Likewise.
2199 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
2200 (struct tdesc_type_vector): Likewise.
2201 (struct tdesc_type_field): Likewise.
2202 (struct tdesc_type_with_fields): Likewise.
2203 (tdesc_create_enum): Add declaration.
2204 (tdesc_add_typed_bitfield): Likewise.
2205 (tdesc_add_enum_value): Likewise.
2206 * target-descriptions.c (tdesc_type_field): Move from here.
2207 (tdesc_type_builtin): Likewise.
2208 (tdesc_type_vector): Likewise.
2209 (tdesc_type_with_fields): Likewise.
2210 (tdesc_predefined_types): Likewise.
2211 (tdesc_named_type): Likewise.
2212 (tdesc_create_vector): Likewise.
2213 (tdesc_create_struct): Likewise.
2214 (tdesc_set_struct_size): Likewise.
2215 (tdesc_create_union): Likewise.
2216 (tdesc_create_flags): Likewise.
2217 (tdesc_create_enum): Likewise.
2218 (tdesc_add_field): Likewise.
2219 (tdesc_add_typed_bitfield): Likewise.
2220 (tdesc_add_bitfield): Likewise.
2221 (tdesc_add_flag): Likewise.
2222 (tdesc_add_enum_value): Likewise.
2223 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
2224 (tdesc_add_typed_bitfield): Likewise.
2225 (tdesc_add_enum_value): Likewise.
2226
82ec9bc7
AH
22272018-04-18 Alan Hayward <alan.hayward@arm.com>
2228
2229 * common/tdesc.c (tdesc_feature::accept): Move to here.
2230 (tdesc_feature::operator==): Likewise.
2231 (tdesc_create_reg): Likewise.
2232 * common/tdesc.h (tdesc_type_kind): Likewise.
2233 (struct tdesc_type): Likewise.
2234 (struct tdesc_feature): Likewise.
2235 * regformats/regdat.sh: Create a feature.
2236 * target-descriptions.c (tdesc_type_kind): Move from here.
2237 (tdesc_type): Likewise.
2238 (tdesc_type_up): Likewise.
2239 (tdesc_feature): Likewise.
2240 (tdesc_create_reg): Likewise.
2241
ea3e7d71
AH
22422018-04-18 Alan Hayward <alan.hayward@arm.com>
2243
2244 * Makefile.in: Add arch/tdesc.c
2245 * common/tdesc.c: New file.
2246 * common/tdesc.h (tdesc_element_visitor): Move to here.
2247 (tdesc_element): Likewise.
2248 (tdesc_reg): Likewise.
2249 (tdesc_reg_up): Likewise.
2250 * regformats/regdef.h (reg): Add offset to constructors.
2251 * target-descriptions.c (tdesc_element_visitor): Move from here.
2252 (tdesc_element): Likewise.
2253 (tdesc_reg): Likewise.
2254 (tdesc_reg_up): Likewise.
2255
bedda9ac
TT
22562018-04-17 Tom Tromey <tom@tromey.com>
2257
2258 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
2259 discriminant field.
2260
a037790e
TT
22612018-04-17 Tom Tromey <tom@tromey.com>
2262
2263 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
2264
c7dcbf88
AA
22652018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2266
2267 * symtab.c (print_symbol_info): Skip printing filename and line
2268 number when `last' is NULL.
2269 (symtab_symbol_info): Use empty string instead of NULL for first
2270 invocation of print_symbol_info.
2271 (rbreak_command): Pass NULL to `last' parameter of
2272 print_symbol_info.
2273
07d28c77
SM
22742018-04-16 Simon Marchi <simon.marchi@ericsson.com>
2275
2276 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
2277 instead of nullptr.
2278
8a3de5e1
PA
22792018-04-16 Pedro Alves <palves@redhat.com>
2280
2281 * MAINTAINERS (sh): Remove.
2282 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
2283 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
2284 (ALLDEPFILES): Remove sh64-tdep.c.
2285 * NEWS: Mentions that support for SH-5/SH64 is removed.
2286 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
2287 (sh*-*-openbsd*): Ditto.
2288 (sh64-*-elf*): Remove.
2289 (sh*): Remove.
2290 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
2291 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
2292 * sh-tdep.c: No longer include "sh64-tdep.h".
2293 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
2294 * sh64-tdep.c, sh64-tdep.h: Remove files.
2295
a2a79012
PA
22962018-04-16 Pedro Alves <palves@redhat.com>
2297
2298 * MAINTAINERS: Remove m88k.
2299 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
2300 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
2301 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
2302 * NEWS: Mention that support for m88k was removed.
2303 * configure.host (m88*-*-*): Remove support.
2304 * configure.nat (m88k-*-*): Remove support.
2305 * configure.tgt (m88*-*-openbsd*): Remove.
2306 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
2307
eda4efb1
SM
23082018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
2309
2310 * configure.tgt (x86_tobjs): New variable.
2311 (amd64_tobjs, i386_tobjs): Use it.
2312
b744723f
AA
23132018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2314
2315 * symtab.c (print_symbol_info): Precede the symbol definition by
2316 the line number when available.
2317 * NEWS: Advertise this enhancement.
2318
4a4495d6
MM
23192018-04-13 Markus Metzger <markus.t.metzger@intel.com>
2320
2321 * NEWS (New options): announce set/show record btrace cpu.
2322 * btrace.c: Include record-btrace.h.
2323 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
2324 the vendor is unknown.
2325 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
2326 Maybe overwrite the btrace configuration's cpu.
2327 (btrace_compute_ftrace): Add cpu parameter. Update callers.
2328 (btrace_fetch): Add cpu parameter. Update callers.
2329 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
2330 Maybe overwrite the btrace configuration's cpu. Skip enabling
2331 errata workarounds if the vendor is unknown.
2332 * python/py-record-btrace.c: Include record-btrace.h.
2333 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
2334 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
2335 * record-btrace.c (record_btrace_cpu_state_kind): New.
2336 (record_btrace_cpu): New.
2337 (set_record_btrace_cpu_cmdlist): New.
2338 (record_btrace_get_cpu): New.
2339 (require_btrace_thread, record_btrace_info)
2340 (record_btrace_resume_thread): Call record_btrace_get_cpu.
2341 (cmd_set_record_btrace_cpu_none): New.
2342 (cmd_set_record_btrace_cpu_auto): New.
2343 (cmd_set_record_btrace_cpu): New.
2344 (cmd_show_record_btrace_cpu): New.
2345 (_initialize_record_btrace): Initialize set/show record btrace cpu
2346 commands.
2347 * record-btrace.h (record_btrace_get_cpu): New.
2348
69f90c75
MM
23492018-04-13 Markus Metzger <markus.t.metzger@intel.com>
2350
2351 * record.c (set_record_command): Fix typo in message.
2352
b85310e1
MM
23532018-04-13 Markus Metzger <markus.t.metzger@intel.com>
2354
2355 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
2356
1d509aa6
MM
23572018-04-13 Markus Metzger <markus.t.metzger@intel.com>
2358
2359 * infrun.c (process_event_stop_test): Call
2360 gdbarch_in_indirect_branch_thunk.
2361 * gdbarch.sh (in_indirect_branch_thunk): New.
2362 * gdbarch.c: Regenerated.
2363 * gdbarch.h: Regenerated.
2364 * x86-tdep.h: New.
2365 * x86-tdep.c: New.
2366 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
2367 (HFILES_NO_SRCDIR): Add x86-tdep.h.
2368 (ALLDEPFILES): Add x86-tdep.c.
2369 * arch-utils.h (default_in_indirect_branch_thunk): New.
2370 * arch-utils.c (default_in_indirect_branch_thunk): New.
2371 * i386-tdep: Include x86-tdep.h.
2372 (i386_in_indirect_branch_thunk): New.
2373 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
2374 function.
2375 * amd64-tdep: Include x86-tdep.h.
2376 (amd64_in_indirect_branch_thunk): New.
2377 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
2378
b4be9bfd
JK
23792018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2380
2381 PR gdb/23053
2382 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
2383 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
2384 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
2385 regression.
2386
53d7df28
TT
23872018-04-12 Tom Tromey <tom@tromey.com>
2388
2389 * rust-lang.c (rust_print_struct_def): Remove univariant code.
2390 (rust_evaluate_subexp): Likewise.
2391
70b33f19
PA
23922018-04-12 Pedro Alves <palves@redhat.com>
2393
2394 * procfs.c (procfs_detach): Make forward declaration's prototype
2395 match definition's protototype.
2396 (proc_get_LDT_entry): Remove stale do_cleanups call.
2397
436411b1
PA
23982018-04-12 Pedro Alves <palves@redhat.com>
2399
2400 * target.h (target_ops::to_has_exited): Delete.
2401 (target_has_exited): Delete.
2402 * target-delegates.c: Regenerate.
2403
20db9c52
PA
24042018-04-11 Pedro Alves <palves@redhat.com>
2405
2406 * target.c (fileio_fh_t::t): Add comment.
2407 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
2408 (target_fileio_close): Handle a NULL target.
2409 (invalidate_fileio_fh): New.
2410 (target_close): Call it.
2411 * remote.c (remote_hostio_send_command): No longer check whether
2412 remote_desc is open.
2413
5ff79300
PA
24142018-04-11 Pedro Alves <palves@redhat.com>
2415
2416 * target.c (fileio_fh_t): Make it a named struct instead of a
2417 typedef.
2418 (fileio_fh_t::is_closed): New method.
2419 (DEF_VEC_O (fileio_fh_t)): Remove.
2420 (fileio_fhandles): Now a std::vector.
2421 (is_closed_fileio_fh): Delete.
2422 (acquire_fileio_fd): Adjust. Rename parameters.
2423 (release_fileio_fd): Adjust.
2424 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
2425 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
2426 (target_fileio_close): Adjust.
2427
6e22e10d
SM
24282018-04-10 Simon Marchi <simon.marchi@ericsson.com>
2429
2430 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
2431 index.
2432
731f534f
PA
24332018-04-10 Pedro Alves <palves@redhat.com>
2434
2435 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
2436 (scoped_finish_thread_state): New class.
2437 * infcmd.c (run_command_1): Use it instead of finish_thread_state
2438 cleanup.
2439 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
2440 (fetch_inferior_event, normal_stop): Likewise.
2441 * thread.c (finish_thread_state_cleanup): Delete.
2442
d5f4488f
SM
24432018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2444 Pedro Alves <palves@redhat.com>
2445
2446 * value.c: Include "selftest.h" and "common/array-view.h".
2447 (struct range) <operator ==>: New.
2448 (test_ranges_contain): New.
2449 (check_ranges_vector): New.
2450 (test_insert_into_bit_range_vector): New.
2451 (_initialize_values): Register selftests.
2452 * common/array-view.h (operator==, operator!=): New.
2453
b24531ed
SM
24542018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2455
2456 * common/gdb_vecs.h (unordered_remove): Add overload that takes
2457 an iterator.
2458 * inline-frame.c: Include <algorithm>.
2459 (struct inline_state): Add constructor.
2460 (inline_state_s): Remove.
2461 (DEF_VEC_O(inline_state_s)): Remove.
2462 (inline_states): Change type to std::vector.
2463 (find_inline_frame_state): Adjust to std::vector.
2464 (allocate_inline_frame_state): Remove.
2465 (clear_inline_frame_state): Adjust to std::vector.
2466 (skip_inline_frames): Adjust to std::vector.
2467
c252925c
SM
24682018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2469
2470 * tracepoint.h (struct trace_state_variable): Add constructor.
2471 <name>: Change type to std::string.
2472 * tracepoint.c (tsv_s): Remove.
2473 (DEF_VEC_O(tsv_s)): Remove.
2474 (tvariables): Change to std::vector.
2475 (create_trace_state_variable): Adjust to std::vector.
2476 (find_trace_state_variable): Likewise.
2477 (find_trace_state_variable_by_number): Likewise.
2478 (delete_trace_state_variable): Likewise.
2479 (trace_variable_command): Adjust to std::string.
2480 (delete_trace_variable_command): Likewise.
2481 (tvariables_info_1): Adjust to std::vector.
2482 (save_trace_state_variables): Likewise.
2483 (start_tracing): Likewise.
2484 (merge_uploaded_trace_state_variables): Adjust to std::vector
2485 and std::string.
2486 * target.h (struct target_ops)
2487 <to_download_trace_state_variable>: Pass reference to
2488 trace_state_variable.
2489 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
2490 * target-delegates.c: Re-generate.
2491 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
2492 (mi_tsv_deleted): Likewise.
2493 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
2494 * remote.c (remote_download_trace_state_variable): Change
2495 pointer to reference and adjust.
2496 * make-target-delegates (parse_argtypes): Handle references.
2497 (write_function_header): Likewise.
2498 (munge_type): Likewise.
2499
c9638d26
SM
25002018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2501
2502 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2503 string_view-selftests.c.
2504 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
2505 testsuite.
2506 * unittests/basic_string_view/cons/char/1.cc: Likewise.
2507 * unittests/basic_string_view/cons/char/2.cc: Likewise.
2508 * unittests/basic_string_view/cons/char/3.cc: Likewise.
2509 * unittests/basic_string_view/element_access/char/1.cc:
2510 Likewise.
2511 * unittests/basic_string_view/element_access/char/empty.cc:
2512 Likewise.
2513 * unittests/basic_string_view/element_access/char/front_back.cc:
2514 Likewise.
2515 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
2516 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
2517 Likewise.
2518 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
2519 Likewise.
2520 * unittests/basic_string_view/modifiers/swap/char/1.cc:
2521 Likewise.
2522 * unittests/basic_string_view/operations/compare/char/1.cc:
2523 Likewise.
2524 * unittests/basic_string_view/operations/compare/char/13650.cc:
2525 Likewise.
2526 * unittests/basic_string_view/operations/copy/char/1.cc:
2527 Likewise.
2528 * unittests/basic_string_view/operations/data/char/1.cc:
2529 Likewise.
2530 * unittests/basic_string_view/operations/find/char/1.cc:
2531 Likewise.
2532 * unittests/basic_string_view/operations/find/char/2.cc:
2533 Likewise.
2534 * unittests/basic_string_view/operations/find/char/3.cc:
2535 Likewise.
2536 * unittests/basic_string_view/operations/find/char/4.cc:
2537 Likewise.
2538 * unittests/basic_string_view/operations/rfind/char/1.cc:
2539 Likewise.
2540 * unittests/basic_string_view/operations/rfind/char/2.cc:
2541 Likewise.
2542 * unittests/basic_string_view/operations/rfind/char/3.cc:
2543 Likewise.
2544 * unittests/basic_string_view/operations/substr/char/1.cc:
2545 Likewise.
2546 * unittests/basic_string_view/operators/char/2.cc: Likewise.
2547 * unittests/string_view-selftests.c: New file.
2548
fdc11678
SM
25492018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * unittests/basic_string_view/capacity/1.cc: New file.
2552 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
2553 * unittests/basic_string_view/cons/char/1.cc: New file.
2554 * unittests/basic_string_view/cons/char/2.cc: New file.
2555 * unittests/basic_string_view/cons/char/3.cc: New file.
2556 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
2557 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
2558 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
2559 * unittests/basic_string_view/element_access/char/1.cc: New file.
2560 * unittests/basic_string_view/element_access/char/2.cc: New file.
2561 * unittests/basic_string_view/element_access/char/empty.cc: New file.
2562 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
2563 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
2564 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
2565 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
2566 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
2567 * unittests/basic_string_view/include.cc: New file.
2568 * unittests/basic_string_view/inserters/char/1.cc: New file.
2569 * unittests/basic_string_view/inserters/char/2.cc: New file.
2570 * unittests/basic_string_view/inserters/char/3.cc: New file.
2571 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
2572 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
2573 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
2574 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
2575 * unittests/basic_string_view/literals/types.cc: New file.
2576 * unittests/basic_string_view/literals/values.cc: New file.
2577 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
2578 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
2579 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
2580 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
2581 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
2582 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
2583 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
2584 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
2585 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
2586 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
2587 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
2588 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
2589 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
2590 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
2591 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
2592 * unittests/basic_string_view/operations/data/char/1.cc: New file.
2593 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
2594 * unittests/basic_string_view/operations/find/char/1.cc: New file.
2595 * unittests/basic_string_view/operations/find/char/2.cc: New file.
2596 * unittests/basic_string_view/operations/find/char/3.cc: New file.
2597 * unittests/basic_string_view/operations/find/char/4.cc: New file.
2598 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
2599 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
2600 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
2601 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
2602 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
2603 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
2604 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
2605 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
2606 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
2607 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
2608 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
2609 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
2610 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
2611 * unittests/basic_string_view/operators/char/2.cc: New file.
2612 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
2613 * unittests/basic_string_view/range_access/char/1.cc: New file.
2614 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
2615 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
2616 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
2617 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
2618 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
2619 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
2620 * unittests/basic_string_view/requirements/typedefs.cc: New file.
2621 * unittests/basic_string_view/typedefs.cc: New file.
2622 * unittests/basic_string_view/types/1.cc: New file.
2623
8345c4a2
SM
26242018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2625
2626 * common/gdb_string_view.h: Remove libstdc++ implementation
2627 details, adjust to gdb reality.
2628 * common/gdb_string_view.tcc: Likewise.
2629 * cli/cli-script.c (struct string_view): Remove.
2630 (user_args) <m_args>: Change element type to gdb::string_view.
2631 (user_args::insert_args): Adjust.
2632
7adcdf08
SM
26332018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2634
2635 * common/gdb_string_view.h: New file.
2636 * common/gdb_string_view.tcc: New file.
2637
41260ac2
SM
26382018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2639
2640 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
2641 * configure: Re-generate.
2642
0bee6dd4
PA
26432018-04-09 Pedro Alves <palves@redhat.com>
2644
2645 * gdbarch.sh: Include "observable.h" instead of "observer.h".
2646 (set_target_gdbarch): Call
2647 gdb::observers::architecture_changed.notify instead of
2648 observer_notify_architecture_changed.
2649
6f14adc5
SM
26502018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2651
2652 * tracepoint.c (struct current_traceframe_cleanup): Remove.
2653 (do_restore_current_traceframe_cleanup): Remove.
2654 (restore_current_traceframe_cleanup_dtor): Remove.
2655 (make_cleanup_restore_current_traceframe): Remove.
2656 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
2657 New.
2658 * tracepoint.h (struct scoped_restore_current_traceframe): New.
2659 * infrun.c (fetch_inferior_event): Use
2660 scoped_restore_current_traceframe.
2661
b2bdb8cf
SM
26622018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2663
2664 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
2665 Remove.
2666 <n_allocated_type_units>: Remove.
2667 <all_type_units>: Change to std::vector.
2668 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
2669 to std::vector change.
2670 (dwarf2_per_objfile::get_cutu): Likewise.
2671 (dwarf2_per_objfile::get_tu): Likewise.
2672 (create_signatured_type_table_from_index): Likewise.
2673 (create_signatured_type_table_from_debug_names): Likewise.
2674 (dw2_symtab_iter_next): Likewise.
2675 (dw2_print_stats): Likewise.
2676 (dw2_expand_all_symtabs): Likewise.
2677 (dw2_expand_marked_cus): Likewise.
2678 (dw2_debug_names_iterator::next): Likewise.
2679 (dwarf2_initialize_objfile): Likewise.
2680 (add_signatured_type_cu_to_table): Likewise.
2681 (create_all_type_units): Likewise.
2682 (add_type_unit): Likewise.
2683 (struct tu_abbrev_offset): Add constructor.
2684 (build_type_psymtabs_1): Adjust to std::vector change.
2685 (print_tu_stats): Likewise.
2686 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
2687 (write_debug_names): Likewise.
2688
b76e467d
SM
26892018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2690
2691 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
2692 Make an std::vector.
2693 <n_comp_units>: Remove.
2694 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
2695 to std::vector change.
2696 (dwarf2_per_objfile::get_cutu): Likewise.
2697 (dwarf2_per_objfile::get_cu): Likewise.
2698 (create_cus_from_index): Likewise.
2699 (create_addrmap_from_index): Likewise.
2700 (create_addrmap_from_aranges): Likewise.
2701 (dwarf2_read_index): Likewise.
2702 (dw2_find_last_source_symtab): Likewise.
2703 (dw2_map_symtabs_matching_filename): Likewise.
2704 (dw2_symtab_iter_next): Likewise.
2705 (dw2_print_stats): Likewise.
2706 (dw2_expand_all_symtabs): Likewise.
2707 (dw2_expand_symtabs_with_fullname): Likewise.
2708 (dw2_expand_marked_cus): Likewise.
2709 (dw2_map_symbol_filenames): Likewise.
2710 (create_cus_from_debug_names): Likewise.
2711 (dwarf2_read_debug_names): Likewise.
2712 (dw2_debug_names_iterator::next): Likewise.
2713 (dwarf2_initialize_objfile): Likewise.
2714 (set_partial_user): Likewise.
2715 (dwarf2_build_psymtabs_hard): Likewise.
2716 (read_comp_units_from_section): Remove arguments, adjust to
2717 std::vector change.
2718 (create_all_comp_units): Adjust to std::vector and
2719 read_comp_units_from_section changes.
2720 (dwarf2_find_containing_comp_unit): Adjust to std::vector
2721 change.
2722 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
2723 (psyms_seen_size): Likewise.
2724 (write_gdbindex): Likewise.
2725 (write_debug_names): Likewise.
2726
12359b5e
SM
27272018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2728
2729 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
2730 with dwarf2_per_objfile.
2731 (create_cus_from_index): Likewise.
2732 (create_signatured_type_table_from_index): Likewise.
2733 (dwarf2_read_index): Likewise.
2734 (dwarf2_initialize_objfile): Likewise.
2735 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
2736 per_cu rather than get_dwarf2_per_objfile.
2737
ff4c9fec
SM
27382018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2739
2740 * dwarf2read.h (struct signatured_type): Forward declare.
2741 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
2742 New methods.
2743 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
2744 (dw2_get_cutu): ...this.
2745 (dwarf2_per_objfile::get_cu): Rename from...
2746 (dw2_get_cu): ...this.
2747 (dwarf2_per_objfile::get_tu): New.
2748 (create_addrmap_from_index): Adjust.
2749 (create_addrmap_from_aranges): Adjust.
2750 (dw2_find_last_source_symtab): Adjust.
2751 (dw2_map_symtabs_matching_filename): Adjust.
2752 (dw2_symtab_iter_next): Adjust.
2753 (dw2_print_stats): Adjust.
2754 (dw2_expand_all_symtabs): Adjust.
2755 (dw2_expand_symtabs_with_fullname): Adjust.
2756 (dw2_expand_marked_cus): Adjust.
2757 (dw_expand_symtabs_matching_file_matcher): Adjust.
2758 (dw2_map_symbol_filenames): Adjust.
2759 (dw2_debug_names_iterator::next): Adjust.
2760 (dwarf2_initialize_objfile): Adjust.
2761 (set_partial_user): Adjust.
2762 (dwarf2_build_psymtabs_hard): Adjust.
2763
5ca3fcb6
SM
27642018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * dwarf2read.c (create_signatured_type_table_from_debug_names):
2767 Remove unused variables.
2768 (dw2_map_symtabs_matching_filename): Likewise.
2769 (dwarf2_record_block_ranges): Likewise.
2770 (dwarf2_read_addr_index): Likewise.
2771 (follow_die_offset): Likewise.
2772
b2e586e8
SM
27732018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
2776 to symbol_file_add_main.
2777
7c4e78cf
SM
27782018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2779
2780 PR mi/22299
2781 * mi/mi-console.c (do_fputc_async_safe): New.
2782 (mi_console_file::write_async_safe): New.
2783 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
2784 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
2785 New.
2786 * ui-file.c (ui_file::putstrn): Adjust call to
2787 fputstrn_unfiltered.
2788 * utils.c (printchar): Replace do_fputs and do_fprintf
2789 parameters by do_fputc.
2790 (fputstr_filtered): Adjust call to printchar.
2791 (fputstr_unfiltered): Likewise.
2792 (fputstrn_filtered): Likewise.
2793 (fputstrn_unfiltered): Add do_fputc parameter, pass to
2794 printchar.
2795 * utils.h (do_fputc_ftype): New typedef.
2796 (fputstrn_unfiltered): Add do_fputc parameter.
2797
5dc026d3
SM
27982018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2799
2800 * regformats/i386/i386-avx.dat: Remove.
2801
c912f608
SM
28022018-04-07 Simon Marchi <simon.marchi@ericsson.com>
2803
2804 PR gdb/22979
2805 * amd64-tdep.c (amd64_none_init_abi): New function.
2806 (amd64_x32_none_init_abi): New function.
2807 (_initialize_amd64_tdep): Register handlers for x86-64 and
2808 x64_32 with GDB_OSABI_NONE.
2809 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
2810 GDB_OSABI_NONE osabi.
2811
26540402
SM
28122018-04-07 Simon Marchi <simon.marchi@ericsson.com>
2813
2814 PR gdb/22980
2815 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
2816 GDB_OSABI_NONE.
2817 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
2818 * osabi.c (gdb_osabi_names): Add "unknown" entry.
2819
9018be22
SM
28202018-04-07 Simon Marchi <simon.marchi@ericsson.com>
2821
2822 * common/byte-vector.h (char_vector): New type.
2823 * target.h (target_read_alloc): Return
2824 gdb::optional<byte_vector>.
2825 (target_read_stralloc): Return gdb::optional<char_vector>.
2826 (target_get_osdata): Return gdb::optional<char_vector>.
2827 * target.c (target_read_alloc_1): Templatize. Replacement
2828 manual memory management with vector.
2829 (target_read_alloc): Change return type, adjust.
2830 (target_read_stralloc): Change return type, adjust.
2831 (target_get_osdata): Change return type, adjust.
2832 * auxv.c (struct auxv_info) <length>: Remove.
2833 <data>: Change type to gdb::optional<byte_vector>.
2834 (auxv_inferior_data_cleanup): Free auxv_info with delete.
2835 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
2836 (target_auxv_search): Adjust.
2837 (fprint_target_auxv): Adjust.
2838 * avr-tdep.c (avr_io_reg_read_command): Adjust.
2839 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
2840 (linux_make_corefile_notes): Adjust.
2841 * osdata.c (get_osdata): Adjust.
2842 * remote.c (remote_get_threads_with_qxfer): Adjust.
2843 (remote_memory_map): Adjust.
2844 (remote_traceframe_info): Adjust.
2845 (btrace_read_config): Adjust.
2846 (remote_read_btrace): Adjust.
2847 (remote_pid_to_exec_file): Adjust.
2848 * solib-aix.c (solib_aix_get_library_list): Adjust.
2849 * solib-dsbt.c (decode_loadmap): Don't free buf.
2850 (dsbt_get_initial_loadmaps): Adjust.
2851 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
2852 * solib-target.c (solib_target_current_sos): Adjust.
2853 * tracepoint.c (sdata_make_value): Adjust.
2854 * xml-support.c (xinclude_start_include): Adjust.
2855 (xml_fetch_content_from_file): Adjust.
2856 * xml-support.h (xml_fetch_another): Change return type.
2857 (xml_fetch_content_from_file): Change return type.
2858 * xml-syscall.c (xml_init_syscalls_info): Adjust.
2859 * xml-tdesc.c (file_read_description_xml): Adjust.
2860 (fetch_available_features_from_target): Change return type.
2861 (target_fetch_description_xml): Adjust.
2862 (target_read_description_xml): Adjust.
2863
14c88955
TT
28642018-04-06 Tom Tromey <tom@tromey.com>
2865
2866 * value.c (~value): Update.
2867 (struct value) <contents>: Now unique_xmalloc_ptr.
2868 (value_contents_bits_eq, allocate_value_contents)
2869 (value_contents_raw, value_contents_all_raw)
2870 (value_contents_for_printing, value_contents_for_printing_const)
2871 (set_value_enclosing_type): Update.
2872
0c7e6dd8
TT
28732018-04-06 Tom Tromey <tom@tromey.com>
2874
2875 * value.c (range_s): Remove typedef, VEC.
2876 (struct range): Add operator<.
2877 (range_lessthan): Remove.
2878 (ranges_contain): Change type.
2879 (~value): Update.
2880 (struct value) <unavailable, optimized_out>: Now std::vector.
2881 (value_entirely_available)
2882 (value_entirely_covered_by_range_vector)
2883 (value_entirely_unavailable, value_entirely_optimized_out):
2884 Update.
2885 (insert_into_bit_range_vector): Change argument type.
2886 (find_first_range_overlap): Likewise.
2887 (struct ranges_and_idx, value_contents_bits_eq)
2888 (require_not_optimized_out, require_available): Update.
2889 (ranges_copy_adjusted): Change argument types.
2890 (value_optimized_out, value_copy, value_fetch_lazy): Update.
2891
2c8331b9
TT
28922018-04-06 Tom Tromey <tom@tromey.com>
2893
2894 * value.c (~value): Update.
2895 (struct value) <parent>: Now a value_ref_ptr.
2896 (value_parent, set_value_parent, value_address, value_copy):
2897 Update.
2898
466ce3ae
TT
28992018-04-06 Tom Tromey <tom@tromey.com>
2900
2901 * value.c (struct value): Add constructor, destructor, and member
2902 initializers.
2903 (allocate_value_lazy, value_decref): Update.
2904
062d818d
TT
29052018-04-06 Tom Tromey <tom@tromey.com>
2906
2907 * value.c (struct value) <released, next>: Remove.
2908 (all_values): Now a std::vector.
2909 (allocate_value_lazy): Update.
2910 (value_next): Remove.
2911 (value_mark, value_free_to_mark, release_value)
2912 (value_release_to_mark): Update.
2913
a6535de1
TT
29142018-04-06 Tom Tromey <tom@tromey.com>
2915
2916 * value.h (fetch_subexp_value, value_release_to_mark): Update.
2917 (free_value_chain): Remove.
2918 * value.c (free_value_chain): Remove.
2919 (value_release_to_mark): Return a std::vector.
2920 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
2921 std::vector.
2922 (check_condition): Update.
2923 * eval.c (fetch_subexp_value): Change "val_chain" to a
2924 std::vector.
2925 * breakpoint.c (update_watchpoint): Update.
2926 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
2927
b5621201
TT
29282018-04-06 Tom Tromey <tom@tromey.com>
2929
2930 * value.h (free_all_values): Remove.
2931 * value.c (free_all_values): Remove.
2932
4d0266a0
TT
29332018-04-06 Tom Tromey <tom@tromey.com>
2934
2935 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
2936 (value_history_chain, value_history_count): Remove.
2937 (value_history): New global.
2938 (record_latest_value, access_value_history, show_values)
2939 (preserve_values): Update.
2940
b4d61099
TT
29412018-04-06 Tom Tromey <tom@tromey.com>
2942
2943 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
2944 * varobj.c (varobj_set_display_format, varobj_set_value)
2945 (install_default_visualizer, construct_visualizer)
2946 (install_new_value, ~varobj, varobj_get_value_type)
2947 (my_value_of_variable, varobj_editable_p): Update.
2948 * c-varobj.c (c_describe_child, c_value_of_variable)
2949 (cplus_number_of_children, cplus_describe_child): Update.
2950 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
2951 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
2952 (ada_value_of_variable, ada_value_is_changeable_p): Update.
2953
9b558729
TT
29542018-04-06 Tom Tromey <tom@tromey.com>
2955
2956 * printcmd.c (last_examine_address): Change type to
2957 value_ref_ptr.
2958 (do_examine, x_command): Update.
2959
850645cf
TT
29602018-04-06 Tom Tromey <tom@tromey.com>
2961
2962 * value.c (release_value): Update.
2963 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
2964 (struct bpstats) <val>: Now a value_ref_ptr.
2965 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
2966 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
2967 (~watchpoint, print_it_watchpoint, watch_command_1)
2968 (invalidate_bp_value_on_memory_change): Update.
2969
22bc8444
TT
29702018-04-06 Tom Tromey <tom@tromey.com>
2971
2972 * varobj.c (varobj_clear_saved_item)
2973 (update_dynamic_varobj_children, install_new_value, ~varobj):
2974 Update.
2975 * value.h (value_incref): Move declaration earlier.
2976 (value_decref): Rename from value_free.
2977 (struct value_ref_policy): New.
2978 (value_ref_ptr): New typedef.
2979 (struct value_deleter): Remove.
2980 (gdb_value_up): Remove typedef.
2981 (release_value): Change return type.
2982 (release_value_or_incref): Remove.
2983 * value.c (set_value_parent): Update.
2984 (value_incref): Change return type.
2985 (value_decref): Rename from value_free.
2986 (value_free_to_mark, free_all_values, free_value_chain): Update.
2987 (release_value): Return value_ref_ptr.
2988 (release_value_or_incref): Remove.
2989 (record_latest_value, set_internalvar, clear_internalvar):
2990 Update.
2991 * stack.c (info_frame_command): Don't call value_free.
2992 * python/py-value.c (valpy_dealloc, valpy_new)
2993 (value_to_value_object): Update.
2994 * printcmd.c (do_examine): Update.
2995 * opencl-lang.c (lval_func_free_closure): Update.
2996 * mi/mi-main.c (register_changed_p): Don't call value_free.
2997 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
2998 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
2999 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
3000 value_free.
3001 * guile/scm-value.c (vlscm_free_value_smob)
3002 (vlscm_scm_from_value): Update.
3003 * frame.c (frame_register_unwind, frame_unwind_register_signed)
3004 (frame_unwind_register_unsigned, get_frame_register_bytes)
3005 (put_frame_register_bytes): Don't call value_free.
3006 * findvar.c (address_from_register): Don't call value_free.
3007 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
3008 * dwarf2loc.c (entry_data_value_free_closure)
3009 (value_of_dwarf_reg_entry, free_pieced_value_closure)
3010 (dwarf2_evaluate_loc_desc_full): Update.
3011 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
3012 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
3013 (~watchpoint, watch_command_1)
3014 (invalidate_bp_value_on_memory_change): Update.
3015 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
3016
7f8a5d38
SM
30172018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
3018
3019 PR gdb/23022
3020 * warning.m4: Add -Wno-error=deprecated-register.
3021 * configure: Re-generate.
3022
8a76bd3b
TT
30232018-04-05 Tom Tromey <tom@tromey.com>
3024
3025 * linespec.h: Remove include of "vec.h".
3026
8e8d776e
TT
30272018-04-05 Tom Tromey <tom@tromey.com>
3028
3029 * linespec.c (typep): Remove typedef.
3030 (find_methods, find_superclass_methods): Take a std::vector.
3031 (find_method): Use std::vector.
3032
9b2f8581
TT
30332018-04-05 Tom Tromey <tom@tromey.com>
3034
3035 * utils.c (compare_strings): Remove.
3036 * utils.h (compare_strings): Remove.
3037 * objc-lang.h (find_imps): Update.
3038 * objc-lang.c (find_methods): Take a std::vector.
3039 (uniquify_strings, find_imps): Likewise.
3040 * linespec.c (find_methods): Take a std::vector.
3041 (decode_objc): Use std::vector.
3042 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
3043 a std::vector.
3044 (find_method, find_function_symbols): Use std::vector.
3045
459a2e4c
TT
30462018-04-05 Tom Tromey <tom@tromey.com>
3047
3048 * completer.c (completion_tracker::completion_tracker): Remove
3049 cast.
3050 (completion_tracker::discard_completions): Likewise.
3051 * breakpoint.c (ambiguous_names_p): Remove cast.
3052 * ada-lang.c (_initialize_ada_language): Remove cast.
3053 * utils.h (streq): Update.
3054 (streq_hash): Add new declaration.
3055 * utils.c (streq): Return bool.
3056 (streq_hash): New function.
3057
9be2c17a
TT
30582018-04-05 Tom Tromey <tom@tromey.com>
3059
3060 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
3061 Remove a string copy.
3062
f73c6ece
TT
30632018-04-05 Tom Tromey <tom@tromey.com>
3064
3065 * linespec.c (filter_results): Use std::vector.
3066 (decode_line_2, decode_line_full): Update.
3067
53a0f8a2
TT
30682018-04-05 Tom Tromey <tom@tromey.com>
3069
3070 * linespec.c (canonical_to_fullform): Return std::string.
3071 (filter_results): Update.
3072 (struct decode_line_2_item): Add constructor.
3073 <fullform, displayform>: Now std::string.
3074 (decode_line_2_compare_items): Now a std::sort comparator.
3075 (decode_line_2): Update.
3076
a5b5adf5
TT
30772018-04-05 Tom Tromey <tom@tromey.com>
3078
3079 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
3080 (unexpected_linespec_error): Update.
3081 (linespec_parse_basic, parse_linespec): Update.
3082
6a307fc5
TT
30832018-04-05 Tom Tromey <tom@tromey.com>
3084
3085 * linespec.c (linespec_parse_basic): Reindent.
3086
41c1efc6
TT
30872018-04-05 Tom Tromey <tom@tromey.com>
3088
3089 * minsyms.h (iterate_over_minimal_symbols): Update.
3090 * minsyms.c (iterate_over_minimal_symbols): Take a
3091 gdb::function_view.
3092 * linespec.c (struct collect_minsyms): Remove.
3093 (compare_msyms): Now a std::sort comparator.
3094 (add_minsym): Add parameters.
3095 (search_minsyms_for_name): Update. Use std::vector.
3096
c5edbf3d
TT
30972018-04-03 Tom Tromey <tom@tromey.com>
3098
3099 * mipsread.c (read_alphacoff_dynamic_symtab): Use
3100 gdb::byte_vector.
3101
b39efc48
WP
31022018-04-02 Weimin Pan <weimin.pan@oracle.com>
3103
3104 * MAINTAINERS (Write After Approval): Add Weimin Pan.
3105
121ad66c 31062018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
3107
3108 PR gdb/16959
3109 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
3110 printing static type.
3111
09473be8
TT
31122018-04-01 Tom Tromey <tom@tromey.com>
3113
3114 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
3115 (rs6000_xfer_shared_libraries): Update.
3116
ec1f2d91
SM
31172018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
3118
3119 * common/gdb_vecs.h (char_ptr): Remove.
3120 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
3121
d8611974
SM
31222018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3123
3124 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
3125 with std::vector.
3126 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
3127
a18ba4e4
SM
31282018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3129
3130 * tracepoint.h (struct uploaded_tp): Initialize fields.
3131 <actions, step_actions, cmd_strings>: Change type to
3132 std::vector<char *>.
3133 * tracepoint.c (get_uploaded_tp): Allocate with new.
3134 (free_uploaded_tps): Free with delete.
3135 (parse_tracepoint_definition): Adjust to std::vector change.
3136 * breakpoint.c (read_uploaded_action): Likewise.
3137 (create_tracepoint_from_upload): Likewise.
3138 * ctf.c (ctf_write_uploaded_tp): Likewise.
3139 (SET_ARRAY_FIELD): Likewise.
3140 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
3141
a7961323
TT
31422018-03-30 Tom Tromey <tom@tromey.com>
3143
3144 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
3145 std::unique_ptr.
3146 (svr4_keep_data_in_core): Update.
3147 (svr4_read_so_list): Update.
3148
e83e4e24
TT
31492018-03-30 Tom Tromey <tom@tromey.com>
3150
3151 * windows-nat.c (handle_output_debug_string, handle_exception):
3152 Update.
3153 * target.h (target_read_string): Update.
3154 * target.c (target_read_string): Change "string" to
3155 unique_xmalloc_ptr.
3156 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3157 Update.
3158 * solib-frv.c (frv_current_sos): Update.
3159 * solib-dsbt.c (dsbt_current_sos): Update.
3160 * solib-darwin.c (darwin_current_sos): Update.
3161 * linux-thread-db.c (inferior_has_bug): Update.
3162 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
3163 Update. Remove alloca.
3164 * ada-lang.c (ada_main_name): Update.
3165
263db9a1
TT
31662018-03-30 Tom Tromey <tom@tromey.com>
3167
3168 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
3169 (struct dwo_file_deleter): New.
3170 (dwo_file_up): New typedef.
3171 (open_and_init_dwo_file): Use dwo_file_up.
3172 (free_dwo_file_cleanup): Remove.
3173
5dafb3d1
TT
31742018-03-30 Tom Tromey <tom@tromey.com>
3175
3176 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
3177 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
3178
11ed8cad
TT
31792018-03-30 Tom Tromey <tom@tromey.com>
3180
3181 * dwarf2read.c (class free_cached_comp_units): New class.
3182 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
3183 (free_cached_comp_units): Remove function.
3184
9ae79dac
TT
31852018-03-30 Tom Tromey <tom@tromey.com>
3186
3187 * utils.h (make_cleanup_unpush_target): Remove.
3188 * inf-ptrace.c (struct target_unpusher): New.
3189 (target_unpush_up) New typedef.
3190 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
3191 target_unpush_up.
3192 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
3193
5aa89276
TT
31942018-03-27 Tom Tromey <tom@tromey.com>
3195
3196 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
3197
1dbeed45
TT
31982018-03-27 Pedro Alves <palves@redhat.com>
3199 Tom Tromey <tom@tromey.com>
3200
3201 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
3202 destructor. Now a class.
3203 (gdb_readline_wrapper_cleanup): Remove function.
3204 (gdb_readline_wrapper): Remove cleanups.
3205
c819b2c0
TT
32062018-03-27 Tom Tromey <tom@tromey.com>
3207
3208 * typeprint.h (struct type_print_options) <local_typedefs,
3209 global_typedefs>: Remove "struct" keyword.
3210 (class typedef_hash_table): New class.
3211 (recursively_update_typedef_hash, add_template_parameters)
3212 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
3213 (find_typedef_in_hash): Don't declare.
3214 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
3215 (typedef_hash_table::recursively_update): Rename from
3216 recursively_update_typedef_hash. Now a member.
3217 (typedef_hash_table::add_template_parameters): Rename from
3218 add_template_parameters. Now a member.
3219 (typedef_hash_table::typedef_hash_table): Now a constructor;
3220 rename from create_typedef_hash.
3221 (typedef_hash_table::~typedef_hash_table): Now a destructor;
3222 rename from free_typedef_hash.
3223 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
3224 (do_free_global_table): Remove.
3225 (typedef_hash_table::typedef_hash_table): New constructor; renamed
3226 from copy_type_recursive.
3227 (create_global_typedef_table): Remove.
3228 (typedef_hash_table::find_global_typedef): Now a member of
3229 typedef_hash_table.
3230 (typedef_hash_table::find_typedef): Rename from
3231 find_typedef_in_hash; now a member.
3232 (whatis_exp): Update.
3233 * extension.h (struct ext_lang_type_printers): Add constructor and
3234 destructor.
3235 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
3236 declare.
3237 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
3238 Now a constructor; rename from start_ext_lang_type_printers.
3239 (ext_lang_type_printers): Now a destructor; rename from
3240 free_ext_lang_type_printers.
3241 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
3242 Update.
3243 (c_type_print_base_struct_union): Update. Remove cleanups.
3244
608219fb
TT
32452018-03-27 Tom Tromey <tom@tromey.com>
3246
3247 * dwarf-index-write.c: Include <cmath>.
3248
3fcded8f
JB
32492018-03-27 Joel Brobecker <brobecker@adacore.com>
3250
3251 * NEWS: Add entry describing new "set|show varsize-limit" command.
3252 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
3253 command.
3254 * printcmd.c (_initialize_printcmd): Add "set var" alias of
3255 "set variable".
3256
cd4fb1b2
SM
32572018-03-27 Simon Marchi <simon.marchi@ericsson.com>
3258
3259 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
3260 dwarf-index-write.c
3261 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
3262 * dwarf-index-common.c: New file.
3263 * dwarf-index-common.h: New file.
3264 * dwarf-index-write.c: New file.
3265 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
3266 (struct dwarf2_section_info): Move from here.
3267 (dwarf2_section_info_def): Likewise.
3268 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
3269 (offset_type): Likewise.
3270 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
3271 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
3272 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
3273 (byte_swap): Likewise.
3274 (MAYBE_SWAP): Likewise.
3275 (dwarf2_per_cu_ptr): Likewise.
3276 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
3277 (struct tu_stats): Likewise.
3278 (struct dwarf2_per_objfile): Likewise.
3279 (struct dwarf2_per_cu_data): Likewise.
3280 (struct signatured_type): Likewise.
3281 (sig_type_ptr): Likewise.
3282 (DEF_VEC_P (sig_type_ptr)): Likewise.
3283 (INDEX4_SUFFIX): Likewise.
3284 (INDEX5_SUFFIX): Likewise.
3285 (DEBUG_STR_SUFFIX): Likewise.
3286 (dwarf2_read_section): Make non-static.
3287 (mapped_index_string_hash): Move from here.
3288 (dwarf5_djb_hash): Likewise.
3289 (file_write): Likewise.
3290 (class data_buf): Likewise.
3291 (struct symtab_index_entry): Likewise.
3292 (struct mapped_symtab): Likewise.
3293 (find_slot): Likewise.
3294 (hash_expand): Likewise.
3295 (add_index_entry): Likewise.
3296 (uniquify_cu_indices): Likewise.
3297 (class c_str_view): Likewise.
3298 (class c_str_view_hasher): Likewise.
3299 (class vector_hasher): Likewise.
3300 (write_hash_table): Likewise.
3301 (psym_index_map): Likewise.
3302 (struct addrmap_index_data): Likewise.
3303 (add_address_entry): Likewise.
3304 (add_address_entry_worker): Likewise.
3305 (write_address_map): Likewise.
3306 (symbol_kind): Likewise.
3307 (write_psymbols): Likewise.
3308 (struct signatured_type_index_data): Likewise.
3309 (write_one_signatured_type): Likewise.
3310 (recursively_count_psymbols): Likewise.
3311 (recursively_write_psymbols): Likewise.
3312 (class debug_names): Likewise.
3313 (check_dwarf64_offsets): Likewise.
3314 (psyms_seen_size): Likewise.
3315 (write_gdbindex): Likewise.
3316 (write_debug_names): Likewise.
3317 (assert_file_size): Likewise.
3318 (write_psymtabs_to_index): Likewise.
3319 (save_gdb_index_command): Likewise.
3320 (_initialize_dwarf2_read): Don't register the "save gdb-index"
3321 command.
3322 * dwarf2read.h: New file.
3323
59cc4834
JB
33242018-03-27 Joel Brobecker <brobecker@adacore.com>
3325
3326 PR gdb/22670
3327 * dwarf2read.c (dwarf2_physname): Do not return the demangled
3328 symbol name if the CU's language stores symbol names in linkage
3329 format.
3330 * language.h (struct language_defn)
3331 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
3332 all instances of this struct.
3333
67501539
TT
33342018-03-26 Tom Tromey <tom@tromey.com>
3335
3336 * stack.c (backtrace_command_1): Remove verbose code.
3337
76c939ac
TT
33382018-03-26 Tom Tromey <tom@tromey.com>
3339
3340 * python/py-framefilter.c (py_print_type): Don't catch
3341 exceptions. Return void.
3342 (py_print_value): Likewise.
3343 (py_print_single_arg): Likewise.
3344 (enumerate_args): Don't catch exceptions.
3345 (py_print_args): Likewise.
3346 (py_print_frame): Likewise.
3347 (gdbpy_apply_frame_filter): Catch exceptions here.
3348
9507b29c
TT
33492018-03-26 Tom Tromey <tom@tromey.com>
3350
3351 * stack.c (_initialize_stack): Remove trailing newlines from help
3352 text. Add "Usage" line to "backtrace" help.
3353
eb68e487
TT
33542018-03-26 Tom Tromey <tom@tromey.com>
3355
3356 PR python/16486:
3357 * python/py-framefilter.c (py_print_args): Call wrap_hint.
3358
1f111921
TT
33592018-03-26 Tom Tromey <tom@tromey.com>
3360
3361 * python/py-framefilter.c (py_print_single_arg): Return
3362 EXT_LANG_BT_ERROR from catch.
3363
fb7eb8b5
TT
33642018-03-26 Tom Tromey <tom@tromey.com>
3365
3366 PR backtrace/15584:
3367 * stack.c (backtrace_command_1): Move some code into no-filters
3368 "if".
3369
4ca59a9f
TT
33702018-03-26 Tom Tromey <tom@tromey.com>
3371
3372 * python/py-framefilter.c (throw_quit_or_print_exception): New
3373 function.
3374 (gdbpy_apply_frame_filter): Use it.
3375
92256134
TT
33762018-03-26 Tom Tromey <tom@tromey.com>
3377
3378 PR cli/17716:
3379 * python/py-framefilter.c (py_print_type, py_print_value)
3380 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
3381 RETURN_MASK_ERROR.
3382
7a630bc2
TT
33832018-03-26 Tom Tromey <tom@tromey.com>
3384
3385 * python/py-framefilter.c (enumerate_args): Use
3386 gdb::unique_xmalloc_ptr.
3387
63283d4a
TT
33882018-03-26 Tom Tromey <tom@tromey.com>
3389
3390 * python/py-framefilter.c (py_print_frame): Return
3391 EXT_LANG_BT_OK.
3392 (gdbpy_apply_frame_filter): Update comment.
3393 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
3394 Remove.
3395 <EXT_LANG_BT_NO_FILTERS>: Change value.
3396
978d6c75
TT
33972018-03-26 Tom Tromey <tom@tromey.com>
3398
3399 PR backtrace/15582:
3400 * stack.c (backtrace_command): Parse "hide" argument.
3401 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
3402 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
3403 constant.
3404
1cf7e640
TT
34052018-03-26 Tom Tromey <tom@tromey.com>
3406
3407 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
3408 add "flags".
3409 (backtrace_command): Remove "fulltrace", add "flags".
3410
ea3b0687
TT
34112018-03-26 Tom Tromey <tom@tromey.com>
3412
3413 * stack.c (backtrace_command): Rewrite command line parsing.
3414
9f034d75
SM
34152018-03-26 Simon Marchi <simon.marchi@ericsson.com>
3416
3417 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
3418
ce1459e5
SM
34192018-03-26 Simon Marchi <simon.marchi@ericsson.com>
3420
3421 * filename-seen-cache.h: Add include guard.
3422
4f7ae6f5
KS
34232018-03-26 Keith Seitz <keiths@redhat.com>
3424
3425 * symfile.c (place_section): Remove "struct" from section_addr_info
3426 in comment.
3427 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
3428 "struct" keyword from section_addr_info.
3429
5cd3e386
AH
34302018-03-26 Alan Hayward <alan.hayward@arm.com>
3431
3432 * regformats/regdef.h (reg): Add constructors.
3433
3e5ef9a4
PA
34342018-03-25 Pedro Alves <palves@redhat.com>
3435
3436 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
3437 if then/else bodies in var_func_name extraction.
3438
c88d2fcc 34392018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
3440
3441 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
3442 lookup_minimal_symbol() to find symbol entry.
3443 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
3444
b7fee5a3
KS
34452018-03-23 Keith Seitz <keiths@redhat.com>
3446
3447 PR c++/22968
3448 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
3449 nested type definitions for C++, too.
3450
2cc9b304
TT
34512018-03-23 Tom Tromey <tom@tromey.com>
3452
3453 * machoread.c (struct oso_el): Add a constructor. Don't define as
3454 a typedef.
3455 (macho_register_oso): Remove.
3456 (macho_symtab_read): Take a std::vector.
3457 (oso_el_compare_name): Now a std::sort comparator.
3458 (macho_symfile_read_all_oso): Take a std::vector.
3459 (macho_symfile_read): Use std::vector. Remove cleanups.
3460
a2b2bc12
TT
34612018-03-22 Tom Tromey <tom@tromey.com>
3462
3463 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
3464 (record_full_goto_bookmark): Use std::string.
3465
7a8f494c
PFC
34662018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3467
3468 PR tdep/18295
3469 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
3470 a single mask.
3471
dd6d677f
PFC
34722018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3473
3474 * rs6000-tdep.c (store_insn_p): New function.
3475 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
3476 and cr_reg to their unshifted values. Use store_insn_p to
3477 match LR saves using either R1 or fdata->alloca_reg. Use
3478 store_insn_p to match CR saves. Set alloca_reg_offset
3479 when alloca_reg and framep are set. Remove lr_reg shift
3480 when assigning to fdata->lr_register.
3481
26d6cec4
AA
34822018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3483
3484 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
3485 command line args instead of emitting a warning.
3486
5d9310c4
SM
34872018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
3488
3489 * tracepoint.h (struct static_tracepoint_marker): Initialize
3490 fields, define default constructor, move constructor and move
3491 assignment, disable the rest.
3492 <str_id, extra>: Make std::string.
3493 (release_static_tracepoint_marker): Remove.
3494 (free_current_marker): Remove.
3495 * tracepoint.c (free_current_marker): Remove.
3496 (parse_static_tracepoint_marker_definition): Adjust to
3497 std::string, use new hex2str overload.
3498 (release_static_tracepoint_marker): Remove.
3499 (print_one_static_tracepoint_marker): Get marker by reference
3500 and adjust to std::string.
3501 (info_static_tracepoint_markers_command): Adjust to std::vector
3502 changes
3503 * target.h (static_tracepoint_marker_p): Remove typedef.
3504 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
3505 (struct target_ops) <to_static_tracepoint_marker_at>: Return
3506 bool.
3507 <to_static_tracepoint_markers_by_strid>: Return std::vector.
3508 * target-debug.h
3509 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
3510 (target_debug_print_std_vector_static_tracepoint_marker): New.
3511 (target_debug_print_struct_static_tracepoint_marker_p): Rename
3512 to...
3513 (target_debug_print_static_tracepoint_marker_p): ... this.
3514 * target-delegates.c: Re-generate.
3515 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
3516 Make std::string.
3517 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
3518 (decode_static_tracepoint_spec): Adjust to std::vector.
3519 (tracepoint_print_one_detail): Adjust to std::string.
3520 (strace_marker_decode_location): Adjust to std::string.
3521 (update_static_tracepoint): Adjust to std::string, remove call
3522 to release_static_tracepoint_marker.
3523 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3524 Adjust to std::vector.
3525 * remote.c (remote_static_tracepoint_marker_at): Return bool.
3526 (remote_static_tracepoint_markers_by_strid): Adjust to
3527 std::vector.
3528 * common/rsp-low.h (hex2str): New overload with explicit count
3529 of bytes.
3530 * common/rsp-low.c (hex2str): New overload with explicit count
3531 of bytes.
3532 * unittests/rsp-low-selftests.c (test_hex2str): New function.
3533 (_initialize_rsp_low_selftests): Add test_hex2str test.
3534 * unittests/tracepoint-selftests.c
3535 (test_parse_static_tracepoint_marker_definition): Adjust to
3536 std::string.
3537
62c222b6
SM
35382018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
3539
3540 * tracepoint.c (parse_static_tracepoint_marker_definition):
3541 Consider case where the definition is followed by more
3542 definitions.
3543 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3544 tracepoint-selftests.c.
3545 * unittests/tracepoint-selftests.c: New.
3546
7eb2418f
PFC
35472018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3548
3549 * MAINTAINERS (Write After Approval): Add Pedro Franco de
3550 Carvalho.
3551
7cbe16e9
SR
35522018-03-20 Stephen Roberts <stephen.roberts@arm.com>
3553
3d6b3b82 3554 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 3555
4ee89e90
SR
35562018-03-20 Stephen Roberts <stephen.roberts@arm.com>
3557
3d6b3b82 3558 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 3559
92630041
TT
35602018-03-19 Tom Tromey <tom@tromey.com>
3561
3562 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
3563 "IDENT" production.
3564
76727919
TT
35652018-03-19 Pedro Alves <palves@redhat.com>
3566 Tom Tromey <tom@tromey.com>
3567
3568 * unittests/observable-selftests.c: New file.
3569 * common/observable.h: New file.
3570 * observable.h: New file.
3571 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
3572 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
3573 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
3574 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
3575 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
3576 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
3577 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
3578 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
3579 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
3580 python/py-breakpoint.c, python/py-finishbreakpoint.c,
3581 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
3582 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
3583 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
3584 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
3585 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
3586 tui/tui-interp.c, valops.c: Update all users.
3587 * tui/tui-hooks.c (tui_bp_created_observer)
3588 (tui_bp_deleted_observer, tui_bp_modified_observer)
3589 (tui_inferior_exit_observer, tui_before_prompt_observer)
3590 (tui_normal_stop_observer, tui_register_changed_observer):
3591 Remove.
3592 (tui_observers_token): New global.
3593 (attach_or_detach, tui_attach_detach_observers): New functions.
3594 (tui_install_hooks, tui_remove_hooks): Use
3595 tui_attach_detach_observers.
3596 * record-btrace.c (record_btrace_thread_observer): Remove.
3597 (record_btrace_thread_observer_token): New global.
3598 * observer.sh: Remove.
3599 * observer.c: Rename to observable.c.
3600 * observable.c (namespace gdb_observers): Define new objects.
3601 (observer_debug): Move into gdb_observers namespace.
3602 (struct observer, struct observer_list, xalloc_observer_list_node)
3603 (xfree_observer_list_node, generic_observer_attach)
3604 (generic_observer_detach, generic_observer_notify): Remove.
3605 (_initialize_observer): Update.
3606 Don't include observer.inc.
3607 * Makefile.in (generated_files): Remove observer.h, observer.inc.
3608 (clean mostlyclean): Likewise.
3609 (observer.h, observer.inc): Remove targets.
3610 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
3611 (COMMON_SFILES): Use observable.c, not observer.c.
3612 * .gitignore: Remove observer.h.
3613
1cb1f3da
TT
36142018-03-18 Tom Tromey <tom@tromey.com>
3615
3616 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
3617 gdb::def_vector.
3618 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
3619
a06ab151
TT
36202018-03-17 Tom Tromey <tom@tromey.com>
3621
3622 * auto-load.c (auto_load_objfile_script_1): Use std::string.
3623
770623f7
TT
36242018-03-17 Tom Tromey <tom@tromey.com>
3625
3626 * target.c (class scoped_target_fd): New.
3627 (target_fileio_close_cleanup): Remove.
3628 (target_fileio_read_alloc_1): Use scoped_target_fd.
3629
39be3c7e
SM
36302018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3631
3632 * silent-rules.mk: New.
3633 * Makefile.in: Include silent-rules.mk
3634 (srcdir, VPATH, top_srcdir): Move up.
3635 (COMPILE): Add ECHO_CXX.
3636 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
3637 (init.c): Add ECHO_INIT_C.
3638 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3639 (version.c): Add ECHO_GEN.
3640 (printcmd.o): Add ECHO_CXX.
3641 (target-float.o): Add ECHO_CXX.
3642 (ada-exp.o): Add ECHO_CXX.
3643 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
3644 (insight$(EXEEXT)): Add ECHO_CXXLD.
3645 * gnulib/configure.ac: Add AM_SILENT_RULES.
3646 * gnulib/aclocal.m4: Re-generate.
3647 * gnulib/configure: Re-generate.
3648 * gnulib/import/Makefile.in: Re-generate.
3649
37e136b1
TT
36502018-03-16 Tom Tromey <tom@tromey.com>
3651
3652 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
3653 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
3654 * utils.c (do_free_section_addr_info)
3655 (make_cleanup_free_section_addr_info): Remove.
3656 * symfile.h (struct other_sections): Add constructor.
3657 (struct section_addr_info): Remove.
3658 (section_addr_info): New typedef.
3659 (struct sym_fns) <sym_offsets>: Change type of parameter.
3660 (build_section_addr_info_from_objfile)
3661 (relative_addr_info_to_section_offsets, addr_info_make_relative)
3662 (default_symfile_offsets, symbol_file_add)
3663 (symbol_file_add_from_bfd)
3664 (build_section_addr_info_from_section_table): Update.
3665 (alloc_section_addr_info, free_section_addr_info): Don't declare.
3666 * symfile.c (alloc_section_addr_info): Remove.
3667 (build_section_addr_info_from_section_table): Change return type.
3668 Update.
3669 (build_section_addr_info_from_bfd)
3670 (build_section_addr_info_from_objfile): Likewise.
3671 (free_section_addr_info): Remove.
3672 (relative_addr_info_to_section_offsets): Change type of "addrs".
3673 (addrs_section_compar): Now a std::sort comparator.
3674 (addrs_section_sort): Change return type.
3675 (addr_info_make_relative): Change type of "addrs". Update.
3676 (default_symfile_offsets, syms_from_objfile_1)
3677 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
3678 (symbol_file_add_separate): Update.
3679 (symbol_file_add): Change type of "addrs". Update.
3680 (add_symbol_file_command): Update. Remove cleanups.
3681 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
3682 cleanups.
3683 * symfile-debug.c (debug_sym_offsets): Change type of "info".
3684 * solib.c (solib_read_symbols): Update.
3685 * objfiles.c (objfile_relocate): Update. Remove cleanups.
3686 * machoread.c (macho_symfile_offsets): Update.
3687 * jit.c (jit_bfd_try_read_symtab): Update.
3688
03afa6ef
SM
36892018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3690
3691 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3692 unittests/utils-selftests.c.
3693 * unittests/utils-selftests.c: New file.
3694
3ae9ce5d
TT
36952018-03-14 Tom Tromey <tom@tromey.com>
3696
3697 PR cli/14977:
3698 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
3699 for NULL.
3700
b8c2339b
TT
37012018-03-14 Tom Tromey <tom@tromey.com>
3702
3703 PR cli/19918:
3704 * printcmd.c (printf_pointer): Allow "-" in format.
3705
80ae639d
TT
37062018-03-14 Tom Tromey <tom@tromey.com>
3707
3708 * printcmd.c (_initialize_printcmd): Add usage to printf.
3709
0d671d99
YQ
37102018-03-14 Yao Qi <qiyao@sourceware.org>
3711
3712 * MAINTAINERS: Update my email address.
3713
b577b6af
TT
37142018-03-13 Tom Tromey <tom@tromey.com>
3715
3716 * machoread.c (macho_check_dsym): Change filenamep to a
3717 std::string*.
3718 (macho_symfile_read): Update.
3719 * symfile.c (load_command): Use std::string.
3720
89a3b63e
AB
37212018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
3722
3723 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
3724 to error message string.
3725 (riscv_register_name): Use xsnprintf instead of sprintf.
3726 (riscv_insn::fetch_instruction): Use gdb_assert instead of
3727 internal_error.
3728 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
3729 error.
3730 (riscv_push_dummy_call): Likewise.
3731
984c7238
TT
37322018-03-12 Tom Tromey <tom@tromey.com>
3733
3734 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
3735 Use gdb::byte_vector.
3736 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
3737
933522d1
YQ
37382018-03-12 Yao Qi <yao.qi@linaro.org>
3739
3740 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
3741 parameter type to readable_regcache.
3742 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
3743 the declaration.
3744
be2daae6
TT
37452018-03-11 Tom Tromey <tom@tromey.com>
3746
3747 * dwarf2read.c (struct nextfield): Add initializers.
3748 (struct nextfnfield): Remove.
3749 (struct fnfieldlist): Add initializers. Remove "length" and
3750 "head", use std::vector.
3751 (struct decl_field_list): Remove.
3752 (struct field_info): Add initializers.
3753 <fields, baseclasses>: Now std::vector.
3754 <nbaseclasses, nfnfields, typedef_field_list_count,
3755 nested_types_list_count>: Remove.
3756 (dwarf2_add_field, dwarf2_add_type_defn)
3757 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
3758 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
3759 (process_structure_scope): Update.
3760
484cf504
TT
37612018-03-11 Tom Tromey <tom@tromey.com>
3762
3763 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
3764 for use by std::sort.
3765 (build_type_psymtabs_1): Use std::vector.
3766
9bd8e0b0
EZ
37672018-03-09 Eli Zaretskii <eliz@gnu.org>
3768
3769 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
3770 and LIBMPFR in the printed configuration.
3771
5dc1a704
TT
37722018-03-08 Tom Tromey <tom@tromey.com>
3773
3774 * source.c (get_filename_and_charpos): Use scoped_fd.
3775 * nto-procfs.c (procfs_open_1): Use scoped_fd.
3776 (procfs_pidlist): Likewise.
3777 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
3778 (iterate_over_mappings): Likewise.
3779
fdf07f3a
TT
37802018-03-08 Tom Tromey <tom@tromey.com>
3781
3782 * infcall.c (struct call_return_meta_info)
3783 <stack_temporaries_enabled>: Remove.
3784 (get_call_return_value, call_function_by_hand_dummy): Update.
3785 * thread.c (disable_thread_stack_temporaries): Remove.
3786 (enable_thread_stack_temporaries): Remove.
3787 (thread_stack_temporaries_enabled_p): Return bool.
3788 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
3789 (get_last_thread_stack_temporary): Update.
3790 * eval.c (evaluate_subexp): Update.
3791 * gdbthread.h (class enable_thread_stack_temporaries): Now a
3792 class, not a function.
3793 (value_ptr, value_vec): Remove typedefs.
3794 (class thread_info) <stack_temporaries_enabled>: Now bool.
3795 <stack_temporaries>: Now a std::vector.
3796 (thread_stack_temporaries_enabled_p)
3797 (value_in_thread_stack_temporaries): Return bool.
3798
567a3e54
SM
37992018-03-08 Simon Marchi <simon.marchi@ericsson.com>
3800
3801 * remote.c (putpkt_binary): Fix omitted bytes reporting.
3802 (getpkt_or_notif_sane_1): Likewise.
3803
00b40057
SM
38042018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3805
3806 * build-id.c (build_id_to_debug_bfd): Use std::string.
3807
a8dbfd58
SM
38082018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3809
3810 * build-id.c (find_separate_debug_file_by_buildid): Return
3811 std::string.
3812 * build-id.h (find_separate_debug_file_by_buildid): Return
3813 std::string.
3814 * coffread.c (coff_symfile_read): Adjust to std::string.
3815 * elfread.c (elf_symfile_read): Adjust to std::string.
3816 * symfile.c (separate_debug_file_exists): Change parameter to
3817 std::string.
3818 (find_separate_debug_file): Return std::string.
3819 (find_separate_debug_file_by_debuglink): Return std::string.
3820 * symfile.h (find_separate_debug_file_by_debuglink): Return
3821 std::string.
3822
e6a58aa8
SM
38232018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3824
3825 * common/xml-utils.c (xml_escape_text): Move code to...
3826 (xml_escape_text_append): ... this new function.
3827 * common/xml-utils.h (xml_escape_text_append): New declaration.
3828 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
3829 New function.
3830 (_initialize_xml_utils): register test_xml_escape_text_append as
3831 a selftest.
3832
4ef0bef6
AH
38332018-03-07 Alan Hayward <alan.hayward@arm.com>
3834
3835 * defs.h: Remove MAX_REGISTER_SIZE.
3836 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
3837 asserts.
3838 * python/py-unwind.c (pyuw_sniffer): Likewise.
3839
e0d3522b
TT
38402018-03-07 Tom Tromey <tom@tromey.com>
3841
3842 * linux-tdep.c (linux_info_proc): Update.
3843 * target.h (struct target_ops) <to_fileio_readlink>: Return
3844 optional<string>.
3845 (target_fileio_readlink): Return optional<string>.
3846 * remote.c (remote_hostio_readlink): Return optional<string>.
3847 * inf-child.c (inf_child_fileio_readlink): Return
3848 optional<string>.
3849 * target.c (target_fileio_readlink): Return optional<string>.
3850
ea005f31
AB
38512018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3852
3853 * regcache.c (cooked_read_test): Add riscv to the list of
3854 architectures that have a save_reggroup.
3855
e95a97d4
AA
38562018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3857
3858 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
3859 value is not a dynamic class object.
3860
d8344f3d
TT
38612018-03-06 Tom Tromey <tom@tromey.com>
3862
3863 * rust-exp.y: Formatting fixes.
3864
9add17f2
AB
38652018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3866
3867 * riscv-tdep.c (riscv_register_name): Remove target description
3868 support.
3869 (riscv_gdbarch_init): Remove target description check.
3870
c9486dfe
AB
38712018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3872
3873 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
3874 comment.
3875 * riscv-tdep.h: Likewise.
3876
d74aff3d
AB
38772018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3878
3879 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
3880 (riscv_pseudo_register_write): Delete.
3881 (riscv_gdbarch_init): Remove all use of pseudo registers.
3882
7ea78b59
SM
38832018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3884
3885 * record-btrace.c (btrace_print_lines): Replace cleanup
3886 parameter with RAII equivalents.
3887 (btrace_insn_history): Replace cleanup with RAII equivalents.
3888 * ui-out.h (make_cleanup_ui_out_list_begin_end,
3889 make_cleanup_ui_out_tuple_begin_end): Remove.
3890 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
3891 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
3892 make_cleanup_ui_out_list_begin_end): Remove.
3893
53127008
SM
38942018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3895
3896 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
3897 parameter types to std::vector. Use bool.
3898 (record_btrace_wait): Replace VEC(tp_t) with
3899 std::vector<thread_info *>.
3900 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
3901
228f1508
SM
39022018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3903
3904 * record-btrace.c (record_btrace_disable_callback): Remove.
3905 (struct scoped_btrace_disable): New.
3906 (record_btrace_open): Use scoped_btrace_disable.
3907
b2970c23
AB
39082018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3909
3910 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
3911 reading values from registers.
3912
fb294655
AB
39132018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3914
3915 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
3916 where appropriate.
3917
cab5bb9d
AB
39182018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3919
3920 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
3921 change parameter type. Use GDB's print functions, and use
3922 core_addr_to_string where appropriate.
3923 (riscv_push_dummy_call): Use core_addr_to_string where
3924 appropriate, update call to riscv_print_arg_location, and reindent
3925 a few lines.
3926 (riscv_return_value): Update call to riscv_print_arg_location.
3927
dbbb1059
AB
39282018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3929 Tim Newsome <tim@sifive.com>
3930 Albert Ou <a0u@eecs.berkeley.edu>
3931 Darius Rad <darius@bluespec.com>
3932
3933 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
3934 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
3935 (ALLDEPFILES): Add riscv-tdep.c
3936 * configure.tgt: Add riscv support.
3937 * riscv-tdep.c: New file.
3938 * riscv-tdep.h: New file.
3939 * NEWS: Mention new target.
3940 * MAINTAINERS: Add entry for riscv.
3941
5dc43913
AB
39422018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3943
3944 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
3945 fields within aggregates.
3946
3dea1ef7
SM
39472018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * record-btrace.c (btrace_print_lines): Change type of flags to
3950 gdb_disassembly_flags.
3951
7efba073
JB
39522018-03-04 John Baldwin <jhb@FreeBSD.org>
3953
3954 * fbsd-nat.c: Include "inf-ptrace.h".
3955 (USE_SIGTRAP_SIGINFO): Conditionally define.
3956 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
3957 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
3958 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
3959 function.
3960 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
3961 Likewise.
3962 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
3963 Likewise.
3964 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
3965 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
3966 "supports_stopped_by_hw_breakpoint" target methods.
3967
386a8676
JB
39682018-03-04 John Baldwin <jhb@FreeBSD.org>
3969
3970 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
3971 * fbsd-nat.c (debug_fbsd_nat): New variable.
3972 (show_fbsd_nat_debug): New function.
3973 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
3974 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
3975
12279366
JB
39762018-03-04 John Baldwin <jhb@FreeBSD.org>
3977
3978 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
3979 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
3980 prototype.
3981 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
3982 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
3983 method.
3984
54693cf5
SM
39852018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3986
3987 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
3988 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
3989
ccb2231c
SM
39902018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3991
3992 * charset.c (struct charset_vector): New.
3993 (charsets): Change type to charset_vector.
3994 (find_charset_names): Adjust.
3995 (add_one): Adjust.
3996 (_initialize_charset): Adjust.
3997
6fb16ce6
SM
39982018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3999
4000 * progspace.h (struct program_space) <deleted_solibs>: Change
4001 type to std::vector<std::string>.
4002 * progspace.c (clear_program_space_solib_cache): Adjust.
4003 * breakpoint.c (print_solib_event): Adjust.
4004 (check_status_catch_solib): Adjust.
4005 * solib.c (update_solib_list): Adjust.
4006 * ui-out.h (class ui_out) <field_string>: New overload.
4007 * ui-out.c (ui_out::field_string): New overload.
4008
564b1e3f
SM
40092018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4010
4011 * progspace.h (struct program_space): Add constructor and
4012 destructor, initialize fields.
4013 (add_program_space): Remove.
4014 * progspace.c (add_program_space): Rename to...
4015 (program_space::program_space): ... this.
4016 (release_program_space): Rename to...
4017 (program_space::~program_space): ... this.
4018 (delete_program_space): Use delete to delete program_space.
4019 (initialize_progspace): Use new to allocate program_space.
4020 * inferior.c (add_inferior_with_spaces): Likewise.
4021 (clone_inferior_command): Likewise.
4022 * infrun.c (follow_fork_inferior): Likewise.
4023 (handle_vfork_child_exec_or_exit): Likewise.
4024
e80aaf61
SM
40252018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4026
4027 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
4028 (delim_string_to_char_ptr_vec): Return std::vector of
4029 gdb::unique_xmalloc_ptr.
4030 (dirnames_to_char_ptr_vec_append): Take std::vector of
4031 gdb::unique_xmalloc_ptr.
4032 (dirnames_to_char_ptr_vec): Return std::vector of
4033 gdb::unique_xmalloc_ptr.
4034 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
4035 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
4036 (delim_string_to_char_ptr_vec): Return an std::vector of
4037 gdb::unique_xmalloc_ptr, adjust the code.
4038 (dirnames_to_char_ptr_vec_append): Take an std::vector of
4039 gdb::unique_xmalloc_ptr, adjust the code.
4040 (dirnames_to_char_ptr_vec): Return an std::vector of
4041 gdb::unique_xmalloc_ptr, adjust the code.
4042 * auto-load.c (auto_load_safe_path_vec): Change type to
4043 std::vector of gdb::unique_xmalloc_ptr.
4044 (auto_load_expand_dir_vars): Return an std::vector of
4045 gdb::unique_xmalloc_ptr, adjust the code.
4046 (auto_load_safe_path_vec_update): Adjust.
4047 (filename_is_in_auto_load_safe_path_vec): Adjust.
4048 (auto_load_objfile_script_1): Adjust.
4049 * build-id.c (build_id_to_debug_bfd): Adjust.
4050 * linux-thread-db.c (thread_db_load_search): Adjust.
4051 * source.c (add_path): Adjust.
4052 (openp): Adjust.
4053 * symfile.c (find_separate_debug_file): Adjust.
4054 * utils.c (do_free_char_ptr_vec): Remove.
4055 (make_cleanup_free_char_ptr_vec): Remove.
4056
ab818ade
SDJ
40572018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
4058
4059 PR gdb/22907
4060 * common/pathstuff.c: Conditionally include "<windows.h>".
4061
e1e6f073
GS
40622018-03-01 Georg Sauthoff <mail@georg.so>
4063
4064 PR gdb/22888
4065 * gcore.in: Quote variables and switch interpreter to bash.
4066
c7b15a66
TT
40672018-03-01 Tom Tromey <tom@tromey.com>
4068
4069 * dwarf2read.c (alloc_discriminant_info): Fix default_index
4070 assertion. Add assertion for discriminant_index.
4071 (quirk_rust_enum): Use correct base type name in univariant case.
4072
0cb7c7b0
SM
40732018-03-01 Simon Marchi <simon.marchi@ericsson.com>
4074
4075 * record.c (get_call_history_modifiers): Return a
4076 record_print_flags.
4077 (cmd_record_call_history): Adjust.
4078 * record-btrace.c (record_btrace_call_history): Adjust.
4079 (record_btrace_call_history_range): Adjust.
4080 (record_btrace_call_history_from): Adjust.
4081 * target-debug.h (target_debug_print_record_print_flags): New.
4082 * target-delegates.c: Re-generate.
4083 * target.c (target_call_history): Change flags type.
4084 (target_call_history_from): Likewise.
4085 (target_call_history_range): Likewise.
4086 * target.h (struct target_ops) <target_call_history>: Likewise.
4087 (target_call_history_from): Likewise.
4088 (target_call_history_range): Likewise.
4089
25e3c82c
SDJ
40902018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4091 Simon Marchi <simon.marchi@polymtl.ca>
4092
4093 * common/common-utils.c: Include "sys/stat.h".
4094 (is_regular_file): Move here from "source.c"; change return
4095 type to "bool".
4096 * common/common-utils.h (is_regular_file): New prototype.
4097 * common/pathstuff.c (contains_dir_separator): New function.
4098 * common/pathstuff.h (contains_dir_separator): New prototype.
4099 * source.c: Don't include "sys/stat.h".
4100 (is_regular_file): Move to "common/common-utils.c".
4101
b4987c95
SDJ
41022018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4103
4104 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
4105 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
4106 * auto-load.c: Include "common/pathstuff.h".
4107 * common/common-def.h (current_directory): Move here.
4108 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
4109 function.
4110 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
4111 prototype.
4112 * common/pathstuff.c: New file.
4113 * common/pathstuff.h: New file.
4114 * compile/compile.c: Include "common/pathstuff.h".
4115 * defs.h (current_directory): Move to "common/common-defs.h".
4116 * dwarf2read.c: Include "common/pathstuff.h".
4117 * exec.c: Likewise.
4118 * guile/scm-safe-call.c: Likewise.
4119 * linux-thread-db.c: Likewise.
4120 * main.c: Likewise.
4121 * nto-tdep.c: Likewise.
4122 * objfiles.c: Likewise.
4123 * source.c: Likewise.
4124 * symtab.c: Likewise.
4125 * utils.c: Include "common/pathstuff.h".
4126 (gdb_realpath): Move to "common/pathstuff.c".
4127 (gdb_realpath_keepfile): Likewise.
4128 (gdb_abspath): Likewise.
4129 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
4130 (gdb_realpath_keepfile): Likewise.
4131 (gdb_abspath): Likewise.
4132
f169cfdc
JB
41332018-02-28 John Baldwin <jhb@FreeBSD.org>
4134
4135 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
4136 wildcard process pid for super_resume for kernels with a
4137 specific bug.
4138
e05cac70
PM
41392018-02-27 Phil Muldoon <pmuldoon@redhat.com>
4140
4141 * compile/compile.c (get_args): Add additional comments
4142 explaining function.
4143
55089490
TT
41442018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
4145 Tom Tromey <tom@tromey.com>
4146
4147 * target.h (memory_write_request_s): Remove typedef. Don't define
4148 VEC.
4149 (target_write_memory_blocks): Change argument to std::vector.
4150 (struct memory_write_request): Add constructor.
4151 * target-memory.c (compare_block_starting_address): Return bool.
4152 Change argument types.
4153 (claim_memory): Change arguments to use std::vector.
4154 (split_regular_and_flash_blocks, blocks_to_erase)
4155 (compute_garbled_blocks): Likewise.
4156 (cleanup_request_data, cleanup_write_requests_vector): Remove.
4157 (target_write_memory_blocks): Change argument to std::vector.
4158 * symfile.c (struct load_section_data): Add constructor and
4159 destructor. Use std::vector for "requests".
4160 (struct load_progress_data): Add initializers.
4161 (load_section_callback): Update. Use "new".
4162 (clear_memory_write_data): Remove.
4163 (generic_load): Update.
4164
0c305b61
AH
41652018-02-27 Alan Hayward <alan.hayward@arm.com>
4166
4167 * arch/aarch64.h: Use common/tdesc.h.
4168
c5196c92
MR
41692018-02-26 Maciej W. Rozycki <macro@mips.com>
4170
4171 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
4172 architecture with a 64-bit ABI.
4173
37c33887
MR
41742018-02-26 Maciej W. Rozycki <macro@mips.com>
4175
4176 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
4177 ahead of target description loading.
4178
d4dd3282
TT
41792018-02-26 Tom Tromey <tom@tromey.com>
4180
4181 * stack.c (backtrace_command_1): Update.
4182 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
4183 of "flags".
4184 * python/py-framefilter.c (py_print_frame)
4185 (gdbpy_apply_frame_filter): Change type of "flags".
4186 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
4187 of "flags".
4188 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
4189 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
4190 * extension.h (enum frame_filter_flag): Rename from
4191 frame_filter_flags.
4192 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
4193 (apply_ext_lang_frame_filter): Change type of "flags".
4194 * extension.c (apply_ext_lang_frame_filter): Change type of
4195 "flags".
4196 * extension-priv.h (struct extension_language_ops)
4197 <apply_frame_filter>: Change type of "flags".
4198
6893c19a
TT
41992018-02-26 Tom Tromey <tom@tromey.com>
4200
4201 PR python/16497:
4202 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
4203 off-by-one in py_end computation.
4204 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
4205 PRINT_MORE_FRAMES.
4206 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
4207 constant.
4208
2ddeaf8a
TT
42092018-02-26 Tom Tromey <tom@tromey.com>
4210
4211 * dwarf2read.c (struct variant_field): New.
4212 (struct nextfield) <variant>: New field.
4213 (dwarf2_add_field): Handle DW_TAG_variant_part.
4214 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
4215 discriminated union.
4216 (read_structure_type): Handle DW_TAG_variant_part.
4217 (handle_struct_member_die): New function, extracted from
4218 process_structure_scope. Handle DW_TAG_variant.
4219 (process_structure_scope): Handle discriminated unions. Call
4220 handle_struct_member_die.
4221
c9317f21
TT
42222018-02-26 Tom Tromey <tom@tromey.com>
4223
4224 * rust-lang.h (rust_last_path_segment): Declare.
4225 * rust-lang.c (rust_last_path_segment): Now public. Change
4226 contract.
4227 (struct disr_info): Remove.
4228 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
4229 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
4230 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
4231 (rust_enum_p, rust_enum_variant): New function.
4232 (rust_underscore_fields): Remove "offset" parameter.
4233 (rust_print_enum): New function.
4234 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
4235 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
4236 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
4237 enums.
4238 (rust_internal_print_type): New function, from rust_print_type.
4239 Remove enum code.
4240 (rust_print_type): Call rust_internal_print_type.
4241 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
4242 Update enum handling.
4243 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
4244 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
4245 (rust_union_quirks): New functions.
4246 (process_full_comp_unit, process_full_type_unit): Call
4247 rust_union_quirks.
4248 (process_structure_scope): Update rust_unions if necessary.
4249
7c22600a
TT
42502018-02-26 Tom Tromey <tom@tromey.com>
4251
4252 * value.h (value_union_variant): Declare.
4253 * valops.c (value_union_variant): New function.
4254 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
4255 (struct discriminant_info): New.
4256 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
4257 enumerator.
4258 (struct main_type) <flag_discriminated_union>: New field.
4259
15ce8941
TT
42602018-02-26 Tom Tromey <tom@tromey.com>
4261
4262 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4263 unittests/unpack-selftests.c.
4264 * unittests/unpack-selftests.c: New file.
4265 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
4266
48fbe735
YQ
42672018-02-26 Yao Qi <yao.qi@linaro.org>
4268
4269 * dwarf2read.c (struct partial_die_info) <read>: New method.
4270 (read_partial_die): Remove the declaration.
4271 (load_partial_dies): Update.
4272 (partial_die_info::partial_die_info):
4273 (read_partial_die): Change it to partial_die_info::read.
4274
52356b79
YQ
42752018-02-26 Yao Qi <yao.qi@linaro.org>
4276
4277 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
4278 (fixup_partial_die): Remove declaration.
4279 (scan_partial_symbols): Update.
4280 (partial_die_parent_scope): Likewise.
4281 (partial_die_full_name): Likewise.
4282 (fixup_partial_die): Change it to partial_die_info::fixup.
4283
35cc7ed7
YQ
42842018-02-26 Yao Qi <yao.qi@linaro.org>
4285
4286 * dwarf2read.c (read_partial_die): Update the declaration.
4287 (load_partial_dies): Caller update.
4288 (read_partial_die): Remove one argument abbrev_len.
4289
6f06d47b
YQ
42902018-02-26 Yao Qi <yao.qi@linaro.org>
4291
4292 * dwarf2read.c (struct partial_die_info): Add ctor, delete
4293 assignment operator.
4294 (load_partial_dies): Use ctor and copy ctor.
4295 (read_partial_die): Update.
4296 (dwarf2_cu::find_partial_die): Use ctor.
4297
d590ff25
YQ
42982018-02-26 Yao Qi <yao.qi@linaro.org>
4299
4300 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
4301 (find_partial_die_in_comp_unit): Change it to
4302 dwarf2_cu::find_partial_die.
4303 (find_partial_die): Update.
4304
fd0a254f
YQ
43052018-02-26 Yao Qi <yao.qi@linaro.org>
4306
4307 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
4308 is NULL.
4309
cd9983dd
YQ
43102018-02-26 Yao Qi <yao.qi@linaro.org>
4311
4312 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
4313
f46cd62a
AH
43142018-02-26 Alan Hayward <alan.hayward@arm.com>
4315
4316 * arch/amd64.h: Use common/tdesc.h.
4317 * arch/i386.c: Likewise.
4318 * arch/i386.h: Likewise.
4319 * arch/tic6x.c: Likewise.
4320 * arch/tdesc.h: Move file from here...
4321 * common/tdesc.h: ...to here.
4322 * features/aarch64-core.c: Regenerate.
4323 * features/aarch64-fpu.c: Regenerate.
4324 * features/i386/32bit-avx.c: Regenerate.
4325 * features/i386/32bit-avx512.c: Regenerate.
4326 * features/i386/32bit-core.c: Regenerate.
4327 * features/i386/32bit-linux.c: Regenerate.
4328 * features/i386/32bit-mpx.c: Regenerate.
4329 * features/i386/32bit-pkeys.c: Regenerate.
4330 * features/i386/32bit-sse.c: Regenerate.
4331 * features/i386/64bit-avx.c: Regenerate.
4332 * features/i386/64bit-avx512.c: Regenerate.
4333 * features/i386/64bit-core.c: Regenerate.
4334 * features/i386/64bit-linux.c: Regenerate.
4335 * features/i386/64bit-mpx.c: Regenerate.
4336 * features/i386/64bit-pkeys.c: Regenerate.
4337 * features/i386/64bit-segments.c: Regenerate.
4338 * features/i386/64bit-sse.c: Regenerate.
4339 * features/i386/x32-core.c: Regenerate.
4340 * features/tic6x-c6xp.c: Regenerate.
4341 * features/tic6x-core.c: Regenerate.
4342 * features/tic6x-gp.c: Regenerate.
4343 * target-descriptions.c: Use common/tdesc.h.
4344 * target-descriptions.h: Likewise.
4345
9b292f68
TT
43462018-02-24 Tom Tromey <tom@tromey.com>
4347
4348 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4349 (try_thread_db_load_from_dir, thread_db_load_search): Use
4350 std::string.
4351 (info_auto_load_libthread_db_compare): Return bool. Change
4352 argument types.
4353 (info_auto_load_libthread_db): Use std::vector, std::string.
4354 Remove cleanups.
4355
281d762b
TT
43562018-02-24 Tom Tromey <tom@tromey.com>
4357
4358 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
4359 std::string.
4360 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
4361 std::string*.
4362 * gdbarch.c: Rebuild.
4363 * gdbarch.h: Rebuild.
4364 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
4365 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
4366 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
4367 std::string*.
4368
9d8780f0
SM
43692018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4370
4371 * gdbtypes.h (sect_offset): Change type to uint64_t.
4372 (sect_offset_str): New function.
4373 * dwarf2read.c (create_addrmap_from_aranges): Use
4374 sect_offset_str.
4375 (error_check_comp_unit_head): Likewise.
4376 (create_debug_type_hash_table): Likewise.
4377 (read_cutu_die_from_dwo): Likewise.
4378 (init_cutu_and_read_dies): Likewise.
4379 (init_cutu_and_read_dies_no_follow): Likewise.
4380 (process_psymtab_comp_unit_reader): Likewise.
4381 (partial_die_parent_scope): Likewise.
4382 (peek_die_abbrev): Likewise.
4383 (process_queue): Likewise.
4384 (dwarf2_physname): Likewise.
4385 (read_namespace_alias): Likewise.
4386 (read_import_statement): Likewise.
4387 (create_dwo_cu_reader): Likewise.
4388 (create_cus_hash_table): Likewise.
4389 (lookup_dwo_cutu): Likewise.
4390 (inherit_abstract_dies): Likewise.
4391 (read_func_scope): Likewise.
4392 (read_call_site_scope): Likewise.
4393 (dwarf2_add_member_fn): Likewise.
4394 (read_common_block): Likewise.
4395 (read_module_type): Likewise.
4396 (read_typedef): Likewise.
4397 (read_subrange_type): Likewise.
4398 (load_partial_dies): Likewise.
4399 (read_partial_die): Likewise.
4400 (find_partial_die): Likewise.
4401 (read_str_index): Likewise.
4402 (dwarf2_string_attr): Likewise.
4403 (build_error_marker_type): Likewise.
4404 (lookup_die_type): Likewise.
4405 (dump_die_shallow): Likewise.
4406 (follow_die_ref): Likewise.
4407 (dwarf2_fetch_die_loc_sect_off): Likewise.
4408 (dwarf2_fetch_constant_bytes): Likewise.
4409 (follow_die_sig): Likewise.
4410 (get_signatured_type): Likewise.
4411 (get_DW_AT_signature_type): Likewise.
4412 (dwarf2_find_containing_comp_unit): Likewise.
4413 (set_die_type): Likewise.
4414
8ec57239
JB
44152018-02-21 John Baldwin <jhb@FreeBSD.org>
4416
4417 * arch/aarch64.c: Include "common-defs.h".
4418 * arch/amd64.c: Likewise.
4419 * arch/i386.c: Likewise.
4420
3eac2b65
TT
44212018-02-21 Tom Tromey <tom@tromey.com>
4422
4423 * value.h: (extract_field_op): Update.
4424 * eval.c (extract_field_op): Return a const char *.
4425 * expression.h (parse_expression_for_completion): Update.
4426 * completer.c (complete_expression): Update.
4427 (add_struct_fields): Make fieldname const.
4428 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
4429 (mark_completion_tag, parse_exp_in_context_1): Update.
4430 (parse_expression_for_completion): Change "name" to
4431 unique_xmalloc_ptr*.
4432
6ccb583f
TT
44332018-02-21 Tom Tromey <tom@tromey.com>
4434
4435 * infcall.c (call_function_by_hand_dummy): Use std::vector.
4436
c113ed0c
YQ
44372018-02-21 Yao Qi <yao.qi@linaro.org>
4438
4439 * avr-tdep.c (avr_read_pc): Change parameter type to
4440 readable_regcache.
4441 * gdbarch.sh (read_pc): Likewise.
4442 * gdbarch.c: Re-generated.
4443 * gdbarch.h: Re-generated.
4444 * hppa-tdep.c (hppa_read_pc): Change parameter type to
4445 readable_regcache.
4446 * ia64-tdep.c (ia64_read_pc): Likewise.
4447 * mips-tdep.c (mips_read_pc): Likewise.
4448 * spu-tdep.c (spu_read_pc): Likewise.
4449
4c74fe6b
YQ
44502018-02-21 Yao Qi <yao.qi@linaro.org>
4451
4452 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
4453 * regcache-dump.c: New file.
4454 * regcache.c: Move register_dump to regcache-dump.c.
4455 (maintenance_print_registers): Likewise.
4456 (maintenance_print_raw_registers): Likewise.
4457 (maintenance_print_cooked_registers): Likewise.
4458 (maintenance_print_register_groups): Likewise.
4459 (maintenance_print_remote_registers): Likewise.
4460 (_initialize_regcache): Likewise.
4461 * regcache.h (register_dump): Moved from regcache.c.
4462
796bb026
YQ
44632018-02-21 Yao Qi <yao.qi@linaro.org>
4464
4465 * regcache.c (regcache::regcache): Update.
4466 (regcache::invalidate): Move it to detached_regcache::invalidate.
4467 (get_thread_arch_aspace_regcache): Update.
4468 (regcache::raw_update): Update.
4469 (regcache::cooked_read): Remove some code.
4470 (regcache::cooked_read_value): Likewise.
4471 (regcache::raw_write): Remove assert on m_readonly_p.
4472 (regcache::raw_supply_integer): Move it to
4473 detached_regcache::raw_supply_integer.
4474 (regcache::raw_supply_zeroed): Likewise.
4475 * regcache.h (detached_regcache) <raw_supply_integer>: New
4476 declaration.
4477 <raw_supply_zeroed, invalidate>: Likewise.
4478 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
4479 <invalidate>: Likewise.
4480 <m_readonly_p>: Removed.
4481
215c69dc
YQ
44822018-02-21 Yao Qi <yao.qi@linaro.org>
4483
4484 * infcmd.c (get_return_value): Let stop_regs point to
4485 get_current_regcache.
4486 * regcache.c (regcache::regcache): Remove.
4487 (register_dump_reg_buffer): New class.
4488 (regcache_print): Adjust.
4489 * regcache.h (regcache): Remove constructors.
4490
f3384e66
YQ
44912018-02-21 Yao Qi <yao.qi@linaro.org>
4492
4493 * regcache.c (class register_dump): New class.
4494 (register_dump_regcache, register_dump_none): New class.
4495 (register_dump_remote, register_dump_groups): New class.
4496 (regcache_print): Update.
4497 * regcache.h (regcache_dump_what): Move it to regcache.c.
4498 (regcache) <dump>: Remove.
4499
c8ec2f33
YQ
45002018-02-21 Yao Qi <yao.qi@linaro.org>
4501
4502 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
4503 reg_buffer_rw *.
4504 (jit_unwind_reg_set_impl): Call raw_supply.
4505 (jit_frame_sniffer): Use reg_buffer_rw.
4506 * record-full.c (record_full_core_regbuf): Change its type.
4507 (record_full_core_open_1): Use reg_buffer_rw.
4508 (record_full_close): Likewise.
4509 (record_full_core_fetch_registers): Use regcache->raw_supply.
4510 (record_full_core_store_registers): Likewise.
4511 * regcache.c (regcache::get_register_status): Move it to
4512 reg_buffer.
4513 (regcache_raw_set_cached_value): Remove.
4514 (regcache::raw_set_cached_value): Remove.
4515 (regcache::raw_write): Call raw_supply.
4516 (regcache::raw_supply): Move it to reg_buffer_rw.
4517 * regcache.h (regcache_raw_set_cached_value): Remove.
4518 (reg_buffer_rw): New class.
4519
daf6667d
YQ
45202018-02-21 Yao Qi <yao.qi@linaro.org>
4521
4522 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
4523 readonly_detached_regcache.
4524 (dummy_frame_prev_register): Use regcache->cooked_read.
4525 * frame.c (frame_save_as_regcache): Change return type.
4526 (frame_pop): Update.
4527 * frame.h (frame_save_as_regcache): Update declaration.
4528 * inferior.h (get_infcall_suspend_state_regcache): Update
4529 declaration.
4530 * infrun.c (infcall_suspend_state) <registers>: use
4531 readonly_detached_regcache.
4532 (save_infcall_suspend_state): Don't use regcache_dup.
4533 (get_infcall_suspend_state_regcache): Change return type.
4534 * linux-fork.c (struct fork_info) <savedregs>: Change to
4535 readonly_detached_regcache.
4536 <pc>: New field.
4537 (fork_save_infrun_state): Don't use regcache_dup.
4538 (info_checkpoints_command): Adjust.
4539 * mi/mi-main.c (register_changed_p): Update declaration.
4540 (mi_cmd_data_list_changed_registers): Use
4541 readonly_detached_regcache.
4542 (register_changed_p): Change parameter type to
4543 readonly_detached_regcache.
4544 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
4545 readonly_detached_regcache.
4546 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
4547 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
4548 New.
4549 (regcache::save): Move it to reg_buffer.
4550 (regcache::restore): Change parameter type.
4551 (regcache_dup): Remove.
4552 * regcache.h (reg_buffer) <save>: New method.
4553 (readonly_detached_regcache): New class.
4554 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
4555 readonly_detached_regcache.
4556 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
4557
fc5b8736
YQ
45582018-02-21 Yao Qi <yao.qi@linaro.org>
4559
4560 * frame.c (frame_save_as_regcache): Use regcache method save.
4561 (frame_pop): Use regcache method restore.
4562 * infrun.c (restore_infcall_suspend_state): Likewise.
4563 * linux-fork.c (fork_load_infrun_state): Likewise.
4564 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
4565 save.
4566 * regcache.c (regcache_save): Remove.
4567 (regcache::restore): More asserts.
4568 (regcache_cpy): Remove.
4569 * regcache.h (regcache_save): Remove the declaration.
4570 (regcache::restore): Move from private to public.
4571 Remove the friend declaration of regcache_cpy.
4572 (regcache_cpy): Remove declaration.
4573
849d0ba8
YQ
45742018-02-21 Yao Qi <yao.qi@linaro.org>
4575
4576 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
4577 parameter type to 'readable_regcache *'.
4578 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
4579 * arm-tdep.c (arm_neon_quad_read): Likewise.
4580 (arm_pseudo_read): Likewise.
4581 * avr-tdep.c (avr_pseudo_register_read): Likewise.
4582 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
4583 * frv-tdep.c (frv_pseudo_register_read): Likewise.
4584 * gdbarch.c: Re-generated.
4585 * gdbarch.h: Re-generated.
4586 * gdbarch.sh (pseudo_register_read): Change parameter type to
4587 'readable_regcache *'.
4588 (pseudo_register_read_value): Likewise.
4589 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
4590 (h8300_pseudo_register_read): Likewise.
4591 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
4592 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4593 (i386_pseudo_register_read_into_value): Likewise.
4594 (i386_pseudo_register_read_value): Likewise.
4595 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
4596 declaration.
4597 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
4598 * m32c-tdep.c (m32c_raw_read): Likewise.
4599 (m32c_read_flg): Likewise.
4600 (m32c_banked_register): Likewise.
4601 (m32c_banked_read): Likewise.
4602 (m32c_sb_read): Likewise.
4603 (m32c_part_read): Likewise.
4604 (m32c_cat_read): Likewise.
4605 (m32c_r3r2r1r0_read): Likewise.
4606 (m32c_pseudo_register_read): Likewise.
4607 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
4608 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
4609 (mep_pseudo_cr64_read): Likewise.
4610 (mep_pseudo_register_read): Likewise.
4611 * mips-tdep.c (mips_pseudo_register_read): Likewise.
4612 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
4613 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
4614 * regcache.c (regcache::raw_read): Move it to readable_regcache.
4615 (regcache::cooked_read): Likewise.
4616 (regcache::cooked_read_value): Likewise.
4617 (regcache_cooked_read_signed):
4618 (regcache::cooked_read): Likewise.
4619 * regcache.h (readable_regcache): New class.
4620 (regcache): Inherit readable_regcache. Move some methods to
4621 readable_regcache.
4622 * rl78-tdep.c (rl78_pseudo_register_read): Change
4623 parameter type to 'readable_regcache *'.
4624 * rs6000-tdep.c (do_regcache_raw_read): Remove.
4625 (e500_pseudo_register_read): Change parameter type to
4626 'readable_regcache *'.
4627 (dfp_pseudo_register_read): Likewise.
4628 (vsx_pseudo_register_read): Likewise.
4629 (efpr_pseudo_register_read): Likewise.
4630 * s390-tdep.c (s390_pseudo_register_read): Likewise.
4631 * sh-tdep.c (sh_pseudo_register_read): Likewise.
4632 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
4633 (sh64_pseudo_register_read): Likewise.
4634 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
4635 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
4636 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
4637 (spu_pseudo_register_read): Likewise.
4638 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
4639 (xtensa_pseudo_register_read): Likewise.
4640
31716595
YQ
46412018-02-21 Yao Qi <yao.qi@linaro.org>
4642
4643 * regcache.c (regcache::regcache): Call reg_buffer ctor.
4644 (regcache::arch): Move it to reg_buffer::arch.
4645 (regcache::register_buffer): Likewise.
4646 (regcache::assert_regnum): Likewise.
4647 (regcache::num_raw_registers): Likewise.
4648 * regcache.h (reg_buffer): New class.
4649 (regcache): Inherit reg_buffer.
4650
7104e59b
SM
46512018-02-20 Simon Marchi <simon.marchi@ericsson.com>
4652
4653 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
4654 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
4655
2d8adcbd
MM
46562018-02-20 Markus Metzger <markus.t.metzger@intel.com>
4657
4658 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
4659
b5884fa7
AH
46602018-02-19 Alan Hayward <alan.hayward@arm.com>
4661
4662 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
4663 (SFILES): Remove common/*.c files.
4664 (COMMON_OBS): Remove some *.o files built from common/*.c files.
4665 * common/common.host: Add common reference.
4666 * configure.ac: Likewise.
4667 * configure: Regenerate.
4668
fd90ace4
YQ
46692018-02-16 Yao Qi <yao.qi@linaro.org>
4670
4671 * block.c (block_namespace_info): Inherit allocate_on_obstack.
4672 (block_initialize_namespace): Use new.
4673 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
4674 (dwarf2_free_objfile): Use delete.
4675 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
4676 (copy_type_recursive): Use new.
4677 * gdb_obstack.h (allocate_on_obstack): New.
4678
85046ae2
YQ
46792018-02-15 Yao Qi <yao.qi@linaro.org>
4680
4681 PR gdb/22849
4682 * inferior.c (exit_inferior_1): Reset inf->control.
4683
355c559b
JB
46842018-02-15 Joel Brobecker <brobecker@adacore.com>
4685
4686 * ada-lang.c (ada_to_fixed_value_create): Delete advance
4687 declaration.
4688
980548fd
PA
46892018-02-14 Pedro Alves <palves@redhat.com>
4690
4691 * frame-unwind.c (frame_unwind_try_unwinder): Always call
4692 frame_cleanup_after_sniffer on exception.
4693
692d6f97
TT
46942018-02-14 Tom Tromey <tom@tromey.com>
4695
4696 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
4697 const.
4698 (solib_bfd_open): Make pathname const.
4699 * solib.c (solib_bfd_open): Make pathname const.
4700 * solib-spu.c (spu_bfd_fopen): Make name const.
4701 (spu_bfd_open): Make pathname const.
4702 * solib-darwin.c (darwin_bfd_open): Make pathname const.
4703 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
4704
e0cc99a6
TT
47052018-02-14 Tom Tromey <tom@tromey.com>
4706
4707 * symfile.c (symfile_bfd_open): Update.
4708 * source.h (openp, source_full_path_of, find_and_open_source):
4709 Change argument type to unique_xmalloc_ptr.
4710 * source.c (openp): Take a unique_xmalloc_ptr.
4711 (source_full_path_of, find_and_open_source): Likewise.
4712 (open_source_file, symtab_to_fullname): Update.
4713 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
4714 unique_xmalloc_ptr.
4715 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
4716 (exec_file_find): Update.
4717 * psymtab.c (psymtab_to_fullname): Update.
4718 * nto-tdep.h (nto_find_and_open_solib): Update.
4719 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
4720 unique_xmalloc_ptr.
4721 * exec.c (exec_file_attach): Update.
4722 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
4723 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
4724
b46a8d7c
TT
47252018-02-14 Tom Tromey <tom@tromey.com>
4726
4727 * solib.c: Include source.h.
4728 * nto-tdep.c: Include source.h.
4729 * mi/mi-cmd-env.c: Include source.h.
4730 * infcmd.c: Include source.h.
4731 * exec.c: Include source.h.
4732 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
4733 (add_path, directory_switch, source_path, init_source_path): Move
4734 declarations...
4735 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
4736 (add_path, directory_switch, source_path, init_source_path):
4737 ...here.
4738
797bc1cb
TT
47392018-02-14 Tom Tromey <tom@tromey.com>
4740
4741 * solist.h (exec_file_find, solib_find): Return
4742 unique_xmalloc_ptr.
4743 (solib_bfd_fopen): Take a const char *.
4744 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
4745 (exec_file_find, solib_find): Likewise.
4746 (solib_bfd_fopen): Do not take ownership of "pathname".
4747 (solib_bfd_open): Use unique_xmalloc_ptr.
4748 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
4749 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
4750 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
4751 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
4752
f98b2e33
JB
47532018-02-14 Joel Brobecker <brobecker@adacore.com>
4754
4755 * ada-lang.c (name_match_type_from_name): Remove reference to
4756 ada_name_for_lookup in function's documentation.
4757 * ada-lang.h (ada_name_for_lookup): Delete declaration.
4758
24b9144d
SM
47592018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
4760
4761 * defs.h (enum openp_flags): New enum.
4762 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
4763 Move to enum openp_flags.
4764 (openp_flags): New enum flags.
4765 (openp): Change parameter type to openp_flags.
4766 * source.c (openp): Change parameter type to openp_flags.
4767 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
4768 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
4769
387cd15b
SM
47702018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
4771
4772 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
4773 per-command.
4774
b303c6f6
AB
47752018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4776
4777 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
4778 into...
4779 (class dwarf2_queue_guard): ...the destructor of this new class.
4780 (dw2_do_instantiate_symtab): Create instance of the new class
4781 dwarf2_queue_guard, remove cleanup.
4782
9c3630e9
TT
47832018-02-09 Tom Tromey <tom@tromey.com>
4784
4785 * source.c (find_source_lines): Don't reference past the end of
4786 the vector.
4787
c4e12631
MM
47882018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4789
4790 * remote.c (remote_btrace_maybe_reopen): Change error message.
4791 * btrace.c (btrace_enable): Likewise.
4792 (parse_xml_btrace): Likewise.
4793 (parse_xml_btrace_conf): Likewise.
4794
88711fbf
MM
47952018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4796
4797 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
4798 (linux_enable_pt, linux_enable_bts): Call
4799 diagnose_perf_event_open_fail.
4800
17ad2a4f
MM
48012018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4802
4803 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
4804 Remove parameter and change return type. Update callers. Move it.
4805 (linux_enable_bts, linux_enable_pt): Improve error message.
4806 (linux_enable_pt): Remove zero buffer size check.
4807 (linux_enable_btrace): Improve error messages. Remove NULL return
4808 check.
4809
de6242d3
MM
48102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4811
4812 * btrace.c (btrace_enable): Remove target_supports_btrace call.
4813 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
4814 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
4815 (linux_supports_pt, linux_supports_btrace): Remove.
4816 (linux_enable_bts): Call cpu_supports_bts.
4817 * nat/linux-btrace.h (linux_supports_btrace): Remove.
4818 * remote.c (remote_supports_btrace): Remove.
4819 (init_remote_ops): Remove remote_supports_btrace.
4820 * target-delegates.c: Regenerated.
4821 * target.c (target_supports_btrace): Remove.
4822 * target.h (target_ops) <to_supports_btrace>: Remove
4823 (target_supports_btrace): Remove.
4824 * x86-linux-nat.c (x86_linux_create_target): Remove
4825 linux_supports_btrace.
4826
9ee23a85
MM
48272018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4828
4829 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
4830 btrace failed.
4831 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
4832 exception and use message in own exception.
4833
5c3284c1
MM
48342018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4835
4836 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
4837 (perf_event_pt_event_type): Use gdb_file_up.
4838 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
4839 scoped_fd, and scoped_mmap.
4840
84696f37
MM
48412018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4842
4843 * common/scoped_mmap.h: New.
4844 * unittests/scoped_mmap-selftest.c: New.
4845 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4846 unittests/scoped_mmap-selftest.c.
4847
ea4a0888
MM
48482018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4849
4850 * common/scoped_fd.h: New.
4851 * unittests/scoped_fd-selftest.c: New.
4852 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4853 unittests/scoped_fd-selftest.c.
4854
869e8290
TT
48552018-02-09 Tom Tromey <tom@tromey.com>
4856
4857 * auto-load.c (auto_load_section_scripts): Use
4858 gdb::unique_xmalloc_ptr.
4859
a37a2ae7
TT
48602018-02-09 Tom Tromey <tom@tromey.com>
4861
4862 * auto-load.c (execute_script_contents): Use std::string.
4863
4e725347
JB
48642018-02-09 Joel Brobecker <brobecker@adacore.com>
4865
4866 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
4867 Python function, rather than a new command.
4868
9a897d43
TT
48692018-02-08 Tom Tromey <tom@tromey.com>
4870
4871 * solib.c (solib_find_1): Use std::string.
4872 (solib_bfd_fopen): Use unique_xmalloc_ptr.
4873
58ef3771
TT
48742018-02-08 Tom Tromey <tom@tromey.com>
4875
4876 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
4877
a9abc434
TT
48782018-02-08 Tom Tromey <tom@tromey.com>
4879
4880 * source.c (find_source_lines): Use gdb::def_vector.
4881
84f27c6f
TT
48822018-02-08 Tom Tromey <tom@tromey.com>
4883
4884 * macrocmd.c (struct temporary_macro_definition): New.
4885 (macro_define_command): Use temporary_macro_definition. Remove
4886 cleanups.
4887 (free_macro_definition_ptr): Remove.
4888
0354904b
TT
48892018-02-08 Tom Tromey <tom@tromey.com>
4890
4891 * macroexp.c (maybe_expand): Use std::string.
4892
1739cf24
TT
48932018-02-08 Tom Tromey <tom@tromey.com>
4894
4895 * macroexp.c (struct macro_buffer): Add initializers for some
4896 members.
4897 (init_buffer, init_shared_buffer, free_buffer)
4898 (free_buffer_return_text): Remove.
4899 (macro_buffer): New constructors.
4900 (~macro_buffer): New destructor.
4901 (macro_buffer::set_shared): New method.
4902 (macro_buffer::resize_buffer, macro_buffer::appendc)
4903 (macro_buffer::appendmem): Now methods, not free functions.
4904 (set_token, append_tokens_without_splicing, stringify)
4905 (macro_stringify): Update.
4906 (gather_arguments): Change return type. Remove argc_p argument,
4907 add args_ptr argument. Use std::vector.
4908 (substitute_args): Remove argc argument. Accept std::vector.
4909 (expand): Update. Use std::vector.
4910 (scan, macro_expand, macro_expand_next): Update.
4911
f6c2623e
TT
49122018-02-08 Tom Tromey <tom@tromey.com>
4913
4914 * symtab.c (default_collect_symbol_completion_matches_break_on):
4915 Use unique_xmalloc_ptr.
4916 * macroscope.h: (sal_macro_scope, user_macro_scope)
4917 (default_macro_scope): Return unique_xmalloc_ptr.
4918 * macroscope.c (sal_macro_scope, user_macro_scope)
4919 (default_macro_scope): Return unique_xmalloc_ptr.
4920 * macroexp.h (macro_expand, macro_expand_once): Return
4921 unique_xmalloc_ptr.
4922 * macroexp.c (macro_expand, macro_expand_once): Return
4923 unique_xmalloc_ptr.
4924 * macrocmd.c (macro_expand_command, macro_expand_once_command)
4925 (info_macro_command, info_macros_command): Use
4926 unique_xmalloc_ptr.
4927 * compile/compile-c-support.c (write_macro_definitions): Use
4928 unique_xmalloc_ptr.
4929 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
4930
c2e0e465
SM
49312018-02-07 Simon Marchi <simon.marchi@ericsson.com>
4932
4933 * value.c (value_static_field): Assign field type instead of
4934 containing type when returning an optimized out value.
4935
3f8c94b4
YQ
49362018-02-06 Yao Qi <yao.qi@linaro.org>
4937
4938 * ft32-tdep.c (ft32_read_pc): Remove.
4939 (ft32_write_pc): Remove.
4940 (ft32_gdbarch_init): Update.
4941 * m32r-tdep.c (m32r_read_pc): Remove.
4942 (m32r_gdbarch_init): Update.
4943 * mep-tdep.c (mep_read_pc): Remove.
4944 (mep_gdbarch_init): Update.
4945 * microblaze-tdep.c (microblaze_write_pc): Remove.
4946 (microblaze_gdbarch_init): Update.
4947 * mn10300-tdep.c (mn10300_read_pc): Remove.
4948 (mn10300_write_pc): Remove.
4949 (mn10300_gdbarch_init): Update.
4950 * moxie-tdep.c (moxie_read_pc): Remove.
4951 (moxie_write_pc): Remove.
4952 (moxie_gdbarch_init): Update.
4953
bca65a23
YQ
49542018-02-06 Yao Qi <yao.qi@linaro.org>
4955
4956 * expprint.c (print_subexp_standard): Handle
4957 OP_F77_UNDETERMINED_ARGLIST.
4958 (dump_subexp_body_standard): Likewise.
4959
583e3f90 49602018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 4961
583e3f90
YQ
4962 * target-descriptions.c (tdesc_element_visitor) Add empty
4963 implementations.
b8df6ca7
AH
4964 (tdesc_type): Move make_gdb_type from here.
4965 (tdesc_type_builtin): Likewise.
4966 (tdesc_type_vector): Likewise.
4967 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
4968 (make_gdb_type_struct): Move from tdesc_type_with_fields.
4969 (make_gdb_type_union): Likewise.
4970 (make_gdb_type_flags): Likewise.
4971 (make_gdb_type_enum): Likewise.
4972 (make_gdb_type): New function.
4973 (tdesc_register_type): Use static make_gdb_type.
4974
e813d34a
RK
49752018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
4976
4977 * infcmd.c (default_print_one_register_info): Align natural-format
4978 column values consistently one under another.
4979 (pad_to_column): New function.
4980
0eb876f5
JB
49812018-02-05 Joel Brobecker <brobecker@adacore.com>
4982
4983 * dwarf2read.c (dwarf2_physname): Move commment.
4984
0625771b
LS
49852018-02-01 Leszek Swirski <leszeks@google.com>
4986
4987 * varobj.c (varobj_formatted_print_options): Allow recursive
4988 pretty printing if pretty printing is enabled.
4989
59498c30
LS
49902018-02-01 Leszek Swirski <leszeks@google.com>
4991
4992 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
4993 names after a structop as a filename.
4994
2d9e6acb
YQ
49952018-02-01 Yao Qi <yao.qi@linaro.org>
4996
4997 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
4998 (arm_record_coproc_data_proc): Likewise.
4999
df95a9cf
YQ
50002018-02-01 Yao Qi <yao.qi@linaro.org>
5001
5002 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
5003
07e5f5cf
NP
50042018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
5005
5006 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
5007 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
5008
3045b475
PA
50092018-01-31 Pedro Alves <palves@redhat.com>
5010
5011 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
5012 * inflow.c (child_terminal_save_inferior): Wrap reference to
5013 tcgetpgrp in HAVE_TERMIOS_H.
5014 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
5015 _WIN32.
5016 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
5017 always iterate over all inferiors.
5018 (gdbsim_cntrl_c): Adjust.
5019 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
5020
929b5ad4
JB
50212018-01-31 Joel Brobecker <brobecker@adacore.com>
5022
5023 * gdbtypes.c (lookup_array_range_type): Make sure the array's
5024 index type is objfile-owned if the element type is as well.
5025
29236ca2
JB
50262018-01-31 Joel Brobecker <brobecker@adacore.com>
5027
5028 GDB 8.1 released.
5029
c81e8879
PR
50302018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
5031
5032 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
5033 "features/s390x-linux64.c".
5034 (_initialize_s390_linux_tdep): Remove initialization of tdescs
5035 s390_linux32 and s390x_linux64.
5036 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
5037 default tdesc.
5038 * s390-tdep.c: Include "features/s390-linux32.c" and
5039 "features/s390x-linux64.c".
5040 (s390_tdesc_valid): Add check for tdesc_has_registers.
5041 (s390_gdbarch_init): Make sure there is always a valid tdesc.
5042 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
5043 tdesc_s390x_linux64.
5044 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
5045 tdesc_s390x_linux64 to...
5046 * s390-tdep.h: ...here.
5047
e671cd59
PA
50482018-01-30 Pedro Alves <palves@redhat.com>
5049
5050 PR gdb/13211
5051 * config.in, configure: Regenerate.
5052 * configure.ac: Check for getpgid.
5053 * go32-nat.c (go32_pass_ctrlc): New.
5054 (go32_target): Install it.
5055 * inf-child.c (inf_child_target): Install
5056 child_terminal_save_inferior, child_pass_ctrlc and
5057 child_interrupt.
5058 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
5059 (inf_ptrace_target): No longer install it.
5060 * infcmd.c (interrupt_target_1): Adjust.
5061 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
5062 (child_interrupt): Declare.
5063 (inferior::terminal_state): New.
5064 * inflow.c (struct terminal_info): Update comments.
5065 (inferior_process_group): Delete.
5066 (terminal_is_ours): Delete.
5067 (gdb_tty_state): New.
5068 (child_terminal_init): Adjust.
5069 (is_gdb_terminal, sharing_input_terminal_1)
5070 (sharing_input_terminal): New functions.
5071 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
5072 Set the process's actual process group in the foreground if
5073 possible. Handle is_ours_for_output/is_ours distinction. Don't
5074 mark terminal as the inferior's if not sharing GDB's terminal.
5075 Don't check attach_flag.
5076 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
5077 pass down a target_terminal_state.
5078 (child_terminal_save_inferior): New, factored out from ...
5079 (child_terminal_ours_1): ... this. Handle
5080 target_terminal_state::is_ours_for_output.
5081 (child_interrupt, child_pass_ctrlc): New.
5082 (inflow_inferior_exit): Clear the inferior's terminal_state.
5083 (copy_terminal_info): Copy the inferior's terminal state.
5084 (_initialize_inflow): Remove reference to terminal_is_ours.
5085 * inflow.h (inferior_process_group): Delete.
5086 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
5087 * procfs.c (procfs_target): Don't install procfs_interrupt.
5088 (procfs_interrupt): Delete.
5089 * remote.c (remote_serial_quit_handler): Adjust.
5090 (remote_interrupt): Remove ptid parameter. Adjust.
5091 * target-delegates.c: Regenerate.
5092 * target.c: Include "terminal.h".
5093 (target_terminal::terminal_state): Rename to ...
5094 (target_terminal::m_terminal_state): ... this.
5095 (target_terminal::init): Adjust.
5096 (target_terminal::inferior): Adjust to per-inferior
5097 terminal_state.
5098 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
5099 (target_terminal::ours, target_terminal::ours_for_output): Use
5100 target_terminal_is_ours_kind.
5101 (target_interrupt): Remove ptid parameter. Adjust.
5102 (default_target_pass_ctrlc): Adjust.
5103 * target.h (target_ops::to_terminal_save_inferior): New field.
5104 (target_ops::to_interrupt): Remove ptid_t parameter.
5105 (target_interrupt): Remove ptid_t parameter. Update comment.
5106 (target_pass_ctrlc): Update comment.
5107 * target/target.h (target_terminal_state): New scoped enum,
5108 factored out of ...
5109 (target_terminal::terminal_state): ... here.
5110 (target_terminal::inferior): Update comments.
5111 (target_terminal::restore_inferior): New.
5112 (target_terminal::is_inferior, target_terminal::is_ours)
5113 (target_terminal::is_ours_for_output): Adjust.
5114 (target_terminal::scoped_restore_terminal_state): Adjust to
5115 rename, and call restore_inferior() instead of inferior().
5116 (target_terminal::scoped_restore_terminal_state::m_state): Change
5117 type.
5118 (target_terminal::terminal_state): Rename to ...
5119 (target_terminal::m_terminal_state): ... this and change type.
5120
9c3a5d93
PA
51212018-01-30 Pedro Alves <palves@redhat.com>
5122
5123 * linux-nat.c (wait_for_signal): New function.
5124 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
5125 directly.
5126 (async_terminal_is_ours)
5127 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
5128 (linux_nat_add_target): Don't override
5129 to_terminal_inferior/to_terminal_ours.
5130
69ab5edb
SDJ
51312018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
5132
5133 * remote.c (remote_follow_fork): Don't call "detach_inferior".
5134
fc8e7e75
SM
51352018-01-28 Simon Marchi <simon.marchi@ericsson.com>
5136
5137 * dwarf2read.c (free_dwo_files): Add forward-declaration.
5138 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
5139 dwarf2_per_objfile_free here.
5140 (dwarf2_per_objfile_free): Remove.
5141 (_initialize_dwarf2_read): Don't register
5142 dwarf2_per_objfile_free as a registry cleanup.
5143
b2a426e2
EZ
51442018-01-27 Eli Zaretskii <eliz@gnu.org>
5145
5146 Avoid compilation errors in MinGW native builds
5147
5148 The error is triggered by including python-internal.h, and the
5149 error message is:
5150
5151 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
5152 from build-gnulib/import/math.h:27,
5153 from d:/usr/Python26/include/pyport.h:235,
5154 from d:/usr/Python26/include/Python.h:58,
5155 from python/python-internal.h:94,
5156 from python/py-arch.c:24:
5157 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
5158 using ::hypot;
5159 ^~~~~
5160
5161 This happens because Python headers define 'hypot' to expand t
5162 '_hypot' in the Windows builds.
5163 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
5164 'hypoth'. This avoids a compilation error.
5165
0bdd8eac
AH
51662018-01-26 Alan Hayward <alan.hayward@arm.com>
5167
5168 * MAINTAINERS (Write After Approval): Fix ordering.
5169
56ae9dc3
AH
51702018-01-26 Alan Hayward <alan.hayward@arm.com>
5171
5172 * MAINTAINERS (Write After Approval): Add Alan Hayward.
5173
7433498b
AM
51742018-01-26 Alan Modra <amodra@gmail.com>
5175
5176 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
5177 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
5178 Remove nop. Make const. Comment.
5179 (powerpc32_plt_stub_so_2): New.
5180 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
5181 Correct count. Update uses.
5182 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
5183 Move common code reading PLT entry word. Correct
5184 powerpc32_plt_stub PLT address calculation.
5185 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
5186 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
5187 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
5188 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
5189 (ppc64_standard_linkage8): Likewise.
5190 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
5191 Correct insns description.
5192 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5193
0f59d5fc
PA
51942018-01-24 Pedro Alves <palves@redhat.com>
5195
5196 GCC PR libstdc++/83906
5197 * gdbtypes.c (operator==(const dynamic_prop &,
5198 const dynamic_prop &)): New.
5199 (operator==(const range_bounds &, const range_bounds &)): New.
5200 (check_types_equal): Use them instead of memcmp.
5201 * gdbtypes.h (operator==(const dynamic_prop &,
5202 const dynamic_prop &)): Declare.
5203 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
5204 (operator==(const range_bounds &, const range_bounds &)): Declare.
5205 (operator!=(const range_bounds &, const range_bounds &)): Declare.
5206
ef8914a4
PR
52072018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5208
5209 * s390-linux-tdep.c (s390_record_address_mask)
5210 (s390_record_calc_disp_common, s390_record_calc_disp)
5211 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
5212 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
5213 (s390_process_record): Move to s390-tdep.c.
5214 (s390_linux_init_abi_any): Adjust.
5215 * s390-tdep.c (s390_record_address_mask)
5216 (s390_record_calc_disp_common, s390_record_calc_disp)
5217 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
5218 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
5219 (s390_process_record): Moved from s390-linux-tdep.c
5220 (s390_gdbarch_init): Adjust.
5221
d6e58945
PR
52222018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5223
5224 * s390-linux-nat.c (s390-tdep.h): New include.
5225 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
5226 (HFILES_NO_SRCDIR): Add s390-tdep.h.
5227 (ALLDEPFILES): Add s390-tdep.c.
5228 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
5229 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
5230 * s390-tdep.h: ...this. New file.
5231 * s390-linux-tdep.c (s390-tdep.h): New include.
5232 (_initialize_s390_tdep): Rename to...
5233 (_initialize_s390_linux_tdep): ...this and adjust.
5234 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
5235 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
5236 s390-tdep.h.
5237 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
5238 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
5239 (s390_is_partial_instruction, s390_software_single_step)
5240 (is_non_branch_ril, s390_displaced_step_copy_insn)
5241 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
5242 (s390_prologue_data, s390_addr, s390_store, s390_load)
5243 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
5244 (s390_register_call_saved, s390_guess_tracepoint_registers)
5245 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
5246 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
5247 (s390_pseudo_register_name, s390_pseudo_register_type)
5248 (s390_pseudo_register_read, s390_pseudo_register_write)
5249 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
5250 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
5251 (s390_addr_bits_remove, s390_address_class_type_flags)
5252 (s390_address_class_type_flags_to_name)
5253 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
5254 (s390_function_arg_float, s390_function_arg_vector)
5255 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
5256 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
5257 (s390_frame_align, s390_register_return_value, s390_return_value)
5258 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
5259 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
5260 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
5261 (s390_trad_frame_prev_register, s390_unwind_cache)
5262 (s390_prologue_frame_unwind_cache)
5263 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
5264 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
5265 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
5266 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
5267 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
5268 (s390_frame_base_address, s390_local_base_address)
5269 (s390_frame_base, s390_gcc_target_options)
5270 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
5271 (s390_validate_reg_range, s390_tdesc_valid)
5272 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
5273 * s390-tdep.c: ...this. New file.
5274
9c0b896e
PR
52752018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5276
5277 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
5278 (s390_process_record, s390_gdbarch_tdep_alloc)
5279 (s390_linux_init_abi_any): Use/set new hook.
5280
7042632b
PR
52812018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5282
5283 * s390-linux-tdep.c (osabi.h): New include.
5284 (s390_linux_init_abi_31, s390_linux_init_abi_64)
5285 (s390_linux_init_abi_any): New functions.
5286 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
5287
650f5e13
PR
52882018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5289
5290 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
5291 tdesc_has_registers check
5292
47c9317e
PR
52932018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5294
5295 * s390-linux-tdep.c (s390_tdesc_valid): New function.
5296 (s390_validate_reg_range): New macro.
5297 (s390_gdbarch_init): Adjust.
5298
095085d8
PR
52992018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5300
5301 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
5302 (s390_gdbarch_tdep_alloc): Adjust.
5303 (s390_gdbarch_init): Adjust.
5304
ab9bcc67
PR
53052018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5306
5307 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
5308 <have_tdb>: Change type to bool.
5309 (s390_gdbarch_tdep_alloc): Adjust.
5310 (s390_gdbarch_init): Adjust.
5311
21f6f5ff
PR
53122018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5313
5314 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
5315 (gdbarch_tdep) <have_upper, have_vx>: New fields.
5316 (s390_gdbarch_tdep_alloc): New function.
5317 (s390_gdbarch_init): Allocate tdep at start and use its fields
5318 instead of separate variables.
5319
0eb97953
PR
53202018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5321
5322 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
5323 when looking for cached gdbarch and add comment for remaining.
5324
5c319bb2
PA
53252018-01-22 Pedro Alves <palves@redhat.com>
5326 Sergio Durigan Junior <sergiodj@redhat.com>
5327
5328 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
5329 case.
5330
d65ce302
MR
53312018-01-22 Maciej W. Rozycki <macro@mips.com>
5332
5333 * MAINTAINERS: Update my company e-mail address.
5334
ec7a5fcb
YQ
53352018-01-22 Yao Qi <yao.qi@linaro.org>
5336
5337 * regcache.c (cooked_write_test): New function.
5338 (_initialize_regcache): Register the test.
5339
11f57cb6
YQ
53402018-01-22 Yao Qi <yao.qi@linaro.org>
5341
5342 * ia64-tdep.c (ia64_pseudo_register_read): Call
5343 regcache->cooked_read instead of regcache_cooked_read_unsigned.
5344 * m32c-tdep.c (m32c_cat_read): Likewise.
5345 (m32c_r3r2r1r0_read): Likewise.
5346 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
5347 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
5348
03f50fc8
YQ
53492018-01-22 Yao Qi <yao.qi@linaro.org>
5350
5351 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
5352 method raw_read instead of regcache_raw_read.
5353 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
5354 * arm-tdep.c (arm_neon_quad_read): Likewise.
5355 * avr-tdep.c (avr_pseudo_register_read): Likewise.
5356 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
5357 * frv-tdep.c (frv_pseudo_register_read): Likewise.
5358 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
5359 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
5360 (i386_pseudo_register_read_into_value): Likewise.
5361 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
5362 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
5363 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
5364 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
5365 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
5366 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
5367 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
5368 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
5369 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
5370
dc711524
YQ
53712018-01-22 Yao Qi <yao.qi@linaro.org>
5372
5373 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
5374 * configure.tgt: Remove target mt.
5375 * mt-tdep.c: Remove.
5376 * regcache.c (cooked_read_test): Remove the check for mt.
5377
3f5a868b
YQ
53782018-01-22 Yao Qi <yao.qi@linaro.org>
5379
5380 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
5381 instead of gdbarch_pseudo_register_read_value.
5382
de4cb04a
JB
53832018-01-22 Joel Brobecker <brobecker@adacore.com>
5384
5385 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
5386 language is Ada.
5387
a9e40818
JB
53882018-01-22 Joel Brobecker <brobecker@adacore.com>
5389
5390 * linespec.c (create_sals_line_offset): Remove code that preserved
5391 the symtab_and_line's line number.
5392
e707fc44
AB
53932018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5394
5395 * varobj.c (varobj_create): Don't set valid_block when creating a
5396 floating varobj.
5397
03d0bf7b
AB
53982018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5399
5400 * varobj.c (varobj_create): Remove out of date comment.
5401
ae451627
AB
54022018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5403
5404 PR mi/20395
5405 * ada-exp.y (write_var_from_sym): Pass extra parameter when
5406 updating innermost block.
5407 * parse.c (innermost_block_tracker::update): Take extra type
5408 parameter, and check types match before updating innermost block.
5409 (write_dollar_variable): Update innermost block for registers.
5410 * parser-defs.h (enum innermost_block_tracker_type): New enum.
5411 (innermost_block_tracker::innermost_block_tracker): Initialise
5412 m_types member.
5413 (innermost_block_tracker::reset): Take type parameter.
5414 (innermost_block_tracker::update): Take type parameter, and pass
5415 type through as needed.
5416 (innermost_block_tracker::m_types): New member.
5417 * varobj.c (varobj_create): Pass type when reseting innermost
5418 block.
5419
aee1fcdf
AB
54202018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5421
5422 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
5423 * ada-lang.c (resolve_subexp): Likewise.
5424 * breakpoint.c (set_breakpoint_condition) Likewise.
5425 (watch_command_1) Likewise.
5426 * c-exp.y (variable): Likewise.
5427 * d-exp.y (PrimaryExpression): Likewise.
5428 * f-exp.y (variable): Likewise.
5429 * go-exp.y (variable): Likewise.
5430 * m2-exp.y (variable): Likewise.
5431 * objfiles.c (objfile::~objfile): Likewise.
5432 * p-exp.y (variable): Likewise.
5433 * parse.c (innermost_block): Change type.
5434 * parser-defs.h (class innermost_block_tracker): New.
5435 (innermost_block): Change to innermost_block_tracker.
5436 * printcmd.c (display_command): Switch to innermost_block API.
5437 (do_one_display): Likewise.
5438 * rust-exp.y (do_one_display): Likewise.
5439 * symfile.c (clear_symtab_users): Likewise.
5440 * varobj.c (varobj_create): Switch to innermost_block API, replace
5441 use of innermost_block with block stored on varobj object.
5442
396af9a1
AB
54432018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5444
5445 * expression.h (innermost_block): Remove declaration.
5446 * varobj.c: Add 'parser-defs.h' include.
5447
fcfcc376
TT
54482018-01-19 Tom Tromey <tom@tromey.com>
5449
5450 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
5451 symbols in the static and global blocks.
5452
5a6c3296
JC
54532018-01-19 James Clarke <jrtc27@jrtc27.com>
5454
5455 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
5456 gdb_ptrace.h, and move including gdb_wait.h ...
5457 * nat/linux-ptrace.h: ... to here.
5458
bc09b0c1
SM
54592018-01-19 Simon Marchi <simon.marchi@ericsson.com>
5460
5461 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
5462 inf_ptrace_detach_success.
5463 (inf_ptrace_detach_success): Add inferior parameter, use it
5464 instead of inferior_ptid, pass it to detach_inferior.
5465 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
5466 parameter.
5467 * inferior.c (detach_inferior): Add overload that takes an
5468 inferior object.
5469 * inferior.h (detach_inferior): Likewise.
5470 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
5471 use inferior_ptid, adjust call to inf_ptrace_detach_success.
5472 * linux-thread-db.c (thread_db_detach): Use inf parameter.
5473
6e1e1966
SM
54742018-01-19 Simon Marchi <simon.marchi@ericsson.com>
5475
5476 * target.h (struct target_ops) <to_detach>: Add inferior
5477 parameter.
5478 (target_detach): Likewise.
5479 * target.c (dispose_inferior): Pass inferior down.
5480 (target_detach): Pass inferior down. Assert that it is equal to
5481 the current inferior.
5482 * aix-thread.c (aix_thread_detach): Pass inferior down.
5483 * corefile.c (core_file_command): Pass current_inferior() down.
5484 * corelow.c (core_detach): Add inferior parameter.
5485 * darwin-nat.c (darwin_detach): Likewise.
5486 * gnu-nat.c (gnu_detach): Likewise.
5487 * inf-ptrace.c (inf_ptrace_detach): Likewise.
5488 * infcmd.c (detach_command): Pass current_inferior() down to
5489 target_detach.
5490 * infrun.c (follow_fork_inferior): Pass parent_inf to
5491 target_detach.
5492 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
5493 target_detach.
5494 * linux-nat.c (linux_nat_detach): Add inferior parameter.
5495 * linux-thread-db.c (thread_db_detach): Likewise.
5496 * nto-procfs.c (procfs_detach): Likewise.
5497 * procfs.c (procfs_detach): Likewise.
5498 * record.c (record_detach): Likewise.
5499 * record.h (struct inferior): Forward-declare.
5500 (record_detach): Add inferior parameter.
5501 * remote-sim.c (gdbsim_detach): Likewise.
5502 * remote.c (remote_detach_1): Likewise.
5503 (remote_detach): Likewise.
5504 (extended_remote_detach): Likewise.
5505 * sol-thread.c (sol_thread_detach): Likewise.
5506 * target-debug.h (target_debug_print_inferior_p): New macro.
5507 * target-delegates.c: Re-generate.
5508 * top.c (kill_or_detach): Pass inferior down to target_detach.
5509 * windows-nat.c (windows_detach): Add inferior parameter.
5510
6bd6f3b6
SM
55112018-01-19 Simon Marchi <simon.marchi@ericsson.com>
5512
5513 * target.h (struct target_ops) <to_detach>: Remove args
5514 parameter.
5515 (target_detach): Likewise.
5516 * target.c (dispose_inferior): Adjust.
5517 (target_detach): Remove args parameter, adjust.
5518 * aix-thread.c (aix_thread_detach): Adjust.
5519 * corefile.c (core_file_command): Adjust.
5520 * corelow.c (core_detach): Adjust.
5521 * darwin-nat.c (darwin_detach): Adjust.
5522 * gnu-nat.c (gnu_detach): Adjust.
5523 * inf-ptrace.c (inf_ptrace_detach): Adjust.
5524 * infcmd.c (detach_command): Adjust
5525 * infrun.c (follow_fork_inferior): Adjust.
5526 (handle_vfork_child_exec_or_exit): Adjust.
5527 * linux-fork.c (linux_fork_detach): Remove args parameter.
5528 * linux-fork.h (linux_fork_detach): Likewise.
5529 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
5530 * linux-thread-db.c (thread_db_detach): Likewise.
5531 * nto-procfs.c (procfs_detach): Likewise.
5532 * procfs.c (procfs_detach): Likewise.
5533 (do_detach): Remove signo parameter.
5534 * record.c (record_detach): Remove args parameter.
5535 * record.h (record_detach): Likewise.
5536 * remote-sim.c (gdbsim_detach): Likewise.
5537 * remote.c (remote_detach_1): Likewise.
5538 (remote_detach): Likewise.
5539 (extended_remote_detach): Likewise.
5540 * sol-thread.c (sol_thread_detach): Likewise.
5541 * target-delegates.c: Re-generate.
5542 * top.c (struct qt_args) <args>: Remove field.
5543 (kill_or_detach): Don't pass args.
5544 (quit_force): Don't set args.
5545 * windows-nat.c (windows_detach): Remove args parameter.
5546
88af8ea8
YQ
55472018-01-19 Yao Qi <yao.qi@linaro.org>
5548
5549 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
5550 (arm_linux_init_abi): Install it.
5551
dea445b9
YQ
55522018-01-19 Yao Qi <yao.qi@linaro.org>
5553
5554 * osabi.c (gdb_osabi_names): Extend the regexp for
5555 arm-linux-gnueabihf.
5556
4a17f768
YQ
55572018-01-18 Yao Qi <yao.qi@linaro.org>
5558
5559 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
5560 m_abbrevs.
5561 (abbrev_table::add_abbrev): Update.
5562 (abbrev_table::lookup_abbrev): Update.
5563
d679c21a
YQ
55642018-01-18 Yao Qi <yao.qi@linaro.org>
5565
5566 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
5567
7d937cad
SDJ
55682018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
5569
5570 * compile/compile.c (compile_to_object): Convert "triplet_rx"
5571 to "std::string".
5572
9e14690d
TT
55732018-01-17 Tom Tromey <tom@tromey.com>
5574
5575 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
5576
50a82047
TT
55772018-01-17 Tom Tromey <tom@tromey.com>
5578
5579 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
5580 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
5581 (create_array_type_with_stride): Update.
5582 * dwarf2read.c (set_die_type): Update.
5583
c89b44cd
TT
55842018-01-17 Tom Tromey <tom@tromey.com>
5585
5586 * dwarf2read.c (delayed_method_info): Remove typedef.
5587 (dwarf2_cu::method_info): Now a std::vector.
5588 (add_to_method_list): Update.
5589 (free_delayed_list): Remove.
5590 (compute_delayed_physnames): Update.
5591 (process_full_comp_unit, process_full_type_unit): Clear the method
5592 list. Remove cleanups.
5593 (psymtab_include_file_name): Add name_holder parameter. Use
5594 unique_xmalloc_ptr.
5595 (dwarf_decode_lines): Update.
5596
fcd3b13d
SM
55972018-01-17 Tom Tromey <tom@tromey.com>
5598 Simon Marchi <simon.marchi@ericsson.com>
5599
5600 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
5601 (dwarf2_per_objfile::free_cached_comp_units)
5602 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
5603 (init_cutu_and_read_dies_no_follow): Update.
5604 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
5605 (dwarf2_cu::~dwarf2_cu): New.
5606 (free_heap_comp_unit, free_stack_comp_unit): Remove.
5607 (age_cached_comp_units, free_one_cached_comp_unit): Update.
5608
685af9cd
TT
56092018-01-17 Tom Tromey <tom@tromey.com>
5610 Simon Marchi <simon.marchi@ericsson.com>
5611
5612 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
5613 (struct die_reader_specs) <abbrev_table>: New member.
5614 (struct abbrev_table): Add constructor.
5615 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
5616 <abbrev_obstack>: Now an auto_obstack.
5617 (abbrev_table_up): New typedef.
5618 (init_cu_die_reader): Add abbrev_table parameter.
5619 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
5620 Add result_dwo_abbrev_table.
5621 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
5622 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
5623 Update.
5624 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
5625 parameter.
5626 (skip_children): Update.
5627 (abbrev_table::alloc_abbrev): Rename from
5628 abbrev_table_alloc_abbrev.
5629 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
5630 (abbrev_table::lookup_abbrev): Rename from
5631 abbrev_table_lookup_abbrev.
5632 (abbrev_table_read_table): Return abbrev_table_up.
5633 (abbrev_table_free, abbrev_table_free_cleanup)
5634 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
5635 (load_partial_dies): Update.
5636
5e2db402
TT
56372018-01-17 Tom Tromey <tom@tromey.com>
5638
5639 * dwarf2read.c (dwarf2_compute_name): Update comment.
5640 (read_func_scope, read_variable): Update.
5641 (new_symbol): Remove.
5642 (new_symbol_full): Rename to new_symbol.
5643
ee7f689e 56442018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
5645
5646 PR gdb/16577
5647 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
5648 a warning instead of throwing an error, set section size to 0 and return
5649 NULL.
5650 * gdb_bfd.h (gdb_bfd_map_section): Update description.
5651
4d9b86e1
SM
56522018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5653
5654 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
5655 std::string.
5656 (linux_ptrace_attach_fail_reason_string): Likewise.
5657 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
5658 Likewise.
5659 (linux_ptrace_attach_fail_reason_string): Likewise.
5660 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
5661
a7b2d0fb
SM
56622018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5663
5664 * linux-nat.c (linux_nat_attach): Remove xstrdup.
5665
f517c180
EA
56662018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5667
5668 PR gdb/21559
5669 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5670 checking for fs_base/gs_base fields in struct user_regs_struct.
5671 * configure: Regenerate.
5672
7045b1ca
YQ
56732018-01-17 Yao Qi <yao.qi@linaro.org>
5674
5675 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
5676 function.
5677 (aarch64_linux_init_abi): Install it to gdbarch hook
5678 gcc_target_options.
5679
db422fb2
PA
56802018-01-15 Pedro Alves <palves@redhat.com>
5681
5682 * common/signals-state-save-restore.c
5683 (save_original_signals_state): Fix typos.
5684
ba643918
SDJ
56852017-01-12 Tom Tromey <tom@tromey.com>
5686 Sergio Durigan Junior <sergiodj@redhat.com>
5687
5688 * Makefile.in (install-only): Install gdb-add-index.
5689
906b4aac
JB
56902018-01-12 John Baldwin <jhb@FreeBSD.org>
5691
5692 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
5693
bdf2a94a
AA
56942018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
5695
5696 * infrun.c (keep_going_pass_signal): Clear step-over info when
5697 insert_breakpoints fails.
5698
71d378ae
PA
56992018-01-11 Pedro Alves <palves@redhat.com>
5700
5701 PR gdb/22583
5702 * infrun.c (resume): Rename to ...
5703 (resume_1): ... this.
5704 (resume): Reimplement as wrapper around resume_1.
5705
3cada740
PA
57062018-01-11 Pedro Alves <palves@redhat.com>
5707
5708 PR remote/22597
5709 * remote.c (remote_parse_stop_reply): Default to the last-set
5710 general thread instead of to 'magic_null_ptid'.
5711
618daa93
PA
57122018-01-10 Pedro Alves <palves@redhat.com>
5713
5714 * language.h (language_get_symbol_name_matcher): Rename ...
5715 (get_symbol_name_matcher): ... this.
5716 * language.c (language_get_symbol_name_matcher): Ditto.
5717 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
5718 callers adjusted.
5719
c63d3e8d
PA
57202018-01-10 Pedro Alves <palves@redhat.com>
5721
5722 PR gdb/22670
5723 * dwarf2read.c
5724 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
5725 Adjust to use language_get_symbol_name_matcher instead of
5726 language_defn::la_get_symbol_name_matcher.
5727 * language.c (language_get_symbol_name_matcher): If in Ada mode
5728 and the lookup name is a verbatim match, return Ada's matcher.
5729 * language.h (language_get_symbol_name_matcher): Adjust comment.
5730 (ada_lookup_name_info::verbatim_p):: New method.
5731
d4c2a405
PA
57322018-01-10 Pedro Alves <palves@redhat.com>
5733
5734 PR gdb/22670
5735 * ada-lang.c (ada_collect_symbol_completion_matches): If the
5736 minsym's language is language_auto or language_cplus, pass down
5737 language_ada instead.
5738 * symtab.c (compare_symbol_name): Don't frob symbol language here.
5739
8825213e
PA
57402018-01-10 Pedro Alves <palves@redhat.com>
5741
5742 PR gdb/22670
5743 * minsyms.c (linkage_name_str): New function.
5744 (iterate_over_minimal_symbols): Use it.
5745
2d97a5d9
JB
57462018-01-09 John Baldwin <jhb@FreeBSD.org>
5747
5748 * NEWS: Document that 'info proc' now works on FreeBSD.
5749
92fce24d
JB
57502018-01-09 John Baldwin <jhb@FreeBSD.org>
5751
5752 * configure.ac: Check for kinfo_getfile in libutil.
5753 * configure: Regenerate.
5754 * config.in: Regenerate.
5755 * fbsd-nat.c: Include "fbsd-tdep.h".
5756 (fbsd_fetch_cmdline): New.
5757 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
5758 rather than calling error.
5759 (fbsd_info_proc): New.
5760 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
5761 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
5762 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
5763
262f62f5
JB
57642018-01-09 John Baldwin <jhb@FreeBSD.org>
5765
5766 * fbsd-nat.c (struct free_deleter): Remove.
5767 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
5768
b999e203
JB
57692018-01-09 John Baldwin <jhb@FreeBSD.org>
5770
5771 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
5772 NULL for an empty pathname.
5773
d2176225
JB
57742018-01-09 John Baldwin <jhb@FreeBSD.org>
5775
5776 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
5777 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
5778 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5779 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5780 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
5781 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
5782 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
5783 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
5784 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
5785 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
5786 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
5787 (fbsd_core_fetch_timeval, fbsd_print_sigset)
5788 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
5789 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
5790 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
5791
9c4ac400
ST
57922018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
5793
5794 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
5795 (gnu_xfer_auxv): New function.
5796 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
5797 TARGET_OBJECT_AUXV.
5798
1e5ded6c
YQ
57992018-01-08 Yao Qi <yao.qi@linaro.org>
5800 Simon Marchi <simon.marchi@ericsson.com>
5801
5802 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
5803 common/selftest.c.
5804 (COMMON_OBS): Remove selftest.o.
5805 * configure.ac: Append selftest-arch.c and common/selftest.c to
5806 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
5807 * configure: Re-generated.
5808 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
5809 GDB_SELF_TEST.
5810 (maintenance_info_selftests): Likewise.
5811
04bafb1e
XR
58122018-01-08 Xavier Roirand <roirand@adacore.com>
5813
5814 * ada-valprint.c (val_print_packed_array_elements): Use
5815 proper number of elements when printing an array indexed
5816 by an enumeration type.
5817
518817b3
SM
58182018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5819
5820 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
5821 (dw2_get_file_names_reader): Adjust.
5822 (lookup_dwo_signatured_type): Adjust.
5823 (lookup_dwp_signatured_type): Adjust.
5824 (lookup_signatured_type): Adjust.
5825 (create_type_unit_group): Adjust.
5826 (get_type_unit_group): Adjust.
5827 (process_psymtab_comp_unit_reader): Adjust.
5828 (build_type_psymtabs_reader): Adjust.
5829 (scan_partial_symbols): Adjust.
5830 (add_partial_symbol): Adjust.
5831 (add_partial_subprogram): Adjust.
5832 (peek_die_abbrev): Adjust.
5833 (fixup_go_packaging): Adjust.
5834 (process_imported_unit_die): Adjust.
5835 (dwarf2_compute_name): Adjust.
5836 (dwarf2_physname): Adjust.
5837 (read_import_statement): Adjust.
5838 (handle_DW_AT_stmt_list): Adjust.
5839 (read_file_scope): Adjust.
5840 (read_func_scope): Adjust.
5841 (read_lexical_block_scope): Adjust.
5842 (read_call_site_scope): Adjust.
5843 (read_variable): Adjust.
5844 (dwarf2_rnglists_process): Adjust.
5845 (dwarf2_ranges_process): Adjust.
5846 (dwarf2_ranges_read): Adjust.
5847 (dwarf2_get_pc_bounds): Adjust.
5848 (dwarf2_record_block_ranges): Adjust.
5849 (dwarf2_add_field): Adjust.
5850 (dwarf2_add_member_fn): Adjust.
5851 (read_structure_type): Adjust.
5852 (process_structure_scope): Adjust.
5853 (read_enumeration_type): Adjust.
5854 (read_array_type): Adjust.
5855 (mark_common_block_symbol_computed): Adjust.
5856 (read_common_block): Adjust.
5857 (read_namespace_type): Adjust.
5858 (read_namespace): Adjust.
5859 (read_module_type): Adjust.
5860 (read_tag_pointer_type): Adjust.
5861 (read_tag_ptr_to_member_type): Adjust.
5862 (read_tag_string_type): Adjust.
5863 (read_subroutine_type): Adjust.
5864 (read_typedef): Adjust.
5865 (read_base_type): Adjust.
5866 (attr_to_dynamic_prop): Adjust.
5867 (read_subrange_type): Adjust.
5868 (read_unspecified_type): Adjust.
5869 (dwarf2_read_abbrevs): Adjust.
5870 (load_partial_dies): Adjust.
5871 (read_partial_die): Adjust.
5872 (find_partial_die): Adjust.
5873 (guess_partial_die_structure_name): Adjust.
5874 (fixup_partial_die): Adjust.
5875 (read_attribute_value): Adjust.
5876 (read_addr_index): Adjust.
5877 (read_addr_index_from_leb128): Adjust.
5878 (read_str_index): Adjust.
5879 (dwarf2_string_attr): Adjust.
5880 (get_debug_line_section): Adjust.
5881 (dwarf_decode_line_header): Adjust.
5882 (lnp_state_machine::check_line_address): Adjust.
5883 (dwarf_decode_lines_1): Adjust.
5884 (dwarf_decode_lines): Adjust.
5885 (dwarf2_start_symtab): Adjust.
5886 (var_decode_location): Adjust.
5887 (new_symbol_full): Adjust.
5888 (dwarf2_const_value_data): Adjust.
5889 (dwarf2_const_value_attr): Adjust.
5890 (dwarf2_const_value): Adjust.
5891 (die_type): Adjust.
5892 (die_containing_type): Adjust.
5893 (build_error_marker_type): Adjust.
5894 (lookup_die_type): Adjust.
5895 (guess_full_die_structure_name): Adjust.
5896 (anonymous_struct_prefix): Adjust.
5897 (determine_prefix): Adjust.
5898 (dwarf2_name): Adjust.
5899 (follow_die_ref_or_sig): Adjust.
5900 (follow_die_offset): Adjust.
5901 (follow_die_ref): Adjust.
5902 (follow_die_sig_1): Adjust.
5903 (follow_die_sig): Adjust.
5904 (get_signatured_type): Adjust.
5905 (get_DW_AT_signature_type): Adjust.
5906 (decode_locdesc): Adjust.
5907 (dwarf_decode_macros): Adjust.
5908 (cu_debug_loc_section): Adjust.
5909 (fill_in_loclist_baton): Adjust.
5910 (dwarf2_symbol_mark_computed): Adjust.
5911 (init_one_comp_unit): Don't assign
5912 dwarf2_cu::dwarf2_per_objfile.
5913 (set_die_type): Adjust.
5914
ed2dc618
SM
59152018-01-07 Simon Marchi <simon.marchi@ericsson.com>
5916
5917 * dwarf2read.c (struct mapped_debug_names): Add constructor.
5918 <dwarf2_per_objfile>: New field.
5919 (dwarf2_per_objfile): Remove global.
5920 (get_dwarf2_per_objfile): New function.
5921 (set_dwarf2_per_objfile): New function.
5922 (dwarf2_build_psymtabs_hard): Change objfile parameter to
5923 dwarf2_per_objfile.
5924 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
5925 (read_abbrev_offset): Likewise.
5926 (read_indirect_string): Likewise.
5927 (read_indirect_line_string): Likewise.
5928 (read_indirect_string_at_offset): Likewise.
5929 (read_indirect_string_from_dwz): Likewise.
5930 (dwarf2_find_containing_comp_unit): Change objfile parameter to
5931 dwarf2_per_objfile.
5932 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
5933 (create_all_comp_units): Change objfile parameter to
5934 dwarf2_per_objfile.
5935 (create_all_type_units): Likewise.
5936 (process_queue): Add dwarf2_per_objfile parameter.
5937 (read_and_check_comp_unit_head): Likewise.
5938 (lookup_dwo_unit_in_dwp): Likewise.
5939 (get_dwp_file): Likewise.
5940 (process_cu_includes): Likewise.
5941 (struct free_dwo_file_cleanup_data): New struct.
5942 (dwarf2_has_info): Use get_dwarf2_per_objfile and
5943 set_dwarf2_per_objfile.
5944 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
5945 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
5946 context, adjust calls.
5947 (dw2_instantiate_symtab): Likewise.
5948 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
5949 (dw2_get_cu): Likewise.
5950 (create_cu_from_index_list): Change objfile parameter to
5951 dwarf2_per_objfile.
5952 (create_cus_from_index_list): Get dwarf2_per_objfile from
5953 context, adjust calls.
5954 (create_cus_from_index): Likewise.
5955 (create_signatured_type_table_from_index): Change objfile
5956 parameter to dwarf2_per_objfile.
5957 (create_signatured_type_table_from_debug_names): Change objfile
5958 parameter to dwarf2_per_objfile.
5959 (create_addrmap_from_index): Likewise.
5960 (create_addrmap_from_aranges): Likewise.
5961 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
5962 (dw2_setup): Remove.
5963 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
5964 context.
5965 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
5966 get_dwarf2_per_objfile.
5967 (dw2_forget_cached_source_info): Likewise.
5968 (dw2_map_symtabs_matching_filename): Likewise.
5969 (struct dw2_symtab_iterator) <index>: Remove.
5970 <dwarf2_per_objfile>: New field.
5971 (dw2_symtab_iter_init): Replace index parameter with
5972 dwarf2_per_objfile.
5973 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
5974 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
5975 (dw2_print_stats): Likewise.
5976 (dw2_dump): Likewise.
5977 (dw2_expand_symtabs_for_function): Likewise.
5978 (dw2_expand_all_symtabs): Likewise.
5979 (dw2_expand_symtabs_with_fullname): Likewise.
5980 (dw2_expand_marked_cus): Replace index and objfile parameters
5981 with dwarf2_per_objfile.
5982 (dw_expand_symtabs_matching_file_matcher): Add
5983 dwarf2_per_objfile parameter and adjust calls.
5984 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
5985 adjust calls.
5986 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
5987 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
5988 adjust calls.
5989 (create_cus_from_debug_names_list): Replace objfile parameter
5990 with dwarf2_per_objfile and adjust calls.
5991 (create_cus_from_debug_names): Likewise.
5992 (dwarf2_read_debug_names): Likewise.
5993 (mapped_debug_names::namei_to_name): Adjust call.
5994 (dw2_debug_names_iterator::next): Likewise.
5995 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5996 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
5997 (dw2_debug_names_dump): Likewise.
5998 (dw2_debug_names_expand_symtabs_for_function): Likewise.
5999 (dw2_debug_names_expand_symtabs_matching): Likewise.
6000 (dwarf2_initialize_objfile): Likewise.
6001 (dwarf2_build_psymtabs): Likewise.
6002 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
6003 this_cu.
6004 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
6005 (read_and_check_comp_unit_head): Likewise.
6006 (read_abbrev_offset): Likewise.
6007 (create_debug_type_hash_table): Likewise.
6008 (create_debug_types_hash_table): Likewise.
6009 (create_all_type_units): Replace objfile parameter with
6010 dwarf2_per_objfile.
6011 (add_type_unit): Add dwarf2_per_objfile parameter.
6012 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
6013 with dwarf2_per_objfile.
6014 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
6015 (lookup_dwp_signatured_type): Likewise.
6016 (lookup_signatured_type): Likewise.
6017 (read_cutu_die_from_dwo): Likewise.
6018 (init_tu_and_read_dwo_dies): Likewise.
6019 (init_cutu_and_read_dies): Likewise.
6020 (init_cutu_and_read_dies_no_follow): Likewise.
6021 (allocate_type_unit_groups_table): Add objfile parameter.
6022 (create_type_unit_group): Use dwarf2_per_objfile from cu.
6023 (get_type_unit_group): Likewise.
6024 (process_psymtab_comp_unit): Update call.
6025 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
6026 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
6027 (print_tu_stats): Likewise.
6028 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
6029 in void* parameter.
6030 (build_type_psymtabs): Change objfile parameter to
6031 dwarf2_per_objfile.
6032 (process_skeletonless_type_unit): Use dwarf2_per_objfile
6033 passed in void* parameter.
6034 (process_skeletonless_type_units): Change objfile parameter to
6035 dwarf2_per_objfile.
6036 (set_partial_user): Likewise.
6037 (dwarf2_build_psymtabs_hard): Likewise.
6038 (read_comp_units_from_section): Likewise.
6039 (create_all_comp_units): Likewise.
6040 (scan_partial_symbols): Update calls.
6041 (add_partial_symbol): Likewise.
6042 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
6043 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
6044 (process_queue): Add dwarf2_per_objfile parameter.
6045 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
6046 (compute_compunit_symtab_includes): Likewise.
6047 (process_cu_includes): Add dwarf2_per_objfile parameter.
6048 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
6049 (process_full_type_unit): Likewise.
6050 (process_imported_unit_die): Update call.
6051 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
6052 (read_file_scope): Likewise.
6053 (allocate_dwo_file_hash_table): Add objfile parameter.
6054 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
6055 (create_cus_hash_table): Likewise.
6056 (create_dwp_hash_table): Likewise.
6057 (create_dwo_unit_in_dwp_v1): Likewise.
6058 (create_dwp_v2_section): Likewise.
6059 (create_dwo_unit_in_dwp_v2): Likewise.
6060 (lookup_dwo_unit_in_dwp): Likewise.
6061 (try_open_dwop_file): Likewise.
6062 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
6063 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
6064 cleanup to include a reference to dwarf2_per_objfile.
6065 (open_dwp_file): Add dwarf2_per_objfile parameter.
6066 (open_and_init_dwp_file): Likewise.
6067 (get_dwp_file): Likewise.
6068 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
6069 (queue_and_load_all_dwo_tus): Update call.
6070 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
6071 data.
6072 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
6073 (dwarf2_ranges_process): Likewise.
6074 (dwarf2_get_pc_bounds): Likewise.
6075 (mark_common_block_symbol_computed): Likewise.
6076 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
6077 (dwarf2_read_abbrevs): Update call.
6078 (read_partial_die): Use dwarf2_per_objfile from cu.
6079 (find_partial_die): Likewise.
6080 (fixup_partial_die): Likewise.
6081 (read_attribute_value): Likewise.
6082 (read_indirect_string_at_offset_from): Add objfile parameter.
6083 (read_indirect_string_at_offset): Add dwarf2_per_objfile
6084 parameter.
6085 (read_indirect_string_from_dwz): Add objfile parameter.
6086 (read_indirect_string): Add objfile parameter.
6087 (read_addr_index_1): Add dwarf2_per_objfile parameter.
6088 (read_addr_index): Use dwarf2_per_objfile from cu.
6089 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
6090 call dw2_setup.
6091 (read_str_index): Use dwarf2_per_objfile from cu.
6092 (get_debug_line_section): Likewise.
6093 (read_formatted_entries): Add dwarf2_per_objfile parameter.
6094 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
6095 (new_symbol_full): Use dwarf2_per_objfile from cu.
6096 (build_error_marker_type): Likewise.
6097 (lookup_die_type): Likewise.
6098 (determine_prefix): Likewise.
6099 (follow_die_offset): Likewise.
6100 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
6101 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
6102 (dwarf2_fetch_die_type_sect_off): Likewise.
6103 (dwarf2_get_die_type): Likewise.
6104 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
6105 (get_signatured_type): Likewise.
6106 (get_DW_AT_signature_type): Likewise.
6107 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
6108 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
6109 (cu_debug_loc_section): Likewise.
6110 (fill_in_loclist_baton): Likewise.
6111 (dwarf2_symbol_mark_computed): Likewise.
6112 (dwarf2_find_containing_comp_unit): Change objfile parameter to
6113 dwarf2_per_objfile.
6114 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
6115 parameter.
6116 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
6117 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
6118 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
6119 (set_die_type): Use dwarf2_free_objfile from cu.
6120 (get_die_type_at_offset): Likewise.
6121 (dwarf2_per_objfile_free): Don't assign global variable.
6122 (debug_names) <constructor>: Add dwarf2_per_objfile
6123 parameter, update m_debugstrlookup construction.
6124 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
6125 parameter.
6126 <m_dwarf2_per_objfile>: New field.
6127 <lookup>: Use m_dwarf2_per_objfile.
6128 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
6129 (psyms_seen_size): Likewise.
6130 (write_gdbindex): Replace objfile parameter with
6131 dwarf2_per_objfile.
6132 (write_debug_names): Likewise.
6133 (write_psymtabs_to_index): Likewise.
6134 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
6135 calls.
6136
e3b94546
SM
61372018-01-07 Simon Marchi <simon.marchi@ericsson.com>
6138
6139 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
6140 <dwarf2_per_objfile>: New field.
6141 (struct dwarf2_per_cu_data) <objfile>: Remove.
6142 <dwarf2_per_objfile>: New field.
6143 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
6144 of objfile.
6145 (create_signatured_type_table_from_index): Likewise.
6146 (create_debug_type_hash_table): Likewise.
6147 (fill_in_sig_entry_from_dwo_entry): Likewise.
6148 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
6149 (create_type_unit_group): Assign dwarf2_per_objfile instead of
6150 objfile.
6151 (create_partial_symtab): Access objfile through
6152 dwarf2_per_objfile.
6153 (process_psymtab_comp_unit_reader): Likewise.
6154 (read_comp_units_from_section): Likewise.
6155 (scan_partial_symbols): Likewise.
6156 (add_partial_symbol): Likewise.
6157 (add_partial_subprogram): Likewise.
6158 (peek_die_abbrev): Likewise.
6159 (fixup_go_packaging): Likewise.
6160 (process_full_comp_unit): Likewise.
6161 (process_full_type_unit): Likewise.
6162 (process_imported_unit_die): Likewise.
6163 (dwarf2_compute_name): Likewise.
6164 (dwarf2_physname): Likewise.
6165 (read_import_statement): Likewise.
6166 (create_cus_hash_table): Assign dwarf2_physname instead of
6167 objfile.
6168 (read_func_scope): Access objfile through dwarf2_per_objfile.
6169 (read_lexical_block_scope): Likewise.
6170 (read_call_site_scope): Likewise.
6171 (read_variable): Likewise.
6172 (dwarf2_rnglists_process): Likewise.
6173 (dwarf2_ranges_process): Likewise.
6174 (dwarf2_ranges_read): Likewise.
6175 (dwarf2_record_block_ranges): Likewise.
6176 (dwarf2_add_field): Likewise.
6177 (dwarf2_add_member_fn): Likewise.
6178 (read_structure_type): Likewise.
6179 (process_structure_scope): Likewise.
6180 (read_enumeration_type): Likewise.
6181 (read_array_type): Likewise.
6182 (read_common_block): Likewise.
6183 (read_namespace_type): Likewise.
6184 (read_namespace): Likewise.
6185 (read_module_type): Likewise.
6186 (read_tag_pointer_type): Likewise.
6187 (read_tag_ptr_to_member_type): Likewise.
6188 (read_tag_string_type): Likewise.
6189 (read_subroutine_type): Likewise.
6190 (read_typedef): Likewise.
6191 (read_base_type): Likewise.
6192 (attr_to_dynamic_prop): Likewise.
6193 (read_subrange_type): Likewise.
6194 (read_unspecified_type): Likewise.
6195 (load_partial_dies): Likewise.
6196 (read_partial_die): Likewise.
6197 (find_partial_die): Likewise.
6198 (guess_partial_die_structure_name): Likewise.
6199 (fixup_partial_die): Likewise.
6200 (read_attribute_value): Likewise.
6201 (read_addr_index_from_leb128): Likewise.
6202 (dwarf2_read_addr_index): Likewise.
6203 (dwarf2_string_attr): Likewise.
6204 (lnp_state_machine::check_line_address): Likewise.
6205 (dwarf_decode_lines_1): Likewise.
6206 (dwarf_decode_lines): Likewise.
6207 (dwarf2_start_symtab): Likewise.
6208 (var_decode_location): Likewise.
6209 (new_symbol_full): Likewise.
6210 (dwarf2_const_value_data): Likewise.
6211 (dwarf2_const_value_attr): Likewise.
6212 (dwarf2_const_value): Likewise.
6213 (die_type): Likewise.
6214 (die_containing_type): Likewise.
6215 (lookup_die_type): Likewise.
6216 (guess_full_die_structure_name): Likewise.
6217 (anonymous_struct_prefix): Likewise.
6218 (dwarf2_name): Likewise.
6219 (follow_die_ref_or_sig): Likewise.
6220 (follow_die_offset): Likewise.
6221 (follow_die_ref): Likewise.
6222 (dwarf2_fetch_die_loc_sect_off): Likewise.
6223 (dwarf2_fetch_constant_bytes): Likewise.
6224 (dwarf2_fetch_die_type_sect_off): Likewise.
6225 (dwarf2_get_die_type): Likewise.
6226 (follow_die_sig): Likewise.
6227 (decode_locdesc): Likewise.
6228 (dwarf2_per_cu_objfile): Likewise.
6229 (dwarf2_per_cu_text_offset): Likewise.
6230 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
6231 objfile.
6232 (set_die_type): Access objfile through
6233 dwarf2_per_objfile.
6234
b01ba14d
SM
62352018-01-07 Simon Marchi <simon.marchi@ericsson.com>
6236
6237 * valprint.c (converted_character_d): Remove typedef.
6238 (DEF_VEC_O (converted_character_d)): Remove.
6239 (count_next_character): Use std::vector.
6240 (print_converted_chars_to_obstack): Likewise.
6241 (generic_printstr): Likewise.
6242
4d0fdd9b
SM
62432018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6244
6245 * xml-support.h (struct gdb_xml_value): Add constructor.
6246 <value>: Change type to unique_xmalloc_ptr.
6247 (gdb_xml_value_s): Remove typedef.
6248 (DEF_VEC_O (gdb_xml_value_s)): Remove.
6249 (gdb_xml_element_start_handler): Change parameter type to
6250 std::vector.
6251 (xml_find_attribute): Likewise.
6252 * xml-support.c (xml_find_attribute): Change parameter type to
6253 std::vector and adjust.
6254 (gdb_xml_values_cleanup): Remove.
6255 (gdb_xml_parser::start_element): Adjust to std::vector.
6256 (xinclude_start_include): Change paraeter type to std::vector
6257 and adjust.
6258 * btrace.c (check_xml_btrace_version): Likewise.
6259 (parse_xml_btrace_block): Likewise.
6260 (parse_xml_btrace_pt_config_cpu): Likewise.
6261 (parse_xml_btrace_pt): Likewise.
6262 (parse_xml_btrace_conf_bts): Likewise.
6263 (parse_xml_btrace_conf_pt): Likewise.
6264 * memory-map.c (memory_map_start_memory): Likewise.
6265 (memory_map_start_property): Likewise.
6266 * osdata.c (osdata_start_osdata): Likewise.
6267 (osdata_start_item): Likewise.
6268 (osdata_start_column): Likewise.
6269 * remote.c (start_thread): Likewise.
6270 * solib-aix.c (library_list_start_library): Likewise.
6271 (library_list_start_list): Likewise.
6272 * solib-svr4.c (library_list_start_library): Likewise.
6273 (svr4_library_list_start_list): Likewise.
6274 * solib-target.c (library_list_start_segment): Likewise.
6275 (library_list_start_section): Likewise.
6276 (library_list_start_library): Likewise.
6277 (library_list_start_list): Likewise.
6278 * tracepoint.c (traceframe_info_start_memory): Likewise.
6279 (traceframe_info_start_tvar): Likewise.
6280 * xml-syscall.c (syscall_start_syscall): Likewise.
6281 * xml-tdesc.c (tdesc_start_target): Likewise.
6282 (tdesc_start_feature): Likewise.
6283 (tdesc_start_reg): Likewise.
6284 (tdesc_start_union): Likewise.
6285 (tdesc_start_struct): Likewise.
6286 (tdesc_start_flags): Likewise.
6287 (tdesc_start_enum): Likewise.
6288 (tdesc_start_field): Likewise.
6289 (tdesc_start_enum_value): Likewise.
6290 (tdesc_start_vector): Likewise.
6291
f979c73f
SM
62922018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 * extension.h (struct xmethod_worker) <clone>: Remove.
6295 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
6296 Remove.
6297 (python_xmethod_worker::clone): Remove.
6298 * valops.c (find_overload_match): Use std::move instead of
6299 clone.
6300
ba18742c
SM
63012018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6302
6303 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
6304 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
6305 <free_xmethod_worker_data>: Remove.
6306 <get_matching_xmethod_workers>: Chance VEC to std::vector.
6307 <get_xmethod_arg_types>: Remove.
6308 <get_xmethod_result_type>: Remove.
6309 <invoke_xmethod>: Remove.
6310 * extension.c (new_xmethod_worker): Remove.
6311 (clone_xmethod_worker): Remove.
6312 (get_matching_xmethod_workers): Return void, pass std::vector by
6313 pointer.
6314 (get_xmethod_arg_types): Rename to...
6315 (xmethod_worker::get_arg_types): ... this, and adjust.
6316 (get_xmethod_result_type): Rename to...
6317 (xmethod_worker::get_result_type): ... this, and adjust.
6318 (invoke_xmethod): Remove.
6319 (free_xmethod_worker): Remove.
6320 (free_xmethod_worker_vec): Remove.
6321 * extension.h (enum ext_lang_rc): Move here from
6322 extension-priv.h.
6323 (struct xmethod_worker): Add constructor and destructor.
6324 <data>: Remove.
6325 <value>: Remove.
6326 <invoke, clone, do_get_result_type, do_get_arg_types>: New
6327 virtual pure methods.
6328 <get_arg_types, get_result_type>: New methods.
6329 (xmethod_worker_ptr): Remove typedef.
6330 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
6331 (xmethod_worker_vec): Remove typedef.
6332 (xmethod_worker_up): New typedef.
6333 (invoke_xmethod): Remove.
6334 (clone_xmethod_worker): Remove.
6335 (free_xmethod_worker): Remove.
6336 (free_xmethod_worker_vec): Remove.
6337 (get_xmethod_arg_types): Remove.
6338 (get_xmethod_result_type): Remove.
6339 * valops.c (find_method_list): Use std::vector, don't use
6340 intermediate vector.
6341 (value_find_oload_method_list): Use std::vector.
6342 (find_overload_match): Use std::vector.
6343 (find_oload_champ): Use std::vector.
6344 * value.c (value_free): Use operator delete.
6345 (value_of_xmethod): Rename to...
6346 (value_from_xmethod): ... this. Don't assign
6347 xmethod_worker::value, take rvalue-reference.
6348 (result_type_of_xmethod): Adjust.
6349 (call_xmethod): Adjust.
6350 * value.h: Include extension.h.
6351 (struct xmethod_worker): Don't forward-declare.
6352 (value_of_xmethod): Rename to...
6353 (value_from_xmethod): ... this, take rvalue-reference.
6354 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
6355 (struct python_xmethod_worker): ... this, add constructor and
6356 destructor.
6357 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
6358 (gdbpy_free_xmethod_worker_data): Rename to...
6359 (python_xmethod_worker::~python_xmethod_worker): ... this and
6360 adjust.
6361 (gdbpy_clone_xmethod_worker_data): Rename to...
6362 (python_xmethod_worker::clone): ... this and adjust.
6363 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
6364 temporary vector.
6365 (gdbpy_get_xmethod_arg_types): Rename to...
6366 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
6367 (gdbpy_get_xmethod_result_type): Rename to...
6368 (python_xmethod_worker::do_get_result_type): ... this and
6369 adjust.
6370 (gdbpy_invoke_xmethod): Rename to...
6371 (python_xmethod_worker::invoke): ... this and adjust.
6372 (new_python_xmethod_worker): Rename to...
6373 (python_xmethod_worker::python_xmethod_worker): ... this and
6374 adjust.
6375 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
6376 Remove.
6377 (gdbpy_free_xmethod_worker_data): Remove.
6378 (gdbpy_get_matching_xmethod_workers): Use std::vector.
6379 (gdbpy_get_xmethod_arg_types): Remove.
6380 (gdbpy_get_xmethod_result_type): Remove.
6381 (gdbpy_invoke_xmethod): Remove.
6382 * python/python.c (python_extension_ops): Remove obsolete
6383 callbacks.
6384
e379cee6
PA
63852018-01-05 Pedro Alves <palves@redhat.com>
6386
6387 PR gdb/18653
6388 * common/signals-state-save-restore.c
6389 (save_original_signals_state): New parameter 'quiet'. Warn if we
6390 find a custom handler preinstalled, instead of internal erroring.
6391 But only warn if !quiet.
6392 * common/signals-state-save-restore.h
6393 (save_original_signals_state): New parameter 'quiet'.
6394 * main.c (captured_main_1): Move save_original_signals_state call
6395 after option handling, and pass QUIET.
6396
a655456c
PA
63972018-01-05 Pedro Alves <palves@redhat.com>
6398
6399 * spu-tdep.c (spu_catch_start): Pass
6400 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
6401
de63c46b
PA
64022018-01-05 Pedro Alves <palves@redhat.com>
6403
6404 PR gdb/22670
6405 * ada-lang.c (literal_symbol_name_matcher): New function.
6406 (ada_get_symbol_name_matcher): Use it for
6407 symbol_name_match_type::SEARCH_NAME.
6408 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
6409 it down instead of assuming symbol_name_match_type::FULL.
6410 * block.h (block_lookup_symbol): New parameter 'match_type'.
6411 * c-valprint.c (print_unpacked_pointer): Use
6412 lookup_symbol_search_name instead of lookup_symbol.
6413 * compile/compile-object-load.c (get_out_value_type): Pass down
6414 symbol_name_match_type::SEARCH_NAME.
6415 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
6416 symbol_name_match_type::FULL.
6417 * cp-support.c (cp_get_symbol_name_matcher): Handle
6418 symbol_name_match_type::SEARCH_NAME.
6419 * infrun.c (insert_exception_resume_breakpoint): Use
6420 lookup_symbol_search_name.
6421 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
6422 * psymtab.c (maintenance_check_psymtabs): Use
6423 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
6424 * stack.c (print_frame_args): Use lookup_symbol_search_name and
6425 SYMBOL_SEARCH_NAME.
6426 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
6427 if symbol_name_match_type::SEARCH_NAME.
6428 (lookup_symbol_in_language): Pass down
6429 symbol_name_match_type::FULL.
6430 (lookup_symbol_search_name): New.
6431 (lookup_language_this): Pass down
6432 symbol_name_match_type::SEARCH_NAME.
6433 (lookup_symbol_aux, lookup_local_symbol): New parameter
6434 'match_type'. Pass it down.
6435 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
6436 (lookup_symbol_search_name): New declaration.
6437 (lookup_symbol_in_block): New 'match_type' parameter.
6438
f98fc17b
PA
64392018-01-05 Pedro Alves <palves@redhat.com>
6440
6441 PR gdb/22670
6442 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
6443 ada_lookup_symbol.
6444 (ada_lookup_symbol): Reimplement in terms of
6445 ada_lookup_symbol_list, bits factored out from
6446 ada_lookup_encoded_symbol.
6447
342f8240
JB
64482018-01-05 Joel Brobecker <brobecker@adacore.com>
6449
6450 * ada-exp.y (write_object_renaming): When subscripting an array
6451 using a symbol as the index, pass the block in call to
6452 ada_lookup_encoded_symbol when looking that symbol up.
6453
7150d33c
JG
64542018-01-05 Jerome Guitton <guitton@adacore.com>
6455
6456 * ada-lang.c (ada_array_length): Use ada_index_type instead of
6457 TYPE_INDEX_TYPE.
6458
cc0e770c
JB
64592018-01-05 Joel Brobecker <brobecker@adacore.com>
6460
6461 * ada-lang.c (ada_to_fixed_value_create): Add handling of
6462 the case where VALUE_LVAL (val0) is not lval_memory.
6463
f79da888 64642018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
6465
6466 * ada-valprint.c (print_optional_low_bound): Handle
6467 character-indexed array printing like boolean-indexed array
6468 printing.
6469
cd385f94
JB
64702018-01-05 Joel Brobecker <brobecker@adacore.com>
6471
6472 * NEWS: Create a new section for the next release branch.
6473 Rename the section of the current branch, now that it has
6474 been cut.
6475
09aca949
JB
64762018-01-05 Joel Brobecker <brobecker@adacore.com>
6477
6478 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
6479 * version.in: Bump version to 8.1.50.DATE-git.
6480
9f757bf7
XR
64812018-01-03 Xavier Roirand <roirand@adacore.com>
6482
6483 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
6484 Add field.
6485 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
6486 Add field.
6487 (default_exception_support_info) <catch_handlers_sym>: Add field.
6488 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
6489 (ada_exception_name_addr_1): Add "catch handlers" handling.
6490 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
6491 Update all callers.
6492 (create_excep_cond_exprs) <ex>: Add parameter.
6493 (re_set_exception): Update create_excep_cond_exprs call.
6494 (print_it_exception, print_one_exception, print_mention_exception)
6495 (print_recreate_exception): Add "catch handler" handling.
6496 (allocate_location_catch_handlers, re_set_catch_handlers)
6497 (check_status_catch_handlers, print_it_catch_handlers)
6498 (print_one_catch_handlers, print_mention_catch_handlers)
6499 (print_recreate_catch_handlers): New function.
6500 (catch_handlers_breakpoint_ops): New variable.
6501 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
6502 Add parameter. Add "catch handler" handling.
6503 (ada_exception_sym_name, ada_exception_breakpoint_ops):
6504 Add "catch handler" handling.
6505 (ada_exception_catchpoint_cond_string): Add "catch handler"
6506 handling.
6507 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
6508 call.
6509 (catch_ada_handlers_command): New function.
6510 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
6511 operations structure.
6512 (_initialize_ada_language): Add "catch handlers" command entry.
6513 * NEWS: Document "catch handlers" feature.
6514
9fe561ab
JB
65152018-01-02 Joel Brobecker <brobecker@adacore.com>
6516
6517 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
6518 account when creating the array type of the slice.
6519 (ada_value_slice): Likewise.
6520
a405673c
JB
65212018-01-02 Joel Brobecker <brobecker@adacore.com>
6522
6523 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
6524 New enum value.
6525 (create_array_type_with_stride): Add byte_stride_prop parameter.
6526 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
6527 New parameter. Update all callers in this file.
6528 (array_type_has_dynamic_stride): New function.
6529 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
6530 of arrays with dynamic byte strides.
6531 * dwarf2read.c (read_array_type): Add support for dynamic
6532 DW_AT_byte_stride attributes.
6533
74a2f8ff
JB
65342018-01-02 Joel Brobecker <brobecker@adacore.com>
6535
6536 * dwarf2read.c (read_unspecified_type): Treat
6537 DW_TAG_enumeration_type DIEs from Ada units as stubs.
6538
e2882c85
JB
65392018-01-01 Joel Brobecker <brobecker@adacore.com>
6540
6541 Update copyright year range in all GDB files.
6542
1690bb24
JB
65432018-01-01 Joel Brobecker <brobecker@adacore.com>
6544
6545 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
6546 and gdb/testsuite/gdb.base/step-line.c.
6547
0f0c98a8
JB
65482018-01-01 Joel Brobecker <brobecker@adacore.com>
6549
6550 * copyright.py (main): Dump the contents of
6551 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
6552 even if BY_HAND is empty.
6553
82e1e79a
JB
65542018-01-01 Joel Brobecker <brobecker@adacore.com>
6555
6556 * top.c (print_gdb_version): Update Copyright year in version
6557 message.
6558
053f54e5 65592018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 6560
053f54e5 6561 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 6562
053f54e5 6563For older changes see ChangeLog-2017.
c906108c
SS
6564\f
6565Local Variables:
6566mode: change-log
6567left-margin: 8
6568fill-column: 74
6569version-control: never
57da7796 6570coding: utf-8
c906108c 6571End:
This page took 2.810466 seconds and 4 git commands to generate.