Remove the "listhead" argument from finish_block
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c233e9c6
TT
12018-07-20 Tom Tromey <tom@tromey.com>
2
3 * xcoffread.c (read_xcoff_symtab): Update.
4 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5 Update.
6 * dbxread.c (process_one_symbol): Update.
7 * coffread.c (coff_symtab_read): Update.
8 * buildsym.h (finish_block): Update.
9 * buildsym.c (finish_block): Remove "listhead" argument.
10 (end_symtab_get_static_block): Update.
11
5ac04550
TT
122018-07-20 Tom Tromey <tom@tromey.com>
13
14 * buildsym.h (class scoped_free_pendings): Remove constructor.
15 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
16 method.
17 <m_pending_block_obstack, m_pending_blocks>: New members.
18 (pending_block_obstack, pending_blocks): Remove.
19 (scoped_free_pendings::scoped_free_pendings): Default.
20 (~scoped_free_pendings): Update.
21 (free_pending_blocks): Remove.
22 (finish_block_internal, record_pending_block, make_blockvector)
23 (end_symtab_get_static_block, augment_type_symtab, push_context)
24 (buildsym_init): Update.
25
7ea05a7b
TT
262018-07-20 Tom Tromey <tom@tromey.com>
27
28 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
29 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
30 members.
31 (pending_addrmap, pending_addrmap_obstack)
32 (pending_addrmap_interesting): Remove.
33 (scoped_free_pendings, record_block_range, make_blockvector)
34 (prepare_for_building, reset_symtab_globals, buildsym_init):
35 Update.
36
3c65e5b3
TT
372018-07-20 Tom Tromey <tom@tromey.com>
38
39 * xcoffread.c (process_linenos): Update.
40 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
41 * mdebugread.c (psymtab_to_symtab_1): Update.
42 * dwarf2read.c (setup_type_unit_groups)
43 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
44 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
45 * dbxread.c (process_one_symbol): Update.
46 * coffread.c (coff_symtab_read, enter_linenos)
47 (process_coff_symbol): Update.
48 * buildsym.h (current_subfile): Don't declare.
49 (get_current_subfile): Declare.
50 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
51 member.
52 (start_subfile, free_buildsym_compunit, push_subfile)
53 (prepare_for_building, start_symtab): Update.
54 (get_current_subfile): New function.
55
a60f3166
TT
562018-07-20 Tom Tromey <tom@tromey.com>
57
58 * coffread.c (coff_symtab_read): Update.
59 * xcoffread.c (read_xcoff_symtab): Update.
60 * dwarf2read.c (new_symbol): Update.
61 (read_func_scope, read_lexical_block_scope): Update.
62 * dbxread.c (process_one_symbol): Update.
63 * buildsym.h (context_stack, context_stack_depth): Don't declare.
64 (outermost_context_p): Remove macro.
65 (outermost_context_p, get_current_context_stack)
66 (get_context_stack_depth): Declare.
67 (pop_context): Return struct context_stack.
68 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
69 member.
70 (context_stack_size): Remove.
71 (INITIAL_CONTEXT_STACK_SIZE): Remove.
72 (prepare_for_building, end_symtab_get_static_block)
73 (augment_type_symtab, push_context): Update.
74 (pop_context): Return struct context_stack.
75 (outermost_context_p, get_current_context_stack)
76 (get_context_stack_depth): New functions.
77 (buildsym_init): Update.
78
56ba65a0
TT
792018-07-20 Tom Tromey <tom@tromey.com>
80
81 * rust-exp.y: Now a pure parser. Update all rules.
82 (%union): Move earlier.
83 (current_parser, work_obstack): Remove globals.
84 (rust_parser, ~rust_parser): Update.
85 (class rust_parser) <copy_name, concat3, crate_name, super_name,
86 lex_character, lex_number, lex_string, lex_identifier,
87 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
88 convert_name, convert_params_to_expression,
89 convert_ast_to_expression, ast_basic_type, ast_operation,
90 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
91 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
92 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
93 ast_array_type, ast_slice_type, ast_reference_type,
94 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
95 (rust_parse): Update.
96 (rustyyerror, rustyylex): Add parser parameter.
97 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
98 (rust_lex_stringish_test, rust_lex_test_sequence)
99 (rust_lex_test_trailing_dot, rust_lex_test_completion)
100 (rust_lex_test_push_back, rust_lex_tests): Update.
101
4c693332
PA
1022018-07-19 Pedro Alves <palves@redhat.com>
103
104 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
105 gdb::unique_xmalloc_ptr.
106 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
107 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
108 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
109 copy-initialization.
110 * guile/scm-pretty-print.c (ppscm_print_children): Use
111 gdb::unique_xmalloc_ptr instead of cleanups.
112 (gdbscm_apply_val_pretty_printer): Remove cleanups.
113 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
114 gdb::unique_xmalloc_ptr.
115 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
116 Adjust to use gdb::unique_xmalloc_ptr.
117 * guile/scm-utils.c (extract_arg): Adjust.
118 * guile/scm-value.c (gdbscm_value_field): Adjust to use
119 gdb::unique_xmalloc_ptr instead of a cleanup.
120
4581dc82
TT
1212018-07-19 Tom Tromey <tom@tromey.com>
122
123 * utils.c (do_value_free_to_mark)
124 (make_cleanup_value_free_to_mark): Remove.
125 * utils.h (make_cleanup_value_free_to_mark): Remove.
126
43cc6c3a
PA
1272018-07-19 Pedro Alves <palves@redhat.com>
128
129 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
130 forwarding reference.
131
3a5f2a48
PA
1322018-07-18 Pedro Alves <palves@redhat.com>
133
134 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
135 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
136 cleanup.
137
557e56be
PA
1382018-07-18 Pedro Alves <palves@redhat.com>
139
140 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
141 exceptions.
142 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
143 (gdbscm_wrap): New.
144 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
145 directly instead of a cleanup.
146 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
147 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
148 (vlscm_binop_gdbthrow): New, factored out from ...
149 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
150 (vlscm_rich_compare): Use gdbscm_wrap.
151 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
152 instead of a cleanup.
153 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
154 cleanup.
155 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
156 Use xfree directly instead of a cleanup.
157 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
158 Adjust to use gdbscm_wrap and scoped_value_mark.
159 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
160 (gdbscm_value_address, gdbscm_value_dereference)
161 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
162 scoped_value_mark.
163 (gdbscm_value_dynamic_type): Use scoped_value_mark.
164 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
165 scoped_value_mark.
166 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
167 gdbscm_wrap and scoped_value_mark.
168 (gdbscm_value_to_string): Use xfree directly instead of a
169 cleanup. Move 'buffer' unique_ptr to TRY scope.
170 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
171 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
172 scoped_value_mark.
173 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
174 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
175 scoped_value_mark.
176 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
177 gdbscm_wrap.
178
42dc7699
TV
1792018-07-18 Tom de Vries <tdevries@suse.de>
180
181 * findvar.c (default_read_var_value): Also resolve dynamic type for
182 LOC_OPTIMIZED_OUT vars.
183
6592ceed
MR
1842018-07-18 Maciej W. Rozycki <macro@mips.com>
185
186 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
187 decoding.
188
c6c6149a
TT
1892018-07-17 Tom Tromey <tom@tromey.com>
190
191 * guile/scm-param.c (pascm_set_func, pascm_show_func)
192 (compute_enum_list, pascm_set_param_value_x)
193 (gdbscm_parameter_value): Update.
194 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
195 (gdbscm_scm_to_host_string): Update.
196 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
197 Update.
198 * guile/scm-cmd.c (cmdscm_add_completion): Update.
199 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
200 * guile/scm-string.c (gdbscm_scm_to_string): Return
201 unique_xmalloc_ptr.
202 (gdbscm_scm_to_host_string): Likewise.
203
a1a31cb8
TT
2042018-07-17 Tom Tromey <tom@tromey.com>
205
206 * guile/guile.c (gdbscm_eval_from_control_command): Update.
207 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
208 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
209 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
210 unique_xmalloc_ptr.
211
15bf3002
TT
2122018-07-17 Tom Tromey <tom@tromey.com>
213
214 * guile/scm-param.c (pascm_signal_setshow_error): Update.
215 * guile/guile-internal.h (gdbscm_exception_message_to_string):
216 Update.
217 * guile/scm-cmd.c (cmdscm_function): Update.
218 * guile/scm-pretty-print.c
219 (ppscm_print_exception_unless_memory_error): Update.
220 * guile/scm-exception.c (gdbscm_exception_message_to_string):
221 Return unique_xmalloc_ptr.
222
7eb1a66c
TT
2232018-07-17 Tom Tromey <tom@tromey.com>
224
225 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
226 Use string_printf.
227
ce73f310
JW
2282018-07-17 Jim Wilson <jimw@sifive.com>
229
27724bad
JW
230 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
231 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
232 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
233 unecessary braces after EF_RISCV_RVC test. Delete call to
234 set_gdbarch_decr_pc_after_break.
235
ce73f310
JW
236 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
237 RISCV_LAST_FP_REGNUM + 1.
238 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
239
056dec39
TT
2402018-07-17 Tom Tromey <tom@tromey.com>
241
242 * configure.ac: Remove --disable-gdbcli.
243 * configure: Rebuild.
244 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
245 (SUBDIR_CLI_CFLAGS): Remove.
246 (SFILES): Use SUBDIR_CLI_SRCS.
247 (COMMON_OBS): Use SUBDIR_CLI_OBS.
248
4735f0ed
TT
2492018-07-17 Tom Tromey <tom@tromey.com>
250
251 PR gdb/18624:
252 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
253
117a0e99
JW
2542018-07-16 Jim Wilson <jimw@sifive.com>
255
256 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
257
8a67aaa8
SM
2582018-07-16 Simon Marchi <simon.marchi@ericsson.com>
259
260 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
261 variable.
262 (libunwind_frame_sniffer): Likewise.
263 (libunwind_frame_prev_register): Likewise.
264 (libunwind_sigtramp_frame_sniffer): Likewise.
265 * ia64-tdep.c (ia64_access_reg): Likewise.
266 (ia64_access_rse_reg): Likewise.
267 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
268 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
269
ec74dcd8
SM
2702018-07-16 Simon Marchi <simon.marchi@ericsson.com>
271
272 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
273
a700e753
SM
2742018-07-16 Simon Marchi <simon.marchi@ericsson.com>
275
276 * remote-sim.c (gdbsim_target::close,
277 gdbsim_target::mourn_inferior): Remove unused variables.
278
8b411ff8
SM
2792018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
280
281 * ia64-tdep.c (ktab_buf): New global.
282 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
283 (get_kernel_table): Adjust.
284
edb0470b
TT
2852018-07-16 Tom Tromey <tom@tromey.com>
286
287 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
288 * dwarf2read.c (using_directives, new_symbol): Use
289 outermost_context_p.
290 * dbxread.c (process_one_symbol): Use outermost_context_p.
291 * coffread.c (coff_symtab_read): Use outermost_context_p.
292
6cccc9a8
TT
2932018-07-16 Tom Tromey <tom@tromey.com>
294
295 * dwarf2read.c (using_directives, read_func_scope)
296 (read_lexical_block_scope): Update.
297 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
298 * buildsym.h (local_using_directives, global_using_directives):
299 Don't declare.
300 (get_local_using_directives, set_local_using_directives)
301 (get_global_using_directives): Declare.
302 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
303 m_global_using_directives>: New members.
304 (finish_block_internal, prepare_for_building)
305 (reset_symtab_globals, end_symtab_get_static_block)
306 (push_context): Update.
307 (get_local_using_directives, set_local_using_directives)
308 (get_global_using_directives): New functions.
309 (buildsym_init): Update.
310
652788a7
TT
3112018-07-16 Tom Tromey <tom@tromey.com>
312
313 * xcoffread.c (xcoff_initial_scan): Don't call
314 free_pending_blocks.
315 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
316 * buildsym.h (class scoped_free_pendings): Add constructor.
317 (free_pending_blocks): Don't declare.
318 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
319 (free_pending_blocks): Now static.
320
8419ee53
TT
3212018-07-16 Tom Tromey <tom@tromey.com>
322
323 * buildsym.h (push_subfile, pop_subfile): Update declarations.
324 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
325 member.
326 (struct subfile_stack): Remove.
327 (subfile_stack): Remove.
328 (push_subfile, pop_subfile, buildsym_init): Update.
329
ccdac490
TT
3302018-07-16 Tom Tromey <tom@tromey.com>
331
332 * buildsym.c (push_subfile): Use gdb_assert.
333 (pop_subfile): Use gdb_assert.
334
43130d6f
TT
3352018-07-16 Tom Tromey <tom@tromey.com>
336
337 * buildsym.h (merge_symbol_lists): Remove.
338 * buildsym.c (merge_symbol_lists): Remove.
339
77d6f1aa
TT
3402018-07-16 Tom Tromey <tom@tromey.com>
341
342 * stabsread.c (scan_file_globals): Update comment.
343 * stabsread.h (scan_file_globals): Move from buildsym.h.
344 * buildsym.h (scan_file_globals): Move to stabsread.h.
345
2c722d18
TT
3462018-07-16 Tom Tromey <tom@tromey.com>
347
348 * xcoffread.c (xcoff_new_init): Update.
349 * mipsread.c (mipscoff_new_init): Update.
350 * mdebugread.c (mdebug_build_psymtabs): Update.
351 * elfread.c (elf_new_init): Update.
352 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
353 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
354 * buildsym.h (buildsym_new_init): Don't declare.
355 * buildsym.c (buildsym_new_init): Remove.
356
5985ac61
TT
3572018-07-16 Tom Tromey <tom@tromey.com>
358
359 * stabsread.h (within_function): Move from buildsym.h.
360 * stabsread.c (start_stabs): Clear within_function.
361 * coffread.c (coff_start_symtab): Clear within_function.
362 * buildsym.h (within_function): Move to stabsread.h.
363 * buildsym.c (prepare_for_building): Update.
364
6b84eeb2
TT
3652018-07-16 Tom Tromey <tom@tromey.com>
366
367 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
368 * dwarf2read.c (dwarf2_start_symtab): Don't set
369 processing_gcc_compilation.
370 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
371
2150c3ef
TT
3722018-07-16 Tom Tromey <tom@tromey.com>
373
374 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
375 (next_symbol_text_func): Move from buildsym.h.
376 * stabsread.c (hashname): Move from buildsym.c.
377 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
378 (next_symbol_text_func, hashname): Move to stabsread.h.
379 * buildsym.c: Don't include bcache.h
380 (hashname): Move to stasbread.c.
381
0ec44fc0
TT
3822018-07-16 Tom Tromey <tom@tromey.com>
383
384 * buildsym.h (context_stack_size): Don't declare.
385 * buildsym.c (context_stack_size): New global.
386
81cc346d
TT
3872018-07-16 Tom Tromey <tom@tromey.com>
388
389 * dbxread.c (processing_acc_compilation): New global.
390 * buildsym.h (processing_acc_compilation): Don't declare.
391
2c99ee5c
TT
3922018-07-16 Tom Tromey <tom@tromey.com>
393
394 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
395 * dbxread.c (read_ofile_symtab): Update.
396 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
397 * buildsym.h (last_source_start_addr): Remove.
398 (set_last_source_start_addr, get_last_source_start_addr):
399 Declare.
400 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
401 parameter.
402 (struct buildsym_compunit) <m_last_source_start_addr>: New
403 member.
404 (prepare_for_building): Remove start_addr parameter.
405 (start_symtab, restart_symtab, end_symtab_get_static_block)
406 (end_symtab_with_blockvector): Update.
407 (set_last_source_start_addr, get_last_source_start_addr): New
408 functions.
409
530fedbc
TT
4102018-07-16 Tom Tromey <tom@tromey.com>
411
412 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
413 member.
414 (have_line_numbers): Remove.
415 (record_line, prepare_for_building, end_symtab_get_static_block)
416 (augment_type_symtab): Update.
417
6a976300
TT
4182018-07-16 Tom Tromey <tom@tromey.com>
419
420 * buildsym.c (~buildsym_compunit): Free the macro table.
421 (struct buildsym_compunit) <get_macro_table, release_macros>: New
422 methods.
423 <m_pending_macros>: New member.
424 (pending_macros): Remove.
425 (~scoped_free_pendings, get_macro_table, prepare_for_building)
426 (reset_symtab_globals, end_symtab_get_static_block)
427 (end_symtab_with_blockvector, augment_type_symtab)
428 (buildsym_init): Update.
429
c0015d44
TT
4302018-07-16 Tom Tromey <tom@tromey.com>
431
432 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
433 parameter.
434 (buildsym_compunit::set_last_source_file): New method.
435 <m_last_source_file>: New member.
436 (prepare_for_building): Remove "name" parameter.
437 (start_symtab, restart_symtab, reset_symtab_globals): Update.
438 (last_source_file): Remove.
439 (set_last_source_file, get_last_source_file): Update.
440
e62cca7c
TT
4412018-07-16 Tom Tromey <tom@tromey.com>
442
443 * buildsym.c (prepare_for_building): Add assert.
444
905eb0e2
TT
4452018-07-16 Tom Tromey <tom@tromey.com>
446
447 * buildsym.c (~buildsym_compunit): Update.
448 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
449 (start_subfile, patch_subfile_names)
450 (end_symtab_with_blockvector): Update.
451
b248663f
TT
4522018-07-16 Tom Tromey <tom@tromey.com>
453
454 * buildsym.c (struct buildsym_compunit): Add constructor,
455 destructor, initializers.
456 (start_buildsym_compunit): Remove.
457 (free_buildsym_compunit): Use "delete".
458 (start_symtab, restart_symtab): Use "new".
459
ff27d073
SM
4602018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
461
462 * symfile.c (set_objfile_default_section_offset): Remove struct
463 keyword.
464
6a15ecf5
SH
4652018-07-14 Stafford Horne <shorne@gmail.com>
466
467 * (Responsible Maintainers): Add myself as or1k maintainer.
468
027a4c30
TT
4692018-07-13 Tom Tromey <tom@tromey.com>
470
471 * symfile.c (set_objfile_default_section_offset): Use extra braces
472 around initializer.
473
5c1eda30
AA
4742018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
475
476 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
477 non-branching basr.
478
bc7b042b
PW
4792018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
480
481 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
482 unittests/cli-utils-selftests.c
483 * unittests/cli-utils-selftests.c: New file.
484
a14c4daa
PW
4852018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
486
487 * NEWS: Mention new commands. Mention change to 'thread apply'.
488
1fe75df7
PW
4892018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
490
491 * thread.c (thr_try_catch_cmd): New function.
492 (thread_apply_all_command): Handle qcs flags.
493 (thread_apply_command): Handle qcs flags.
494 (taas_command): New function.
495 (tfaas_command): New function.
496 (_initialize_thread): Update to setup the new commands 'taas
497 and 'tfaas'. Change doc string for 'thread apply'.
498
6a70eb7d
PW
4992018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
500
501 * stack.c: (trailing_outermost_frame): New function, mostly
502 extracted from backtrace_command_1.
503 (leading_innermost_frame): New function.
504 (backtrace_command_1): Update to call trailing_outermost_frame.
505 (frame_apply_command_count): New function.
506 (frame_apply_level_command): New function.
507 (frame_apply_all_command): New function.
508 (frame_apply_command): New function.
509 (faas_command): New function.
510 (frame_cmd_list): New variable.
511 (_initialize_stack): Update to setup the new commands 'frame apply'
512 and 'faas'.
513
529c08b2
PW
5142018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
515
516 * cli-utils.c (number_or_range_parser::get_number): Only handle
517 numbers or convenience var as numbers.
518 (parse_flags): New function.
519 (parse_flags_qcs): New function.
520 (number_or_range_parser::finished): Ensure parsing end is detected
521 before end of string.
522 * cli-utils.h (parse_flags): New function.
523 (parse_flags_qcs): New function.
524 (number_or_range_parser): Remove m_finished bool.
525 (number_or_range_parser::skip_range): Set m_in_range to false.
526
64b58472
SDJ
5272018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
528
529 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
530 on Windows.
531
c7ab0aef
SDJ
5322018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
533 Jan Kratochvil <jan.kratochvil@redhat.com>
534 Paul Fertser <fercerpav@gmail.com>
535 Tsutomu Seki <sekiriki@gmail.com>
536 Pedro Alves <palves@redhat.com>
537
538 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
539 'unittests/parse-connection-spec-selftests.c'.
540 (COMMON_SFILES): Add 'common/netstuff.c'.
541 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
542 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
543 * common/netstuff.c: New file.
544 * common/netstuff.h: New file.
545 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
546 (wait_for_connect): Update comment. New parameter
547 'gdb::optional<int> sock' instead of 'struct serial *scb'.
548 Use 'sock' directly instead of 'scb->fd'.
549 (try_connect): New function, with code from 'net_open'.
550 (net_open): Rewrite main loop to deal with multiple
551 sockets/addresses. Handle IPv6-style hostnames; implement
552 support for IPv6 connections.
553 * unittests/parse-connection-spec-selftests.c: New file.
554
4c7333b3
PA
5552018-07-11 Pedro Alves <palves@redhat.com>
556
557 PR gdb/23377
558 * remote.c (remote_target::remote_detach_pid): Call
559 set_current_process.
560
a6f88f6e
PA
5612018-07-11 Pedro Alves <palves@redhat.com>
562
563 * h8300-tdep.c (h8300_gdbarch_init): Remove
564 set_gdbarch_ecoff_reg_to_regnum calls.
565
16ff70dd
SDJ
5662018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
567
568 PR c++/23373
569 * c-typeprint.c (c_type_print_base_struct_union): Don't print
570 offsets/sizes for static members of a class/struct.
571
12863263
AH
5722018-07-11 Alan Hayward <alan.hayward@arm.com>
573
574 * target-descriptions.c (tdesc_register_bitsize): Rename.
575 * target-descriptions.h (tdesc_register_bitsize): Likewise.
576 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
577 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
578
1123588c
TT
5792018-07-10 Tom Tromey <tom@tromey.com>
580
581 * breakpoint.c (moribund_locations): Now static and a
582 std::vector.
583 (breakpoint_init_inferior, moribund_breakpoint_here_p)
584 (build_bpstat_chain, update_global_location_list)
585 (breakpoint_retire_moribund): Update.
586 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
587 VEC.
588
8c49aa89
AB
5892018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
590
591 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
592 (riscv_register_reggroup_p): Use new function, remove unneeded
593 parenthesis.
594 (riscv_push_dummy_call): Extend assert to compare against xlen or
595 flen based on register type.
596
42ecac17
AB
5972018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
598
599 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
600
055303e2
AB
6012018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * remote.c (show_hardware_watchpoint_limit): New function.
604 (show_hardware_watchpoint_length_limit): New function.
605 (show_hardware_breakpoint_limit): New function.
606 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
607 where appropriate, update help text.
608
8fd32c1c
TT
6092018-07-09 Tom Tromey <tom@tromey.com>
610
611 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
612 (CLIBS): Don't mention NAT_CLIBS.
613
31278b51
TT
6142018-07-09 Tom Tromey <tom@tromey.com>
615
616 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
617 (LIBGDB_OBS, clean mostlyclean): Update.
618 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
619
e5fd1493
TT
6202018-07-09 Tom Tromey <tom@tromey.com>
621
622 * Makefile.in (%.c: %.y): Use ECHO_YACC.
623 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
624 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
625
981e0c0c
TT
6262018-07-09 Tom Tromey <tom@tromey.com>
627
628 * Makefile.in (ALLDEPFILES): Remove exec.c.
629 (COMMON_OBS): Remove exec.o.
630 (COMMON_SFILES): Add exec.c.
631
14ccceb2
TT
6322018-07-09 Tom Tromey <tom@tromey.com>
633
634 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
635
5d3c3a68
TT
6362018-07-09 Tom Tromey <tom@tromey.com>
637
638 * Makefile.in (clean mostlyclean): Remove stamp-version.
639 (version.c): Depend on stamp-version.
640 (stamp-version): New rule, from version.c rule.
641
1998086d
TT
6422018-07-09 Tom Tromey <tom@tromey.com>
643
644 * Makefile.in (init.c): Depend on stamp-init.
645 (stamp-init): New rule, from init.c rule.
646 (clean mostlyclean): Remove stamp-init.
647
4c754949
TT
6482018-07-09 Tom Tromey <tom@tromey.com>
649
650 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
651 SUBDIR_GCC_COMPILE_SRCS.
652
6497f1dd
TT
6532018-07-09 Tom Tromey <tom@tromey.com>
654
655 * Makefile.in (init.c): Remove some unused sed rules.
656
97a34db9
TT
6572018-07-09 Tom Tromey <tom@tromey.com>
658
659 * Makefile.in (TSOBS): Remove.
660 (INIT_FILES): Update.
661 (LIBGDB_OBS): Update.
662 (COMMON_SFILES): Add inflow.c.
663 (SFILES): Remove inflow.c.
664
25289ac1
JK
6652018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
666
667 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
668
e83f4d97
SM
6692018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
670
4869c585
SM
671 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
672 get_saveloc_name, is_signal_frame_name, step_name,
673 init_remote_name, create_addr_space_name,
674 destroy_addr_space_name, search_unwind_table_name,
675 find_dyn_list_name): Constify.
e83f4d97 676
6821842f
SM
6772018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * darwin-nat.c (darwin_pthread_kill): New function.
680 (darwin_resume_thread): Use darwin_pthread_kill.
681
c530603c
TV
6822018-07-05 Tom de Vries <tdevries@suse.de>
683
684 * macroexp.c (macro_buffer) <operator=>: New member function.
685
a7d0f0f0
TT
6862018-07-04 Tom Tromey <tom@tromey.com>
687
688 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
689
6242c6a6
SM
6902018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
691
692 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
693 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
694 * maint.c: Likewise.
695 * top.c: Likewise.
696
4e5b2f89
JB
6972018-07-04 Joel Brobecker <brobecker@adacore.com>
698
699 * NEWS: Create a new section for the next release branch.
700 Rename the section of the current branch, now that it has
701 been cut.
702
538ccc4a
JB
7032018-07-04 Joel Brobecker <brobecker@adacore.com>
704
705 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
706 * version.in: Bump version to 8.2.50.DATE-git.
707
1b919490
VB
7082018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
709 Pedro Alves <palves@redhat.com>
710
711 * linux-nat.c (linux_init_ptrace): Rename to ...
712 (linux_init_ptrace_procfs): ... this. Call
713 linux_proc_init_warnings.
714 (linux_nat_target::post_attach)
715 (linux_nat_target::post_startup_inferior): Adjust.
716 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
717 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
718
1ea5da02
TV
7192018-07-04 Tom de Vries <tdevries@suse.de>
720
721 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
722 check ...
723 (read_comp_unit_head): ... here.
724
f51e0e20
TT
7252018-07-03 Tom Tromey <tom@tromey.com>
726
727 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
728 (stop_tracing, tstatus_command)
729 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
730 (print_one_static_tracepoint_marker): Update.
731 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
732 std::vector.
733 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
734 VEC.
735 (all_tracepoints, static_tracepoints_here): Return std::vector.
736
d7e15655
TT
7372018-07-03 Tom Tromey <tom@tromey.com>
738
739 * common/ptid.c (ptid_equal): Remove.
740 * common/ptid.h (ptid_equal): Don't declare.
741 * ada-tasks.c: Update.
742 * breakpoint.c: Update.
743 * common/agent.c: Update.
744 * corelow.c: Update.
745 * darwin-nat-info.c: Update.
746 * darwin-nat.c: Update.
747 * dcache.c: Update.
748 * dtrace-probe.c: Update.
749 * dummy-frame.c: Update.
750 * fbsd-nat.c: Update.
751 * frame.c: Update.
752 * gdbthread.h: Update.
753 * gnu-nat.c: Update.
754 * go32-nat.c: Update.
755 * inf-loop.c: Update.
756 * inf-ptrace.c: Update.
757 * infcall.c: Update.
758 * infcmd.c: Update.
759 * inflow.c: Update.
760 * infrun.c: Update.
761 * linux-fork.c: Update.
762 * linux-nat.c: Update.
763 * linux-thread-db.c: Update.
764 * mi/mi-cmd-var.c: Update.
765 * mi/mi-interp.c: Update.
766 * mi/mi-main.c: Update.
767 * nto-procfs.c: Update.
768 * ppc-linux-tdep.c: Update.
769 * procfs.c: Update.
770 * python/py-inferior.c: Update.
771 * python/py-record-btrace.c: Update.
772 * python/py-record.c: Update.
773 * ravenscar-thread.c: Update.
774 * regcache.c: Update.
775 * remote-sim.c: Update.
776 * remote.c: Update.
777 * sol-thread.c: Update.
778 * solib.c: Update.
779 * target.c: Update.
780 * tui/tui-stack.c: Update.
781 * varobj.c: Update.
782 * windows-nat.c: Update.
783 * windows-tdep.c: Update.
784
26a57c92
TT
7852018-07-03 Tom Tromey <tom@tromey.com>
786
787 * common/ptid.c (ptid_match): Remove.
788 * common/ptid.h (ptid_match): Don't declare.
789 * fbsd-nat.c: Update.
790 * infcmd.c: Update.
791 * infrun.c: Update.
792 * linux-nat.c: Update.
793 * record-btrace.c: Update.
794 * regcache.c: Update.
795 * remote.c: Update.
796
d2a107e3
TT
7972018-07-03 Tom Tromey <tom@tromey.com>
798
799 * common/ptid.c (ptid_tid_p): Remove.
800 * common/ptid.h (ptid_tid_p): Don't declare.
801 * sol-thread.c: Update.
802
15a9e13e
TT
8032018-07-03 Tom Tromey <tom@tromey.com>
804
805 * common/ptid.c (ptid_lwp_p): Remove.
806 * common/ptid.h (ptid_lwp_p): Don't declare.
807 * fbsd-nat.c: Update.
808 * linux-nat.c: Update.
809 * nat/linux-procfs.c: Update.
810 * nat/x86-linux-dregs.c: Update.
811 * sol-thread.c: Update.
812
0e998d96
TT
8132018-07-03 Tom Tromey <tom@tromey.com>
814
815 * common/ptid.c (ptid_is_pid): Remove.
816 * common/ptid.h (ptid_is_pid): Don't declare.
817 * infrun.c: Update.
818 * linux-nat.c: Update.
819 * mi/mi-interp.c: Update.
820 * remote.c: Update.
821 * thread.c: Update.
822
cc6bcb54
TT
8232018-07-03 Tom Tromey <tom@tromey.com>
824
825 * common/ptid.c (ptid_get_tid): Remove.
826 * common/ptid.h (ptid_get_tid): Don't declare.
827 * ada-tasks.c: Update.
828 * aix-thread.c: Update.
829 * bsd-uthread.c: Update.
830 * darwin-nat.c: Update.
831 * fbsd-nat.c: Update.
832 * i386-darwin-nat.c: Update.
833 * infrun.c: Update.
834 * linux-tdep.c: Update.
835 * nto-procfs.c: Update.
836 * ppc-ravenscar-thread.c: Update.
837 * python/py-infthread.c: Update.
838 * ravenscar-thread.c: Update.
839 * sol-thread.c: Update.
840 * sparc-ravenscar-thread.c: Update.
841 * windows-nat.c: Update.
842
e38504b3
TT
8432018-07-03 Tom Tromey <tom@tromey.com>
844
845 * common/ptid.c (ptid_get_lwp): Remove.
846 * common/ptid.h (ptid_get_lwp): Don't declare.
847 * aarch64-linux-nat.c: Update.
848 * ada-tasks.c: Update.
849 * aix-thread.c: Update.
850 * amd64-linux-nat.c: Update.
851 * arm-linux-nat.c: Update.
852 * corelow.c: Update.
853 * fbsd-nat.c: Update.
854 * fbsd-tdep.c: Update.
855 * gnu-nat.c: Update.
856 * i386-cygwin-tdep.c: Update.
857 * i386-gnu-nat.c: Update.
858 * i386-linux-nat.c: Update.
859 * ia64-linux-nat.c: Update.
860 * inf-ptrace.c: Update.
861 * infrun.c: Update.
862 * linux-fork.c: Update.
863 * linux-nat.c: Update.
864 * linux-tdep.c: Update.
865 * linux-thread-db.c: Update.
866 * mips-linux-nat.c: Update.
867 * nat/aarch64-linux-hw-point.c: Update.
868 * nat/aarch64-linux.c: Update.
869 * nat/linux-btrace.c: Update.
870 * nat/linux-osdata.c: Update.
871 * nat/linux-procfs.c: Update.
872 * nat/x86-linux-dregs.c: Update.
873 * obsd-nat.c: Update.
874 * ppc-fbsd-nat.c: Update.
875 * ppc-linux-nat.c: Update.
876 * procfs.c: Update.
877 * python/py-infthread.c: Update.
878 * ravenscar-thread.c: Update.
879 * remote.c: Update.
880 * s390-linux-nat.c: Update.
881 * sol-thread.c: Update.
882 * sol2-tdep.c: Update.
883 * spu-linux-nat.c: Update.
884 * x86-linux-nat.c: Update.
885 * xtensa-linux-nat.c: Update.
886
e99b03dc
TT
8872018-07-03 Tom Tromey <tom@tromey.com>
888
889 * common/ptid.c (ptid_get_pid): Remove.
890 * common/ptid.h (ptid_get_pid): Don't declare.
891 * aarch64-linux-nat.c: Update.
892 * ada-lang.c: Update.
893 * aix-thread.c: Update.
894 * alpha-bsd-nat.c: Update.
895 * amd64-fbsd-nat.c: Update.
896 * amd64-linux-nat.c: Update.
897 * arm-linux-nat.c: Update.
898 * arm-nbsd-nat.c: Update.
899 * auxv.c: Update.
900 * break-catch-syscall.c: Update.
901 * breakpoint.c: Update.
902 * bsd-uthread.c: Update.
903 * corelow.c: Update.
904 * ctf.c: Update.
905 * darwin-nat.c: Update.
906 * fbsd-nat.c: Update.
907 * fbsd-tdep.c: Update.
908 * gcore.c: Update.
909 * gnu-nat.c: Update.
910 * hppa-nbsd-nat.c: Update.
911 * hppa-obsd-nat.c: Update.
912 * i386-fbsd-nat.c: Update.
913 * ia64-linux-nat.c: Update.
914 * inf-ptrace.c: Update.
915 * infcmd.c: Update.
916 * inferior.c: Update.
917 * inferior.h: Update.
918 * inflow.c: Update.
919 * infrun.c: Update.
920 * linux-fork.c: Update.
921 * linux-nat.c: Update.
922 * linux-tdep.c: Update.
923 * linux-thread-db.c: Update.
924 * m68k-bsd-nat.c: Update.
925 * mi/mi-interp.c: Update.
926 * mi/mi-main.c: Update.
927 * mips-linux-nat.c: Update.
928 * mips-nbsd-nat.c: Update.
929 * mips64-obsd-nat.c: Update.
930 * nat/aarch64-linux-hw-point.c: Update.
931 * nat/aarch64-linux.c: Update.
932 * nat/linux-btrace.c: Update.
933 * nat/linux-osdata.c: Update.
934 * nat/linux-procfs.c: Update.
935 * nat/x86-linux-dregs.c: Update.
936 * nto-procfs.c: Update.
937 * obsd-nat.c: Update.
938 * ppc-linux-nat.c: Update.
939 * ppc-nbsd-nat.c: Update.
940 * ppc-obsd-nat.c: Update.
941 * proc-service.c: Update.
942 * procfs.c: Update.
943 * python/py-inferior.c: Update.
944 * python/py-infthread.c: Update.
945 * ravenscar-thread.c: Update.
946 * record.c: Update.
947 * remote-sim.c: Update.
948 * remote.c: Update.
949 * rs6000-nat.c: Update.
950 * s390-linux-nat.c: Update.
951 * sh-nbsd-nat.c: Update.
952 * sol-thread.c: Update.
953 * sparc-nat.c: Update.
954 * sparc64-tdep.c: Update.
955 * spu-linux-nat.c: Update.
956 * spu-tdep.c: Update.
957 * target-debug.h: Update.
958 * target.c: Update.
959 * thread.c: Update.
960 * tid-parse.c: Update.
961 * tracefile-tfile.c: Update.
962 * vax-bsd-nat.c: Update.
963 * windows-nat.c: Update.
964 * x86-linux-nat.c: Update.
965 * x86-nat.c: Update.
966
f2907e49
TT
9672018-07-03 Tom Tromey <tom@tromey.com>
968
969 * common/ptid.c (pid_to_ptid): Remove.
970 * common/ptid.h (pid_to_ptid): Don't declare.
971 * aix-thread.c: Update.
972 * arm-linux-nat.c: Update.
973 * common/ptid.c: Update.
974 * common/ptid.h: Update.
975 * corelow.c: Update.
976 * ctf.c: Update.
977 * darwin-nat.c: Update.
978 * fbsd-nat.c: Update.
979 * fork-child.c: Update.
980 * gnu-nat.c: Update.
981 * go32-nat.c: Update.
982 * inf-ptrace.c: Update.
983 * infcmd.c: Update.
984 * inferior.c: Update.
985 * infrun.c: Update.
986 * linux-fork.c: Update.
987 * linux-nat.c: Update.
988 * nat/aarch64-linux-hw-point.c: Update.
989 * nat/fork-inferior.c: Update.
990 * nat/x86-linux-dregs.c: Update.
991 * nto-procfs.c: Update.
992 * obsd-nat.c: Update.
993 * procfs.c: Update.
994 * progspace.c: Update.
995 * remote.c: Update.
996 * rs6000-nat.c: Update.
997 * s390-linux-nat.c: Update.
998 * sol-thread.c: Update.
999 * spu-linux-nat.c: Update.
1000 * target.c: Update.
1001 * top.c: Update.
1002 * tracefile-tfile.c: Update.
1003 * windows-nat.c: Update.
1004
fd79271b
TT
10052018-07-03 Tom Tromey <tom@tromey.com>
1006
1007 * common/ptid.h (ptid_build): Don't declare.
1008 * common/ptid.c (ptid_build): Remove.
1009 * aix-thread.c: Update.
1010 * bsd-kvm.c: Update.
1011 * bsd-uthread.c: Update.
1012 * common/agent.c: Update.
1013 * common/ptid.c: Update.
1014 * common/ptid.h: Update.
1015 * corelow.c: Update.
1016 * darwin-nat.c: Update.
1017 * fbsd-nat.c: Update.
1018 * gnu-nat.c: Update.
1019 * linux-fork.c: Update.
1020 * linux-nat.c: Update.
1021 * linux-thread-db.c: Update.
1022 * nat/linux-osdata.c: Update.
1023 * nat/linux-procfs.c: Update.
1024 * nto-procfs.c: Update.
1025 * obsd-nat.c: Update.
1026 * proc-service.c: Update.
1027 * procfs.c: Update.
1028 * ravenscar-thread.c: Update.
1029 * remote-sim.c: Update.
1030 * remote.c: Update.
1031 * sol-thread.c: Update.
1032 * target.c: Update.
1033 * windows-nat.c: Update.
1034
057302ce
TT
10352018-07-03 Tom Tromey <tom@tromey.com>
1036
1037 * infrun.c (follow_exec): Use exit_inferior_silent.
1038 * inferior.c (exit_inferior_num_silent): Remove.
1039 * inferior.h (exit_inferior_num_silent): Don't declare.
1040
a50c11c6
TT
10412018-07-03 Tom Tromey <tom@tromey.com>
1042
1043 PR cli/23340:
1044 * darwin-nat.c (darwin_attach_pid): Reset inferior and
1045 inferior_ptid on error.
1046
471b9d15
MR
10472018-07-02 Maciej W. Rozycki <macro@mips.com>
1048 Simon Marchi <simon.marchi@polymtl.ca>
1049
1050 PR tdep/8282
1051 * disasm.h (gdb_disassembler): Add
1052 `m_disassembler_options_holder'. member
1053 * disasm.c (get_all_disassembler_options): New function.
1054 (gdb_disassembler::gdb_disassembler): Use it.
1055 (gdb_buffered_insn_length_init_dis): Likewise.
1056 (gdb_buffered_insn_length): Adjust accordingly.
1057 (set_disassembler_options): Handle options with arguments.
1058 (show_disassembler_options_sfunc): Likewise. Add a leading new
1059 line if showing options with descriptions.
1060 (disassembler_options_completer): Adapt to using the
1061 `disasm_options_and_args_t' structure.
1062 * mips-tdep.c (mips_disassembler_options): New variable.
1063 (mips_disassembler_options_o32): Likewise.
1064 (mips_disassembler_options_n32): Likewise.
1065 (mips_disassembler_options_n64): Likewise.
1066 (gdb_print_insn_mips): Don't set `disassembler_options'.
1067 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
1068 functions.
1069 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
1070 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
1071 `gdbarch_disassembler_options_implicit' and
1072 `gdbarch_valid_disassembler_options'.
1073 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
1074 `disasm_options_and_args_t' structure.
1075 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
1076 method.
1077 (valid_disassembler_options): Switch from `disasm_options_t' to
1078 the `disasm_options_and_args_t' structure.
1079 * NEWS: Document `set disassembler-options' support for the MIPS
1080 target.
1081 * gdbarch.h: Regenerate.
1082 * gdbarch.c: Regenerate.
1083
41823f29
SH
10842018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
1085
1086 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
1087
41206e32
JB
10882018-06-29 Joel Brobecker <brobecker@adacore.com>
1089
1090 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
1091 parameter in call to amd64_target_description.
1092 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
1093 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
1094 (amd64fbsd_init_abi): Likewise.
1095 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
1096 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
1097 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
1098 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
1099
de52b960
PA
11002018-06-29 Pedro Alves <palves@redhat.com>
1101
1102 * gdb/amd64-tdep.h (amd64_create_target_description): Add
1103 "segments" parameter.
1104 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
1105 (_initialize_amd64_tdep): Update call to
1106 amd64_create_target_description.
1107 (amd64_target_description): Add "segments" parameter. Adjust
1108 the implementation to use it.
1109 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
1110 call to amd64_create_target_description.
1111 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
1112 * gdb/arch/amd64.h (amd64_create_target_description): Add
1113 "segments" register.
1114 * gdb/arch/amd64.c (amd64_create_target_description): Add
1115 "segments" parameter. Call create_feature_i386_64bit_segments
1116 only if SEGMENTS is true.
1117 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
1118 call to amd64_create_target_description.
1119
75acb486
PA
11202018-06-29 Pedro Alves <palves@redhat.com>
1121
1122 * thread.c (thread_target_id_str): New, factored out from ...
1123 (print_thread_info_1): ... here. Use it to compute the max
1124 "Target Id" column width.
1125
c76a8ea3
PA
11262018-06-29 Pedro Alves <palves@redhat.com>
1127
1128 * remote.c (remote_target::extra_thread_info): Delete
1129 'display_buf' and 'n' locals. from the cache, regardless of
1130 packet mechanims is in use. Use cache for qThreadExtra and qP
1131 methods too.
1132
cd2bb709
PA
11332018-06-29 Pedro Alves <palves@redhat.com>
1134
1135 * blockframe.c (find_pc_sect_containing_function): New function.
1136 * breakpoint.c (print_breakpoint_location): Don't call
1137 find_pc_sect_function.
1138 * linespec.c (create_sals_line_offset): Record the location's
1139 symbol in the sal.
1140 * linespec.c (convert_address_location_to_sals): Fill in sal's
1141 symbol with find_pc_sect_containing_function.
1142 * symtab.c (find_function_start_sal): Rename to ...
1143 (find_function_start_sal_1): ... this.
1144 (find_function_start_sal): Reimplement as wrapper around
1145 find_function_start_sal_1, and use
1146 find_pc_sect_containing_function to fill in the sal's symbol.
1147 (find_function_start_sal(symbol*, bool)): Adjust.
1148 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
1149 comments.
1150 (find_pc_sect_containing_function): Declare.
1151
991ff292
PA
11522018-06-29 Pedro Alves <palves@redhat.com>
1153
1154 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
1155 true if the the location has no symbol.
1156
44cee4fd
TT
11572018-06-28 Tom Tromey <tom@tromey.com>
1158
1159 * NEWS: Mention --enable-codesign.
1160 * silent-rules.mk (ECHO_SIGN): New variable.
1161 * configure.ac: Add --enable-codesign.
1162 * configure: Rebuild.
1163 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
1164 (gdb$(EXEEXT)): Optionally invoke codesign.
1165
f2ffa92b
PA
11662018-06-28 Pedro Alves <palves@redhat.com>
1167
1168 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
1169 comments.
1170 (switch_to_thread_no_regs): Adjust comment.
1171 * infcmd.c (stop_pc): Delete.
1172 (post_create_inferior, info_program_command): Replace references
1173 to stop_pc with references to thread_info->suspend.stop_pc.
1174 * inferior.h (stop_pc): Delete declaration.
1175 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
1176 (handle_inferior_event_1, handle_signal_stop)
1177 (process_event_stop_test, keep_going_stepped_thread)
1178 (handle_step_into_function, handle_step_into_function_backward)
1179 (print_stop_location): Replace references to stop_pc with
1180 references to thread_info->suspend.stop_pc.
1181 (struct infcall_suspend_state) <stop_pc>: Delete field.
1182 (save_infcall_suspend_state, restore_infcall_suspend_state):
1183 Remove references to inf_stat->stop_pc.
1184 * linux-fork.c (fork_load_infrun_state): Likewise.
1185 * record-btrace.c (record_btrace_set_replay): Likewise.
1186 * record-full.c (record_full_goto_entry): Likewise.
1187 * remote.c (print_one_stopped_thread): Likewise.
1188 * target.c (target_resume): Extend comment.
1189 * thread.c (set_executing_thread): New.
1190 (set_executing): Use it.
1191 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
1192 Remove references to stop_pc.
1193
ecdc3a72
PA
11942018-06-28 Pedro Alves <palves@redhat.com>
1195
1196 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
1197 Moving fetching stop_pc until after ecs->event_thread is refreshed.
1198
d95d3aef
TT
11992018-06-28 Tom Tromey <tom@tromey.com>
1200
1201 * coffread.c (coff_symfile_finish): Update.
1202 * xcoffread.c (xcoff_symfile_finish): Update.
1203 * elfread.c (elf_symfile_finish): Update.
1204 * symfile.h (dwarf2_free_objfile): Don't declare.
1205 * dwarf2read.c (_initialize_dwarf2_read): Use
1206 register_objfile_data_with_cleanup.
1207 (dwarf2_free_objfile): Now static. Change signature.
1208
291f9a96
PT
12092018-06-28 Petr Tesarik <ptesarik@suse.cz>
1210
1211 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
1212 option "-o" to add-symbol-file-load to add an offset to each
1213 section's load address.
1214 * symfile.c (set_objfile_default_section_offset): New function.
1215
d81a3eaf
PT
12162018-06-28 Petr Tesarik <ptesarik@suse.cz>
1217
1218 * symfile.c (add_symbol_file_command): Make sure that sections
1219 with the same name are sorted in the same order.
1220
ed6dfe51
PT
12212018-06-28 Petr Tesarik <ptesarik@suse.cz>
1222
1223 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
1224 require the second argument. If omitted, load sections at the
1225 addresses specified in the file.
1226
d4d429d5
PT
12272018-06-28 Petr Tesarik <ptesarik@suse.cz>
1228
1229 * symfile.c (symbol_file_command, symbol_file_add_main_1)
1230 (_initialize_symfile): Add option "-o" to symbol-file to add an
1231 offset to each section of the symbol file.
1232
39b27ab6
PT
12332018-06-28 Petr Tesarik <ptesarik@suse.cz>
1234
1235 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
1236
41827fc3
TT
12372018-06-27 Tom Tromey <tom@tromey.com>
1238
1239 * stack.c (_initialize_stack): Update "func" help text.
1240
0c6aef22
TT
12412018-06-27 Tom Tromey <tom@tromey.com>
1242
1243 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
1244 std::vector.
1245 (unwind_infopy_str, pyuw_create_unwind_info)
1246 (unwind_infopy_add_saved_register, pyuw_sniffer)
1247 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
1248 Update.
1249 (struct saved_reg): Add constructor.
1250 <value>: Now a gdbpy_ref<>.
1251
63177289
TT
12522018-06-27 Tom Tromey <tom@tromey.com>
1253
1254 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
1255
e76f78a0
SM
12562018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1257
1258 * gdb-gdb.py.in: Format using autopep8.
1259
9a14af7b
SM
12602018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1261
1262 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
1263 (type_lookup_function): Recognize CORE_ADDR values.
1264
189366cd
SM
12652018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1266
1267 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
1268 print tag_name.
1269
68ad5fb9
SM
12702018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1271
1272 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
1273 <__lt__>: Add.
1274
141ec9f6
SM
12752018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1276
1277 * gdb-gdb.py: Move to...
1278 * gdb-gdb.py.in: ... here.
1279 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
1280 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
1281 dependencies.
1282 (distclean): Remove gdb-gdb.py when cleaning.
1283 (gdb-gdb.py, gdb-gdb.gdb): New rules.
1284 * configure: Re-generate.
1285
4c4e7ad4
PA
12862018-06-27 Pedro Alves <palves@redhat.com>
1287
1288 * proc-service.c (get_ps_regcache): New.
1289 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
1290 (ps_lsetfpregs): Use it.
1291
7ab6656f
OJ
12922018-06-27 Omair Javaid <omair.javaid@linaro.org>
1293
1294 PR gdb/21695
1295 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
1296 (dwarf_decode_lines_1): Adjust.
1297
bd583225
SM
12982018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1299
1300 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
1301 override.
1302 <info_proc>: Likewise.
1303
9a325b7b
JB
13042018-06-26 Joel Brobecker <brobecker@adacore.com>
1305
1306 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
1307 to windows_fetch_one_register, and only handle the case of
1308 fetching one register. Move the code that reloads the context
1309 and iterates over all registers if R is negative to...
1310 (windows_nat_target::fetch_registers): ... here.
1311 (do_windows_store_inferior_registers): Rename to
1312 windows_store_one_register, and only handle the case of storing
1313 one register. Move the code that handles the case where r is
1314 negative to...
1315 (windows_nat_target::store_registers) ... here.
1316
a33ccfc7
TT
13172018-06-26 Tom Tromey <tom@tromey.com>
1318
1319 PR rust/22574:
1320 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
1321 * rust-lang.c (rust_print_struct_def): Add podata parameter.
1322 Update.
1323 (rust_internal_print_type): Add podata parameter.
1324 (rust_print_type): Update.
1325
e0c547d1
TT
13262018-06-26 Tom Tromey <tom@tromey.com>
1327
1328 * typeprint.h (struct print_offset_data) <update, finish,
1329 maybe_print_hole>: New methods.
1330 <indentation>: New constant.
1331 * typeprint.c (print_offset_data::indentation): Define.
1332 (print_offset_data::maybe_print_hole, print_offset_data::update)
1333 (print_offset_data::finish): Move from c-typeprint.c and rename.
1334 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
1335 (print_spaces_filtered_with_print_options): Update.
1336 (c_print_type_union_field_offset, maybe_print_hole)
1337 (c_print_type_struct_field_offset): Move to typeprint.c and
1338 rename.
1339 (c_type_print_base_struct_union): Update.
1340
75cbc781
PA
13412018-06-25 Pedro Alves <palves@redhat.com>
1342
1343 * gdbthread.h (thread_info_ref, delete_thread)
1344 (delete_thread_silent, first_thread_of_inferior)
1345 (any_thread_of_inferior, switch_to_thread)
1346 (enable_thread_stack_temporaries)
1347 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1348 (get_last_thread_stack_temporary)
1349 (value_in_thread_stack_temporaries, can_access_registers_thread):
1350 Spell out "struct thread_info" instead of just "thread_info".
1351 * inferior.h (notice_new_inferior): Likewise.
1352
b7a08269
PA
13532018-06-25 Pedro Alves <palves@redhat.com>
1354
1355 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
1356 pass thread_info pointer to delete_thread.
1357 (windows_nat_target::detach): Pass inferior pointer to
1358 detach_inferior.
1359 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
1360 delete_thread.
1361 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
1362 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
1363 and pass a thread_info pointer to delete_thread.
1364 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
1365 pass thread_info pointer to delete_thread.
1366 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
1367 delete_thread_silent call.
1368 * procfs.c (procfs_target::detach): Pass inferior pointer to
1369 detach_inferior.
1370 (procfs_target::wait): Pass thread_info pointer to delete_thread.
1371 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
1372 delete_thread_silent call.
1373 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
1374 pass thread_info pointer to delete_thread.
1375 (windows_nat_target::detach): Pass inferior pointer to
1376 delete_inferior.
1377
8e7767e3
AH
13782018-06-22 Alan Hayward <alan.hayward@arm.com>
1379
1380 * regcache.c (readable_regcache::read_part): Fix asserts.
1381 (reg_buffer::raw_collect_part): New function.
1382 (regcache::write_part): Fix asserts.
1383 (reg_buffer::raw_supply_part): New function.
1384 (regcache::transfer_regset_register): New helper function.
1385 (regcache::transfer_regset): Call new functions.
1386 (regcache_supply_regset): Use gdb_byte*.
1387 (regcache::supply_regset): Likewise.
1388 (regcache_collect_regset): Likewise.
1389 (regcache::collect_regset): Likewise.
1390 * regcache.h (reg_buffer::raw_collect_part): New declaration.
1391 (reg_buffer::raw_supply_part): Likewise.
1392 (regcache::transfer_regset_register): Likewise.
1393 (regcache::transfer_regset): Use gdb_byte*.
1394
bfd60e34
AH
13952018-06-22 Alan Hayward <alan.hayward@arm.com>
1396
1397 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
1398
00431a78
PA
13992018-06-21 Pedro Alves <palves@redhat.com>
1400
1401 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
1402 instead of a ptid_t. All callers adjusted.
1403 * ada-tasks.c (ada_get_task_number): Likewise. All callers
1404 adjusted.
1405 (print_ada_task_info, display_current_task_id, task_command_1):
1406 Adjust.
1407 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
1408 inferior_thread.
1409 (breakpoint_kind): Adjust.
1410 (remove_breakpoints_pid): Rename to ...
1411 (remove_breakpoints_inf): ... this. Adjust to take an inferior
1412 pointer. All callers adjusted.
1413 (bpstat_clear_actions): Use inferior_thread.
1414 (get_bpstat_thread): New.
1415 (bpstat_do_actions): Use it.
1416 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
1417 to take a thread_info pointer. All callers adjusted.
1418 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
1419 (breakpoint_re_set_thread): Use inferior_thread.
1420 * breakpoint.h (struct inferior): Forward declare.
1421 (bpstat_stop_status): Update.
1422 (remove_breakpoints_pid): Delete.
1423 (remove_breakpoints_inf): New.
1424 * bsd-uthread.c (bsd_uthread_target::wait)
1425 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
1426 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
1427 (maint_btrace_packet_history_cmd)
1428 (maint_btrace_clear_packet_history_cmd): Adjust.
1429 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
1430 inferior_thread.
1431 * cli/cli-interp.c: Include "inferior.h".
1432 * common/refcounted-object.h (struct
1433 refcounted_object_ref_policy): New.
1434 * compile/compile-object-load.c: Include gdbthread.h.
1435 (store_regs): Use inferior_thread.
1436 * corelow.c (core_target::close): Use current_inferior.
1437 (core_target_open): Adjust to use first_thread_of_inferior and use
1438 the current inferior.
1439 * ctf.c (ctf_target::close): Adjust to use current_inferior.
1440 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
1441 <thread>: ... this new field. All references adjusted.
1442 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
1443 Take a thread_info pointer instead of a ptid_t.
1444 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
1445 (dummy_frame_discard, register_dummy_frame_dtor): Take a
1446 thread_info pointer instead of a ptid_t.
1447 * elfread.c: Include "inferior.h".
1448 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
1449 Use inferior_thread.
1450 * eval.c (evaluate_subexp): Likewise.
1451 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
1452 inferior_thread.
1453 * gdb_proc_service.h (struct thread_info): Forward declare.
1454 (struct ps_prochandle) <ptid>: Delete, replaced by ...
1455 <thread>: ... this new field. All references adjusted.
1456 * gdbarch.h, gdbarch.c: Regenerate.
1457 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
1458 'thread' parameter. All implementations and callers adjusted.
1459 * gdbthread.h (thread_info) <set_running>: New method.
1460 (delete_thread, delete_thread_silent): Take a thread_info pointer
1461 instead of a ptid.
1462 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
1463 (first_thread_of_process): Delete, replaced by ...
1464 (first_thread_of_inferior): ... this new function. All callers
1465 adjusted.
1466 (any_live_thread_of_process): Delete, replaced by ...
1467 (any_live_thread_of_inferior): ... this new function. All callers
1468 adjusted.
1469 (switch_to_thread, switch_to_no_thread): Declare.
1470 (is_executing): Delete.
1471 (enable_thread_stack_temporaries): Update comment.
1472 <enable_thread_stack_temporaries>: Take a thread_info pointer
1473 instead of a ptid_t. Incref the thread.
1474 <~enable_thread_stack_temporaries>: Decref the thread.
1475 <m_ptid>: Delete
1476 <m_thr>: New.
1477 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1478 (get_last_thread_stack_temporary)
1479 (value_in_thread_stack_temporaries, can_access_registers_thread):
1480 Take a thread_info pointer instead of a ptid_t. All callers
1481 adjusted.
1482 * infcall.c (get_call_return_value): Use inferior_thread.
1483 (run_inferior_call): Work with thread pointers instead of ptid_t.
1484 (call_function_by_hand_dummy): Work with thread pointers instead
1485 of ptid_t. Use thread_info_ref.
1486 * infcmd.c (proceed_thread_callback): Access thread's state
1487 directly.
1488 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
1489 access thread's state directly.
1490 (continue_command): Use inferior_thread.
1491 (info_program_command): Use find_thread_ptid and access thread
1492 state directly.
1493 (proceed_after_attach_callback): Use thread state directly.
1494 (notice_new_inferior): Take a thread_info pointer instead of a
1495 ptid_t. All callers adjusted.
1496 (exit_inferior): Take an inferior pointer instead of a pid. All
1497 callers adjusted.
1498 (exit_inferior_silent): New.
1499 (detach_inferior): Delete.
1500 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
1501 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
1502 (detach_inferior_command, kill_inferior_command): Use
1503 find_inferior_id instead of valid_gdb_inferior_id and
1504 gdb_inferior_id_to_pid.
1505 (inferior_command): Use inferior and thread pointers.
1506 * inferior.h (struct thread_info): Forward declare.
1507 (notice_new_inferior): Take a thread_info pointer instead of a
1508 ptid_t. All callers adjusted.
1509 (detach_inferior): Delete declaration.
1510 (exit_inferior, exit_inferior_silent): Take an inferior pointer
1511 instead of a pid. All callers adjusted.
1512 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
1513 (valid_gdb_inferior_id): Delete.
1514 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
1515 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
1516 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
1517 ...
1518 <inf>: ... this new field.
1519 <step_ptid>: Delete, replaced by ...
1520 <step_thread>: ... this new field.
1521 (get_displaced_stepping_state): Take an inferior pointer instead
1522 of a pid. All callers adjusted.
1523 (displaced_step_in_progress_any_inferior): Adjust.
1524 (displaced_step_in_progress_thread): Take a thread pointer instead
1525 of a ptid_t. All callers adjusted.
1526 (displaced_step_in_progress, add_displaced_stepping_state): Take
1527 an inferior pointer instead of a pid. All callers adjusted.
1528 (get_displaced_step_closure_by_addr): Adjust.
1529 (remove_displaced_stepping_state): Take an inferior pointer
1530 instead of a pid. All callers adjusted.
1531 (displaced_step_prepare_throw, displaced_step_prepare)
1532 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
1533 All callers adjusted.
1534 (start_step_over): Adjust.
1535 (infrun_thread_ptid_changed): Remove bit updating ptids in the
1536 displaced step queue.
1537 (do_target_resume): Adjust.
1538 (fetch_inferior_event): Use inferior_thread.
1539 (context_switch, get_inferior_stop_soon): Take an
1540 execution_control_state pointer instead of a ptid_t. All callers
1541 adjusted.
1542 (switch_to_thread_cleanup): Delete.
1543 (stop_all_threads): Use scoped_restore_current_thread.
1544 * inline-frame.c: Include "gdbthread.h".
1545 (inline_state) <inline_state>: Take a thread pointer instead of a
1546 ptid_t. All callers adjusted.
1547 <ptid>: Delete, replaced by ...
1548 <thread>: ... this new field.
1549 (find_inline_frame_state): Take a thread pointer instead of a
1550 ptid_t. All callers adjusted.
1551 (skip_inline_frames, step_into_inline_frame)
1552 (inline_skipped_frames, inline_skipped_symbol): Take a thread
1553 pointer instead of a ptid_t. All callers adjusted.
1554 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
1555 (inline_skipped_frames, inline_skipped_symbol): Likewise.
1556 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
1557 pointers directly.
1558 * linux-nat.c (get_detach_signal): Likewise.
1559 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
1560 (thread_db_notice_clone): Adjust.
1561 (thread_db_find_new_threads_silently)
1562 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
1563 a thread pointer instead of a ptid_t. All callers adjusted.
1564 * mi/mi-cmd-var.c: Include "inferior.h".
1565 (mi_cmd_var_update_iter): Update to use thread pointers.
1566 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
1567 inferior directly.
1568 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
1569 out to ...
1570 (mi_output_running): ... this new function.
1571 (mi_on_resume_1): Adjust to use it.
1572 (mi_user_selected_context_changed): Adjust to use inferior_thread.
1573 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
1574 directly.
1575 (interrupt_thread_callback): : Adjust to use thread and inferior
1576 pointers.
1577 * proc-service.c: Include "gdbthread.h".
1578 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
1579 * progspace-and-thread.c: Include "inferior.h".
1580 * progspace.c: Include "inferior.h".
1581 * python/py-exitedevent.c (create_exited_event_object): Adjust to
1582 hold a reference to an inferior_object.
1583 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
1584 inferior_thread.
1585 * python/py-inferior.c (struct inferior_object): Give the type a
1586 tag name instead of a typedef.
1587 (python_on_normal_stop): No need to check if the current thread is
1588 listed.
1589 (inferior_to_inferior_object): Change return type to
1590 inferior_object. All callers adjusted.
1591 (find_thread_object): Delete, bits factored out to ...
1592 (thread_to_thread_object): ... this new function.
1593 * python/py-infthread.c (create_thread_object): Use
1594 inferior_to_inferior_object.
1595 (thpy_is_stopped): Use thread pointer directly.
1596 (gdbpy_selected_thread): Use inferior_thread.
1597 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
1598 field, replaced with ...
1599 <thread>: ... this new field. All users adjusted.
1600 (btpy_insn_or_gap_new): Drop const.
1601 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
1602 callers adjusted.
1603 * python/py-record.c: Include "gdbthread.h".
1604 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
1605 a ptid_t. All callers adjusted.
1606 (gdbpy_current_recording): Use inferior_thread.
1607 * python/py-record.h (recpy_record_object) <ptid>: Delete
1608 field, replaced with ...
1609 <thread>: ... this new field. All users adjusted.
1610 (recpy_element_object) <ptid>: Delete
1611 field, replaced with ...
1612 <thread>: ... this new field. All users adjusted.
1613 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
1614 a ptid_t. All callers adjusted.
1615 * python/py-threadevent.c: Include "gdbthread.h".
1616 (get_event_thread): Use thread_to_thread_object.
1617 * python/python-internal.h (struct inferior_object): Forward
1618 declare.
1619 (find_thread_object, find_inferior_object): Delete declarations.
1620 (thread_to_thread_object, inferior_to_inferior_object): New
1621 declarations.
1622 * record-btrace.c: Include "inferior.h".
1623 (require_btrace_thread): Use inferior_thread.
1624 (record_btrace_frame_sniffer)
1625 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
1626 (get_thread_current_frame): Use scoped_restore_current_thread and
1627 switch_to_thread.
1628 (get_thread_current_frame): Use thread pointer directly.
1629 (record_btrace_replay_at_breakpoint): Use thread's inferior
1630 pointer directly.
1631 * record-full.c: Include "inferior.h".
1632 * regcache.c: Include "gdbthread.h".
1633 (get_thread_arch_regcache): Use the inferior's address space
1634 directly.
1635 (get_thread_regcache, registers_changed_thread): New.
1636 * regcache.h (get_thread_regcache(thread_info *thread)): New
1637 overload.
1638 (registers_changed_thread): New.
1639 (remote_target) <remote_detach_1>: Swap order of parameters.
1640 (remote_add_thread): <remote_add_thread>: Return the new thread.
1641 (get_remote_thread_info(ptid_t)): New overload.
1642 (remote_target::remote_notice_new_inferior): Use thread pointers
1643 directly.
1644 (remote_target::process_initial_stop_replies): Use
1645 thread_info::set_running.
1646 (remote_target::remote_detach_1, remote_target::detach)
1647 (extended_remote_target::detach): Adjust.
1648 * stack.c (frame_show_address): Use inferior_thread.
1649 * target-debug.h (target_debug_print_thread_info_pp): New.
1650 * target-delegates.c: Regenerate.
1651 * target.c (default_thread_address_space): Delete.
1652 (memory_xfer_partial_1): Use current_inferior.
1653 (target_detach): Use current_inferior.
1654 (target_thread_address_space): Delete.
1655 (generic_mourn_inferior): Use current_inferior.
1656 * target.h (struct target_ops) <thread_address_space>: Delete.
1657 (target_thread_address_space): Delete.
1658 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
1659 pointers directly.
1660 (delete_thread_1, delete_thread, delete_thread_silent): Take a
1661 thread pointer instead of a ptid_t. Adjust all callers.
1662 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
1663 (first_thread_of_process): Delete, replaced by ...
1664 (first_thread_of_inferior): ... this new function. All callers
1665 adjusted.
1666 (any_thread_of_process): Rename to ...
1667 (any_thread_of_inferior): ... this, and take an inferior pointer.
1668 (any_live_thread_of_process): Rename to ...
1669 (any_live_thread_of_inferior): ... this, and take an inferior
1670 pointer.
1671 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1672 (value_in_thread_stack_temporaries)
1673 (get_last_thread_stack_temporary): Take a thread pointer instead
1674 of a ptid_t. Adjust all callers.
1675 (thread_info::set_running): New.
1676 (validate_registers_access): Use inferior_thread.
1677 (can_access_registers_ptid): Rename to ...
1678 (can_access_registers_thread): ... this, and take a thread
1679 pointer.
1680 (print_thread_info_1): Adjust to compare thread pointers instead
1681 of ptids.
1682 (switch_to_no_thread, switch_to_thread): Make extern.
1683 (scoped_restore_current_thread::~scoped_restore_current_thread):
1684 Use m_thread pointer directly.
1685 (scoped_restore_current_thread::scoped_restore_current_thread):
1686 Use inferior_thread.
1687 (thread_command): Use thread pointer directly.
1688 (thread_num_make_value_helper): Use inferior_thread.
1689 * top.c (execute_command): Use inferior_thread.
1690 * tui/tui-interp.c: Include "inferior.h".
1691 * varobj.c (varobj_create): Use inferior_thread.
1692 (value_of_root_1): Use find_thread_global_id instead of
1693 global_thread_id_to_ptid.
1694
33bab475
AH
16952018-06-21 Alan Hayward <alan.hayward@arm.com>
1696
1697 * regcache.c (readable_regcache::read_part): Avoid memcpy when
1698 possible.
1699 (regcache::write_part): Likewise.
1700 (readable_regcache::cooked_read_part): Update comment.
1701 (readable_regcache::cooked_write_part): Likewise.
1702 * regcache.h: (readable_regcache::read_part): Likewise.
1703 (regcache::write_part): Likewise.
1704
8363f9d5
RB
17052018-06-21 Richard Bunt <richard.bunt@arm.com>
1706 Dirk Schubert <dirk.schubert@arm.com>
1707
1708 * aarch64-linux-nat.c (post_attach): New.
1709 (aarch64_linux_nat_target::post_attach): Override post_attach to
1710 record the number of hardware debug registers.
1711
0d0b0ea2
TT
17122018-06-20 Tom Tromey <tom@tromey.com>
1713
1714 * python/py-param.c (add_setshow_generic): Make parameters const.
1715 (parmpy_init): Update.
1716
302abd6e
SM
17172018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
1718
1719 * regcache.h (regcache_cooked_read_ftype): Rename to...
1720 (register_read_ftype): ...this, change type to function_view.
1721 (class reg_buffer) <save>: Remove src parameter.
1722 (readonly_detached_regcache) <readonly_detached_regcache>: Make
1723 parameter non-const in first overload. Remove src parameter in
1724 second overload.
1725 * regcache.c (do_cooked_read): Remove.
1726 (readonly_detached_regcache::readonly_detached_regcache): Make
1727 parameter non-const, adjust call to other constructor.
1728 (reg_buffer::save): Remove src parameter.
1729 * frame.c (do_frame_register_read): Remove.
1730 (frame_save_as_regcache): Use lambda function.
1731 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
1732 parameter to ppu2spu_data *.
1733 (ppu2spu_sniffer): Use lambda function.
1734
19f3f25f
SM
17352018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
1736
1737 * record-full.c (record_full_target::insert_breakpoint): Remove
1738 "struct" keyword, add const.
1739
d0ac1c44
SM
17402018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1741
1742 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
1743 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
1744 * configure.ac: Remove AC_PREREQ, add missing quoting.
1745 * gnulib/configure.ac: Modernize usage of
1746 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
1747 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
1748 (AUTOMAKE_VERSION): Bump to 1.15.1.
1749 * configure: Re-generate.
1750 * config.in: Re-generate.
1751 * aclocal.m4: Re-generate.
1752 * gnulib/aclocal.m4: Re-generate.
1753 * gnulib/config.in: Re-generate.
1754 * gnulib/configure: Re-generate.
1755 * gnulib/import/Makefile.in: Re-generate.
1756
6ae50267
PA
17572018-06-19 Pedro Alves <palves@redhat.com>
1758
1759 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
1760 (lookup_minimal_symbol_by_pc_section): ... here with
1761 gdb_assert_not_reached added.
1762
61b04dd0
PA
17632018-06-19 Pedro Alves <palves@redhat.com>
1764
1765 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
1766 parameter with a block parameter. Compare location's block symbol
1767 with the frame's block instead of addresses.
1768 (skip_inline_frames): Pass the current block instead of the
1769 frame's address. Break out as soon as we determine the frame
1770 should not be skipped.
1771
f709fabb
TT
17722018-06-18 Tom Tromey <tom@tromey.com>
1773
1774 * solib-aix.c (solib_aix_get_section_offsets): Return
1775 unique_xmalloc_ptr.
1776 (solib_aix_solib_create_inferior_hook): Update.
1777
668eb2f0
TT
17782018-06-18 Tom Tromey <tom@tromey.com>
1779
1780 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
1781
309822ca
TT
17822018-06-18 Tom Tromey <tom@tromey.com>
1783
1784 * solib-frv.c (frv_relocate_main_executable): Use
1785 unique_xmalloc_ptr.
1786 * solib-dsbt.c (dsbt_relocate_main_executable): Use
1787 unique_xmalloc_ptr.
1788
06424eac
TT
17892018-06-18 Tom Tromey <tom@tromey.com>
1790
1791 * objfiles.h (inhibit_section_map_updates): Update.
1792 (resume_section_map_updates, resume_section_map_updates_cleanup):
1793 Remove.
1794 * solib-svr4.c (svr4_handle_solib_event): Update.
1795 * objfiles.c (inhibit_section_map_updates): Return
1796 scoped_restore_tmpl<int>.
1797 (resume_section_map_updates, resume_section_map_updates_cleanup):
1798 Remove.
1799
b4be9fad
TT
18002018-06-18 Tom Tromey <tom@tromey.com>
1801
1802 * valprint.h (read_string): Update.
1803 * valprint.c (read_string): Change type of "buffer".
1804 (val_print_string): Update.
1805 * python/py-value.c (valpy_string): Update.
1806 * language.h (struct language_defn) <la_get_string>: Change
1807 type of "buffer".
1808 (default_get_string, c_get_string): Update.
1809 * language.c (default_get_string): Change type of "buffer".
1810 * guile/scm-value.c (gdbscm_value_to_string): Update.
1811 * c-lang.c (c_get_string): Change type of "buffer".
1812
3f0dbd67
TT
18132018-06-18 Tom Tromey <tom@tromey.com>
1814
1815 * ser-mingw.c (struct pipe_state_destroyer): New.
1816 (pipe_state_up): New typedef.
1817 (cleanup_pipe_state): Remove.
1818 (pipe_windows_open): Use pipe_state_up. Don't release argv.
1819
69d340c6
TT
18202018-06-18 Tom Tromey <tom@tromey.com>
1821
1822 * rust-lang.h (rust_yyerror): Don't declare.
1823 * rust-lang.c (rust_language_defn): Update.
1824 * rust-exp.y (yyerror): Now static.
1825 * parse.c (parse_exp_in_context_1): Update.
1826 * p-lang.h (p_yyerror): Don't declare.
1827 * p-lang.c (p_language_defn): Update.
1828 * p-exp.y (yyerror): Now static.
1829 * opencl-lang.c (opencl_language_defn): Update.
1830 * objc-lang.c (objc_language_defn): Update.
1831 * m2-lang.h (m2_yyerror): Don't declare.
1832 * m2-lang.c (m2_language_defn): Update.
1833 * m2-exp.y (yyerror): Now static.
1834 * language.h (struct language_defn) <la_error>: Remove.
1835 * language.c (unk_lang_error): Remove.
1836 (unknown_language_defn, auto_language_defn): Remove.
1837 * go-lang.h (go_yyerror): Don't declare.
1838 * go-lang.c (go_language_defn): Update.
1839 * go-exp.y (yyerror): Now static.
1840 * f-lang.h (f_yyerror): Don't declare.
1841 * f-lang.c (f_language_defn): Update.
1842 * f-exp.y (yyerror): Now static.
1843 * d-lang.h (d_yyerror): Don't declare.
1844 * d-lang.c (d_language_defn): Update.
1845 * d-exp.y (yyerror): Now static.
1846 * c-lang.h (c_yyerror): Don't declare.
1847 * c-lang.c (c_language_defn, cplus_language_defn)
1848 (asm_language_defn, minimal_language_defn): Update.
1849 * c-exp.y (yyerror): Now static.
1850 * ada-lang.h (ada_yyerror): Don't declare.
1851 * ada-lang.c (ada_language_defn): Update.
1852 * ada-exp.y (yyerror): Now static.
1853
e9902bfc
AH
18542018-06-18 Alan Hayward <alan.hayward@arm.com>
1855
1856 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
1857 (store_sveregs_to_thread): Likewise.
1858 (aarch64_linux_fetch_inferior_registers): Check for SVE.
1859 (aarch64_linux_store_inferior_registers): Likewise.
1860 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
1861 function.
1862 (aarch64_sve_regs_copy_to_regcache): Likewise.
1863 (aarch64_sve_regs_copy_from_regcache): Likewise.
1864 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
1865 declaration.
1866 (aarch64_sve_regs_copy_to_regcache): Likewise.
1867 (aarch64_sve_regs_copy_from_regcache): Likewise.
1868 (sve_context): Structure from Linux headers.
1869 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
1870 (SVE_SIG_ZREG_SIZE): Likewise.
1871 (SVE_SIG_PREG_SIZE): Likewise.
1872 (SVE_SIG_FFR_SIZE): Likewise.
1873 (SVE_SIG_REGS_OFFSET): Likewise.
1874 (SVE_SIG_ZREGS_OFFSET): Likewise.
1875 (SVE_SIG_ZREG_OFFSET): Likewise.
1876 (SVE_SIG_ZREGS_SIZE): Likewise.
1877 (SVE_SIG_PREGS_OFFSET): Likewise.
1878 (SVE_SIG_PREG_OFFSET): Likewise.
1879 (SVE_SIG_PREGS_SIZE): Likewise.
1880 (SVE_SIG_FFR_OFFSET): Likewise.
1881 (SVE_SIG_REGS_SIZE): Likewise.
1882 (SVE_SIG_CONTEXT_SIZE): Likewise.
1883 (SVE_PT_REGS_MASK): Likewise.
1884 (SVE_PT_REGS_FPSIMD): Likewise.
1885 (SVE_PT_REGS_SVE): Likewise.
1886 (SVE_PT_VL_INHERIT): Likewise.
1887 (SVE_PT_VL_ONEXEC): Likewise.
1888 (SVE_PT_REGS_OFFSET): Likewise.
1889 (SVE_PT_FPSIMD_OFFSET): Likewise.
1890 (SVE_PT_FPSIMD_SIZE): Likewise.
1891 (SVE_PT_SVE_ZREG_SIZE): Likewise.
1892 (SVE_PT_SVE_PREG_SIZE): Likewise.
1893 (SVE_PT_SVE_FFR_SIZE): Likewise.
1894 (SVE_PT_SVE_FPSR_SIZE): Likewise.
1895 (SVE_PT_SVE_FPCR_SIZE): Likewise.
1896 (__SVE_SIG_TO_PT): Likewise.
1897 (SVE_PT_SVE_OFFSET): Likewise.
1898 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
1899 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
1900 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
1901 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
1902 (SVE_PT_SVE_PREG_OFFSET): Likewise.
1903 (SVE_PT_SVE_PREGS_SIZE): Likewise.
1904 (SVE_PT_SVE_FFR_OFFSET): Likewise.
1905 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
1906 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
1907 (SVE_PT_SVE_SIZE): Likewise.
1908 (SVE_PT_SIZE): Likewise.
1909 (HAS_SVE_STATE): New define.
1910
17a1cc89
AH
19112018-06-18 Alan Hayward <alan.hayward@arm.com>
1912
1913 * nat/aarch64-sve-linux-sigcontext.h: New file.
1914 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
1915 new files.
1916 (SVE_VQ_MIN): Likewise.
1917 (SVE_VQ_MAX): Likewise.
1918 (SVE_VL_MIN): Likewise.
1919 (SVE_VL_MAX): Likewise.
1920 (SVE_NUM_ZREGS): Likewise.
1921 (SVE_NUM_PREGS): Likewise.
1922 (sve_vl_valid): Likewise.
1923 (struct user_sve_header): Likewise.
1924
7010835a
AB
19252018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
1926 Richard Bunt <Richard.Bunt@arm.com>
1927
1928 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
1929 was requested by GDB.
1930
479b3ef4
TV
19312018-06-15 Tom de Vries <tdevries@suse.de>
1932
1933 * MAINTAINERS (Write After Approval): Add Tom de Vries.
1934
8199b8f4
SM
19352018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
1936
1937 * gnulib/update-gnulib.sh: Print expected versions of
1938 autoconf/aclocal.
1939
55c748a1
SM
19402018-06-14 Simon Marchi <simon.marchi@ericsson.com>
1941
1942 * arch-utils.c (default_type_align): Use type_length_units.
1943 * gdbtypes.c (type_align): Use type_length_units.
1944
87a8eca7
PW
19452018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1946
1947 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
1948 of 'define' command.
1949
5d9a0608
TV
19502018-06-14 Tom de Vries <tdevries@suse.de>
1951
1952 PR cli/22573
1953 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
1954 get_no_prettyformat_print_options.
1955
ab89b5a5
SM
19562018-06-13 Simon Marchi <simon.marchi@ericsson.com>
1957
1958 * sparc-nat.h: Include target.h.
1959 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
1960 <fetch_registers>: Remove this argument in function call.
1961 <store_registers>: Remove this argument in function call, remove
1962 extra semicolon.
1963 <low_forget_process>: Call sparc64_forget_process instead of
1964 sparc_forget_process.
1965
62c808ae
RO
19662018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1967
1968 * procfs.c (_initialize_procfs): Use add_inf_child_target.
1969 (procfs_target::make_corefile_notes): Adjust to new
1970 target_read_alloc return type.
1971
1840d81a
AB
19722018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1973 Stephen Roberts <stephen.roberts@arm.com>
1974
1975 PR gdb/22882
1976 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
1977 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
1978 Move should_notify_stop local into more inner scope.
1979
9516f85a
AB
19802018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1981 Stephen Roberts <stephen.roberts@arm.com>
1982
1983 PR gdb/22882
1984 * infrun.c (resume_1): Add call to mark_async_event_handler.
1985
defd2172
AB
19862018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1987
1988 * infrun.c (do_target_wait): Change old version of $pc printed.
1989
7b23e087
SM
19902018-06-11 Simon Marchi <simon.marchi@ericsson.com>
1991
1992 * dwarf2read.c (read_index_from_section): Rename to...
1993 (read_gdb_index_from_section): ... this, update all callers.
1994 (dwarf2_read_index): Rename to...
1995 (dwarf2_read_gdb_index): ... this, update all callers.
1996
69c67a0b
JDA
19972018-06-11 John David Anglin <danglin@gcc.gnu.org>
1998
1999 * gdb/hppa-linux-nat.c
2000 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
2001 hppa_linux_nat_target::fetch_registers.
2002
65d4cada
AH
20032018-06-11 Alan Hayward <alan.hayward@arm.com>
2004
2005 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
2006 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
2007 (AARCH64_DWARF_SVE_FFR): Likewise.
2008 (AARCH64_DWARF_SVE_P0): Likewise.
2009 (AARCH64_DWARF_SVE_Z0): Likewise.
2010
f868386e
AH
20112018-06-11 Alan Hayward <alan.hayward@arm.com>
2012
2013 * common/common-regcache.h (raw_compare): New function.
2014 * regcache.c (regcache::raw_compare): Likewise.
2015 * regcache.h (regcache::raw_compare): New declaration.
2016
9c861883
AH
20172018-06-11 Alan Hayward <alan.hayward@arm.com>
2018
2019 * common/common-regcache.h (reg_buffer_common): New structure.
2020 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
2021 (reg_buffer::raw_supply): Likewise.
2022 (reg_buffer::raw_supply_integer): Likewise.
2023 (reg_buffer::raw_supply_zeroed): Likewise.
2024 (reg_buffer::raw_collect): Likewise.
2025 (reg_buffer::raw_collect_integer): Likewise.
2026 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
2027 (reg_buffer::raw_supply): Likewise.
2028 (reg_buffer::raw_supply_integer): Likewise.
2029 (reg_buffer::raw_supply_zeroed): Likewise.
2030 (reg_buffer::raw_collect): Likewise.
2031 (reg_buffer::raw_collect_integer): Likewise.
2032
953edf2b
TT
20332018-06-10 Tom Tromey <tom@tromey.com>
2034
2035 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
2036 (class remote_state) <stop_reply_queue>: Now std::vector.
2037 (remote_state::~remote_state)
2038 (remote_target::stop_reply_queue_length): Update.
2039 (struct queue_iter_param, remove_child_of_pending_fork)
2040 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
2041 (check_pending_event_prevents_wildcard_vcont_callback)
2042 (remove_stop_reply_for_inferior)
2043 (remove_stop_reply_of_remote_state)
2044 (remote_notif_remove_once_on_match)
2045 (stop_reply_match_ptid_and_ws)
2046 (remote_kill_child_of_pending_fork): Remove.
2047 (remote_target::remove_new_fork_children)
2048 (remote_target::check_pending_events_prevent_wildcard_vcont)
2049 (remote_target::discard_pending_stop_replies)
2050 (remote_target::discard_pending_stop_replies_in_queue)
2051 (remote_target::remote_notif_remove_queued_reply)
2052 (remote_target::queued_stop_reply)
2053 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
2054 (remote_target::wait, remote_target::kill_new_fork_children)
2055 (remote_target::async): Update.
2056
1ddbba9d
TT
20572018-06-10 Tom Tromey <tom@tromey.com>
2058
2059 * record-full.c (record_full_arch_list_cleanups): Remove.
2060 (record_full_message): Use try/catch.
2061 (record_full_wait_cleanups): Remove.
2062 (record_full_wait_1): Use try/catch.
2063 (record_full_restore): Likewise.
2064
219605fd
TT
20652018-06-10 Tom Tromey <tom@tromey.com>
2066
2067 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
2068 declare VEC. Add constructor.
2069 <in_target_beneath>: Now bool.
2070 (record_full_breakpoints): Now a std::vector, static.
2071 (record_full_sync_record_breakpoints)
2072 (record_full_init_record_breakpoints)
2073 (record_full_target::insert_breakpoint)
2074 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
2075
71b73764
SM
20762018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
2077
2078 * dwarf2read.c (process_cu_includes): Remove struct keyword.
2079 * serial.c (serial_interface_lookup): Remove struct keyword.
2080
4360561f
TT
20812018-06-10 Tom Tromey <tom@tromey.com>
2082
2083 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
2084 method.
2085 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
2086 a method.
2087 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
2088 method.
2089 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
2090 "beneath" as a method.
2091 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
2092 Use "beneath" as a method.
2093
d14b92bf
TT
20942018-06-10 Tom Tromey <tom@tromey.com>
2095
2096 * tracefile.c (struct trace_file_writer_deleter): New.
2097 <operator()>: Rename from trace_file_writer_xfree.
2098 (trace_file_writer_up): New typedef.
2099 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
2100
835dcf92
SM
21012018-06-09 Simon Marchi <simon.marchi@ericsson.com>
2102
2103 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
2104 <m_registers, m_register_status>: Change type to
2105 std::unique_ptr.
2106 * regcache.c (reg_buffer::reg_buffer): Use new instead of
2107 XCNEWVEC.
2108
aac0d564
SM
21092018-06-09 Simon Marchi <simon.marchi@ericsson.com>
2110
2111 * common/common-regcache.h (enum register_status): Add
2112 underlying type "signed char".
2113 * regcache.h (reg_buffer) <m_register_status>: Change type to
2114 register_status *.
2115 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
2116 register_status instead of signed char.
2117 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
2118 (reg_buffer::get_register_status): Remove cast.
2119 (readable_regcache::raw_read): Remove cast.
2120 (readable_regcache::cooked_read): Remove cast.
2121
77ad7394
TT
21222018-06-09 Tom Tromey <tom@tromey.com>
2123
2124 * source.c (reverse_search_command, forward_search_command): Use
2125 scoped_fd.
2126
191cca63
TT
21272018-06-09 Tom Tromey <tom@tromey.com>
2128
2129 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
2130 (serial_ops_list): Now static, std::vector.
2131 (serial_interface_lookup, serial_add_interface): Update.
2132
c5d0225d
TT
21332018-06-09 Tom Tromey <tom@tromey.com>
2134
2135 * dwarf2read.c (process_cu_includes): Update.
2136 (process_full_comp_unit): Update.
2137 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
2138 std::vector.
2139
aeab5128
PK
21402018-06-08 Paul Koning <paul_koning@dell.com>
2141
2142 PR gdb/23252
2143
2144 * python/python.c (do_start_initialization):
2145 Avoid call to internal Python API.
2146 (init__gdb_module): New function.
2147
5045b3d7
GB
21482018-06-08 Gary Benson <gbenson@redhat.com>
2149
2150 * linux-thread-db.c (valprint.h): New include.
2151 (struct check_thread_db_info): New structure.
2152 (check_thread_db_on_load, tdb_testinfo): New static globals.
2153 (check_thread_db, check_thread_db_callback): New functions.
2154 (try_thread_db_load_1): Run integrity checks if requested.
2155 (maintenance_check_libthread_db): New function.
2156 (_initialize_thread_db): Register "maint check libthread-db"
2157 and "maint set/show check-libthread-db".
2158 * NEWS: Mention the above new commands.
2159
2f4f025f
TT
21602018-06-08 Tom Tromey <tom@tromey.com>
2161
2162 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
2163 now a method.
2164
343b0027
TT
21652018-06-08 Tom Tromey <tom@tromey.com>
2166
2167 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
2168
8dcc53b3
TT
21692018-06-08 Tom Tromey <tom@tromey.com>
2170
2171 * common/btrace-common.h (struct btrace_data): Add constructor,
2172 destructor, move assignment operator.
2173 <empty, clear, fini>: New methods.
2174 <format>: Initialize.
2175 (btrace_data_init, btrace_data_fini, btrace_data_clear)
2176 (btrace_data_empty): Don't declare.
2177 * common/btrace-common.c (btrace_data_init): Remove.
2178 (btrace_data::fini): Rename from btrace_data_fini.
2179 (btrace_data::empty): Rename from btrace_data_empty.
2180 (btrace_data::clear): Rename from btrace_data_clear. Return
2181 bool.
2182 * btrace.h (make_cleanup_btrace_data): Don't declare.
2183 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
2184 (parse_xml_btrace): Update.
2185 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
2186 (maint_btrace_clear_packet_history_cmd): Update.
2187
a1740ee1
PA
21882018-06-07 Pedro Alves <palves@redhat.com>
2189
2190 * target.h (target_ops) <beneath>: Now a method. All references
2191 updated.
2192 (class target_stack): New.
2193 * target.c (g_target_stack): New.
2194 (g_current_top_target): Delete.
2195 (current_top_target): Get the top target out of g_target_stack.
2196 (target_stack::push, target_stack::unpush): New.
2197 (push_target, unpush_target): Reimplement.
2198 (target_is_pushed): Reimplement in terms of g_target_stack.
2199 (target_ops::beneath, target_stack::find_beneath): New.
2200
d6ca69cd
PA
22012018-06-07 Pedro Alves <palves@redhat.com>
2202
2203 * target.h (find_target_beneath): Delete declaration.
2204 * target.c (find_target_beneath): Delete definition.
2205 * aix-thread.c: All callers of find_target_beneath adjusted to
2206 call target_ops::beneath instead.
2207 * bsd-uthread.c: Likewise.
2208 * linux-thread-db.c: Likewise.
2209 * ravenscar-thread.c: Likewise.
2210 * sol-thread.c: Likewise.
2211 * spu-multiarch.c: Likewise.
2212
b6a8c27b
PA
22132018-06-07 Pedro Alves <palves@redhat.com>
2214
2215 * target.h (target_ops) <beneath>: Now a method. All references
2216 updated.
2217 (target_ops) <m_beneath>: New.
2218 * target.c (target_ops::beneath): New.
2219 * corelow.c: Adjust all references to target_ops::beneath.
2220 * linux-thread-db.c: Likewise.
2221 * make-target-delegates: Likewise.
2222 * record-btrace.c: Likewise.
2223 * record-full.c: Likewise.
2224 * remote.c: Likewise.
2225 * target.c: Likewise.
2226 * target-delegates.c: Regenerate.
2227
8b88a78e
PA
22282018-06-07 Pedro Alves <palves@redhat.com>
2229
2230 * target.h (target_stack): Delete.
2231 (current_top_target): Declare function.
2232 * target.c (target_stack): Delete.
2233 (g_current_top_target): New.
2234 (current_top_target): New function.
2235 * auxv.c: Use current_top_target instead of target_stack
2236 throughout.
2237 * avr-tdep.c: Likewise.
2238 * breakpoint.c: Likewise.
2239 * corefile.c: Likewise.
2240 * elfread.c: Likewise.
2241 * eval.c: Likewise.
2242 * exceptions.c: Likewise.
2243 * frame.c: Likewise.
2244 * gdbarch-selftests.c: Likewise.
2245 * gnu-v3-abi.c: Likewise.
2246 * ia64-tdep.c: Likewise.
2247 * ia64-vms-tdep.c: Likewise.
2248 * infcall.c: Likewise.
2249 * infcmd.c: Likewise.
2250 * infrun.c: Likewise.
2251 * linespec.c: Likewise.
2252 * linux-tdep.c: Likewise.
2253 * minsyms.c: Likewise.
2254 * ppc-linux-nat.c: Likewise.
2255 * ppc-linux-tdep.c: Likewise.
2256 * procfs.c: Likewise.
2257 * regcache.c: Likewise.
2258 * remote.c: Likewise.
2259 * rs6000-tdep.c: Likewise.
2260 * s390-linux-nat.c: Likewise.
2261 * s390-tdep.c: Likewise.
2262 * solib-aix.c: Likewise.
2263 * solib-darwin.c: Likewise.
2264 * solib-dsbt.c: Likewise.
2265 * solib-spu.c: Likewise.
2266 * solib-svr4.c: Likewise.
2267 * solib-target.c: Likewise.
2268 * sparc-tdep.c: Likewise.
2269 * sparc64-tdep.c: Likewise.
2270 * spu-tdep.c: Likewise.
2271 * symfile.c: Likewise.
2272 * symtab.c: Likewise.
2273 * target-descriptions.c: Likewise.
2274 * target-memory.c: Likewise.
2275 * target.c: Likewise.
2276 * target.h: Likewise.
2277 * tracefile-tfile.c: Likewise.
2278 * tracepoint.c: Likewise.
2279 * valops.c: Likewise.
2280 * valprint.c: Likewise.
2281 * value.c: Likewise.
2282 * windows-tdep.c: Likewise.
2283 * mi/mi-main.c: Likewise.
2284
c7110220
TT
22852018-06-07 Tom Tromey <tom@tromey.com>
2286
2287 * valprint.h (build_address_symbolic): Declare.
2288 * printcmd.c (print_address_symbolic): Update.
2289 (build_address_symbolic): Change "name" and "filename" to
2290 std::string.
2291 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2292 Update.
2293 * defs.h (build_address_symbolic): Remove declaration.
2294
63bad7b6
AH
22952018-06-07 Alan Hayward <alan.hayward@arm.com>
2296
2297 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
2298 (aarch64_vnv_type): Add function.
2299 (aarch64_pseudo_register_name): Add V regs for SVE.
2300 (aarch64_pseudo_register_type): Likewise.
2301 (aarch64_pseudo_register_reggroup_p): Likewise.
2302 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
2303 (aarch64_pseudo_read_value): Add V regs for SVE.
2304 (aarch64_pseudo_write_2): Use V0 offset for SVE
2305 (aarch64_pseudo_write): Add V regs for SVE.
2306 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
2307
13e3c608
SDJ
23082018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
2309
2310 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
2311 (sve_vl_from_vq): Likewise.
2312
c61b06a1
TT
23132018-06-05 Tom Tromey <tom@tromey.com>
2314
2315 * cli/cli-cmds.c (show_version): Update.
2316 * top.c (print_gdb_version): Add "interactive" parameter.
2317 Update.
2318 * main.c (captured_main_1): Update.
2319 * top.h (print_gdb_version): Add "interactive" parameter and a
2320 comment.
2321
115f7325
DM
23222018-06-05 David Malcolm <dmalcolm@redhat.com>
2323
2324 * common/enum-flags.h: Add trailing semicolon to example in
2325 comment.
2326
eb6af809
TT
23272018-06-05 Tom Tromey <tom@tromey.com>
2328
2329 PR cli/12326:
2330 * NEWS: Add entry about pager.
2331 * utils.c (pagination_disabled_for_command): New global.
2332 (prompt_for_continue): Allow "c" response to prompt.
2333 (reinitialize_more_filter): Clear
2334 pagination_disabled_for_command.
2335 (fputs_maybe_filtered): Check pagination_disabled_for_command.
2336
54d343a2
TT
23372018-06-04 Tom Tromey <tom@tromey.com>
2338
2339 * ada-lang.h (ada_lookup_symbol_list): Update.
2340 * ada-lang.c (resolve_subexp): Update.
2341 (symbols_are_identical_enums): Change type of syms. Remove nsyms
2342 parameter.
2343 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
2344 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
2345 results parameter to std::vector.
2346 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
2347 Update.
2348 * ada-exp.y (block_lookup): Update.
2349 (select_possible_type_sym): Change type of syms. Remove nsyms
2350 parameter.
2351 (write_var_or_type, write_name_assoc): Update.
2352
178d6a63
JB
23532018-06-04 Joel Brobecker <brobecker@adacore.com>
2354
2355 * windows-nat.c (windows_nat_target::xfer_partial): Return
2356 TARGET_XFER_E_IO if we need to delegate to the target beneath
2357 but BENEATH is NULL.
2358
baf00c2d
SM
23592018-06-04 Simon Marchi <simon.marchi@ericsson.com>
2360
2361 * Makefile.in (config.status): Add configure.nat as a
2362 dependency.
2363
214b073c
TT
23642018-06-04 Tom Tromey <tom@tromey.com>
2365
2366 * cp-name-parser.y (cpname_state): Add method declarations.
2367 (HANDLE_QUAL): Update.
2368 (cpname_state::d_grab, cpname_state::fill_comp)
2369 (cpname_state::make_operator, cpname_state::make_dtor)
2370 (cpname_state::make_builtin_type, cpname_state::make_name)
2371 (cpname_state::d_qualify, cpname_state::d_int_type)
2372 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
2373 (%union): Move earlier.
2374
62b74cb8
AH
23752018-06-04 Alan Hayward <alan.hayward@arm.com>
2376
2377 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
2378
3c5cd5c3
AH
23792018-06-04 Alan Hayward <alan.hayward@arm.com>
2380
2381 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
2382 (aarch64_pseudo_write_1): Likewise.
2383 (aarch64_pseudo_read_value): Use helper.
2384 (aarch64_pseudo_write): Likewise.
2385
59f413d5
PA
23862018-06-04 Pedro Alves <palves@redhat.com>
2387
2388 * darwin-nat.c (darwin_ops): Delete.
2389 (darwin_attach_pid): Use get_native_target.
2390
1332a140
AH
23912018-06-04 Alan Hayward <alan.hayward@arm.com>
2392
2393 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
2394 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
2395
ba2d2bb2
AH
23962018-06-04 Alan Hayward <alan.hayward@arm.com>
2397
2398 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
2399 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
2400 (aarch64_gdbarch_init): Check for SVE.
2401 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
2402
24032018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
2404
2405 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
2406 * aarch64-tdep.h (aarch64_read_description): Likewise.
2407 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2408 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2409 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
2410 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
2411 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
2412
41c60b4b
SM
24132018-06-02 Simon Marchi <simon.marchi@ericsson.com>
2414
2415 * value.c (value_fetch_lazy_bitfield): New.
2416 (value_fetch_lazy_memory): New.
2417 (value_fetch_lazy_register): New.
2418 (value_fetch_lazy): Factor out to smaller functions.
2419
7b640f72
TT
24202018-06-01 Tom Tromey <tom@tromey.com>
2421
2422 * cp-name-parser.y (backslashable, represented): Now const.
2423
98e69eb3
TT
24242018-06-01 Tom Tromey <tom@tromey.com>
2425
2426 * cp-name-parser.y: Include parser-defs.h.
2427 (parser_fprintf): Remove declaration.
2428
49265499
TT
24292018-06-01 Tom Tromey <tom@tromey.com>
2430
2431 * cp-name-parser.y: Use %pure-parser, %lex-param, and
2432 %parse-param.
2433 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
2434 (global_result): Remove globals.
2435 (struct cpname_state): New.
2436 (yyparse): Don't declare.
2437 (yylex, yyerror): Move declarations after %union.
2438 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
2439 (make_name): Add state parameter.
2440 Update all callers.
2441 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
2442 parameter.
2443 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
2444 Update.
2445 (yylex): Add lvalp, state parameters.
2446 (yyerror): Add state parameter.
2447 (cp_demangled_name_to_comp): Update.
2448
55b6c984
TT
24492018-06-01 Tom Tromey <tom@tromey.com>
2450
2451 * cp-name-parser.y (parser_fprintf): Declare.
2452 (GDB_YY_REMAP_PREFIX): Define.
2453 Include yy-remap.h. Don't redefine yy* identifiers.
2454
3513a6bb
TT
24552018-06-01 Tom Tromey <tom@tromey.com>
2456
2457 * python/py-type.c (typy_legacy_template_argument): Update.
2458 * cp-support.h (cp_demangled_name_to_comp): Update.
2459 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
2460 parameter to be a "std::string *".
2461 (main): Update.
2462
e9cb46ab
L
24632018-06-01 H.J. Lu <hongjiu.lu@intel.com>
2464
2465 * ada-lex.l: Include "diagnostics.h" instead of
2466 "common/diagnostics.h".
2467 * unittests/environ-selftests.c: Likewise.
2468 * common/diagnostics.h: Moved to ../include.
2469
8e817061
JB
24702018-06-01 Joel Brobecker <brobecker@adacore.com>
2471
2472 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
2473 to language_mode_manual while calling breakpoint_re_set_one.
2474
a737d952
TT
24752018-06-01 Tom Tromey <tom@tromey.com>
2476
2477 * valops.c (value_cast_structs, destructor_name_p): Update.
2478 * symtab.c (gdb_mangle_name): Update.
2479 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
2480 Update.
2481 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
2482 (pascal_object_print_value_fields, pascal_object_print_value):
2483 Update.
2484 * p-typeprint.c (pascal_type_print_derivation_info): Update.
2485 * linespec.c (find_methods): Update.
2486 * gdbtypes.h (type_name_no_tag): Remove.
2487 (type_name_or_error): Rename from type_name_no_tag_or_error.
2488 * gdbtypes.c (type_name_no_tag): Remove.
2489 (type_name_or_error): Rename from type_name_no_tag_or_error.
2490 (lookup_struct_elt_type, check_typedef): Update.
2491 * expprint.c (print_subexp_standard): Update.
2492 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
2493 * d-namespace.c (d_lookup_nested_symbol): Update.
2494 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
2495 (cp_print_class_member): Update.
2496 * cp-namespace.c (cp_lookup_nested_symbol): Update.
2497 * completer.c (add_struct_fields): Update.
2498 * c-typeprint.c (cp_type_print_derivation_info)
2499 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
2500 Update.
2501 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
2502 (ada_prefer_type, ada_is_exception_sym): Update.
2503
e86ca25f
TT
25042018-06-01 Tom Tromey <tom@tromey.com>
2505
2506 * valops.c (enum_constant_from_type, value_namespace_elt)
2507 (value_maybe_namespace_elt): Update.
2508 * valarith.c (find_size_for_pointer_math): Update.
2509 * target-descriptions.c (make_gdb_type): Update.
2510 * symmisc.c (print_symbol): Update.
2511 * stabsread.c (define_symbol, read_type)
2512 (complain_about_struct_wipeout, add_undefined_type)
2513 (cleanup_undefined_types_1): Update.
2514 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
2515 (rust_range_type_p, val_print_struct, rust_print_struct_def)
2516 (rust_internal_print_type, rust_composite_type)
2517 (rust_evaluate_funcall, rust_evaluate_subexp)
2518 (rust_inclusive_range_type_p): Update.
2519 * python/py-type.c (typy_get_tag): Update.
2520 * p-typeprint.c (pascal_type_print_base): Update.
2521 * mdebugread.c (parse_symbol, parse_type): Update.
2522 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
2523 Update.
2524 * guile/scm-type.c (gdbscm_type_tag): Update.
2525 * go-lang.c (sixg_string_p): Update.
2526 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
2527 Update.
2528 * gdbtypes.h (struct main_type) <tag_name>: Remove.
2529 (TYPE_TAG_NAME): Remove.
2530 * gdbtypes.c (type_name_no_tag): Simplify.
2531 (check_typedef, check_types_equal, recursive_dump_type)
2532 (copy_type_recursive, arch_composite_type): Update.
2533 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
2534 in summary mode when needed.
2535 * eval.c (evaluate_funcall): Update.
2536 * dwarf2read.c (fixup_go_packaging, read_structure_type)
2537 (process_structure_scope, read_enumeration_type)
2538 (read_namespace_type, read_module_type, determine_prefix): Update.
2539 * cp-support.c (inspect_type): Update.
2540 * coffread.c (process_coff_symbol, decode_base_type): Update.
2541 * c-varobj.c (c_is_path_expr_parent): Update.
2542 * c-typeprint.c (c_type_print_base_struct_union): Update.
2543 (c_type_print_base_1): Update. Print struct/class/union/enum in
2544 summary when using C language.
2545 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
2546 (gen_maybe_namespace_elt): Update.
2547 * ada-lang.c (ada_type_name): Simplify.
2548 (empty_record, ada_template_to_fixed_record_type_1)
2549 (template_to_static_fixed_type)
2550 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
2551
c1ec8cea
TT
25522018-06-01 Tom Tromey <tom@tromey.com>
2553
2554 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
2555 c_print_type.
2556 * c-typeprint.c (c_print_type_1): Add "language" parameter.
2557 (c_print_type): Update.
2558 (c_print_type): New overload.
2559 (c_type_print_varspec_prefix, c_type_print_args)
2560 (c_type_print_varspec_suffix, c_print_type_no_offsets)
2561 (c_type_print_base_struct_union, c_type_print_base_1)
2562 (cp_type_print_method_args): Add "language" parameter.
2563 (c_type_print_base): Update.
2564 * c-lang.h (c_print_type): Add new overload.
2565
bc8453a7
TT
25662018-06-01 Tom Tromey <tom@tromey.com>
2567
2568 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
2569 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
2570
739e8682
AH
25712018-06-01 Alan Hayward <alan.hayward@arm.com>
2572
2573 * aarch64-tdep.c (aarch64_sve_register_names): New const
2574 var.
2575 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
2576 (AARCH64_SVE_Z_REGS_NUM): New define.
2577 (AARCH64_SVE_P_REGS_NUM): Likewise.
2578 (AARCH64_SVE_NUM_REGS): Likewise.
2579
8a60efe7
UB
25802018-05-31 Uros Bizjak <ubizjak@gmail.com>
2581
2582 * nat/linux-ptrace.h [__alpha__]
2583 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
2584 definitions.
2585
4b2dfa9d
MR
25862018-05-31 Maciej W. Rozycki <macro@mips.com>
2587
2588 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
2589 the endianness selected.
2590 * NEWS: Document `set endian auto' mode operation update.
2591
122394f1
AH
25922018-05-31 Alan Hayward <alan.hayward@arm.com>
2593
2594 * Makefile.in: Add new header.
2595 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
2596 (sve_vl_from_vg): Likewise.
2597 (sve_vq_from_vl): Likewise.
2598 (sve_vl_from_vq): Likewise.
2599 (sve_vq_from_vg): Likewise.
2600 (sve_vg_from_vq): Likewise.
2601 * configure.nat: Add new c file.
2602 * nat/aarch64-sve-linux-ptrace.c: New file.
2603 * nat/aarch64-sve-linux-ptrace.h: New file.
2604
95228a0d
AH
26052018-05-31 Alan Hayward <alan.hayward@arm.com>
2606
2607 * aarch64-linux-nat.c (aarch64_linux_read_description):
2608 Add parmeter zero.
2609 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2610 Likewise.
2611 * aarch64-tdep.c (tdesc_aarch64_list): Add.
2612 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
2613 (aarch64_gdbarch_init): Add parmeter zero.
2614 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
2615 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
2616 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
2617 parmeter.
2618 * doc/gdb.texinfo: Describe SVE feature
2619 * features/aarch64-sve.c: New file.
2620
5969f0db
OJ
26212018-05-31 Omair Javaid <omair.javaid@linaro.org>
2622
2623 PR gdb/23210
2624 * gdbarch.sh (significant_addr_bit): Default to zero when
2625 not set by target architecture.
2626 * gdbarch.c: Re-generated.
2627 * utils.c (address_significant): Update.
2628
61367c61
JB
26292018-05-30 Joel Brobecker <brobecker@adacore.com>
2630
2631 * stack.c (func_command): Remove trailing newline in call to error.
2632
34a79281
SM
26332018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2634
2635 * regcache.h (regcache_raw_collect): Remove, update callers to
2636 use regcache::raw_collect.
2637 * regcache.c (regcache_raw_collect): Remove.
2638
73e1c03f
SM
26392018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2640
2641 * regcache.h (regcache_raw_supply): Remove, update callers to
2642 use detached_regcache::raw_supply.
2643 * regcache.c (regcache_raw_supply): Remove.
2644
e4c4a59b
SM
26452018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2646
2647 * regcache.h (regcache_cooked_write_part): Remove, update
2648 callers to use regcache::cooked_write_part.
2649 * regcache.c (regcache_cooked_write_part): Remove.
2650
73bb0000
SM
26512018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2652
2653 * regcache.h (regcache_cooked_read_part): Remove, update callers
2654 to use readable_regcache::cooked_read_part.
2655 * regcache.c (regcache_cooked_read_part): Remove.
2656
46a45e9d
SM
26572018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2658
2659 * regcache.h (regcache_cooked_read_value): Remove, update
2660 callers to use readable_regcache::cooked_read_value.
2661 * regcache.c (regcache_cooked_read_value): Remove.
2662
b66f5587
SM
26632018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2664
2665 * regcache.h (regcache_cooked_write): Remove, update callers to
2666 use regcache::cooked_write.
2667 * regcache.c (regcache_cooked_write): Remove.
2668
6aa7d724
SM
26692018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2670
2671 * regcache.h (regcache_invalidate): Remove, update callers to
2672 use detached_regcache::invalidate instead.
2673 * regcache.c (regcache_invalidate): Remove.
2674
4f0420fd
SM
26752018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2676
2677 * regcache.h (regcache_raw_write_part): Remove, update callers
2678 to use regcache::raw_write_part instead.
2679 * regcache.c (regcache_raw_write_part): Remove.
2680
502fe83e
SM
26812018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2682
2683 * regcache.h (regcache_raw_read_part): Remove, update callers to
2684 use readable_regcache::raw_read_part instead.
2685 * regcache.c (regcache_raw_read_part): Remove.
2686
dca08e1f
SM
26872018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2688
2689 * regcache.h (regcache_cooked_read): Remove, update callers to
2690 use readable_regcache::cooked_read instead.
2691 * regcache.c (regcache_cooked_read): Remove.
2692
10eaee5f
SM
26932018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2694
2695 * regcache.h (regcache_raw_write): Remove, update callers to use
2696 regcache::raw_write instead.
2697 * regcache.c (regcache_raw_write): Remove.
2698
0b883586
SM
26992018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2700
2701 * regcache.h (regcache_raw_read): Remove, update callers to use
2702 readable_regcache::raw_read instead.
2703 * regcache.c (regcache_raw_read): Remove.
2704
0b47d985
SM
27052018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2706
2707 * regcache.h (regcache_raw_update): Remove, update callers to
2708 use readable_regcache::raw_update instead.
2709 * regcache.c (regcache_raw_update): Remove.
2710
0ec9f114
SM
27112018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2712
2713 * regcache.h (regcache_register_status): Remove, update callers
2714 to use reg_buffer::get_register_status directly instead.
2715 * regcache.c (regcache_register_status): Remove.
2716
222312d3
SM
27172018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2718
2719 * regcache.h (regcache_get_ptid): Remove, update all callers to
2720 call regcache::ptid instead.
2721 * regcache.c (regcache_get_ptid): Remove.
2722
fdbe37e3
SM
27232018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2724
2725 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
2726
f7c6f423
PA
27272018-05-30 Pedro Alves <palves@redhat.com>
2728
2729 * common/common-exceptions.h (exception_rethrow): Use
2730 ATTRIBUTE_NORETURN.
2731
52941706
SM
27322018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
2733
2734 * breakpoint.c (print_solib_event, check_status_catch_solib):
2735 Remove struct keyword in range-based for loops.
2736 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
2737 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
2738 Likewise.
2739 * linespec.c (find_superclass_methods, search_minsyms_for_name):
2740 Likewise.
2741 * symfile.c (addr_info_make_relative): Likewise.
2742 * thread.c (value_in_thread_stack_temporaries): Likewise.
2743
bf2977b5
WP
27442018-06-12 Weimin Pan <weimin.pan@oracle.com>
2745
2746 PR gdb/16841
2747 * valops.c (value_struct_elt_for_reference): Call check_typedef on
2748 aggregate type to get its real type before accessing it.
2749
64cc34d8
WP
27502018-05-29 Weimin Pan <weimin.pan@oracle.com>
2751
2752 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
2753 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
2754 * coff-pe-read.c (add_pe_forwarded_sym): Replace
2755 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
2756 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
2757 * jit.c (jit_breakpoint_re_set_internal): Likewise.
2758 * printcmd.c (info_address_command): Likewise.
2759
e7ec8713
TT
27602018-05-29 Tom Tromey <tom@tromey.com>
2761
2762 * windows-nat.c (handle_exception): Update fall-through comment.
2763
bcb430e4
TT
27642018-05-29 Tom Tromey <tom@tromey.com>
2765
2766 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
2767 (struct program_space) <added_solibs>: Now a std::vector.
2768 * breakpoint.c (print_solib_event): Update.
2769 (check_status_catch_solib): Update.
2770 * progspace.c (clear_program_space_solib_cache): Update.
2771 * solib.c (update_solib_list): Update.
2772
894882e3
TT
27732018-05-29 Tom Tromey <tom@tromey.com>
2774
2775 * python/py-type.c (typy_richcompare): Update.
2776 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
2777 * gdbtypes.h (types_deeply_equal): Return bool.
2778 (types_equal): Likewise.
2779 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
2780 declare VEC.
2781 (check_types_equal): Change worklist to std::vector. Return
2782 bool.
2783 (struct type_equality_entry): Add constructor.
2784 (compare_maybe_null_strings): Return bool.
2785 (check_types_worklist): Return bool. Change worklist to
2786 std::vector.
2787 (types_deeply_equal): Use std::vector.
2788 (types_equal): Return bool.
2789 (compare_maybe_null_strings): Simplify.
2790
10b2ded4
TT
27912018-05-29 Tom Tromey <tom@tromey.com>
2792
2793 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
2794
4f7deebe
TT
27952018-05-29 Tom Tromey <tom@tromey.com>
2796
2797 * objc-lang.h: Don't include cp-support.h.
2798 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
2799 declare VEC.
2800
b8283aea
TT
28012018-05-27 Tom Tromey <tom@tromey.com>
2802
2803 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
2804
41a883c8
TT
28052018-05-25 Tom Tromey <tom@tromey.com>
2806
2807 * value.c (value::location): Initialize.
2808
bf259e25
TT
28092018-05-25 Tom Tromey <tom@tromey.com>
2810
2811 * dbxread.c (init_bincl_list): Remove.
2812 (bincl_list): Now a std::vector.
2813 (bincls_allocated, next_bincl): Remove.
2814 (free_bincl_list, do_free_bincl_list_cleanup)
2815 (make_cleanup_free_bincl_list): Remove.
2816 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
2817 unique_xmalloc_ptr.
2818 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
2819 (struct header_file_location): Add constructor.
2820 (add_bincl_to_list): Remove.
2821
d525a99b
TT
28222018-05-25 Tom Tromey <tom@tromey.com>
2823
2824 * tui/tui.c (tui_enable): Update.
2825 * mi/mi-interp.c (mi_interp::init): Update.
2826 * interps.h (class interp) <name>: New method.
2827 <m_name>: Rename from name.
2828 (~scoped_restore_interp): Update.
2829 * interps.c (interp::interp): Update.
2830 (interp_add, interp_set, interp_lookup_existing)
2831 (current_interp_named_p): Update.
2832
da505cff
TT
28332018-05-25 Tom Tromey <tom@tromey.com>
2834
2835 * interps.c (interp_name): Remove.
2836 * mi/mi-interp.c (mi_interp::init): Update.
2837 * interps.h (interp_name): Remove.
2838 (~scoped_restore_interp): Update.
2839 * tui/tui.c (tui_enable): Update.
2840
29f94340
TT
28412018-05-25 Tom Tromey <tom@tromey.com>
2842
2843 * utils.c (fputs_maybe_filtered): Update.
2844 * linespec.c (decode_line_full): Update.
2845 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
2846 (mi_print_breakpoint_for_event, mi_solib_loaded)
2847 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
2848 (mi_user_selected_context_changed): Update.
2849 * mi/mi-main.c (mi_execute_command): Update.
2850 * cli/cli-script.c (execute_control_command): Update.
2851 * python/python.c (execute_gdb_command): Update.
2852 * solib.c (info_sharedlibrary_command): Update.
2853 * interps.c (interp_ui_out): Remove.
2854 * interps.h (interp_ui_out): Remove.
2855
716b8bc5
TT
28562018-05-25 Tom Tromey <tom@tromey.com>
2857
2858 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
2859 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
2860 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
2861
753ff9bd
TT
28622018-05-25 Tom Tromey <tom@tromey.com>
2863
2864 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
2865 * interps.c (interp_exec): Use scoped_restore.
2866
5ca3b260
TT
28672018-05-25 Tom Tromey <tom@tromey.com>
2868
2869 * remote.c (remote_target::remote_file_get): Use
2870 gdb::byte_vector.
2871 (remote_target::remote_file_put): Likewise.
2872
3173aa2f
TT
28732018-05-25 Tom Tromey <tom@tromey.com>
2874
2875 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
2876 a std::string.
2877 (get_pe_section_index, add_pe_exported_sym): Update.
2878 (read_pe_exported_syms): Use gdb::def_vector.
2879
09a5e1b5
TT
28802018-05-25 Tom Tromey <tom@tromey.com>
2881
2882 * frame.c (remove_prev_frame): Remove.
2883 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
2884
d8dab6c3
MR
28852018-05-25 Maciej W. Rozycki <macro@mips.com>
2886
2887 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
2888 Remove prototypes.
2889 * mips-linux-nat.c (supply_fpregset): Always call
2890 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
2891 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
2892 `mips_fill_fpregset'.
2893 * mips-linux-tdep.c (mips_supply_fpregset)
2894 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
2895 (mips_fill_fpregset_wrapper): Remove functions.
2896 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
2897 (mips_linux_fpregset): Remove variable.
2898 (mips_linux_iterate_over_regset_sections): Use
2899 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
2900 (mips_linux_o32_sigframe_init): Remove comment.
2901
3c69da40
PA
29022018-05-25 Pedro Alves <palves@redhat.com>
2903
2904 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
2905 (struct readahead_cache, struct packet_reg, struct
2906 remote_arch_state, class remote_state): Move higher up in the
2907 file.
2908 (remote_target::m_remote_state): Now an object instead of a pointer.
2909 (remote_target::get_remote_state): Adjust.
2910
39f0c204
AB
29112018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
2912
2913 * stack.c (select_and_print_frame): Delete.
2914 (struct function_bounds): Move struct within function.
2915 (func_command): Most content moved into new function
2916 find_frame_for_function, use new function, print result, add
2917 function comment.
2918 (find_frame_for_function): New function, now returns a result.
2919
d392224a
PW
29202018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2921
2922 * stack.c (iterate_over_block_arg_vars): Fix comment.
2923 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
2924
45f25d6c
AB
29252018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
2926
2927 PR gdb/23203
2928 * frame.c
2929 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2930 Define.
2931 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2932 Define.
2933 * frame.h (class scoped_restore_selected_frame): New class.
2934 * stack.c (print_frame_local_vars): Remove catching and rethrowing
2935 of any exception, use scoped_restore_selected_frame to restore the
2936 frame instead.
2937
da05d921
PA
29382018-05-24 Pedro Alves <palves@redhat.com>
2939
2940 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
2941 override.
2942
a8be540e
TT
29432018-05-23 Tom Tromey <tom@tromey.com>
2944
2945 * complaints.c (struct complaints): Remove.
2946 (symfile_complaint_book): Remove.
2947 (series): New global.
2948 (complaint_internal): Update.
2949 (clear_complaints): Update.
2950
ff1cf532
TT
29512018-05-23 Tom Tromey <tom@tromey.com>
2952
2953 * complaints.c (counters): New global.
2954 (struct complain): Remove.
2955 (struct complaints) <root>: Remove.
2956 (complaint_sentinel): Remove.
2957 (symfile_complaint_book): Update.
2958 (find_complaint) Remove.
2959 (complaint_internal, clear_complaints): Update.
2960
7ff88174
TT
29612018-05-23 Tom Tromey <tom@tromey.com>
2962
2963 * complaints.c (struct complain) <file, line>: Remove.
2964 (find_complaint): Remove file, line parameters.
2965 (complaint_internal): Update.
2966
de54e1a5
TT
29672018-05-23 Tom Tromey <tom@tromey.com>
2968
2969 * complaints.c (vcomplaint): Remove.
2970 (complaint_internal) Merge in contents of vcomplaint.
2971
2ac237e5
TT
29722018-05-23 Tom Tromey <tom@tromey.com>
2973
2974 * complaints.c (struct complaints) <explanation>: Remove.
2975 (symfile_explanations): Remove.
2976 (symfile_complaint_book): Update.
2977 (vcomplaint): Update.
2978 (struct explanation): Remove.
2979
b98664d3
TT
29802018-05-23 Tom Tromey <tom@tromey.com>
2981
2982 * complaints.c (symfile_complaints): Remove.
2983 (complaint_internal): Remove "complaints" parameter.
2984 (clear_complaints, vcomplaint): Remove "c" parameter.
2985 (get_complaints): Remove.
2986 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
2987 (dwarf2_debug_line_missing_file_complaint)
2988 (dwarf2_debug_line_missing_end_sequence_complaint)
2989 (dwarf2_complex_location_expr_complaint)
2990 (dwarf2_const_value_length_mismatch_complaint)
2991 (dwarf2_section_buffer_overflow_complaint)
2992 (dwarf2_macro_malformed_definition_complaint)
2993 (dwarf2_invalid_attrib_class_complaint)
2994 (create_addrmap_from_index, dw2_symtab_iter_next)
2995 (dw2_expand_marked_cus)
2996 (dw2_debug_names_iterator::find_vec_in_debug_names)
2997 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
2998 (create_debug_type_hash_table, init_cutu_and_read_dies)
2999 (partial_die_parent_scope, add_partial_enumeration)
3000 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
3001 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
3002 (read_import_statement, read_file_scope, create_dwo_cu_reader)
3003 (create_cus_hash_table, create_dwp_hash_table)
3004 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3005 (dwarf2_rnglists_process, dwarf2_ranges_process)
3006 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
3007 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
3008 (handle_struct_member_die, process_structure_scope)
3009 (read_array_type, read_common_block, read_module_type)
3010 (read_tag_pointer_type, read_typedef, read_base_type)
3011 (read_subrange_type, load_partial_dies, partial_die_info::read)
3012 (partial_die_info::read, partial_die_info::read)
3013 (partial_die_info::read, read_checked_initial_length_and_offset)
3014 (dwarf2_string_attr, read_formatted_entries)
3015 (dwarf_decode_line_header)
3016 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3017 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
3018 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
3019 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3020 (get_signatured_type, get_DW_AT_signature_type)
3021 (decode_locdesc, file_file_name, consume_improper_spaces)
3022 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
3023 (dwarf_decode_macro_bytes, dwarf_decode_macros)
3024 (dwarf2_symbol_mark_computed, set_die_type)
3025 (read_attribute_value): Update.
3026 * stap-probe.c (handle_stap_probe, get_stap_base_address):
3027 Update.
3028 * dbxread.c (unknown_symtype_complaint)
3029 (lbrac_mismatch_complaint, repeated_header_complaint)
3030 (set_namestring, function_outside_compilation_unit_complaint)
3031 (read_dbx_symtab, process_one_symbol): Update.
3032 * gdbtypes.c (stub_noname_complaint): Update.
3033 * windows-nat.c (handle_unload_dll): Update.
3034 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
3035 (decode_base_type): Update.
3036 * xcoffread.c (bf_notfound_complaint, ef_complaint)
3037 (eb_complaint, record_include_begin, record_include_end)
3038 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
3039 (process_xcoff_symbol, read_symbol)
3040 (function_outside_compilation_unit_complaint)
3041 (scan_xcoff_symtab): Update.
3042 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
3043 * buildsym.c (finish_block_internal, make_blockvector)
3044 (end_symtab_get_static_block, augment_type_symtab): Update.
3045 * dtrace-probe.c (dtrace_process_dof)
3046 (dtrace_static_probe_ops::get_probes): Update.
3047 * complaints.h (struct complaint): Don't declare.
3048 (symfile_complaints): Remove.
3049 (complaint_internal): Remove "complaints" parameter.
3050 (complaint): Likewise.
3051 (clear_complaints): Likewise.
3052 * symfile.c (syms_from_objfile_1, finish_new_objfile)
3053 (reread_symbols): Update.
3054 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
3055 (dwarf2_frame_cache, decode_frame_entry): Update.
3056 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
3057 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3058 (info_selectors_command): Update.
3059 * macrotab.c (macro_include, check_for_redefinition)
3060 (macro_undef): Update.
3061 * objfiles.c (filter_overlapping_sections): Update.
3062 * stabsread.c (invalid_cpp_abbrev_complaint)
3063 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
3064 (define_symbol, error_type, read_type, rs6000_builtin_type)
3065 (stabs_method_name_from_physname, read_member_functions)
3066 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
3067 (attach_fields_to_type, complain_about_struct_wipeout)
3068 (read_range_type, read_args, common_block_start)
3069 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
3070 Update.
3071 * mdebugread.c (index_complaint, unknown_ext_complaint)
3072 (basic_type_complaint, bad_tag_guess_complaint)
3073 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
3074 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
3075 (parse_procedure, parse_lines)
3076 (function_outside_compilation_unit_complaint)
3077 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
3078 (bad_tag_guess_complaint, reg_value_complaint): Update.
3079 * cp-support.c (demangled_name_complaint): Update.
3080 * macroscope.c (sal_macro_scope): Update.
3081 * dwarf-index-write.c (class debug_names): Update.
3082
4e9668d0
TT
30832018-05-23 Tom Tromey <tom@tromey.com>
3084
3085 * complaints.c (clear_complaints): Remove "noisy" parameter.
3086 * complaints.h (clear_complaints): Update.
3087 * symfile.c (syms_from_objfile_1, finish_new_objfile)
3088 (reread_symbols): Update.
3089
43ba33c7
TT
30902018-05-23 Tom Tromey <tom@tromey.com>
3091
3092 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
3093 SUBSEQUENT_MESSAGE.
3094 (vcomplaint, clear_complaints): Update.
3095 (symfile_explanations): Remove some messages.
3096
2b9496b2
TT
30972018-05-23 Tom Tromey <tom@tromey.com>
3098
3099 * complaints.c (internal_complaint): Remove.
3100 * complaints.h (internal_complaint): Remove.
3101
35f1fea3
MR
31022018-05-22 Maciej W. Rozycki <macro@mips.com>
3103
3104 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
3105
6b8edb51
PA
31062018-05-22 Pedro Alves <palves@redhat.com>
3107
3108 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
3109 (remote_fileio_badfd, remote_fileio_return_errno)
3110 (remote_fileio_return_success, remote_fileio_func_open)
3111 (remote_fileio_func_open, remote_fileio_func_close)
3112 (remote_fileio_func_read, remote_fileio_func_write)
3113 (remote_fileio_func_lseek, remote_fileio_func_rename)
3114 (remote_fileio_func_unlink, remote_fileio_func_stat)
3115 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
3116 (remote_fileio_func_isatty, remote_fileio_func_system): Add
3117 remote_target parameter.
3118 (remote_fio_func_map) <func>: Add remote_target parameter.
3119 (do_remote_fileio_request, remote_fileio_request):
3120 * remote-fileio.h (remote_fileio_request):
3121 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
3122 remote_target parameter.
3123 (remote_notif_process, handle_notification): Adjust to pass down
3124 the remote.
3125 (remote_notif_state_allocate): Add remote_target parameter. Save
3126 it.
3127 * remote-notif.h (struct remote_target): Forward declare.
3128 (struct notif_client) <parse, ack, can_get_pending_events>: Add
3129 remote_target parameter.
3130 (struct remote_notif_state) <remote>: New field.
3131 (remote_notif_ack, remote_notif_parse): Add remote_target
3132 parameter.
3133 (remote_notif_state_allocate, remote_notif_state_allocate): Add
3134 remote_target parameter.
3135 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
3136 (threads_listing_context, rmt_thread_action, protocol_feature)
3137 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
3138 (packet_result, struct threads_listing_context, remote_state):
3139 Move definitions and declarations higher up.
3140 (remote_target) <~remote_target>: Declare.
3141 (remote_download_command_source, remote_file_put, remote_file_get)
3142 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
3143 (remote_hostio_pread_vFile, remote_hostio_send_command)
3144 (remote_hostio_set_filesystem, remote_hostio_open)
3145 (remote_hostio_close, remote_hostio_unlink, remote_state)
3146 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
3147 (get_memory_write_packet_size, get_memory_read_packet_size)
3148 (append_pending_thread_resumptions, remote_detach_1)
3149 (append_resumption, remote_resume_with_vcont)
3150 (add_current_inferior_and_thread, wait_ns, wait_as)
3151 (process_stop_reply, remote_notice_new_inferior)
3152 (process_initial_stop_replies, remote_add_thread)
3153 (btrace_sync_conf, remote_btrace_maybe_reopen)
3154 (remove_new_fork_children, kill_new_fork_children)
3155 (discard_pending_stop_replies, stop_reply_queue_length)
3156 (check_pending_events_prevent_wildcard_vcont)
3157 (discard_pending_stop_replies_in_queue, stop_reply)
3158 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
3159 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
3160 (remote_interrupt_as, remote_interrupt_ns)
3161 (remote_get_noisy_reply, remote_query_attached)
3162 (remote_add_inferior, remote_current_thread, get_current_thread)
3163 (set_thread, set_general_thread, set_continue_thread)
3164 (set_general_process, write_ptid)
3165 (remote_unpack_thread_info_response, remote_get_threadinfo)
3166 (parse_threadlist_response, remote_get_threadlist)
3167 (remote_threadlist_iterator, remote_get_threads_with_ql)
3168 (remote_get_threads_with_qxfer)
3169 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
3170 (get_offsets, remote_check_symbols, remote_supported_packet)
3171 (remote_query_supported, remote_packet_size)
3172 (remote_serial_quit_handler, remote_detach_pid)
3173 (remote_vcont_probe, remote_resume_with_hc)
3174 (send_interrupt_sequence, interrupt_query)
3175 (remote_notif_get_pending_events, fetch_register_using_p)
3176 (send_g_packet, process_g_packet, fetch_registers_using_g)
3177 (store_register_using_P, store_registers_using_G)
3178 (set_remote_traceframe, check_binary_download)
3179 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
3180 (remote_xfer_live_readonly_partial, remote_read_bytes)
3181 (remote_send_printf, remote_flash_write, readchar)
3182 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
3183 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
3184 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
3185 (extended_remote_disable_randomization, extended_remote_run)
3186 (send_environment_packet, extended_remote_environment_support)
3187 (extended_remote_set_inferior_cwd, remote_write_qxfer)
3188 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
3189 (packet_command): Now methods of ...
3190 (remote_target): ... this class.
3191 (m_remote_state) <remote_target>: New field.
3192 (struct remote_state) <stop_reply_queue,
3193 remote_async_inferior_event_token, wait_forever_enabled_p>: New
3194 fields.
3195 (remote_state::remote_state): Allocate stop_reply_queue.
3196 (remote_state): Delete global.
3197 (get_remote_state_raw): Delete.
3198 (remote_target::get_remote_state): Allocate m_remote_state on
3199 demand.
3200 (get_current_remote_target): New.
3201 (remote_ops, extended_remote_ops): Delete.
3202 (wait_forever_enabled_p, remote_async_inferior_event_token):
3203 Delete, moved to struct remote_state.
3204 (remote_target::close): Delete self. Destruction bits split to
3205 ...
3206 (remote_target::~remote_target): ... this.
3207 (show_memory_packet_size): Adjust to use
3208 get_current_remote_target.
3209 (struct protocol_feature) <func>: Add remote_target parameter.
3210 All callers adjusted.
3211 (curr_quit_handler_target): New.
3212 (remote_serial_quit_handler): Reimplement.
3213 (remote_target::open_1): Adjust to use get_current_remote_target.
3214 Heap-allocate remote_target/extended_remote_target instances.
3215 (vcont_builder::vcont_builder): Add remote_target parameter, and
3216 save it in m_remote. All callers adjusted.
3217 (vcont_builder::m_remote): New field.
3218 (vcont_builder::restart, vcont_builder::flush)
3219 (vcont_builder::push_action): Use it.
3220 (remote_target::commit_resume): Use it.
3221 (struct queue_iter_param) <remote>: New field.
3222 (remote_target::remove_new_fork_children): Fill in 'remote' field.
3223 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
3224 (check_pending_event_prevents_wildcard_vcont_callback)
3225 (remote_target::check_pending_events_prevent_wildcard_vcont)
3226 (remote_target::discard_pending_stop_replies)
3227 (remote_target::discard_pending_stop_replies_in_queue)
3228 (remote_target::remote_notif_remove_queued_reply): Fill in
3229 'remote' field.
3230 (remote_notif_get_pending_events): New.
3231 (remote_target::readchar, remote_target::remote_serial_write):
3232 Save/restore curr_quit_handler_target.
3233 (putpkt): New.
3234 (kill_new_fork_children): Fill in 'remote' field.
3235 (packet_command): Use get_current_remote_target, defer to
3236 remote_target method of same name.
3237 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
3238 parameter, and save it in m_remote. All callers adjusted.
3239 (scoped_remote_fd::release): Use m_remote.
3240 (scoped_remote_fd::m_remote): New field.
3241 (remote_file_put, remote_file_get, remote_file_delete): Use
3242 get_current_remote_target, defer to remote_target method of same
3243 name.
3244 (remote_btrace_reset): Add remote_state paremeter. Update all
3245 callers.
3246 (remote_async_inferior_event_handler). Pass down 'data'.
3247 (remote_new_objfile): Use get_current_remote_target.
3248 (remote_target::vcont_r_supported): New.
3249 (set_range_stepping): Use get_current_remote_target and
3250 remote_target::vcont_r_supported.
3251 (_initialize_remote): Don't allocate 'remote_state' and
3252 'stop_reply_queue' globals.
3253 * remote.h (struct remote_target): Forward declare.
3254 (getpkt, putpkt, remote_notif_get_pending_events): Add
3255 'remote_target' parameter.
3256
f5db4863
PA
32572018-05-22 Pedro Alves <palves@redhat.com>
3258
3259 * remote.c (vcont_builder): Now a class. Make all data members
3260 private.
3261 (vcont_builder) <vcont_builder, restart, flush, push_action>:
3262 Declare methods.
3263 (vcont_builder_restart): Rename to ...
3264 (vcont_builder::restart): ... this.
3265 (vcont_builder_flush): Rename to ...
3266 (vcont_builder::flush): ... this.
3267 (vcont_builder_push_action): Rename to ...
3268 (vcont_builder::push_action): ... this.
3269 (remote_target::commit_resume): Adjust.
3270
cc0be08f
PA
32712018-05-22 Pedro Alves <palves@redhat.com>
3272
3273 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
3274 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
3275 (get_fixed_memory_packet_size): New.
3276 (get_memory_packet_size): Use it.
3277 (set_memory_packet_size): Don't override the config size with
3278 DEFAULT_MAX_MEMORY_PACKET_SIZE.
3279 (show_memory_packet_size): Use get_fixed_memory_packet_size.
3280 Don't refer to get_memory_packet_size if not connected to a remote
3281 target. Show "(default)" if configured size is 0.
3282
9607784a
PA
32832018-05-22 Pedro Alves <palves@redhat.com>
3284
3285 * remote.c (remote_target::mourn_inferior): Move
3286 discard_pending_stop_replies call here from ...
3287 (_initialize_remote): ... here.
3288
0e9a6b2f
PA
32892018-05-22 Pedro Alves <palves@redhat.com>
3290
3291 * remote.c (compare_section_command): Remove set_general_process
3292 call.
3293
43c3a0e4
PA
32942018-05-22 Pedro Alves <palves@redhat.com>
3295
3296 * remote.c (struct packet_reg, struct remote_arch_state):
3297 Move higher up in the file.
3298 (remote_state) <m_arch_states>: Store remote_arch_state values
3299 instead of remote_arch_state pointers.
3300 (remote_state::get_remote_arch_state): Adjust.
3301
9d6eea31
PA
33022018-05-22 Pedro Alves <palves@redhat.com>
3303
3304 * remote.c: Include <unordered_map>.
3305 (remote_state): Now a class.
3306 (remote_state) <get_remote_arch_state>: Declare method.
3307 <get_remote_arch_state>: New field.
3308 (remote_arch_state) <remote_arch_state>: Declare ctor.
3309 <regs>: Now a unique_ptr.
3310 (remote_gdbarch_data_handle): Delete.
3311 (get_remote_arch_state): Delete.
3312 (remote_state::get_remote_arch_state): New.
3313 (get_remote_state): Adjust to call remote_state's
3314 get_remote_arch_state method.
3315 (init_remote_state): Delete, bits factored out to ...
3316 (remote_arch_state::remote_arch_state): ... this new method.
3317 (get_remote_packet_size, get_memory_packet_size)
3318 (process_g_packet, remote_target::fetch_registers)
3319 (remote_target::prepare_to_store, store_registers_using_G)
3320 (remote_target::store_registers, remote_target::get_trace_status):
3321 Adjust to call remote_state's method.
3322 (_initialize_remote): Remove reference to
3323 remote_gdbarch_data_handle.
3324
dd194f6b
PA
33252018-05-22 Pedro Alves <palves@redhat.com>
3326
3327 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
3328 pread>: New method declarations.
3329 (remote_target::open_1): Adjust.
3330 (readahead_cache_invalidate): Rename to ...
3331 (readahead_cache::invalidate): ... this, and adjust to be a class
3332 method.
3333 (readahead_cache_invalidate_fd): Rename to ...
3334 (readahead_cache::invalidate_fd): ... this, and adjust to be a
3335 class method.
3336 (remote_hostio_pwrite): Adjust.
3337 (remote_hostio_pread_from_cache): Rename to ...
3338 (readahead_cache::pread): ... this, and adjust to be a class
3339 method.
3340 (remote_hostio_close): Adjust.
3341
440b7aec
PA
33422018-05-22 Pedro Alves <palves@redhat.com>
3343
3344 * remote.c (remote_hostio_close_cleanup): Delete.
3345 (class scoped_remote_fd): New.
3346 (remote_file_put, remote_file_get): Use it.
3347
de44f5a7
PA
33482018-05-22 Pedro Alves <palves@redhat.com>
3349
3350 (struct vCont_action_support): Use bool and initialize all fields.
3351 (struct readahead_cache): Initialize all fields.
3352 (remote_state): Use bool and initialize all fields.
3353 (remote_state::remote_state, remote_state::~remote_state): New.
3354 (new_remote_state): Delete.
3355 (_initialize_remote): Use new to allocate remote_state.
3356
b1b60145
PA
33572018-05-22 Pedro Alves <palves@redhat.com>
3358 張俊芝 <zjz@zjz.name>
3359
3360 PR gdb/22973
3361 * c-exp.y: Include "c-support.h".
3362 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
3363 of tolower. Use c_ident_is_alpha to scan names.
3364 * c-lang.c: Include "c-support.h".
3365 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
3366 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
3367 * c-support.h: New file, with bits factored out from ...
3368 * cp-name-parser.y: ... this file.
3369 Include "c-support.h".
3370 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
3371 c-support.h and renamed.
3372 (symbol_end, yylex): Adjust.
3373
0ec848ad
PFC
33742018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3375
3376 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
3377 parameter type to CORE_ADDR.
3378 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
3379 parameter type in declaration to CORE_ADDR.
3380 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
3381 target_auxv_search to get AT_HWCAP and use the result to get the
3382 target description.
3383 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
3384 to CORE_ADDR. Remove the cast of the return value to unsigned
3385 long. Fix error predicate of target_auxv_search.
3386 (ppc_linux_nat_target::read_description): Change the type of the
3387 hwcap variable to CORE_ADDR.
3388
0fb2aaa1
PFC
33892018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3390
3391 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
3392 if the size of fpscr is larger than 32 bits.
3393
2c3305f6
PFC
33942018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3395
3396 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
3397 (ppc32_linux_vsxregmap): New global.
3398 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
3399 regcache_supply_regset, and regcache_collect_regset.
3400 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
3401 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
3402 (fetch_vsx_register, store_vsx_register): Remove.
3403 (fetch_vsx_registers): Add regno parameter. Get regset using
3404 ppc_linux_vsxregset. Use regset to supply registers.
3405 (store_vsx_registers): Add regno parameter. Get regset using
3406 ppc_linux_vsxregset. Use regset to collect registers.
3407 (fetch_register): Call fetch_vsx_registers instead of
3408 fetch_vsx_register.
3409 (store_register): Call store_vsx_registers instead of
3410 store_vsx_register.
3411 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
3412 new regno parameter.
3413 (store_ppc_registers): Call store_vsx_registers with -1 for the
3414 new regno parameter.
3415 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
3416 (ppc_collect_vsxregset): Remove.
3417
1d75a658
PFC
34182018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3419
3420 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
3421 offset fields.
3422 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
3423 for vector register offset fields.
3424 (ppc64_fbsd_reg_offsets): Likewise.
3425 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
3426 to vector register offset fields.
3427 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
3428 to vector register offset fields.
3429 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
3430 vector register offset fields.
3431 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
3432 initializers for vector register offset fields.
3433 (rs6000_aix64_reg_offsets): Likewise.
3434 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
3435 (ppc_supply_vrregset): Remove.
3436 (ppc_collect_vrregset): Remove.
3437 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
3438 (ppc_linux_vrregset) : New function.
3439 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
3440 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
3441 (ppc32_linux_vrregset): Remove.
3442 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
3443 and use result instead of ppc32_linux_vrregset.
3444 (ppc32_linux_reg_offsets): Remove initializers for vector register
3445 offset fields.
3446 (ppc64_linux_reg_offsets): Likewise.
3447 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
3448 * ppc-linux-nat.c: Include regset.h.
3449 (gdb_vrregset_t): Adjust comment to account for little-endian
3450 mode.
3451 (supply_vrregset, fill_vrregset): Remove.
3452 (fetch_altivec_register, store_altivec_register): Remove.
3453 (fetch_altivec_registers): Add regno parameter. Get regset using
3454 ppc_linux_vrregset. Use regset to supply registers.
3455 (store_altivec_registers): Add regno parameter. Get regset using
3456 ppc_linux_vrregset. Use regset to collect registers.
3457 (fetch_register): Call fetch_altivec_registers instead of
3458 fetch_altivec_register.
3459 (store_register): Call store_altivec_registers instead of
3460 store_altivec_register.
3461 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
3462 the new regno parameter.
3463 (store_ppc_registers): Call store_altivec_registers with -1 for
3464 the new regno parameter.
3465
d078308a
PFC
34662018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3467
3468 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
3469 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
3470 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3471 (gdb_vrregset_t): Change array type size to
3472 PPC_LINUX_SIZEOF_VRREGSET.
3473 (gdb_vsxregset_t): Change array type size to
3474 PPC_LINUX_SIZEOF_VSXREGSET.
3475 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
3476 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
3477 PPC_LINUX_SIZEOF_VSXREGSET.
3478
2e077f5e
PFC
34792018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3480
3481 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
3482 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
3483 nat/ppc-linux.c.
3484 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
3485 ppc_linux_target_wordsize with tid.
3486 (ppc_linux_nat_target::read_description): Call ppc_linux_target
3487 wordsize with tid.
3488 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
3489 (ppc64_64bit_inferior_p): Add static and inline specifiers.
3490 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
3491 tid parameter. Remove static specifier.
3492 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
3493 (ppc_linux_target_wordsize): New declaration.
3494
bd64614e
PFC
34952018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3496
3497 * arch/ppc-linux-common.c: New file.
3498 * arch/ppc-linux-common.h: New file.
3499 * arch/ppc-linux-tdesc.h: New file.
3500 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
3501 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
3502 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
3503 arch/ppc-linux-tdesc.h.
3504 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
3505 arch/ppc-linux-tdesc.h.
3506 (ppc_linux_nat_target::read_description): Remove target
3507 description matching code. Fill a ppc_linux_features struct and
3508 call ppc_linux_match_description with it. Move comment about ISA
3509 2.05 to ppc-linux-common.c.
3510 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
3511 arch/ppc-linux-tdesc.h.
3512 (ppc_linux_core_read_description): Remove target description
3513 matching code. Fill a ppc_linux_features struct and call
3514 ppc_linux_match_description with it.
3515 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3516 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3517 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3518 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3519 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3520 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3521 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3522 (tdesc_powerpc_e500l): Remove.
3523
241db429
JB
35242018-05-22 Joel Brobecker <brobecker@adacore.com>
3525
3526 * ada-lang.c (catch_assert_command): Pass empty string instead
3527 of NULL for excep_string argument.
3528
75d74cca
MR
35292018-05-22 Maciej W. Rozycki <macro@mips.com>
3530
3531 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
3532 the width of the requested register exceeds the width of the
3533 `ptrace' data type.
3534
122b53ea
TT
35352018-05-21 Tom Tromey <tom@tromey.com>
3536
3537 * printcmd.c (output_command): Remove.
3538 (output_command_const): Rename to output_command.
3539 * valprint.h (output_command): Rename from output_command_const.
3540 * tracepoint.c (trace_dump_actions): Call output_command.
3541
bc18fbb5
TT
35422018-05-21 Tom Tromey <tom@tromey.com>
3543
3544 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3545 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
3546 * ada-lang.h (create_ada_exception_catchpoint): Update.
3547 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
3548 std::string.
3549 (create_excep_cond_exprs, ~ada_catchpoint)
3550 (should_stop_exception, print_one_exception)
3551 (print_mention_exception, print_recreate_exception): Update.
3552 (ada_get_next_arg): Remove.
3553 (catch_ada_exception_command_split): Use std::string. Change type
3554 of "excep_string", "cond_string".
3555 (catch_ada_exception_command): Update.
3556 (create_ada_exception_catchpoint): Change type of excep_string.
3557 (ada_exception_sal): Remove excep_string parameter.
3558 (~ada_catchpoint): Remove.
3559
790217f6
TT
35602018-05-21 Tom Tromey <tom@tromey.com>
3561
3562 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
3563 cleanup.
3564
6f46ac85
TT
35652018-05-21 Tom Tromey <tom@tromey.com>
3566
3567 * ada-lang.c (ada_exception_message_1, ada_exception_message):
3568 Return unique_xmalloc_ptr.
3569 (print_it_exception): Update.
3570
15b6611c
TT
35712018-05-21 Tom Tromey <tom@tromey.com>
3572
3573 * tracepoint.c (trace_dump_actions): Use std::string.
3574
c0c9f665
TT
35752018-05-21 Tom Tromey <tom@tromey.com>
3576
3577 * symfile.c (reread_symbols): Use std::string for original_name.
3578
22ca247e
TT
35792018-05-21 Tom Tromey <tom@tromey.com>
3580
3581 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
3582 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
3583 constructor.
3584
184cde75
SM
35852018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
3586
3587 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
3588 instance to...
3589 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
3590 * objfiles.c (get_objfile_bfd_data): Allocate
3591 objfile_per_bfd_storage with obstack_new when allocating on
3592 obstack.
3593
e39db4db
SM
35942018-05-20 Simon Marchi <simon.marchi@ericsson.com>
3595
3596 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
3597 OBSTACK_ZALLOC.
3598 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3599 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3600 * mdebugread.c (mdebug_build_psymtabs): Likewise.
3601 (add_pending): Likewise.
3602 (parse_symbol): Likewise.
3603 (parse_partial_symbols): Likewise.
3604 (psymtab_to_symtab_1): Likewise.
3605 (new_psymtab): Likewise.
3606 (elfmdebug_build_psymtabs): Likewise.
3607 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3608 * objfiles.c (get_objfile_bfd_data): Likewise.
3609 (objfile_register_static_link): Likewise.
3610 * psymtab.c (allocate_psymtab): Likewise.
3611 * stabsread.c (read_member_functions): Likewise.
3612 * xcoffread.c (xcoff_end_psymtab): Likewise.
3613
284a0e3c
SM
36142018-05-20 Simon Marchi <simon.marchi@ericsson.com>
3615
3616 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
3617 compiler supports std::is_trivially_constructible.
3618 * common/poison.h: Include obstack.h.
3619 (IsMallocable): Define to is_trivially_constructible if the
3620 compiler supports it, define to true_type otherwise.
3621 (xobnew): New.
3622 (XOBNEW): Redefine.
3623 (xobnewvec): New.
3624 (XOBNEWVEC): Redefine.
3625 * gdb_obstack.h (obstack_zalloc): New.
3626 (OBSTACK_ZALLOC): Redefine.
3627 (obstack_calloc): New.
3628 (OBSTACK_CALLOC): Redefine.
3629 (obstack_new): New.
3630 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
3631 (gdbarch_obstack): New declaration in gdbarch.h, definition in
3632 gdbarch.c.
3633 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
3634 obstack_calloc/obstack_zalloc.
3635 (gdbarch_obstack_zalloc): Remove.
3636 * target-descriptions.c (tdesc_data_init): Use obstack_new.
3637
59f66be3
PW
36382018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3639
3640 * stack.c (backtrace_command_1): Remove useless variable int i.
3641
50c65c2d
PW
36422018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3643
3644 * stack.c (print_frame_info): Fix comment.
3645
7ff8cb8c
TT
36462018-05-18 Tom Tromey <tom@tromey.com>
3647
3648 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
3649 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
3650 (~dwarf2_per_objfile): Update
3651 (dwarf2_get_dwz_file): Use new.
3652 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
3653 unique_ptr.
3654
400174b1
TT
36552018-05-18 Tom Tromey <tom@tromey.com>
3656
3657 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
3658 unique_ptr.
3659 * dwarf2read.c (struct dwp_file): Add constructor and
3660 initializers.
3661 (open_and_init_dwp_file): Return a unique_ptr.
3662 (dwarf2_per_objfile, create_dwp_hash_table)
3663 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
3664 (lookup_dwo_unit_in_dwp): Update.
3665 (open_and_init_dwp_file, get_dwp_file): Update.
3666
3063847f
TT
36672018-05-18 Tom Tromey <tom@tromey.com>
3668
3669 * dwarf2read.c (dwarf2_per_objfile): Update.
3670 (struct mapped_index): Add initializers.
3671 (dwarf2_read_index): Use new.
3672 (dw2_symtab_iter_init): Update.
3673 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
3674 unique_ptr.
3675
d3d02dee
SM
36762018-05-18 Simon Marchi <simon.marchi@ericsson.com>
3677
3678 * dwarf2read.c (mapped_index) <total_size>: Remove.
3679
1d143c36
SM
36802018-05-18 Simon Marchi <simon.marchi@ericsson.com>
3681
3682 * unittests/format_pieces-selftests.c (test_format_specifier):
3683 Add ARI comments.
3684
ce1e8424
TT
36852018-05-18 Tom Tromey <tom@tromey.com>
3686
3687 * c-typeprint.c (maybe_print_hole): New function.
3688 (c_print_type_struct_field_offset): Update.
3689 (c_type_print_base_struct_union): Call maybe_print_hole.
3690
ddfe970e
KS
36912018-05-17 Keith Seitz <keiths@redhat.com>
3692
3693 * breakpoint.c (build_bpstat_chain): New function, moved from
3694 bpstat_stop_status.
3695 (bpstat_stop_status): Add optional parameter, `stop_chain'.
3696 If no stop chain is passed, call build_bpstat_chain to build it.
3697 * breakpoint.h (build_bpstat_chain): Declare.
3698 (bpstat_stop_status): Move documentation here from breakpoint.c.
3699 * infrun.c (handle_signal_stop): Before eliding inlined frames,
3700 build the stop chain and pass it to skip_inline_frames.
3701 Pass this stop chain to bpstat_stop_status.
3702 * inline-frame.c: Include breakpoint.h.
3703 (stopped_by_user_bp_inline_frame): New function.
3704 (skip_inline_frames): Add parameter `stop_chain'.
3705 Move documention to inline-frame.h.
3706 If non-NULL, use stopped_by_user_bp_inline_frame to determine
3707 whether the frame should be elided.
3708 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
3709 Add moved documentation and update for new parameter.
3710
b17992c1
SM
37112018-05-17 Simon Marchi <simon.marchi@ericsson.com>
3712
3713 PR cli/14975
3714 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3715 unittests/format_pieces-selftests.c.
3716 * common/format.h (format_piece) <operator==>: New.
3717 (format_pieces) <operator[]>: Remove.
3718 * common/format.c (format_pieces::format_pieces): Handle \e.
3719 * unittests/format_pieces-selftests.c: New.
3720
58f0c718
TT
37212018-05-17 Tom Tromey <tom@tromey.com>
3722
3723 PR symtab/23010:
3724 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
3725 (dw2_instantiate_symtab): Add skip_partial parameter.
3726 (dw2_find_last_source_symtab, dw2_map_expand_apply)
3727 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
3728 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
3729 (dw2_expand_symtabs_matching_one)
3730 (dw2_find_pc_sect_compunit_symtab)
3731 (dw2_debug_names_lookup_symbol)
3732 (dw2_debug_names_expand_symtabs_for_function): Update.
3733 (init_cutu_and_read_dies): Add skip_partial parameter.
3734 (process_psymtab_comp_unit, build_type_psymtabs_1)
3735 (process_skeletonless_type_unit, load_partial_comp_unit)
3736 (psymtab_to_symtab_1): Update.
3737 (load_full_comp_unit): Add skip_partial parameter.
3738 (process_imported_unit_die, dwarf2_read_addr_index)
3739 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
3740 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
3741 (read_signatured_type): Update.
3742
3e618834
SM
37432018-05-17 Simon Marchi <simon.marchi@ericsson.com>
3744
3745 * value.c (release_value): Remove unused variable.
3746 (record_latest_value): Likewise.
3747 (access_value_history): Likewise.
3748 (preserve_values): Likewise.
3749
fe10fe31
TT
37502018-05-17 Tom Tromey <tom@tromey.com>
3751
3752 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
3753 Initialize.
3754
1d761124
MR
37552018-05-16 Maciej W. Rozycki <macro@mips.com>
3756
3757 PR gdb/22286
3758 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
3759 Also handle registers whose width is not a multiple of
3760 PTRACE_TYPE_RET.
3761 (linux_nat_trad_target::store_register): Likewise.
3762
06333fea
TT
37632018-05-16 Tom Tromey <tom@tromey.com>
3764
3765 * gdbcore.h (core_bfd): Redefine.
3766 * corelow.c (core_target::close): Update.
3767 (core_target_open): Update.
3768 * progspace.h (struct program_space) <cbfd>: Now a
3769 gdb_bfd_ref_ptr.
3770
921222e2
TT
37712018-05-16 Tom Tromey <tom@tromey.com>
3772
3773 PR cli/19551:
3774 * symfile-add-flags.h (enum symfile_add_flags)
3775 <SYMFILE_NOT_FILENAME>: New constant.
3776 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
3777 objfile name from BFD.
3778 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
3779 * minidebug.c (find_separate_debug_file_in_section): Put
3780 ".gnu_debugdata" into BFD's file name.
3781
3acb7083
SM
37822018-05-16 Simon Marchi <simon.marchi@ericsson.com>
3783
3784 * regcache.c (regcache_read_ftype, regcache_write_ftype):
3785 Remove.
3786
561a72d4
TC
37872018-05-15 Tamar Christina <tamar.christina@arm.com>
3788
3789 PR binutils/21446
3790 * aarch64-tdep.c (aarch64_analyze_prologue,
3791 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
3792 Indicate not interested in errors.
3793
4e6ff0e1
MR
37942018-05-15 Maciej W. Rozycki <macro@mips.com>
3795
3796 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
3797 Supply the MIPS_ZERO_REGNUM register.
3798
ea33cd92
MR
37992018-05-15 Maciej W. Rozycki <macro@mips.com>
3800
3801 * mips-tdep.c (mask_address_var): Make variable static.
3802
2d79090e
TT
38032018-05-14 Tom Tromey <tom@tromey.com>
3804
3805 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
3806
cf4912ae
AB
38072018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
3808
3809 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
3810 FXSAVE_ADDR for the mxcsr register.
3811
67e6f569
MF
38122018-05-11 Max Filippov <jcmvbkbc@gmail.com>
3813
3814 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
3815
15244507
PA
38162018-05-11 Pedro Alves <palves@redhat.com>
3817
3818 * corelow.c (core_target) <core_target>: No longer inline.
3819 Initialize m_core_gdbarch, m_core_vec and build the section table
3820 here.
3821 <~core_target>: New.
3822 <core_gdbarch, get_core_register_section>: New methods.
3823 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
3824 factored out from ...
3825 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
3826 (core_ops): Delete.
3827 (sniff_core_bfd): Add gdbarch parameter.
3828 (core_close): Delete, merged into ...
3829 (core_target::close): ... here. Delete self.
3830 (core_close_cleanup): Delete.
3831 (core_target_open): Allocate a core_target on the heap. Use a
3832 unique_ptr instead of a cleanup. Bits moved into the core_target
3833 ctor. Adjust to use core_target methods instead of globals.
3834 (get_core_register_section): Rename to ...
3835 (core_target::get_core_register_section): ... this and adjust.
3836 (struct get_core_registers_cb_data): New.
3837 (get_core_registers_cb): Use it. Use bool.
3838 (core_target::fetch_registers, core_target::files_info)
3839 (core_target::xfer_partial, core_target::read_description)
3840 (core_target::pid_to, core_target::thread_name): Adjust to
3841 reference class fields instead of globals.
3842 * target.h (struct target_ops_deleter, target_ops_up): New.
3843
451953fa
PA
38442018-05-11 Pedro Alves <palves@redhat.com>
3845
3846 * corefile.c (core_file_command): Move to corelow.c.
3847 * corelow.c (the_core_target): Delete.
3848 (core_file_command): Moved from corefile.c. Check exec_bfd
3849 instead of the_core_target. Use target_detach instead of calling
3850 into the_core_target directly.
3851 (maybe_say_no_core_file_now): New.
3852 (core_target::detach): Use it.
3853 (_initialize_corelow): Remove references to the_core_target.
3854 * gdbcore.h (the_core_target): Delete.
3855
e540a5a2 38562018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 3857 Pedro Alves <palves@redhat.com>
e540a5a2
TT
3858
3859 * corefile.c (core_bfd): Remove.
3860 * gdbcore.h (core_bfd): Now a macro.
3861 * progspace.h (struct program_space) <cbfd>: New field.
3862
633cf254
TT
38632018-05-11 Tom Tromey <tom@tromey.com>
3864
3865 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
3866 gdb::def_vector.
3867
1a34f210
TT
38682018-05-10 Tom Tromey <tom@tromey.com>
3869
3870 * configure: Rebuild.
3871 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
3872
190852c8
JB
38732018-05-10 Joel Brobecker <brobecker@adacore.com>
3874
3875 PR server/23158:
3876 * regformats/regdat.sh: Adjust script, following the addition
3877 of the new expedite_regs parameter to init_target_desc.
3878
8727de56
OJ
38792018-05-10 Omair Javaid <omair.javaid@linaro.org>
3880
3881 PR gdb/23127
3882 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
3883 set_gdbarch_significant_addr_bit.
3884 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
3885 set_gdbarch_significant_addr_bit.
3886 * utils.c (address_significant): Update to sign extend addr.
3887
37d9e062
MF
38882018-05-09 Max Filippov <jcmvbkbc@gmail.com>
3889
3890 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
3891 (xtensa_linux_init_abi): Limit tdep->num_regs by
3892 tdep->num_nopriv_regs.
3893 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
3894 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
3895 not initialized.
3896
7402fbca
SM
38972018-05-08 Simon Marchi <simon.marchi@ericsson.com>
3898
3899 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
3900
8ee22052
AB
39012018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3902
3903 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
3904 (I387_MXCSR_INIT_VAL): New constant.
3905 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
3906 buffer if it was supplied by the inferior.
3907 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
3908 (i387_xsave_get_clear_bv): New function.
3909 (i387_supply_xsave): Only read x87 control registers from the
3910 xsave buffer if the feature is enabled, and the state will have
3911 been written, otherwise, provide a suitable default.
3912 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
3913 including x87 control registers. Update control registers if they
3914 have changed from the default value, and mark features as enabled
3915 as required.
3916 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
3917
968ae51b
UW
39182018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3919
3920 * spu-tdep.c (info_spu_event_command): Fix output formatting.
3921
aff689d3
TT
39222018-05-07 Tom Tromey <tom@tromey.com>
3923
3924 * configure: Rebuild.
3925 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
3926
ce887586
TT
39272018-05-07 Tom Tromey <tom@tromey.com>
3928
3929 PR tdep/20362:
3930 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
3931 bit. Use correct value for VDIV.
3932
85e26832
TT
39332018-05-04 Tom Tromey <tom@tromey.com>
3934
3935 * configure: Rebuild.
3936 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
3937
449b1ac7
TT
39382018-05-04 Tom Tromey <tom@tromey.com>
3939
3940 * linux-record.c (record_linux_system_call) <case
3941 RECORD_SYS_RECVFROM>: Add "break".
3942
15c9ffd6
TT
39432018-05-04 Tom Tromey <tom@tromey.com>
3944
3945 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
3946 Add missing "break".
3947 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
3948 Add missing "break".
3949
e3829d13
TT
39502018-05-04 Tom Tromey <tom@tromey.com>
3951
3952 * rs6000-tdep.c (ppc_process_record_op4)
3953 (ppc_process_record_op63): Add fall-through comment.
3954
da0e1563
TT
39552018-05-04 Tom Tromey <tom@tromey.com>
3956
3957 * i386-tdep.c (i386_process_record): Add fall-through comment.
3958
0019cd49
TT
39592018-05-04 Tom Tromey <tom@tromey.com>
3960
3961 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
3962 comment.
3963
565e0eda
TT
39642018-05-04 Tom Tromey <tom@tromey.com>
3965
3966 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
3967 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
3968 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
3969 comment.
3970 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
3971 comment.
3972 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
3973 comment.
3974
621846f4
TT
39752018-05-04 Tom Tromey <tom@tromey.com>
3976
3977 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
3978
86a73007
TT
39792018-05-04 Tom Tromey <tom@tromey.com>
3980
3981 * s390-tdep.c (s390_process_record): Fix fall-through comments.
3982 * xcoffread.c (scan_xcoff_symtab): Move comment later.
3983 * symfile.c (section_is_mapped): Fix fall-through comment.
3984 * stabsread.c (define_symbol, read_member_functions): Fix
3985 fall-through comment.
3986 * s390-linux-tdep.c (s390_process_record): Fix fall-through
3987 comment.
3988 * remote.c (remote_wait_as): Fix fall-through comment.
3989 * p-exp.y (yylex): Fix fall-through comment.
3990 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
3991 comment.
3992 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
3993 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
3994 * jv-exp.y (yylex): Fix fall-through comment.
3995 * go-exp.y (lex_one_token): Fix fall-through comment.
3996 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
3997 fall-through comment.
3998 * f-exp.y (yylex): Fix fall-through comment.
3999 * dwarf2read.c (process_die): Fix fall-through comments.
4000 * dbxread.c (process_one_symbol): Fix fall-through comment.
4001 * d-exp.y (lex_one_token): Fix fall-through comment.
4002 * cp-name-parser.y (yylex): Fix fall-through comment.
4003 * coffread.c (coff_symtab_read): Fix fall-through comment.
4004 * c-exp.y (lex_one_token): Fix fall-through comment.
4005 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
4006 comment.
4007 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
4008 comment.
4009
56bcdbea
TT
40102018-05-04 Tom Tromey <tom@tromey.com>
4011
4012 PR python/22730:
4013 * NEWS: Mention gdb.execute change.
4014 * gdbcmd.h (execute_control_command): Don't declare.
4015 * python/python.c (execute_gdb_command): Use read_command_lines_1,
4016 execute_control_commands, execute_control_commands_to_string.
4017 * cli/cli-script.h (execute_control_commands)
4018 (execute_control_commands_to_string): Declare.
4019 (execute_control_command): Add from_tty parameter.
4020 * cli/cli-script.c (execute_control_commands)
4021 (execute_control_commands_to_string): New functions.
4022 (execute_user_command): Use execute_control_commands.
4023 (execute_control_command_1): Add "from_tty" parameter. Update.
4024 (execute_control_command): Likewise.
4025
a913fffb
TT
40262018-05-04 Tom Tromey <tom@tromey.com>
4027
4028 PR python/22731:
4029 * NEWS: Mention that breakpoint commands are writable.
4030 * python/py-breakpoint.c (bppy_set_commands): New function.
4031 (breakpoint_object_getset) <"commands">: Use it.
4032
60b3cef2
TT
40332018-05-04 Tom Tromey <tom@tromey.com>
4034
4035 * tracepoint.c (actions_command): Update.
4036 * mi/mi-cmd-break.c (mi_command_line_array)
4037 (mi_command_line_array_cnt, mi_command_line_array_ptr)
4038 (mi_read_next_line): Remove.
4039 (mi_cmd_break_commands): Update.
4040 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
4041 function_view.
4042 * cli/cli-script.c (get_command_line): Update.
4043 (process_next_line): Use function_view. Constify.
4044 (recurse_read_control_structure, read_command_lines)
4045 (read_command_lines_1): Change argument types to function_view.
4046 (do_define_command, document_command): Update.
4047 * breakpoint.h (check_tracepoint_command): Don't declare.
4048 * breakpoint.c (check_tracepoint_command): Remove.
4049 (commands_command_1, create_tracepoint_from_upload): Update.
4050
7a2c85f2
TT
40512018-05-04 Tom Tromey <tom@tromey.com>
4052
4053 PR gdb/11750:
4054 * cli/cli-script.h (enum command_control_type) <define_control>:
4055 New constant.
4056 * cli/cli-script.c (multi_line_command_p): Handle define_control.
4057 (build_command_line, execute_control_command_1)
4058 (process_next_line): Likewise.
4059 (do_define_command): New function, extracted from define_command.
4060 (define_command): Use it.
4061
295dc222
TT
40622018-05-04 Tom Tromey <tom@tromey.com>
4063
4064 * tracepoint.c (actions_command): Update.
4065 * cli/cli-script.h (read_command_lines): Update.
4066 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
4067 (MAX_TMPBUF): Remove define.
4068 (define_command): Use string_printf.
4069 (document_command): Likewise.
4070 * breakpoint.c (commands_command_1): Update.
4071
1263a9d5
TT
40722018-05-04 Tom Tromey <tom@tromey.com>
4073
4074 * top.c (execute_command): Update.
4075 * cli/cli-script.h (print_command_lines): Now varargs.
4076 * cli/cli-script.c (print_command_lines): Now varargs.
4077 (execute_control_command_1) <case while_control, case if_control>:
4078 Update.
4079
12973681
TT
40802018-05-04 Tom Tromey <tom@tromey.com>
4081
4082 * tracepoint.c (all_tracepoint_actions): Rename from
4083 all_tracepoint_actions_and_cleanup. Change return type.
4084 (actions_command, encode_actions_1, encode_actions)
4085 (trace_dump_actions, tdump_command): Update.
4086 * remote.c (remote_download_command_source): Update.
4087 * python/python.c (gdbpy_eval_from_control_command)
4088 (python_command, python_interactive_command): Update.
4089 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
4090 * guile/guile.c (guile_command)
4091 (gdbscm_eval_from_control_command, guile_command): Update.
4092 * compile/compile.c (compile_code_command)
4093 (compile_print_command, compile_to_object): Update.
4094 * cli/cli-script.h (struct command_lines_deleter): New.
4095 (counted_command_line): New typedef.
4096 (struct command_line): Add constructor, destructor.
4097 <body_list>: Remove.
4098 <body_list_0, body_list_1>: New members.
4099 (command_line_up): Remove typedef.
4100 (read_command_lines, read_command_lines_1, get_command_line):
4101 Update.
4102 (copy_command_lines): Don't declare.
4103 * cli/cli-script.c (build_command_line): Use "new".
4104 (get_command_line): Return counted_command_line.
4105 (print_command_lines, execute_user_command)
4106 (execute_control_command_1, while_command, if_command): Update.
4107 (realloc_body_list): Remove.
4108 (process_next_line, recurse_read_control_structure): Update.
4109 (read_command_lines, read_command_lines_1): Return counted_command_line.
4110 (free_command_lines): Use "delete".
4111 (copy_command_lines): Remove.
4112 (define_command, document_command, show_user_1): Update.
4113 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
4114 a counted_command_line.
4115 * breakpoint.h (counted_command_line): Remove typedef.
4116 (breakpoint_set_commands): Update.
4117 * breakpoint.c (check_no_tracepoint_commands)
4118 (validate_commands_for_breakpoint): Update.
4119 (breakpoint_set_commands): Change commands to be a
4120 counted_command_line.
4121 (commands_command_1, update_dprintf_command_list)
4122 (create_tracepoint_from_upload): Update.
4123
e2fc72e2
TT
41242018-05-04 Tom Tromey <tom@tromey.com>
4125
4126 * cli/cli-decode.h (cmd_list_element): New constructor.
4127 (~cmd_list_element): New destructor.
4128 (struct cmd_list_element): Add initializers.
4129 * cli/cli-decode.c (do_add_cmd): Use "new".
4130 (delete_cmd): Use "delete".
4131
a3b60e45
JK
41322018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4133 Pedro Alves <palves@redhat.com>
4134
4135 PR breakpoints/19806 and support for PR external/20207.
4136 * NEWS: Mention Aarch64 watchpoint improvements.
4137 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
4138 watchpoints and PR external/20207 watchpoints.
4139 * nat/aarch64-linux-hw-point.c
4140 (kernel_supports_any_contiguous_range): New.
4141 (aarch64_watchpoint_offset): New.
4142 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
4143 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
4144 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
4145 (aarch64_align_watchpoint): New parameters aligned_offset_p and
4146 next_addr_orig_p. Support PR external/20207 watchpoints.
4147 (aarch64_downgrade_regs): New.
4148 (aarch64_dr_state_insert_one_point): New parameters offset and
4149 addr_orig.
4150 (aarch64_dr_state_remove_one_point): Likewise.
4151 (aarch64_handle_breakpoint): Update caller.
4152 (aarch64_handle_aligned_watchpoint): Likewise.
4153 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
4154 aligned_offset.
4155 (aarch64_linux_set_debug_regs): Remove const from state. Call
4156 aarch64_downgrade_regs.
4157 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
4158 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
4159 (DR_CONTROL_MASK): ... this.
4160 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
4161 (unsigned int aarch64_watchpoint_offset): New prototype.
4162 (aarch64_linux_set_debug_regs): Remove const from state.
4163 * utils.c (align_up, align_down): Move to ...
4164 * common/common-utils.c (align_up, align_down): ... here.
4165 * utils.h (align_up, align_down): Move to ...
4166 * common/common-utils.h (align_up, align_down): ... here.
4167
05bc7456
JB
41682018-05-04 Joel Brobecker <brobecker@adacore.com>
4169
4170 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
4171 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
4172 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
4173 Re-implement to match the ABI as summarized in GCC's
4174 gcc/config/sparc/sparc.c. All callers updated.
4175 (sparc32_store_arguments): Remove assertion.
4176
2f433492
TT
41772018-05-04 Tom Tromey <tom@tromey.com>
4178
4179 * printcmd.c: Don't include tui.h.
4180 (decode_format): Use skip_spaces.
4181
9be2ae8f
TT
41822018-05-04 Tom Tromey <tom@tromey.com>
4183
4184 PR gdb/22619:
4185 * printcmd.c (last_count): New global.
4186 (x_command): Use saved count when repeating.
4187
f0b3976b
TT
41882018-05-04 Tom Tromey <tom@tromey.com>
4189
4190 * nto-procfs.c (do_closedir_cleanup): Remove.
4191 (procfs_pidlist): Use gdb_dir_up.
4192 * procfs.c (do_closedir_cleanup): Remove.
4193 (proc_update_threads): Use gdb_dir_up.
4194 * common/filestuff.h (struct gdb_dir_deleter): New.
4195 (gdb_dir_up): New typedef.
4196
862d101a
TT
41972018-05-04 Tom Tromey <tom@tromey.com>
4198
4199 * ada-lang.c (print_mention_exception): Use std::string.
4200
cb7de75e
TT
42012018-05-04 Tom Tromey <tom@tromey.com>
4202
4203 * ada-lang.c (create_excep_cond_exprs): Update.
4204 (ada_exception_catchpoint_cond_string): Use std::string.
4205
49d83361
TT
42062018-05-04 Tom Tromey <tom@tromey.com>
4207
4208 * ada-lang.c (xget_renaming_scope): Return std::string.
4209 (old_renaming_is_invisible): Update.
4210
ade72a34
TT
42112018-05-04 Tom Tromey <tom@tromey.com>
4212
4213 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
4214 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
4215
2be4d7f0
UW
42162018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4217
4218 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
4219
69b6ecb0
TT
42202018-05-04 Tom Tromey <tom@tromey.com>
4221
4222 * remote.c (remote_query_supported_append): Change type.
4223 (remote_check_symbols): Update.
4224
bf27f0e2
PP
42252018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
4226
4227 PR gdb/11420
4228 * configure.ac: Prepend libpython.
4229 * python/python-config.py: Likewise.
4230 * configure: Regenerate.
4231
4ea17de8
SM
42322018-05-03 Simon Marchi <simon.marchi@ericsson.com>
4233
4234 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
4235
bd732259
PA
42362018-05-03 Pedro Alves <palves@redhat.com>
4237
4238 * s390-linux-nat.c
4239 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
4240 override. Write 'true' instead of '1'.
4241 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
4242 declaration.
4243
d9f719f1
PA
42442018-05-02 Pedro Alves <palves@redhat.com>
4245
4246 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
4247 add_inf_child_target.
4248 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
4249 add_inf_child_target.
4250 * aix-thread.c (aix_thread_target_info): New.
4251 (aix_thread_target) <shortname, longname, doc>: Delete.
4252 <info>: New.
4253 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
4254 add_inf_child_target.
4255 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
4256 add_inf_child_target.
4257 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
4258 add_inf_child_target.
4259 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
4260 add_inf_child_target.
4261 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
4262 add_inf_child_target.
4263 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
4264 add_inf_child_target.
4265 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
4266 add_inf_child_target.
4267 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
4268 add_inf_child_target.
4269 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
4270 add_inf_child_target.
4271 * bfd-target.c (target_bfd_target_info): New.
4272 (target_bfd) <shortname, longname, doc>: Delete.
4273 <info>: New.
4274 * bsd-kvm.c (bsd_kvm_target_info): New.
4275 (bsd_kvm_target) <shortname, longname, doc>: Delete.
4276 <info>: New.
4277 (bsd_kvm_target::open): Rename to ...
4278 (bsd_kvm_target_open): ... this. Adjust.
4279 * bsd-uthread.c (bsd_uthread_target_info): New.
4280 (bsd_uthread_target) <shortname, longname, doc>: Delete.
4281 <info>: New.
4282 * corefile.c (core_file_command): Adjust.
4283 * corelow.c (core_target_info): New.
4284 (core_target) <shortname, longname, doc>: Delete.
4285 <info>: New.
4286 (core_target::open): Rename to ...
4287 (core_target_open): ... this. Adjust.
4288 * ctf.c (ctf_target_info): New.
4289 (ctf_target) <shortname, longname, doc>: Delete.
4290 <info>: New.
4291 (ctf_target::open): Rename to ...
4292 (ctf_target_open): ... this.
4293 (_initialize_ctf): Adjust.
4294 * exec.c (exec_target_info): New.
4295 (exec_target) <shortname, longname, doc>: Delete.
4296 <info>: New.
4297 (exec_target::open): Rename to ...
4298 (exec_target_open): ... this.
4299 * gdbcore.h (core_target_open): Declare.
4300 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
4301 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
4302 add_inf_child_target.
4303 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
4304 add_inf_child_target.
4305 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
4306 add_inf_child_target.
4307 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
4308 add_inf_child_target.
4309 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
4310 add_inf_child_target.
4311 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
4312 add_inf_child_target.
4313 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
4314 add_inf_child_target.
4315 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
4316 add_inf_child_target.
4317 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
4318 add_inf_child_target.
4319 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
4320 add_inf_child_target.
4321 * inf-child.c (inf_child_target_info): New.
4322 (inf_child_target::info): New.
4323 (inf_child_open_target): Remove 'target' parameter. Use
4324 get_native_target instead.
4325 (inf_child_target::open): Delete.
4326 (add_inf_child_target): New.
4327 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
4328 Delete.
4329 <info>: New.
4330 (add_inf_child_target): Declare.
4331 (inf_child_open_target): Declare.
4332 * linux-thread-db.c (thread_db_target_info): New.
4333 (thread_db_target) <shortname, longname, doc>: Delete.
4334 <info>: New.
4335 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
4336 add_inf_child_target.
4337 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
4338 add_inf_child_target.
4339 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
4340 add_inf_child_target.
4341 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
4342 add_inf_child_target.
4343 * make-target-delegates (print_class): Adjust.
4344 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
4345 add_inf_child_target.
4346 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
4347 add_inf_child_target.
4348 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
4349 add_inf_child_target.
4350 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
4351 add_inf_child_target.
4352 * nto-procfs.c (nto_native_target_info): New.
4353 (nto_procfs_target_native) <shortname, longname, doc>:
4354 Delete.
4355 <info>: New.
4356 (nto_procfs_target_info): New.
4357 (nto_procfs_target_procfs) <shortname, longname, doc>:
4358 Delete.
4359 <info>: New.
4360 (init_procfs_targets): Adjust.
4361 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
4362 add_inf_child_target.
4363 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
4364 add_inf_child_target.
4365 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
4366 add_inf_child_target.
4367 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
4368 add_inf_child_target.
4369 * ravenscar-thread.c (ravenscar_target_info): New.
4370 (ravenscar_thread_target) <shortname, longname, doc>:
4371 Delete.
4372 <info>: New.
4373 * record-btrace.c (record_btrace_target_info):
4374 (record_btrace_target) <shortname, longname, doc>: Delete.
4375 <info>: New.
4376 (record_btrace_target::open): Rename to ...
4377 (record_btrace_target_open): ... this. Adjust.
4378 * record-full.c (record_longname, record_doc): New.
4379 (record_full_base_target) <shortname, longname, doc>: Delete.
4380 <info>: New.
4381 (record_full_target_info): New.
4382 (record_full_target): <shortname>: Delete.
4383 <info>: New.
4384 (record_full_core_open_1, record_full_open_1): Update comments.
4385 (record_full_base_target::open): Rename to ...
4386 (record_full_open): ... this.
4387 (cmd_record_full_restore): Update.
4388 (_initialize_record_full): Update.
4389 * remote-sim.c (remote_sim_target_info): New.
4390 (gdbsim_target) <shortname, longname, doc>: Delete.
4391 <info>: New.
4392 (gdbsim_target::open): Rename to ...
4393 (gdbsim_target_open): ... this.
4394 (_initialize_remote_sim): Adjust.
4395 * remote.c (remote_doc): New.
4396 (remote_target_info): New.
4397 (remote_target) <shortname, longname, doc>: Delete.
4398 <info>: New.
4399 (extended_remote_target_info): New.
4400 (extended_remote_target) <shortname, longname, doc>: Delete.
4401 <info>: New.
4402 (remote_target::open_1): Make static. Adjust.
4403 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
4404 * s390-linux-nat.c (_initialize_s390_nat): Use
4405 add_inf_child_target.
4406 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
4407 add_inf_child_target.
4408 * sol-thread.c (thread_db_target_info): New.
4409 (sol_thread_target) <shortname, longname, doc>: Delete.
4410 <info>: New.
4411 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
4412 add_inf_child_target.
4413 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
4414 add_inf_child_target.
4415 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
4416 add_inf_child_target.
4417 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
4418 add_inf_child_target.
4419 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
4420 add_inf_child_target.
4421 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
4422 add_inf_child_target.
4423 * spu-linux-nat.c (_initialize_spu_nat): Use
4424 add_inf_child_target.
4425 * spu-multiarch.c (spu_multiarch_target_info): New.
4426 (spu_multiarch_target) <shortname, longname, doc>: Delete.
4427 <info>: New.
4428 * target-delegates.c: Regenerate.
4429 * target.c: Include <unordered_map>.
4430 (target_ops_p): Delete.
4431 (DEF_VEC_P(target_ops_p)): Delete.
4432 (target_factories): New.
4433 (test_target_info): New.
4434 (test_target_ops::info): New.
4435 (open_target): Adjust to use target_factories.
4436 (add_target_with_completer): Rename to ...
4437 (add_target): ... this. Change prototype. Register target_info
4438 and open callback in target_factories. Register target_info in
4439 command context instead of target_ops.
4440 (add_target): Delete old implementation.
4441 (add_deprecated_target_alias): Change prototype. Adjust.
4442 (the_native_target): New.
4443 (set_native_target, get_native_target): New.
4444 (find_default_run_target): Use the_native_target.
4445 (find_attach_target, find_run_target): Simplify.
4446 (target_ops::open): Delete.
4447 (dummy_target_info): New.
4448 (dummy_target::shortname, dummy_target::longname)
4449 (dummy_target::doc): Delete.
4450 (dummy_target::info): New.
4451 (debug_target::shortname, debug_target::longname)
4452 (debug_target::doc): Delete.
4453 (debug_target::info): New.
4454 * target.h (struct target_info): New.
4455 (target_ops::~target_ops): Add comment.
4456 (target_ops::info): New.
4457 (target_ops::shortname, target_ops::longname, target_ops::doc): No
4458 longer virtual. Implement in terms of target_info.
4459 (set_native_target, get_native_target): Declare.
4460 (target_open_ftype): New.
4461 (add_target, add_target_with_completer)
4462 (add_deprecated_target_alias): Change prototype.
4463 (test_target) <shortname, longname, doc>: Delete.
4464 <info>: New.
4465 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
4466 add_inf_child_target.
4467 * tracefile-tfile.c (tfile_target_info): New.
4468 (tfile_target) <shortname, longname, doc>: Delete.
4469 <info>: New.
4470 (tfile_target::open): Rename to ...
4471 (tfile_target_open): ... this.
4472 (_initialize_tracefile_tfile): Adjust.
4473 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
4474 add_inf_child_target.
4475 * windows-nat.c (_initialize_windows_nat): Use
4476 add_inf_child_target.
4477 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
4478 add_inf_child_target.
4479
135340af
PA
44802018-05-02 Pedro Alves <palves@redhat.com>
4481
4482 * linux-nat.h (linux_nat_target) <low_new_thread,
4483 low_delete_thread, low_new_fork, low_forget_process,
4484 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
4485 New virtual methods.
4486 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
4487 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
4488 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
4489 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
4490 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
4491 Delete.
4492 * linux-fork.c (delete_fork): Adjust to call low method.
4493 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
4494 (linux_nat_new_fork, linux_nat_forget_process_hook)
4495 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
4496 (linux_nat_status_is_event):
4497 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
4498 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
4499 to call low method.
4500 (sigtrap_is_event): Rename to ...
4501 (linux_nat_target::low_status_is_event): ... this.
4502 (linux_nat_set_status_is_event): Delete.
4503 (save_stop_reason, linux_nat_wait_1)
4504 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
4505 low methods.
4506 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
4507 (linux_nat_set_new_fork, linux_nat_set_forget_process)
4508 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
4509 (linux_nat_set_prepare_to_resume): Delete.
4510 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
4511 low virtual methods.
4512 * amd64-linux-nat.c: Likewise.
4513 * arm-linux-nat.c: Likewise.
4514 * i386-linux-nat.c: Likewise.
4515 * ia64-linux-nat.c: Likewise.
4516 * mips-linux-nat.c: Likewise.
4517 * ppc-linux-nat.c: Likewise.
4518 * s390-linux-nat.c: Likewise.
4519 * sparc64-linux-nat.c: Likewise.
4520 * x86-linux-nat.c: Likewise.
4521 * x86-linux-nat.h: Include "nat/x86-linux.h".
4522 (x86_linux_nat_target) <low_new_fork, low_forget_process,
4523 low_prepare_to_resume, low_new_thread, low_delete_thread>:
4524 Override methods.
4525
57810aa7
PA
45262018-05-02 Pedro Alves <palves@redhat.com>
4527
4528 * target.h (target_ops)
4529 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
4530 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
4531 stopped_by_watchpoint, have_continuable_watchpoint,
4532 stopped_data_address, watchpoint_addr_within_range,
4533 can_accel_watchpoint_condition, can_run, thread_alive,
4534 has_all_memory, has_memory, has_stack, has_registers,
4535 has_execution, can_async_p, is_async_p, supports_non_stop,
4536 always_non_stop_p, can_execute_reverse, supports_multi_process,
4537 supports_enable_disable_tracepoint,
4538 supports_disable_randomization, supports_string_tracing,
4539 supports_evaluation_of_breakpoint_conditions,
4540 can_run_breakpoint_commands, filesystem_is_local,
4541 can_download_tracepoint, get_trace_state_variable_value,
4542 set_trace_notes, get_tib_address, use_agent, can_use_agent,
4543 record_is_replaying, record_will_replay,
4544 augmented_libraries_svr4_read>: Adjust to return bool.
4545 * aarch64-linux-nat.c: All implementations adjusted.
4546 * aix-thread.c: All implementations adjusted.
4547 * arm-linux-nat.c: All implementations adjusted.
4548 * breakpoint.c: All implementations adjusted.
4549 * bsd-kvm.c: All implementations adjusted.
4550 * bsd-uthread.c: All implementations adjusted.
4551 * corelow.c: All implementations adjusted.
4552 * ctf.c: All implementations adjusted.
4553 * darwin-nat.c: All implementations adjusted.
4554 * darwin-nat.h: All implementations adjusted.
4555 * exec.c: All implementations adjusted.
4556 * fbsd-nat.c: All implementations adjusted.
4557 * fbsd-nat.h: All implementations adjusted.
4558 * gnu-nat.c: All implementations adjusted.
4559 * gnu-nat.h: All implementations adjusted.
4560 * go32-nat.c: All implementations adjusted.
4561 * ia64-linux-nat.c: All implementations adjusted.
4562 * inf-child.c: All implementations adjusted.
4563 * inf-child.h: All implementations adjusted.
4564 * inf-ptrace.c: All implementations adjusted.
4565 * inf-ptrace.h: All implementations adjusted.
4566 * linux-nat.c: All implementations adjusted.
4567 * linux-nat.h: All implementations adjusted.
4568 * mips-linux-nat.c: All implementations adjusted.
4569 * nto-procfs.c: All implementations adjusted.
4570 * ppc-linux-nat.c: All implementations adjusted.
4571 * procfs.c: All implementations adjusted.
4572 * ravenscar-thread.c: All implementations adjusted.
4573 * record-btrace.c: All implementations adjusted.
4574 * record-full.c: All implementations adjusted.
4575 * remote-sim.c: All implementations adjusted.
4576 * remote.c: All implementations adjusted.
4577 * s390-linux-nat.c: All implementations adjusted.
4578 * sol-thread.c: All implementations adjusted.
4579 * spu-multiarch.c: All implementations adjusted.
4580 * target-delegates.c: All implementations adjusted.
4581 * target.c: All implementations adjusted.
4582 * target.h: All implementations adjusted.
4583 * tracefile-tfile.c: All implementations adjusted.
4584 * tracefile.c: All implementations adjusted.
4585 * tracefile.h: All implementations adjusted.
4586 * windows-nat.c: All implementations adjusted.
4587 * x86-linux-nat.h: All implementations adjusted.
4588 * x86-nat.h: All implementations adjusted.
4589
ad6a4e2d
PA
45902018-05-02 Pedro Alves <palves@redhat.com>
4591
4592 * make-target-delegates (scan_target_h): Don't trim lines here.
4593 Replace sequences of tabs and/or whitespace with a single
4594 whitespace.
4595 (top level, parsing methods): Trim each line before processing it
4596 here.
4597
f6ac5f3d
PA
45982018-05-02 Pedro Alves <palves@redhat.com>
4599 John Baldwin <jhb@freebsd.org>
4600
4601 * target.h (enum strata) <debug_stratum>: New.
4602 (struct target_ops) <all delegation methods>: Replace by C++
4603 virtual methods, and drop "to_" prefix. All references updated
4604 throughout.
4605 <to_shortname, to_longname, to_doc, to_data,
4606 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
4607 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
4608 virtual methods. All references updated throughout.
4609 <can_attach, supports_terminal_ours, can_create_inferior,
4610 get_thread_control_capabilities, attach_no_wait>: New
4611 virtual methods.
4612 <insert_breakpoint, remove_breakpoint>: Now
4613 TARGET_DEFAULT_NORETURN methods.
4614 <info_proc>: Now returns bool.
4615 <to_magic>: Delete.
4616 (OPS_MAGIC): Delete.
4617 (current_target): Delete. All references replaced by references
4618 to ...
4619 (target_stack): ... this. New.
4620 (target_shortname, target_longname): Adjust.
4621 (target_can_run): Now a function declaration.
4622 (default_child_has_all_memory, default_child_has_memory)
4623 (default_child_has_stack, default_child_has_registers)
4624 (default_child_has_execution): Remove target_ops parameter.
4625 (complete_target_initialization): Delete.
4626 (memory_breakpoint_target): New template class.
4627 (test_target_ops): Refactor as a C++ class with virtual methods.
4628 * make-target-delegates (NAME_PART): Tighten.
4629 (POINTER_PART, CP_SYMBOL): New.
4630 (SIMPLE_RETURN_PART): Reimplement.
4631 (VEC_RETURN_PART): Expect less.
4632 (RETURN_PART, VIRTUAL_PART): New.
4633 (METHOD): Adjust to C++ virtual methods.
4634 (scan_target_h): Remove reference to C99.
4635 (dname): Output "target_ops::" prefix.
4636 (write_function_header): Adjust to output a C++ class method.
4637 (write_declaration): New.
4638 (write_delegator): Adjust to output a C++ class method.
4639 (tdname): Output "dummy_target::" prefix.
4640 (write_tdefault, write_debugmethod): Adjust to output a C++ class
4641 method.
4642 (tdefault_names, debug_names): Delete.
4643 (return_types, tdefaults, styles, argtypes_array): New.
4644 (top level): All methods are delegators.
4645 (print_class): New.
4646 (top level): Print dummy_target and debug_target classes.
4647 * target-delegates.c: Regenerate.
4648 * target-debug.h (target_debug_print_enum_info_proc_what)
4649 (target_debug_print_thread_control_capabilities)
4650 (target_debug_print_thread_info_p): New.
4651 * target.c (dummy_target): Delete.
4652 (the_dummy_target, the_debug_target): New.
4653 (target_stack): Now extern.
4654 (set_targetdebug): Push/unpush debug target.
4655 (default_child_has_all_memory, default_child_has_memory)
4656 (default_child_has_stack, default_child_has_registers)
4657 (default_child_has_execution): Remove target_ops parameter.
4658 (complete_target_initialization): Delete.
4659 (add_target_with_completer): No longer call
4660 complete_target_initialization.
4661 (target_supports_terminal_ours): Use regular delegation.
4662 (update_current_target): Delete.
4663 (push_target): No longer check magic number. Don't call
4664 update_current_target.
4665 (unpush_target): Don't call update_current_target.
4666 (target_is_pushed): No longer check magic number.
4667 (target_require_runnable): Skip for all stratums over
4668 process_stratum.
4669 (target_ops::info_proc): New.
4670 (target_info_proc): Use find_target_at and
4671 find_default_run_target.
4672 (target_supports_disable_randomization): Use regular delegation.
4673 (target_get_osdata): Use find_target_at.
4674 (target_ops::open, target_ops::close, target_ops::can_attach)
4675 (target_ops::attach, target_ops::can_create_inferior)
4676 (target_ops::create_inferior, target_ops::can_run)
4677 (target_can_run): New.
4678 (default_fileio_target): Use regular delegation.
4679 (target_ops::fileio_open, target_ops::fileio_pwrite)
4680 (target_ops::fileio_pread, target_ops::fileio_fstat)
4681 (target_ops::fileio_close, target_ops::fileio_unlink)
4682 (target_ops::fileio_readlink): New.
4683 (target_fileio_open_1, target_fileio_unlink)
4684 (target_fileio_readlink): Always call the target method. Handle
4685 FILEIO_ENOSYS.
4686 (return_zero, return_zero_has_execution): Delete.
4687 (init_dummy_target): Delete.
4688 (dummy_target::dummy_target, dummy_target::shortname)
4689 (dummy_target::longname, dummy_target::doc)
4690 (debug_target::debug_target, debug_target::shortname)
4691 (debug_target::longname, debug_target::doc): New.
4692 (target_supports_delete_record): Use regular delegation.
4693 (setup_target_debug): Delete.
4694 (maintenance_print_target_stack): Skip debug_stratum.
4695 (initialize_targets): Instantiate the_dummy_target and
4696 the_debug_target.
4697 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
4698 use target_stack.
4699 (target_auxv_search, fprint_target_auxv): Adjust.
4700 (info_auxv_command): Adjust to use target_stack.
4701 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
4702 * exceptions.c (print_flush): Handle a NULL target_stack.
4703 * regcache.c (target_ops_no_register): Refactor as class with
4704 virtual methods.
4705
4706 * exec.c (exec_target): New class.
4707 (exec_ops): Now an exec_target.
4708 (exec_open, exec_close_1, exec_get_section_table)
4709 (exec_xfer_partial, exec_files_info, exec_has_memory)
4710 (exec_make_note_section): Refactor as exec_target methods.
4711 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
4712 Delete.
4713 (exec_target::find_memory_regions): New.
4714 (_initialize_exec): Don't call init_exec_ops.
4715 * gdbcore.h (exec_file_clear): Delete.
4716
4717 * corefile.c (core_target): Delete.
4718 (core_file_command): Adjust.
4719 * corelow.c (core_target): New class.
4720 (the_core_target): New.
4721 (core_close): Remove target_ops parameter.
4722 (core_close_cleanup): Adjust.
4723 (core_target::close): New.
4724 (core_open, core_detach, get_core_registers, core_files_info)
4725 (core_xfer_partial, core_thread_alive, core_read_description)
4726 (core_pid_to_str, core_thread_name, core_has_memory)
4727 (core_has_stack, core_has_registers, core_info_proc): Rework as
4728 core_target methods.
4729 (ignore, core_remove_breakpoint, init_core_ops): Delete.
4730 (_initialize_corelow): Initialize the_core_target.
4731 * gdbcore.h (core_target): Delete.
4732 (the_core_target): New.
4733
4734 * ctf.c: (ctf_target): New class.
4735 (ctf_ops): Now a ctf_target.
4736 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
4737 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
4738 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
4739 methods.
4740 (init_ctf_ops): Delete.
4741 (_initialize_ctf): Don't call it.
4742 * tracefile-tfile.c (tfile_target): New class.
4743 (tfile_ops): Now a tfile_target.
4744 (tfile_open, tfile_close, tfile_files_info)
4745 (tfile_get_tracepoint_status, tfile_trace_find)
4746 (tfile_fetch_registers, tfile_xfer_partial)
4747 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
4748 Refactor as tfile_target methods.
4749 (tfile_xfer_partial_features): Remove target_ops parameter.
4750 (init_tfile_ops): Delete.
4751 (_initialize_tracefile_tfile): Don't call it.
4752 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
4753 (tracefile_has_stack, tracefile_has_registers)
4754 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
4755 tracefile_target methods.
4756 (init_tracefile_ops): Delete.
4757 (tracefile_target::tracefile_target): New.
4758 * tracefile.h: Include "target.h".
4759 (tracefile_target): New class.
4760 (init_tracefile_ops): Delete.
4761
4762 * spu-multiarch.c (spu_multiarch_target): New class.
4763 (spu_ops): Now a spu_multiarch_target.
4764 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
4765 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4766 (spu_search_memory, spu_mourn_inferior): Refactor as
4767 spu_multiarch_target methods.
4768 (init_spu_ops): Delete.
4769 (_initialize_spu_multiarch): Remove references to init_spu_ops,
4770 complete_target_initialization.
4771
4772 * ravenscar-thread.c (ravenscar_thread_target): New class.
4773 (ravenscar_ops): Now a ravenscar_thread_target.
4774 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
4775 (ravenscar_thread_alive, ravenscar_pid_to_str)
4776 (ravenscar_fetch_registers, ravenscar_store_registers)
4777 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
4778 (ravenscar_stopped_by_hw_breakpoint)
4779 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
4780 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
4781 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
4782 methods.
4783 (init_ravenscar_thread_ops): Delete.
4784 (_initialize_ravenscar): Remove references to
4785 init_ravenscar_thread_ops and complete_target_initialization.
4786
4787 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
4788 (bsd_uthread_target): New class.
4789 (bsd_uthread_ops): Now a bsd_uthread_target.
4790 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
4791 (bsd_uthread_close, bsd_uthread_mourn_inferior)
4792 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
4793 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
4794 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
4795 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
4796 (bsd_uthread_target): Delete function.
4797 (_initialize_bsd_uthread): Remove reference to
4798 complete_target_initialization.
4799
4800 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
4801 (target_bfd): ... this new class.
4802 (target_bfd_xfer_partial, target_bfd_get_section_table)
4803 (target_bfd_close): Refactor as target_bfd methods.
4804 (target_bfd::~target_bfd): New.
4805 (target_bfd_reopen): Adjust.
4806 (target_bfd::close): New.
4807
4808 * record-btrace.c (record_btrace_target): New class.
4809 (record_btrace_ops): Now a record_btrace_target.
4810 (record_btrace_open, record_btrace_stop_recording)
4811 (record_btrace_disconnect, record_btrace_close)
4812 (record_btrace_async, record_btrace_info)
4813 (record_btrace_insn_history, record_btrace_insn_history_range)
4814 (record_btrace_insn_history_from, record_btrace_call_history)
4815 (record_btrace_call_history_range)
4816 (record_btrace_call_history_from, record_btrace_record_method)
4817 (record_btrace_is_replaying, record_btrace_will_replay)
4818 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4819 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
4820 (record_btrace_store_registers, record_btrace_prepare_to_store)
4821 (record_btrace_to_get_unwinder)
4822 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
4823 (record_btrace_commit_resume, record_btrace_wait)
4824 (record_btrace_stop, record_btrace_can_execute_reverse)
4825 (record_btrace_stopped_by_sw_breakpoint)
4826 (record_btrace_supports_stopped_by_sw_breakpoint)
4827 (record_btrace_stopped_by_hw_breakpoint)
4828 (record_btrace_supports_stopped_by_hw_breakpoint)
4829 (record_btrace_update_thread_list, record_btrace_thread_alive)
4830 (record_btrace_goto_begin, record_btrace_goto_end)
4831 (record_btrace_goto, record_btrace_stop_replaying_all)
4832 (record_btrace_execution_direction)
4833 (record_btrace_prepare_to_generate_core)
4834 (record_btrace_done_generating_core): Refactor as
4835 record_btrace_target methods.
4836 (init_record_btrace_ops): Delete.
4837 (_initialize_record_btrace): Remove reference to
4838 init_record_btrace_ops.
4839 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
4840 the execution_direction global.
4841 (record_full_base_target, record_full_target)
4842 (record_full_core_target): New classes.
4843 (record_full_ops): Now a record_full_target.
4844 (record_full_core_ops): Now a record_full_core_target.
4845 (record_full_target::detach, record_full_target::disconnect)
4846 (record_full_core_target::disconnect)
4847 (record_full_target::mourn_inferior, record_full_target::kill):
4848 New.
4849 (record_full_open, record_full_close, record_full_async): Refactor
4850 as methods of the record_full_base_target class.
4851 (record_full_resume, record_full_commit_resume): Refactor
4852 as methods of the record_full_target class.
4853 (record_full_wait, record_full_stopped_by_watchpoint)
4854 (record_full_stopped_data_address)
4855 (record_full_stopped_by_sw_breakpoint)
4856 (record_full_supports_stopped_by_sw_breakpoint)
4857 (record_full_stopped_by_hw_breakpoint)
4858 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
4859 methods of the record_full_base_target class.
4860 (record_full_store_registers, record_full_xfer_partial)
4861 (record_full_insert_breakpoint, record_full_remove_breakpoint):
4862 Refactor as methods of the record_full_target class.
4863 (record_full_can_execute_reverse, record_full_get_bookmark)
4864 (record_full_goto_bookmark, record_full_execution_direction)
4865 (record_full_record_method, record_full_info, record_full_delete)
4866 (record_full_is_replaying, record_full_will_replay)
4867 (record_full_goto_begin, record_full_goto_end, record_full_goto)
4868 (record_full_stop_replaying): Refactor as methods of the
4869 record_full_base_target class.
4870 (record_full_core_resume, record_full_core_kill)
4871 (record_full_core_fetch_registers)
4872 (record_full_core_prepare_to_store)
4873 (record_full_core_store_registers, record_full_core_xfer_partial)
4874 (record_full_core_insert_breakpoint)
4875 (record_full_core_remove_breakpoint)
4876 (record_full_core_has_execution): Refactor
4877 as methods of the record_full_core_target class.
4878 (record_full_base_target::supports_delete_record): New.
4879 (init_record_full_ops): Delete.
4880 (init_record_full_core_ops): Delete.
4881 (record_full_save): Refactor as method of the
4882 record_full_base_target class.
4883 (_initialize_record_full): Remove references to
4884 init_record_full_ops and init_record_full_core_ops.
4885
4886 * remote.c (remote_target, extended_remote_target): New classes.
4887 (remote_ops): Now a remote_target.
4888 (extended_remote_ops): Now an extended_remote_target.
4889 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
4890 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
4891 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
4892 (remote_pass_signals, remote_set_syscall_catchpoint)
4893 (remote_program_signals, )
4894 (remote_thread_always_alive): Remove target_ops parameter.
4895 (remote_thread_alive, remote_thread_name)
4896 (remote_update_thread_list, remote_threads_extra_info)
4897 (remote_static_tracepoint_marker_at)
4898 (remote_static_tracepoint_markers_by_strid)
4899 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
4900 (remote_open): Refactor as methods of remote_target.
4901 (extended_remote_open, extended_remote_detach)
4902 (extended_remote_attach, extended_remote_post_attach):
4903 (extended_remote_supports_disable_randomization)
4904 (extended_remote_create_inferior): : Refactor as method of
4905 extended_remote_target.
4906 (remote_set_permissions, remote_open_1, remote_detach)
4907 (remote_follow_fork, remote_follow_exec, remote_disconnect)
4908 (remote_resume, remote_commit_resume, remote_stop)
4909 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
4910 (remote_terminal_ours, remote_wait, remote_fetch_registers)
4911 (remote_prepare_to_store, remote_store_registers)
4912 (remote_flash_erase, remote_flash_done, remote_files_info)
4913 (remote_kill, remote_mourn, remote_insert_breakpoint)
4914 (remote_remove_breakpoint, remote_insert_watchpoint)
4915 (remote_watchpoint_addr_within_range)
4916 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
4917 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
4918 (remote_supports_stopped_by_sw_breakpoint)
4919 (remote_stopped_by_hw_breakpoint)
4920 (remote_supports_stopped_by_hw_breakpoint)
4921 (remote_stopped_by_watchpoint, remote_stopped_data_address)
4922 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4923 (remote_verify_memory): Refactor as methods of remote_target.
4924 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
4925 parameter.
4926 (remote_xfer_partial, remote_get_memory_xfer_limit)
4927 (remote_search_memory, remote_rcmd, remote_memory_map)
4928 (remote_pid_to_str, remote_get_thread_local_address)
4929 (remote_get_tib_address, remote_read_description): Refactor as
4930 methods of remote_target.
4931 (remote_target::fileio_open, remote_target::fileio_pwrite)
4932 (remote_target::fileio_pread, remote_target::fileio_close): New.
4933 (remote_hostio_readlink, remote_hostio_fstat)
4934 (remote_filesystem_is_local, remote_can_execute_reverse)
4935 (remote_supports_non_stop, remote_supports_disable_randomization)
4936 (remote_supports_multi_process, remote_supports_cond_breakpoints)
4937 (remote_supports_enable_disable_tracepoint)
4938 (remote_supports_string_tracing)
4939 (remote_can_run_breakpoint_commands, remote_trace_init)
4940 (remote_download_tracepoint, remote_can_download_tracepoint)
4941 (remote_download_trace_state_variable, remote_enable_tracepoint)
4942 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
4943 (remote_trace_start, remote_get_trace_status)
4944 (remote_get_tracepoint_status, remote_trace_stop)
4945 (remote_trace_find, remote_get_trace_state_variable_value)
4946 (remote_save_trace_data, remote_get_raw_trace_data)
4947 (remote_set_disconnected_tracing, remote_core_of_thread)
4948 (remote_set_circular_trace_buffer, remote_traceframe_info)
4949 (remote_get_min_fast_tracepoint_insn_len)
4950 (remote_set_trace_buffer_size, remote_set_trace_notes)
4951 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
4952 (remote_disable_btrace, remote_teardown_btrace)
4953 (remote_read_btrace, remote_btrace_conf)
4954 (remote_augmented_libraries_svr4_read, remote_load)
4955 (remote_pid_to_exec_file, remote_can_do_single_step)
4956 (remote_execution_direction, remote_thread_handle_to_thread_info):
4957 Refactor as methods of remote_target.
4958 (init_remote_ops, init_extended_remote_ops): Delete.
4959 (remote_can_async_p, remote_is_async_p, remote_async)
4960 (remote_thread_events, remote_upload_tracepoints)
4961 (remote_upload_trace_state_variables): Refactor as methods of
4962 remote_target.
4963 (_initialize_remote): Remove references to init_remote_ops and
4964 init_extended_remote_ops.
4965
4966 * remote-sim.c (gdbsim_target): New class.
4967 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
4968 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
4969 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
4970 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
4971 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
4972 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
4973 Refactor as methods of gdbsim_target.
4974 (gdbsim_ops): Now a gdbsim_target.
4975 (init_gdbsim_ops): Delete.
4976 (gdbsim_cntrl_c): Adjust.
4977 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
4978
4979 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
4980 (the_amd64_linux_nat_target): New.
4981 (amd64_linux_fetch_inferior_registers)
4982 (amd64_linux_store_inferior_registers): Refactor as methods of
4983 amd64_linux_nat_target.
4984 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
4985 * i386-linux-nat.c: Don't include "linux-nat.h".
4986 (i386_linux_nat_target): New class.
4987 (the_i386_linux_nat_target): New.
4988 (i386_linux_fetch_inferior_registers)
4989 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
4990 as methods of i386_linux_nat_target.
4991 (_initialize_i386_linux_nat): Adjust. Set linux_target.
4992 * inf-child.c (inf_child_ops): Delete.
4993 (inf_child_fetch_inferior_registers)
4994 (inf_child_store_inferior_registers): Delete.
4995 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
4996 methods of inf_child_target.
4997 (inf_child_target::supports_terminal_ours)
4998 (inf_child_target::terminal_init)
4999 (inf_child_target::terminal_inferior)
5000 (inf_child_target::terminal_ours_for_output)
5001 (inf_child_target::terminal_ours, inf_child_target::interrupt)
5002 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
5003 New.
5004 (inf_child_open, inf_child_disconnect, inf_child_close)
5005 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
5006 (inf_child_post_startup_inferior, inf_child_can_run)
5007 (inf_child_pid_to_exec_file): Refactor as methods of
5008 inf_child_target.
5009 (inf_child_follow_fork): Delete.
5010 (inf_child_target::can_create_inferior)
5011 (inf_child_target::can_attach): New.
5012 (inf_child_target::has_all_memory, inf_child_target::has_memory)
5013 (inf_child_target::has_stack, inf_child_target::has_registers)
5014 (inf_child_target::has_execution): New.
5015 (inf_child_fileio_open, inf_child_fileio_pwrite)
5016 (inf_child_fileio_pread, inf_child_fileio_fstat)
5017 (inf_child_fileio_close, inf_child_fileio_unlink)
5018 (inf_child_fileio_readlink, inf_child_use_agent)
5019 (inf_child_can_use_agent): Refactor as methods of
5020 inf_child_target.
5021 (return_zero, inf_child_target): Delete.
5022 (inf_child_target::inf_child_target): New.
5023 * inf-child.h: Include "target.h".
5024 (inf_child_target): Delete function prototype.
5025 (inf_child_target): New class.
5026 (inf_child_open_target, inf_child_mourn_inferior)
5027 (inf_child_maybe_unpush_target): Delete.
5028 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
5029 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
5030 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
5031 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
5032 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
5033 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
5034 (inf_ptrace_wait, inf_ptrace_xfer_partial)
5035 (inf_ptrace_thread_alive, inf_ptrace_files_info)
5036 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
5037 methods of inf_ptrace_target.
5038 (inf_ptrace_target): Delete function.
5039 * inf-ptrace.h: Include "inf-child.h".
5040 (inf_ptrace_target): Delete function declaration.
5041 (inf_ptrace_target): New class.
5042 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
5043 * linux-nat.c (linux_target): New.
5044 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
5045 (linux_nat_target::~linux_nat_target): New.
5046 (linux_child_post_attach, linux_child_post_startup_inferior)
5047 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
5048 (linux_child_remove_fork_catchpoint)
5049 (linux_child_insert_vfork_catchpoint)
5050 (linux_child_remove_vfork_catchpoint)
5051 (linux_child_insert_exec_catchpoint)
5052 (linux_child_remove_exec_catchpoint)
5053 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
5054 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
5055 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
5056 (linux_nat_stopped_data_address)
5057 (linux_nat_stopped_by_sw_breakpoint)
5058 (linux_nat_supports_stopped_by_sw_breakpoint)
5059 (linux_nat_stopped_by_hw_breakpoint)
5060 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
5061 (linux_nat_kill, linux_nat_mourn_inferior)
5062 (linux_nat_xfer_partial, linux_nat_thread_alive)
5063 (linux_nat_update_thread_list, linux_nat_pid_to_str)
5064 (linux_nat_thread_name, linux_child_pid_to_exec_file)
5065 (linux_child_static_tracepoint_markers_by_strid)
5066 (linux_nat_is_async_p, linux_nat_can_async_p)
5067 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
5068 (linux_nat_supports_multi_process)
5069 (linux_nat_supports_disable_randomization, linux_nat_async)
5070 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
5071 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
5072 (linux_nat_fileio_open, linux_nat_fileio_readlink)
5073 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
5074 methods of linux_nat_target.
5075 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
5076 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
5077 parameter.
5078 (check_stopped_by_watchpoint): Adjust.
5079 (linux_xfer_partial): Delete.
5080 (linux_target_install_ops, linux_target, linux_nat_add_target):
5081 Delete.
5082 (linux_nat_target::linux_nat_target): New.
5083 * linux-nat.h: Include "inf-ptrace.h".
5084 (linux_nat_target): New.
5085 (linux_target, linux_target_install_ops, linux_nat_add_target):
5086 Delete function declarations.
5087 (linux_target): Declare global.
5088 * linux-thread-db.c (thread_db_target): New.
5089 (thread_db_target::thread_db_target): New.
5090 (thread_db_ops): Delete.
5091 (the_thread_db_target): New.
5092 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
5093 (thread_db_update_thread_list, thread_db_pid_to_str)
5094 (thread_db_extra_thread_info)
5095 (thread_db_thread_handle_to_thread_info)
5096 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
5097 (thread_db_resume): Refactor as methods of thread_db_target.
5098 (init_thread_db_ops): Delete.
5099 (_initialize_thread_db): Remove reference to init_thread_db_ops.
5100 * x86-linux-nat.c: Don't include "linux-nat.h".
5101 (super_post_startup_inferior): Delete.
5102 (x86_linux_nat_target::~x86_linux_nat_target): New.
5103 (x86_linux_child_post_startup_inferior)
5104 (x86_linux_read_description, x86_linux_enable_btrace)
5105 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
5106 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
5107 methods of x86_linux_nat_target.
5108 (x86_linux_create_target): Delete. Bits folded ...
5109 (x86_linux_add_target): ... here. Now takes a linux_nat_target
5110 pointer.
5111 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
5112 (x86_linux_nat_target): New class.
5113 (x86_linux_create_target): Delete.
5114 (x86_linux_add_target): Now takes a linux_nat_target pointer.
5115 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
5116 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
5117 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
5118 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
5119 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
5120 make extern.
5121 (x86_use_watchpoints): Delete.
5122 * x86-nat.h: Include "breakpoint.h" and "target.h".
5123 (x86_use_watchpoints): Delete.
5124 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
5125 (x86_stopped_by_watchpoint, x86_stopped_data_address)
5126 (x86_insert_watchpoint, x86_remove_watchpoint)
5127 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
5128 (x86_stopped_by_hw_breakpoint): New declarations.
5129 (x86_nat_target): New template class.
5130
5131 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
5132 (the_ppc_linux_nat_target): New.
5133 (ppc_linux_fetch_inferior_registers)
5134 (ppc_linux_can_use_hw_breakpoint)
5135 (ppc_linux_region_ok_for_hw_watchpoint)
5136 (ppc_linux_ranged_break_num_registers)
5137 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
5138 (ppc_linux_insert_mask_watchpoint)
5139 (ppc_linux_remove_mask_watchpoint)
5140 (ppc_linux_can_accel_watchpoint_condition)
5141 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
5142 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
5143 (ppc_linux_watchpoint_addr_within_range)
5144 (ppc_linux_masked_watch_num_registers)
5145 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
5146 (ppc_linux_read_description): Refactor as methods of
5147 ppc_linux_nat_target.
5148 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
5149
5150 * procfs.c (procfs_xfer_partial): Delete forward declaration.
5151 (procfs_target): New class.
5152 (the_procfs_target): New.
5153 (procfs_target): Delete function.
5154 (procfs_auxv_parse, procfs_attach, procfs_detach)
5155 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
5156 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
5157 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
5158 (procfs_create_inferior, procfs_update_thread_list)
5159 (procfs_thread_alive, procfs_pid_to_str)
5160 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
5161 (procfs_stopped_data_address, procfs_insert_watchpoint)
5162 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
5163 (proc_find_memory_regions, procfs_info_proc)
5164 (procfs_make_note_section): Refactor as methods of procfs_target.
5165 (_initialize_procfs): Adjust.
5166 * sol-thread.c (sol_thread_target): New class.
5167 (sol_thread_ops): Now a sol_thread_target.
5168 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
5169 (sol_thread_fetch_registers, sol_thread_store_registers)
5170 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
5171 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
5172 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
5173 (init_sol_thread_ops): Delete.
5174 (_initialize_sol_thread): Adjust. Remove references to
5175 init_sol_thread_ops and complete_target_initialization.
5176
5177 * windows-nat.c (windows_nat_target): New class.
5178 (windows_fetch_inferior_registers)
5179 (windows_store_inferior_registers, windows_resume, windows_wait)
5180 (windows_attach, windows_detach, windows_pid_to_exec_file)
5181 (windows_files_info, windows_create_inferior)
5182 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
5183 (windows_close, windows_pid_to_str, windows_xfer_partial)
5184 (windows_get_tib_address, windows_get_ada_task_ptid)
5185 (windows_thread_name, windows_thread_alive): Refactor as
5186 windows_nat_target methods.
5187 (do_initial_windows_stuff): Adjust.
5188 (windows_target): Delete function.
5189 (_initialize_windows_nat): Adjust.
5190
5191 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
5192 (darwin_mourn_inferior, darwin_kill_inferior)
5193 (darwin_create_inferior, darwin_attach, darwin_detach)
5194 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
5195 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
5196 (darwin_supports_multi_process): Refactor as darwin_nat_target
5197 methods.
5198 (darwin_resume_to, darwin_files_info): Delete.
5199 (_initialize_darwin_inferior): Rename to ...
5200 (_initialize_darwin_nat): ... this. Adjust to C++ification.
5201 * darwin-nat.h: Include "inf-child.h".
5202 (darwin_nat_target): New class.
5203 (darwin_complete_target): Delete.
5204 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
5205 (darwin_target): New.
5206 (i386_darwin_fetch_inferior_registers)
5207 (i386_darwin_store_inferior_registers): Refactor as methods of
5208 darwin_nat_target.
5209 (darwin_complete_target): Delete, with ...
5210 (_initialize_i386_darwin_nat): ... bits factored out here.
5211
5212 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
5213 (the_alpha_linux_nat_target): New.
5214 (alpha_linux_register_u_offset): Refactor as
5215 alpha_linux_nat_target method.
5216 (_initialize_alpha_linux_nat): Adjust.
5217 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
5218 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
5219 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
5220 methods of linux_nat_trad_target.
5221 (linux_trad_target): Delete.
5222 * linux-nat-trad.h (linux_trad_target): Delete function.
5223 (linux_nat_trad_target): New class.
5224 * mips-linux-nat.c (mips_linux_nat_target): New class.
5225 (super_fetch_registers, super_store_registers, super_close):
5226 Delete.
5227 (the_mips_linux_nat_target): New.
5228 (mips64_linux_regsets_fetch_registers)
5229 (mips64_linux_regsets_store_registers)
5230 (mips64_linux_fetch_registers, mips64_linux_store_registers)
5231 (mips_linux_register_u_offset, mips_linux_read_description)
5232 (mips_linux_can_use_hw_breakpoint)
5233 (mips_linux_stopped_by_watchpoint)
5234 (mips_linux_stopped_data_address)
5235 (mips_linux_region_ok_for_hw_watchpoint)
5236 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
5237 (mips_linux_close): Refactor as methods of mips_linux_nat.
5238 (_initialize_mips_linux_nat): Adjust to C++ification.
5239
5240 * aix-thread.c (aix_thread_target): New class.
5241 (aix_thread_ops): Now an aix_thread_target.
5242 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
5243 (aix_thread_fetch_registers, aix_thread_store_registers)
5244 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
5245 (aix_thread_thread_alive, aix_thread_pid_to_str)
5246 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
5247 Refactor as methods of aix_thread_target.
5248 (init_aix_thread_ops): Delete.
5249 (_initialize_aix_thread): Remove references to init_aix_thread_ops
5250 and complete_target_initialization.
5251 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
5252 (rs6000_nat_target): New class.
5253 (the_rs6000_nat_target): New.
5254 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
5255 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
5256 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
5257 (super_create_inferior): Delete.
5258 (_initialize_rs6000_nat): Adjust to C++ification.
5259
5260 * arm-linux-nat.c (arm_linux_nat_target): New class.
5261 (the_arm_linux_nat_target): New.
5262 (arm_linux_fetch_inferior_registers)
5263 (arm_linux_store_inferior_registers, arm_linux_read_description)
5264 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
5265 (arm_linux_remove_hw_breakpoint)
5266 (arm_linux_region_ok_for_hw_watchpoint)
5267 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
5268 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
5269 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
5270 arm_linux_nat_target.
5271 (_initialize_arm_linux_nat): Adjust to C++ification.
5272
5273 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
5274 (the_aarch64_linux_nat_target): New.
5275 (aarch64_linux_fetch_inferior_registers)
5276 (aarch64_linux_store_inferior_registers)
5277 (aarch64_linux_child_post_startup_inferior)
5278 (aarch64_linux_read_description)
5279 (aarch64_linux_can_use_hw_breakpoint)
5280 (aarch64_linux_insert_hw_breakpoint)
5281 (aarch64_linux_remove_hw_breakpoint)
5282 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
5283 (aarch64_linux_region_ok_for_hw_watchpoint)
5284 (aarch64_linux_stopped_data_address)
5285 (aarch64_linux_stopped_by_watchpoint)
5286 (aarch64_linux_watchpoint_addr_within_range)
5287 (aarch64_linux_can_do_single_step): Refactor as methods of
5288 aarch64_linux_nat_target.
5289 (super_post_startup_inferior): Delete.
5290 (_initialize_aarch64_linux_nat): Adjust to C++ification.
5291
5292 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
5293 (the_hppa_linux_nat_target): New.
5294 (hppa_linux_fetch_inferior_registers)
5295 (hppa_linux_store_inferior_registers): Refactor as methods of
5296 hppa_linux_nat_target.
5297 (_initialize_hppa_linux_nat): Adjust to C++ification.
5298
5299 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
5300 (the_ia64_linux_nat_target): New.
5301 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
5302 (ia64_linux_stopped_data_address)
5303 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
5304 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
5305 ia64_linux_nat_target methods.
5306 (super_xfer_partial): Delete.
5307 (_initialize_ia64_linux_nat): Adjust to C++ification.
5308
5309 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
5310 (the_m32r_linux_nat_target): New.
5311 (m32r_linux_fetch_inferior_registers)
5312 (m32r_linux_store_inferior_registers): Refactor as
5313 m32r_linux_nat_target methods.
5314 (_initialize_m32r_linux_nat): Adjust to C++ification.
5315
5316 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
5317 (the_m68k_linux_nat_target): New.
5318 (m68k_linux_fetch_inferior_registers)
5319 (m68k_linux_store_inferior_registers): Refactor as
5320 m68k_linux_nat_target methods.
5321 (_initialize_m68k_linux_nat): Adjust to C++ification.
5322
5323 * s390-linux-nat.c (s390_linux_nat_target): New class.
5324 (the_s390_linux_nat_target): New.
5325 (s390_linux_fetch_inferior_registers)
5326 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
5327 (s390_insert_watchpoint, s390_remove_watchpoint)
5328 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
5329 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
5330 (s390_auxv_parse, s390_read_description): Refactor as methods of
5331 s390_linux_nat_target.
5332 (_initialize_s390_nat): Adjust to C++ification.
5333
5334 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
5335 (the_sparc_linux_nat_target): New.
5336 (_initialize_sparc_linux_nat): Adjust to C++ification.
5337 * sparc-nat.c (sparc_fetch_inferior_registers)
5338 (sparc_store_inferior_registers): Remove target_ops parameter.
5339 * sparc-nat.h (sparc_fetch_inferior_registers)
5340 (sparc_store_inferior_registers): Remove target_ops parameter.
5341 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
5342 (the_sparc64_linux_nat_target): New.
5343 (_initialize_sparc64_linux_nat): Adjust to C++ification.
5344
5345 * spu-linux-nat.c (spu_linux_nat_target): New class.
5346 (the_spu_linux_nat_target): New.
5347 (spu_child_post_startup_inferior, spu_child_post_attach)
5348 (spu_child_wait, spu_fetch_inferior_registers)
5349 (spu_store_inferior_registers, spu_xfer_partial)
5350 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
5351 methods.
5352 (_initialize_spu_nat): Adjust to C++ification.
5353
5354 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
5355 (the_tilegx_linux_nat_target): New.
5356 (fetch_inferior_registers, store_inferior_registers):
5357 Refactor as methods.
5358 (_initialize_tile_linux_nat): Adjust to C++ification.
5359
5360 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
5361 (the_xtensa_linux_nat_target): New.
5362 (xtensa_linux_fetch_inferior_registers)
5363 (xtensa_linux_store_inferior_registers): Refactor as
5364 xtensa_linux_nat_target methods.
5365 (_initialize_xtensa_linux_nat): Adjust to C++ification.
5366
5367 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
5368 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
5369 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
5370 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
5371 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
5372 (fbsd_stopped_by_sw_breakpoint)
5373 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
5374 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
5375 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
5376 (fbsd_post_startup_inferior, fbsd_post_attach)
5377 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
5378 (fbsd_set_syscall_catchpoint)
5379 (super_xfer_partial, super_resume, super_wait)
5380 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
5381 (fbsd_handle_debug_trap): Remove target_ops parameter.
5382 (fbsd_nat_add_target): Delete.
5383 * fbsd-nat.h: Include "inf-ptrace.h".
5384 (fbsd_nat_add_target): Delete.
5385 (USE_SIGTRAP_SIGINFO): Define.
5386 (fbsd_nat_target): New class.
5387
5388 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
5389 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
5390 (amd64bsd_target): Delete.
5391 * amd64-bsd-nat.h: New file.
5392 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
5393 "x86-bsd-nat.h".
5394 (amd64_fbsd_nat_target): New class.
5395 (the_amd64_fbsd_nat_target): New.
5396 (amd64fbsd_read_description): Refactor as method of
5397 amd64_fbsd_nat_target.
5398 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
5399 (_initialize_amd64fbsd_nat): Adjust to C++ification.
5400 * amd64-nat.h (amd64bsd_target): Delete function declaration.
5401 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
5402 (i386bsd_store_inferior_registers): Remove target_ops parameter.
5403 (i386bsd_target): Delete.
5404 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
5405 (i386bsd_fetch_inferior_registers)
5406 (i386bsd_store_inferior_registers): Declare.
5407 (i386_bsd_nat_target): New class.
5408 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
5409 (the_i386_fbsd_nat_target): New.
5410 (i386fbsd_resume, i386fbsd_read_description): Refactor as
5411 i386_fbsd_nat_target methods.
5412 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
5413 (_initialize_i386fbsd_nat): Adjust to C++ification.
5414 * x86-bsd-nat.c (super_mourn_inferior): Delete.
5415 (x86bsd_mourn_inferior, x86bsd_target): Delete.
5416 (_initialize_x86_bsd_nat): Adjust to C++ification.
5417 * x86-bsd-nat.h: Include "x86-nat.h".
5418 (x86bsd_target): Delete declaration.
5419 (x86bsd_nat_target): New class.
5420
5421 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
5422 (the_aarch64_fbsd_nat_target): New.
5423 (aarch64_fbsd_fetch_inferior_registers)
5424 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
5425 aarch64_fbsd_nat_target.
5426 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
5427 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
5428 (the_alpha_bsd_nat_target): New.
5429 (alphabsd_fetch_inferior_registers)
5430 (alphabsd_store_inferior_registers): Refactor as
5431 alpha_bsd_nat_target methods.
5432 (_initialize_alphabsd_nat): Refactor as methods of
5433 alpha_bsd_nat_target.
5434 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
5435 (the_amd64_nbsd_nat_target): New.
5436 (_initialize_amd64nbsd_nat): Adjust to C++ification.
5437 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
5438 (the_amd64_obsd_nat_target): New.
5439 (_initialize_amd64obsd_nat): Adjust to C++ification.
5440 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
5441 (the_arm_fbsd_nat_target): New.
5442 (arm_fbsd_fetch_inferior_registers)
5443 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
5444 (_initialize_arm_fbsd_nat): Refactor as methods of
5445 arm_fbsd_nat_target.
5446 (_initialize_arm_fbsd_nat): Adjust to C++ification.
5447 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
5448 (the_arm_netbsd_nat_target): New.
5449 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
5450 arm_netbsd_nat_target.
5451 (_initialize_arm_netbsd_nat): Adjust to C++ification.
5452 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
5453 (the_hppa_nbsd_nat_target): New.
5454 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
5455 hppa_nbsd_nat_target methods.
5456 (_initialize_hppanbsd_nat): Adjust to C++ification.
5457 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
5458 (the_hppa_obsd_nat_target): New.
5459 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
5460 methods of hppa_obsd_nat_target.
5461 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
5462 add_target.
5463 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
5464 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
5465 add_target.
5466 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
5467 (_initialize_i386obsd_nat): Use add_target.
5468 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
5469 (the_m68k_bsd_nat_target): New.
5470 (m68kbsd_fetch_inferior_registers)
5471 (m68kbsd_store_inferior_registers): Refactor as methods of
5472 m68k_bsd_nat_target.
5473 (_initialize_m68kbsd_nat): Adjust to C++ification.
5474 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
5475 (the_mips_fbsd_nat_target): New.
5476 (mips_fbsd_fetch_inferior_registers)
5477 (mips_fbsd_store_inferior_registers): Refactor as methods of
5478 mips_fbsd_nat_target.
5479 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
5480 add_target.
5481 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
5482 (the_mips_nbsd_nat_target): New.
5483 (mipsnbsd_fetch_inferior_registers)
5484 (mipsnbsd_store_inferior_registers): Refactor as methods of
5485 mips_nbsd_nat_target.
5486 (_initialize_mipsnbsd_nat): Adjust to C++ification.
5487 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
5488 (the_mips64_obsd_nat_target): New.
5489 (mips64obsd_fetch_inferior_registers)
5490 (mips64obsd_store_inferior_registers): Refactor as methods of
5491 mips64_obsd_nat_target.
5492 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
5493 add_target.
5494 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
5495 nbsd_nat_target.
5496 * nbsd-nat.h: Include "inf-ptrace.h".
5497 (nbsd_nat_target): New class.
5498 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
5499 (obsd_wait): Refactor as methods of obsd_nat_target.
5500 (obsd_add_target): Delete.
5501 * obsd-nat.h: Include "inf-ptrace.h".
5502 (obsd_nat_target): New class.
5503 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
5504 (the_ppc_fbsd_nat_target): New.
5505 (ppcfbsd_fetch_inferior_registers)
5506 (ppcfbsd_store_inferior_registers): Refactor as methods of
5507 ppc_fbsd_nat_target.
5508 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
5509 add_target.
5510 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
5511 (the_ppc_nbsd_nat_target): New.
5512 (ppcnbsd_fetch_inferior_registers)
5513 (ppcnbsd_store_inferior_registers): Refactor as methods of
5514 ppc_nbsd_nat_target.
5515 (_initialize_ppcnbsd_nat): Adjust to C++ification.
5516 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
5517 (the_ppc_obsd_nat_target): New.
5518 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
5519 methods of ppc_obsd_nat_target.
5520 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
5521 add_target.
5522 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
5523 (the_sh_nbsd_nat_target): New.
5524 (shnbsd_fetch_inferior_registers)
5525 (shnbsd_store_inferior_registers): Refactor as methods of
5526 sh_nbsd_nat_target.
5527 (_initialize_shnbsd_nat): Adjust to C++ification.
5528 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
5529 (inf_ptrace_xfer_partial): Delete.
5530 (sparc_xfer_partial, sparc_target): Delete.
5531 * sparc-nat.h (sparc_fetch_inferior_registers)
5532 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
5533 (sparc_target): Delete function declaration.
5534 (sparc_target): New template class.
5535 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
5536 (_initialize_sparcnbsd_nat): Adjust to C++ification.
5537 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
5538 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
5539 add_target.
5540 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
5541 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
5542 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
5543 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
5544 add_target.
5545 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
5546 (the_vax_bsd_nat_target): New.
5547 (vaxbsd_fetch_inferior_registers)
5548 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
5549 methods.
5550 (_initialize_vaxbsd_nat): Adjust to C++ification.
5551
5552 * bsd-kvm.c (bsd_kvm_target): New class.
5553 (bsd_kvm_ops): Now a bsd_kvm_target.
5554 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
5555 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
5556 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
5557 bsd_kvm_target.
5558 (bsd_kvm_return_one): Delete.
5559 (bsd_kvm_add_target): Adjust to C++ification.
5560
5561 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
5562 (nto_procfs_target_procfs): New classes.
5563 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
5564 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
5565 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
5566 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
5567 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
5568 (procfs_remove_hw_breakpoint, procfs_resume)
5569 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
5570 (procfs_kill_inferior, procfs_store_registers)
5571 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
5572 as methods of nto_procfs_target.
5573 (nto_procfs_ops): Now an nto_procfs_target_procfs.
5574 (nto_native_ops): Delete.
5575 (procfs_open, procfs_native_open): Delete.
5576 (nto_native_ops): Now an nto_procfs_target_native.
5577 (init_procfs_targets): Adjust to C++ification.
5578 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
5579 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
5580 Refactor as methods of nto_procfs_target.
5581
5582 * go32-nat.c (go32_nat_target): New class.
5583 (the_go32_nat_target): New.
5584 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
5585 (go32_store_registers, go32_xfer_partial, go32_files_info)
5586 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
5587 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
5588 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
5589 (go32_pid_to_str): Refactor as methods of go32_nat_target.
5590 (go32_target): Delete.
5591 (_initialize_go32_nat): Adjust to C++ification.
5592
5593 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
5594 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
5595 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
5596 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
5597 gnu_nat_target.
5598 (gnu_target): Delete.
5599 * gnu-nat.h (gnu_target): Delete.
5600 (gnu_nat_target): New class.
5601 * i386-gnu-nat.c (gnu_base_target): New.
5602 (i386_gnu_nat_target): New class.
5603 (the_i386_gnu_nat_target): New.
5604 (_initialize_i386gnu_nat): Adjust to C++ification.
5605
3fffc070
PA
56062018-05-02 Pedro Alves <palves@redhat.com>
5607
5608 * bfd-target.c (target_bfd_xclose): Rename to ...
5609 (target_bfd_close): ... this.
5610 (target_bfd_reopen): Adjust.
5611 * target.c (target_close): Remove references to to_xclose.
5612 * target.h (target_ops::to_xclose): Delete.
5613 (target_ops::to_close): Update comments.
5614
6798487f
PA
56152018-05-02 Pedro Alves <palves@redhat.com>
5616
5617 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
5618 "linux-nat.h".
5619 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
5620 * inf-ptrace.c (inf_ptrace_register_u_offset)
5621 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
5622 (inf_ptrace_store_register, inf_ptrace_store_registers)
5623 (inf_ptrace_trad_target): Move to ...
5624 * linux-nat-trad.c: ... this new file.
5625 * linux-nat-trad.h: New file.
5626 * linux-nat.c (linux_target_install_ops): Make extern.
5627 (linux_trad_target): Delete.
5628 * linux-nat.h (linux_trad_target): Delete declaration.
5629 (linux_target_install_ops): Declare.
5630 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
5631 "linux-nat.h".
5632
c1955e17
PA
56332018-05-02 Pedro Alves <palves@redhat.com>
5634
5635 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
5636 procfs_target/add_target here.
5637 * procfs.c (procfs_target): Make static.
5638 (_initialize_procfs): Call add_target here.
5639 * procfs.h (struct target_ops): Remove forward declaration.
5640 (procfs_target): Remove declaration.
5641 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
5642
b5c8fcb1
PA
56432018-05-02 Pedro Alves <palves@redhat.com>
5644
5645 * procfs.c (procfs_stopped_by_watchpoint)
5646 (procfs_insert_watchpoint, procfs_remove_watchpoint)
5647 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
5648 Forward declare.
5649 (procfs_use_watchpoints): Delete, move contents...
5650 (procfs_target): ... here.
5651 * procfs.h (procfs_use_watchpoints): Delete declaration.
5652 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
5653 procfs_use_watchpoints.
5654 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
5655 procfs_use_watchpoints.
5656
0489430a
TT
56572018-05-02 Tom Tromey <tom@tromey.com>
5658
5659 PR python/20084:
5660 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
5661 and var_zuinteger_unlimited.
5662 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
5663 and PARAM_ZUINTEGER_UNLIMITED.
5664 (set_parameter_value): Handle var_zuinteger and
5665 var_zuinteger_unlimited.
5666 (add_setshow_generic): Likewise.
5667 (parmpy_init): Likewise.
5668
1632f8ba
DR
56692018-04-28 Dan Robertson <danlrobertson89@gmail.com>
5670
5671 PR rust/23124
5672 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
5673 pointer is not null before dereferencing it.
5674
76761936
TT
56752018-04-30 Tom Tromey <tom@tromey.com>
5676
5677 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
5678 is_mi_like_p.
5679
2d33446d
TT
56802018-04-30 Tom Tromey <tom@tromey.com>
5681
5682 * breakpoint.c (mention): Remove use of is_mi_like_p.
5683 (print_mention_ranged_breakpoint): Likewise.
5684 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
5685 of is_mi_like_p.
5686
f3c6abab
TT
56872018-04-30 Tom Tromey <tom@tromey.com>
5688
5689 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
5690
40c03530
TT
56912018-04-30 Tom Tromey <tom@tromey.com>
5692
5693 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
5694 (info_spu_event_command): Remove some uses of is_mi_like_p.
5695
2038b7fd
TT
56962018-04-30 Tom Tromey <tom@tromey.com>
5697
5698 * python/py-framefilter.c (py_print_single_arg)
5699 (enumerate_locals, py_print_args, py_print_frame): Remove some
5700 uses of is_mi_like_p.
5701
4904c3c6
TT
57022018-04-30 Tom Tromey <tom@tromey.com>
5703
5704 * ui-out.c: Update.
5705 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
5706 * ui-out.h (ui_out::is_mi_like_p): Now const.
5707 (ui_out::do_is_mi_like_p): Now const.
5708 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
5709
7c66fffc
TT
57102018-04-30 Tom Tromey <tom@tromey.com>
5711
5712 * varobj.c (varobj_set_visualizer): Use new_reference.
5713 * python/python.c (gdbpy_decode_line): Use new_reference.
5714 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
5715 new_reference.
5716
bbfa6f00
TT
57172018-04-30 Tom Tromey <tom@tromey.com>
5718
5719 * varobj.c (install_new_value): Use new_reference.
5720 * value.h (value_incref): Return void. Swap intro comment with
5721 value_decref.
5722 * value.c (set_value_parent): Use new_reference.
5723 (value_incref): Return void. Update intro comment.
5724 (release_value): Use new_reference.
5725 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
5726
1831a9f9
TT
57272018-04-30 Tom Tromey <tom@tromey.com>
5728
5729 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
5730 * gdb_bfd.h (new_bfd_ref): Remove.
5731 (gdb_bfd_open): Update comment.
5732 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5733 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
5734 (gdb_bfd_fdopenr): Use new_reference.
5735 * exec.c (exec_file_attach): Use new_reference.
5736
7c1b5f3d
TT
57372018-04-30 Tom Tromey <tom@tromey.com>
5738
5739 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
5740 method.
5741
e11fb955
TT
57422018-04-30 Tom Tromey <tom@tromey.com>
5743
5744 * jit.c (jit_read_code_entry): Use type_align.
5745 * i386-tdep.c (i386_gdbarch_init): Don't call
5746 set_gdbarch_long_long_align_bit.
5747 * gdbarch.sh: Remove long_long_align_bit.
5748 * gdbarch.c, gdbarch.h: Rebuild.
5749 * arc-tdep.c (arc_type_align): New function.
5750 (arc_gdbarch_init): Use arc_type_align. Don't call
5751 set_gdbarch_long_long_align_bit.
5752
2fff16dd
TT
57532018-04-30 Tom Tromey <tom@tromey.com>
5754
5755 * rust-lang.c (rust_type_alignment): Remove.
5756 (rust_composite_type): Use type_align.
5757
6d7bb824
TT
57582018-04-30 Tom Tromey <tom@tromey.com>
5759
5760 * NEWS: Mention Type.align.
5761 * python/py-type.c (typy_get_alignof): New function.
5762 (type_object_getset): Add "alignof".
5763
007e1530
TT
57642018-04-30 Tom Tromey <tom@tromey.com>
5765
5766 PR exp/17095:
5767 * NEWS: Update.
5768 * std-operator.def (UNOP_ALIGNOF): New operator.
5769 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
5770 New.
5771 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
5772 * c-lang.c (c_op_print_tab): Add alignof.
5773 * c-exp.y (ALIGNOF): New token.
5774 (exp): Add "ALIGNOF" production.
5775 (ident_tokens): Add _Alignof and alignof.
5776
2b4424c3
TT
57772018-04-30 Tom Tromey <tom@tromey.com>
5778
5779 * i386-tdep.c (i386_type_align): New function.
5780 (i386_gdbarch_init): Update.
5781 * gdbarch.sh (type_align): New method.
5782 * gdbarch.c, gdbarch.h: Rebuild.
5783 * arch-utils.h (default_type_align): Declare.
5784 * arch-utils.c (default_type_align): New function.
5785 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
5786 (struct type) <align_log2>: New field.
5787 <instance_flags>: Now a bitfield.
5788 (TYPE_RAW_ALIGN): New macro.
5789 (type_align, type_raw_align, set_type_align): Declare.
5790 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
5791 functions.
5792 * dwarf2read.c (quirk_rust_enum): Set type alignment.
5793 (get_alignment, maybe_set_alignment): New functions.
5794 (read_structure_type, read_enumeration_type, read_array_type)
5795 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
5796 (read_subrange_type, read_base_type): Set type alignment.
5797
d33bc52e
SM
57982018-04-30 Simon Marchi <simon.marchi@ericsson.com>
5799
5800 * dwarf2read.c (read_index_from_section): Use bool.
5801
e28b63a9
FG
58022018-04-29 Fabian Groffen <grobian@gentoo.org>
5803
5804 PR gdb/22950
5805 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
5806 with #ifdef.
5807
cd8c76e4
JR
58082018-04-29 John Reiser <jreiser@BitWagon.com>
5809
5810 PR build/22873
5811 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
5812 last step, and do it atomically.
5813
476d250e
AO
58142018-04-27 Alexandre Oliva <aoliva@redhat.com>
5815
5816 * compile/compile-c-types.c (convert_int, convert_float):
5817 Update for C FE v1.
5818
6873858b
TT
58192018-04-27 Tom Tromey <tom@tromey.com>
5820
5821 PR rust/22545:
5822 * rust-lang.c (rust_inclusive_range_type_p): New function.
5823 (rust_range): Handle inclusive ranges.
5824 (rust_compute_range): Likewise.
5825 * rust-exp.y (struct rust_op) <inclusive>: New field.
5826 (DOTDOTEQ): New constant.
5827 (range_expr): Add "..=" productions.
5828 (operator_tokens): Add "..=" token.
5829 (ast_range): Add "inclusive" parameter.
5830 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
5831 ranges.
5832 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
5833 bounds values.
5834 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
5835 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
5836 Update comments.
5837 * expprint.c (print_subexp_standard): Handle new bounds values.
5838 (dump_subexp_body_standard): Likewise.
5839
632e107b
TT
58402018-04-27 Tom Tromey <tom@tromey.com>
5841
5842 * configure: Rebuild.
5843 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
5844 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
5845 "OVERRIDE".
5846 (class symbol_needs_eval_context): Likewise.
5847 * dwarf2read.c (mock_mapped_index::symbol_name_count)
5848 (mock_mapped_index::symbol_name_at): Use "override". Remove
5849 "virtual".
5850 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
5851 "override".
5852 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
5853 * aarch64-tdep.c (instruction_reader::read): Use "override".
5854 (instruction_reader_test::read): Likewise.
5855 * arm-tdep.c (instruction_reader::read): Use "override".
5856 (instruction_reader_thumb::read): Likewise.
5857
b75abf5b
AK
58582018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
5859
5860 PR remote/9665
5861 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
5862 instead of remote_send.
5863 (remote_send): Remove.
5864
79188d8d
PA
58652018-04-26 Pedro Alves <palves@redhat.com>
5866
5867 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
5868 find_function_start_sal instead of find_pc_line.
5869
f50776aa
PA
58702018-04-26 Pedro Alves <palves@redhat.com>
5871
5872 * breakpoint.c (set_breakpoint_location_function): Handle
5873 mst_data_gnu_ifunc.
5874 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
5875 * elfread.c (elf_symtab_read): Give data symbols with
5876 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
5877 (elf_rel_plt_read): Update comment.
5878 * linespec.c (convert_linespec_to_sals): Handle
5879 mst_data_gnu_ifunc.
5880 (minsym_found): Handle mst_data_gnu_ifunc.
5881 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
5882 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
5883 * parse.c (find_minsym_type_and_address): Handle
5884 mst_data_gnu_ifunc.
5885 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
5886 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
5887 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
5888 comment.
5889 <mst_data_gnu_ifunc>: New enumerator.
5890
20944a6e
PA
58912018-04-26 Pedro Alves <palves@redhat.com>
5892
5893 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
5894 (lookup_minimal_symbol_by_pc_section): ... this. Replace
5895 'want_trampoline' parameter by a lookup_msym_prefer parameter.
5896 Handle it.
5897 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
5898 (lookup_minimal_symbol_by_pc): Adjust.
5899 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
5900 (lookup_solib_trampoline_symbol_by_pc): Adjust.
5901 * minsyms.h (lookup_msym_prefer): New enum.
5902 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
5903 parameter by a lookup_msym_prefer parameter.
5904
1adeb822
PA
59052018-04-26 Pedro Alves <palves@redhat.com>
5906
5907 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
5908 ends in "@plt" instead of looking at the symbol's section.
5909
a0aca7b0
PA
59102018-04-26 Pedro Alves <palves@redhat.com>
5911
5912 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
5913 all references.
5914 (find_pc_partial_function_gnu_ifunc): Rename to ...
5915 (find_pc_partial_function): ... this, and remove references to
5916 'is_gnu_ifunc_p'.
5917 (find_pc_partial_function): Delete old implementation.
5918 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
5919
76af0f26
PA
59202018-04-26 Pedro Alves <palves@redhat.com>
5921
5922 * linespec.c (struct bound_minimal_symbol_search_key): New.
5923 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
5924 skip first line if we found a GNU ifunc minimal symbol by name.
5925 (compare_msymbols): Change parameters to work with a destructured
5926 lhs minsym.
5927 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
5928 functions.
5929
3467ec66
PA
59302018-04-26 Pedro Alves <palves@redhat.com>
5931
5932 * breakpoint.c (set_breakpoint_location_function): Don't resolve
5933 ifunc targets here. Instead, if we have an ifunc minsym, use its
5934 address/name.
5935 (add_location_to_breakpoint): Store the minsym and the objfile in
5936 the breakpoint location.
5937 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
5938 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
5939 Record the minsym in the sal.
5940 * symtab.h (symtab_and_line) <msymbol>: New field.
5941
28f4fa4d
PA
59422018-04-26 Pedro Alves <palves@redhat.com>
5943
5944 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
5945 unless we actually resolved the ifunc.
5946
ca31ab1d
PA
59472018-04-26 Pedro Alves <palves@redhat.com>
5948
5949 * c-exp.y (variable production): Prefer ifunc minsyms over
5950 regular function symbols.
5951 * symtab.c (find_gnu_ifunc): New function.
5952 * minsyms.h (lookup_msym_prefer): New enum.
5953 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
5954 parameter by a lookup_msym_prefer parameter.
5955 * symtab.h (find_gnu_ifunc): New declaration.
5956
8388016d
PA
59572018-04-26 Pedro Alves <palves@redhat.com>
5958
5959 * blockframe.c (find_gnu_ifunc_target_type): New function.
5960 (find_function_type): New.
5961 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
5962 return a value with a memory address.
5963 (eval_call): For calls to GNU ifunc functions, try to find the
5964 type of the target function from the type that the resolver
5965 returns.
5966 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
5967 symbols.
5968 * infcall.c (find_function_return_type): Delete.
5969 (find_function_addr): Add 'function_type' parameter. For calls to
5970 GNU ifunc functions, try to find the type of the target function
5971 from the type that the resolver returns, and return it via
5972 FUNCTION_TYPE.
5973 (call_function_by_hand_dummy): Adjust to use the function type
5974 returned by find_function_addr.
5975 (find_function_addr): Add 'function_type' parameter and move
5976 description here.
5977 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
5978 declarations.
5979
a376e11d
PA
59802018-04-26 Pedro Alves <palves@redhat.com>
5981
5982 * c-exp.y (variable production): Skip finding an alias for ifunc
5983 symbols.
5984
02e169e2
PA
59852018-04-26 Pedro Alves <palves@redhat.com>
5986
5987 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
5988
249b5733
PA
59892018-04-25 Pedro Alves <palves@redhat.com>
5990
5991 * infcmd.c (kill_command): Print the pid as string, not the whole
5992 thread's ptid. Add comment. s/has been killed/killed/ in output
5993 message.
5994 * remote.c (remote_detach_1): Print the pid as string, not the
5995 whole thread's ptid.
5996
f67c0c91
SDJ
59972018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5998 Sergio Durigan Junior <sergiodj@redhat.com>
5999 Pedro Alves <palves@redhat.com>
6000
6001 * infcmd.c (kill_command): Print message when inferior has
6002 been killed.
6003 * inferior.c (print_inferior_events): Remove 'static'. Set as
6004 '1'.
6005 (add_inferior): Improve message printed when
6006 'print_inferior_events' is on.
6007 (exit_inferior): Remove message printed when
6008 'print_inferior_events' is on.
6009 (detach_inferior): Improve message printed when
6010 'print_inferior_events' is on.
6011 (initialize_inferiors): Use 'add_inferior_silent' to set
6012 'current_inferior_'.
6013 * inferior.h (print_inferior_events): Declare here as
6014 'extern'.
6015 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
6016 '[Detaching...]' messages when 'print_inferior_events' is on.
6017 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
6018 as prefix/suffix for messages. Remove periods. Fix erroneous
6019 'Detaching after fork from child...', replace it by '... from
6020 parent...'.
6021 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
6022 prefix/suffix when printing 'Detaching...' messages. Print
6023 them when 'print_inferior_events' is on.
6024 * remote.c (remote_detach_1): Print message when detaching
6025 from inferior and '!is_fork_parent'.
6026
e427af18
TT
60272018-04-24 Tom Tromey <tom@tromey.com>
6028
6029 * cli-out.h: Reindent.
6030
05b1d8d6
TT
60312018-04-24 Tom Tromey <tom@tromey.com>
6032
6033 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
6034 (cli_ui_out::do_field_string): Use fputs_filtered.
6035 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
6036
a95c7dab
TT
60372018-04-23 Tom Tromey <tom@tromey.com>
6038
6039 * guile/scm-frame.c (gdbscm_frame_read_var): Use
6040 gdb::unique_xmalloc_ptr.
6041
458412c3
TT
60422018-04-23 Tom Tromey <tom@tromey.com>
6043
6044 * configure: Rebuild.
6045
db86b02b
RS
60462018-04-22 Rajendra SY <rajendra.sy@gmail.com>
6047
6048 PR gdb/23095
6049 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
6050 prepare_for_testing. Set normal_bp to r_debug_state if target
6051 is bsd.
6052
00aecdcf
PA
60532018-04-21 Pedro Alves <palves@redhat.com>
6054 Rajendra SY <rajendra.sy@gmail.com>
6055
6056 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
6057 * remote.c (extended_remote_attach): In all-stop mode, mark the
6058 thread as executing.
6059
224608c3
PW
60602018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6061
6062 * thread.c (thread_apply_all_command): Fix comment.
6063 (thread_command): Fix comment.
6064
3b74854b
AH
60652018-04-10 Alan Hayward <alan.hayward@arm.com>
6066
6067 * common/tdesc.h (tdesc_create_feature): Remove xml filename
6068 parameter.
6069 * features/aarch64-core.c (create_feature_aarch64_core):
6070 Regenerate.
6071 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
6072 Likewise.
6073 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
6074 Likewise.
6075 * features/i386/32bit-avx512.c
6076 (create_feature_i386_32bit_avx512): Likewise.
6077 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
6078 Likewise.
6079 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
6080 Likewise.
6081 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
6082 Likewise.
6083 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
6084 Likewise.
6085 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
6086 Likewise.
6087 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
6088 Likewise.
6089 * features/i386/64bit-avx512.c
6090 (create_feature_i386_64bit_avx512): Likewise.
6091 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
6092 Likewise.
6093 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
6094 Likewise.
6095 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
6096 Likewise.
6097 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
6098 Likewise.
6099 * features/i386/64bit-segments.c
6100 (create_feature_i386_64bit_segments): Likewise.
6101 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
6102 Likewise.
6103 * features/i386/x32-core.c
6104 (create_feature_i386_x32_core): Likewise.
6105 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
6106 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
6107 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
6108 * target-descriptions.c: In generated code, don't pass xml
6109 filename.
6110
e98577a9
AH
61112018-04-18 Alan Hayward <alan.hayward@arm.com>
6112
6113 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
6114 (print_xml_feature::visit_post): Likewise.
6115 (print_xml_feature::visit): Likewise.
6116 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
6117 (print_xml_feature): Add new class.
6118 * regformats/regdat.sh: Null xmltarget on feature targets.
6119 * target-descriptions.c (struct target_desc): Add xmltarget.
6120 (maintenance_check_tdesc_xml_convert): Add unittest function.
6121 (tdesc_get_features_xml): Add function to get xml.
6122 (maintenance_check_xml_descriptions): Test xml generation.
6123 * xml-tdesc.c (string_read_description_xml): Add function.
6124 * xml-tdesc.h (string_read_description_xml): Add declaration.
6125
ad7fc756
AH
61262018-04-18 Alan Hayward <alan.hayward@arm.com>
6127
6128 * features/Makefile: Add feature marker to targets with new style
6129 target descriptions.
6130 * regformats/aarch64.dat: Regenerate.
6131 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
6132 * regformats/i386/amd64-avx-linux.dat: Likewise.
6133 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
6134 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
6135 * regformats/i386/amd64-linux.dat: Likewise.
6136 * regformats/i386/amd64-mpx-linux.dat: Likewise.
6137 * regformats/i386/amd64.dat: Likewise.
6138 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
6139 * regformats/i386/i386-avx-linux.dat: Likewise.
6140 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
6141 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
6142 * regformats/i386/i386-linux.dat: Likewise.
6143 * regformats/i386/i386-mmx-linux.dat: Likewise.
6144 * regformats/i386/i386-mpx-linux.dat: Likewise.
6145 * regformats/i386/i386.dat: Likewise.
6146 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
6147 * regformats/i386/x32-avx-linux.dat: Likewise.
6148 * regformats/i386/x32-linux.dat: Likewise.
6149 * regformats/tic6x-c62x-linux.dat: Likewise.
6150 * regformats/tic6x-c64x-linux.dat: Likewise.
6151 * regformats/tic6x-c64xp-linux.dat: Likewise.
6152 * regformats/regdat.sh: Parse feature marker.
6153
d278f585
AH
61542018-04-18 Alan Hayward <alan.hayward@arm.com>
6155
6156 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
6157 (tdesc_osabi_name): Likewise.
6158 * target-descriptions.c (tdesc_architecture_name): Add new
6159 function.
6160 (tdesc_osabi_name): Likewise.
6161
eee8a18d
AH
61622018-04-18 Alan Hayward <alan.hayward@arm.com>
6163
6164 * common/tdesc.c (tdesc_predefined_type): Move to here.
6165 (tdesc_named_type): Likewise.
6166 (tdesc_create_vector): Likewise.
6167 (tdesc_create_struct): Likewise.
6168 (tdesc_set_struct_size): Likewise.
6169 (tdesc_create_union): Likewise.
6170 (tdesc_create_flags): Likewise.
6171 (tdesc_create_enum): Likewise.
6172 (tdesc_add_field): Likewise.
6173 (tdesc_add_typed_bitfield): Likewise.
6174 (tdesc_add_bitfield): Likewise.
6175 (tdesc_add_flag): Likewise.
6176 (tdesc_add_enum_value): Likewise.
6177 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
6178 (struct tdesc_type_vector): Likewise.
6179 (struct tdesc_type_field): Likewise.
6180 (struct tdesc_type_with_fields): Likewise.
6181 (tdesc_create_enum): Add declaration.
6182 (tdesc_add_typed_bitfield): Likewise.
6183 (tdesc_add_enum_value): Likewise.
6184 * target-descriptions.c (tdesc_type_field): Move from here.
6185 (tdesc_type_builtin): Likewise.
6186 (tdesc_type_vector): Likewise.
6187 (tdesc_type_with_fields): Likewise.
6188 (tdesc_predefined_types): Likewise.
6189 (tdesc_named_type): Likewise.
6190 (tdesc_create_vector): Likewise.
6191 (tdesc_create_struct): Likewise.
6192 (tdesc_set_struct_size): Likewise.
6193 (tdesc_create_union): Likewise.
6194 (tdesc_create_flags): Likewise.
6195 (tdesc_create_enum): Likewise.
6196 (tdesc_add_field): Likewise.
6197 (tdesc_add_typed_bitfield): Likewise.
6198 (tdesc_add_bitfield): Likewise.
6199 (tdesc_add_flag): Likewise.
6200 (tdesc_add_enum_value): Likewise.
6201 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
6202 (tdesc_add_typed_bitfield): Likewise.
6203 (tdesc_add_enum_value): Likewise.
6204
82ec9bc7
AH
62052018-04-18 Alan Hayward <alan.hayward@arm.com>
6206
6207 * common/tdesc.c (tdesc_feature::accept): Move to here.
6208 (tdesc_feature::operator==): Likewise.
6209 (tdesc_create_reg): Likewise.
6210 * common/tdesc.h (tdesc_type_kind): Likewise.
6211 (struct tdesc_type): Likewise.
6212 (struct tdesc_feature): Likewise.
6213 * regformats/regdat.sh: Create a feature.
6214 * target-descriptions.c (tdesc_type_kind): Move from here.
6215 (tdesc_type): Likewise.
6216 (tdesc_type_up): Likewise.
6217 (tdesc_feature): Likewise.
6218 (tdesc_create_reg): Likewise.
6219
ea3e7d71
AH
62202018-04-18 Alan Hayward <alan.hayward@arm.com>
6221
6222 * Makefile.in: Add arch/tdesc.c
6223 * common/tdesc.c: New file.
6224 * common/tdesc.h (tdesc_element_visitor): Move to here.
6225 (tdesc_element): Likewise.
6226 (tdesc_reg): Likewise.
6227 (tdesc_reg_up): Likewise.
6228 * regformats/regdef.h (reg): Add offset to constructors.
6229 * target-descriptions.c (tdesc_element_visitor): Move from here.
6230 (tdesc_element): Likewise.
6231 (tdesc_reg): Likewise.
6232 (tdesc_reg_up): Likewise.
6233
bedda9ac
TT
62342018-04-17 Tom Tromey <tom@tromey.com>
6235
6236 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
6237 discriminant field.
6238
a037790e
TT
62392018-04-17 Tom Tromey <tom@tromey.com>
6240
6241 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
6242
c7dcbf88
AA
62432018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6244
6245 * symtab.c (print_symbol_info): Skip printing filename and line
6246 number when `last' is NULL.
6247 (symtab_symbol_info): Use empty string instead of NULL for first
6248 invocation of print_symbol_info.
6249 (rbreak_command): Pass NULL to `last' parameter of
6250 print_symbol_info.
6251
07d28c77
SM
62522018-04-16 Simon Marchi <simon.marchi@ericsson.com>
6253
6254 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
6255 instead of nullptr.
6256
8a3de5e1
PA
62572018-04-16 Pedro Alves <palves@redhat.com>
6258
6259 * MAINTAINERS (sh): Remove.
6260 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
6261 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
6262 (ALLDEPFILES): Remove sh64-tdep.c.
6263 * NEWS: Mentions that support for SH-5/SH64 is removed.
6264 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
6265 (sh*-*-openbsd*): Ditto.
6266 (sh64-*-elf*): Remove.
6267 (sh*): Remove.
6268 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
6269 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
6270 * sh-tdep.c: No longer include "sh64-tdep.h".
6271 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
6272 * sh64-tdep.c, sh64-tdep.h: Remove files.
6273
a2a79012
PA
62742018-04-16 Pedro Alves <palves@redhat.com>
6275
6276 * MAINTAINERS: Remove m88k.
6277 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
6278 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
6279 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
6280 * NEWS: Mention that support for m88k was removed.
6281 * configure.host (m88*-*-*): Remove support.
6282 * configure.nat (m88k-*-*): Remove support.
6283 * configure.tgt (m88*-*-openbsd*): Remove.
6284 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
6285
eda4efb1
SM
62862018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
6287
6288 * configure.tgt (x86_tobjs): New variable.
6289 (amd64_tobjs, i386_tobjs): Use it.
6290
b744723f
AA
62912018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6292
6293 * symtab.c (print_symbol_info): Precede the symbol definition by
6294 the line number when available.
6295 * NEWS: Advertise this enhancement.
6296
4a4495d6
MM
62972018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6298
6299 * NEWS (New options): announce set/show record btrace cpu.
6300 * btrace.c: Include record-btrace.h.
6301 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
6302 the vendor is unknown.
6303 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
6304 Maybe overwrite the btrace configuration's cpu.
6305 (btrace_compute_ftrace): Add cpu parameter. Update callers.
6306 (btrace_fetch): Add cpu parameter. Update callers.
6307 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
6308 Maybe overwrite the btrace configuration's cpu. Skip enabling
6309 errata workarounds if the vendor is unknown.
6310 * python/py-record-btrace.c: Include record-btrace.h.
6311 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
6312 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
6313 * record-btrace.c (record_btrace_cpu_state_kind): New.
6314 (record_btrace_cpu): New.
6315 (set_record_btrace_cpu_cmdlist): New.
6316 (record_btrace_get_cpu): New.
6317 (require_btrace_thread, record_btrace_info)
6318 (record_btrace_resume_thread): Call record_btrace_get_cpu.
6319 (cmd_set_record_btrace_cpu_none): New.
6320 (cmd_set_record_btrace_cpu_auto): New.
6321 (cmd_set_record_btrace_cpu): New.
6322 (cmd_show_record_btrace_cpu): New.
6323 (_initialize_record_btrace): Initialize set/show record btrace cpu
6324 commands.
6325 * record-btrace.h (record_btrace_get_cpu): New.
6326
69f90c75
MM
63272018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6328
6329 * record.c (set_record_command): Fix typo in message.
6330
b85310e1
MM
63312018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6332
6333 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
6334
1d509aa6
MM
63352018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6336
6337 * infrun.c (process_event_stop_test): Call
6338 gdbarch_in_indirect_branch_thunk.
6339 * gdbarch.sh (in_indirect_branch_thunk): New.
6340 * gdbarch.c: Regenerated.
6341 * gdbarch.h: Regenerated.
6342 * x86-tdep.h: New.
6343 * x86-tdep.c: New.
6344 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
6345 (HFILES_NO_SRCDIR): Add x86-tdep.h.
6346 (ALLDEPFILES): Add x86-tdep.c.
6347 * arch-utils.h (default_in_indirect_branch_thunk): New.
6348 * arch-utils.c (default_in_indirect_branch_thunk): New.
6349 * i386-tdep: Include x86-tdep.h.
6350 (i386_in_indirect_branch_thunk): New.
6351 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
6352 function.
6353 * amd64-tdep: Include x86-tdep.h.
6354 (amd64_in_indirect_branch_thunk): New.
6355 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
6356
b4be9bfd
JK
63572018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6358
6359 PR gdb/23053
6360 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
6361 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
6362 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
6363 regression.
6364
53d7df28
TT
63652018-04-12 Tom Tromey <tom@tromey.com>
6366
6367 * rust-lang.c (rust_print_struct_def): Remove univariant code.
6368 (rust_evaluate_subexp): Likewise.
6369
70b33f19
PA
63702018-04-12 Pedro Alves <palves@redhat.com>
6371
6372 * procfs.c (procfs_detach): Make forward declaration's prototype
6373 match definition's protototype.
6374 (proc_get_LDT_entry): Remove stale do_cleanups call.
6375
436411b1
PA
63762018-04-12 Pedro Alves <palves@redhat.com>
6377
6378 * target.h (target_ops::to_has_exited): Delete.
6379 (target_has_exited): Delete.
6380 * target-delegates.c: Regenerate.
6381
20db9c52
PA
63822018-04-11 Pedro Alves <palves@redhat.com>
6383
6384 * target.c (fileio_fh_t::t): Add comment.
6385 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
6386 (target_fileio_close): Handle a NULL target.
6387 (invalidate_fileio_fh): New.
6388 (target_close): Call it.
6389 * remote.c (remote_hostio_send_command): No longer check whether
6390 remote_desc is open.
6391
5ff79300
PA
63922018-04-11 Pedro Alves <palves@redhat.com>
6393
6394 * target.c (fileio_fh_t): Make it a named struct instead of a
6395 typedef.
6396 (fileio_fh_t::is_closed): New method.
6397 (DEF_VEC_O (fileio_fh_t)): Remove.
6398 (fileio_fhandles): Now a std::vector.
6399 (is_closed_fileio_fh): Delete.
6400 (acquire_fileio_fd): Adjust. Rename parameters.
6401 (release_fileio_fd): Adjust.
6402 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
6403 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
6404 (target_fileio_close): Adjust.
6405
6e22e10d
SM
64062018-04-10 Simon Marchi <simon.marchi@ericsson.com>
6407
6408 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
6409 index.
6410
731f534f
PA
64112018-04-10 Pedro Alves <palves@redhat.com>
6412
6413 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
6414 (scoped_finish_thread_state): New class.
6415 * infcmd.c (run_command_1): Use it instead of finish_thread_state
6416 cleanup.
6417 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
6418 (fetch_inferior_event, normal_stop): Likewise.
6419 * thread.c (finish_thread_state_cleanup): Delete.
6420
d5f4488f
SM
64212018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6422 Pedro Alves <palves@redhat.com>
6423
6424 * value.c: Include "selftest.h" and "common/array-view.h".
6425 (struct range) <operator ==>: New.
6426 (test_ranges_contain): New.
6427 (check_ranges_vector): New.
6428 (test_insert_into_bit_range_vector): New.
6429 (_initialize_values): Register selftests.
6430 * common/array-view.h (operator==, operator!=): New.
6431
b24531ed
SM
64322018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6433
6434 * common/gdb_vecs.h (unordered_remove): Add overload that takes
6435 an iterator.
6436 * inline-frame.c: Include <algorithm>.
6437 (struct inline_state): Add constructor.
6438 (inline_state_s): Remove.
6439 (DEF_VEC_O(inline_state_s)): Remove.
6440 (inline_states): Change type to std::vector.
6441 (find_inline_frame_state): Adjust to std::vector.
6442 (allocate_inline_frame_state): Remove.
6443 (clear_inline_frame_state): Adjust to std::vector.
6444 (skip_inline_frames): Adjust to std::vector.
6445
c252925c
SM
64462018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6447
6448 * tracepoint.h (struct trace_state_variable): Add constructor.
6449 <name>: Change type to std::string.
6450 * tracepoint.c (tsv_s): Remove.
6451 (DEF_VEC_O(tsv_s)): Remove.
6452 (tvariables): Change to std::vector.
6453 (create_trace_state_variable): Adjust to std::vector.
6454 (find_trace_state_variable): Likewise.
6455 (find_trace_state_variable_by_number): Likewise.
6456 (delete_trace_state_variable): Likewise.
6457 (trace_variable_command): Adjust to std::string.
6458 (delete_trace_variable_command): Likewise.
6459 (tvariables_info_1): Adjust to std::vector.
6460 (save_trace_state_variables): Likewise.
6461 (start_tracing): Likewise.
6462 (merge_uploaded_trace_state_variables): Adjust to std::vector
6463 and std::string.
6464 * target.h (struct target_ops)
6465 <to_download_trace_state_variable>: Pass reference to
6466 trace_state_variable.
6467 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
6468 * target-delegates.c: Re-generate.
6469 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
6470 (mi_tsv_deleted): Likewise.
6471 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6472 * remote.c (remote_download_trace_state_variable): Change
6473 pointer to reference and adjust.
6474 * make-target-delegates (parse_argtypes): Handle references.
6475 (write_function_header): Likewise.
6476 (munge_type): Likewise.
6477
c9638d26
SM
64782018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6479
6480 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6481 string_view-selftests.c.
6482 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
6483 testsuite.
6484 * unittests/basic_string_view/cons/char/1.cc: Likewise.
6485 * unittests/basic_string_view/cons/char/2.cc: Likewise.
6486 * unittests/basic_string_view/cons/char/3.cc: Likewise.
6487 * unittests/basic_string_view/element_access/char/1.cc:
6488 Likewise.
6489 * unittests/basic_string_view/element_access/char/empty.cc:
6490 Likewise.
6491 * unittests/basic_string_view/element_access/char/front_back.cc:
6492 Likewise.
6493 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
6494 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
6495 Likewise.
6496 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
6497 Likewise.
6498 * unittests/basic_string_view/modifiers/swap/char/1.cc:
6499 Likewise.
6500 * unittests/basic_string_view/operations/compare/char/1.cc:
6501 Likewise.
6502 * unittests/basic_string_view/operations/compare/char/13650.cc:
6503 Likewise.
6504 * unittests/basic_string_view/operations/copy/char/1.cc:
6505 Likewise.
6506 * unittests/basic_string_view/operations/data/char/1.cc:
6507 Likewise.
6508 * unittests/basic_string_view/operations/find/char/1.cc:
6509 Likewise.
6510 * unittests/basic_string_view/operations/find/char/2.cc:
6511 Likewise.
6512 * unittests/basic_string_view/operations/find/char/3.cc:
6513 Likewise.
6514 * unittests/basic_string_view/operations/find/char/4.cc:
6515 Likewise.
6516 * unittests/basic_string_view/operations/rfind/char/1.cc:
6517 Likewise.
6518 * unittests/basic_string_view/operations/rfind/char/2.cc:
6519 Likewise.
6520 * unittests/basic_string_view/operations/rfind/char/3.cc:
6521 Likewise.
6522 * unittests/basic_string_view/operations/substr/char/1.cc:
6523 Likewise.
6524 * unittests/basic_string_view/operators/char/2.cc: Likewise.
6525 * unittests/string_view-selftests.c: New file.
6526
fdc11678
SM
65272018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6528
6529 * unittests/basic_string_view/capacity/1.cc: New file.
6530 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
6531 * unittests/basic_string_view/cons/char/1.cc: New file.
6532 * unittests/basic_string_view/cons/char/2.cc: New file.
6533 * unittests/basic_string_view/cons/char/3.cc: New file.
6534 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
6535 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
6536 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
6537 * unittests/basic_string_view/element_access/char/1.cc: New file.
6538 * unittests/basic_string_view/element_access/char/2.cc: New file.
6539 * unittests/basic_string_view/element_access/char/empty.cc: New file.
6540 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
6541 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
6542 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
6543 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
6544 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
6545 * unittests/basic_string_view/include.cc: New file.
6546 * unittests/basic_string_view/inserters/char/1.cc: New file.
6547 * unittests/basic_string_view/inserters/char/2.cc: New file.
6548 * unittests/basic_string_view/inserters/char/3.cc: New file.
6549 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
6550 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
6551 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
6552 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
6553 * unittests/basic_string_view/literals/types.cc: New file.
6554 * unittests/basic_string_view/literals/values.cc: New file.
6555 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
6556 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
6557 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
6558 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
6559 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
6560 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
6561 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
6562 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
6563 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
6564 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
6565 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
6566 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
6567 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
6568 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
6569 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
6570 * unittests/basic_string_view/operations/data/char/1.cc: New file.
6571 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
6572 * unittests/basic_string_view/operations/find/char/1.cc: New file.
6573 * unittests/basic_string_view/operations/find/char/2.cc: New file.
6574 * unittests/basic_string_view/operations/find/char/3.cc: New file.
6575 * unittests/basic_string_view/operations/find/char/4.cc: New file.
6576 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
6577 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
6578 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
6579 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
6580 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
6581 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
6582 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
6583 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
6584 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
6585 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
6586 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
6587 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
6588 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
6589 * unittests/basic_string_view/operators/char/2.cc: New file.
6590 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
6591 * unittests/basic_string_view/range_access/char/1.cc: New file.
6592 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
6593 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
6594 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
6595 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
6596 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
6597 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
6598 * unittests/basic_string_view/requirements/typedefs.cc: New file.
6599 * unittests/basic_string_view/typedefs.cc: New file.
6600 * unittests/basic_string_view/types/1.cc: New file.
6601
8345c4a2
SM
66022018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6603
6604 * common/gdb_string_view.h: Remove libstdc++ implementation
6605 details, adjust to gdb reality.
6606 * common/gdb_string_view.tcc: Likewise.
6607 * cli/cli-script.c (struct string_view): Remove.
6608 (user_args) <m_args>: Change element type to gdb::string_view.
6609 (user_args::insert_args): Adjust.
6610
7adcdf08
SM
66112018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6612
6613 * common/gdb_string_view.h: New file.
6614 * common/gdb_string_view.tcc: New file.
6615
41260ac2
SM
66162018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6617
6618 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
6619 * configure: Re-generate.
6620
0bee6dd4
PA
66212018-04-09 Pedro Alves <palves@redhat.com>
6622
6623 * gdbarch.sh: Include "observable.h" instead of "observer.h".
6624 (set_target_gdbarch): Call
6625 gdb::observers::architecture_changed.notify instead of
6626 observer_notify_architecture_changed.
6627
6f14adc5
SM
66282018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6629
6630 * tracepoint.c (struct current_traceframe_cleanup): Remove.
6631 (do_restore_current_traceframe_cleanup): Remove.
6632 (restore_current_traceframe_cleanup_dtor): Remove.
6633 (make_cleanup_restore_current_traceframe): Remove.
6634 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
6635 New.
6636 * tracepoint.h (struct scoped_restore_current_traceframe): New.
6637 * infrun.c (fetch_inferior_event): Use
6638 scoped_restore_current_traceframe.
6639
b2bdb8cf
SM
66402018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6641
6642 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
6643 Remove.
6644 <n_allocated_type_units>: Remove.
6645 <all_type_units>: Change to std::vector.
6646 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
6647 to std::vector change.
6648 (dwarf2_per_objfile::get_cutu): Likewise.
6649 (dwarf2_per_objfile::get_tu): Likewise.
6650 (create_signatured_type_table_from_index): Likewise.
6651 (create_signatured_type_table_from_debug_names): Likewise.
6652 (dw2_symtab_iter_next): Likewise.
6653 (dw2_print_stats): Likewise.
6654 (dw2_expand_all_symtabs): Likewise.
6655 (dw2_expand_marked_cus): Likewise.
6656 (dw2_debug_names_iterator::next): Likewise.
6657 (dwarf2_initialize_objfile): Likewise.
6658 (add_signatured_type_cu_to_table): Likewise.
6659 (create_all_type_units): Likewise.
6660 (add_type_unit): Likewise.
6661 (struct tu_abbrev_offset): Add constructor.
6662 (build_type_psymtabs_1): Adjust to std::vector change.
6663 (print_tu_stats): Likewise.
6664 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
6665 (write_debug_names): Likewise.
6666
b76e467d
SM
66672018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6668
6669 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
6670 Make an std::vector.
6671 <n_comp_units>: Remove.
6672 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
6673 to std::vector change.
6674 (dwarf2_per_objfile::get_cutu): Likewise.
6675 (dwarf2_per_objfile::get_cu): Likewise.
6676 (create_cus_from_index): Likewise.
6677 (create_addrmap_from_index): Likewise.
6678 (create_addrmap_from_aranges): Likewise.
6679 (dwarf2_read_index): Likewise.
6680 (dw2_find_last_source_symtab): Likewise.
6681 (dw2_map_symtabs_matching_filename): Likewise.
6682 (dw2_symtab_iter_next): Likewise.
6683 (dw2_print_stats): Likewise.
6684 (dw2_expand_all_symtabs): Likewise.
6685 (dw2_expand_symtabs_with_fullname): Likewise.
6686 (dw2_expand_marked_cus): Likewise.
6687 (dw2_map_symbol_filenames): Likewise.
6688 (create_cus_from_debug_names): Likewise.
6689 (dwarf2_read_debug_names): Likewise.
6690 (dw2_debug_names_iterator::next): Likewise.
6691 (dwarf2_initialize_objfile): Likewise.
6692 (set_partial_user): Likewise.
6693 (dwarf2_build_psymtabs_hard): Likewise.
6694 (read_comp_units_from_section): Remove arguments, adjust to
6695 std::vector change.
6696 (create_all_comp_units): Adjust to std::vector and
6697 read_comp_units_from_section changes.
6698 (dwarf2_find_containing_comp_unit): Adjust to std::vector
6699 change.
6700 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
6701 (psyms_seen_size): Likewise.
6702 (write_gdbindex): Likewise.
6703 (write_debug_names): Likewise.
6704
12359b5e
SM
67052018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6706
6707 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
6708 with dwarf2_per_objfile.
6709 (create_cus_from_index): Likewise.
6710 (create_signatured_type_table_from_index): Likewise.
6711 (dwarf2_read_index): Likewise.
6712 (dwarf2_initialize_objfile): Likewise.
6713 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
6714 per_cu rather than get_dwarf2_per_objfile.
6715
ff4c9fec
SM
67162018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6717
6718 * dwarf2read.h (struct signatured_type): Forward declare.
6719 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
6720 New methods.
6721 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
6722 (dw2_get_cutu): ...this.
6723 (dwarf2_per_objfile::get_cu): Rename from...
6724 (dw2_get_cu): ...this.
6725 (dwarf2_per_objfile::get_tu): New.
6726 (create_addrmap_from_index): Adjust.
6727 (create_addrmap_from_aranges): Adjust.
6728 (dw2_find_last_source_symtab): Adjust.
6729 (dw2_map_symtabs_matching_filename): Adjust.
6730 (dw2_symtab_iter_next): Adjust.
6731 (dw2_print_stats): Adjust.
6732 (dw2_expand_all_symtabs): Adjust.
6733 (dw2_expand_symtabs_with_fullname): Adjust.
6734 (dw2_expand_marked_cus): Adjust.
6735 (dw_expand_symtabs_matching_file_matcher): Adjust.
6736 (dw2_map_symbol_filenames): Adjust.
6737 (dw2_debug_names_iterator::next): Adjust.
6738 (dwarf2_initialize_objfile): Adjust.
6739 (set_partial_user): Adjust.
6740 (dwarf2_build_psymtabs_hard): Adjust.
6741
5ca3fcb6
SM
67422018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6743
6744 * dwarf2read.c (create_signatured_type_table_from_debug_names):
6745 Remove unused variables.
6746 (dw2_map_symtabs_matching_filename): Likewise.
6747 (dwarf2_record_block_ranges): Likewise.
6748 (dwarf2_read_addr_index): Likewise.
6749 (follow_die_offset): Likewise.
6750
b2e586e8
SM
67512018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6752
6753 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
6754 to symbol_file_add_main.
6755
7c4e78cf
SM
67562018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6757
6758 PR mi/22299
6759 * mi/mi-console.c (do_fputc_async_safe): New.
6760 (mi_console_file::write_async_safe): New.
6761 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
6762 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
6763 New.
6764 * ui-file.c (ui_file::putstrn): Adjust call to
6765 fputstrn_unfiltered.
6766 * utils.c (printchar): Replace do_fputs and do_fprintf
6767 parameters by do_fputc.
6768 (fputstr_filtered): Adjust call to printchar.
6769 (fputstr_unfiltered): Likewise.
6770 (fputstrn_filtered): Likewise.
6771 (fputstrn_unfiltered): Add do_fputc parameter, pass to
6772 printchar.
6773 * utils.h (do_fputc_ftype): New typedef.
6774 (fputstrn_unfiltered): Add do_fputc parameter.
6775
5dc026d3
SM
67762018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6777
6778 * regformats/i386/i386-avx.dat: Remove.
6779
c912f608
SM
67802018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6781
6782 PR gdb/22979
6783 * amd64-tdep.c (amd64_none_init_abi): New function.
6784 (amd64_x32_none_init_abi): New function.
6785 (_initialize_amd64_tdep): Register handlers for x86-64 and
6786 x64_32 with GDB_OSABI_NONE.
6787 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
6788 GDB_OSABI_NONE osabi.
6789
26540402
SM
67902018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6791
6792 PR gdb/22980
6793 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
6794 GDB_OSABI_NONE.
6795 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
6796 * osabi.c (gdb_osabi_names): Add "unknown" entry.
6797
9018be22
SM
67982018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6799
6800 * common/byte-vector.h (char_vector): New type.
6801 * target.h (target_read_alloc): Return
6802 gdb::optional<byte_vector>.
6803 (target_read_stralloc): Return gdb::optional<char_vector>.
6804 (target_get_osdata): Return gdb::optional<char_vector>.
6805 * target.c (target_read_alloc_1): Templatize. Replacement
6806 manual memory management with vector.
6807 (target_read_alloc): Change return type, adjust.
6808 (target_read_stralloc): Change return type, adjust.
6809 (target_get_osdata): Change return type, adjust.
6810 * auxv.c (struct auxv_info) <length>: Remove.
6811 <data>: Change type to gdb::optional<byte_vector>.
6812 (auxv_inferior_data_cleanup): Free auxv_info with delete.
6813 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
6814 (target_auxv_search): Adjust.
6815 (fprint_target_auxv): Adjust.
6816 * avr-tdep.c (avr_io_reg_read_command): Adjust.
6817 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
6818 (linux_make_corefile_notes): Adjust.
6819 * osdata.c (get_osdata): Adjust.
6820 * remote.c (remote_get_threads_with_qxfer): Adjust.
6821 (remote_memory_map): Adjust.
6822 (remote_traceframe_info): Adjust.
6823 (btrace_read_config): Adjust.
6824 (remote_read_btrace): Adjust.
6825 (remote_pid_to_exec_file): Adjust.
6826 * solib-aix.c (solib_aix_get_library_list): Adjust.
6827 * solib-dsbt.c (decode_loadmap): Don't free buf.
6828 (dsbt_get_initial_loadmaps): Adjust.
6829 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
6830 * solib-target.c (solib_target_current_sos): Adjust.
6831 * tracepoint.c (sdata_make_value): Adjust.
6832 * xml-support.c (xinclude_start_include): Adjust.
6833 (xml_fetch_content_from_file): Adjust.
6834 * xml-support.h (xml_fetch_another): Change return type.
6835 (xml_fetch_content_from_file): Change return type.
6836 * xml-syscall.c (xml_init_syscalls_info): Adjust.
6837 * xml-tdesc.c (file_read_description_xml): Adjust.
6838 (fetch_available_features_from_target): Change return type.
6839 (target_fetch_description_xml): Adjust.
6840 (target_read_description_xml): Adjust.
6841
14c88955
TT
68422018-04-06 Tom Tromey <tom@tromey.com>
6843
6844 * value.c (~value): Update.
6845 (struct value) <contents>: Now unique_xmalloc_ptr.
6846 (value_contents_bits_eq, allocate_value_contents)
6847 (value_contents_raw, value_contents_all_raw)
6848 (value_contents_for_printing, value_contents_for_printing_const)
6849 (set_value_enclosing_type): Update.
6850
0c7e6dd8
TT
68512018-04-06 Tom Tromey <tom@tromey.com>
6852
6853 * value.c (range_s): Remove typedef, VEC.
6854 (struct range): Add operator<.
6855 (range_lessthan): Remove.
6856 (ranges_contain): Change type.
6857 (~value): Update.
6858 (struct value) <unavailable, optimized_out>: Now std::vector.
6859 (value_entirely_available)
6860 (value_entirely_covered_by_range_vector)
6861 (value_entirely_unavailable, value_entirely_optimized_out):
6862 Update.
6863 (insert_into_bit_range_vector): Change argument type.
6864 (find_first_range_overlap): Likewise.
6865 (struct ranges_and_idx, value_contents_bits_eq)
6866 (require_not_optimized_out, require_available): Update.
6867 (ranges_copy_adjusted): Change argument types.
6868 (value_optimized_out, value_copy, value_fetch_lazy): Update.
6869
2c8331b9
TT
68702018-04-06 Tom Tromey <tom@tromey.com>
6871
6872 * value.c (~value): Update.
6873 (struct value) <parent>: Now a value_ref_ptr.
6874 (value_parent, set_value_parent, value_address, value_copy):
6875 Update.
6876
466ce3ae
TT
68772018-04-06 Tom Tromey <tom@tromey.com>
6878
6879 * value.c (struct value): Add constructor, destructor, and member
6880 initializers.
6881 (allocate_value_lazy, value_decref): Update.
6882
062d818d
TT
68832018-04-06 Tom Tromey <tom@tromey.com>
6884
6885 * value.c (struct value) <released, next>: Remove.
6886 (all_values): Now a std::vector.
6887 (allocate_value_lazy): Update.
6888 (value_next): Remove.
6889 (value_mark, value_free_to_mark, release_value)
6890 (value_release_to_mark): Update.
6891
a6535de1
TT
68922018-04-06 Tom Tromey <tom@tromey.com>
6893
6894 * value.h (fetch_subexp_value, value_release_to_mark): Update.
6895 (free_value_chain): Remove.
6896 * value.c (free_value_chain): Remove.
6897 (value_release_to_mark): Return a std::vector.
6898 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
6899 std::vector.
6900 (check_condition): Update.
6901 * eval.c (fetch_subexp_value): Change "val_chain" to a
6902 std::vector.
6903 * breakpoint.c (update_watchpoint): Update.
6904 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
6905
b5621201
TT
69062018-04-06 Tom Tromey <tom@tromey.com>
6907
6908 * value.h (free_all_values): Remove.
6909 * value.c (free_all_values): Remove.
6910
4d0266a0
TT
69112018-04-06 Tom Tromey <tom@tromey.com>
6912
6913 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
6914 (value_history_chain, value_history_count): Remove.
6915 (value_history): New global.
6916 (record_latest_value, access_value_history, show_values)
6917 (preserve_values): Update.
6918
b4d61099
TT
69192018-04-06 Tom Tromey <tom@tromey.com>
6920
6921 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
6922 * varobj.c (varobj_set_display_format, varobj_set_value)
6923 (install_default_visualizer, construct_visualizer)
6924 (install_new_value, ~varobj, varobj_get_value_type)
6925 (my_value_of_variable, varobj_editable_p): Update.
6926 * c-varobj.c (c_describe_child, c_value_of_variable)
6927 (cplus_number_of_children, cplus_describe_child): Update.
6928 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
6929 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
6930 (ada_value_of_variable, ada_value_is_changeable_p): Update.
6931
9b558729
TT
69322018-04-06 Tom Tromey <tom@tromey.com>
6933
6934 * printcmd.c (last_examine_address): Change type to
6935 value_ref_ptr.
6936 (do_examine, x_command): Update.
6937
850645cf
TT
69382018-04-06 Tom Tromey <tom@tromey.com>
6939
6940 * value.c (release_value): Update.
6941 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
6942 (struct bpstats) <val>: Now a value_ref_ptr.
6943 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
6944 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
6945 (~watchpoint, print_it_watchpoint, watch_command_1)
6946 (invalidate_bp_value_on_memory_change): Update.
6947
22bc8444
TT
69482018-04-06 Tom Tromey <tom@tromey.com>
6949
6950 * varobj.c (varobj_clear_saved_item)
6951 (update_dynamic_varobj_children, install_new_value, ~varobj):
6952 Update.
6953 * value.h (value_incref): Move declaration earlier.
6954 (value_decref): Rename from value_free.
6955 (struct value_ref_policy): New.
6956 (value_ref_ptr): New typedef.
6957 (struct value_deleter): Remove.
6958 (gdb_value_up): Remove typedef.
6959 (release_value): Change return type.
6960 (release_value_or_incref): Remove.
6961 * value.c (set_value_parent): Update.
6962 (value_incref): Change return type.
6963 (value_decref): Rename from value_free.
6964 (value_free_to_mark, free_all_values, free_value_chain): Update.
6965 (release_value): Return value_ref_ptr.
6966 (release_value_or_incref): Remove.
6967 (record_latest_value, set_internalvar, clear_internalvar):
6968 Update.
6969 * stack.c (info_frame_command): Don't call value_free.
6970 * python/py-value.c (valpy_dealloc, valpy_new)
6971 (value_to_value_object): Update.
6972 * printcmd.c (do_examine): Update.
6973 * opencl-lang.c (lval_func_free_closure): Update.
6974 * mi/mi-main.c (register_changed_p): Don't call value_free.
6975 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
6976 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
6977 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
6978 value_free.
6979 * guile/scm-value.c (vlscm_free_value_smob)
6980 (vlscm_scm_from_value): Update.
6981 * frame.c (frame_register_unwind, frame_unwind_register_signed)
6982 (frame_unwind_register_unsigned, get_frame_register_bytes)
6983 (put_frame_register_bytes): Don't call value_free.
6984 * findvar.c (address_from_register): Don't call value_free.
6985 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
6986 * dwarf2loc.c (entry_data_value_free_closure)
6987 (value_of_dwarf_reg_entry, free_pieced_value_closure)
6988 (dwarf2_evaluate_loc_desc_full): Update.
6989 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
6990 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
6991 (~watchpoint, watch_command_1)
6992 (invalidate_bp_value_on_memory_change): Update.
6993 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
6994
7f8a5d38
SM
69952018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
6996
6997 PR gdb/23022
6998 * warning.m4: Add -Wno-error=deprecated-register.
6999 * configure: Re-generate.
7000
8a76bd3b
TT
70012018-04-05 Tom Tromey <tom@tromey.com>
7002
7003 * linespec.h: Remove include of "vec.h".
7004
8e8d776e
TT
70052018-04-05 Tom Tromey <tom@tromey.com>
7006
7007 * linespec.c (typep): Remove typedef.
7008 (find_methods, find_superclass_methods): Take a std::vector.
7009 (find_method): Use std::vector.
7010
9b2f8581
TT
70112018-04-05 Tom Tromey <tom@tromey.com>
7012
7013 * utils.c (compare_strings): Remove.
7014 * utils.h (compare_strings): Remove.
7015 * objc-lang.h (find_imps): Update.
7016 * objc-lang.c (find_methods): Take a std::vector.
7017 (uniquify_strings, find_imps): Likewise.
7018 * linespec.c (find_methods): Take a std::vector.
7019 (decode_objc): Use std::vector.
7020 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
7021 a std::vector.
7022 (find_method, find_function_symbols): Use std::vector.
7023
459a2e4c
TT
70242018-04-05 Tom Tromey <tom@tromey.com>
7025
7026 * completer.c (completion_tracker::completion_tracker): Remove
7027 cast.
7028 (completion_tracker::discard_completions): Likewise.
7029 * breakpoint.c (ambiguous_names_p): Remove cast.
7030 * ada-lang.c (_initialize_ada_language): Remove cast.
7031 * utils.h (streq): Update.
7032 (streq_hash): Add new declaration.
7033 * utils.c (streq): Return bool.
7034 (streq_hash): New function.
7035
9be2c17a
TT
70362018-04-05 Tom Tromey <tom@tromey.com>
7037
7038 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
7039 Remove a string copy.
7040
f73c6ece
TT
70412018-04-05 Tom Tromey <tom@tromey.com>
7042
7043 * linespec.c (filter_results): Use std::vector.
7044 (decode_line_2, decode_line_full): Update.
7045
53a0f8a2
TT
70462018-04-05 Tom Tromey <tom@tromey.com>
7047
7048 * linespec.c (canonical_to_fullform): Return std::string.
7049 (filter_results): Update.
7050 (struct decode_line_2_item): Add constructor.
7051 <fullform, displayform>: Now std::string.
7052 (decode_line_2_compare_items): Now a std::sort comparator.
7053 (decode_line_2): Update.
7054
a5b5adf5
TT
70552018-04-05 Tom Tromey <tom@tromey.com>
7056
7057 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
7058 (unexpected_linespec_error): Update.
7059 (linespec_parse_basic, parse_linespec): Update.
7060
6a307fc5
TT
70612018-04-05 Tom Tromey <tom@tromey.com>
7062
7063 * linespec.c (linespec_parse_basic): Reindent.
7064
41c1efc6
TT
70652018-04-05 Tom Tromey <tom@tromey.com>
7066
7067 * minsyms.h (iterate_over_minimal_symbols): Update.
7068 * minsyms.c (iterate_over_minimal_symbols): Take a
7069 gdb::function_view.
7070 * linespec.c (struct collect_minsyms): Remove.
7071 (compare_msyms): Now a std::sort comparator.
7072 (add_minsym): Add parameters.
7073 (search_minsyms_for_name): Update. Use std::vector.
7074
c5edbf3d
TT
70752018-04-03 Tom Tromey <tom@tromey.com>
7076
7077 * mipsread.c (read_alphacoff_dynamic_symtab): Use
7078 gdb::byte_vector.
7079
b39efc48
WP
70802018-04-02 Weimin Pan <weimin.pan@oracle.com>
7081
7082 * MAINTAINERS (Write After Approval): Add Weimin Pan.
7083
121ad66c 70842018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
7085
7086 PR gdb/16959
7087 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
7088 printing static type.
7089
09473be8
TT
70902018-04-01 Tom Tromey <tom@tromey.com>
7091
7092 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
7093 (rs6000_xfer_shared_libraries): Update.
7094
ec1f2d91
SM
70952018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7096
7097 * common/gdb_vecs.h (char_ptr): Remove.
7098 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
7099
d8611974
SM
71002018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
7101
7102 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
7103 with std::vector.
7104 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
7105
a18ba4e4
SM
71062018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
7107
7108 * tracepoint.h (struct uploaded_tp): Initialize fields.
7109 <actions, step_actions, cmd_strings>: Change type to
7110 std::vector<char *>.
7111 * tracepoint.c (get_uploaded_tp): Allocate with new.
7112 (free_uploaded_tps): Free with delete.
7113 (parse_tracepoint_definition): Adjust to std::vector change.
7114 * breakpoint.c (read_uploaded_action): Likewise.
7115 (create_tracepoint_from_upload): Likewise.
7116 * ctf.c (ctf_write_uploaded_tp): Likewise.
7117 (SET_ARRAY_FIELD): Likewise.
7118 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
7119
a7961323
TT
71202018-03-30 Tom Tromey <tom@tromey.com>
7121
7122 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
7123 std::unique_ptr.
7124 (svr4_keep_data_in_core): Update.
7125 (svr4_read_so_list): Update.
7126
e83e4e24
TT
71272018-03-30 Tom Tromey <tom@tromey.com>
7128
7129 * windows-nat.c (handle_output_debug_string, handle_exception):
7130 Update.
7131 * target.h (target_read_string): Update.
7132 * target.c (target_read_string): Change "string" to
7133 unique_xmalloc_ptr.
7134 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7135 Update.
7136 * solib-frv.c (frv_current_sos): Update.
7137 * solib-dsbt.c (dsbt_current_sos): Update.
7138 * solib-darwin.c (darwin_current_sos): Update.
7139 * linux-thread-db.c (inferior_has_bug): Update.
7140 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
7141 Update. Remove alloca.
7142 * ada-lang.c (ada_main_name): Update.
7143
263db9a1
TT
71442018-03-30 Tom Tromey <tom@tromey.com>
7145
7146 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
7147 (struct dwo_file_deleter): New.
7148 (dwo_file_up): New typedef.
7149 (open_and_init_dwo_file): Use dwo_file_up.
7150 (free_dwo_file_cleanup): Remove.
7151
5dafb3d1
TT
71522018-03-30 Tom Tromey <tom@tromey.com>
7153
7154 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
7155 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
7156
11ed8cad
TT
71572018-03-30 Tom Tromey <tom@tromey.com>
7158
7159 * dwarf2read.c (class free_cached_comp_units): New class.
7160 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
7161 (free_cached_comp_units): Remove function.
7162
9ae79dac
TT
71632018-03-30 Tom Tromey <tom@tromey.com>
7164
7165 * utils.h (make_cleanup_unpush_target): Remove.
7166 * inf-ptrace.c (struct target_unpusher): New.
7167 (target_unpush_up) New typedef.
7168 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
7169 target_unpush_up.
7170 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
7171
5aa89276
TT
71722018-03-27 Tom Tromey <tom@tromey.com>
7173
7174 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
7175
1dbeed45
TT
71762018-03-27 Pedro Alves <palves@redhat.com>
7177 Tom Tromey <tom@tromey.com>
7178
7179 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
7180 destructor. Now a class.
7181 (gdb_readline_wrapper_cleanup): Remove function.
7182 (gdb_readline_wrapper): Remove cleanups.
7183
c819b2c0
TT
71842018-03-27 Tom Tromey <tom@tromey.com>
7185
7186 * typeprint.h (struct type_print_options) <local_typedefs,
7187 global_typedefs>: Remove "struct" keyword.
7188 (class typedef_hash_table): New class.
7189 (recursively_update_typedef_hash, add_template_parameters)
7190 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
7191 (find_typedef_in_hash): Don't declare.
7192 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
7193 (typedef_hash_table::recursively_update): Rename from
7194 recursively_update_typedef_hash. Now a member.
7195 (typedef_hash_table::add_template_parameters): Rename from
7196 add_template_parameters. Now a member.
7197 (typedef_hash_table::typedef_hash_table): Now a constructor;
7198 rename from create_typedef_hash.
7199 (typedef_hash_table::~typedef_hash_table): Now a destructor;
7200 rename from free_typedef_hash.
7201 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
7202 (do_free_global_table): Remove.
7203 (typedef_hash_table::typedef_hash_table): New constructor; renamed
7204 from copy_type_recursive.
7205 (create_global_typedef_table): Remove.
7206 (typedef_hash_table::find_global_typedef): Now a member of
7207 typedef_hash_table.
7208 (typedef_hash_table::find_typedef): Rename from
7209 find_typedef_in_hash; now a member.
7210 (whatis_exp): Update.
7211 * extension.h (struct ext_lang_type_printers): Add constructor and
7212 destructor.
7213 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
7214 declare.
7215 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
7216 Now a constructor; rename from start_ext_lang_type_printers.
7217 (ext_lang_type_printers): Now a destructor; rename from
7218 free_ext_lang_type_printers.
7219 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
7220 Update.
7221 (c_type_print_base_struct_union): Update. Remove cleanups.
7222
608219fb
TT
72232018-03-27 Tom Tromey <tom@tromey.com>
7224
7225 * dwarf-index-write.c: Include <cmath>.
7226
3fcded8f
JB
72272018-03-27 Joel Brobecker <brobecker@adacore.com>
7228
7229 * NEWS: Add entry describing new "set|show varsize-limit" command.
7230 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
7231 command.
7232 * printcmd.c (_initialize_printcmd): Add "set var" alias of
7233 "set variable".
7234
cd4fb1b2
SM
72352018-03-27 Simon Marchi <simon.marchi@ericsson.com>
7236
7237 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
7238 dwarf-index-write.c
7239 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
7240 * dwarf-index-common.c: New file.
7241 * dwarf-index-common.h: New file.
7242 * dwarf-index-write.c: New file.
7243 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
7244 (struct dwarf2_section_info): Move from here.
7245 (dwarf2_section_info_def): Likewise.
7246 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
7247 (offset_type): Likewise.
7248 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
7249 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
7250 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
7251 (byte_swap): Likewise.
7252 (MAYBE_SWAP): Likewise.
7253 (dwarf2_per_cu_ptr): Likewise.
7254 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
7255 (struct tu_stats): Likewise.
7256 (struct dwarf2_per_objfile): Likewise.
7257 (struct dwarf2_per_cu_data): Likewise.
7258 (struct signatured_type): Likewise.
7259 (sig_type_ptr): Likewise.
7260 (DEF_VEC_P (sig_type_ptr)): Likewise.
7261 (INDEX4_SUFFIX): Likewise.
7262 (INDEX5_SUFFIX): Likewise.
7263 (DEBUG_STR_SUFFIX): Likewise.
7264 (dwarf2_read_section): Make non-static.
7265 (mapped_index_string_hash): Move from here.
7266 (dwarf5_djb_hash): Likewise.
7267 (file_write): Likewise.
7268 (class data_buf): Likewise.
7269 (struct symtab_index_entry): Likewise.
7270 (struct mapped_symtab): Likewise.
7271 (find_slot): Likewise.
7272 (hash_expand): Likewise.
7273 (add_index_entry): Likewise.
7274 (uniquify_cu_indices): Likewise.
7275 (class c_str_view): Likewise.
7276 (class c_str_view_hasher): Likewise.
7277 (class vector_hasher): Likewise.
7278 (write_hash_table): Likewise.
7279 (psym_index_map): Likewise.
7280 (struct addrmap_index_data): Likewise.
7281 (add_address_entry): Likewise.
7282 (add_address_entry_worker): Likewise.
7283 (write_address_map): Likewise.
7284 (symbol_kind): Likewise.
7285 (write_psymbols): Likewise.
7286 (struct signatured_type_index_data): Likewise.
7287 (write_one_signatured_type): Likewise.
7288 (recursively_count_psymbols): Likewise.
7289 (recursively_write_psymbols): Likewise.
7290 (class debug_names): Likewise.
7291 (check_dwarf64_offsets): Likewise.
7292 (psyms_seen_size): Likewise.
7293 (write_gdbindex): Likewise.
7294 (write_debug_names): Likewise.
7295 (assert_file_size): Likewise.
7296 (write_psymtabs_to_index): Likewise.
7297 (save_gdb_index_command): Likewise.
7298 (_initialize_dwarf2_read): Don't register the "save gdb-index"
7299 command.
7300 * dwarf2read.h: New file.
7301
59cc4834
JB
73022018-03-27 Joel Brobecker <brobecker@adacore.com>
7303
7304 PR gdb/22670
7305 * dwarf2read.c (dwarf2_physname): Do not return the demangled
7306 symbol name if the CU's language stores symbol names in linkage
7307 format.
7308 * language.h (struct language_defn)
7309 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
7310 all instances of this struct.
7311
67501539
TT
73122018-03-26 Tom Tromey <tom@tromey.com>
7313
7314 * stack.c (backtrace_command_1): Remove verbose code.
7315
76c939ac
TT
73162018-03-26 Tom Tromey <tom@tromey.com>
7317
7318 * python/py-framefilter.c (py_print_type): Don't catch
7319 exceptions. Return void.
7320 (py_print_value): Likewise.
7321 (py_print_single_arg): Likewise.
7322 (enumerate_args): Don't catch exceptions.
7323 (py_print_args): Likewise.
7324 (py_print_frame): Likewise.
7325 (gdbpy_apply_frame_filter): Catch exceptions here.
7326
9507b29c
TT
73272018-03-26 Tom Tromey <tom@tromey.com>
7328
7329 * stack.c (_initialize_stack): Remove trailing newlines from help
7330 text. Add "Usage" line to "backtrace" help.
7331
eb68e487
TT
73322018-03-26 Tom Tromey <tom@tromey.com>
7333
7334 PR python/16486:
7335 * python/py-framefilter.c (py_print_args): Call wrap_hint.
7336
1f111921
TT
73372018-03-26 Tom Tromey <tom@tromey.com>
7338
7339 * python/py-framefilter.c (py_print_single_arg): Return
7340 EXT_LANG_BT_ERROR from catch.
7341
fb7eb8b5
TT
73422018-03-26 Tom Tromey <tom@tromey.com>
7343
7344 PR backtrace/15584:
7345 * stack.c (backtrace_command_1): Move some code into no-filters
7346 "if".
7347
4ca59a9f
TT
73482018-03-26 Tom Tromey <tom@tromey.com>
7349
7350 * python/py-framefilter.c (throw_quit_or_print_exception): New
7351 function.
7352 (gdbpy_apply_frame_filter): Use it.
7353
92256134
TT
73542018-03-26 Tom Tromey <tom@tromey.com>
7355
7356 PR cli/17716:
7357 * python/py-framefilter.c (py_print_type, py_print_value)
7358 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
7359 RETURN_MASK_ERROR.
7360
7a630bc2
TT
73612018-03-26 Tom Tromey <tom@tromey.com>
7362
7363 * python/py-framefilter.c (enumerate_args): Use
7364 gdb::unique_xmalloc_ptr.
7365
63283d4a
TT
73662018-03-26 Tom Tromey <tom@tromey.com>
7367
7368 * python/py-framefilter.c (py_print_frame): Return
7369 EXT_LANG_BT_OK.
7370 (gdbpy_apply_frame_filter): Update comment.
7371 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
7372 Remove.
7373 <EXT_LANG_BT_NO_FILTERS>: Change value.
7374
978d6c75
TT
73752018-03-26 Tom Tromey <tom@tromey.com>
7376
7377 PR backtrace/15582:
7378 * stack.c (backtrace_command): Parse "hide" argument.
7379 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
7380 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
7381 constant.
7382
1cf7e640
TT
73832018-03-26 Tom Tromey <tom@tromey.com>
7384
7385 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
7386 add "flags".
7387 (backtrace_command): Remove "fulltrace", add "flags".
7388
ea3b0687
TT
73892018-03-26 Tom Tromey <tom@tromey.com>
7390
7391 * stack.c (backtrace_command): Rewrite command line parsing.
7392
9f034d75
SM
73932018-03-26 Simon Marchi <simon.marchi@ericsson.com>
7394
7395 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
7396
ce1459e5
SM
73972018-03-26 Simon Marchi <simon.marchi@ericsson.com>
7398
7399 * filename-seen-cache.h: Add include guard.
7400
4f7ae6f5
KS
74012018-03-26 Keith Seitz <keiths@redhat.com>
7402
7403 * symfile.c (place_section): Remove "struct" from section_addr_info
7404 in comment.
7405 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
7406 "struct" keyword from section_addr_info.
7407
5cd3e386
AH
74082018-03-26 Alan Hayward <alan.hayward@arm.com>
7409
7410 * regformats/regdef.h (reg): Add constructors.
7411
3e5ef9a4
PA
74122018-03-25 Pedro Alves <palves@redhat.com>
7413
7414 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
7415 if then/else bodies in var_func_name extraction.
7416
c88d2fcc 74172018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
7418
7419 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
7420 lookup_minimal_symbol() to find symbol entry.
7421 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
7422
b7fee5a3
KS
74232018-03-23 Keith Seitz <keiths@redhat.com>
7424
7425 PR c++/22968
7426 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
7427 nested type definitions for C++, too.
7428
2cc9b304
TT
74292018-03-23 Tom Tromey <tom@tromey.com>
7430
7431 * machoread.c (struct oso_el): Add a constructor. Don't define as
7432 a typedef.
7433 (macho_register_oso): Remove.
7434 (macho_symtab_read): Take a std::vector.
7435 (oso_el_compare_name): Now a std::sort comparator.
7436 (macho_symfile_read_all_oso): Take a std::vector.
7437 (macho_symfile_read): Use std::vector. Remove cleanups.
7438
a2b2bc12
TT
74392018-03-22 Tom Tromey <tom@tromey.com>
7440
7441 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
7442 (record_full_goto_bookmark): Use std::string.
7443
7a8f494c
PFC
74442018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7445
7446 PR tdep/18295
7447 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
7448 a single mask.
7449
dd6d677f
PFC
74502018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7451
7452 * rs6000-tdep.c (store_insn_p): New function.
7453 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
7454 and cr_reg to their unshifted values. Use store_insn_p to
7455 match LR saves using either R1 or fdata->alloca_reg. Use
7456 store_insn_p to match CR saves. Set alloca_reg_offset
7457 when alloca_reg and framep are set. Remove lr_reg shift
7458 when assigning to fdata->lr_register.
7459
26d6cec4
AA
74602018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
7461
7462 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
7463 command line args instead of emitting a warning.
7464
5d9310c4
SM
74652018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
7466
7467 * tracepoint.h (struct static_tracepoint_marker): Initialize
7468 fields, define default constructor, move constructor and move
7469 assignment, disable the rest.
7470 <str_id, extra>: Make std::string.
7471 (release_static_tracepoint_marker): Remove.
7472 (free_current_marker): Remove.
7473 * tracepoint.c (free_current_marker): Remove.
7474 (parse_static_tracepoint_marker_definition): Adjust to
7475 std::string, use new hex2str overload.
7476 (release_static_tracepoint_marker): Remove.
7477 (print_one_static_tracepoint_marker): Get marker by reference
7478 and adjust to std::string.
7479 (info_static_tracepoint_markers_command): Adjust to std::vector
7480 changes
7481 * target.h (static_tracepoint_marker_p): Remove typedef.
7482 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
7483 (struct target_ops) <to_static_tracepoint_marker_at>: Return
7484 bool.
7485 <to_static_tracepoint_markers_by_strid>: Return std::vector.
7486 * target-debug.h
7487 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
7488 (target_debug_print_std_vector_static_tracepoint_marker): New.
7489 (target_debug_print_struct_static_tracepoint_marker_p): Rename
7490 to...
7491 (target_debug_print_static_tracepoint_marker_p): ... this.
7492 * target-delegates.c: Re-generate.
7493 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
7494 Make std::string.
7495 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
7496 (decode_static_tracepoint_spec): Adjust to std::vector.
7497 (tracepoint_print_one_detail): Adjust to std::string.
7498 (strace_marker_decode_location): Adjust to std::string.
7499 (update_static_tracepoint): Adjust to std::string, remove call
7500 to release_static_tracepoint_marker.
7501 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7502 Adjust to std::vector.
7503 * remote.c (remote_static_tracepoint_marker_at): Return bool.
7504 (remote_static_tracepoint_markers_by_strid): Adjust to
7505 std::vector.
7506 * common/rsp-low.h (hex2str): New overload with explicit count
7507 of bytes.
7508 * common/rsp-low.c (hex2str): New overload with explicit count
7509 of bytes.
7510 * unittests/rsp-low-selftests.c (test_hex2str): New function.
7511 (_initialize_rsp_low_selftests): Add test_hex2str test.
7512 * unittests/tracepoint-selftests.c
7513 (test_parse_static_tracepoint_marker_definition): Adjust to
7514 std::string.
7515
62c222b6
SM
75162018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
7517
7518 * tracepoint.c (parse_static_tracepoint_marker_definition):
7519 Consider case where the definition is followed by more
7520 definitions.
7521 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7522 tracepoint-selftests.c.
7523 * unittests/tracepoint-selftests.c: New.
7524
7eb2418f
PFC
75252018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7526
7527 * MAINTAINERS (Write After Approval): Add Pedro Franco de
7528 Carvalho.
7529
7cbe16e9
SR
75302018-03-20 Stephen Roberts <stephen.roberts@arm.com>
7531
3d6b3b82 7532 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 7533
4ee89e90
SR
75342018-03-20 Stephen Roberts <stephen.roberts@arm.com>
7535
3d6b3b82 7536 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 7537
92630041
TT
75382018-03-19 Tom Tromey <tom@tromey.com>
7539
7540 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
7541 "IDENT" production.
7542
76727919
TT
75432018-03-19 Pedro Alves <palves@redhat.com>
7544 Tom Tromey <tom@tromey.com>
7545
7546 * unittests/observable-selftests.c: New file.
7547 * common/observable.h: New file.
7548 * observable.h: New file.
7549 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
7550 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
7551 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
7552 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
7553 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
7554 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
7555 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
7556 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
7557 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
7558 python/py-breakpoint.c, python/py-finishbreakpoint.c,
7559 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
7560 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
7561 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
7562 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
7563 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
7564 tui/tui-interp.c, valops.c: Update all users.
7565 * tui/tui-hooks.c (tui_bp_created_observer)
7566 (tui_bp_deleted_observer, tui_bp_modified_observer)
7567 (tui_inferior_exit_observer, tui_before_prompt_observer)
7568 (tui_normal_stop_observer, tui_register_changed_observer):
7569 Remove.
7570 (tui_observers_token): New global.
7571 (attach_or_detach, tui_attach_detach_observers): New functions.
7572 (tui_install_hooks, tui_remove_hooks): Use
7573 tui_attach_detach_observers.
7574 * record-btrace.c (record_btrace_thread_observer): Remove.
7575 (record_btrace_thread_observer_token): New global.
7576 * observer.sh: Remove.
7577 * observer.c: Rename to observable.c.
7578 * observable.c (namespace gdb_observers): Define new objects.
7579 (observer_debug): Move into gdb_observers namespace.
7580 (struct observer, struct observer_list, xalloc_observer_list_node)
7581 (xfree_observer_list_node, generic_observer_attach)
7582 (generic_observer_detach, generic_observer_notify): Remove.
7583 (_initialize_observer): Update.
7584 Don't include observer.inc.
7585 * Makefile.in (generated_files): Remove observer.h, observer.inc.
7586 (clean mostlyclean): Likewise.
7587 (observer.h, observer.inc): Remove targets.
7588 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
7589 (COMMON_SFILES): Use observable.c, not observer.c.
7590 * .gitignore: Remove observer.h.
7591
1cb1f3da
TT
75922018-03-18 Tom Tromey <tom@tromey.com>
7593
7594 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
7595 gdb::def_vector.
7596 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
7597
a06ab151
TT
75982018-03-17 Tom Tromey <tom@tromey.com>
7599
7600 * auto-load.c (auto_load_objfile_script_1): Use std::string.
7601
770623f7
TT
76022018-03-17 Tom Tromey <tom@tromey.com>
7603
7604 * target.c (class scoped_target_fd): New.
7605 (target_fileio_close_cleanup): Remove.
7606 (target_fileio_read_alloc_1): Use scoped_target_fd.
7607
39be3c7e
SM
76082018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
7609
7610 * silent-rules.mk: New.
7611 * Makefile.in: Include silent-rules.mk
7612 (srcdir, VPATH, top_srcdir): Move up.
7613 (COMPILE): Add ECHO_CXX.
7614 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
7615 (init.c): Add ECHO_INIT_C.
7616 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
7617 (version.c): Add ECHO_GEN.
7618 (printcmd.o): Add ECHO_CXX.
7619 (target-float.o): Add ECHO_CXX.
7620 (ada-exp.o): Add ECHO_CXX.
7621 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
7622 (insight$(EXEEXT)): Add ECHO_CXXLD.
7623 * gnulib/configure.ac: Add AM_SILENT_RULES.
7624 * gnulib/aclocal.m4: Re-generate.
7625 * gnulib/configure: Re-generate.
7626 * gnulib/import/Makefile.in: Re-generate.
7627
37e136b1
TT
76282018-03-16 Tom Tromey <tom@tromey.com>
7629
7630 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
7631 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
7632 * utils.c (do_free_section_addr_info)
7633 (make_cleanup_free_section_addr_info): Remove.
7634 * symfile.h (struct other_sections): Add constructor.
7635 (struct section_addr_info): Remove.
7636 (section_addr_info): New typedef.
7637 (struct sym_fns) <sym_offsets>: Change type of parameter.
7638 (build_section_addr_info_from_objfile)
7639 (relative_addr_info_to_section_offsets, addr_info_make_relative)
7640 (default_symfile_offsets, symbol_file_add)
7641 (symbol_file_add_from_bfd)
7642 (build_section_addr_info_from_section_table): Update.
7643 (alloc_section_addr_info, free_section_addr_info): Don't declare.
7644 * symfile.c (alloc_section_addr_info): Remove.
7645 (build_section_addr_info_from_section_table): Change return type.
7646 Update.
7647 (build_section_addr_info_from_bfd)
7648 (build_section_addr_info_from_objfile): Likewise.
7649 (free_section_addr_info): Remove.
7650 (relative_addr_info_to_section_offsets): Change type of "addrs".
7651 (addrs_section_compar): Now a std::sort comparator.
7652 (addrs_section_sort): Change return type.
7653 (addr_info_make_relative): Change type of "addrs". Update.
7654 (default_symfile_offsets, syms_from_objfile_1)
7655 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
7656 (symbol_file_add_separate): Update.
7657 (symbol_file_add): Change type of "addrs". Update.
7658 (add_symbol_file_command): Update. Remove cleanups.
7659 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
7660 cleanups.
7661 * symfile-debug.c (debug_sym_offsets): Change type of "info".
7662 * solib.c (solib_read_symbols): Update.
7663 * objfiles.c (objfile_relocate): Update. Remove cleanups.
7664 * machoread.c (macho_symfile_offsets): Update.
7665 * jit.c (jit_bfd_try_read_symtab): Update.
7666
03afa6ef
SM
76672018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
7668
7669 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7670 unittests/utils-selftests.c.
7671 * unittests/utils-selftests.c: New file.
7672
3ae9ce5d
TT
76732018-03-14 Tom Tromey <tom@tromey.com>
7674
7675 PR cli/14977:
7676 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
7677 for NULL.
7678
b8c2339b
TT
76792018-03-14 Tom Tromey <tom@tromey.com>
7680
7681 PR cli/19918:
7682 * printcmd.c (printf_pointer): Allow "-" in format.
7683
80ae639d
TT
76842018-03-14 Tom Tromey <tom@tromey.com>
7685
7686 * printcmd.c (_initialize_printcmd): Add usage to printf.
7687
0d671d99
YQ
76882018-03-14 Yao Qi <qiyao@sourceware.org>
7689
7690 * MAINTAINERS: Update my email address.
7691
b577b6af
TT
76922018-03-13 Tom Tromey <tom@tromey.com>
7693
7694 * machoread.c (macho_check_dsym): Change filenamep to a
7695 std::string*.
7696 (macho_symfile_read): Update.
7697 * symfile.c (load_command): Use std::string.
7698
89a3b63e
AB
76992018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
7700
7701 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
7702 to error message string.
7703 (riscv_register_name): Use xsnprintf instead of sprintf.
7704 (riscv_insn::fetch_instruction): Use gdb_assert instead of
7705 internal_error.
7706 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
7707 error.
7708 (riscv_push_dummy_call): Likewise.
7709
984c7238
TT
77102018-03-12 Tom Tromey <tom@tromey.com>
7711
7712 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
7713 Use gdb::byte_vector.
7714 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
7715
933522d1
YQ
77162018-03-12 Yao Qi <yao.qi@linaro.org>
7717
7718 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
7719 parameter type to readable_regcache.
7720 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
7721 the declaration.
7722
be2daae6
TT
77232018-03-11 Tom Tromey <tom@tromey.com>
7724
7725 * dwarf2read.c (struct nextfield): Add initializers.
7726 (struct nextfnfield): Remove.
7727 (struct fnfieldlist): Add initializers. Remove "length" and
7728 "head", use std::vector.
7729 (struct decl_field_list): Remove.
7730 (struct field_info): Add initializers.
7731 <fields, baseclasses>: Now std::vector.
7732 <nbaseclasses, nfnfields, typedef_field_list_count,
7733 nested_types_list_count>: Remove.
7734 (dwarf2_add_field, dwarf2_add_type_defn)
7735 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
7736 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
7737 (process_structure_scope): Update.
7738
484cf504
TT
77392018-03-11 Tom Tromey <tom@tromey.com>
7740
7741 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
7742 for use by std::sort.
7743 (build_type_psymtabs_1): Use std::vector.
7744
9bd8e0b0
EZ
77452018-03-09 Eli Zaretskii <eliz@gnu.org>
7746
7747 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
7748 and LIBMPFR in the printed configuration.
7749
5dc1a704
TT
77502018-03-08 Tom Tromey <tom@tromey.com>
7751
7752 * source.c (get_filename_and_charpos): Use scoped_fd.
7753 * nto-procfs.c (procfs_open_1): Use scoped_fd.
7754 (procfs_pidlist): Likewise.
7755 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
7756 (iterate_over_mappings): Likewise.
7757
fdf07f3a
TT
77582018-03-08 Tom Tromey <tom@tromey.com>
7759
7760 * infcall.c (struct call_return_meta_info)
7761 <stack_temporaries_enabled>: Remove.
7762 (get_call_return_value, call_function_by_hand_dummy): Update.
7763 * thread.c (disable_thread_stack_temporaries): Remove.
7764 (enable_thread_stack_temporaries): Remove.
7765 (thread_stack_temporaries_enabled_p): Return bool.
7766 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
7767 (get_last_thread_stack_temporary): Update.
7768 * eval.c (evaluate_subexp): Update.
7769 * gdbthread.h (class enable_thread_stack_temporaries): Now a
7770 class, not a function.
7771 (value_ptr, value_vec): Remove typedefs.
7772 (class thread_info) <stack_temporaries_enabled>: Now bool.
7773 <stack_temporaries>: Now a std::vector.
7774 (thread_stack_temporaries_enabled_p)
7775 (value_in_thread_stack_temporaries): Return bool.
7776
567a3e54
SM
77772018-03-08 Simon Marchi <simon.marchi@ericsson.com>
7778
7779 * remote.c (putpkt_binary): Fix omitted bytes reporting.
7780 (getpkt_or_notif_sane_1): Likewise.
7781
00b40057
SM
77822018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7783
7784 * build-id.c (build_id_to_debug_bfd): Use std::string.
7785
a8dbfd58
SM
77862018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7787
7788 * build-id.c (find_separate_debug_file_by_buildid): Return
7789 std::string.
7790 * build-id.h (find_separate_debug_file_by_buildid): Return
7791 std::string.
7792 * coffread.c (coff_symfile_read): Adjust to std::string.
7793 * elfread.c (elf_symfile_read): Adjust to std::string.
7794 * symfile.c (separate_debug_file_exists): Change parameter to
7795 std::string.
7796 (find_separate_debug_file): Return std::string.
7797 (find_separate_debug_file_by_debuglink): Return std::string.
7798 * symfile.h (find_separate_debug_file_by_debuglink): Return
7799 std::string.
7800
e6a58aa8
SM
78012018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7802
7803 * common/xml-utils.c (xml_escape_text): Move code to...
7804 (xml_escape_text_append): ... this new function.
7805 * common/xml-utils.h (xml_escape_text_append): New declaration.
7806 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
7807 New function.
7808 (_initialize_xml_utils): register test_xml_escape_text_append as
7809 a selftest.
7810
4ef0bef6
AH
78112018-03-07 Alan Hayward <alan.hayward@arm.com>
7812
7813 * defs.h: Remove MAX_REGISTER_SIZE.
7814 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
7815 asserts.
7816 * python/py-unwind.c (pyuw_sniffer): Likewise.
7817
e0d3522b
TT
78182018-03-07 Tom Tromey <tom@tromey.com>
7819
7820 * linux-tdep.c (linux_info_proc): Update.
7821 * target.h (struct target_ops) <to_fileio_readlink>: Return
7822 optional<string>.
7823 (target_fileio_readlink): Return optional<string>.
7824 * remote.c (remote_hostio_readlink): Return optional<string>.
7825 * inf-child.c (inf_child_fileio_readlink): Return
7826 optional<string>.
7827 * target.c (target_fileio_readlink): Return optional<string>.
7828
ea005f31
AB
78292018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
7830
7831 * regcache.c (cooked_read_test): Add riscv to the list of
7832 architectures that have a save_reggroup.
7833
e95a97d4
AA
78342018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
7835
7836 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
7837 value is not a dynamic class object.
7838
d8344f3d
TT
78392018-03-06 Tom Tromey <tom@tromey.com>
7840
7841 * rust-exp.y: Formatting fixes.
7842
9add17f2
AB
78432018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7844
7845 * riscv-tdep.c (riscv_register_name): Remove target description
7846 support.
7847 (riscv_gdbarch_init): Remove target description check.
7848
c9486dfe
AB
78492018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7850
7851 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
7852 comment.
7853 * riscv-tdep.h: Likewise.
7854
d74aff3d
AB
78552018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7856
7857 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
7858 (riscv_pseudo_register_write): Delete.
7859 (riscv_gdbarch_init): Remove all use of pseudo registers.
7860
7ea78b59
SM
78612018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7862
7863 * record-btrace.c (btrace_print_lines): Replace cleanup
7864 parameter with RAII equivalents.
7865 (btrace_insn_history): Replace cleanup with RAII equivalents.
7866 * ui-out.h (make_cleanup_ui_out_list_begin_end,
7867 make_cleanup_ui_out_tuple_begin_end): Remove.
7868 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
7869 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
7870 make_cleanup_ui_out_list_begin_end): Remove.
7871
53127008
SM
78722018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7873
7874 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
7875 parameter types to std::vector. Use bool.
7876 (record_btrace_wait): Replace VEC(tp_t) with
7877 std::vector<thread_info *>.
7878 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
7879
228f1508
SM
78802018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7881
7882 * record-btrace.c (record_btrace_disable_callback): Remove.
7883 (struct scoped_btrace_disable): New.
7884 (record_btrace_open): Use scoped_btrace_disable.
7885
b2970c23
AB
78862018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7887
7888 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
7889 reading values from registers.
7890
fb294655
AB
78912018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7892
7893 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
7894 where appropriate.
7895
cab5bb9d
AB
78962018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7897
7898 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
7899 change parameter type. Use GDB's print functions, and use
7900 core_addr_to_string where appropriate.
7901 (riscv_push_dummy_call): Use core_addr_to_string where
7902 appropriate, update call to riscv_print_arg_location, and reindent
7903 a few lines.
7904 (riscv_return_value): Update call to riscv_print_arg_location.
7905
dbbb1059
AB
79062018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7907 Tim Newsome <tim@sifive.com>
7908 Albert Ou <a0u@eecs.berkeley.edu>
7909 Darius Rad <darius@bluespec.com>
7910
7911 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
7912 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
7913 (ALLDEPFILES): Add riscv-tdep.c
7914 * configure.tgt: Add riscv support.
7915 * riscv-tdep.c: New file.
7916 * riscv-tdep.h: New file.
7917 * NEWS: Mention new target.
7918 * MAINTAINERS: Add entry for riscv.
7919
5dc43913
AB
79202018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7921
7922 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
7923 fields within aggregates.
7924
3dea1ef7
SM
79252018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
7926
7927 * record-btrace.c (btrace_print_lines): Change type of flags to
7928 gdb_disassembly_flags.
7929
7efba073
JB
79302018-03-04 John Baldwin <jhb@FreeBSD.org>
7931
7932 * fbsd-nat.c: Include "inf-ptrace.h".
7933 (USE_SIGTRAP_SIGINFO): Conditionally define.
7934 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
7935 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
7936 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
7937 function.
7938 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
7939 Likewise.
7940 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
7941 Likewise.
7942 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
7943 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
7944 "supports_stopped_by_hw_breakpoint" target methods.
7945
386a8676
JB
79462018-03-04 John Baldwin <jhb@FreeBSD.org>
7947
7948 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
7949 * fbsd-nat.c (debug_fbsd_nat): New variable.
7950 (show_fbsd_nat_debug): New function.
7951 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
7952 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
7953
12279366
JB
79542018-03-04 John Baldwin <jhb@FreeBSD.org>
7955
7956 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
7957 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
7958 prototype.
7959 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
7960 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
7961 method.
7962
54693cf5
SM
79632018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7964
7965 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
7966 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
7967
ccb2231c
SM
79682018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7969
7970 * charset.c (struct charset_vector): New.
7971 (charsets): Change type to charset_vector.
7972 (find_charset_names): Adjust.
7973 (add_one): Adjust.
7974 (_initialize_charset): Adjust.
7975
6fb16ce6
SM
79762018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7977
7978 * progspace.h (struct program_space) <deleted_solibs>: Change
7979 type to std::vector<std::string>.
7980 * progspace.c (clear_program_space_solib_cache): Adjust.
7981 * breakpoint.c (print_solib_event): Adjust.
7982 (check_status_catch_solib): Adjust.
7983 * solib.c (update_solib_list): Adjust.
7984 * ui-out.h (class ui_out) <field_string>: New overload.
7985 * ui-out.c (ui_out::field_string): New overload.
7986
564b1e3f
SM
79872018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7988
7989 * progspace.h (struct program_space): Add constructor and
7990 destructor, initialize fields.
7991 (add_program_space): Remove.
7992 * progspace.c (add_program_space): Rename to...
7993 (program_space::program_space): ... this.
7994 (release_program_space): Rename to...
7995 (program_space::~program_space): ... this.
7996 (delete_program_space): Use delete to delete program_space.
7997 (initialize_progspace): Use new to allocate program_space.
7998 * inferior.c (add_inferior_with_spaces): Likewise.
7999 (clone_inferior_command): Likewise.
8000 * infrun.c (follow_fork_inferior): Likewise.
8001 (handle_vfork_child_exec_or_exit): Likewise.
8002
e80aaf61
SM
80032018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8004
8005 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
8006 (delim_string_to_char_ptr_vec): Return std::vector of
8007 gdb::unique_xmalloc_ptr.
8008 (dirnames_to_char_ptr_vec_append): Take std::vector of
8009 gdb::unique_xmalloc_ptr.
8010 (dirnames_to_char_ptr_vec): Return std::vector of
8011 gdb::unique_xmalloc_ptr.
8012 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
8013 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
8014 (delim_string_to_char_ptr_vec): Return an std::vector of
8015 gdb::unique_xmalloc_ptr, adjust the code.
8016 (dirnames_to_char_ptr_vec_append): Take an std::vector of
8017 gdb::unique_xmalloc_ptr, adjust the code.
8018 (dirnames_to_char_ptr_vec): Return an std::vector of
8019 gdb::unique_xmalloc_ptr, adjust the code.
8020 * auto-load.c (auto_load_safe_path_vec): Change type to
8021 std::vector of gdb::unique_xmalloc_ptr.
8022 (auto_load_expand_dir_vars): Return an std::vector of
8023 gdb::unique_xmalloc_ptr, adjust the code.
8024 (auto_load_safe_path_vec_update): Adjust.
8025 (filename_is_in_auto_load_safe_path_vec): Adjust.
8026 (auto_load_objfile_script_1): Adjust.
8027 * build-id.c (build_id_to_debug_bfd): Adjust.
8028 * linux-thread-db.c (thread_db_load_search): Adjust.
8029 * source.c (add_path): Adjust.
8030 (openp): Adjust.
8031 * symfile.c (find_separate_debug_file): Adjust.
8032 * utils.c (do_free_char_ptr_vec): Remove.
8033 (make_cleanup_free_char_ptr_vec): Remove.
8034
ab818ade
SDJ
80352018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
8036
8037 PR gdb/22907
8038 * common/pathstuff.c: Conditionally include "<windows.h>".
8039
e1e6f073
GS
80402018-03-01 Georg Sauthoff <mail@georg.so>
8041
8042 PR gdb/22888
8043 * gcore.in: Quote variables and switch interpreter to bash.
8044
c7b15a66
TT
80452018-03-01 Tom Tromey <tom@tromey.com>
8046
8047 * dwarf2read.c (alloc_discriminant_info): Fix default_index
8048 assertion. Add assertion for discriminant_index.
8049 (quirk_rust_enum): Use correct base type name in univariant case.
8050
0cb7c7b0
SM
80512018-03-01 Simon Marchi <simon.marchi@ericsson.com>
8052
8053 * record.c (get_call_history_modifiers): Return a
8054 record_print_flags.
8055 (cmd_record_call_history): Adjust.
8056 * record-btrace.c (record_btrace_call_history): Adjust.
8057 (record_btrace_call_history_range): Adjust.
8058 (record_btrace_call_history_from): Adjust.
8059 * target-debug.h (target_debug_print_record_print_flags): New.
8060 * target-delegates.c: Re-generate.
8061 * target.c (target_call_history): Change flags type.
8062 (target_call_history_from): Likewise.
8063 (target_call_history_range): Likewise.
8064 * target.h (struct target_ops) <target_call_history>: Likewise.
8065 (target_call_history_from): Likewise.
8066 (target_call_history_range): Likewise.
8067
25e3c82c
SDJ
80682018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
8069 Simon Marchi <simon.marchi@polymtl.ca>
8070
8071 * common/common-utils.c: Include "sys/stat.h".
8072 (is_regular_file): Move here from "source.c"; change return
8073 type to "bool".
8074 * common/common-utils.h (is_regular_file): New prototype.
8075 * common/pathstuff.c (contains_dir_separator): New function.
8076 * common/pathstuff.h (contains_dir_separator): New prototype.
8077 * source.c: Don't include "sys/stat.h".
8078 (is_regular_file): Move to "common/common-utils.c".
8079
b4987c95
SDJ
80802018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
8081
8082 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
8083 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
8084 * auto-load.c: Include "common/pathstuff.h".
8085 * common/common-def.h (current_directory): Move here.
8086 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
8087 function.
8088 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
8089 prototype.
8090 * common/pathstuff.c: New file.
8091 * common/pathstuff.h: New file.
8092 * compile/compile.c: Include "common/pathstuff.h".
8093 * defs.h (current_directory): Move to "common/common-defs.h".
8094 * dwarf2read.c: Include "common/pathstuff.h".
8095 * exec.c: Likewise.
8096 * guile/scm-safe-call.c: Likewise.
8097 * linux-thread-db.c: Likewise.
8098 * main.c: Likewise.
8099 * nto-tdep.c: Likewise.
8100 * objfiles.c: Likewise.
8101 * source.c: Likewise.
8102 * symtab.c: Likewise.
8103 * utils.c: Include "common/pathstuff.h".
8104 (gdb_realpath): Move to "common/pathstuff.c".
8105 (gdb_realpath_keepfile): Likewise.
8106 (gdb_abspath): Likewise.
8107 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
8108 (gdb_realpath_keepfile): Likewise.
8109 (gdb_abspath): Likewise.
8110
f169cfdc
JB
81112018-02-28 John Baldwin <jhb@FreeBSD.org>
8112
8113 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
8114 wildcard process pid for super_resume for kernels with a
8115 specific bug.
8116
e05cac70
PM
81172018-02-27 Phil Muldoon <pmuldoon@redhat.com>
8118
8119 * compile/compile.c (get_args): Add additional comments
8120 explaining function.
8121
55089490
TT
81222018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
8123 Tom Tromey <tom@tromey.com>
8124
8125 * target.h (memory_write_request_s): Remove typedef. Don't define
8126 VEC.
8127 (target_write_memory_blocks): Change argument to std::vector.
8128 (struct memory_write_request): Add constructor.
8129 * target-memory.c (compare_block_starting_address): Return bool.
8130 Change argument types.
8131 (claim_memory): Change arguments to use std::vector.
8132 (split_regular_and_flash_blocks, blocks_to_erase)
8133 (compute_garbled_blocks): Likewise.
8134 (cleanup_request_data, cleanup_write_requests_vector): Remove.
8135 (target_write_memory_blocks): Change argument to std::vector.
8136 * symfile.c (struct load_section_data): Add constructor and
8137 destructor. Use std::vector for "requests".
8138 (struct load_progress_data): Add initializers.
8139 (load_section_callback): Update. Use "new".
8140 (clear_memory_write_data): Remove.
8141 (generic_load): Update.
8142
0c305b61
AH
81432018-02-27 Alan Hayward <alan.hayward@arm.com>
8144
8145 * arch/aarch64.h: Use common/tdesc.h.
8146
c5196c92
MR
81472018-02-26 Maciej W. Rozycki <macro@mips.com>
8148
8149 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
8150 architecture with a 64-bit ABI.
8151
37c33887
MR
81522018-02-26 Maciej W. Rozycki <macro@mips.com>
8153
8154 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
8155 ahead of target description loading.
8156
d4dd3282
TT
81572018-02-26 Tom Tromey <tom@tromey.com>
8158
8159 * stack.c (backtrace_command_1): Update.
8160 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
8161 of "flags".
8162 * python/py-framefilter.c (py_print_frame)
8163 (gdbpy_apply_frame_filter): Change type of "flags".
8164 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
8165 of "flags".
8166 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
8167 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
8168 * extension.h (enum frame_filter_flag): Rename from
8169 frame_filter_flags.
8170 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
8171 (apply_ext_lang_frame_filter): Change type of "flags".
8172 * extension.c (apply_ext_lang_frame_filter): Change type of
8173 "flags".
8174 * extension-priv.h (struct extension_language_ops)
8175 <apply_frame_filter>: Change type of "flags".
8176
6893c19a
TT
81772018-02-26 Tom Tromey <tom@tromey.com>
8178
8179 PR python/16497:
8180 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
8181 off-by-one in py_end computation.
8182 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
8183 PRINT_MORE_FRAMES.
8184 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
8185 constant.
8186
2ddeaf8a
TT
81872018-02-26 Tom Tromey <tom@tromey.com>
8188
8189 * dwarf2read.c (struct variant_field): New.
8190 (struct nextfield) <variant>: New field.
8191 (dwarf2_add_field): Handle DW_TAG_variant_part.
8192 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
8193 discriminated union.
8194 (read_structure_type): Handle DW_TAG_variant_part.
8195 (handle_struct_member_die): New function, extracted from
8196 process_structure_scope. Handle DW_TAG_variant.
8197 (process_structure_scope): Handle discriminated unions. Call
8198 handle_struct_member_die.
8199
c9317f21
TT
82002018-02-26 Tom Tromey <tom@tromey.com>
8201
8202 * rust-lang.h (rust_last_path_segment): Declare.
8203 * rust-lang.c (rust_last_path_segment): Now public. Change
8204 contract.
8205 (struct disr_info): Remove.
8206 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
8207 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
8208 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
8209 (rust_enum_p, rust_enum_variant): New function.
8210 (rust_underscore_fields): Remove "offset" parameter.
8211 (rust_print_enum): New function.
8212 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
8213 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
8214 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
8215 enums.
8216 (rust_internal_print_type): New function, from rust_print_type.
8217 Remove enum code.
8218 (rust_print_type): Call rust_internal_print_type.
8219 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
8220 Update enum handling.
8221 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
8222 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
8223 (rust_union_quirks): New functions.
8224 (process_full_comp_unit, process_full_type_unit): Call
8225 rust_union_quirks.
8226 (process_structure_scope): Update rust_unions if necessary.
8227
7c22600a
TT
82282018-02-26 Tom Tromey <tom@tromey.com>
8229
8230 * value.h (value_union_variant): Declare.
8231 * valops.c (value_union_variant): New function.
8232 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
8233 (struct discriminant_info): New.
8234 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
8235 enumerator.
8236 (struct main_type) <flag_discriminated_union>: New field.
8237
15ce8941
TT
82382018-02-26 Tom Tromey <tom@tromey.com>
8239
8240 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8241 unittests/unpack-selftests.c.
8242 * unittests/unpack-selftests.c: New file.
8243 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
8244
48fbe735
YQ
82452018-02-26 Yao Qi <yao.qi@linaro.org>
8246
8247 * dwarf2read.c (struct partial_die_info) <read>: New method.
8248 (read_partial_die): Remove the declaration.
8249 (load_partial_dies): Update.
8250 (partial_die_info::partial_die_info):
8251 (read_partial_die): Change it to partial_die_info::read.
8252
52356b79
YQ
82532018-02-26 Yao Qi <yao.qi@linaro.org>
8254
8255 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
8256 (fixup_partial_die): Remove declaration.
8257 (scan_partial_symbols): Update.
8258 (partial_die_parent_scope): Likewise.
8259 (partial_die_full_name): Likewise.
8260 (fixup_partial_die): Change it to partial_die_info::fixup.
8261
35cc7ed7
YQ
82622018-02-26 Yao Qi <yao.qi@linaro.org>
8263
8264 * dwarf2read.c (read_partial_die): Update the declaration.
8265 (load_partial_dies): Caller update.
8266 (read_partial_die): Remove one argument abbrev_len.
8267
6f06d47b
YQ
82682018-02-26 Yao Qi <yao.qi@linaro.org>
8269
8270 * dwarf2read.c (struct partial_die_info): Add ctor, delete
8271 assignment operator.
8272 (load_partial_dies): Use ctor and copy ctor.
8273 (read_partial_die): Update.
8274 (dwarf2_cu::find_partial_die): Use ctor.
8275
d590ff25
YQ
82762018-02-26 Yao Qi <yao.qi@linaro.org>
8277
8278 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
8279 (find_partial_die_in_comp_unit): Change it to
8280 dwarf2_cu::find_partial_die.
8281 (find_partial_die): Update.
8282
fd0a254f
YQ
82832018-02-26 Yao Qi <yao.qi@linaro.org>
8284
8285 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
8286 is NULL.
8287
cd9983dd
YQ
82882018-02-26 Yao Qi <yao.qi@linaro.org>
8289
8290 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
8291
f46cd62a
AH
82922018-02-26 Alan Hayward <alan.hayward@arm.com>
8293
8294 * arch/amd64.h: Use common/tdesc.h.
8295 * arch/i386.c: Likewise.
8296 * arch/i386.h: Likewise.
8297 * arch/tic6x.c: Likewise.
8298 * arch/tdesc.h: Move file from here...
8299 * common/tdesc.h: ...to here.
8300 * features/aarch64-core.c: Regenerate.
8301 * features/aarch64-fpu.c: Regenerate.
8302 * features/i386/32bit-avx.c: Regenerate.
8303 * features/i386/32bit-avx512.c: Regenerate.
8304 * features/i386/32bit-core.c: Regenerate.
8305 * features/i386/32bit-linux.c: Regenerate.
8306 * features/i386/32bit-mpx.c: Regenerate.
8307 * features/i386/32bit-pkeys.c: Regenerate.
8308 * features/i386/32bit-sse.c: Regenerate.
8309 * features/i386/64bit-avx.c: Regenerate.
8310 * features/i386/64bit-avx512.c: Regenerate.
8311 * features/i386/64bit-core.c: Regenerate.
8312 * features/i386/64bit-linux.c: Regenerate.
8313 * features/i386/64bit-mpx.c: Regenerate.
8314 * features/i386/64bit-pkeys.c: Regenerate.
8315 * features/i386/64bit-segments.c: Regenerate.
8316 * features/i386/64bit-sse.c: Regenerate.
8317 * features/i386/x32-core.c: Regenerate.
8318 * features/tic6x-c6xp.c: Regenerate.
8319 * features/tic6x-core.c: Regenerate.
8320 * features/tic6x-gp.c: Regenerate.
8321 * target-descriptions.c: Use common/tdesc.h.
8322 * target-descriptions.h: Likewise.
8323
9b292f68
TT
83242018-02-24 Tom Tromey <tom@tromey.com>
8325
8326 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8327 (try_thread_db_load_from_dir, thread_db_load_search): Use
8328 std::string.
8329 (info_auto_load_libthread_db_compare): Return bool. Change
8330 argument types.
8331 (info_auto_load_libthread_db): Use std::vector, std::string.
8332 Remove cleanups.
8333
281d762b
TT
83342018-02-24 Tom Tromey <tom@tromey.com>
8335
8336 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
8337 std::string.
8338 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
8339 std::string*.
8340 * gdbarch.c: Rebuild.
8341 * gdbarch.h: Rebuild.
8342 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
8343 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
8344 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
8345 std::string*.
8346
9d8780f0
SM
83472018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
8348
8349 * gdbtypes.h (sect_offset): Change type to uint64_t.
8350 (sect_offset_str): New function.
8351 * dwarf2read.c (create_addrmap_from_aranges): Use
8352 sect_offset_str.
8353 (error_check_comp_unit_head): Likewise.
8354 (create_debug_type_hash_table): Likewise.
8355 (read_cutu_die_from_dwo): Likewise.
8356 (init_cutu_and_read_dies): Likewise.
8357 (init_cutu_and_read_dies_no_follow): Likewise.
8358 (process_psymtab_comp_unit_reader): Likewise.
8359 (partial_die_parent_scope): Likewise.
8360 (peek_die_abbrev): Likewise.
8361 (process_queue): Likewise.
8362 (dwarf2_physname): Likewise.
8363 (read_namespace_alias): Likewise.
8364 (read_import_statement): Likewise.
8365 (create_dwo_cu_reader): Likewise.
8366 (create_cus_hash_table): Likewise.
8367 (lookup_dwo_cutu): Likewise.
8368 (inherit_abstract_dies): Likewise.
8369 (read_func_scope): Likewise.
8370 (read_call_site_scope): Likewise.
8371 (dwarf2_add_member_fn): Likewise.
8372 (read_common_block): Likewise.
8373 (read_module_type): Likewise.
8374 (read_typedef): Likewise.
8375 (read_subrange_type): Likewise.
8376 (load_partial_dies): Likewise.
8377 (read_partial_die): Likewise.
8378 (find_partial_die): Likewise.
8379 (read_str_index): Likewise.
8380 (dwarf2_string_attr): Likewise.
8381 (build_error_marker_type): Likewise.
8382 (lookup_die_type): Likewise.
8383 (dump_die_shallow): Likewise.
8384 (follow_die_ref): Likewise.
8385 (dwarf2_fetch_die_loc_sect_off): Likewise.
8386 (dwarf2_fetch_constant_bytes): Likewise.
8387 (follow_die_sig): Likewise.
8388 (get_signatured_type): Likewise.
8389 (get_DW_AT_signature_type): Likewise.
8390 (dwarf2_find_containing_comp_unit): Likewise.
8391 (set_die_type): Likewise.
8392
8ec57239
JB
83932018-02-21 John Baldwin <jhb@FreeBSD.org>
8394
8395 * arch/aarch64.c: Include "common-defs.h".
8396 * arch/amd64.c: Likewise.
8397 * arch/i386.c: Likewise.
8398
3eac2b65
TT
83992018-02-21 Tom Tromey <tom@tromey.com>
8400
8401 * value.h: (extract_field_op): Update.
8402 * eval.c (extract_field_op): Return a const char *.
8403 * expression.h (parse_expression_for_completion): Update.
8404 * completer.c (complete_expression): Update.
8405 (add_struct_fields): Make fieldname const.
8406 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
8407 (mark_completion_tag, parse_exp_in_context_1): Update.
8408 (parse_expression_for_completion): Change "name" to
8409 unique_xmalloc_ptr*.
8410
6ccb583f
TT
84112018-02-21 Tom Tromey <tom@tromey.com>
8412
8413 * infcall.c (call_function_by_hand_dummy): Use std::vector.
8414
c113ed0c
YQ
84152018-02-21 Yao Qi <yao.qi@linaro.org>
8416
8417 * avr-tdep.c (avr_read_pc): Change parameter type to
8418 readable_regcache.
8419 * gdbarch.sh (read_pc): Likewise.
8420 * gdbarch.c: Re-generated.
8421 * gdbarch.h: Re-generated.
8422 * hppa-tdep.c (hppa_read_pc): Change parameter type to
8423 readable_regcache.
8424 * ia64-tdep.c (ia64_read_pc): Likewise.
8425 * mips-tdep.c (mips_read_pc): Likewise.
8426 * spu-tdep.c (spu_read_pc): Likewise.
8427
4c74fe6b
YQ
84282018-02-21 Yao Qi <yao.qi@linaro.org>
8429
8430 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
8431 * regcache-dump.c: New file.
8432 * regcache.c: Move register_dump to regcache-dump.c.
8433 (maintenance_print_registers): Likewise.
8434 (maintenance_print_raw_registers): Likewise.
8435 (maintenance_print_cooked_registers): Likewise.
8436 (maintenance_print_register_groups): Likewise.
8437 (maintenance_print_remote_registers): Likewise.
8438 (_initialize_regcache): Likewise.
8439 * regcache.h (register_dump): Moved from regcache.c.
8440
796bb026
YQ
84412018-02-21 Yao Qi <yao.qi@linaro.org>
8442
8443 * regcache.c (regcache::regcache): Update.
8444 (regcache::invalidate): Move it to detached_regcache::invalidate.
8445 (get_thread_arch_aspace_regcache): Update.
8446 (regcache::raw_update): Update.
8447 (regcache::cooked_read): Remove some code.
8448 (regcache::cooked_read_value): Likewise.
8449 (regcache::raw_write): Remove assert on m_readonly_p.
8450 (regcache::raw_supply_integer): Move it to
8451 detached_regcache::raw_supply_integer.
8452 (regcache::raw_supply_zeroed): Likewise.
8453 * regcache.h (detached_regcache) <raw_supply_integer>: New
8454 declaration.
8455 <raw_supply_zeroed, invalidate>: Likewise.
8456 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
8457 <invalidate>: Likewise.
8458 <m_readonly_p>: Removed.
8459
215c69dc
YQ
84602018-02-21 Yao Qi <yao.qi@linaro.org>
8461
8462 * infcmd.c (get_return_value): Let stop_regs point to
8463 get_current_regcache.
8464 * regcache.c (regcache::regcache): Remove.
8465 (register_dump_reg_buffer): New class.
8466 (regcache_print): Adjust.
8467 * regcache.h (regcache): Remove constructors.
8468
f3384e66
YQ
84692018-02-21 Yao Qi <yao.qi@linaro.org>
8470
8471 * regcache.c (class register_dump): New class.
8472 (register_dump_regcache, register_dump_none): New class.
8473 (register_dump_remote, register_dump_groups): New class.
8474 (regcache_print): Update.
8475 * regcache.h (regcache_dump_what): Move it to regcache.c.
8476 (regcache) <dump>: Remove.
8477
c8ec2f33
YQ
84782018-02-21 Yao Qi <yao.qi@linaro.org>
8479
8480 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
8481 reg_buffer_rw *.
8482 (jit_unwind_reg_set_impl): Call raw_supply.
8483 (jit_frame_sniffer): Use reg_buffer_rw.
8484 * record-full.c (record_full_core_regbuf): Change its type.
8485 (record_full_core_open_1): Use reg_buffer_rw.
8486 (record_full_close): Likewise.
8487 (record_full_core_fetch_registers): Use regcache->raw_supply.
8488 (record_full_core_store_registers): Likewise.
8489 * regcache.c (regcache::get_register_status): Move it to
8490 reg_buffer.
8491 (regcache_raw_set_cached_value): Remove.
8492 (regcache::raw_set_cached_value): Remove.
8493 (regcache::raw_write): Call raw_supply.
8494 (regcache::raw_supply): Move it to reg_buffer_rw.
8495 * regcache.h (regcache_raw_set_cached_value): Remove.
8496 (reg_buffer_rw): New class.
8497
daf6667d
YQ
84982018-02-21 Yao Qi <yao.qi@linaro.org>
8499
8500 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
8501 readonly_detached_regcache.
8502 (dummy_frame_prev_register): Use regcache->cooked_read.
8503 * frame.c (frame_save_as_regcache): Change return type.
8504 (frame_pop): Update.
8505 * frame.h (frame_save_as_regcache): Update declaration.
8506 * inferior.h (get_infcall_suspend_state_regcache): Update
8507 declaration.
8508 * infrun.c (infcall_suspend_state) <registers>: use
8509 readonly_detached_regcache.
8510 (save_infcall_suspend_state): Don't use regcache_dup.
8511 (get_infcall_suspend_state_regcache): Change return type.
8512 * linux-fork.c (struct fork_info) <savedregs>: Change to
8513 readonly_detached_regcache.
8514 <pc>: New field.
8515 (fork_save_infrun_state): Don't use regcache_dup.
8516 (info_checkpoints_command): Adjust.
8517 * mi/mi-main.c (register_changed_p): Update declaration.
8518 (mi_cmd_data_list_changed_registers): Use
8519 readonly_detached_regcache.
8520 (register_changed_p): Change parameter type to
8521 readonly_detached_regcache.
8522 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
8523 readonly_detached_regcache.
8524 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
8525 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
8526 New.
8527 (regcache::save): Move it to reg_buffer.
8528 (regcache::restore): Change parameter type.
8529 (regcache_dup): Remove.
8530 * regcache.h (reg_buffer) <save>: New method.
8531 (readonly_detached_regcache): New class.
8532 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
8533 readonly_detached_regcache.
8534 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
8535
fc5b8736
YQ
85362018-02-21 Yao Qi <yao.qi@linaro.org>
8537
8538 * frame.c (frame_save_as_regcache): Use regcache method save.
8539 (frame_pop): Use regcache method restore.
8540 * infrun.c (restore_infcall_suspend_state): Likewise.
8541 * linux-fork.c (fork_load_infrun_state): Likewise.
8542 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
8543 save.
8544 * regcache.c (regcache_save): Remove.
8545 (regcache::restore): More asserts.
8546 (regcache_cpy): Remove.
8547 * regcache.h (regcache_save): Remove the declaration.
8548 (regcache::restore): Move from private to public.
8549 Remove the friend declaration of regcache_cpy.
8550 (regcache_cpy): Remove declaration.
8551
849d0ba8
YQ
85522018-02-21 Yao Qi <yao.qi@linaro.org>
8553
8554 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
8555 parameter type to 'readable_regcache *'.
8556 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
8557 * arm-tdep.c (arm_neon_quad_read): Likewise.
8558 (arm_pseudo_read): Likewise.
8559 * avr-tdep.c (avr_pseudo_register_read): Likewise.
8560 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
8561 * frv-tdep.c (frv_pseudo_register_read): Likewise.
8562 * gdbarch.c: Re-generated.
8563 * gdbarch.h: Re-generated.
8564 * gdbarch.sh (pseudo_register_read): Change parameter type to
8565 'readable_regcache *'.
8566 (pseudo_register_read_value): Likewise.
8567 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
8568 (h8300_pseudo_register_read): Likewise.
8569 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
8570 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
8571 (i386_pseudo_register_read_into_value): Likewise.
8572 (i386_pseudo_register_read_value): Likewise.
8573 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
8574 declaration.
8575 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
8576 * m32c-tdep.c (m32c_raw_read): Likewise.
8577 (m32c_read_flg): Likewise.
8578 (m32c_banked_register): Likewise.
8579 (m32c_banked_read): Likewise.
8580 (m32c_sb_read): Likewise.
8581 (m32c_part_read): Likewise.
8582 (m32c_cat_read): Likewise.
8583 (m32c_r3r2r1r0_read): Likewise.
8584 (m32c_pseudo_register_read): Likewise.
8585 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
8586 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
8587 (mep_pseudo_cr64_read): Likewise.
8588 (mep_pseudo_register_read): Likewise.
8589 * mips-tdep.c (mips_pseudo_register_read): Likewise.
8590 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
8591 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
8592 * regcache.c (regcache::raw_read): Move it to readable_regcache.
8593 (regcache::cooked_read): Likewise.
8594 (regcache::cooked_read_value): Likewise.
8595 (regcache_cooked_read_signed):
8596 (regcache::cooked_read): Likewise.
8597 * regcache.h (readable_regcache): New class.
8598 (regcache): Inherit readable_regcache. Move some methods to
8599 readable_regcache.
8600 * rl78-tdep.c (rl78_pseudo_register_read): Change
8601 parameter type to 'readable_regcache *'.
8602 * rs6000-tdep.c (do_regcache_raw_read): Remove.
8603 (e500_pseudo_register_read): Change parameter type to
8604 'readable_regcache *'.
8605 (dfp_pseudo_register_read): Likewise.
8606 (vsx_pseudo_register_read): Likewise.
8607 (efpr_pseudo_register_read): Likewise.
8608 * s390-tdep.c (s390_pseudo_register_read): Likewise.
8609 * sh-tdep.c (sh_pseudo_register_read): Likewise.
8610 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
8611 (sh64_pseudo_register_read): Likewise.
8612 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
8613 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
8614 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
8615 (spu_pseudo_register_read): Likewise.
8616 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
8617 (xtensa_pseudo_register_read): Likewise.
8618
31716595
YQ
86192018-02-21 Yao Qi <yao.qi@linaro.org>
8620
8621 * regcache.c (regcache::regcache): Call reg_buffer ctor.
8622 (regcache::arch): Move it to reg_buffer::arch.
8623 (regcache::register_buffer): Likewise.
8624 (regcache::assert_regnum): Likewise.
8625 (regcache::num_raw_registers): Likewise.
8626 * regcache.h (reg_buffer): New class.
8627 (regcache): Inherit reg_buffer.
8628
7104e59b
SM
86292018-02-20 Simon Marchi <simon.marchi@ericsson.com>
8630
8631 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
8632 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
8633
2d8adcbd
MM
86342018-02-20 Markus Metzger <markus.t.metzger@intel.com>
8635
8636 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
8637
b5884fa7
AH
86382018-02-19 Alan Hayward <alan.hayward@arm.com>
8639
8640 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
8641 (SFILES): Remove common/*.c files.
8642 (COMMON_OBS): Remove some *.o files built from common/*.c files.
8643 * common/common.host: Add common reference.
8644 * configure.ac: Likewise.
8645 * configure: Regenerate.
8646
fd90ace4
YQ
86472018-02-16 Yao Qi <yao.qi@linaro.org>
8648
8649 * block.c (block_namespace_info): Inherit allocate_on_obstack.
8650 (block_initialize_namespace): Use new.
8651 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
8652 (dwarf2_free_objfile): Use delete.
8653 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
8654 (copy_type_recursive): Use new.
8655 * gdb_obstack.h (allocate_on_obstack): New.
8656
85046ae2
YQ
86572018-02-15 Yao Qi <yao.qi@linaro.org>
8658
8659 PR gdb/22849
8660 * inferior.c (exit_inferior_1): Reset inf->control.
8661
355c559b
JB
86622018-02-15 Joel Brobecker <brobecker@adacore.com>
8663
8664 * ada-lang.c (ada_to_fixed_value_create): Delete advance
8665 declaration.
8666
980548fd
PA
86672018-02-14 Pedro Alves <palves@redhat.com>
8668
8669 * frame-unwind.c (frame_unwind_try_unwinder): Always call
8670 frame_cleanup_after_sniffer on exception.
8671
692d6f97
TT
86722018-02-14 Tom Tromey <tom@tromey.com>
8673
8674 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
8675 const.
8676 (solib_bfd_open): Make pathname const.
8677 * solib.c (solib_bfd_open): Make pathname const.
8678 * solib-spu.c (spu_bfd_fopen): Make name const.
8679 (spu_bfd_open): Make pathname const.
8680 * solib-darwin.c (darwin_bfd_open): Make pathname const.
8681 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
8682
e0cc99a6
TT
86832018-02-14 Tom Tromey <tom@tromey.com>
8684
8685 * symfile.c (symfile_bfd_open): Update.
8686 * source.h (openp, source_full_path_of, find_and_open_source):
8687 Change argument type to unique_xmalloc_ptr.
8688 * source.c (openp): Take a unique_xmalloc_ptr.
8689 (source_full_path_of, find_and_open_source): Likewise.
8690 (open_source_file, symtab_to_fullname): Update.
8691 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
8692 unique_xmalloc_ptr.
8693 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
8694 (exec_file_find): Update.
8695 * psymtab.c (psymtab_to_fullname): Update.
8696 * nto-tdep.h (nto_find_and_open_solib): Update.
8697 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
8698 unique_xmalloc_ptr.
8699 * exec.c (exec_file_attach): Update.
8700 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
8701 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
8702
b46a8d7c
TT
87032018-02-14 Tom Tromey <tom@tromey.com>
8704
8705 * solib.c: Include source.h.
8706 * nto-tdep.c: Include source.h.
8707 * mi/mi-cmd-env.c: Include source.h.
8708 * infcmd.c: Include source.h.
8709 * exec.c: Include source.h.
8710 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
8711 (add_path, directory_switch, source_path, init_source_path): Move
8712 declarations...
8713 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
8714 (add_path, directory_switch, source_path, init_source_path):
8715 ...here.
8716
797bc1cb
TT
87172018-02-14 Tom Tromey <tom@tromey.com>
8718
8719 * solist.h (exec_file_find, solib_find): Return
8720 unique_xmalloc_ptr.
8721 (solib_bfd_fopen): Take a const char *.
8722 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
8723 (exec_file_find, solib_find): Likewise.
8724 (solib_bfd_fopen): Do not take ownership of "pathname".
8725 (solib_bfd_open): Use unique_xmalloc_ptr.
8726 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
8727 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
8728 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
8729 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
8730
f98b2e33
JB
87312018-02-14 Joel Brobecker <brobecker@adacore.com>
8732
8733 * ada-lang.c (name_match_type_from_name): Remove reference to
8734 ada_name_for_lookup in function's documentation.
8735 * ada-lang.h (ada_name_for_lookup): Delete declaration.
8736
24b9144d
SM
87372018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
8738
8739 * defs.h (enum openp_flags): New enum.
8740 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
8741 Move to enum openp_flags.
8742 (openp_flags): New enum flags.
8743 (openp): Change parameter type to openp_flags.
8744 * source.c (openp): Change parameter type to openp_flags.
8745 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
8746 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
8747
387cd15b
SM
87482018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
8749
8750 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
8751 per-command.
8752
b303c6f6
AB
87532018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
8754
8755 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
8756 into...
8757 (class dwarf2_queue_guard): ...the destructor of this new class.
8758 (dw2_do_instantiate_symtab): Create instance of the new class
8759 dwarf2_queue_guard, remove cleanup.
8760
9c3630e9
TT
87612018-02-09 Tom Tromey <tom@tromey.com>
8762
8763 * source.c (find_source_lines): Don't reference past the end of
8764 the vector.
8765
c4e12631
MM
87662018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8767
8768 * remote.c (remote_btrace_maybe_reopen): Change error message.
8769 * btrace.c (btrace_enable): Likewise.
8770 (parse_xml_btrace): Likewise.
8771 (parse_xml_btrace_conf): Likewise.
8772
88711fbf
MM
87732018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8774
8775 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
8776 (linux_enable_pt, linux_enable_bts): Call
8777 diagnose_perf_event_open_fail.
8778
17ad2a4f
MM
87792018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8780
8781 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
8782 Remove parameter and change return type. Update callers. Move it.
8783 (linux_enable_bts, linux_enable_pt): Improve error message.
8784 (linux_enable_pt): Remove zero buffer size check.
8785 (linux_enable_btrace): Improve error messages. Remove NULL return
8786 check.
8787
de6242d3
MM
87882018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8789
8790 * btrace.c (btrace_enable): Remove target_supports_btrace call.
8791 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
8792 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
8793 (linux_supports_pt, linux_supports_btrace): Remove.
8794 (linux_enable_bts): Call cpu_supports_bts.
8795 * nat/linux-btrace.h (linux_supports_btrace): Remove.
8796 * remote.c (remote_supports_btrace): Remove.
8797 (init_remote_ops): Remove remote_supports_btrace.
8798 * target-delegates.c: Regenerated.
8799 * target.c (target_supports_btrace): Remove.
8800 * target.h (target_ops) <to_supports_btrace>: Remove
8801 (target_supports_btrace): Remove.
8802 * x86-linux-nat.c (x86_linux_create_target): Remove
8803 linux_supports_btrace.
8804
9ee23a85
MM
88052018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8806
8807 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
8808 btrace failed.
8809 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
8810 exception and use message in own exception.
8811
5c3284c1
MM
88122018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8813
8814 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
8815 (perf_event_pt_event_type): Use gdb_file_up.
8816 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
8817 scoped_fd, and scoped_mmap.
8818
84696f37
MM
88192018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8820
8821 * common/scoped_mmap.h: New.
8822 * unittests/scoped_mmap-selftest.c: New.
8823 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8824 unittests/scoped_mmap-selftest.c.
8825
ea4a0888
MM
88262018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8827
8828 * common/scoped_fd.h: New.
8829 * unittests/scoped_fd-selftest.c: New.
8830 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8831 unittests/scoped_fd-selftest.c.
8832
869e8290
TT
88332018-02-09 Tom Tromey <tom@tromey.com>
8834
8835 * auto-load.c (auto_load_section_scripts): Use
8836 gdb::unique_xmalloc_ptr.
8837
a37a2ae7
TT
88382018-02-09 Tom Tromey <tom@tromey.com>
8839
8840 * auto-load.c (execute_script_contents): Use std::string.
8841
4e725347
JB
88422018-02-09 Joel Brobecker <brobecker@adacore.com>
8843
8844 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
8845 Python function, rather than a new command.
8846
9a897d43
TT
88472018-02-08 Tom Tromey <tom@tromey.com>
8848
8849 * solib.c (solib_find_1): Use std::string.
8850 (solib_bfd_fopen): Use unique_xmalloc_ptr.
8851
58ef3771
TT
88522018-02-08 Tom Tromey <tom@tromey.com>
8853
8854 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
8855
a9abc434
TT
88562018-02-08 Tom Tromey <tom@tromey.com>
8857
8858 * source.c (find_source_lines): Use gdb::def_vector.
8859
84f27c6f
TT
88602018-02-08 Tom Tromey <tom@tromey.com>
8861
8862 * macrocmd.c (struct temporary_macro_definition): New.
8863 (macro_define_command): Use temporary_macro_definition. Remove
8864 cleanups.
8865 (free_macro_definition_ptr): Remove.
8866
0354904b
TT
88672018-02-08 Tom Tromey <tom@tromey.com>
8868
8869 * macroexp.c (maybe_expand): Use std::string.
8870
1739cf24
TT
88712018-02-08 Tom Tromey <tom@tromey.com>
8872
8873 * macroexp.c (struct macro_buffer): Add initializers for some
8874 members.
8875 (init_buffer, init_shared_buffer, free_buffer)
8876 (free_buffer_return_text): Remove.
8877 (macro_buffer): New constructors.
8878 (~macro_buffer): New destructor.
8879 (macro_buffer::set_shared): New method.
8880 (macro_buffer::resize_buffer, macro_buffer::appendc)
8881 (macro_buffer::appendmem): Now methods, not free functions.
8882 (set_token, append_tokens_without_splicing, stringify)
8883 (macro_stringify): Update.
8884 (gather_arguments): Change return type. Remove argc_p argument,
8885 add args_ptr argument. Use std::vector.
8886 (substitute_args): Remove argc argument. Accept std::vector.
8887 (expand): Update. Use std::vector.
8888 (scan, macro_expand, macro_expand_next): Update.
8889
f6c2623e
TT
88902018-02-08 Tom Tromey <tom@tromey.com>
8891
8892 * symtab.c (default_collect_symbol_completion_matches_break_on):
8893 Use unique_xmalloc_ptr.
8894 * macroscope.h: (sal_macro_scope, user_macro_scope)
8895 (default_macro_scope): Return unique_xmalloc_ptr.
8896 * macroscope.c (sal_macro_scope, user_macro_scope)
8897 (default_macro_scope): Return unique_xmalloc_ptr.
8898 * macroexp.h (macro_expand, macro_expand_once): Return
8899 unique_xmalloc_ptr.
8900 * macroexp.c (macro_expand, macro_expand_once): Return
8901 unique_xmalloc_ptr.
8902 * macrocmd.c (macro_expand_command, macro_expand_once_command)
8903 (info_macro_command, info_macros_command): Use
8904 unique_xmalloc_ptr.
8905 * compile/compile-c-support.c (write_macro_definitions): Use
8906 unique_xmalloc_ptr.
8907 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
8908
c2e0e465
SM
89092018-02-07 Simon Marchi <simon.marchi@ericsson.com>
8910
8911 * value.c (value_static_field): Assign field type instead of
8912 containing type when returning an optimized out value.
8913
3f8c94b4
YQ
89142018-02-06 Yao Qi <yao.qi@linaro.org>
8915
8916 * ft32-tdep.c (ft32_read_pc): Remove.
8917 (ft32_write_pc): Remove.
8918 (ft32_gdbarch_init): Update.
8919 * m32r-tdep.c (m32r_read_pc): Remove.
8920 (m32r_gdbarch_init): Update.
8921 * mep-tdep.c (mep_read_pc): Remove.
8922 (mep_gdbarch_init): Update.
8923 * microblaze-tdep.c (microblaze_write_pc): Remove.
8924 (microblaze_gdbarch_init): Update.
8925 * mn10300-tdep.c (mn10300_read_pc): Remove.
8926 (mn10300_write_pc): Remove.
8927 (mn10300_gdbarch_init): Update.
8928 * moxie-tdep.c (moxie_read_pc): Remove.
8929 (moxie_write_pc): Remove.
8930 (moxie_gdbarch_init): Update.
8931
bca65a23
YQ
89322018-02-06 Yao Qi <yao.qi@linaro.org>
8933
8934 * expprint.c (print_subexp_standard): Handle
8935 OP_F77_UNDETERMINED_ARGLIST.
8936 (dump_subexp_body_standard): Likewise.
8937
583e3f90 89382018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 8939
583e3f90
YQ
8940 * target-descriptions.c (tdesc_element_visitor) Add empty
8941 implementations.
b8df6ca7
AH
8942 (tdesc_type): Move make_gdb_type from here.
8943 (tdesc_type_builtin): Likewise.
8944 (tdesc_type_vector): Likewise.
8945 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
8946 (make_gdb_type_struct): Move from tdesc_type_with_fields.
8947 (make_gdb_type_union): Likewise.
8948 (make_gdb_type_flags): Likewise.
8949 (make_gdb_type_enum): Likewise.
8950 (make_gdb_type): New function.
8951 (tdesc_register_type): Use static make_gdb_type.
8952
e813d34a
RK
89532018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
8954
8955 * infcmd.c (default_print_one_register_info): Align natural-format
8956 column values consistently one under another.
8957 (pad_to_column): New function.
8958
0eb876f5
JB
89592018-02-05 Joel Brobecker <brobecker@adacore.com>
8960
8961 * dwarf2read.c (dwarf2_physname): Move commment.
8962
0625771b
LS
89632018-02-01 Leszek Swirski <leszeks@google.com>
8964
8965 * varobj.c (varobj_formatted_print_options): Allow recursive
8966 pretty printing if pretty printing is enabled.
8967
59498c30
LS
89682018-02-01 Leszek Swirski <leszeks@google.com>
8969
8970 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
8971 names after a structop as a filename.
8972
2d9e6acb
YQ
89732018-02-01 Yao Qi <yao.qi@linaro.org>
8974
8975 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
8976 (arm_record_coproc_data_proc): Likewise.
8977
df95a9cf
YQ
89782018-02-01 Yao Qi <yao.qi@linaro.org>
8979
8980 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
8981
07e5f5cf
NP
89822018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
8983
8984 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
8985 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
8986
3045b475
PA
89872018-01-31 Pedro Alves <palves@redhat.com>
8988
8989 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
8990 * inflow.c (child_terminal_save_inferior): Wrap reference to
8991 tcgetpgrp in HAVE_TERMIOS_H.
8992 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
8993 _WIN32.
8994 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
8995 always iterate over all inferiors.
8996 (gdbsim_cntrl_c): Adjust.
8997 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
8998
929b5ad4
JB
89992018-01-31 Joel Brobecker <brobecker@adacore.com>
9000
9001 * gdbtypes.c (lookup_array_range_type): Make sure the array's
9002 index type is objfile-owned if the element type is as well.
9003
29236ca2
JB
90042018-01-31 Joel Brobecker <brobecker@adacore.com>
9005
9006 GDB 8.1 released.
9007
c81e8879
PR
90082018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
9009
9010 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
9011 "features/s390x-linux64.c".
9012 (_initialize_s390_linux_tdep): Remove initialization of tdescs
9013 s390_linux32 and s390x_linux64.
9014 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
9015 default tdesc.
9016 * s390-tdep.c: Include "features/s390-linux32.c" and
9017 "features/s390x-linux64.c".
9018 (s390_tdesc_valid): Add check for tdesc_has_registers.
9019 (s390_gdbarch_init): Make sure there is always a valid tdesc.
9020 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
9021 tdesc_s390x_linux64.
9022 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
9023 tdesc_s390x_linux64 to...
9024 * s390-tdep.h: ...here.
9025
e671cd59
PA
90262018-01-30 Pedro Alves <palves@redhat.com>
9027
9028 PR gdb/13211
9029 * config.in, configure: Regenerate.
9030 * configure.ac: Check for getpgid.
9031 * go32-nat.c (go32_pass_ctrlc): New.
9032 (go32_target): Install it.
9033 * inf-child.c (inf_child_target): Install
9034 child_terminal_save_inferior, child_pass_ctrlc and
9035 child_interrupt.
9036 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
9037 (inf_ptrace_target): No longer install it.
9038 * infcmd.c (interrupt_target_1): Adjust.
9039 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
9040 (child_interrupt): Declare.
9041 (inferior::terminal_state): New.
9042 * inflow.c (struct terminal_info): Update comments.
9043 (inferior_process_group): Delete.
9044 (terminal_is_ours): Delete.
9045 (gdb_tty_state): New.
9046 (child_terminal_init): Adjust.
9047 (is_gdb_terminal, sharing_input_terminal_1)
9048 (sharing_input_terminal): New functions.
9049 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
9050 Set the process's actual process group in the foreground if
9051 possible. Handle is_ours_for_output/is_ours distinction. Don't
9052 mark terminal as the inferior's if not sharing GDB's terminal.
9053 Don't check attach_flag.
9054 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
9055 pass down a target_terminal_state.
9056 (child_terminal_save_inferior): New, factored out from ...
9057 (child_terminal_ours_1): ... this. Handle
9058 target_terminal_state::is_ours_for_output.
9059 (child_interrupt, child_pass_ctrlc): New.
9060 (inflow_inferior_exit): Clear the inferior's terminal_state.
9061 (copy_terminal_info): Copy the inferior's terminal state.
9062 (_initialize_inflow): Remove reference to terminal_is_ours.
9063 * inflow.h (inferior_process_group): Delete.
9064 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
9065 * procfs.c (procfs_target): Don't install procfs_interrupt.
9066 (procfs_interrupt): Delete.
9067 * remote.c (remote_serial_quit_handler): Adjust.
9068 (remote_interrupt): Remove ptid parameter. Adjust.
9069 * target-delegates.c: Regenerate.
9070 * target.c: Include "terminal.h".
9071 (target_terminal::terminal_state): Rename to ...
9072 (target_terminal::m_terminal_state): ... this.
9073 (target_terminal::init): Adjust.
9074 (target_terminal::inferior): Adjust to per-inferior
9075 terminal_state.
9076 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
9077 (target_terminal::ours, target_terminal::ours_for_output): Use
9078 target_terminal_is_ours_kind.
9079 (target_interrupt): Remove ptid parameter. Adjust.
9080 (default_target_pass_ctrlc): Adjust.
9081 * target.h (target_ops::to_terminal_save_inferior): New field.
9082 (target_ops::to_interrupt): Remove ptid_t parameter.
9083 (target_interrupt): Remove ptid_t parameter. Update comment.
9084 (target_pass_ctrlc): Update comment.
9085 * target/target.h (target_terminal_state): New scoped enum,
9086 factored out of ...
9087 (target_terminal::terminal_state): ... here.
9088 (target_terminal::inferior): Update comments.
9089 (target_terminal::restore_inferior): New.
9090 (target_terminal::is_inferior, target_terminal::is_ours)
9091 (target_terminal::is_ours_for_output): Adjust.
9092 (target_terminal::scoped_restore_terminal_state): Adjust to
9093 rename, and call restore_inferior() instead of inferior().
9094 (target_terminal::scoped_restore_terminal_state::m_state): Change
9095 type.
9096 (target_terminal::terminal_state): Rename to ...
9097 (target_terminal::m_terminal_state): ... this and change type.
9098
9c3a5d93
PA
90992018-01-30 Pedro Alves <palves@redhat.com>
9100
9101 * linux-nat.c (wait_for_signal): New function.
9102 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
9103 directly.
9104 (async_terminal_is_ours)
9105 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
9106 (linux_nat_add_target): Don't override
9107 to_terminal_inferior/to_terminal_ours.
9108
69ab5edb
SDJ
91092018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
9110
9111 * remote.c (remote_follow_fork): Don't call "detach_inferior".
9112
fc8e7e75
SM
91132018-01-28 Simon Marchi <simon.marchi@ericsson.com>
9114
9115 * dwarf2read.c (free_dwo_files): Add forward-declaration.
9116 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
9117 dwarf2_per_objfile_free here.
9118 (dwarf2_per_objfile_free): Remove.
9119 (_initialize_dwarf2_read): Don't register
9120 dwarf2_per_objfile_free as a registry cleanup.
9121
b2a426e2
EZ
91222018-01-27 Eli Zaretskii <eliz@gnu.org>
9123
9124 Avoid compilation errors in MinGW native builds
9125
9126 The error is triggered by including python-internal.h, and the
9127 error message is:
9128
9129 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
9130 from build-gnulib/import/math.h:27,
9131 from d:/usr/Python26/include/pyport.h:235,
9132 from d:/usr/Python26/include/Python.h:58,
9133 from python/python-internal.h:94,
9134 from python/py-arch.c:24:
9135 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
9136 using ::hypot;
9137 ^~~~~
9138
9139 This happens because Python headers define 'hypot' to expand t
9140 '_hypot' in the Windows builds.
9141 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
9142 'hypoth'. This avoids a compilation error.
9143
0bdd8eac
AH
91442018-01-26 Alan Hayward <alan.hayward@arm.com>
9145
9146 * MAINTAINERS (Write After Approval): Fix ordering.
9147
56ae9dc3
AH
91482018-01-26 Alan Hayward <alan.hayward@arm.com>
9149
9150 * MAINTAINERS (Write After Approval): Add Alan Hayward.
9151
7433498b
AM
91522018-01-26 Alan Modra <amodra@gmail.com>
9153
9154 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
9155 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
9156 Remove nop. Make const. Comment.
9157 (powerpc32_plt_stub_so_2): New.
9158 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
9159 Correct count. Update uses.
9160 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
9161 Move common code reading PLT entry word. Correct
9162 powerpc32_plt_stub PLT address calculation.
9163 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
9164 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
9165 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
9166 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
9167 (ppc64_standard_linkage8): Likewise.
9168 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
9169 Correct insns description.
9170 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
9171
0f59d5fc
PA
91722018-01-24 Pedro Alves <palves@redhat.com>
9173
9174 GCC PR libstdc++/83906
9175 * gdbtypes.c (operator==(const dynamic_prop &,
9176 const dynamic_prop &)): New.
9177 (operator==(const range_bounds &, const range_bounds &)): New.
9178 (check_types_equal): Use them instead of memcmp.
9179 * gdbtypes.h (operator==(const dynamic_prop &,
9180 const dynamic_prop &)): Declare.
9181 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
9182 (operator==(const range_bounds &, const range_bounds &)): Declare.
9183 (operator!=(const range_bounds &, const range_bounds &)): Declare.
9184
ef8914a4
PR
91852018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9186
9187 * s390-linux-tdep.c (s390_record_address_mask)
9188 (s390_record_calc_disp_common, s390_record_calc_disp)
9189 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
9190 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
9191 (s390_process_record): Move to s390-tdep.c.
9192 (s390_linux_init_abi_any): Adjust.
9193 * s390-tdep.c (s390_record_address_mask)
9194 (s390_record_calc_disp_common, s390_record_calc_disp)
9195 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
9196 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
9197 (s390_process_record): Moved from s390-linux-tdep.c
9198 (s390_gdbarch_init): Adjust.
9199
d6e58945
PR
92002018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9201
9202 * s390-linux-nat.c (s390-tdep.h): New include.
9203 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
9204 (HFILES_NO_SRCDIR): Add s390-tdep.h.
9205 (ALLDEPFILES): Add s390-tdep.c.
9206 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
9207 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
9208 * s390-tdep.h: ...this. New file.
9209 * s390-linux-tdep.c (s390-tdep.h): New include.
9210 (_initialize_s390_tdep): Rename to...
9211 (_initialize_s390_linux_tdep): ...this and adjust.
9212 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
9213 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
9214 s390-tdep.h.
9215 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
9216 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
9217 (s390_is_partial_instruction, s390_software_single_step)
9218 (is_non_branch_ril, s390_displaced_step_copy_insn)
9219 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
9220 (s390_prologue_data, s390_addr, s390_store, s390_load)
9221 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
9222 (s390_register_call_saved, s390_guess_tracepoint_registers)
9223 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
9224 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
9225 (s390_pseudo_register_name, s390_pseudo_register_type)
9226 (s390_pseudo_register_read, s390_pseudo_register_write)
9227 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
9228 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
9229 (s390_addr_bits_remove, s390_address_class_type_flags)
9230 (s390_address_class_type_flags_to_name)
9231 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
9232 (s390_function_arg_float, s390_function_arg_vector)
9233 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
9234 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
9235 (s390_frame_align, s390_register_return_value, s390_return_value)
9236 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
9237 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
9238 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
9239 (s390_trad_frame_prev_register, s390_unwind_cache)
9240 (s390_prologue_frame_unwind_cache)
9241 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
9242 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
9243 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
9244 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
9245 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
9246 (s390_frame_base_address, s390_local_base_address)
9247 (s390_frame_base, s390_gcc_target_options)
9248 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
9249 (s390_validate_reg_range, s390_tdesc_valid)
9250 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
9251 * s390-tdep.c: ...this. New file.
9252
9c0b896e
PR
92532018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9254
9255 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
9256 (s390_process_record, s390_gdbarch_tdep_alloc)
9257 (s390_linux_init_abi_any): Use/set new hook.
9258
7042632b
PR
92592018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9260
9261 * s390-linux-tdep.c (osabi.h): New include.
9262 (s390_linux_init_abi_31, s390_linux_init_abi_64)
9263 (s390_linux_init_abi_any): New functions.
9264 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
9265
650f5e13
PR
92662018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9267
9268 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
9269 tdesc_has_registers check
9270
47c9317e
PR
92712018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9272
9273 * s390-linux-tdep.c (s390_tdesc_valid): New function.
9274 (s390_validate_reg_range): New macro.
9275 (s390_gdbarch_init): Adjust.
9276
095085d8
PR
92772018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9278
9279 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
9280 (s390_gdbarch_tdep_alloc): Adjust.
9281 (s390_gdbarch_init): Adjust.
9282
ab9bcc67
PR
92832018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9284
9285 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
9286 <have_tdb>: Change type to bool.
9287 (s390_gdbarch_tdep_alloc): Adjust.
9288 (s390_gdbarch_init): Adjust.
9289
21f6f5ff
PR
92902018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9291
9292 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
9293 (gdbarch_tdep) <have_upper, have_vx>: New fields.
9294 (s390_gdbarch_tdep_alloc): New function.
9295 (s390_gdbarch_init): Allocate tdep at start and use its fields
9296 instead of separate variables.
9297
0eb97953
PR
92982018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9299
9300 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
9301 when looking for cached gdbarch and add comment for remaining.
9302
5c319bb2
PA
93032018-01-22 Pedro Alves <palves@redhat.com>
9304 Sergio Durigan Junior <sergiodj@redhat.com>
9305
9306 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
9307 case.
9308
d65ce302
MR
93092018-01-22 Maciej W. Rozycki <macro@mips.com>
9310
9311 * MAINTAINERS: Update my company e-mail address.
9312
ec7a5fcb
YQ
93132018-01-22 Yao Qi <yao.qi@linaro.org>
9314
9315 * regcache.c (cooked_write_test): New function.
9316 (_initialize_regcache): Register the test.
9317
11f57cb6
YQ
93182018-01-22 Yao Qi <yao.qi@linaro.org>
9319
9320 * ia64-tdep.c (ia64_pseudo_register_read): Call
9321 regcache->cooked_read instead of regcache_cooked_read_unsigned.
9322 * m32c-tdep.c (m32c_cat_read): Likewise.
9323 (m32c_r3r2r1r0_read): Likewise.
9324 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
9325 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
9326
03f50fc8
YQ
93272018-01-22 Yao Qi <yao.qi@linaro.org>
9328
9329 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
9330 method raw_read instead of regcache_raw_read.
9331 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
9332 * arm-tdep.c (arm_neon_quad_read): Likewise.
9333 * avr-tdep.c (avr_pseudo_register_read): Likewise.
9334 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
9335 * frv-tdep.c (frv_pseudo_register_read): Likewise.
9336 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
9337 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
9338 (i386_pseudo_register_read_into_value): Likewise.
9339 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
9340 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
9341 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
9342 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
9343 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
9344 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
9345 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
9346 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
9347 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
9348
dc711524
YQ
93492018-01-22 Yao Qi <yao.qi@linaro.org>
9350
9351 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
9352 * configure.tgt: Remove target mt.
9353 * mt-tdep.c: Remove.
9354 * regcache.c (cooked_read_test): Remove the check for mt.
9355
3f5a868b
YQ
93562018-01-22 Yao Qi <yao.qi@linaro.org>
9357
9358 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
9359 instead of gdbarch_pseudo_register_read_value.
9360
de4cb04a
JB
93612018-01-22 Joel Brobecker <brobecker@adacore.com>
9362
9363 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
9364 language is Ada.
9365
a9e40818
JB
93662018-01-22 Joel Brobecker <brobecker@adacore.com>
9367
9368 * linespec.c (create_sals_line_offset): Remove code that preserved
9369 the symtab_and_line's line number.
9370
e707fc44
AB
93712018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9372
9373 * varobj.c (varobj_create): Don't set valid_block when creating a
9374 floating varobj.
9375
03d0bf7b
AB
93762018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9377
9378 * varobj.c (varobj_create): Remove out of date comment.
9379
ae451627
AB
93802018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9381
9382 PR mi/20395
9383 * ada-exp.y (write_var_from_sym): Pass extra parameter when
9384 updating innermost block.
9385 * parse.c (innermost_block_tracker::update): Take extra type
9386 parameter, and check types match before updating innermost block.
9387 (write_dollar_variable): Update innermost block for registers.
9388 * parser-defs.h (enum innermost_block_tracker_type): New enum.
9389 (innermost_block_tracker::innermost_block_tracker): Initialise
9390 m_types member.
9391 (innermost_block_tracker::reset): Take type parameter.
9392 (innermost_block_tracker::update): Take type parameter, and pass
9393 type through as needed.
9394 (innermost_block_tracker::m_types): New member.
9395 * varobj.c (varobj_create): Pass type when reseting innermost
9396 block.
9397
aee1fcdf
AB
93982018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9399
9400 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
9401 * ada-lang.c (resolve_subexp): Likewise.
9402 * breakpoint.c (set_breakpoint_condition) Likewise.
9403 (watch_command_1) Likewise.
9404 * c-exp.y (variable): Likewise.
9405 * d-exp.y (PrimaryExpression): Likewise.
9406 * f-exp.y (variable): Likewise.
9407 * go-exp.y (variable): Likewise.
9408 * m2-exp.y (variable): Likewise.
9409 * objfiles.c (objfile::~objfile): Likewise.
9410 * p-exp.y (variable): Likewise.
9411 * parse.c (innermost_block): Change type.
9412 * parser-defs.h (class innermost_block_tracker): New.
9413 (innermost_block): Change to innermost_block_tracker.
9414 * printcmd.c (display_command): Switch to innermost_block API.
9415 (do_one_display): Likewise.
9416 * rust-exp.y (do_one_display): Likewise.
9417 * symfile.c (clear_symtab_users): Likewise.
9418 * varobj.c (varobj_create): Switch to innermost_block API, replace
9419 use of innermost_block with block stored on varobj object.
9420
396af9a1
AB
94212018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9422
9423 * expression.h (innermost_block): Remove declaration.
9424 * varobj.c: Add 'parser-defs.h' include.
9425
fcfcc376
TT
94262018-01-19 Tom Tromey <tom@tromey.com>
9427
9428 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
9429 symbols in the static and global blocks.
9430
5a6c3296
JC
94312018-01-19 James Clarke <jrtc27@jrtc27.com>
9432
9433 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
9434 gdb_ptrace.h, and move including gdb_wait.h ...
9435 * nat/linux-ptrace.h: ... to here.
9436
bc09b0c1
SM
94372018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9438
9439 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
9440 inf_ptrace_detach_success.
9441 (inf_ptrace_detach_success): Add inferior parameter, use it
9442 instead of inferior_ptid, pass it to detach_inferior.
9443 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
9444 parameter.
9445 * inferior.c (detach_inferior): Add overload that takes an
9446 inferior object.
9447 * inferior.h (detach_inferior): Likewise.
9448 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
9449 use inferior_ptid, adjust call to inf_ptrace_detach_success.
9450 * linux-thread-db.c (thread_db_detach): Use inf parameter.
9451
6e1e1966
SM
94522018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9453
9454 * target.h (struct target_ops) <to_detach>: Add inferior
9455 parameter.
9456 (target_detach): Likewise.
9457 * target.c (dispose_inferior): Pass inferior down.
9458 (target_detach): Pass inferior down. Assert that it is equal to
9459 the current inferior.
9460 * aix-thread.c (aix_thread_detach): Pass inferior down.
9461 * corefile.c (core_file_command): Pass current_inferior() down.
9462 * corelow.c (core_detach): Add inferior parameter.
9463 * darwin-nat.c (darwin_detach): Likewise.
9464 * gnu-nat.c (gnu_detach): Likewise.
9465 * inf-ptrace.c (inf_ptrace_detach): Likewise.
9466 * infcmd.c (detach_command): Pass current_inferior() down to
9467 target_detach.
9468 * infrun.c (follow_fork_inferior): Pass parent_inf to
9469 target_detach.
9470 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
9471 target_detach.
9472 * linux-nat.c (linux_nat_detach): Add inferior parameter.
9473 * linux-thread-db.c (thread_db_detach): Likewise.
9474 * nto-procfs.c (procfs_detach): Likewise.
9475 * procfs.c (procfs_detach): Likewise.
9476 * record.c (record_detach): Likewise.
9477 * record.h (struct inferior): Forward-declare.
9478 (record_detach): Add inferior parameter.
9479 * remote-sim.c (gdbsim_detach): Likewise.
9480 * remote.c (remote_detach_1): Likewise.
9481 (remote_detach): Likewise.
9482 (extended_remote_detach): Likewise.
9483 * sol-thread.c (sol_thread_detach): Likewise.
9484 * target-debug.h (target_debug_print_inferior_p): New macro.
9485 * target-delegates.c: Re-generate.
9486 * top.c (kill_or_detach): Pass inferior down to target_detach.
9487 * windows-nat.c (windows_detach): Add inferior parameter.
9488
6bd6f3b6
SM
94892018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9490
9491 * target.h (struct target_ops) <to_detach>: Remove args
9492 parameter.
9493 (target_detach): Likewise.
9494 * target.c (dispose_inferior): Adjust.
9495 (target_detach): Remove args parameter, adjust.
9496 * aix-thread.c (aix_thread_detach): Adjust.
9497 * corefile.c (core_file_command): Adjust.
9498 * corelow.c (core_detach): Adjust.
9499 * darwin-nat.c (darwin_detach): Adjust.
9500 * gnu-nat.c (gnu_detach): Adjust.
9501 * inf-ptrace.c (inf_ptrace_detach): Adjust.
9502 * infcmd.c (detach_command): Adjust
9503 * infrun.c (follow_fork_inferior): Adjust.
9504 (handle_vfork_child_exec_or_exit): Adjust.
9505 * linux-fork.c (linux_fork_detach): Remove args parameter.
9506 * linux-fork.h (linux_fork_detach): Likewise.
9507 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
9508 * linux-thread-db.c (thread_db_detach): Likewise.
9509 * nto-procfs.c (procfs_detach): Likewise.
9510 * procfs.c (procfs_detach): Likewise.
9511 (do_detach): Remove signo parameter.
9512 * record.c (record_detach): Remove args parameter.
9513 * record.h (record_detach): Likewise.
9514 * remote-sim.c (gdbsim_detach): Likewise.
9515 * remote.c (remote_detach_1): Likewise.
9516 (remote_detach): Likewise.
9517 (extended_remote_detach): Likewise.
9518 * sol-thread.c (sol_thread_detach): Likewise.
9519 * target-delegates.c: Re-generate.
9520 * top.c (struct qt_args) <args>: Remove field.
9521 (kill_or_detach): Don't pass args.
9522 (quit_force): Don't set args.
9523 * windows-nat.c (windows_detach): Remove args parameter.
9524
88af8ea8
YQ
95252018-01-19 Yao Qi <yao.qi@linaro.org>
9526
9527 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
9528 (arm_linux_init_abi): Install it.
9529
dea445b9
YQ
95302018-01-19 Yao Qi <yao.qi@linaro.org>
9531
9532 * osabi.c (gdb_osabi_names): Extend the regexp for
9533 arm-linux-gnueabihf.
9534
4a17f768
YQ
95352018-01-18 Yao Qi <yao.qi@linaro.org>
9536
9537 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
9538 m_abbrevs.
9539 (abbrev_table::add_abbrev): Update.
9540 (abbrev_table::lookup_abbrev): Update.
9541
d679c21a
YQ
95422018-01-18 Yao Qi <yao.qi@linaro.org>
9543
9544 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
9545
7d937cad
SDJ
95462018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9547
9548 * compile/compile.c (compile_to_object): Convert "triplet_rx"
9549 to "std::string".
9550
9e14690d
TT
95512018-01-17 Tom Tromey <tom@tromey.com>
9552
9553 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
9554
50a82047
TT
95552018-01-17 Tom Tromey <tom@tromey.com>
9556
9557 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
9558 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
9559 (create_array_type_with_stride): Update.
9560 * dwarf2read.c (set_die_type): Update.
9561
c89b44cd
TT
95622018-01-17 Tom Tromey <tom@tromey.com>
9563
9564 * dwarf2read.c (delayed_method_info): Remove typedef.
9565 (dwarf2_cu::method_info): Now a std::vector.
9566 (add_to_method_list): Update.
9567 (free_delayed_list): Remove.
9568 (compute_delayed_physnames): Update.
9569 (process_full_comp_unit, process_full_type_unit): Clear the method
9570 list. Remove cleanups.
9571 (psymtab_include_file_name): Add name_holder parameter. Use
9572 unique_xmalloc_ptr.
9573 (dwarf_decode_lines): Update.
9574
fcd3b13d
SM
95752018-01-17 Tom Tromey <tom@tromey.com>
9576 Simon Marchi <simon.marchi@ericsson.com>
9577
9578 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
9579 (dwarf2_per_objfile::free_cached_comp_units)
9580 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
9581 (init_cutu_and_read_dies_no_follow): Update.
9582 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
9583 (dwarf2_cu::~dwarf2_cu): New.
9584 (free_heap_comp_unit, free_stack_comp_unit): Remove.
9585 (age_cached_comp_units, free_one_cached_comp_unit): Update.
9586
685af9cd
TT
95872018-01-17 Tom Tromey <tom@tromey.com>
9588 Simon Marchi <simon.marchi@ericsson.com>
9589
9590 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
9591 (struct die_reader_specs) <abbrev_table>: New member.
9592 (struct abbrev_table): Add constructor.
9593 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
9594 <abbrev_obstack>: Now an auto_obstack.
9595 (abbrev_table_up): New typedef.
9596 (init_cu_die_reader): Add abbrev_table parameter.
9597 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
9598 Add result_dwo_abbrev_table.
9599 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
9600 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
9601 Update.
9602 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
9603 parameter.
9604 (skip_children): Update.
9605 (abbrev_table::alloc_abbrev): Rename from
9606 abbrev_table_alloc_abbrev.
9607 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
9608 (abbrev_table::lookup_abbrev): Rename from
9609 abbrev_table_lookup_abbrev.
9610 (abbrev_table_read_table): Return abbrev_table_up.
9611 (abbrev_table_free, abbrev_table_free_cleanup)
9612 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
9613 (load_partial_dies): Update.
9614
5e2db402
TT
96152018-01-17 Tom Tromey <tom@tromey.com>
9616
9617 * dwarf2read.c (dwarf2_compute_name): Update comment.
9618 (read_func_scope, read_variable): Update.
9619 (new_symbol): Remove.
9620 (new_symbol_full): Rename to new_symbol.
9621
ee7f689e 96222018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
9623
9624 PR gdb/16577
9625 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
9626 a warning instead of throwing an error, set section size to 0 and return
9627 NULL.
9628 * gdb_bfd.h (gdb_bfd_map_section): Update description.
9629
4d9b86e1
SM
96302018-01-17 Simon Marchi <simon.marchi@ericsson.com>
9631
9632 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
9633 std::string.
9634 (linux_ptrace_attach_fail_reason_string): Likewise.
9635 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
9636 Likewise.
9637 (linux_ptrace_attach_fail_reason_string): Likewise.
9638 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
9639
a7b2d0fb
SM
96402018-01-17 Simon Marchi <simon.marchi@ericsson.com>
9641
9642 * linux-nat.c (linux_nat_attach): Remove xstrdup.
9643
f517c180
EA
96442018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
9645
9646 PR gdb/21559
9647 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
9648 checking for fs_base/gs_base fields in struct user_regs_struct.
9649 * configure: Regenerate.
9650
7045b1ca
YQ
96512018-01-17 Yao Qi <yao.qi@linaro.org>
9652
9653 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
9654 function.
9655 (aarch64_linux_init_abi): Install it to gdbarch hook
9656 gcc_target_options.
9657
db422fb2
PA
96582018-01-15 Pedro Alves <palves@redhat.com>
9659
9660 * common/signals-state-save-restore.c
9661 (save_original_signals_state): Fix typos.
9662
ba643918
SDJ
96632017-01-12 Tom Tromey <tom@tromey.com>
9664 Sergio Durigan Junior <sergiodj@redhat.com>
9665
9666 * Makefile.in (install-only): Install gdb-add-index.
9667
906b4aac
JB
96682018-01-12 John Baldwin <jhb@FreeBSD.org>
9669
9670 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
9671
bdf2a94a
AA
96722018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9673
9674 * infrun.c (keep_going_pass_signal): Clear step-over info when
9675 insert_breakpoints fails.
9676
71d378ae
PA
96772018-01-11 Pedro Alves <palves@redhat.com>
9678
9679 PR gdb/22583
9680 * infrun.c (resume): Rename to ...
9681 (resume_1): ... this.
9682 (resume): Reimplement as wrapper around resume_1.
9683
3cada740
PA
96842018-01-11 Pedro Alves <palves@redhat.com>
9685
9686 PR remote/22597
9687 * remote.c (remote_parse_stop_reply): Default to the last-set
9688 general thread instead of to 'magic_null_ptid'.
9689
618daa93
PA
96902018-01-10 Pedro Alves <palves@redhat.com>
9691
9692 * language.h (language_get_symbol_name_matcher): Rename ...
9693 (get_symbol_name_matcher): ... this.
9694 * language.c (language_get_symbol_name_matcher): Ditto.
9695 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
9696 callers adjusted.
9697
c63d3e8d
PA
96982018-01-10 Pedro Alves <palves@redhat.com>
9699
9700 PR gdb/22670
9701 * dwarf2read.c
9702 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
9703 Adjust to use language_get_symbol_name_matcher instead of
9704 language_defn::la_get_symbol_name_matcher.
9705 * language.c (language_get_symbol_name_matcher): If in Ada mode
9706 and the lookup name is a verbatim match, return Ada's matcher.
9707 * language.h (language_get_symbol_name_matcher): Adjust comment.
9708 (ada_lookup_name_info::verbatim_p):: New method.
9709
d4c2a405
PA
97102018-01-10 Pedro Alves <palves@redhat.com>
9711
9712 PR gdb/22670
9713 * ada-lang.c (ada_collect_symbol_completion_matches): If the
9714 minsym's language is language_auto or language_cplus, pass down
9715 language_ada instead.
9716 * symtab.c (compare_symbol_name): Don't frob symbol language here.
9717
8825213e
PA
97182018-01-10 Pedro Alves <palves@redhat.com>
9719
9720 PR gdb/22670
9721 * minsyms.c (linkage_name_str): New function.
9722 (iterate_over_minimal_symbols): Use it.
9723
2d97a5d9
JB
97242018-01-09 John Baldwin <jhb@FreeBSD.org>
9725
9726 * NEWS: Document that 'info proc' now works on FreeBSD.
9727
92fce24d
JB
97282018-01-09 John Baldwin <jhb@FreeBSD.org>
9729
9730 * configure.ac: Check for kinfo_getfile in libutil.
9731 * configure: Regenerate.
9732 * config.in: Regenerate.
9733 * fbsd-nat.c: Include "fbsd-tdep.h".
9734 (fbsd_fetch_cmdline): New.
9735 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
9736 rather than calling error.
9737 (fbsd_info_proc): New.
9738 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
9739 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
9740 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
9741
262f62f5
JB
97422018-01-09 John Baldwin <jhb@FreeBSD.org>
9743
9744 * fbsd-nat.c (struct free_deleter): Remove.
9745 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
9746
b999e203
JB
97472018-01-09 John Baldwin <jhb@FreeBSD.org>
9748
9749 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
9750 NULL for an empty pathname.
9751
d2176225
JB
97522018-01-09 John Baldwin <jhb@FreeBSD.org>
9753
9754 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
9755 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
9756 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9757 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9758 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
9759 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
9760 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
9761 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
9762 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
9763 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
9764 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
9765 (fbsd_core_fetch_timeval, fbsd_print_sigset)
9766 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
9767 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
9768 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
9769
9c4ac400
ST
97702018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9771
9772 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
9773 (gnu_xfer_auxv): New function.
9774 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
9775 TARGET_OBJECT_AUXV.
9776
1e5ded6c
YQ
97772018-01-08 Yao Qi <yao.qi@linaro.org>
9778 Simon Marchi <simon.marchi@ericsson.com>
9779
9780 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
9781 common/selftest.c.
9782 (COMMON_OBS): Remove selftest.o.
9783 * configure.ac: Append selftest-arch.c and common/selftest.c to
9784 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
9785 * configure: Re-generated.
9786 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
9787 GDB_SELF_TEST.
9788 (maintenance_info_selftests): Likewise.
9789
04bafb1e
XR
97902018-01-08 Xavier Roirand <roirand@adacore.com>
9791
9792 * ada-valprint.c (val_print_packed_array_elements): Use
9793 proper number of elements when printing an array indexed
9794 by an enumeration type.
9795
518817b3
SM
97962018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9797
9798 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
9799 (dw2_get_file_names_reader): Adjust.
9800 (lookup_dwo_signatured_type): Adjust.
9801 (lookup_dwp_signatured_type): Adjust.
9802 (lookup_signatured_type): Adjust.
9803 (create_type_unit_group): Adjust.
9804 (get_type_unit_group): Adjust.
9805 (process_psymtab_comp_unit_reader): Adjust.
9806 (build_type_psymtabs_reader): Adjust.
9807 (scan_partial_symbols): Adjust.
9808 (add_partial_symbol): Adjust.
9809 (add_partial_subprogram): Adjust.
9810 (peek_die_abbrev): Adjust.
9811 (fixup_go_packaging): Adjust.
9812 (process_imported_unit_die): Adjust.
9813 (dwarf2_compute_name): Adjust.
9814 (dwarf2_physname): Adjust.
9815 (read_import_statement): Adjust.
9816 (handle_DW_AT_stmt_list): Adjust.
9817 (read_file_scope): Adjust.
9818 (read_func_scope): Adjust.
9819 (read_lexical_block_scope): Adjust.
9820 (read_call_site_scope): Adjust.
9821 (read_variable): Adjust.
9822 (dwarf2_rnglists_process): Adjust.
9823 (dwarf2_ranges_process): Adjust.
9824 (dwarf2_ranges_read): Adjust.
9825 (dwarf2_get_pc_bounds): Adjust.
9826 (dwarf2_record_block_ranges): Adjust.
9827 (dwarf2_add_field): Adjust.
9828 (dwarf2_add_member_fn): Adjust.
9829 (read_structure_type): Adjust.
9830 (process_structure_scope): Adjust.
9831 (read_enumeration_type): Adjust.
9832 (read_array_type): Adjust.
9833 (mark_common_block_symbol_computed): Adjust.
9834 (read_common_block): Adjust.
9835 (read_namespace_type): Adjust.
9836 (read_namespace): Adjust.
9837 (read_module_type): Adjust.
9838 (read_tag_pointer_type): Adjust.
9839 (read_tag_ptr_to_member_type): Adjust.
9840 (read_tag_string_type): Adjust.
9841 (read_subroutine_type): Adjust.
9842 (read_typedef): Adjust.
9843 (read_base_type): Adjust.
9844 (attr_to_dynamic_prop): Adjust.
9845 (read_subrange_type): Adjust.
9846 (read_unspecified_type): Adjust.
9847 (dwarf2_read_abbrevs): Adjust.
9848 (load_partial_dies): Adjust.
9849 (read_partial_die): Adjust.
9850 (find_partial_die): Adjust.
9851 (guess_partial_die_structure_name): Adjust.
9852 (fixup_partial_die): Adjust.
9853 (read_attribute_value): Adjust.
9854 (read_addr_index): Adjust.
9855 (read_addr_index_from_leb128): Adjust.
9856 (read_str_index): Adjust.
9857 (dwarf2_string_attr): Adjust.
9858 (get_debug_line_section): Adjust.
9859 (dwarf_decode_line_header): Adjust.
9860 (lnp_state_machine::check_line_address): Adjust.
9861 (dwarf_decode_lines_1): Adjust.
9862 (dwarf_decode_lines): Adjust.
9863 (dwarf2_start_symtab): Adjust.
9864 (var_decode_location): Adjust.
9865 (new_symbol_full): Adjust.
9866 (dwarf2_const_value_data): Adjust.
9867 (dwarf2_const_value_attr): Adjust.
9868 (dwarf2_const_value): Adjust.
9869 (die_type): Adjust.
9870 (die_containing_type): Adjust.
9871 (build_error_marker_type): Adjust.
9872 (lookup_die_type): Adjust.
9873 (guess_full_die_structure_name): Adjust.
9874 (anonymous_struct_prefix): Adjust.
9875 (determine_prefix): Adjust.
9876 (dwarf2_name): Adjust.
9877 (follow_die_ref_or_sig): Adjust.
9878 (follow_die_offset): Adjust.
9879 (follow_die_ref): Adjust.
9880 (follow_die_sig_1): Adjust.
9881 (follow_die_sig): Adjust.
9882 (get_signatured_type): Adjust.
9883 (get_DW_AT_signature_type): Adjust.
9884 (decode_locdesc): Adjust.
9885 (dwarf_decode_macros): Adjust.
9886 (cu_debug_loc_section): Adjust.
9887 (fill_in_loclist_baton): Adjust.
9888 (dwarf2_symbol_mark_computed): Adjust.
9889 (init_one_comp_unit): Don't assign
9890 dwarf2_cu::dwarf2_per_objfile.
9891 (set_die_type): Adjust.
9892
ed2dc618
SM
98932018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9894
9895 * dwarf2read.c (struct mapped_debug_names): Add constructor.
9896 <dwarf2_per_objfile>: New field.
9897 (dwarf2_per_objfile): Remove global.
9898 (get_dwarf2_per_objfile): New function.
9899 (set_dwarf2_per_objfile): New function.
9900 (dwarf2_build_psymtabs_hard): Change objfile parameter to
9901 dwarf2_per_objfile.
9902 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
9903 (read_abbrev_offset): Likewise.
9904 (read_indirect_string): Likewise.
9905 (read_indirect_line_string): Likewise.
9906 (read_indirect_string_at_offset): Likewise.
9907 (read_indirect_string_from_dwz): Likewise.
9908 (dwarf2_find_containing_comp_unit): Change objfile parameter to
9909 dwarf2_per_objfile.
9910 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
9911 (create_all_comp_units): Change objfile parameter to
9912 dwarf2_per_objfile.
9913 (create_all_type_units): Likewise.
9914 (process_queue): Add dwarf2_per_objfile parameter.
9915 (read_and_check_comp_unit_head): Likewise.
9916 (lookup_dwo_unit_in_dwp): Likewise.
9917 (get_dwp_file): Likewise.
9918 (process_cu_includes): Likewise.
9919 (struct free_dwo_file_cleanup_data): New struct.
9920 (dwarf2_has_info): Use get_dwarf2_per_objfile and
9921 set_dwarf2_per_objfile.
9922 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
9923 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
9924 context, adjust calls.
9925 (dw2_instantiate_symtab): Likewise.
9926 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
9927 (dw2_get_cu): Likewise.
9928 (create_cu_from_index_list): Change objfile parameter to
9929 dwarf2_per_objfile.
9930 (create_cus_from_index_list): Get dwarf2_per_objfile from
9931 context, adjust calls.
9932 (create_cus_from_index): Likewise.
9933 (create_signatured_type_table_from_index): Change objfile
9934 parameter to dwarf2_per_objfile.
9935 (create_signatured_type_table_from_debug_names): Change objfile
9936 parameter to dwarf2_per_objfile.
9937 (create_addrmap_from_index): Likewise.
9938 (create_addrmap_from_aranges): Likewise.
9939 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
9940 (dw2_setup): Remove.
9941 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
9942 context.
9943 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
9944 get_dwarf2_per_objfile.
9945 (dw2_forget_cached_source_info): Likewise.
9946 (dw2_map_symtabs_matching_filename): Likewise.
9947 (struct dw2_symtab_iterator) <index>: Remove.
9948 <dwarf2_per_objfile>: New field.
9949 (dw2_symtab_iter_init): Replace index parameter with
9950 dwarf2_per_objfile.
9951 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
9952 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
9953 (dw2_print_stats): Likewise.
9954 (dw2_dump): Likewise.
9955 (dw2_expand_symtabs_for_function): Likewise.
9956 (dw2_expand_all_symtabs): Likewise.
9957 (dw2_expand_symtabs_with_fullname): Likewise.
9958 (dw2_expand_marked_cus): Replace index and objfile parameters
9959 with dwarf2_per_objfile.
9960 (dw_expand_symtabs_matching_file_matcher): Add
9961 dwarf2_per_objfile parameter and adjust calls.
9962 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
9963 adjust calls.
9964 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
9965 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
9966 adjust calls.
9967 (create_cus_from_debug_names_list): Replace objfile parameter
9968 with dwarf2_per_objfile and adjust calls.
9969 (create_cus_from_debug_names): Likewise.
9970 (dwarf2_read_debug_names): Likewise.
9971 (mapped_debug_names::namei_to_name): Adjust call.
9972 (dw2_debug_names_iterator::next): Likewise.
9973 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9974 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
9975 (dw2_debug_names_dump): Likewise.
9976 (dw2_debug_names_expand_symtabs_for_function): Likewise.
9977 (dw2_debug_names_expand_symtabs_matching): Likewise.
9978 (dwarf2_initialize_objfile): Likewise.
9979 (dwarf2_build_psymtabs): Likewise.
9980 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
9981 this_cu.
9982 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
9983 (read_and_check_comp_unit_head): Likewise.
9984 (read_abbrev_offset): Likewise.
9985 (create_debug_type_hash_table): Likewise.
9986 (create_debug_types_hash_table): Likewise.
9987 (create_all_type_units): Replace objfile parameter with
9988 dwarf2_per_objfile.
9989 (add_type_unit): Add dwarf2_per_objfile parameter.
9990 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
9991 with dwarf2_per_objfile.
9992 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
9993 (lookup_dwp_signatured_type): Likewise.
9994 (lookup_signatured_type): Likewise.
9995 (read_cutu_die_from_dwo): Likewise.
9996 (init_tu_and_read_dwo_dies): Likewise.
9997 (init_cutu_and_read_dies): Likewise.
9998 (init_cutu_and_read_dies_no_follow): Likewise.
9999 (allocate_type_unit_groups_table): Add objfile parameter.
10000 (create_type_unit_group): Use dwarf2_per_objfile from cu.
10001 (get_type_unit_group): Likewise.
10002 (process_psymtab_comp_unit): Update call.
10003 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
10004 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
10005 (print_tu_stats): Likewise.
10006 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
10007 in void* parameter.
10008 (build_type_psymtabs): Change objfile parameter to
10009 dwarf2_per_objfile.
10010 (process_skeletonless_type_unit): Use dwarf2_per_objfile
10011 passed in void* parameter.
10012 (process_skeletonless_type_units): Change objfile parameter to
10013 dwarf2_per_objfile.
10014 (set_partial_user): Likewise.
10015 (dwarf2_build_psymtabs_hard): Likewise.
10016 (read_comp_units_from_section): Likewise.
10017 (create_all_comp_units): Likewise.
10018 (scan_partial_symbols): Update calls.
10019 (add_partial_symbol): Likewise.
10020 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
10021 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
10022 (process_queue): Add dwarf2_per_objfile parameter.
10023 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
10024 (compute_compunit_symtab_includes): Likewise.
10025 (process_cu_includes): Add dwarf2_per_objfile parameter.
10026 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
10027 (process_full_type_unit): Likewise.
10028 (process_imported_unit_die): Update call.
10029 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
10030 (read_file_scope): Likewise.
10031 (allocate_dwo_file_hash_table): Add objfile parameter.
10032 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
10033 (create_cus_hash_table): Likewise.
10034 (create_dwp_hash_table): Likewise.
10035 (create_dwo_unit_in_dwp_v1): Likewise.
10036 (create_dwp_v2_section): Likewise.
10037 (create_dwo_unit_in_dwp_v2): Likewise.
10038 (lookup_dwo_unit_in_dwp): Likewise.
10039 (try_open_dwop_file): Likewise.
10040 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
10041 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
10042 cleanup to include a reference to dwarf2_per_objfile.
10043 (open_dwp_file): Add dwarf2_per_objfile parameter.
10044 (open_and_init_dwp_file): Likewise.
10045 (get_dwp_file): Likewise.
10046 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
10047 (queue_and_load_all_dwo_tus): Update call.
10048 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
10049 data.
10050 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
10051 (dwarf2_ranges_process): Likewise.
10052 (dwarf2_get_pc_bounds): Likewise.
10053 (mark_common_block_symbol_computed): Likewise.
10054 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
10055 (dwarf2_read_abbrevs): Update call.
10056 (read_partial_die): Use dwarf2_per_objfile from cu.
10057 (find_partial_die): Likewise.
10058 (fixup_partial_die): Likewise.
10059 (read_attribute_value): Likewise.
10060 (read_indirect_string_at_offset_from): Add objfile parameter.
10061 (read_indirect_string_at_offset): Add dwarf2_per_objfile
10062 parameter.
10063 (read_indirect_string_from_dwz): Add objfile parameter.
10064 (read_indirect_string): Add objfile parameter.
10065 (read_addr_index_1): Add dwarf2_per_objfile parameter.
10066 (read_addr_index): Use dwarf2_per_objfile from cu.
10067 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
10068 call dw2_setup.
10069 (read_str_index): Use dwarf2_per_objfile from cu.
10070 (get_debug_line_section): Likewise.
10071 (read_formatted_entries): Add dwarf2_per_objfile parameter.
10072 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
10073 (new_symbol_full): Use dwarf2_per_objfile from cu.
10074 (build_error_marker_type): Likewise.
10075 (lookup_die_type): Likewise.
10076 (determine_prefix): Likewise.
10077 (follow_die_offset): Likewise.
10078 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
10079 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
10080 (dwarf2_fetch_die_type_sect_off): Likewise.
10081 (dwarf2_get_die_type): Likewise.
10082 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
10083 (get_signatured_type): Likewise.
10084 (get_DW_AT_signature_type): Likewise.
10085 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
10086 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
10087 (cu_debug_loc_section): Likewise.
10088 (fill_in_loclist_baton): Likewise.
10089 (dwarf2_symbol_mark_computed): Likewise.
10090 (dwarf2_find_containing_comp_unit): Change objfile parameter to
10091 dwarf2_per_objfile.
10092 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
10093 parameter.
10094 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
10095 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
10096 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
10097 (set_die_type): Use dwarf2_free_objfile from cu.
10098 (get_die_type_at_offset): Likewise.
10099 (dwarf2_per_objfile_free): Don't assign global variable.
10100 (debug_names) <constructor>: Add dwarf2_per_objfile
10101 parameter, update m_debugstrlookup construction.
10102 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
10103 parameter.
10104 <m_dwarf2_per_objfile>: New field.
10105 <lookup>: Use m_dwarf2_per_objfile.
10106 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
10107 (psyms_seen_size): Likewise.
10108 (write_gdbindex): Replace objfile parameter with
10109 dwarf2_per_objfile.
10110 (write_debug_names): Likewise.
10111 (write_psymtabs_to_index): Likewise.
10112 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
10113 calls.
10114
e3b94546
SM
101152018-01-07 Simon Marchi <simon.marchi@ericsson.com>
10116
10117 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
10118 <dwarf2_per_objfile>: New field.
10119 (struct dwarf2_per_cu_data) <objfile>: Remove.
10120 <dwarf2_per_objfile>: New field.
10121 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
10122 of objfile.
10123 (create_signatured_type_table_from_index): Likewise.
10124 (create_debug_type_hash_table): Likewise.
10125 (fill_in_sig_entry_from_dwo_entry): Likewise.
10126 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
10127 (create_type_unit_group): Assign dwarf2_per_objfile instead of
10128 objfile.
10129 (create_partial_symtab): Access objfile through
10130 dwarf2_per_objfile.
10131 (process_psymtab_comp_unit_reader): Likewise.
10132 (read_comp_units_from_section): Likewise.
10133 (scan_partial_symbols): Likewise.
10134 (add_partial_symbol): Likewise.
10135 (add_partial_subprogram): Likewise.
10136 (peek_die_abbrev): Likewise.
10137 (fixup_go_packaging): Likewise.
10138 (process_full_comp_unit): Likewise.
10139 (process_full_type_unit): Likewise.
10140 (process_imported_unit_die): Likewise.
10141 (dwarf2_compute_name): Likewise.
10142 (dwarf2_physname): Likewise.
10143 (read_import_statement): Likewise.
10144 (create_cus_hash_table): Assign dwarf2_physname instead of
10145 objfile.
10146 (read_func_scope): Access objfile through dwarf2_per_objfile.
10147 (read_lexical_block_scope): Likewise.
10148 (read_call_site_scope): Likewise.
10149 (read_variable): Likewise.
10150 (dwarf2_rnglists_process): Likewise.
10151 (dwarf2_ranges_process): Likewise.
10152 (dwarf2_ranges_read): Likewise.
10153 (dwarf2_record_block_ranges): Likewise.
10154 (dwarf2_add_field): Likewise.
10155 (dwarf2_add_member_fn): Likewise.
10156 (read_structure_type): Likewise.
10157 (process_structure_scope): Likewise.
10158 (read_enumeration_type): Likewise.
10159 (read_array_type): Likewise.
10160 (read_common_block): Likewise.
10161 (read_namespace_type): Likewise.
10162 (read_namespace): Likewise.
10163 (read_module_type): Likewise.
10164 (read_tag_pointer_type): Likewise.
10165 (read_tag_ptr_to_member_type): Likewise.
10166 (read_tag_string_type): Likewise.
10167 (read_subroutine_type): Likewise.
10168 (read_typedef): Likewise.
10169 (read_base_type): Likewise.
10170 (attr_to_dynamic_prop): Likewise.
10171 (read_subrange_type): Likewise.
10172 (read_unspecified_type): Likewise.
10173 (load_partial_dies): Likewise.
10174 (read_partial_die): Likewise.
10175 (find_partial_die): Likewise.
10176 (guess_partial_die_structure_name): Likewise.
10177 (fixup_partial_die): Likewise.
10178 (read_attribute_value): Likewise.
10179 (read_addr_index_from_leb128): Likewise.
10180 (dwarf2_read_addr_index): Likewise.
10181 (dwarf2_string_attr): Likewise.
10182 (lnp_state_machine::check_line_address): Likewise.
10183 (dwarf_decode_lines_1): Likewise.
10184 (dwarf_decode_lines): Likewise.
10185 (dwarf2_start_symtab): Likewise.
10186 (var_decode_location): Likewise.
10187 (new_symbol_full): Likewise.
10188 (dwarf2_const_value_data): Likewise.
10189 (dwarf2_const_value_attr): Likewise.
10190 (dwarf2_const_value): Likewise.
10191 (die_type): Likewise.
10192 (die_containing_type): Likewise.
10193 (lookup_die_type): Likewise.
10194 (guess_full_die_structure_name): Likewise.
10195 (anonymous_struct_prefix): Likewise.
10196 (dwarf2_name): Likewise.
10197 (follow_die_ref_or_sig): Likewise.
10198 (follow_die_offset): Likewise.
10199 (follow_die_ref): Likewise.
10200 (dwarf2_fetch_die_loc_sect_off): Likewise.
10201 (dwarf2_fetch_constant_bytes): Likewise.
10202 (dwarf2_fetch_die_type_sect_off): Likewise.
10203 (dwarf2_get_die_type): Likewise.
10204 (follow_die_sig): Likewise.
10205 (decode_locdesc): Likewise.
10206 (dwarf2_per_cu_objfile): Likewise.
10207 (dwarf2_per_cu_text_offset): Likewise.
10208 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
10209 objfile.
10210 (set_die_type): Access objfile through
10211 dwarf2_per_objfile.
10212
b01ba14d
SM
102132018-01-07 Simon Marchi <simon.marchi@ericsson.com>
10214
10215 * valprint.c (converted_character_d): Remove typedef.
10216 (DEF_VEC_O (converted_character_d)): Remove.
10217 (count_next_character): Use std::vector.
10218 (print_converted_chars_to_obstack): Likewise.
10219 (generic_printstr): Likewise.
10220
4d0fdd9b
SM
102212018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10222
10223 * xml-support.h (struct gdb_xml_value): Add constructor.
10224 <value>: Change type to unique_xmalloc_ptr.
10225 (gdb_xml_value_s): Remove typedef.
10226 (DEF_VEC_O (gdb_xml_value_s)): Remove.
10227 (gdb_xml_element_start_handler): Change parameter type to
10228 std::vector.
10229 (xml_find_attribute): Likewise.
10230 * xml-support.c (xml_find_attribute): Change parameter type to
10231 std::vector and adjust.
10232 (gdb_xml_values_cleanup): Remove.
10233 (gdb_xml_parser::start_element): Adjust to std::vector.
10234 (xinclude_start_include): Change paraeter type to std::vector
10235 and adjust.
10236 * btrace.c (check_xml_btrace_version): Likewise.
10237 (parse_xml_btrace_block): Likewise.
10238 (parse_xml_btrace_pt_config_cpu): Likewise.
10239 (parse_xml_btrace_pt): Likewise.
10240 (parse_xml_btrace_conf_bts): Likewise.
10241 (parse_xml_btrace_conf_pt): Likewise.
10242 * memory-map.c (memory_map_start_memory): Likewise.
10243 (memory_map_start_property): Likewise.
10244 * osdata.c (osdata_start_osdata): Likewise.
10245 (osdata_start_item): Likewise.
10246 (osdata_start_column): Likewise.
10247 * remote.c (start_thread): Likewise.
10248 * solib-aix.c (library_list_start_library): Likewise.
10249 (library_list_start_list): Likewise.
10250 * solib-svr4.c (library_list_start_library): Likewise.
10251 (svr4_library_list_start_list): Likewise.
10252 * solib-target.c (library_list_start_segment): Likewise.
10253 (library_list_start_section): Likewise.
10254 (library_list_start_library): Likewise.
10255 (library_list_start_list): Likewise.
10256 * tracepoint.c (traceframe_info_start_memory): Likewise.
10257 (traceframe_info_start_tvar): Likewise.
10258 * xml-syscall.c (syscall_start_syscall): Likewise.
10259 * xml-tdesc.c (tdesc_start_target): Likewise.
10260 (tdesc_start_feature): Likewise.
10261 (tdesc_start_reg): Likewise.
10262 (tdesc_start_union): Likewise.
10263 (tdesc_start_struct): Likewise.
10264 (tdesc_start_flags): Likewise.
10265 (tdesc_start_enum): Likewise.
10266 (tdesc_start_field): Likewise.
10267 (tdesc_start_enum_value): Likewise.
10268 (tdesc_start_vector): Likewise.
10269
f979c73f
SM
102702018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10271
10272 * extension.h (struct xmethod_worker) <clone>: Remove.
10273 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
10274 Remove.
10275 (python_xmethod_worker::clone): Remove.
10276 * valops.c (find_overload_match): Use std::move instead of
10277 clone.
10278
ba18742c
SM
102792018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10280
10281 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
10282 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
10283 <free_xmethod_worker_data>: Remove.
10284 <get_matching_xmethod_workers>: Chance VEC to std::vector.
10285 <get_xmethod_arg_types>: Remove.
10286 <get_xmethod_result_type>: Remove.
10287 <invoke_xmethod>: Remove.
10288 * extension.c (new_xmethod_worker): Remove.
10289 (clone_xmethod_worker): Remove.
10290 (get_matching_xmethod_workers): Return void, pass std::vector by
10291 pointer.
10292 (get_xmethod_arg_types): Rename to...
10293 (xmethod_worker::get_arg_types): ... this, and adjust.
10294 (get_xmethod_result_type): Rename to...
10295 (xmethod_worker::get_result_type): ... this, and adjust.
10296 (invoke_xmethod): Remove.
10297 (free_xmethod_worker): Remove.
10298 (free_xmethod_worker_vec): Remove.
10299 * extension.h (enum ext_lang_rc): Move here from
10300 extension-priv.h.
10301 (struct xmethod_worker): Add constructor and destructor.
10302 <data>: Remove.
10303 <value>: Remove.
10304 <invoke, clone, do_get_result_type, do_get_arg_types>: New
10305 virtual pure methods.
10306 <get_arg_types, get_result_type>: New methods.
10307 (xmethod_worker_ptr): Remove typedef.
10308 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
10309 (xmethod_worker_vec): Remove typedef.
10310 (xmethod_worker_up): New typedef.
10311 (invoke_xmethod): Remove.
10312 (clone_xmethod_worker): Remove.
10313 (free_xmethod_worker): Remove.
10314 (free_xmethod_worker_vec): Remove.
10315 (get_xmethod_arg_types): Remove.
10316 (get_xmethod_result_type): Remove.
10317 * valops.c (find_method_list): Use std::vector, don't use
10318 intermediate vector.
10319 (value_find_oload_method_list): Use std::vector.
10320 (find_overload_match): Use std::vector.
10321 (find_oload_champ): Use std::vector.
10322 * value.c (value_free): Use operator delete.
10323 (value_of_xmethod): Rename to...
10324 (value_from_xmethod): ... this. Don't assign
10325 xmethod_worker::value, take rvalue-reference.
10326 (result_type_of_xmethod): Adjust.
10327 (call_xmethod): Adjust.
10328 * value.h: Include extension.h.
10329 (struct xmethod_worker): Don't forward-declare.
10330 (value_of_xmethod): Rename to...
10331 (value_from_xmethod): ... this, take rvalue-reference.
10332 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
10333 (struct python_xmethod_worker): ... this, add constructor and
10334 destructor.
10335 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
10336 (gdbpy_free_xmethod_worker_data): Rename to...
10337 (python_xmethod_worker::~python_xmethod_worker): ... this and
10338 adjust.
10339 (gdbpy_clone_xmethod_worker_data): Rename to...
10340 (python_xmethod_worker::clone): ... this and adjust.
10341 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
10342 temporary vector.
10343 (gdbpy_get_xmethod_arg_types): Rename to...
10344 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
10345 (gdbpy_get_xmethod_result_type): Rename to...
10346 (python_xmethod_worker::do_get_result_type): ... this and
10347 adjust.
10348 (gdbpy_invoke_xmethod): Rename to...
10349 (python_xmethod_worker::invoke): ... this and adjust.
10350 (new_python_xmethod_worker): Rename to...
10351 (python_xmethod_worker::python_xmethod_worker): ... this and
10352 adjust.
10353 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
10354 Remove.
10355 (gdbpy_free_xmethod_worker_data): Remove.
10356 (gdbpy_get_matching_xmethod_workers): Use std::vector.
10357 (gdbpy_get_xmethod_arg_types): Remove.
10358 (gdbpy_get_xmethod_result_type): Remove.
10359 (gdbpy_invoke_xmethod): Remove.
10360 * python/python.c (python_extension_ops): Remove obsolete
10361 callbacks.
10362
e379cee6
PA
103632018-01-05 Pedro Alves <palves@redhat.com>
10364
10365 PR gdb/18653
10366 * common/signals-state-save-restore.c
10367 (save_original_signals_state): New parameter 'quiet'. Warn if we
10368 find a custom handler preinstalled, instead of internal erroring.
10369 But only warn if !quiet.
10370 * common/signals-state-save-restore.h
10371 (save_original_signals_state): New parameter 'quiet'.
10372 * main.c (captured_main_1): Move save_original_signals_state call
10373 after option handling, and pass QUIET.
10374
a655456c
PA
103752018-01-05 Pedro Alves <palves@redhat.com>
10376
10377 * spu-tdep.c (spu_catch_start): Pass
10378 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
10379
de63c46b
PA
103802018-01-05 Pedro Alves <palves@redhat.com>
10381
10382 PR gdb/22670
10383 * ada-lang.c (literal_symbol_name_matcher): New function.
10384 (ada_get_symbol_name_matcher): Use it for
10385 symbol_name_match_type::SEARCH_NAME.
10386 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
10387 it down instead of assuming symbol_name_match_type::FULL.
10388 * block.h (block_lookup_symbol): New parameter 'match_type'.
10389 * c-valprint.c (print_unpacked_pointer): Use
10390 lookup_symbol_search_name instead of lookup_symbol.
10391 * compile/compile-object-load.c (get_out_value_type): Pass down
10392 symbol_name_match_type::SEARCH_NAME.
10393 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
10394 symbol_name_match_type::FULL.
10395 * cp-support.c (cp_get_symbol_name_matcher): Handle
10396 symbol_name_match_type::SEARCH_NAME.
10397 * infrun.c (insert_exception_resume_breakpoint): Use
10398 lookup_symbol_search_name.
10399 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
10400 * psymtab.c (maintenance_check_psymtabs): Use
10401 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
10402 * stack.c (print_frame_args): Use lookup_symbol_search_name and
10403 SYMBOL_SEARCH_NAME.
10404 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
10405 if symbol_name_match_type::SEARCH_NAME.
10406 (lookup_symbol_in_language): Pass down
10407 symbol_name_match_type::FULL.
10408 (lookup_symbol_search_name): New.
10409 (lookup_language_this): Pass down
10410 symbol_name_match_type::SEARCH_NAME.
10411 (lookup_symbol_aux, lookup_local_symbol): New parameter
10412 'match_type'. Pass it down.
10413 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
10414 (lookup_symbol_search_name): New declaration.
10415 (lookup_symbol_in_block): New 'match_type' parameter.
10416
f98fc17b
PA
104172018-01-05 Pedro Alves <palves@redhat.com>
10418
10419 PR gdb/22670
10420 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
10421 ada_lookup_symbol.
10422 (ada_lookup_symbol): Reimplement in terms of
10423 ada_lookup_symbol_list, bits factored out from
10424 ada_lookup_encoded_symbol.
10425
342f8240
JB
104262018-01-05 Joel Brobecker <brobecker@adacore.com>
10427
10428 * ada-exp.y (write_object_renaming): When subscripting an array
10429 using a symbol as the index, pass the block in call to
10430 ada_lookup_encoded_symbol when looking that symbol up.
10431
7150d33c
JG
104322018-01-05 Jerome Guitton <guitton@adacore.com>
10433
10434 * ada-lang.c (ada_array_length): Use ada_index_type instead of
10435 TYPE_INDEX_TYPE.
10436
cc0e770c
JB
104372018-01-05 Joel Brobecker <brobecker@adacore.com>
10438
10439 * ada-lang.c (ada_to_fixed_value_create): Add handling of
10440 the case where VALUE_LVAL (val0) is not lval_memory.
10441
f79da888 104422018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
10443
10444 * ada-valprint.c (print_optional_low_bound): Handle
10445 character-indexed array printing like boolean-indexed array
10446 printing.
10447
cd385f94
JB
104482018-01-05 Joel Brobecker <brobecker@adacore.com>
10449
10450 * NEWS: Create a new section for the next release branch.
10451 Rename the section of the current branch, now that it has
10452 been cut.
10453
09aca949
JB
104542018-01-05 Joel Brobecker <brobecker@adacore.com>
10455
10456 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
10457 * version.in: Bump version to 8.1.50.DATE-git.
10458
9f757bf7
XR
104592018-01-03 Xavier Roirand <roirand@adacore.com>
10460
10461 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
10462 Add field.
10463 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
10464 Add field.
10465 (default_exception_support_info) <catch_handlers_sym>: Add field.
10466 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
10467 (ada_exception_name_addr_1): Add "catch handlers" handling.
10468 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
10469 Update all callers.
10470 (create_excep_cond_exprs) <ex>: Add parameter.
10471 (re_set_exception): Update create_excep_cond_exprs call.
10472 (print_it_exception, print_one_exception, print_mention_exception)
10473 (print_recreate_exception): Add "catch handler" handling.
10474 (allocate_location_catch_handlers, re_set_catch_handlers)
10475 (check_status_catch_handlers, print_it_catch_handlers)
10476 (print_one_catch_handlers, print_mention_catch_handlers)
10477 (print_recreate_catch_handlers): New function.
10478 (catch_handlers_breakpoint_ops): New variable.
10479 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
10480 Add parameter. Add "catch handler" handling.
10481 (ada_exception_sym_name, ada_exception_breakpoint_ops):
10482 Add "catch handler" handling.
10483 (ada_exception_catchpoint_cond_string): Add "catch handler"
10484 handling.
10485 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
10486 call.
10487 (catch_ada_handlers_command): New function.
10488 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
10489 operations structure.
10490 (_initialize_ada_language): Add "catch handlers" command entry.
10491 * NEWS: Document "catch handlers" feature.
10492
9fe561ab
JB
104932018-01-02 Joel Brobecker <brobecker@adacore.com>
10494
10495 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
10496 account when creating the array type of the slice.
10497 (ada_value_slice): Likewise.
10498
a405673c
JB
104992018-01-02 Joel Brobecker <brobecker@adacore.com>
10500
10501 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
10502 New enum value.
10503 (create_array_type_with_stride): Add byte_stride_prop parameter.
10504 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
10505 New parameter. Update all callers in this file.
10506 (array_type_has_dynamic_stride): New function.
10507 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
10508 of arrays with dynamic byte strides.
10509 * dwarf2read.c (read_array_type): Add support for dynamic
10510 DW_AT_byte_stride attributes.
10511
74a2f8ff
JB
105122018-01-02 Joel Brobecker <brobecker@adacore.com>
10513
10514 * dwarf2read.c (read_unspecified_type): Treat
10515 DW_TAG_enumeration_type DIEs from Ada units as stubs.
10516
e2882c85
JB
105172018-01-01 Joel Brobecker <brobecker@adacore.com>
10518
10519 Update copyright year range in all GDB files.
10520
1690bb24
JB
105212018-01-01 Joel Brobecker <brobecker@adacore.com>
10522
10523 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
10524 and gdb/testsuite/gdb.base/step-line.c.
10525
0f0c98a8
JB
105262018-01-01 Joel Brobecker <brobecker@adacore.com>
10527
10528 * copyright.py (main): Dump the contents of
10529 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
10530 even if BY_HAND is empty.
10531
82e1e79a
JB
105322018-01-01 Joel Brobecker <brobecker@adacore.com>
10533
10534 * top.c (print_gdb_version): Update Copyright year in version
10535 message.
10536
053f54e5 105372018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 10538
053f54e5 10539 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 10540
053f54e5 10541For older changes see ChangeLog-2017.
c906108c
SS
10542\f
10543Local Variables:
10544mode: change-log
10545left-margin: 8
10546fill-column: 74
10547version-control: never
57da7796 10548coding: utf-8
c906108c 10549End:
This page took 3.475403 seconds and 4 git commands to generate.