Reindent cli-out.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e427af18
TT
12018-04-24 Tom Tromey <tom@tromey.com>
2
3 * cli-out.h: Reindent.
4
05b1d8d6
TT
52018-04-24 Tom Tromey <tom@tromey.com>
6
7 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8 (cli_ui_out::do_field_string): Use fputs_filtered.
9 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10
a95c7dab
TT
112018-04-23 Tom Tromey <tom@tromey.com>
12
13 * guile/scm-frame.c (gdbscm_frame_read_var): Use
14 gdb::unique_xmalloc_ptr.
15
458412c3
TT
162018-04-23 Tom Tromey <tom@tromey.com>
17
18 * configure: Rebuild.
19
db86b02b
RS
202018-04-22 Rajendra SY <rajendra.sy@gmail.com>
21
22 PR gdb/23095
23 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
24 prepare_for_testing. Set normal_bp to r_debug_state if target
25 is bsd.
26
00aecdcf
PA
272018-04-21 Pedro Alves <palves@redhat.com>
28 Rajendra SY <rajendra.sy@gmail.com>
29
30 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
31 * remote.c (extended_remote_attach): In all-stop mode, mark the
32 thread as executing.
33
224608c3
PW
342018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
35
36 * thread.c (thread_apply_all_command): Fix comment.
37 (thread_command): Fix comment.
38
3b74854b
AH
392018-04-10 Alan Hayward <alan.hayward@arm.com>
40
41 * common/tdesc.h (tdesc_create_feature): Remove xml filename
42 parameter.
43 * features/aarch64-core.c (create_feature_aarch64_core):
44 Regenerate.
45 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
46 Likewise.
47 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
48 Likewise.
49 * features/i386/32bit-avx512.c
50 (create_feature_i386_32bit_avx512): Likewise.
51 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
52 Likewise.
53 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
54 Likewise.
55 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
56 Likewise.
57 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
58 Likewise.
59 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
60 Likewise.
61 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
62 Likewise.
63 * features/i386/64bit-avx512.c
64 (create_feature_i386_64bit_avx512): Likewise.
65 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
66 Likewise.
67 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
68 Likewise.
69 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
70 Likewise.
71 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
72 Likewise.
73 * features/i386/64bit-segments.c
74 (create_feature_i386_64bit_segments): Likewise.
75 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
76 Likewise.
77 * features/i386/x32-core.c
78 (create_feature_i386_x32_core): Likewise.
79 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
80 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
81 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
82 * target-descriptions.c: In generated code, don't pass xml
83 filename.
84
e98577a9
AH
852018-04-18 Alan Hayward <alan.hayward@arm.com>
86
87 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
88 (print_xml_feature::visit_post): Likewise.
89 (print_xml_feature::visit): Likewise.
90 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
91 (print_xml_feature): Add new class.
92 * regformats/regdat.sh: Null xmltarget on feature targets.
93 * target-descriptions.c (struct target_desc): Add xmltarget.
94 (maintenance_check_tdesc_xml_convert): Add unittest function.
95 (tdesc_get_features_xml): Add function to get xml.
96 (maintenance_check_xml_descriptions): Test xml generation.
97 * xml-tdesc.c (string_read_description_xml): Add function.
98 * xml-tdesc.h (string_read_description_xml): Add declaration.
99
ad7fc756
AH
1002018-04-18 Alan Hayward <alan.hayward@arm.com>
101
102 * features/Makefile: Add feature marker to targets with new style
103 target descriptions.
104 * regformats/aarch64.dat: Regenerate.
105 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
106 * regformats/i386/amd64-avx-linux.dat: Likewise.
107 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
108 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
109 * regformats/i386/amd64-linux.dat: Likewise.
110 * regformats/i386/amd64-mpx-linux.dat: Likewise.
111 * regformats/i386/amd64.dat: Likewise.
112 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
113 * regformats/i386/i386-avx-linux.dat: Likewise.
114 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
115 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
116 * regformats/i386/i386-linux.dat: Likewise.
117 * regformats/i386/i386-mmx-linux.dat: Likewise.
118 * regformats/i386/i386-mpx-linux.dat: Likewise.
119 * regformats/i386/i386.dat: Likewise.
120 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
121 * regformats/i386/x32-avx-linux.dat: Likewise.
122 * regformats/i386/x32-linux.dat: Likewise.
123 * regformats/tic6x-c62x-linux.dat: Likewise.
124 * regformats/tic6x-c64x-linux.dat: Likewise.
125 * regformats/tic6x-c64xp-linux.dat: Likewise.
126 * regformats/regdat.sh: Parse feature marker.
127
d278f585
AH
1282018-04-18 Alan Hayward <alan.hayward@arm.com>
129
130 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
131 (tdesc_osabi_name): Likewise.
132 * target-descriptions.c (tdesc_architecture_name): Add new
133 function.
134 (tdesc_osabi_name): Likewise.
135
eee8a18d
AH
1362018-04-18 Alan Hayward <alan.hayward@arm.com>
137
138 * common/tdesc.c (tdesc_predefined_type): Move to here.
139 (tdesc_named_type): Likewise.
140 (tdesc_create_vector): Likewise.
141 (tdesc_create_struct): Likewise.
142 (tdesc_set_struct_size): Likewise.
143 (tdesc_create_union): Likewise.
144 (tdesc_create_flags): Likewise.
145 (tdesc_create_enum): Likewise.
146 (tdesc_add_field): Likewise.
147 (tdesc_add_typed_bitfield): Likewise.
148 (tdesc_add_bitfield): Likewise.
149 (tdesc_add_flag): Likewise.
150 (tdesc_add_enum_value): Likewise.
151 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
152 (struct tdesc_type_vector): Likewise.
153 (struct tdesc_type_field): Likewise.
154 (struct tdesc_type_with_fields): Likewise.
155 (tdesc_create_enum): Add declaration.
156 (tdesc_add_typed_bitfield): Likewise.
157 (tdesc_add_enum_value): Likewise.
158 * target-descriptions.c (tdesc_type_field): Move from here.
159 (tdesc_type_builtin): Likewise.
160 (tdesc_type_vector): Likewise.
161 (tdesc_type_with_fields): Likewise.
162 (tdesc_predefined_types): Likewise.
163 (tdesc_named_type): Likewise.
164 (tdesc_create_vector): Likewise.
165 (tdesc_create_struct): Likewise.
166 (tdesc_set_struct_size): Likewise.
167 (tdesc_create_union): Likewise.
168 (tdesc_create_flags): Likewise.
169 (tdesc_create_enum): Likewise.
170 (tdesc_add_field): Likewise.
171 (tdesc_add_typed_bitfield): Likewise.
172 (tdesc_add_bitfield): Likewise.
173 (tdesc_add_flag): Likewise.
174 (tdesc_add_enum_value): Likewise.
175 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
176 (tdesc_add_typed_bitfield): Likewise.
177 (tdesc_add_enum_value): Likewise.
178
82ec9bc7
AH
1792018-04-18 Alan Hayward <alan.hayward@arm.com>
180
181 * common/tdesc.c (tdesc_feature::accept): Move to here.
182 (tdesc_feature::operator==): Likewise.
183 (tdesc_create_reg): Likewise.
184 * common/tdesc.h (tdesc_type_kind): Likewise.
185 (struct tdesc_type): Likewise.
186 (struct tdesc_feature): Likewise.
187 * regformats/regdat.sh: Create a feature.
188 * target-descriptions.c (tdesc_type_kind): Move from here.
189 (tdesc_type): Likewise.
190 (tdesc_type_up): Likewise.
191 (tdesc_feature): Likewise.
192 (tdesc_create_reg): Likewise.
193
ea3e7d71
AH
1942018-04-18 Alan Hayward <alan.hayward@arm.com>
195
196 * Makefile.in: Add arch/tdesc.c
197 * common/tdesc.c: New file.
198 * common/tdesc.h (tdesc_element_visitor): Move to here.
199 (tdesc_element): Likewise.
200 (tdesc_reg): Likewise.
201 (tdesc_reg_up): Likewise.
202 * regformats/regdef.h (reg): Add offset to constructors.
203 * target-descriptions.c (tdesc_element_visitor): Move from here.
204 (tdesc_element): Likewise.
205 (tdesc_reg): Likewise.
206 (tdesc_reg_up): Likewise.
207
bedda9ac
TT
2082018-04-17 Tom Tromey <tom@tromey.com>
209
210 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
211 discriminant field.
212
a037790e
TT
2132018-04-17 Tom Tromey <tom@tromey.com>
214
215 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
216
c7dcbf88
AA
2172018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
218
219 * symtab.c (print_symbol_info): Skip printing filename and line
220 number when `last' is NULL.
221 (symtab_symbol_info): Use empty string instead of NULL for first
222 invocation of print_symbol_info.
223 (rbreak_command): Pass NULL to `last' parameter of
224 print_symbol_info.
225
07d28c77
SM
2262018-04-16 Simon Marchi <simon.marchi@ericsson.com>
227
228 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
229 instead of nullptr.
230
8a3de5e1
PA
2312018-04-16 Pedro Alves <palves@redhat.com>
232
233 * MAINTAINERS (sh): Remove.
234 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
235 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
236 (ALLDEPFILES): Remove sh64-tdep.c.
237 * NEWS: Mentions that support for SH-5/SH64 is removed.
238 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
239 (sh*-*-openbsd*): Ditto.
240 (sh64-*-elf*): Remove.
241 (sh*): Remove.
242 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
243 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
244 * sh-tdep.c: No longer include "sh64-tdep.h".
245 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
246 * sh64-tdep.c, sh64-tdep.h: Remove files.
247
a2a79012
PA
2482018-04-16 Pedro Alves <palves@redhat.com>
249
250 * MAINTAINERS: Remove m88k.
251 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
252 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
253 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
254 * NEWS: Mention that support for m88k was removed.
255 * configure.host (m88*-*-*): Remove support.
256 * configure.nat (m88k-*-*): Remove support.
257 * configure.tgt (m88*-*-openbsd*): Remove.
258 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
259
eda4efb1
SM
2602018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * configure.tgt (x86_tobjs): New variable.
263 (amd64_tobjs, i386_tobjs): Use it.
264
b744723f
AA
2652018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
266
267 * symtab.c (print_symbol_info): Precede the symbol definition by
268 the line number when available.
269 * NEWS: Advertise this enhancement.
270
4a4495d6
MM
2712018-04-13 Markus Metzger <markus.t.metzger@intel.com>
272
273 * NEWS (New options): announce set/show record btrace cpu.
274 * btrace.c: Include record-btrace.h.
275 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
276 the vendor is unknown.
277 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
278 Maybe overwrite the btrace configuration's cpu.
279 (btrace_compute_ftrace): Add cpu parameter. Update callers.
280 (btrace_fetch): Add cpu parameter. Update callers.
281 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
282 Maybe overwrite the btrace configuration's cpu. Skip enabling
283 errata workarounds if the vendor is unknown.
284 * python/py-record-btrace.c: Include record-btrace.h.
285 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
286 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
287 * record-btrace.c (record_btrace_cpu_state_kind): New.
288 (record_btrace_cpu): New.
289 (set_record_btrace_cpu_cmdlist): New.
290 (record_btrace_get_cpu): New.
291 (require_btrace_thread, record_btrace_info)
292 (record_btrace_resume_thread): Call record_btrace_get_cpu.
293 (cmd_set_record_btrace_cpu_none): New.
294 (cmd_set_record_btrace_cpu_auto): New.
295 (cmd_set_record_btrace_cpu): New.
296 (cmd_show_record_btrace_cpu): New.
297 (_initialize_record_btrace): Initialize set/show record btrace cpu
298 commands.
299 * record-btrace.h (record_btrace_get_cpu): New.
300
69f90c75
MM
3012018-04-13 Markus Metzger <markus.t.metzger@intel.com>
302
303 * record.c (set_record_command): Fix typo in message.
304
b85310e1
MM
3052018-04-13 Markus Metzger <markus.t.metzger@intel.com>
306
307 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
308
1d509aa6
MM
3092018-04-13 Markus Metzger <markus.t.metzger@intel.com>
310
311 * infrun.c (process_event_stop_test): Call
312 gdbarch_in_indirect_branch_thunk.
313 * gdbarch.sh (in_indirect_branch_thunk): New.
314 * gdbarch.c: Regenerated.
315 * gdbarch.h: Regenerated.
316 * x86-tdep.h: New.
317 * x86-tdep.c: New.
318 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
319 (HFILES_NO_SRCDIR): Add x86-tdep.h.
320 (ALLDEPFILES): Add x86-tdep.c.
321 * arch-utils.h (default_in_indirect_branch_thunk): New.
322 * arch-utils.c (default_in_indirect_branch_thunk): New.
323 * i386-tdep: Include x86-tdep.h.
324 (i386_in_indirect_branch_thunk): New.
325 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
326 function.
327 * amd64-tdep: Include x86-tdep.h.
328 (amd64_in_indirect_branch_thunk): New.
329 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
330
b4be9bfd
JK
3312018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
332
333 PR gdb/23053
334 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
335 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
336 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
337 regression.
338
53d7df28
TT
3392018-04-12 Tom Tromey <tom@tromey.com>
340
341 * rust-lang.c (rust_print_struct_def): Remove univariant code.
342 (rust_evaluate_subexp): Likewise.
343
70b33f19
PA
3442018-04-12 Pedro Alves <palves@redhat.com>
345
346 * procfs.c (procfs_detach): Make forward declaration's prototype
347 match definition's protototype.
348 (proc_get_LDT_entry): Remove stale do_cleanups call.
349
436411b1
PA
3502018-04-12 Pedro Alves <palves@redhat.com>
351
352 * target.h (target_ops::to_has_exited): Delete.
353 (target_has_exited): Delete.
354 * target-delegates.c: Regenerate.
355
20db9c52
PA
3562018-04-11 Pedro Alves <palves@redhat.com>
357
358 * target.c (fileio_fh_t::t): Add comment.
359 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
360 (target_fileio_close): Handle a NULL target.
361 (invalidate_fileio_fh): New.
362 (target_close): Call it.
363 * remote.c (remote_hostio_send_command): No longer check whether
364 remote_desc is open.
365
5ff79300
PA
3662018-04-11 Pedro Alves <palves@redhat.com>
367
368 * target.c (fileio_fh_t): Make it a named struct instead of a
369 typedef.
370 (fileio_fh_t::is_closed): New method.
371 (DEF_VEC_O (fileio_fh_t)): Remove.
372 (fileio_fhandles): Now a std::vector.
373 (is_closed_fileio_fh): Delete.
374 (acquire_fileio_fd): Adjust. Rename parameters.
375 (release_fileio_fd): Adjust.
376 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
377 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
378 (target_fileio_close): Adjust.
379
6e22e10d
SM
3802018-04-10 Simon Marchi <simon.marchi@ericsson.com>
381
382 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
383 index.
384
731f534f
PA
3852018-04-10 Pedro Alves <palves@redhat.com>
386
387 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
388 (scoped_finish_thread_state): New class.
389 * infcmd.c (run_command_1): Use it instead of finish_thread_state
390 cleanup.
391 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
392 (fetch_inferior_event, normal_stop): Likewise.
393 * thread.c (finish_thread_state_cleanup): Delete.
394
d5f4488f
SM
3952018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
396 Pedro Alves <palves@redhat.com>
397
398 * value.c: Include "selftest.h" and "common/array-view.h".
399 (struct range) <operator ==>: New.
400 (test_ranges_contain): New.
401 (check_ranges_vector): New.
402 (test_insert_into_bit_range_vector): New.
403 (_initialize_values): Register selftests.
404 * common/array-view.h (operator==, operator!=): New.
405
b24531ed
SM
4062018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
407
408 * common/gdb_vecs.h (unordered_remove): Add overload that takes
409 an iterator.
410 * inline-frame.c: Include <algorithm>.
411 (struct inline_state): Add constructor.
412 (inline_state_s): Remove.
413 (DEF_VEC_O(inline_state_s)): Remove.
414 (inline_states): Change type to std::vector.
415 (find_inline_frame_state): Adjust to std::vector.
416 (allocate_inline_frame_state): Remove.
417 (clear_inline_frame_state): Adjust to std::vector.
418 (skip_inline_frames): Adjust to std::vector.
419
c252925c
SM
4202018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
421
422 * tracepoint.h (struct trace_state_variable): Add constructor.
423 <name>: Change type to std::string.
424 * tracepoint.c (tsv_s): Remove.
425 (DEF_VEC_O(tsv_s)): Remove.
426 (tvariables): Change to std::vector.
427 (create_trace_state_variable): Adjust to std::vector.
428 (find_trace_state_variable): Likewise.
429 (find_trace_state_variable_by_number): Likewise.
430 (delete_trace_state_variable): Likewise.
431 (trace_variable_command): Adjust to std::string.
432 (delete_trace_variable_command): Likewise.
433 (tvariables_info_1): Adjust to std::vector.
434 (save_trace_state_variables): Likewise.
435 (start_tracing): Likewise.
436 (merge_uploaded_trace_state_variables): Adjust to std::vector
437 and std::string.
438 * target.h (struct target_ops)
439 <to_download_trace_state_variable>: Pass reference to
440 trace_state_variable.
441 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
442 * target-delegates.c: Re-generate.
443 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
444 (mi_tsv_deleted): Likewise.
445 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
446 * remote.c (remote_download_trace_state_variable): Change
447 pointer to reference and adjust.
448 * make-target-delegates (parse_argtypes): Handle references.
449 (write_function_header): Likewise.
450 (munge_type): Likewise.
451
c9638d26
SM
4522018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
453
454 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
455 string_view-selftests.c.
456 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
457 testsuite.
458 * unittests/basic_string_view/cons/char/1.cc: Likewise.
459 * unittests/basic_string_view/cons/char/2.cc: Likewise.
460 * unittests/basic_string_view/cons/char/3.cc: Likewise.
461 * unittests/basic_string_view/element_access/char/1.cc:
462 Likewise.
463 * unittests/basic_string_view/element_access/char/empty.cc:
464 Likewise.
465 * unittests/basic_string_view/element_access/char/front_back.cc:
466 Likewise.
467 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
468 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
469 Likewise.
470 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
471 Likewise.
472 * unittests/basic_string_view/modifiers/swap/char/1.cc:
473 Likewise.
474 * unittests/basic_string_view/operations/compare/char/1.cc:
475 Likewise.
476 * unittests/basic_string_view/operations/compare/char/13650.cc:
477 Likewise.
478 * unittests/basic_string_view/operations/copy/char/1.cc:
479 Likewise.
480 * unittests/basic_string_view/operations/data/char/1.cc:
481 Likewise.
482 * unittests/basic_string_view/operations/find/char/1.cc:
483 Likewise.
484 * unittests/basic_string_view/operations/find/char/2.cc:
485 Likewise.
486 * unittests/basic_string_view/operations/find/char/3.cc:
487 Likewise.
488 * unittests/basic_string_view/operations/find/char/4.cc:
489 Likewise.
490 * unittests/basic_string_view/operations/rfind/char/1.cc:
491 Likewise.
492 * unittests/basic_string_view/operations/rfind/char/2.cc:
493 Likewise.
494 * unittests/basic_string_view/operations/rfind/char/3.cc:
495 Likewise.
496 * unittests/basic_string_view/operations/substr/char/1.cc:
497 Likewise.
498 * unittests/basic_string_view/operators/char/2.cc: Likewise.
499 * unittests/string_view-selftests.c: New file.
500
fdc11678
SM
5012018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * unittests/basic_string_view/capacity/1.cc: New file.
504 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
505 * unittests/basic_string_view/cons/char/1.cc: New file.
506 * unittests/basic_string_view/cons/char/2.cc: New file.
507 * unittests/basic_string_view/cons/char/3.cc: New file.
508 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
509 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
510 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
511 * unittests/basic_string_view/element_access/char/1.cc: New file.
512 * unittests/basic_string_view/element_access/char/2.cc: New file.
513 * unittests/basic_string_view/element_access/char/empty.cc: New file.
514 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
515 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
516 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
517 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
518 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
519 * unittests/basic_string_view/include.cc: New file.
520 * unittests/basic_string_view/inserters/char/1.cc: New file.
521 * unittests/basic_string_view/inserters/char/2.cc: New file.
522 * unittests/basic_string_view/inserters/char/3.cc: New file.
523 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
524 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
525 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
526 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
527 * unittests/basic_string_view/literals/types.cc: New file.
528 * unittests/basic_string_view/literals/values.cc: New file.
529 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
530 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
531 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
532 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
533 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
534 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
535 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
536 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
537 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
538 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
539 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
540 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
541 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
542 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
543 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
544 * unittests/basic_string_view/operations/data/char/1.cc: New file.
545 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
546 * unittests/basic_string_view/operations/find/char/1.cc: New file.
547 * unittests/basic_string_view/operations/find/char/2.cc: New file.
548 * unittests/basic_string_view/operations/find/char/3.cc: New file.
549 * unittests/basic_string_view/operations/find/char/4.cc: New file.
550 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
551 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
552 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
553 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
554 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
555 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
556 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
557 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
558 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
559 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
560 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
561 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
562 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
563 * unittests/basic_string_view/operators/char/2.cc: New file.
564 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
565 * unittests/basic_string_view/range_access/char/1.cc: New file.
566 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
567 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
568 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
569 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
570 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
571 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
572 * unittests/basic_string_view/requirements/typedefs.cc: New file.
573 * unittests/basic_string_view/typedefs.cc: New file.
574 * unittests/basic_string_view/types/1.cc: New file.
575
8345c4a2
SM
5762018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
577
578 * common/gdb_string_view.h: Remove libstdc++ implementation
579 details, adjust to gdb reality.
580 * common/gdb_string_view.tcc: Likewise.
581 * cli/cli-script.c (struct string_view): Remove.
582 (user_args) <m_args>: Change element type to gdb::string_view.
583 (user_args::insert_args): Adjust.
584
7adcdf08
SM
5852018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
586
587 * common/gdb_string_view.h: New file.
588 * common/gdb_string_view.tcc: New file.
589
41260ac2
SM
5902018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
591
592 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
593 * configure: Re-generate.
594
0bee6dd4
PA
5952018-04-09 Pedro Alves <palves@redhat.com>
596
597 * gdbarch.sh: Include "observable.h" instead of "observer.h".
598 (set_target_gdbarch): Call
599 gdb::observers::architecture_changed.notify instead of
600 observer_notify_architecture_changed.
601
6f14adc5
SM
6022018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
603
604 * tracepoint.c (struct current_traceframe_cleanup): Remove.
605 (do_restore_current_traceframe_cleanup): Remove.
606 (restore_current_traceframe_cleanup_dtor): Remove.
607 (make_cleanup_restore_current_traceframe): Remove.
608 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
609 New.
610 * tracepoint.h (struct scoped_restore_current_traceframe): New.
611 * infrun.c (fetch_inferior_event): Use
612 scoped_restore_current_traceframe.
613
b2bdb8cf
SM
6142018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
615
616 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
617 Remove.
618 <n_allocated_type_units>: Remove.
619 <all_type_units>: Change to std::vector.
620 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
621 to std::vector change.
622 (dwarf2_per_objfile::get_cutu): Likewise.
623 (dwarf2_per_objfile::get_tu): Likewise.
624 (create_signatured_type_table_from_index): Likewise.
625 (create_signatured_type_table_from_debug_names): Likewise.
626 (dw2_symtab_iter_next): Likewise.
627 (dw2_print_stats): Likewise.
628 (dw2_expand_all_symtabs): Likewise.
629 (dw2_expand_marked_cus): Likewise.
630 (dw2_debug_names_iterator::next): Likewise.
631 (dwarf2_initialize_objfile): Likewise.
632 (add_signatured_type_cu_to_table): Likewise.
633 (create_all_type_units): Likewise.
634 (add_type_unit): Likewise.
635 (struct tu_abbrev_offset): Add constructor.
636 (build_type_psymtabs_1): Adjust to std::vector change.
637 (print_tu_stats): Likewise.
638 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
639 (write_debug_names): Likewise.
640
b76e467d
SM
6412018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
642
643 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
644 Make an std::vector.
645 <n_comp_units>: Remove.
646 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
647 to std::vector change.
648 (dwarf2_per_objfile::get_cutu): Likewise.
649 (dwarf2_per_objfile::get_cu): Likewise.
650 (create_cus_from_index): Likewise.
651 (create_addrmap_from_index): Likewise.
652 (create_addrmap_from_aranges): Likewise.
653 (dwarf2_read_index): Likewise.
654 (dw2_find_last_source_symtab): Likewise.
655 (dw2_map_symtabs_matching_filename): Likewise.
656 (dw2_symtab_iter_next): Likewise.
657 (dw2_print_stats): Likewise.
658 (dw2_expand_all_symtabs): Likewise.
659 (dw2_expand_symtabs_with_fullname): Likewise.
660 (dw2_expand_marked_cus): Likewise.
661 (dw2_map_symbol_filenames): Likewise.
662 (create_cus_from_debug_names): Likewise.
663 (dwarf2_read_debug_names): Likewise.
664 (dw2_debug_names_iterator::next): Likewise.
665 (dwarf2_initialize_objfile): Likewise.
666 (set_partial_user): Likewise.
667 (dwarf2_build_psymtabs_hard): Likewise.
668 (read_comp_units_from_section): Remove arguments, adjust to
669 std::vector change.
670 (create_all_comp_units): Adjust to std::vector and
671 read_comp_units_from_section changes.
672 (dwarf2_find_containing_comp_unit): Adjust to std::vector
673 change.
674 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
675 (psyms_seen_size): Likewise.
676 (write_gdbindex): Likewise.
677 (write_debug_names): Likewise.
678
12359b5e
SM
6792018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
680
681 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
682 with dwarf2_per_objfile.
683 (create_cus_from_index): Likewise.
684 (create_signatured_type_table_from_index): Likewise.
685 (dwarf2_read_index): Likewise.
686 (dwarf2_initialize_objfile): Likewise.
687 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
688 per_cu rather than get_dwarf2_per_objfile.
689
ff4c9fec
SM
6902018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
691
692 * dwarf2read.h (struct signatured_type): Forward declare.
693 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
694 New methods.
695 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
696 (dw2_get_cutu): ...this.
697 (dwarf2_per_objfile::get_cu): Rename from...
698 (dw2_get_cu): ...this.
699 (dwarf2_per_objfile::get_tu): New.
700 (create_addrmap_from_index): Adjust.
701 (create_addrmap_from_aranges): Adjust.
702 (dw2_find_last_source_symtab): Adjust.
703 (dw2_map_symtabs_matching_filename): Adjust.
704 (dw2_symtab_iter_next): Adjust.
705 (dw2_print_stats): Adjust.
706 (dw2_expand_all_symtabs): Adjust.
707 (dw2_expand_symtabs_with_fullname): Adjust.
708 (dw2_expand_marked_cus): Adjust.
709 (dw_expand_symtabs_matching_file_matcher): Adjust.
710 (dw2_map_symbol_filenames): Adjust.
711 (dw2_debug_names_iterator::next): Adjust.
712 (dwarf2_initialize_objfile): Adjust.
713 (set_partial_user): Adjust.
714 (dwarf2_build_psymtabs_hard): Adjust.
715
5ca3fcb6
SM
7162018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
717
718 * dwarf2read.c (create_signatured_type_table_from_debug_names):
719 Remove unused variables.
720 (dw2_map_symtabs_matching_filename): Likewise.
721 (dwarf2_record_block_ranges): Likewise.
722 (dwarf2_read_addr_index): Likewise.
723 (follow_die_offset): Likewise.
724
b2e586e8
SM
7252018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
726
727 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
728 to symbol_file_add_main.
729
7c4e78cf
SM
7302018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
731
732 PR mi/22299
733 * mi/mi-console.c (do_fputc_async_safe): New.
734 (mi_console_file::write_async_safe): New.
735 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
736 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
737 New.
738 * ui-file.c (ui_file::putstrn): Adjust call to
739 fputstrn_unfiltered.
740 * utils.c (printchar): Replace do_fputs and do_fprintf
741 parameters by do_fputc.
742 (fputstr_filtered): Adjust call to printchar.
743 (fputstr_unfiltered): Likewise.
744 (fputstrn_filtered): Likewise.
745 (fputstrn_unfiltered): Add do_fputc parameter, pass to
746 printchar.
747 * utils.h (do_fputc_ftype): New typedef.
748 (fputstrn_unfiltered): Add do_fputc parameter.
749
5dc026d3
SM
7502018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
751
752 * regformats/i386/i386-avx.dat: Remove.
753
c912f608
SM
7542018-04-07 Simon Marchi <simon.marchi@ericsson.com>
755
756 PR gdb/22979
757 * amd64-tdep.c (amd64_none_init_abi): New function.
758 (amd64_x32_none_init_abi): New function.
759 (_initialize_amd64_tdep): Register handlers for x86-64 and
760 x64_32 with GDB_OSABI_NONE.
761 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
762 GDB_OSABI_NONE osabi.
763
26540402
SM
7642018-04-07 Simon Marchi <simon.marchi@ericsson.com>
765
766 PR gdb/22980
767 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
768 GDB_OSABI_NONE.
769 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
770 * osabi.c (gdb_osabi_names): Add "unknown" entry.
771
9018be22
SM
7722018-04-07 Simon Marchi <simon.marchi@ericsson.com>
773
774 * common/byte-vector.h (char_vector): New type.
775 * target.h (target_read_alloc): Return
776 gdb::optional<byte_vector>.
777 (target_read_stralloc): Return gdb::optional<char_vector>.
778 (target_get_osdata): Return gdb::optional<char_vector>.
779 * target.c (target_read_alloc_1): Templatize. Replacement
780 manual memory management with vector.
781 (target_read_alloc): Change return type, adjust.
782 (target_read_stralloc): Change return type, adjust.
783 (target_get_osdata): Change return type, adjust.
784 * auxv.c (struct auxv_info) <length>: Remove.
785 <data>: Change type to gdb::optional<byte_vector>.
786 (auxv_inferior_data_cleanup): Free auxv_info with delete.
787 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
788 (target_auxv_search): Adjust.
789 (fprint_target_auxv): Adjust.
790 * avr-tdep.c (avr_io_reg_read_command): Adjust.
791 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
792 (linux_make_corefile_notes): Adjust.
793 * osdata.c (get_osdata): Adjust.
794 * remote.c (remote_get_threads_with_qxfer): Adjust.
795 (remote_memory_map): Adjust.
796 (remote_traceframe_info): Adjust.
797 (btrace_read_config): Adjust.
798 (remote_read_btrace): Adjust.
799 (remote_pid_to_exec_file): Adjust.
800 * solib-aix.c (solib_aix_get_library_list): Adjust.
801 * solib-dsbt.c (decode_loadmap): Don't free buf.
802 (dsbt_get_initial_loadmaps): Adjust.
803 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
804 * solib-target.c (solib_target_current_sos): Adjust.
805 * tracepoint.c (sdata_make_value): Adjust.
806 * xml-support.c (xinclude_start_include): Adjust.
807 (xml_fetch_content_from_file): Adjust.
808 * xml-support.h (xml_fetch_another): Change return type.
809 (xml_fetch_content_from_file): Change return type.
810 * xml-syscall.c (xml_init_syscalls_info): Adjust.
811 * xml-tdesc.c (file_read_description_xml): Adjust.
812 (fetch_available_features_from_target): Change return type.
813 (target_fetch_description_xml): Adjust.
814 (target_read_description_xml): Adjust.
815
14c88955
TT
8162018-04-06 Tom Tromey <tom@tromey.com>
817
818 * value.c (~value): Update.
819 (struct value) <contents>: Now unique_xmalloc_ptr.
820 (value_contents_bits_eq, allocate_value_contents)
821 (value_contents_raw, value_contents_all_raw)
822 (value_contents_for_printing, value_contents_for_printing_const)
823 (set_value_enclosing_type): Update.
824
0c7e6dd8
TT
8252018-04-06 Tom Tromey <tom@tromey.com>
826
827 * value.c (range_s): Remove typedef, VEC.
828 (struct range): Add operator<.
829 (range_lessthan): Remove.
830 (ranges_contain): Change type.
831 (~value): Update.
832 (struct value) <unavailable, optimized_out>: Now std::vector.
833 (value_entirely_available)
834 (value_entirely_covered_by_range_vector)
835 (value_entirely_unavailable, value_entirely_optimized_out):
836 Update.
837 (insert_into_bit_range_vector): Change argument type.
838 (find_first_range_overlap): Likewise.
839 (struct ranges_and_idx, value_contents_bits_eq)
840 (require_not_optimized_out, require_available): Update.
841 (ranges_copy_adjusted): Change argument types.
842 (value_optimized_out, value_copy, value_fetch_lazy): Update.
843
2c8331b9
TT
8442018-04-06 Tom Tromey <tom@tromey.com>
845
846 * value.c (~value): Update.
847 (struct value) <parent>: Now a value_ref_ptr.
848 (value_parent, set_value_parent, value_address, value_copy):
849 Update.
850
466ce3ae
TT
8512018-04-06 Tom Tromey <tom@tromey.com>
852
853 * value.c (struct value): Add constructor, destructor, and member
854 initializers.
855 (allocate_value_lazy, value_decref): Update.
856
062d818d
TT
8572018-04-06 Tom Tromey <tom@tromey.com>
858
859 * value.c (struct value) <released, next>: Remove.
860 (all_values): Now a std::vector.
861 (allocate_value_lazy): Update.
862 (value_next): Remove.
863 (value_mark, value_free_to_mark, release_value)
864 (value_release_to_mark): Update.
865
a6535de1
TT
8662018-04-06 Tom Tromey <tom@tromey.com>
867
868 * value.h (fetch_subexp_value, value_release_to_mark): Update.
869 (free_value_chain): Remove.
870 * value.c (free_value_chain): Remove.
871 (value_release_to_mark): Return a std::vector.
872 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
873 std::vector.
874 (check_condition): Update.
875 * eval.c (fetch_subexp_value): Change "val_chain" to a
876 std::vector.
877 * breakpoint.c (update_watchpoint): Update.
878 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
879
b5621201
TT
8802018-04-06 Tom Tromey <tom@tromey.com>
881
882 * value.h (free_all_values): Remove.
883 * value.c (free_all_values): Remove.
884
4d0266a0
TT
8852018-04-06 Tom Tromey <tom@tromey.com>
886
887 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
888 (value_history_chain, value_history_count): Remove.
889 (value_history): New global.
890 (record_latest_value, access_value_history, show_values)
891 (preserve_values): Update.
892
b4d61099
TT
8932018-04-06 Tom Tromey <tom@tromey.com>
894
895 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
896 * varobj.c (varobj_set_display_format, varobj_set_value)
897 (install_default_visualizer, construct_visualizer)
898 (install_new_value, ~varobj, varobj_get_value_type)
899 (my_value_of_variable, varobj_editable_p): Update.
900 * c-varobj.c (c_describe_child, c_value_of_variable)
901 (cplus_number_of_children, cplus_describe_child): Update.
902 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
903 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
904 (ada_value_of_variable, ada_value_is_changeable_p): Update.
905
9b558729
TT
9062018-04-06 Tom Tromey <tom@tromey.com>
907
908 * printcmd.c (last_examine_address): Change type to
909 value_ref_ptr.
910 (do_examine, x_command): Update.
911
850645cf
TT
9122018-04-06 Tom Tromey <tom@tromey.com>
913
914 * value.c (release_value): Update.
915 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
916 (struct bpstats) <val>: Now a value_ref_ptr.
917 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
918 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
919 (~watchpoint, print_it_watchpoint, watch_command_1)
920 (invalidate_bp_value_on_memory_change): Update.
921
22bc8444
TT
9222018-04-06 Tom Tromey <tom@tromey.com>
923
924 * varobj.c (varobj_clear_saved_item)
925 (update_dynamic_varobj_children, install_new_value, ~varobj):
926 Update.
927 * value.h (value_incref): Move declaration earlier.
928 (value_decref): Rename from value_free.
929 (struct value_ref_policy): New.
930 (value_ref_ptr): New typedef.
931 (struct value_deleter): Remove.
932 (gdb_value_up): Remove typedef.
933 (release_value): Change return type.
934 (release_value_or_incref): Remove.
935 * value.c (set_value_parent): Update.
936 (value_incref): Change return type.
937 (value_decref): Rename from value_free.
938 (value_free_to_mark, free_all_values, free_value_chain): Update.
939 (release_value): Return value_ref_ptr.
940 (release_value_or_incref): Remove.
941 (record_latest_value, set_internalvar, clear_internalvar):
942 Update.
943 * stack.c (info_frame_command): Don't call value_free.
944 * python/py-value.c (valpy_dealloc, valpy_new)
945 (value_to_value_object): Update.
946 * printcmd.c (do_examine): Update.
947 * opencl-lang.c (lval_func_free_closure): Update.
948 * mi/mi-main.c (register_changed_p): Don't call value_free.
949 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
950 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
951 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
952 value_free.
953 * guile/scm-value.c (vlscm_free_value_smob)
954 (vlscm_scm_from_value): Update.
955 * frame.c (frame_register_unwind, frame_unwind_register_signed)
956 (frame_unwind_register_unsigned, get_frame_register_bytes)
957 (put_frame_register_bytes): Don't call value_free.
958 * findvar.c (address_from_register): Don't call value_free.
959 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
960 * dwarf2loc.c (entry_data_value_free_closure)
961 (value_of_dwarf_reg_entry, free_pieced_value_closure)
962 (dwarf2_evaluate_loc_desc_full): Update.
963 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
964 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
965 (~watchpoint, watch_command_1)
966 (invalidate_bp_value_on_memory_change): Update.
967 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
968
7f8a5d38
SM
9692018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
970
971 PR gdb/23022
972 * warning.m4: Add -Wno-error=deprecated-register.
973 * configure: Re-generate.
974
8a76bd3b
TT
9752018-04-05 Tom Tromey <tom@tromey.com>
976
977 * linespec.h: Remove include of "vec.h".
978
8e8d776e
TT
9792018-04-05 Tom Tromey <tom@tromey.com>
980
981 * linespec.c (typep): Remove typedef.
982 (find_methods, find_superclass_methods): Take a std::vector.
983 (find_method): Use std::vector.
984
9b2f8581
TT
9852018-04-05 Tom Tromey <tom@tromey.com>
986
987 * utils.c (compare_strings): Remove.
988 * utils.h (compare_strings): Remove.
989 * objc-lang.h (find_imps): Update.
990 * objc-lang.c (find_methods): Take a std::vector.
991 (uniquify_strings, find_imps): Likewise.
992 * linespec.c (find_methods): Take a std::vector.
993 (decode_objc): Use std::vector.
994 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
995 a std::vector.
996 (find_method, find_function_symbols): Use std::vector.
997
459a2e4c
TT
9982018-04-05 Tom Tromey <tom@tromey.com>
999
1000 * completer.c (completion_tracker::completion_tracker): Remove
1001 cast.
1002 (completion_tracker::discard_completions): Likewise.
1003 * breakpoint.c (ambiguous_names_p): Remove cast.
1004 * ada-lang.c (_initialize_ada_language): Remove cast.
1005 * utils.h (streq): Update.
1006 (streq_hash): Add new declaration.
1007 * utils.c (streq): Return bool.
1008 (streq_hash): New function.
1009
9be2c17a
TT
10102018-04-05 Tom Tromey <tom@tromey.com>
1011
1012 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
1013 Remove a string copy.
1014
f73c6ece
TT
10152018-04-05 Tom Tromey <tom@tromey.com>
1016
1017 * linespec.c (filter_results): Use std::vector.
1018 (decode_line_2, decode_line_full): Update.
1019
53a0f8a2
TT
10202018-04-05 Tom Tromey <tom@tromey.com>
1021
1022 * linespec.c (canonical_to_fullform): Return std::string.
1023 (filter_results): Update.
1024 (struct decode_line_2_item): Add constructor.
1025 <fullform, displayform>: Now std::string.
1026 (decode_line_2_compare_items): Now a std::sort comparator.
1027 (decode_line_2): Update.
1028
a5b5adf5
TT
10292018-04-05 Tom Tromey <tom@tromey.com>
1030
1031 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
1032 (unexpected_linespec_error): Update.
1033 (linespec_parse_basic, parse_linespec): Update.
1034
6a307fc5
TT
10352018-04-05 Tom Tromey <tom@tromey.com>
1036
1037 * linespec.c (linespec_parse_basic): Reindent.
1038
41c1efc6
TT
10392018-04-05 Tom Tromey <tom@tromey.com>
1040
1041 * minsyms.h (iterate_over_minimal_symbols): Update.
1042 * minsyms.c (iterate_over_minimal_symbols): Take a
1043 gdb::function_view.
1044 * linespec.c (struct collect_minsyms): Remove.
1045 (compare_msyms): Now a std::sort comparator.
1046 (add_minsym): Add parameters.
1047 (search_minsyms_for_name): Update. Use std::vector.
1048
c5edbf3d
TT
10492018-04-03 Tom Tromey <tom@tromey.com>
1050
1051 * mipsread.c (read_alphacoff_dynamic_symtab): Use
1052 gdb::byte_vector.
1053
b39efc48
WP
10542018-04-02 Weimin Pan <weimin.pan@oracle.com>
1055
1056 * MAINTAINERS (Write After Approval): Add Weimin Pan.
1057
121ad66c 10582018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
1059
1060 PR gdb/16959
1061 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
1062 printing static type.
1063
09473be8
TT
10642018-04-01 Tom Tromey <tom@tromey.com>
1065
1066 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
1067 (rs6000_xfer_shared_libraries): Update.
1068
ec1f2d91
SM
10692018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * common/gdb_vecs.h (char_ptr): Remove.
1072 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
1073
d8611974
SM
10742018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1075
1076 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
1077 with std::vector.
1078 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
1079
a18ba4e4
SM
10802018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1081
1082 * tracepoint.h (struct uploaded_tp): Initialize fields.
1083 <actions, step_actions, cmd_strings>: Change type to
1084 std::vector<char *>.
1085 * tracepoint.c (get_uploaded_tp): Allocate with new.
1086 (free_uploaded_tps): Free with delete.
1087 (parse_tracepoint_definition): Adjust to std::vector change.
1088 * breakpoint.c (read_uploaded_action): Likewise.
1089 (create_tracepoint_from_upload): Likewise.
1090 * ctf.c (ctf_write_uploaded_tp): Likewise.
1091 (SET_ARRAY_FIELD): Likewise.
1092 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
1093
a7961323
TT
10942018-03-30 Tom Tromey <tom@tromey.com>
1095
1096 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
1097 std::unique_ptr.
1098 (svr4_keep_data_in_core): Update.
1099 (svr4_read_so_list): Update.
1100
e83e4e24
TT
11012018-03-30 Tom Tromey <tom@tromey.com>
1102
1103 * windows-nat.c (handle_output_debug_string, handle_exception):
1104 Update.
1105 * target.h (target_read_string): Update.
1106 * target.c (target_read_string): Change "string" to
1107 unique_xmalloc_ptr.
1108 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1109 Update.
1110 * solib-frv.c (frv_current_sos): Update.
1111 * solib-dsbt.c (dsbt_current_sos): Update.
1112 * solib-darwin.c (darwin_current_sos): Update.
1113 * linux-thread-db.c (inferior_has_bug): Update.
1114 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
1115 Update. Remove alloca.
1116 * ada-lang.c (ada_main_name): Update.
1117
263db9a1
TT
11182018-03-30 Tom Tromey <tom@tromey.com>
1119
1120 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
1121 (struct dwo_file_deleter): New.
1122 (dwo_file_up): New typedef.
1123 (open_and_init_dwo_file): Use dwo_file_up.
1124 (free_dwo_file_cleanup): Remove.
1125
5dafb3d1
TT
11262018-03-30 Tom Tromey <tom@tromey.com>
1127
1128 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
1129 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
1130
11ed8cad
TT
11312018-03-30 Tom Tromey <tom@tromey.com>
1132
1133 * dwarf2read.c (class free_cached_comp_units): New class.
1134 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
1135 (free_cached_comp_units): Remove function.
1136
9ae79dac
TT
11372018-03-30 Tom Tromey <tom@tromey.com>
1138
1139 * utils.h (make_cleanup_unpush_target): Remove.
1140 * inf-ptrace.c (struct target_unpusher): New.
1141 (target_unpush_up) New typedef.
1142 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
1143 target_unpush_up.
1144 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
1145
5aa89276
TT
11462018-03-27 Tom Tromey <tom@tromey.com>
1147
1148 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
1149
1dbeed45
TT
11502018-03-27 Pedro Alves <palves@redhat.com>
1151 Tom Tromey <tom@tromey.com>
1152
1153 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
1154 destructor. Now a class.
1155 (gdb_readline_wrapper_cleanup): Remove function.
1156 (gdb_readline_wrapper): Remove cleanups.
1157
c819b2c0
TT
11582018-03-27 Tom Tromey <tom@tromey.com>
1159
1160 * typeprint.h (struct type_print_options) <local_typedefs,
1161 global_typedefs>: Remove "struct" keyword.
1162 (class typedef_hash_table): New class.
1163 (recursively_update_typedef_hash, add_template_parameters)
1164 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
1165 (find_typedef_in_hash): Don't declare.
1166 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
1167 (typedef_hash_table::recursively_update): Rename from
1168 recursively_update_typedef_hash. Now a member.
1169 (typedef_hash_table::add_template_parameters): Rename from
1170 add_template_parameters. Now a member.
1171 (typedef_hash_table::typedef_hash_table): Now a constructor;
1172 rename from create_typedef_hash.
1173 (typedef_hash_table::~typedef_hash_table): Now a destructor;
1174 rename from free_typedef_hash.
1175 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
1176 (do_free_global_table): Remove.
1177 (typedef_hash_table::typedef_hash_table): New constructor; renamed
1178 from copy_type_recursive.
1179 (create_global_typedef_table): Remove.
1180 (typedef_hash_table::find_global_typedef): Now a member of
1181 typedef_hash_table.
1182 (typedef_hash_table::find_typedef): Rename from
1183 find_typedef_in_hash; now a member.
1184 (whatis_exp): Update.
1185 * extension.h (struct ext_lang_type_printers): Add constructor and
1186 destructor.
1187 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
1188 declare.
1189 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
1190 Now a constructor; rename from start_ext_lang_type_printers.
1191 (ext_lang_type_printers): Now a destructor; rename from
1192 free_ext_lang_type_printers.
1193 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
1194 Update.
1195 (c_type_print_base_struct_union): Update. Remove cleanups.
1196
608219fb
TT
11972018-03-27 Tom Tromey <tom@tromey.com>
1198
1199 * dwarf-index-write.c: Include <cmath>.
1200
3fcded8f
JB
12012018-03-27 Joel Brobecker <brobecker@adacore.com>
1202
1203 * NEWS: Add entry describing new "set|show varsize-limit" command.
1204 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
1205 command.
1206 * printcmd.c (_initialize_printcmd): Add "set var" alias of
1207 "set variable".
1208
cd4fb1b2
SM
12092018-03-27 Simon Marchi <simon.marchi@ericsson.com>
1210
1211 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
1212 dwarf-index-write.c
1213 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
1214 * dwarf-index-common.c: New file.
1215 * dwarf-index-common.h: New file.
1216 * dwarf-index-write.c: New file.
1217 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
1218 (struct dwarf2_section_info): Move from here.
1219 (dwarf2_section_info_def): Likewise.
1220 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
1221 (offset_type): Likewise.
1222 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
1223 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
1224 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
1225 (byte_swap): Likewise.
1226 (MAYBE_SWAP): Likewise.
1227 (dwarf2_per_cu_ptr): Likewise.
1228 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
1229 (struct tu_stats): Likewise.
1230 (struct dwarf2_per_objfile): Likewise.
1231 (struct dwarf2_per_cu_data): Likewise.
1232 (struct signatured_type): Likewise.
1233 (sig_type_ptr): Likewise.
1234 (DEF_VEC_P (sig_type_ptr)): Likewise.
1235 (INDEX4_SUFFIX): Likewise.
1236 (INDEX5_SUFFIX): Likewise.
1237 (DEBUG_STR_SUFFIX): Likewise.
1238 (dwarf2_read_section): Make non-static.
1239 (mapped_index_string_hash): Move from here.
1240 (dwarf5_djb_hash): Likewise.
1241 (file_write): Likewise.
1242 (class data_buf): Likewise.
1243 (struct symtab_index_entry): Likewise.
1244 (struct mapped_symtab): Likewise.
1245 (find_slot): Likewise.
1246 (hash_expand): Likewise.
1247 (add_index_entry): Likewise.
1248 (uniquify_cu_indices): Likewise.
1249 (class c_str_view): Likewise.
1250 (class c_str_view_hasher): Likewise.
1251 (class vector_hasher): Likewise.
1252 (write_hash_table): Likewise.
1253 (psym_index_map): Likewise.
1254 (struct addrmap_index_data): Likewise.
1255 (add_address_entry): Likewise.
1256 (add_address_entry_worker): Likewise.
1257 (write_address_map): Likewise.
1258 (symbol_kind): Likewise.
1259 (write_psymbols): Likewise.
1260 (struct signatured_type_index_data): Likewise.
1261 (write_one_signatured_type): Likewise.
1262 (recursively_count_psymbols): Likewise.
1263 (recursively_write_psymbols): Likewise.
1264 (class debug_names): Likewise.
1265 (check_dwarf64_offsets): Likewise.
1266 (psyms_seen_size): Likewise.
1267 (write_gdbindex): Likewise.
1268 (write_debug_names): Likewise.
1269 (assert_file_size): Likewise.
1270 (write_psymtabs_to_index): Likewise.
1271 (save_gdb_index_command): Likewise.
1272 (_initialize_dwarf2_read): Don't register the "save gdb-index"
1273 command.
1274 * dwarf2read.h: New file.
1275
59cc4834
JB
12762018-03-27 Joel Brobecker <brobecker@adacore.com>
1277
1278 PR gdb/22670
1279 * dwarf2read.c (dwarf2_physname): Do not return the demangled
1280 symbol name if the CU's language stores symbol names in linkage
1281 format.
1282 * language.h (struct language_defn)
1283 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
1284 all instances of this struct.
1285
67501539
TT
12862018-03-26 Tom Tromey <tom@tromey.com>
1287
1288 * stack.c (backtrace_command_1): Remove verbose code.
1289
76c939ac
TT
12902018-03-26 Tom Tromey <tom@tromey.com>
1291
1292 * python/py-framefilter.c (py_print_type): Don't catch
1293 exceptions. Return void.
1294 (py_print_value): Likewise.
1295 (py_print_single_arg): Likewise.
1296 (enumerate_args): Don't catch exceptions.
1297 (py_print_args): Likewise.
1298 (py_print_frame): Likewise.
1299 (gdbpy_apply_frame_filter): Catch exceptions here.
1300
9507b29c
TT
13012018-03-26 Tom Tromey <tom@tromey.com>
1302
1303 * stack.c (_initialize_stack): Remove trailing newlines from help
1304 text. Add "Usage" line to "backtrace" help.
1305
eb68e487
TT
13062018-03-26 Tom Tromey <tom@tromey.com>
1307
1308 PR python/16486:
1309 * python/py-framefilter.c (py_print_args): Call wrap_hint.
1310
1f111921
TT
13112018-03-26 Tom Tromey <tom@tromey.com>
1312
1313 * python/py-framefilter.c (py_print_single_arg): Return
1314 EXT_LANG_BT_ERROR from catch.
1315
fb7eb8b5
TT
13162018-03-26 Tom Tromey <tom@tromey.com>
1317
1318 PR backtrace/15584:
1319 * stack.c (backtrace_command_1): Move some code into no-filters
1320 "if".
1321
4ca59a9f
TT
13222018-03-26 Tom Tromey <tom@tromey.com>
1323
1324 * python/py-framefilter.c (throw_quit_or_print_exception): New
1325 function.
1326 (gdbpy_apply_frame_filter): Use it.
1327
92256134
TT
13282018-03-26 Tom Tromey <tom@tromey.com>
1329
1330 PR cli/17716:
1331 * python/py-framefilter.c (py_print_type, py_print_value)
1332 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
1333 RETURN_MASK_ERROR.
1334
7a630bc2
TT
13352018-03-26 Tom Tromey <tom@tromey.com>
1336
1337 * python/py-framefilter.c (enumerate_args): Use
1338 gdb::unique_xmalloc_ptr.
1339
63283d4a
TT
13402018-03-26 Tom Tromey <tom@tromey.com>
1341
1342 * python/py-framefilter.c (py_print_frame): Return
1343 EXT_LANG_BT_OK.
1344 (gdbpy_apply_frame_filter): Update comment.
1345 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
1346 Remove.
1347 <EXT_LANG_BT_NO_FILTERS>: Change value.
1348
978d6c75
TT
13492018-03-26 Tom Tromey <tom@tromey.com>
1350
1351 PR backtrace/15582:
1352 * stack.c (backtrace_command): Parse "hide" argument.
1353 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
1354 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
1355 constant.
1356
1cf7e640
TT
13572018-03-26 Tom Tromey <tom@tromey.com>
1358
1359 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
1360 add "flags".
1361 (backtrace_command): Remove "fulltrace", add "flags".
1362
ea3b0687
TT
13632018-03-26 Tom Tromey <tom@tromey.com>
1364
1365 * stack.c (backtrace_command): Rewrite command line parsing.
1366
9f034d75
SM
13672018-03-26 Simon Marchi <simon.marchi@ericsson.com>
1368
1369 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
1370
ce1459e5
SM
13712018-03-26 Simon Marchi <simon.marchi@ericsson.com>
1372
1373 * filename-seen-cache.h: Add include guard.
1374
4f7ae6f5
KS
13752018-03-26 Keith Seitz <keiths@redhat.com>
1376
1377 * symfile.c (place_section): Remove "struct" from section_addr_info
1378 in comment.
1379 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
1380 "struct" keyword from section_addr_info.
1381
5cd3e386
AH
13822018-03-26 Alan Hayward <alan.hayward@arm.com>
1383
1384 * regformats/regdef.h (reg): Add constructors.
1385
3e5ef9a4
PA
13862018-03-25 Pedro Alves <palves@redhat.com>
1387
1388 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
1389 if then/else bodies in var_func_name extraction.
1390
c88d2fcc 13912018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
1392
1393 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
1394 lookup_minimal_symbol() to find symbol entry.
1395 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
1396
b7fee5a3
KS
13972018-03-23 Keith Seitz <keiths@redhat.com>
1398
1399 PR c++/22968
1400 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
1401 nested type definitions for C++, too.
1402
2cc9b304
TT
14032018-03-23 Tom Tromey <tom@tromey.com>
1404
1405 * machoread.c (struct oso_el): Add a constructor. Don't define as
1406 a typedef.
1407 (macho_register_oso): Remove.
1408 (macho_symtab_read): Take a std::vector.
1409 (oso_el_compare_name): Now a std::sort comparator.
1410 (macho_symfile_read_all_oso): Take a std::vector.
1411 (macho_symfile_read): Use std::vector. Remove cleanups.
1412
a2b2bc12
TT
14132018-03-22 Tom Tromey <tom@tromey.com>
1414
1415 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
1416 (record_full_goto_bookmark): Use std::string.
1417
7a8f494c
PFC
14182018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1419
1420 PR tdep/18295
1421 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
1422 a single mask.
1423
dd6d677f
PFC
14242018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1425
1426 * rs6000-tdep.c (store_insn_p): New function.
1427 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
1428 and cr_reg to their unshifted values. Use store_insn_p to
1429 match LR saves using either R1 or fdata->alloca_reg. Use
1430 store_insn_p to match CR saves. Set alloca_reg_offset
1431 when alloca_reg and framep are set. Remove lr_reg shift
1432 when assigning to fdata->lr_register.
1433
26d6cec4
AA
14342018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
1435
1436 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
1437 command line args instead of emitting a warning.
1438
5d9310c4
SM
14392018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
1440
1441 * tracepoint.h (struct static_tracepoint_marker): Initialize
1442 fields, define default constructor, move constructor and move
1443 assignment, disable the rest.
1444 <str_id, extra>: Make std::string.
1445 (release_static_tracepoint_marker): Remove.
1446 (free_current_marker): Remove.
1447 * tracepoint.c (free_current_marker): Remove.
1448 (parse_static_tracepoint_marker_definition): Adjust to
1449 std::string, use new hex2str overload.
1450 (release_static_tracepoint_marker): Remove.
1451 (print_one_static_tracepoint_marker): Get marker by reference
1452 and adjust to std::string.
1453 (info_static_tracepoint_markers_command): Adjust to std::vector
1454 changes
1455 * target.h (static_tracepoint_marker_p): Remove typedef.
1456 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
1457 (struct target_ops) <to_static_tracepoint_marker_at>: Return
1458 bool.
1459 <to_static_tracepoint_markers_by_strid>: Return std::vector.
1460 * target-debug.h
1461 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
1462 (target_debug_print_std_vector_static_tracepoint_marker): New.
1463 (target_debug_print_struct_static_tracepoint_marker_p): Rename
1464 to...
1465 (target_debug_print_static_tracepoint_marker_p): ... this.
1466 * target-delegates.c: Re-generate.
1467 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
1468 Make std::string.
1469 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
1470 (decode_static_tracepoint_spec): Adjust to std::vector.
1471 (tracepoint_print_one_detail): Adjust to std::string.
1472 (strace_marker_decode_location): Adjust to std::string.
1473 (update_static_tracepoint): Adjust to std::string, remove call
1474 to release_static_tracepoint_marker.
1475 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1476 Adjust to std::vector.
1477 * remote.c (remote_static_tracepoint_marker_at): Return bool.
1478 (remote_static_tracepoint_markers_by_strid): Adjust to
1479 std::vector.
1480 * common/rsp-low.h (hex2str): New overload with explicit count
1481 of bytes.
1482 * common/rsp-low.c (hex2str): New overload with explicit count
1483 of bytes.
1484 * unittests/rsp-low-selftests.c (test_hex2str): New function.
1485 (_initialize_rsp_low_selftests): Add test_hex2str test.
1486 * unittests/tracepoint-selftests.c
1487 (test_parse_static_tracepoint_marker_definition): Adjust to
1488 std::string.
1489
62c222b6
SM
14902018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
1491
1492 * tracepoint.c (parse_static_tracepoint_marker_definition):
1493 Consider case where the definition is followed by more
1494 definitions.
1495 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1496 tracepoint-selftests.c.
1497 * unittests/tracepoint-selftests.c: New.
1498
7eb2418f
PFC
14992018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1500
1501 * MAINTAINERS (Write After Approval): Add Pedro Franco de
1502 Carvalho.
1503
7cbe16e9
SR
15042018-03-20 Stephen Roberts <stephen.roberts@arm.com>
1505
3d6b3b82 1506 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 1507
4ee89e90
SR
15082018-03-20 Stephen Roberts <stephen.roberts@arm.com>
1509
3d6b3b82 1510 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 1511
92630041
TT
15122018-03-19 Tom Tromey <tom@tromey.com>
1513
1514 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
1515 "IDENT" production.
1516
76727919
TT
15172018-03-19 Pedro Alves <palves@redhat.com>
1518 Tom Tromey <tom@tromey.com>
1519
1520 * unittests/observable-selftests.c: New file.
1521 * common/observable.h: New file.
1522 * observable.h: New file.
1523 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
1524 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
1525 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
1526 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
1527 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
1528 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
1529 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
1530 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
1531 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
1532 python/py-breakpoint.c, python/py-finishbreakpoint.c,
1533 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
1534 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
1535 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
1536 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
1537 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
1538 tui/tui-interp.c, valops.c: Update all users.
1539 * tui/tui-hooks.c (tui_bp_created_observer)
1540 (tui_bp_deleted_observer, tui_bp_modified_observer)
1541 (tui_inferior_exit_observer, tui_before_prompt_observer)
1542 (tui_normal_stop_observer, tui_register_changed_observer):
1543 Remove.
1544 (tui_observers_token): New global.
1545 (attach_or_detach, tui_attach_detach_observers): New functions.
1546 (tui_install_hooks, tui_remove_hooks): Use
1547 tui_attach_detach_observers.
1548 * record-btrace.c (record_btrace_thread_observer): Remove.
1549 (record_btrace_thread_observer_token): New global.
1550 * observer.sh: Remove.
1551 * observer.c: Rename to observable.c.
1552 * observable.c (namespace gdb_observers): Define new objects.
1553 (observer_debug): Move into gdb_observers namespace.
1554 (struct observer, struct observer_list, xalloc_observer_list_node)
1555 (xfree_observer_list_node, generic_observer_attach)
1556 (generic_observer_detach, generic_observer_notify): Remove.
1557 (_initialize_observer): Update.
1558 Don't include observer.inc.
1559 * Makefile.in (generated_files): Remove observer.h, observer.inc.
1560 (clean mostlyclean): Likewise.
1561 (observer.h, observer.inc): Remove targets.
1562 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
1563 (COMMON_SFILES): Use observable.c, not observer.c.
1564 * .gitignore: Remove observer.h.
1565
1cb1f3da
TT
15662018-03-18 Tom Tromey <tom@tromey.com>
1567
1568 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
1569 gdb::def_vector.
1570 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1571
a06ab151
TT
15722018-03-17 Tom Tromey <tom@tromey.com>
1573
1574 * auto-load.c (auto_load_objfile_script_1): Use std::string.
1575
770623f7
TT
15762018-03-17 Tom Tromey <tom@tromey.com>
1577
1578 * target.c (class scoped_target_fd): New.
1579 (target_fileio_close_cleanup): Remove.
1580 (target_fileio_read_alloc_1): Use scoped_target_fd.
1581
39be3c7e
SM
15822018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
1583
1584 * silent-rules.mk: New.
1585 * Makefile.in: Include silent-rules.mk
1586 (srcdir, VPATH, top_srcdir): Move up.
1587 (COMPILE): Add ECHO_CXX.
1588 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
1589 (init.c): Add ECHO_INIT_C.
1590 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1591 (version.c): Add ECHO_GEN.
1592 (printcmd.o): Add ECHO_CXX.
1593 (target-float.o): Add ECHO_CXX.
1594 (ada-exp.o): Add ECHO_CXX.
1595 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
1596 (insight$(EXEEXT)): Add ECHO_CXXLD.
1597 * gnulib/configure.ac: Add AM_SILENT_RULES.
1598 * gnulib/aclocal.m4: Re-generate.
1599 * gnulib/configure: Re-generate.
1600 * gnulib/import/Makefile.in: Re-generate.
1601
37e136b1
TT
16022018-03-16 Tom Tromey <tom@tromey.com>
1603
1604 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
1605 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
1606 * utils.c (do_free_section_addr_info)
1607 (make_cleanup_free_section_addr_info): Remove.
1608 * symfile.h (struct other_sections): Add constructor.
1609 (struct section_addr_info): Remove.
1610 (section_addr_info): New typedef.
1611 (struct sym_fns) <sym_offsets>: Change type of parameter.
1612 (build_section_addr_info_from_objfile)
1613 (relative_addr_info_to_section_offsets, addr_info_make_relative)
1614 (default_symfile_offsets, symbol_file_add)
1615 (symbol_file_add_from_bfd)
1616 (build_section_addr_info_from_section_table): Update.
1617 (alloc_section_addr_info, free_section_addr_info): Don't declare.
1618 * symfile.c (alloc_section_addr_info): Remove.
1619 (build_section_addr_info_from_section_table): Change return type.
1620 Update.
1621 (build_section_addr_info_from_bfd)
1622 (build_section_addr_info_from_objfile): Likewise.
1623 (free_section_addr_info): Remove.
1624 (relative_addr_info_to_section_offsets): Change type of "addrs".
1625 (addrs_section_compar): Now a std::sort comparator.
1626 (addrs_section_sort): Change return type.
1627 (addr_info_make_relative): Change type of "addrs". Update.
1628 (default_symfile_offsets, syms_from_objfile_1)
1629 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
1630 (symbol_file_add_separate): Update.
1631 (symbol_file_add): Change type of "addrs". Update.
1632 (add_symbol_file_command): Update. Remove cleanups.
1633 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
1634 cleanups.
1635 * symfile-debug.c (debug_sym_offsets): Change type of "info".
1636 * solib.c (solib_read_symbols): Update.
1637 * objfiles.c (objfile_relocate): Update. Remove cleanups.
1638 * machoread.c (macho_symfile_offsets): Update.
1639 * jit.c (jit_bfd_try_read_symtab): Update.
1640
03afa6ef
SM
16412018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1642
1643 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1644 unittests/utils-selftests.c.
1645 * unittests/utils-selftests.c: New file.
1646
3ae9ce5d
TT
16472018-03-14 Tom Tromey <tom@tromey.com>
1648
1649 PR cli/14977:
1650 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
1651 for NULL.
1652
b8c2339b
TT
16532018-03-14 Tom Tromey <tom@tromey.com>
1654
1655 PR cli/19918:
1656 * printcmd.c (printf_pointer): Allow "-" in format.
1657
80ae639d
TT
16582018-03-14 Tom Tromey <tom@tromey.com>
1659
1660 * printcmd.c (_initialize_printcmd): Add usage to printf.
1661
0d671d99
YQ
16622018-03-14 Yao Qi <qiyao@sourceware.org>
1663
1664 * MAINTAINERS: Update my email address.
1665
b577b6af
TT
16662018-03-13 Tom Tromey <tom@tromey.com>
1667
1668 * machoread.c (macho_check_dsym): Change filenamep to a
1669 std::string*.
1670 (macho_symfile_read): Update.
1671 * symfile.c (load_command): Use std::string.
1672
89a3b63e
AB
16732018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
1674
1675 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
1676 to error message string.
1677 (riscv_register_name): Use xsnprintf instead of sprintf.
1678 (riscv_insn::fetch_instruction): Use gdb_assert instead of
1679 internal_error.
1680 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
1681 error.
1682 (riscv_push_dummy_call): Likewise.
1683
984c7238
TT
16842018-03-12 Tom Tromey <tom@tromey.com>
1685
1686 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
1687 Use gdb::byte_vector.
1688 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
1689
933522d1
YQ
16902018-03-12 Yao Qi <yao.qi@linaro.org>
1691
1692 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
1693 parameter type to readable_regcache.
1694 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
1695 the declaration.
1696
be2daae6
TT
16972018-03-11 Tom Tromey <tom@tromey.com>
1698
1699 * dwarf2read.c (struct nextfield): Add initializers.
1700 (struct nextfnfield): Remove.
1701 (struct fnfieldlist): Add initializers. Remove "length" and
1702 "head", use std::vector.
1703 (struct decl_field_list): Remove.
1704 (struct field_info): Add initializers.
1705 <fields, baseclasses>: Now std::vector.
1706 <nbaseclasses, nfnfields, typedef_field_list_count,
1707 nested_types_list_count>: Remove.
1708 (dwarf2_add_field, dwarf2_add_type_defn)
1709 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1710 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
1711 (process_structure_scope): Update.
1712
484cf504
TT
17132018-03-11 Tom Tromey <tom@tromey.com>
1714
1715 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
1716 for use by std::sort.
1717 (build_type_psymtabs_1): Use std::vector.
1718
9bd8e0b0
EZ
17192018-03-09 Eli Zaretskii <eliz@gnu.org>
1720
1721 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
1722 and LIBMPFR in the printed configuration.
1723
5dc1a704
TT
17242018-03-08 Tom Tromey <tom@tromey.com>
1725
1726 * source.c (get_filename_and_charpos): Use scoped_fd.
1727 * nto-procfs.c (procfs_open_1): Use scoped_fd.
1728 (procfs_pidlist): Likewise.
1729 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
1730 (iterate_over_mappings): Likewise.
1731
fdf07f3a
TT
17322018-03-08 Tom Tromey <tom@tromey.com>
1733
1734 * infcall.c (struct call_return_meta_info)
1735 <stack_temporaries_enabled>: Remove.
1736 (get_call_return_value, call_function_by_hand_dummy): Update.
1737 * thread.c (disable_thread_stack_temporaries): Remove.
1738 (enable_thread_stack_temporaries): Remove.
1739 (thread_stack_temporaries_enabled_p): Return bool.
1740 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
1741 (get_last_thread_stack_temporary): Update.
1742 * eval.c (evaluate_subexp): Update.
1743 * gdbthread.h (class enable_thread_stack_temporaries): Now a
1744 class, not a function.
1745 (value_ptr, value_vec): Remove typedefs.
1746 (class thread_info) <stack_temporaries_enabled>: Now bool.
1747 <stack_temporaries>: Now a std::vector.
1748 (thread_stack_temporaries_enabled_p)
1749 (value_in_thread_stack_temporaries): Return bool.
1750
567a3e54
SM
17512018-03-08 Simon Marchi <simon.marchi@ericsson.com>
1752
1753 * remote.c (putpkt_binary): Fix omitted bytes reporting.
1754 (getpkt_or_notif_sane_1): Likewise.
1755
00b40057
SM
17562018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1757
1758 * build-id.c (build_id_to_debug_bfd): Use std::string.
1759
a8dbfd58
SM
17602018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1761
1762 * build-id.c (find_separate_debug_file_by_buildid): Return
1763 std::string.
1764 * build-id.h (find_separate_debug_file_by_buildid): Return
1765 std::string.
1766 * coffread.c (coff_symfile_read): Adjust to std::string.
1767 * elfread.c (elf_symfile_read): Adjust to std::string.
1768 * symfile.c (separate_debug_file_exists): Change parameter to
1769 std::string.
1770 (find_separate_debug_file): Return std::string.
1771 (find_separate_debug_file_by_debuglink): Return std::string.
1772 * symfile.h (find_separate_debug_file_by_debuglink): Return
1773 std::string.
1774
e6a58aa8
SM
17752018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1776
1777 * common/xml-utils.c (xml_escape_text): Move code to...
1778 (xml_escape_text_append): ... this new function.
1779 * common/xml-utils.h (xml_escape_text_append): New declaration.
1780 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
1781 New function.
1782 (_initialize_xml_utils): register test_xml_escape_text_append as
1783 a selftest.
1784
4ef0bef6
AH
17852018-03-07 Alan Hayward <alan.hayward@arm.com>
1786
1787 * defs.h: Remove MAX_REGISTER_SIZE.
1788 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
1789 asserts.
1790 * python/py-unwind.c (pyuw_sniffer): Likewise.
1791
e0d3522b
TT
17922018-03-07 Tom Tromey <tom@tromey.com>
1793
1794 * linux-tdep.c (linux_info_proc): Update.
1795 * target.h (struct target_ops) <to_fileio_readlink>: Return
1796 optional<string>.
1797 (target_fileio_readlink): Return optional<string>.
1798 * remote.c (remote_hostio_readlink): Return optional<string>.
1799 * inf-child.c (inf_child_fileio_readlink): Return
1800 optional<string>.
1801 * target.c (target_fileio_readlink): Return optional<string>.
1802
ea005f31
AB
18032018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 * regcache.c (cooked_read_test): Add riscv to the list of
1806 architectures that have a save_reggroup.
1807
e95a97d4
AA
18082018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1809
1810 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
1811 value is not a dynamic class object.
1812
d8344f3d
TT
18132018-03-06 Tom Tromey <tom@tromey.com>
1814
1815 * rust-exp.y: Formatting fixes.
1816
9add17f2
AB
18172018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * riscv-tdep.c (riscv_register_name): Remove target description
1820 support.
1821 (riscv_gdbarch_init): Remove target description check.
1822
c9486dfe
AB
18232018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
1826 comment.
1827 * riscv-tdep.h: Likewise.
1828
d74aff3d
AB
18292018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
1832 (riscv_pseudo_register_write): Delete.
1833 (riscv_gdbarch_init): Remove all use of pseudo registers.
1834
7ea78b59
SM
18352018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1836
1837 * record-btrace.c (btrace_print_lines): Replace cleanup
1838 parameter with RAII equivalents.
1839 (btrace_insn_history): Replace cleanup with RAII equivalents.
1840 * ui-out.h (make_cleanup_ui_out_list_begin_end,
1841 make_cleanup_ui_out_tuple_begin_end): Remove.
1842 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
1843 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
1844 make_cleanup_ui_out_list_begin_end): Remove.
1845
53127008
SM
18462018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
1849 parameter types to std::vector. Use bool.
1850 (record_btrace_wait): Replace VEC(tp_t) with
1851 std::vector<thread_info *>.
1852 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
1853
228f1508
SM
18542018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1855
1856 * record-btrace.c (record_btrace_disable_callback): Remove.
1857 (struct scoped_btrace_disable): New.
1858 (record_btrace_open): Use scoped_btrace_disable.
1859
b2970c23
AB
18602018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1861
1862 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
1863 reading values from registers.
1864
fb294655
AB
18652018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
1868 where appropriate.
1869
cab5bb9d
AB
18702018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1871
1872 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
1873 change parameter type. Use GDB's print functions, and use
1874 core_addr_to_string where appropriate.
1875 (riscv_push_dummy_call): Use core_addr_to_string where
1876 appropriate, update call to riscv_print_arg_location, and reindent
1877 a few lines.
1878 (riscv_return_value): Update call to riscv_print_arg_location.
1879
dbbb1059
AB
18802018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1881 Tim Newsome <tim@sifive.com>
1882 Albert Ou <a0u@eecs.berkeley.edu>
1883 Darius Rad <darius@bluespec.com>
1884
1885 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
1886 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
1887 (ALLDEPFILES): Add riscv-tdep.c
1888 * configure.tgt: Add riscv support.
1889 * riscv-tdep.c: New file.
1890 * riscv-tdep.h: New file.
1891 * NEWS: Mention new target.
1892 * MAINTAINERS: Add entry for riscv.
1893
5dc43913
AB
18942018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1895
1896 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
1897 fields within aggregates.
1898
3dea1ef7
SM
18992018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1900
1901 * record-btrace.c (btrace_print_lines): Change type of flags to
1902 gdb_disassembly_flags.
1903
7efba073
JB
19042018-03-04 John Baldwin <jhb@FreeBSD.org>
1905
1906 * fbsd-nat.c: Include "inf-ptrace.h".
1907 (USE_SIGTRAP_SIGINFO): Conditionally define.
1908 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
1909 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
1910 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
1911 function.
1912 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
1913 Likewise.
1914 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
1915 Likewise.
1916 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
1917 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
1918 "supports_stopped_by_hw_breakpoint" target methods.
1919
386a8676
JB
19202018-03-04 John Baldwin <jhb@FreeBSD.org>
1921
1922 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
1923 * fbsd-nat.c (debug_fbsd_nat): New variable.
1924 (show_fbsd_nat_debug): New function.
1925 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
1926 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
1927
12279366
JB
19282018-03-04 John Baldwin <jhb@FreeBSD.org>
1929
1930 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
1931 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
1932 prototype.
1933 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
1934 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
1935 method.
1936
54693cf5
SM
19372018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1938
1939 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
1940 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
1941
ccb2231c
SM
19422018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1943
1944 * charset.c (struct charset_vector): New.
1945 (charsets): Change type to charset_vector.
1946 (find_charset_names): Adjust.
1947 (add_one): Adjust.
1948 (_initialize_charset): Adjust.
1949
6fb16ce6
SM
19502018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1951
1952 * progspace.h (struct program_space) <deleted_solibs>: Change
1953 type to std::vector<std::string>.
1954 * progspace.c (clear_program_space_solib_cache): Adjust.
1955 * breakpoint.c (print_solib_event): Adjust.
1956 (check_status_catch_solib): Adjust.
1957 * solib.c (update_solib_list): Adjust.
1958 * ui-out.h (class ui_out) <field_string>: New overload.
1959 * ui-out.c (ui_out::field_string): New overload.
1960
564b1e3f
SM
19612018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1962
1963 * progspace.h (struct program_space): Add constructor and
1964 destructor, initialize fields.
1965 (add_program_space): Remove.
1966 * progspace.c (add_program_space): Rename to...
1967 (program_space::program_space): ... this.
1968 (release_program_space): Rename to...
1969 (program_space::~program_space): ... this.
1970 (delete_program_space): Use delete to delete program_space.
1971 (initialize_progspace): Use new to allocate program_space.
1972 * inferior.c (add_inferior_with_spaces): Likewise.
1973 (clone_inferior_command): Likewise.
1974 * infrun.c (follow_fork_inferior): Likewise.
1975 (handle_vfork_child_exec_or_exit): Likewise.
1976
e80aaf61
SM
19772018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1978
1979 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
1980 (delim_string_to_char_ptr_vec): Return std::vector of
1981 gdb::unique_xmalloc_ptr.
1982 (dirnames_to_char_ptr_vec_append): Take std::vector of
1983 gdb::unique_xmalloc_ptr.
1984 (dirnames_to_char_ptr_vec): Return std::vector of
1985 gdb::unique_xmalloc_ptr.
1986 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
1987 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
1988 (delim_string_to_char_ptr_vec): Return an std::vector of
1989 gdb::unique_xmalloc_ptr, adjust the code.
1990 (dirnames_to_char_ptr_vec_append): Take an std::vector of
1991 gdb::unique_xmalloc_ptr, adjust the code.
1992 (dirnames_to_char_ptr_vec): Return an std::vector of
1993 gdb::unique_xmalloc_ptr, adjust the code.
1994 * auto-load.c (auto_load_safe_path_vec): Change type to
1995 std::vector of gdb::unique_xmalloc_ptr.
1996 (auto_load_expand_dir_vars): Return an std::vector of
1997 gdb::unique_xmalloc_ptr, adjust the code.
1998 (auto_load_safe_path_vec_update): Adjust.
1999 (filename_is_in_auto_load_safe_path_vec): Adjust.
2000 (auto_load_objfile_script_1): Adjust.
2001 * build-id.c (build_id_to_debug_bfd): Adjust.
2002 * linux-thread-db.c (thread_db_load_search): Adjust.
2003 * source.c (add_path): Adjust.
2004 (openp): Adjust.
2005 * symfile.c (find_separate_debug_file): Adjust.
2006 * utils.c (do_free_char_ptr_vec): Remove.
2007 (make_cleanup_free_char_ptr_vec): Remove.
2008
ab818ade
SDJ
20092018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
2010
2011 PR gdb/22907
2012 * common/pathstuff.c: Conditionally include "<windows.h>".
2013
e1e6f073
GS
20142018-03-01 Georg Sauthoff <mail@georg.so>
2015
2016 PR gdb/22888
2017 * gcore.in: Quote variables and switch interpreter to bash.
2018
c7b15a66
TT
20192018-03-01 Tom Tromey <tom@tromey.com>
2020
2021 * dwarf2read.c (alloc_discriminant_info): Fix default_index
2022 assertion. Add assertion for discriminant_index.
2023 (quirk_rust_enum): Use correct base type name in univariant case.
2024
0cb7c7b0
SM
20252018-03-01 Simon Marchi <simon.marchi@ericsson.com>
2026
2027 * record.c (get_call_history_modifiers): Return a
2028 record_print_flags.
2029 (cmd_record_call_history): Adjust.
2030 * record-btrace.c (record_btrace_call_history): Adjust.
2031 (record_btrace_call_history_range): Adjust.
2032 (record_btrace_call_history_from): Adjust.
2033 * target-debug.h (target_debug_print_record_print_flags): New.
2034 * target-delegates.c: Re-generate.
2035 * target.c (target_call_history): Change flags type.
2036 (target_call_history_from): Likewise.
2037 (target_call_history_range): Likewise.
2038 * target.h (struct target_ops) <target_call_history>: Likewise.
2039 (target_call_history_from): Likewise.
2040 (target_call_history_range): Likewise.
2041
25e3c82c
SDJ
20422018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2043 Simon Marchi <simon.marchi@polymtl.ca>
2044
2045 * common/common-utils.c: Include "sys/stat.h".
2046 (is_regular_file): Move here from "source.c"; change return
2047 type to "bool".
2048 * common/common-utils.h (is_regular_file): New prototype.
2049 * common/pathstuff.c (contains_dir_separator): New function.
2050 * common/pathstuff.h (contains_dir_separator): New prototype.
2051 * source.c: Don't include "sys/stat.h".
2052 (is_regular_file): Move to "common/common-utils.c".
2053
b4987c95
SDJ
20542018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2055
2056 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
2057 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
2058 * auto-load.c: Include "common/pathstuff.h".
2059 * common/common-def.h (current_directory): Move here.
2060 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
2061 function.
2062 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
2063 prototype.
2064 * common/pathstuff.c: New file.
2065 * common/pathstuff.h: New file.
2066 * compile/compile.c: Include "common/pathstuff.h".
2067 * defs.h (current_directory): Move to "common/common-defs.h".
2068 * dwarf2read.c: Include "common/pathstuff.h".
2069 * exec.c: Likewise.
2070 * guile/scm-safe-call.c: Likewise.
2071 * linux-thread-db.c: Likewise.
2072 * main.c: Likewise.
2073 * nto-tdep.c: Likewise.
2074 * objfiles.c: Likewise.
2075 * source.c: Likewise.
2076 * symtab.c: Likewise.
2077 * utils.c: Include "common/pathstuff.h".
2078 (gdb_realpath): Move to "common/pathstuff.c".
2079 (gdb_realpath_keepfile): Likewise.
2080 (gdb_abspath): Likewise.
2081 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
2082 (gdb_realpath_keepfile): Likewise.
2083 (gdb_abspath): Likewise.
2084
f169cfdc
JB
20852018-02-28 John Baldwin <jhb@FreeBSD.org>
2086
2087 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
2088 wildcard process pid for super_resume for kernels with a
2089 specific bug.
2090
e05cac70
PM
20912018-02-27 Phil Muldoon <pmuldoon@redhat.com>
2092
2093 * compile/compile.c (get_args): Add additional comments
2094 explaining function.
2095
55089490
TT
20962018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
2097 Tom Tromey <tom@tromey.com>
2098
2099 * target.h (memory_write_request_s): Remove typedef. Don't define
2100 VEC.
2101 (target_write_memory_blocks): Change argument to std::vector.
2102 (struct memory_write_request): Add constructor.
2103 * target-memory.c (compare_block_starting_address): Return bool.
2104 Change argument types.
2105 (claim_memory): Change arguments to use std::vector.
2106 (split_regular_and_flash_blocks, blocks_to_erase)
2107 (compute_garbled_blocks): Likewise.
2108 (cleanup_request_data, cleanup_write_requests_vector): Remove.
2109 (target_write_memory_blocks): Change argument to std::vector.
2110 * symfile.c (struct load_section_data): Add constructor and
2111 destructor. Use std::vector for "requests".
2112 (struct load_progress_data): Add initializers.
2113 (load_section_callback): Update. Use "new".
2114 (clear_memory_write_data): Remove.
2115 (generic_load): Update.
2116
0c305b61
AH
21172018-02-27 Alan Hayward <alan.hayward@arm.com>
2118
2119 * arch/aarch64.h: Use common/tdesc.h.
2120
c5196c92
MR
21212018-02-26 Maciej W. Rozycki <macro@mips.com>
2122
2123 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
2124 architecture with a 64-bit ABI.
2125
37c33887
MR
21262018-02-26 Maciej W. Rozycki <macro@mips.com>
2127
2128 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
2129 ahead of target description loading.
2130
d4dd3282
TT
21312018-02-26 Tom Tromey <tom@tromey.com>
2132
2133 * stack.c (backtrace_command_1): Update.
2134 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
2135 of "flags".
2136 * python/py-framefilter.c (py_print_frame)
2137 (gdbpy_apply_frame_filter): Change type of "flags".
2138 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
2139 of "flags".
2140 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
2141 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
2142 * extension.h (enum frame_filter_flag): Rename from
2143 frame_filter_flags.
2144 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
2145 (apply_ext_lang_frame_filter): Change type of "flags".
2146 * extension.c (apply_ext_lang_frame_filter): Change type of
2147 "flags".
2148 * extension-priv.h (struct extension_language_ops)
2149 <apply_frame_filter>: Change type of "flags".
2150
6893c19a
TT
21512018-02-26 Tom Tromey <tom@tromey.com>
2152
2153 PR python/16497:
2154 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
2155 off-by-one in py_end computation.
2156 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
2157 PRINT_MORE_FRAMES.
2158 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
2159 constant.
2160
2ddeaf8a
TT
21612018-02-26 Tom Tromey <tom@tromey.com>
2162
2163 * dwarf2read.c (struct variant_field): New.
2164 (struct nextfield) <variant>: New field.
2165 (dwarf2_add_field): Handle DW_TAG_variant_part.
2166 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
2167 discriminated union.
2168 (read_structure_type): Handle DW_TAG_variant_part.
2169 (handle_struct_member_die): New function, extracted from
2170 process_structure_scope. Handle DW_TAG_variant.
2171 (process_structure_scope): Handle discriminated unions. Call
2172 handle_struct_member_die.
2173
c9317f21
TT
21742018-02-26 Tom Tromey <tom@tromey.com>
2175
2176 * rust-lang.h (rust_last_path_segment): Declare.
2177 * rust-lang.c (rust_last_path_segment): Now public. Change
2178 contract.
2179 (struct disr_info): Remove.
2180 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
2181 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
2182 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
2183 (rust_enum_p, rust_enum_variant): New function.
2184 (rust_underscore_fields): Remove "offset" parameter.
2185 (rust_print_enum): New function.
2186 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
2187 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
2188 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
2189 enums.
2190 (rust_internal_print_type): New function, from rust_print_type.
2191 Remove enum code.
2192 (rust_print_type): Call rust_internal_print_type.
2193 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
2194 Update enum handling.
2195 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
2196 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
2197 (rust_union_quirks): New functions.
2198 (process_full_comp_unit, process_full_type_unit): Call
2199 rust_union_quirks.
2200 (process_structure_scope): Update rust_unions if necessary.
2201
7c22600a
TT
22022018-02-26 Tom Tromey <tom@tromey.com>
2203
2204 * value.h (value_union_variant): Declare.
2205 * valops.c (value_union_variant): New function.
2206 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
2207 (struct discriminant_info): New.
2208 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
2209 enumerator.
2210 (struct main_type) <flag_discriminated_union>: New field.
2211
15ce8941
TT
22122018-02-26 Tom Tromey <tom@tromey.com>
2213
2214 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2215 unittests/unpack-selftests.c.
2216 * unittests/unpack-selftests.c: New file.
2217 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
2218
48fbe735
YQ
22192018-02-26 Yao Qi <yao.qi@linaro.org>
2220
2221 * dwarf2read.c (struct partial_die_info) <read>: New method.
2222 (read_partial_die): Remove the declaration.
2223 (load_partial_dies): Update.
2224 (partial_die_info::partial_die_info):
2225 (read_partial_die): Change it to partial_die_info::read.
2226
52356b79
YQ
22272018-02-26 Yao Qi <yao.qi@linaro.org>
2228
2229 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
2230 (fixup_partial_die): Remove declaration.
2231 (scan_partial_symbols): Update.
2232 (partial_die_parent_scope): Likewise.
2233 (partial_die_full_name): Likewise.
2234 (fixup_partial_die): Change it to partial_die_info::fixup.
2235
35cc7ed7
YQ
22362018-02-26 Yao Qi <yao.qi@linaro.org>
2237
2238 * dwarf2read.c (read_partial_die): Update the declaration.
2239 (load_partial_dies): Caller update.
2240 (read_partial_die): Remove one argument abbrev_len.
2241
6f06d47b
YQ
22422018-02-26 Yao Qi <yao.qi@linaro.org>
2243
2244 * dwarf2read.c (struct partial_die_info): Add ctor, delete
2245 assignment operator.
2246 (load_partial_dies): Use ctor and copy ctor.
2247 (read_partial_die): Update.
2248 (dwarf2_cu::find_partial_die): Use ctor.
2249
d590ff25
YQ
22502018-02-26 Yao Qi <yao.qi@linaro.org>
2251
2252 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
2253 (find_partial_die_in_comp_unit): Change it to
2254 dwarf2_cu::find_partial_die.
2255 (find_partial_die): Update.
2256
fd0a254f
YQ
22572018-02-26 Yao Qi <yao.qi@linaro.org>
2258
2259 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
2260 is NULL.
2261
cd9983dd
YQ
22622018-02-26 Yao Qi <yao.qi@linaro.org>
2263
2264 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
2265
f46cd62a
AH
22662018-02-26 Alan Hayward <alan.hayward@arm.com>
2267
2268 * arch/amd64.h: Use common/tdesc.h.
2269 * arch/i386.c: Likewise.
2270 * arch/i386.h: Likewise.
2271 * arch/tic6x.c: Likewise.
2272 * arch/tdesc.h: Move file from here...
2273 * common/tdesc.h: ...to here.
2274 * features/aarch64-core.c: Regenerate.
2275 * features/aarch64-fpu.c: Regenerate.
2276 * features/i386/32bit-avx.c: Regenerate.
2277 * features/i386/32bit-avx512.c: Regenerate.
2278 * features/i386/32bit-core.c: Regenerate.
2279 * features/i386/32bit-linux.c: Regenerate.
2280 * features/i386/32bit-mpx.c: Regenerate.
2281 * features/i386/32bit-pkeys.c: Regenerate.
2282 * features/i386/32bit-sse.c: Regenerate.
2283 * features/i386/64bit-avx.c: Regenerate.
2284 * features/i386/64bit-avx512.c: Regenerate.
2285 * features/i386/64bit-core.c: Regenerate.
2286 * features/i386/64bit-linux.c: Regenerate.
2287 * features/i386/64bit-mpx.c: Regenerate.
2288 * features/i386/64bit-pkeys.c: Regenerate.
2289 * features/i386/64bit-segments.c: Regenerate.
2290 * features/i386/64bit-sse.c: Regenerate.
2291 * features/i386/x32-core.c: Regenerate.
2292 * features/tic6x-c6xp.c: Regenerate.
2293 * features/tic6x-core.c: Regenerate.
2294 * features/tic6x-gp.c: Regenerate.
2295 * target-descriptions.c: Use common/tdesc.h.
2296 * target-descriptions.h: Likewise.
2297
9b292f68
TT
22982018-02-24 Tom Tromey <tom@tromey.com>
2299
2300 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2301 (try_thread_db_load_from_dir, thread_db_load_search): Use
2302 std::string.
2303 (info_auto_load_libthread_db_compare): Return bool. Change
2304 argument types.
2305 (info_auto_load_libthread_db): Use std::vector, std::string.
2306 Remove cleanups.
2307
281d762b
TT
23082018-02-24 Tom Tromey <tom@tromey.com>
2309
2310 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
2311 std::string.
2312 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
2313 std::string*.
2314 * gdbarch.c: Rebuild.
2315 * gdbarch.h: Rebuild.
2316 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
2317 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
2318 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
2319 std::string*.
2320
9d8780f0
SM
23212018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2322
2323 * gdbtypes.h (sect_offset): Change type to uint64_t.
2324 (sect_offset_str): New function.
2325 * dwarf2read.c (create_addrmap_from_aranges): Use
2326 sect_offset_str.
2327 (error_check_comp_unit_head): Likewise.
2328 (create_debug_type_hash_table): Likewise.
2329 (read_cutu_die_from_dwo): Likewise.
2330 (init_cutu_and_read_dies): Likewise.
2331 (init_cutu_and_read_dies_no_follow): Likewise.
2332 (process_psymtab_comp_unit_reader): Likewise.
2333 (partial_die_parent_scope): Likewise.
2334 (peek_die_abbrev): Likewise.
2335 (process_queue): Likewise.
2336 (dwarf2_physname): Likewise.
2337 (read_namespace_alias): Likewise.
2338 (read_import_statement): Likewise.
2339 (create_dwo_cu_reader): Likewise.
2340 (create_cus_hash_table): Likewise.
2341 (lookup_dwo_cutu): Likewise.
2342 (inherit_abstract_dies): Likewise.
2343 (read_func_scope): Likewise.
2344 (read_call_site_scope): Likewise.
2345 (dwarf2_add_member_fn): Likewise.
2346 (read_common_block): Likewise.
2347 (read_module_type): Likewise.
2348 (read_typedef): Likewise.
2349 (read_subrange_type): Likewise.
2350 (load_partial_dies): Likewise.
2351 (read_partial_die): Likewise.
2352 (find_partial_die): Likewise.
2353 (read_str_index): Likewise.
2354 (dwarf2_string_attr): Likewise.
2355 (build_error_marker_type): Likewise.
2356 (lookup_die_type): Likewise.
2357 (dump_die_shallow): Likewise.
2358 (follow_die_ref): Likewise.
2359 (dwarf2_fetch_die_loc_sect_off): Likewise.
2360 (dwarf2_fetch_constant_bytes): Likewise.
2361 (follow_die_sig): Likewise.
2362 (get_signatured_type): Likewise.
2363 (get_DW_AT_signature_type): Likewise.
2364 (dwarf2_find_containing_comp_unit): Likewise.
2365 (set_die_type): Likewise.
2366
8ec57239
JB
23672018-02-21 John Baldwin <jhb@FreeBSD.org>
2368
2369 * arch/aarch64.c: Include "common-defs.h".
2370 * arch/amd64.c: Likewise.
2371 * arch/i386.c: Likewise.
2372
3eac2b65
TT
23732018-02-21 Tom Tromey <tom@tromey.com>
2374
2375 * value.h: (extract_field_op): Update.
2376 * eval.c (extract_field_op): Return a const char *.
2377 * expression.h (parse_expression_for_completion): Update.
2378 * completer.c (complete_expression): Update.
2379 (add_struct_fields): Make fieldname const.
2380 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
2381 (mark_completion_tag, parse_exp_in_context_1): Update.
2382 (parse_expression_for_completion): Change "name" to
2383 unique_xmalloc_ptr*.
2384
6ccb583f
TT
23852018-02-21 Tom Tromey <tom@tromey.com>
2386
2387 * infcall.c (call_function_by_hand_dummy): Use std::vector.
2388
c113ed0c
YQ
23892018-02-21 Yao Qi <yao.qi@linaro.org>
2390
2391 * avr-tdep.c (avr_read_pc): Change parameter type to
2392 readable_regcache.
2393 * gdbarch.sh (read_pc): Likewise.
2394 * gdbarch.c: Re-generated.
2395 * gdbarch.h: Re-generated.
2396 * hppa-tdep.c (hppa_read_pc): Change parameter type to
2397 readable_regcache.
2398 * ia64-tdep.c (ia64_read_pc): Likewise.
2399 * mips-tdep.c (mips_read_pc): Likewise.
2400 * spu-tdep.c (spu_read_pc): Likewise.
2401
4c74fe6b
YQ
24022018-02-21 Yao Qi <yao.qi@linaro.org>
2403
2404 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
2405 * regcache-dump.c: New file.
2406 * regcache.c: Move register_dump to regcache-dump.c.
2407 (maintenance_print_registers): Likewise.
2408 (maintenance_print_raw_registers): Likewise.
2409 (maintenance_print_cooked_registers): Likewise.
2410 (maintenance_print_register_groups): Likewise.
2411 (maintenance_print_remote_registers): Likewise.
2412 (_initialize_regcache): Likewise.
2413 * regcache.h (register_dump): Moved from regcache.c.
2414
796bb026
YQ
24152018-02-21 Yao Qi <yao.qi@linaro.org>
2416
2417 * regcache.c (regcache::regcache): Update.
2418 (regcache::invalidate): Move it to detached_regcache::invalidate.
2419 (get_thread_arch_aspace_regcache): Update.
2420 (regcache::raw_update): Update.
2421 (regcache::cooked_read): Remove some code.
2422 (regcache::cooked_read_value): Likewise.
2423 (regcache::raw_write): Remove assert on m_readonly_p.
2424 (regcache::raw_supply_integer): Move it to
2425 detached_regcache::raw_supply_integer.
2426 (regcache::raw_supply_zeroed): Likewise.
2427 * regcache.h (detached_regcache) <raw_supply_integer>: New
2428 declaration.
2429 <raw_supply_zeroed, invalidate>: Likewise.
2430 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
2431 <invalidate>: Likewise.
2432 <m_readonly_p>: Removed.
2433
215c69dc
YQ
24342018-02-21 Yao Qi <yao.qi@linaro.org>
2435
2436 * infcmd.c (get_return_value): Let stop_regs point to
2437 get_current_regcache.
2438 * regcache.c (regcache::regcache): Remove.
2439 (register_dump_reg_buffer): New class.
2440 (regcache_print): Adjust.
2441 * regcache.h (regcache): Remove constructors.
2442
f3384e66
YQ
24432018-02-21 Yao Qi <yao.qi@linaro.org>
2444
2445 * regcache.c (class register_dump): New class.
2446 (register_dump_regcache, register_dump_none): New class.
2447 (register_dump_remote, register_dump_groups): New class.
2448 (regcache_print): Update.
2449 * regcache.h (regcache_dump_what): Move it to regcache.c.
2450 (regcache) <dump>: Remove.
2451
c8ec2f33
YQ
24522018-02-21 Yao Qi <yao.qi@linaro.org>
2453
2454 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
2455 reg_buffer_rw *.
2456 (jit_unwind_reg_set_impl): Call raw_supply.
2457 (jit_frame_sniffer): Use reg_buffer_rw.
2458 * record-full.c (record_full_core_regbuf): Change its type.
2459 (record_full_core_open_1): Use reg_buffer_rw.
2460 (record_full_close): Likewise.
2461 (record_full_core_fetch_registers): Use regcache->raw_supply.
2462 (record_full_core_store_registers): Likewise.
2463 * regcache.c (regcache::get_register_status): Move it to
2464 reg_buffer.
2465 (regcache_raw_set_cached_value): Remove.
2466 (regcache::raw_set_cached_value): Remove.
2467 (regcache::raw_write): Call raw_supply.
2468 (regcache::raw_supply): Move it to reg_buffer_rw.
2469 * regcache.h (regcache_raw_set_cached_value): Remove.
2470 (reg_buffer_rw): New class.
2471
daf6667d
YQ
24722018-02-21 Yao Qi <yao.qi@linaro.org>
2473
2474 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
2475 readonly_detached_regcache.
2476 (dummy_frame_prev_register): Use regcache->cooked_read.
2477 * frame.c (frame_save_as_regcache): Change return type.
2478 (frame_pop): Update.
2479 * frame.h (frame_save_as_regcache): Update declaration.
2480 * inferior.h (get_infcall_suspend_state_regcache): Update
2481 declaration.
2482 * infrun.c (infcall_suspend_state) <registers>: use
2483 readonly_detached_regcache.
2484 (save_infcall_suspend_state): Don't use regcache_dup.
2485 (get_infcall_suspend_state_regcache): Change return type.
2486 * linux-fork.c (struct fork_info) <savedregs>: Change to
2487 readonly_detached_regcache.
2488 <pc>: New field.
2489 (fork_save_infrun_state): Don't use regcache_dup.
2490 (info_checkpoints_command): Adjust.
2491 * mi/mi-main.c (register_changed_p): Update declaration.
2492 (mi_cmd_data_list_changed_registers): Use
2493 readonly_detached_regcache.
2494 (register_changed_p): Change parameter type to
2495 readonly_detached_regcache.
2496 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
2497 readonly_detached_regcache.
2498 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
2499 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
2500 New.
2501 (regcache::save): Move it to reg_buffer.
2502 (regcache::restore): Change parameter type.
2503 (regcache_dup): Remove.
2504 * regcache.h (reg_buffer) <save>: New method.
2505 (readonly_detached_regcache): New class.
2506 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
2507 readonly_detached_regcache.
2508 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
2509
fc5b8736
YQ
25102018-02-21 Yao Qi <yao.qi@linaro.org>
2511
2512 * frame.c (frame_save_as_regcache): Use regcache method save.
2513 (frame_pop): Use regcache method restore.
2514 * infrun.c (restore_infcall_suspend_state): Likewise.
2515 * linux-fork.c (fork_load_infrun_state): Likewise.
2516 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
2517 save.
2518 * regcache.c (regcache_save): Remove.
2519 (regcache::restore): More asserts.
2520 (regcache_cpy): Remove.
2521 * regcache.h (regcache_save): Remove the declaration.
2522 (regcache::restore): Move from private to public.
2523 Remove the friend declaration of regcache_cpy.
2524 (regcache_cpy): Remove declaration.
2525
849d0ba8
YQ
25262018-02-21 Yao Qi <yao.qi@linaro.org>
2527
2528 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
2529 parameter type to 'readable_regcache *'.
2530 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2531 * arm-tdep.c (arm_neon_quad_read): Likewise.
2532 (arm_pseudo_read): Likewise.
2533 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2534 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2535 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2536 * gdbarch.c: Re-generated.
2537 * gdbarch.h: Re-generated.
2538 * gdbarch.sh (pseudo_register_read): Change parameter type to
2539 'readable_regcache *'.
2540 (pseudo_register_read_value): Likewise.
2541 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
2542 (h8300_pseudo_register_read): Likewise.
2543 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
2544 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2545 (i386_pseudo_register_read_into_value): Likewise.
2546 (i386_pseudo_register_read_value): Likewise.
2547 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
2548 declaration.
2549 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
2550 * m32c-tdep.c (m32c_raw_read): Likewise.
2551 (m32c_read_flg): Likewise.
2552 (m32c_banked_register): Likewise.
2553 (m32c_banked_read): Likewise.
2554 (m32c_sb_read): Likewise.
2555 (m32c_part_read): Likewise.
2556 (m32c_cat_read): Likewise.
2557 (m32c_r3r2r1r0_read): Likewise.
2558 (m32c_pseudo_register_read): Likewise.
2559 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2560 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2561 (mep_pseudo_cr64_read): Likewise.
2562 (mep_pseudo_register_read): Likewise.
2563 * mips-tdep.c (mips_pseudo_register_read): Likewise.
2564 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2565 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2566 * regcache.c (regcache::raw_read): Move it to readable_regcache.
2567 (regcache::cooked_read): Likewise.
2568 (regcache::cooked_read_value): Likewise.
2569 (regcache_cooked_read_signed):
2570 (regcache::cooked_read): Likewise.
2571 * regcache.h (readable_regcache): New class.
2572 (regcache): Inherit readable_regcache. Move some methods to
2573 readable_regcache.
2574 * rl78-tdep.c (rl78_pseudo_register_read): Change
2575 parameter type to 'readable_regcache *'.
2576 * rs6000-tdep.c (do_regcache_raw_read): Remove.
2577 (e500_pseudo_register_read): Change parameter type to
2578 'readable_regcache *'.
2579 (dfp_pseudo_register_read): Likewise.
2580 (vsx_pseudo_register_read): Likewise.
2581 (efpr_pseudo_register_read): Likewise.
2582 * s390-tdep.c (s390_pseudo_register_read): Likewise.
2583 * sh-tdep.c (sh_pseudo_register_read): Likewise.
2584 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
2585 (sh64_pseudo_register_read): Likewise.
2586 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2587 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2588 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2589 (spu_pseudo_register_read): Likewise.
2590 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2591 (xtensa_pseudo_register_read): Likewise.
2592
31716595
YQ
25932018-02-21 Yao Qi <yao.qi@linaro.org>
2594
2595 * regcache.c (regcache::regcache): Call reg_buffer ctor.
2596 (regcache::arch): Move it to reg_buffer::arch.
2597 (regcache::register_buffer): Likewise.
2598 (regcache::assert_regnum): Likewise.
2599 (regcache::num_raw_registers): Likewise.
2600 * regcache.h (reg_buffer): New class.
2601 (regcache): Inherit reg_buffer.
2602
7104e59b
SM
26032018-02-20 Simon Marchi <simon.marchi@ericsson.com>
2604
2605 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
2606 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
2607
2d8adcbd
MM
26082018-02-20 Markus Metzger <markus.t.metzger@intel.com>
2609
2610 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
2611
b5884fa7
AH
26122018-02-19 Alan Hayward <alan.hayward@arm.com>
2613
2614 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
2615 (SFILES): Remove common/*.c files.
2616 (COMMON_OBS): Remove some *.o files built from common/*.c files.
2617 * common/common.host: Add common reference.
2618 * configure.ac: Likewise.
2619 * configure: Regenerate.
2620
fd90ace4
YQ
26212018-02-16 Yao Qi <yao.qi@linaro.org>
2622
2623 * block.c (block_namespace_info): Inherit allocate_on_obstack.
2624 (block_initialize_namespace): Use new.
2625 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
2626 (dwarf2_free_objfile): Use delete.
2627 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
2628 (copy_type_recursive): Use new.
2629 * gdb_obstack.h (allocate_on_obstack): New.
2630
85046ae2
YQ
26312018-02-15 Yao Qi <yao.qi@linaro.org>
2632
2633 PR gdb/22849
2634 * inferior.c (exit_inferior_1): Reset inf->control.
2635
355c559b
JB
26362018-02-15 Joel Brobecker <brobecker@adacore.com>
2637
2638 * ada-lang.c (ada_to_fixed_value_create): Delete advance
2639 declaration.
2640
980548fd
PA
26412018-02-14 Pedro Alves <palves@redhat.com>
2642
2643 * frame-unwind.c (frame_unwind_try_unwinder): Always call
2644 frame_cleanup_after_sniffer on exception.
2645
692d6f97
TT
26462018-02-14 Tom Tromey <tom@tromey.com>
2647
2648 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
2649 const.
2650 (solib_bfd_open): Make pathname const.
2651 * solib.c (solib_bfd_open): Make pathname const.
2652 * solib-spu.c (spu_bfd_fopen): Make name const.
2653 (spu_bfd_open): Make pathname const.
2654 * solib-darwin.c (darwin_bfd_open): Make pathname const.
2655 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
2656
e0cc99a6
TT
26572018-02-14 Tom Tromey <tom@tromey.com>
2658
2659 * symfile.c (symfile_bfd_open): Update.
2660 * source.h (openp, source_full_path_of, find_and_open_source):
2661 Change argument type to unique_xmalloc_ptr.
2662 * source.c (openp): Take a unique_xmalloc_ptr.
2663 (source_full_path_of, find_and_open_source): Likewise.
2664 (open_source_file, symtab_to_fullname): Update.
2665 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
2666 unique_xmalloc_ptr.
2667 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
2668 (exec_file_find): Update.
2669 * psymtab.c (psymtab_to_fullname): Update.
2670 * nto-tdep.h (nto_find_and_open_solib): Update.
2671 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
2672 unique_xmalloc_ptr.
2673 * exec.c (exec_file_attach): Update.
2674 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
2675 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
2676
b46a8d7c
TT
26772018-02-14 Tom Tromey <tom@tromey.com>
2678
2679 * solib.c: Include source.h.
2680 * nto-tdep.c: Include source.h.
2681 * mi/mi-cmd-env.c: Include source.h.
2682 * infcmd.c: Include source.h.
2683 * exec.c: Include source.h.
2684 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
2685 (add_path, directory_switch, source_path, init_source_path): Move
2686 declarations...
2687 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
2688 (add_path, directory_switch, source_path, init_source_path):
2689 ...here.
2690
797bc1cb
TT
26912018-02-14 Tom Tromey <tom@tromey.com>
2692
2693 * solist.h (exec_file_find, solib_find): Return
2694 unique_xmalloc_ptr.
2695 (solib_bfd_fopen): Take a const char *.
2696 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
2697 (exec_file_find, solib_find): Likewise.
2698 (solib_bfd_fopen): Do not take ownership of "pathname".
2699 (solib_bfd_open): Use unique_xmalloc_ptr.
2700 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
2701 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
2702 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
2703 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
2704
f98b2e33
JB
27052018-02-14 Joel Brobecker <brobecker@adacore.com>
2706
2707 * ada-lang.c (name_match_type_from_name): Remove reference to
2708 ada_name_for_lookup in function's documentation.
2709 * ada-lang.h (ada_name_for_lookup): Delete declaration.
2710
24b9144d
SM
27112018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
2712
2713 * defs.h (enum openp_flags): New enum.
2714 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
2715 Move to enum openp_flags.
2716 (openp_flags): New enum flags.
2717 (openp): Change parameter type to openp_flags.
2718 * source.c (openp): Change parameter type to openp_flags.
2719 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
2720 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
2721
387cd15b
SM
27222018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
2723
2724 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
2725 per-command.
2726
b303c6f6
AB
27272018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2728
2729 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
2730 into...
2731 (class dwarf2_queue_guard): ...the destructor of this new class.
2732 (dw2_do_instantiate_symtab): Create instance of the new class
2733 dwarf2_queue_guard, remove cleanup.
2734
9c3630e9
TT
27352018-02-09 Tom Tromey <tom@tromey.com>
2736
2737 * source.c (find_source_lines): Don't reference past the end of
2738 the vector.
2739
c4e12631
MM
27402018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2741
2742 * remote.c (remote_btrace_maybe_reopen): Change error message.
2743 * btrace.c (btrace_enable): Likewise.
2744 (parse_xml_btrace): Likewise.
2745 (parse_xml_btrace_conf): Likewise.
2746
88711fbf
MM
27472018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2748
2749 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
2750 (linux_enable_pt, linux_enable_bts): Call
2751 diagnose_perf_event_open_fail.
2752
17ad2a4f
MM
27532018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2754
2755 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
2756 Remove parameter and change return type. Update callers. Move it.
2757 (linux_enable_bts, linux_enable_pt): Improve error message.
2758 (linux_enable_pt): Remove zero buffer size check.
2759 (linux_enable_btrace): Improve error messages. Remove NULL return
2760 check.
2761
de6242d3
MM
27622018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2763
2764 * btrace.c (btrace_enable): Remove target_supports_btrace call.
2765 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
2766 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
2767 (linux_supports_pt, linux_supports_btrace): Remove.
2768 (linux_enable_bts): Call cpu_supports_bts.
2769 * nat/linux-btrace.h (linux_supports_btrace): Remove.
2770 * remote.c (remote_supports_btrace): Remove.
2771 (init_remote_ops): Remove remote_supports_btrace.
2772 * target-delegates.c: Regenerated.
2773 * target.c (target_supports_btrace): Remove.
2774 * target.h (target_ops) <to_supports_btrace>: Remove
2775 (target_supports_btrace): Remove.
2776 * x86-linux-nat.c (x86_linux_create_target): Remove
2777 linux_supports_btrace.
2778
9ee23a85
MM
27792018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2780
2781 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
2782 btrace failed.
2783 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
2784 exception and use message in own exception.
2785
5c3284c1
MM
27862018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2787
2788 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
2789 (perf_event_pt_event_type): Use gdb_file_up.
2790 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
2791 scoped_fd, and scoped_mmap.
2792
84696f37
MM
27932018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2794
2795 * common/scoped_mmap.h: New.
2796 * unittests/scoped_mmap-selftest.c: New.
2797 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2798 unittests/scoped_mmap-selftest.c.
2799
ea4a0888
MM
28002018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2801
2802 * common/scoped_fd.h: New.
2803 * unittests/scoped_fd-selftest.c: New.
2804 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2805 unittests/scoped_fd-selftest.c.
2806
869e8290
TT
28072018-02-09 Tom Tromey <tom@tromey.com>
2808
2809 * auto-load.c (auto_load_section_scripts): Use
2810 gdb::unique_xmalloc_ptr.
2811
a37a2ae7
TT
28122018-02-09 Tom Tromey <tom@tromey.com>
2813
2814 * auto-load.c (execute_script_contents): Use std::string.
2815
4e725347
JB
28162018-02-09 Joel Brobecker <brobecker@adacore.com>
2817
2818 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
2819 Python function, rather than a new command.
2820
9a897d43
TT
28212018-02-08 Tom Tromey <tom@tromey.com>
2822
2823 * solib.c (solib_find_1): Use std::string.
2824 (solib_bfd_fopen): Use unique_xmalloc_ptr.
2825
58ef3771
TT
28262018-02-08 Tom Tromey <tom@tromey.com>
2827
2828 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
2829
a9abc434
TT
28302018-02-08 Tom Tromey <tom@tromey.com>
2831
2832 * source.c (find_source_lines): Use gdb::def_vector.
2833
84f27c6f
TT
28342018-02-08 Tom Tromey <tom@tromey.com>
2835
2836 * macrocmd.c (struct temporary_macro_definition): New.
2837 (macro_define_command): Use temporary_macro_definition. Remove
2838 cleanups.
2839 (free_macro_definition_ptr): Remove.
2840
0354904b
TT
28412018-02-08 Tom Tromey <tom@tromey.com>
2842
2843 * macroexp.c (maybe_expand): Use std::string.
2844
1739cf24
TT
28452018-02-08 Tom Tromey <tom@tromey.com>
2846
2847 * macroexp.c (struct macro_buffer): Add initializers for some
2848 members.
2849 (init_buffer, init_shared_buffer, free_buffer)
2850 (free_buffer_return_text): Remove.
2851 (macro_buffer): New constructors.
2852 (~macro_buffer): New destructor.
2853 (macro_buffer::set_shared): New method.
2854 (macro_buffer::resize_buffer, macro_buffer::appendc)
2855 (macro_buffer::appendmem): Now methods, not free functions.
2856 (set_token, append_tokens_without_splicing, stringify)
2857 (macro_stringify): Update.
2858 (gather_arguments): Change return type. Remove argc_p argument,
2859 add args_ptr argument. Use std::vector.
2860 (substitute_args): Remove argc argument. Accept std::vector.
2861 (expand): Update. Use std::vector.
2862 (scan, macro_expand, macro_expand_next): Update.
2863
f6c2623e
TT
28642018-02-08 Tom Tromey <tom@tromey.com>
2865
2866 * symtab.c (default_collect_symbol_completion_matches_break_on):
2867 Use unique_xmalloc_ptr.
2868 * macroscope.h: (sal_macro_scope, user_macro_scope)
2869 (default_macro_scope): Return unique_xmalloc_ptr.
2870 * macroscope.c (sal_macro_scope, user_macro_scope)
2871 (default_macro_scope): Return unique_xmalloc_ptr.
2872 * macroexp.h (macro_expand, macro_expand_once): Return
2873 unique_xmalloc_ptr.
2874 * macroexp.c (macro_expand, macro_expand_once): Return
2875 unique_xmalloc_ptr.
2876 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2877 (info_macro_command, info_macros_command): Use
2878 unique_xmalloc_ptr.
2879 * compile/compile-c-support.c (write_macro_definitions): Use
2880 unique_xmalloc_ptr.
2881 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
2882
c2e0e465
SM
28832018-02-07 Simon Marchi <simon.marchi@ericsson.com>
2884
2885 * value.c (value_static_field): Assign field type instead of
2886 containing type when returning an optimized out value.
2887
3f8c94b4
YQ
28882018-02-06 Yao Qi <yao.qi@linaro.org>
2889
2890 * ft32-tdep.c (ft32_read_pc): Remove.
2891 (ft32_write_pc): Remove.
2892 (ft32_gdbarch_init): Update.
2893 * m32r-tdep.c (m32r_read_pc): Remove.
2894 (m32r_gdbarch_init): Update.
2895 * mep-tdep.c (mep_read_pc): Remove.
2896 (mep_gdbarch_init): Update.
2897 * microblaze-tdep.c (microblaze_write_pc): Remove.
2898 (microblaze_gdbarch_init): Update.
2899 * mn10300-tdep.c (mn10300_read_pc): Remove.
2900 (mn10300_write_pc): Remove.
2901 (mn10300_gdbarch_init): Update.
2902 * moxie-tdep.c (moxie_read_pc): Remove.
2903 (moxie_write_pc): Remove.
2904 (moxie_gdbarch_init): Update.
2905
bca65a23
YQ
29062018-02-06 Yao Qi <yao.qi@linaro.org>
2907
2908 * expprint.c (print_subexp_standard): Handle
2909 OP_F77_UNDETERMINED_ARGLIST.
2910 (dump_subexp_body_standard): Likewise.
2911
583e3f90 29122018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 2913
583e3f90
YQ
2914 * target-descriptions.c (tdesc_element_visitor) Add empty
2915 implementations.
b8df6ca7
AH
2916 (tdesc_type): Move make_gdb_type from here.
2917 (tdesc_type_builtin): Likewise.
2918 (tdesc_type_vector): Likewise.
2919 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
2920 (make_gdb_type_struct): Move from tdesc_type_with_fields.
2921 (make_gdb_type_union): Likewise.
2922 (make_gdb_type_flags): Likewise.
2923 (make_gdb_type_enum): Likewise.
2924 (make_gdb_type): New function.
2925 (tdesc_register_type): Use static make_gdb_type.
2926
e813d34a
RK
29272018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
2928
2929 * infcmd.c (default_print_one_register_info): Align natural-format
2930 column values consistently one under another.
2931 (pad_to_column): New function.
2932
0eb876f5
JB
29332018-02-05 Joel Brobecker <brobecker@adacore.com>
2934
2935 * dwarf2read.c (dwarf2_physname): Move commment.
2936
0625771b
LS
29372018-02-01 Leszek Swirski <leszeks@google.com>
2938
2939 * varobj.c (varobj_formatted_print_options): Allow recursive
2940 pretty printing if pretty printing is enabled.
2941
59498c30
LS
29422018-02-01 Leszek Swirski <leszeks@google.com>
2943
2944 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
2945 names after a structop as a filename.
2946
2d9e6acb
YQ
29472018-02-01 Yao Qi <yao.qi@linaro.org>
2948
2949 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
2950 (arm_record_coproc_data_proc): Likewise.
2951
df95a9cf
YQ
29522018-02-01 Yao Qi <yao.qi@linaro.org>
2953
2954 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
2955
07e5f5cf
NP
29562018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
2957
2958 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
2959 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
2960
3045b475
PA
29612018-01-31 Pedro Alves <palves@redhat.com>
2962
2963 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
2964 * inflow.c (child_terminal_save_inferior): Wrap reference to
2965 tcgetpgrp in HAVE_TERMIOS_H.
2966 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
2967 _WIN32.
2968 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
2969 always iterate over all inferiors.
2970 (gdbsim_cntrl_c): Adjust.
2971 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
2972
929b5ad4
JB
29732018-01-31 Joel Brobecker <brobecker@adacore.com>
2974
2975 * gdbtypes.c (lookup_array_range_type): Make sure the array's
2976 index type is objfile-owned if the element type is as well.
2977
29236ca2
JB
29782018-01-31 Joel Brobecker <brobecker@adacore.com>
2979
2980 GDB 8.1 released.
2981
c81e8879
PR
29822018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
2983
2984 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
2985 "features/s390x-linux64.c".
2986 (_initialize_s390_linux_tdep): Remove initialization of tdescs
2987 s390_linux32 and s390x_linux64.
2988 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
2989 default tdesc.
2990 * s390-tdep.c: Include "features/s390-linux32.c" and
2991 "features/s390x-linux64.c".
2992 (s390_tdesc_valid): Add check for tdesc_has_registers.
2993 (s390_gdbarch_init): Make sure there is always a valid tdesc.
2994 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
2995 tdesc_s390x_linux64.
2996 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
2997 tdesc_s390x_linux64 to...
2998 * s390-tdep.h: ...here.
2999
e671cd59
PA
30002018-01-30 Pedro Alves <palves@redhat.com>
3001
3002 PR gdb/13211
3003 * config.in, configure: Regenerate.
3004 * configure.ac: Check for getpgid.
3005 * go32-nat.c (go32_pass_ctrlc): New.
3006 (go32_target): Install it.
3007 * inf-child.c (inf_child_target): Install
3008 child_terminal_save_inferior, child_pass_ctrlc and
3009 child_interrupt.
3010 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
3011 (inf_ptrace_target): No longer install it.
3012 * infcmd.c (interrupt_target_1): Adjust.
3013 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
3014 (child_interrupt): Declare.
3015 (inferior::terminal_state): New.
3016 * inflow.c (struct terminal_info): Update comments.
3017 (inferior_process_group): Delete.
3018 (terminal_is_ours): Delete.
3019 (gdb_tty_state): New.
3020 (child_terminal_init): Adjust.
3021 (is_gdb_terminal, sharing_input_terminal_1)
3022 (sharing_input_terminal): New functions.
3023 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
3024 Set the process's actual process group in the foreground if
3025 possible. Handle is_ours_for_output/is_ours distinction. Don't
3026 mark terminal as the inferior's if not sharing GDB's terminal.
3027 Don't check attach_flag.
3028 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
3029 pass down a target_terminal_state.
3030 (child_terminal_save_inferior): New, factored out from ...
3031 (child_terminal_ours_1): ... this. Handle
3032 target_terminal_state::is_ours_for_output.
3033 (child_interrupt, child_pass_ctrlc): New.
3034 (inflow_inferior_exit): Clear the inferior's terminal_state.
3035 (copy_terminal_info): Copy the inferior's terminal state.
3036 (_initialize_inflow): Remove reference to terminal_is_ours.
3037 * inflow.h (inferior_process_group): Delete.
3038 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
3039 * procfs.c (procfs_target): Don't install procfs_interrupt.
3040 (procfs_interrupt): Delete.
3041 * remote.c (remote_serial_quit_handler): Adjust.
3042 (remote_interrupt): Remove ptid parameter. Adjust.
3043 * target-delegates.c: Regenerate.
3044 * target.c: Include "terminal.h".
3045 (target_terminal::terminal_state): Rename to ...
3046 (target_terminal::m_terminal_state): ... this.
3047 (target_terminal::init): Adjust.
3048 (target_terminal::inferior): Adjust to per-inferior
3049 terminal_state.
3050 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
3051 (target_terminal::ours, target_terminal::ours_for_output): Use
3052 target_terminal_is_ours_kind.
3053 (target_interrupt): Remove ptid parameter. Adjust.
3054 (default_target_pass_ctrlc): Adjust.
3055 * target.h (target_ops::to_terminal_save_inferior): New field.
3056 (target_ops::to_interrupt): Remove ptid_t parameter.
3057 (target_interrupt): Remove ptid_t parameter. Update comment.
3058 (target_pass_ctrlc): Update comment.
3059 * target/target.h (target_terminal_state): New scoped enum,
3060 factored out of ...
3061 (target_terminal::terminal_state): ... here.
3062 (target_terminal::inferior): Update comments.
3063 (target_terminal::restore_inferior): New.
3064 (target_terminal::is_inferior, target_terminal::is_ours)
3065 (target_terminal::is_ours_for_output): Adjust.
3066 (target_terminal::scoped_restore_terminal_state): Adjust to
3067 rename, and call restore_inferior() instead of inferior().
3068 (target_terminal::scoped_restore_terminal_state::m_state): Change
3069 type.
3070 (target_terminal::terminal_state): Rename to ...
3071 (target_terminal::m_terminal_state): ... this and change type.
3072
9c3a5d93
PA
30732018-01-30 Pedro Alves <palves@redhat.com>
3074
3075 * linux-nat.c (wait_for_signal): New function.
3076 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
3077 directly.
3078 (async_terminal_is_ours)
3079 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
3080 (linux_nat_add_target): Don't override
3081 to_terminal_inferior/to_terminal_ours.
3082
69ab5edb
SDJ
30832018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
3084
3085 * remote.c (remote_follow_fork): Don't call "detach_inferior".
3086
fc8e7e75
SM
30872018-01-28 Simon Marchi <simon.marchi@ericsson.com>
3088
3089 * dwarf2read.c (free_dwo_files): Add forward-declaration.
3090 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
3091 dwarf2_per_objfile_free here.
3092 (dwarf2_per_objfile_free): Remove.
3093 (_initialize_dwarf2_read): Don't register
3094 dwarf2_per_objfile_free as a registry cleanup.
3095
b2a426e2
EZ
30962018-01-27 Eli Zaretskii <eliz@gnu.org>
3097
3098 Avoid compilation errors in MinGW native builds
3099
3100 The error is triggered by including python-internal.h, and the
3101 error message is:
3102
3103 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
3104 from build-gnulib/import/math.h:27,
3105 from d:/usr/Python26/include/pyport.h:235,
3106 from d:/usr/Python26/include/Python.h:58,
3107 from python/python-internal.h:94,
3108 from python/py-arch.c:24:
3109 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
3110 using ::hypot;
3111 ^~~~~
3112
3113 This happens because Python headers define 'hypot' to expand t
3114 '_hypot' in the Windows builds.
3115 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
3116 'hypoth'. This avoids a compilation error.
3117
0bdd8eac
AH
31182018-01-26 Alan Hayward <alan.hayward@arm.com>
3119
3120 * MAINTAINERS (Write After Approval): Fix ordering.
3121
56ae9dc3
AH
31222018-01-26 Alan Hayward <alan.hayward@arm.com>
3123
3124 * MAINTAINERS (Write After Approval): Add Alan Hayward.
3125
7433498b
AM
31262018-01-26 Alan Modra <amodra@gmail.com>
3127
3128 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
3129 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
3130 Remove nop. Make const. Comment.
3131 (powerpc32_plt_stub_so_2): New.
3132 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
3133 Correct count. Update uses.
3134 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
3135 Move common code reading PLT entry word. Correct
3136 powerpc32_plt_stub PLT address calculation.
3137 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
3138 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
3139 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
3140 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
3141 (ppc64_standard_linkage8): Likewise.
3142 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
3143 Correct insns description.
3144 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3145
0f59d5fc
PA
31462018-01-24 Pedro Alves <palves@redhat.com>
3147
3148 GCC PR libstdc++/83906
3149 * gdbtypes.c (operator==(const dynamic_prop &,
3150 const dynamic_prop &)): New.
3151 (operator==(const range_bounds &, const range_bounds &)): New.
3152 (check_types_equal): Use them instead of memcmp.
3153 * gdbtypes.h (operator==(const dynamic_prop &,
3154 const dynamic_prop &)): Declare.
3155 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
3156 (operator==(const range_bounds &, const range_bounds &)): Declare.
3157 (operator!=(const range_bounds &, const range_bounds &)): Declare.
3158
ef8914a4
PR
31592018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3160
3161 * s390-linux-tdep.c (s390_record_address_mask)
3162 (s390_record_calc_disp_common, s390_record_calc_disp)
3163 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
3164 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
3165 (s390_process_record): Move to s390-tdep.c.
3166 (s390_linux_init_abi_any): Adjust.
3167 * s390-tdep.c (s390_record_address_mask)
3168 (s390_record_calc_disp_common, s390_record_calc_disp)
3169 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
3170 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
3171 (s390_process_record): Moved from s390-linux-tdep.c
3172 (s390_gdbarch_init): Adjust.
3173
d6e58945
PR
31742018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3175
3176 * s390-linux-nat.c (s390-tdep.h): New include.
3177 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
3178 (HFILES_NO_SRCDIR): Add s390-tdep.h.
3179 (ALLDEPFILES): Add s390-tdep.c.
3180 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
3181 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
3182 * s390-tdep.h: ...this. New file.
3183 * s390-linux-tdep.c (s390-tdep.h): New include.
3184 (_initialize_s390_tdep): Rename to...
3185 (_initialize_s390_linux_tdep): ...this and adjust.
3186 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
3187 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
3188 s390-tdep.h.
3189 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
3190 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
3191 (s390_is_partial_instruction, s390_software_single_step)
3192 (is_non_branch_ril, s390_displaced_step_copy_insn)
3193 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
3194 (s390_prologue_data, s390_addr, s390_store, s390_load)
3195 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
3196 (s390_register_call_saved, s390_guess_tracepoint_registers)
3197 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
3198 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
3199 (s390_pseudo_register_name, s390_pseudo_register_type)
3200 (s390_pseudo_register_read, s390_pseudo_register_write)
3201 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
3202 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
3203 (s390_addr_bits_remove, s390_address_class_type_flags)
3204 (s390_address_class_type_flags_to_name)
3205 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
3206 (s390_function_arg_float, s390_function_arg_vector)
3207 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
3208 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
3209 (s390_frame_align, s390_register_return_value, s390_return_value)
3210 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
3211 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
3212 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
3213 (s390_trad_frame_prev_register, s390_unwind_cache)
3214 (s390_prologue_frame_unwind_cache)
3215 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
3216 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
3217 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
3218 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
3219 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
3220 (s390_frame_base_address, s390_local_base_address)
3221 (s390_frame_base, s390_gcc_target_options)
3222 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
3223 (s390_validate_reg_range, s390_tdesc_valid)
3224 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
3225 * s390-tdep.c: ...this. New file.
3226
9c0b896e
PR
32272018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3228
3229 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
3230 (s390_process_record, s390_gdbarch_tdep_alloc)
3231 (s390_linux_init_abi_any): Use/set new hook.
3232
7042632b
PR
32332018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3234
3235 * s390-linux-tdep.c (osabi.h): New include.
3236 (s390_linux_init_abi_31, s390_linux_init_abi_64)
3237 (s390_linux_init_abi_any): New functions.
3238 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
3239
650f5e13
PR
32402018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3241
3242 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
3243 tdesc_has_registers check
3244
47c9317e
PR
32452018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3246
3247 * s390-linux-tdep.c (s390_tdesc_valid): New function.
3248 (s390_validate_reg_range): New macro.
3249 (s390_gdbarch_init): Adjust.
3250
095085d8
PR
32512018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3252
3253 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
3254 (s390_gdbarch_tdep_alloc): Adjust.
3255 (s390_gdbarch_init): Adjust.
3256
ab9bcc67
PR
32572018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3258
3259 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
3260 <have_tdb>: Change type to bool.
3261 (s390_gdbarch_tdep_alloc): Adjust.
3262 (s390_gdbarch_init): Adjust.
3263
21f6f5ff
PR
32642018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3265
3266 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
3267 (gdbarch_tdep) <have_upper, have_vx>: New fields.
3268 (s390_gdbarch_tdep_alloc): New function.
3269 (s390_gdbarch_init): Allocate tdep at start and use its fields
3270 instead of separate variables.
3271
0eb97953
PR
32722018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3273
3274 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
3275 when looking for cached gdbarch and add comment for remaining.
3276
5c319bb2
PA
32772018-01-22 Pedro Alves <palves@redhat.com>
3278 Sergio Durigan Junior <sergiodj@redhat.com>
3279
3280 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
3281 case.
3282
d65ce302
MR
32832018-01-22 Maciej W. Rozycki <macro@mips.com>
3284
3285 * MAINTAINERS: Update my company e-mail address.
3286
ec7a5fcb
YQ
32872018-01-22 Yao Qi <yao.qi@linaro.org>
3288
3289 * regcache.c (cooked_write_test): New function.
3290 (_initialize_regcache): Register the test.
3291
11f57cb6
YQ
32922018-01-22 Yao Qi <yao.qi@linaro.org>
3293
3294 * ia64-tdep.c (ia64_pseudo_register_read): Call
3295 regcache->cooked_read instead of regcache_cooked_read_unsigned.
3296 * m32c-tdep.c (m32c_cat_read): Likewise.
3297 (m32c_r3r2r1r0_read): Likewise.
3298 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
3299 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
3300
03f50fc8
YQ
33012018-01-22 Yao Qi <yao.qi@linaro.org>
3302
3303 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
3304 method raw_read instead of regcache_raw_read.
3305 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
3306 * arm-tdep.c (arm_neon_quad_read): Likewise.
3307 * avr-tdep.c (avr_pseudo_register_read): Likewise.
3308 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
3309 * frv-tdep.c (frv_pseudo_register_read): Likewise.
3310 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
3311 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3312 (i386_pseudo_register_read_into_value): Likewise.
3313 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
3314 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
3315 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
3316 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
3317 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
3318 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
3319 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
3320 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
3321 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
3322
dc711524
YQ
33232018-01-22 Yao Qi <yao.qi@linaro.org>
3324
3325 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
3326 * configure.tgt: Remove target mt.
3327 * mt-tdep.c: Remove.
3328 * regcache.c (cooked_read_test): Remove the check for mt.
3329
3f5a868b
YQ
33302018-01-22 Yao Qi <yao.qi@linaro.org>
3331
3332 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
3333 instead of gdbarch_pseudo_register_read_value.
3334
de4cb04a
JB
33352018-01-22 Joel Brobecker <brobecker@adacore.com>
3336
3337 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
3338 language is Ada.
3339
a9e40818
JB
33402018-01-22 Joel Brobecker <brobecker@adacore.com>
3341
3342 * linespec.c (create_sals_line_offset): Remove code that preserved
3343 the symtab_and_line's line number.
3344
e707fc44
AB
33452018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * varobj.c (varobj_create): Don't set valid_block when creating a
3348 floating varobj.
3349
03d0bf7b
AB
33502018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * varobj.c (varobj_create): Remove out of date comment.
3353
ae451627
AB
33542018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3355
3356 PR mi/20395
3357 * ada-exp.y (write_var_from_sym): Pass extra parameter when
3358 updating innermost block.
3359 * parse.c (innermost_block_tracker::update): Take extra type
3360 parameter, and check types match before updating innermost block.
3361 (write_dollar_variable): Update innermost block for registers.
3362 * parser-defs.h (enum innermost_block_tracker_type): New enum.
3363 (innermost_block_tracker::innermost_block_tracker): Initialise
3364 m_types member.
3365 (innermost_block_tracker::reset): Take type parameter.
3366 (innermost_block_tracker::update): Take type parameter, and pass
3367 type through as needed.
3368 (innermost_block_tracker::m_types): New member.
3369 * varobj.c (varobj_create): Pass type when reseting innermost
3370 block.
3371
aee1fcdf
AB
33722018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
3375 * ada-lang.c (resolve_subexp): Likewise.
3376 * breakpoint.c (set_breakpoint_condition) Likewise.
3377 (watch_command_1) Likewise.
3378 * c-exp.y (variable): Likewise.
3379 * d-exp.y (PrimaryExpression): Likewise.
3380 * f-exp.y (variable): Likewise.
3381 * go-exp.y (variable): Likewise.
3382 * m2-exp.y (variable): Likewise.
3383 * objfiles.c (objfile::~objfile): Likewise.
3384 * p-exp.y (variable): Likewise.
3385 * parse.c (innermost_block): Change type.
3386 * parser-defs.h (class innermost_block_tracker): New.
3387 (innermost_block): Change to innermost_block_tracker.
3388 * printcmd.c (display_command): Switch to innermost_block API.
3389 (do_one_display): Likewise.
3390 * rust-exp.y (do_one_display): Likewise.
3391 * symfile.c (clear_symtab_users): Likewise.
3392 * varobj.c (varobj_create): Switch to innermost_block API, replace
3393 use of innermost_block with block stored on varobj object.
3394
396af9a1
AB
33952018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * expression.h (innermost_block): Remove declaration.
3398 * varobj.c: Add 'parser-defs.h' include.
3399
fcfcc376
TT
34002018-01-19 Tom Tromey <tom@tromey.com>
3401
3402 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
3403 symbols in the static and global blocks.
3404
5a6c3296
JC
34052018-01-19 James Clarke <jrtc27@jrtc27.com>
3406
3407 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
3408 gdb_ptrace.h, and move including gdb_wait.h ...
3409 * nat/linux-ptrace.h: ... to here.
3410
bc09b0c1
SM
34112018-01-19 Simon Marchi <simon.marchi@ericsson.com>
3412
3413 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
3414 inf_ptrace_detach_success.
3415 (inf_ptrace_detach_success): Add inferior parameter, use it
3416 instead of inferior_ptid, pass it to detach_inferior.
3417 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
3418 parameter.
3419 * inferior.c (detach_inferior): Add overload that takes an
3420 inferior object.
3421 * inferior.h (detach_inferior): Likewise.
3422 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
3423 use inferior_ptid, adjust call to inf_ptrace_detach_success.
3424 * linux-thread-db.c (thread_db_detach): Use inf parameter.
3425
6e1e1966
SM
34262018-01-19 Simon Marchi <simon.marchi@ericsson.com>
3427
3428 * target.h (struct target_ops) <to_detach>: Add inferior
3429 parameter.
3430 (target_detach): Likewise.
3431 * target.c (dispose_inferior): Pass inferior down.
3432 (target_detach): Pass inferior down. Assert that it is equal to
3433 the current inferior.
3434 * aix-thread.c (aix_thread_detach): Pass inferior down.
3435 * corefile.c (core_file_command): Pass current_inferior() down.
3436 * corelow.c (core_detach): Add inferior parameter.
3437 * darwin-nat.c (darwin_detach): Likewise.
3438 * gnu-nat.c (gnu_detach): Likewise.
3439 * inf-ptrace.c (inf_ptrace_detach): Likewise.
3440 * infcmd.c (detach_command): Pass current_inferior() down to
3441 target_detach.
3442 * infrun.c (follow_fork_inferior): Pass parent_inf to
3443 target_detach.
3444 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
3445 target_detach.
3446 * linux-nat.c (linux_nat_detach): Add inferior parameter.
3447 * linux-thread-db.c (thread_db_detach): Likewise.
3448 * nto-procfs.c (procfs_detach): Likewise.
3449 * procfs.c (procfs_detach): Likewise.
3450 * record.c (record_detach): Likewise.
3451 * record.h (struct inferior): Forward-declare.
3452 (record_detach): Add inferior parameter.
3453 * remote-sim.c (gdbsim_detach): Likewise.
3454 * remote.c (remote_detach_1): Likewise.
3455 (remote_detach): Likewise.
3456 (extended_remote_detach): Likewise.
3457 * sol-thread.c (sol_thread_detach): Likewise.
3458 * target-debug.h (target_debug_print_inferior_p): New macro.
3459 * target-delegates.c: Re-generate.
3460 * top.c (kill_or_detach): Pass inferior down to target_detach.
3461 * windows-nat.c (windows_detach): Add inferior parameter.
3462
6bd6f3b6
SM
34632018-01-19 Simon Marchi <simon.marchi@ericsson.com>
3464
3465 * target.h (struct target_ops) <to_detach>: Remove args
3466 parameter.
3467 (target_detach): Likewise.
3468 * target.c (dispose_inferior): Adjust.
3469 (target_detach): Remove args parameter, adjust.
3470 * aix-thread.c (aix_thread_detach): Adjust.
3471 * corefile.c (core_file_command): Adjust.
3472 * corelow.c (core_detach): Adjust.
3473 * darwin-nat.c (darwin_detach): Adjust.
3474 * gnu-nat.c (gnu_detach): Adjust.
3475 * inf-ptrace.c (inf_ptrace_detach): Adjust.
3476 * infcmd.c (detach_command): Adjust
3477 * infrun.c (follow_fork_inferior): Adjust.
3478 (handle_vfork_child_exec_or_exit): Adjust.
3479 * linux-fork.c (linux_fork_detach): Remove args parameter.
3480 * linux-fork.h (linux_fork_detach): Likewise.
3481 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
3482 * linux-thread-db.c (thread_db_detach): Likewise.
3483 * nto-procfs.c (procfs_detach): Likewise.
3484 * procfs.c (procfs_detach): Likewise.
3485 (do_detach): Remove signo parameter.
3486 * record.c (record_detach): Remove args parameter.
3487 * record.h (record_detach): Likewise.
3488 * remote-sim.c (gdbsim_detach): Likewise.
3489 * remote.c (remote_detach_1): Likewise.
3490 (remote_detach): Likewise.
3491 (extended_remote_detach): Likewise.
3492 * sol-thread.c (sol_thread_detach): Likewise.
3493 * target-delegates.c: Re-generate.
3494 * top.c (struct qt_args) <args>: Remove field.
3495 (kill_or_detach): Don't pass args.
3496 (quit_force): Don't set args.
3497 * windows-nat.c (windows_detach): Remove args parameter.
3498
88af8ea8
YQ
34992018-01-19 Yao Qi <yao.qi@linaro.org>
3500
3501 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
3502 (arm_linux_init_abi): Install it.
3503
dea445b9
YQ
35042018-01-19 Yao Qi <yao.qi@linaro.org>
3505
3506 * osabi.c (gdb_osabi_names): Extend the regexp for
3507 arm-linux-gnueabihf.
3508
4a17f768
YQ
35092018-01-18 Yao Qi <yao.qi@linaro.org>
3510
3511 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
3512 m_abbrevs.
3513 (abbrev_table::add_abbrev): Update.
3514 (abbrev_table::lookup_abbrev): Update.
3515
d679c21a
YQ
35162018-01-18 Yao Qi <yao.qi@linaro.org>
3517
3518 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
3519
7d937cad
SDJ
35202018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
3521
3522 * compile/compile.c (compile_to_object): Convert "triplet_rx"
3523 to "std::string".
3524
9e14690d
TT
35252018-01-17 Tom Tromey <tom@tromey.com>
3526
3527 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
3528
50a82047
TT
35292018-01-17 Tom Tromey <tom@tromey.com>
3530
3531 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
3532 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
3533 (create_array_type_with_stride): Update.
3534 * dwarf2read.c (set_die_type): Update.
3535
c89b44cd
TT
35362018-01-17 Tom Tromey <tom@tromey.com>
3537
3538 * dwarf2read.c (delayed_method_info): Remove typedef.
3539 (dwarf2_cu::method_info): Now a std::vector.
3540 (add_to_method_list): Update.
3541 (free_delayed_list): Remove.
3542 (compute_delayed_physnames): Update.
3543 (process_full_comp_unit, process_full_type_unit): Clear the method
3544 list. Remove cleanups.
3545 (psymtab_include_file_name): Add name_holder parameter. Use
3546 unique_xmalloc_ptr.
3547 (dwarf_decode_lines): Update.
3548
fcd3b13d
SM
35492018-01-17 Tom Tromey <tom@tromey.com>
3550 Simon Marchi <simon.marchi@ericsson.com>
3551
3552 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
3553 (dwarf2_per_objfile::free_cached_comp_units)
3554 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
3555 (init_cutu_and_read_dies_no_follow): Update.
3556 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
3557 (dwarf2_cu::~dwarf2_cu): New.
3558 (free_heap_comp_unit, free_stack_comp_unit): Remove.
3559 (age_cached_comp_units, free_one_cached_comp_unit): Update.
3560
685af9cd
TT
35612018-01-17 Tom Tromey <tom@tromey.com>
3562 Simon Marchi <simon.marchi@ericsson.com>
3563
3564 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
3565 (struct die_reader_specs) <abbrev_table>: New member.
3566 (struct abbrev_table): Add constructor.
3567 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
3568 <abbrev_obstack>: Now an auto_obstack.
3569 (abbrev_table_up): New typedef.
3570 (init_cu_die_reader): Add abbrev_table parameter.
3571 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
3572 Add result_dwo_abbrev_table.
3573 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
3574 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
3575 Update.
3576 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
3577 parameter.
3578 (skip_children): Update.
3579 (abbrev_table::alloc_abbrev): Rename from
3580 abbrev_table_alloc_abbrev.
3581 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
3582 (abbrev_table::lookup_abbrev): Rename from
3583 abbrev_table_lookup_abbrev.
3584 (abbrev_table_read_table): Return abbrev_table_up.
3585 (abbrev_table_free, abbrev_table_free_cleanup)
3586 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
3587 (load_partial_dies): Update.
3588
5e2db402
TT
35892018-01-17 Tom Tromey <tom@tromey.com>
3590
3591 * dwarf2read.c (dwarf2_compute_name): Update comment.
3592 (read_func_scope, read_variable): Update.
3593 (new_symbol): Remove.
3594 (new_symbol_full): Rename to new_symbol.
3595
ee7f689e 35962018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
3597
3598 PR gdb/16577
3599 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
3600 a warning instead of throwing an error, set section size to 0 and return
3601 NULL.
3602 * gdb_bfd.h (gdb_bfd_map_section): Update description.
3603
4d9b86e1
SM
36042018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3605
3606 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
3607 std::string.
3608 (linux_ptrace_attach_fail_reason_string): Likewise.
3609 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
3610 Likewise.
3611 (linux_ptrace_attach_fail_reason_string): Likewise.
3612 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
3613
a7b2d0fb
SM
36142018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3615
3616 * linux-nat.c (linux_nat_attach): Remove xstrdup.
3617
f517c180
EA
36182018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3619
3620 PR gdb/21559
3621 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3622 checking for fs_base/gs_base fields in struct user_regs_struct.
3623 * configure: Regenerate.
3624
7045b1ca
YQ
36252018-01-17 Yao Qi <yao.qi@linaro.org>
3626
3627 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
3628 function.
3629 (aarch64_linux_init_abi): Install it to gdbarch hook
3630 gcc_target_options.
3631
db422fb2
PA
36322018-01-15 Pedro Alves <palves@redhat.com>
3633
3634 * common/signals-state-save-restore.c
3635 (save_original_signals_state): Fix typos.
3636
ba643918
SDJ
36372017-01-12 Tom Tromey <tom@tromey.com>
3638 Sergio Durigan Junior <sergiodj@redhat.com>
3639
3640 * Makefile.in (install-only): Install gdb-add-index.
3641
906b4aac
JB
36422018-01-12 John Baldwin <jhb@FreeBSD.org>
3643
3644 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
3645
bdf2a94a
AA
36462018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
3647
3648 * infrun.c (keep_going_pass_signal): Clear step-over info when
3649 insert_breakpoints fails.
3650
71d378ae
PA
36512018-01-11 Pedro Alves <palves@redhat.com>
3652
3653 PR gdb/22583
3654 * infrun.c (resume): Rename to ...
3655 (resume_1): ... this.
3656 (resume): Reimplement as wrapper around resume_1.
3657
3cada740
PA
36582018-01-11 Pedro Alves <palves@redhat.com>
3659
3660 PR remote/22597
3661 * remote.c (remote_parse_stop_reply): Default to the last-set
3662 general thread instead of to 'magic_null_ptid'.
3663
618daa93
PA
36642018-01-10 Pedro Alves <palves@redhat.com>
3665
3666 * language.h (language_get_symbol_name_matcher): Rename ...
3667 (get_symbol_name_matcher): ... this.
3668 * language.c (language_get_symbol_name_matcher): Ditto.
3669 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
3670 callers adjusted.
3671
c63d3e8d
PA
36722018-01-10 Pedro Alves <palves@redhat.com>
3673
3674 PR gdb/22670
3675 * dwarf2read.c
3676 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
3677 Adjust to use language_get_symbol_name_matcher instead of
3678 language_defn::la_get_symbol_name_matcher.
3679 * language.c (language_get_symbol_name_matcher): If in Ada mode
3680 and the lookup name is a verbatim match, return Ada's matcher.
3681 * language.h (language_get_symbol_name_matcher): Adjust comment.
3682 (ada_lookup_name_info::verbatim_p):: New method.
3683
d4c2a405
PA
36842018-01-10 Pedro Alves <palves@redhat.com>
3685
3686 PR gdb/22670
3687 * ada-lang.c (ada_collect_symbol_completion_matches): If the
3688 minsym's language is language_auto or language_cplus, pass down
3689 language_ada instead.
3690 * symtab.c (compare_symbol_name): Don't frob symbol language here.
3691
8825213e
PA
36922018-01-10 Pedro Alves <palves@redhat.com>
3693
3694 PR gdb/22670
3695 * minsyms.c (linkage_name_str): New function.
3696 (iterate_over_minimal_symbols): Use it.
3697
2d97a5d9
JB
36982018-01-09 John Baldwin <jhb@FreeBSD.org>
3699
3700 * NEWS: Document that 'info proc' now works on FreeBSD.
3701
92fce24d
JB
37022018-01-09 John Baldwin <jhb@FreeBSD.org>
3703
3704 * configure.ac: Check for kinfo_getfile in libutil.
3705 * configure: Regenerate.
3706 * config.in: Regenerate.
3707 * fbsd-nat.c: Include "fbsd-tdep.h".
3708 (fbsd_fetch_cmdline): New.
3709 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
3710 rather than calling error.
3711 (fbsd_info_proc): New.
3712 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
3713 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
3714 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
3715
262f62f5
JB
37162018-01-09 John Baldwin <jhb@FreeBSD.org>
3717
3718 * fbsd-nat.c (struct free_deleter): Remove.
3719 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
3720
b999e203
JB
37212018-01-09 John Baldwin <jhb@FreeBSD.org>
3722
3723 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
3724 NULL for an empty pathname.
3725
d2176225
JB
37262018-01-09 John Baldwin <jhb@FreeBSD.org>
3727
3728 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
3729 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
3730 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
3731 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
3732 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
3733 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
3734 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
3735 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
3736 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
3737 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
3738 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
3739 (fbsd_core_fetch_timeval, fbsd_print_sigset)
3740 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
3741 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
3742 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
3743
9c4ac400
ST
37442018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
3745
3746 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
3747 (gnu_xfer_auxv): New function.
3748 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
3749 TARGET_OBJECT_AUXV.
3750
1e5ded6c
YQ
37512018-01-08 Yao Qi <yao.qi@linaro.org>
3752 Simon Marchi <simon.marchi@ericsson.com>
3753
3754 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
3755 common/selftest.c.
3756 (COMMON_OBS): Remove selftest.o.
3757 * configure.ac: Append selftest-arch.c and common/selftest.c to
3758 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
3759 * configure: Re-generated.
3760 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
3761 GDB_SELF_TEST.
3762 (maintenance_info_selftests): Likewise.
3763
04bafb1e
XR
37642018-01-08 Xavier Roirand <roirand@adacore.com>
3765
3766 * ada-valprint.c (val_print_packed_array_elements): Use
3767 proper number of elements when printing an array indexed
3768 by an enumeration type.
3769
518817b3
SM
37702018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3771
3772 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
3773 (dw2_get_file_names_reader): Adjust.
3774 (lookup_dwo_signatured_type): Adjust.
3775 (lookup_dwp_signatured_type): Adjust.
3776 (lookup_signatured_type): Adjust.
3777 (create_type_unit_group): Adjust.
3778 (get_type_unit_group): Adjust.
3779 (process_psymtab_comp_unit_reader): Adjust.
3780 (build_type_psymtabs_reader): Adjust.
3781 (scan_partial_symbols): Adjust.
3782 (add_partial_symbol): Adjust.
3783 (add_partial_subprogram): Adjust.
3784 (peek_die_abbrev): Adjust.
3785 (fixup_go_packaging): Adjust.
3786 (process_imported_unit_die): Adjust.
3787 (dwarf2_compute_name): Adjust.
3788 (dwarf2_physname): Adjust.
3789 (read_import_statement): Adjust.
3790 (handle_DW_AT_stmt_list): Adjust.
3791 (read_file_scope): Adjust.
3792 (read_func_scope): Adjust.
3793 (read_lexical_block_scope): Adjust.
3794 (read_call_site_scope): Adjust.
3795 (read_variable): Adjust.
3796 (dwarf2_rnglists_process): Adjust.
3797 (dwarf2_ranges_process): Adjust.
3798 (dwarf2_ranges_read): Adjust.
3799 (dwarf2_get_pc_bounds): Adjust.
3800 (dwarf2_record_block_ranges): Adjust.
3801 (dwarf2_add_field): Adjust.
3802 (dwarf2_add_member_fn): Adjust.
3803 (read_structure_type): Adjust.
3804 (process_structure_scope): Adjust.
3805 (read_enumeration_type): Adjust.
3806 (read_array_type): Adjust.
3807 (mark_common_block_symbol_computed): Adjust.
3808 (read_common_block): Adjust.
3809 (read_namespace_type): Adjust.
3810 (read_namespace): Adjust.
3811 (read_module_type): Adjust.
3812 (read_tag_pointer_type): Adjust.
3813 (read_tag_ptr_to_member_type): Adjust.
3814 (read_tag_string_type): Adjust.
3815 (read_subroutine_type): Adjust.
3816 (read_typedef): Adjust.
3817 (read_base_type): Adjust.
3818 (attr_to_dynamic_prop): Adjust.
3819 (read_subrange_type): Adjust.
3820 (read_unspecified_type): Adjust.
3821 (dwarf2_read_abbrevs): Adjust.
3822 (load_partial_dies): Adjust.
3823 (read_partial_die): Adjust.
3824 (find_partial_die): Adjust.
3825 (guess_partial_die_structure_name): Adjust.
3826 (fixup_partial_die): Adjust.
3827 (read_attribute_value): Adjust.
3828 (read_addr_index): Adjust.
3829 (read_addr_index_from_leb128): Adjust.
3830 (read_str_index): Adjust.
3831 (dwarf2_string_attr): Adjust.
3832 (get_debug_line_section): Adjust.
3833 (dwarf_decode_line_header): Adjust.
3834 (lnp_state_machine::check_line_address): Adjust.
3835 (dwarf_decode_lines_1): Adjust.
3836 (dwarf_decode_lines): Adjust.
3837 (dwarf2_start_symtab): Adjust.
3838 (var_decode_location): Adjust.
3839 (new_symbol_full): Adjust.
3840 (dwarf2_const_value_data): Adjust.
3841 (dwarf2_const_value_attr): Adjust.
3842 (dwarf2_const_value): Adjust.
3843 (die_type): Adjust.
3844 (die_containing_type): Adjust.
3845 (build_error_marker_type): Adjust.
3846 (lookup_die_type): Adjust.
3847 (guess_full_die_structure_name): Adjust.
3848 (anonymous_struct_prefix): Adjust.
3849 (determine_prefix): Adjust.
3850 (dwarf2_name): Adjust.
3851 (follow_die_ref_or_sig): Adjust.
3852 (follow_die_offset): Adjust.
3853 (follow_die_ref): Adjust.
3854 (follow_die_sig_1): Adjust.
3855 (follow_die_sig): Adjust.
3856 (get_signatured_type): Adjust.
3857 (get_DW_AT_signature_type): Adjust.
3858 (decode_locdesc): Adjust.
3859 (dwarf_decode_macros): Adjust.
3860 (cu_debug_loc_section): Adjust.
3861 (fill_in_loclist_baton): Adjust.
3862 (dwarf2_symbol_mark_computed): Adjust.
3863 (init_one_comp_unit): Don't assign
3864 dwarf2_cu::dwarf2_per_objfile.
3865 (set_die_type): Adjust.
3866
ed2dc618
SM
38672018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3868
3869 * dwarf2read.c (struct mapped_debug_names): Add constructor.
3870 <dwarf2_per_objfile>: New field.
3871 (dwarf2_per_objfile): Remove global.
3872 (get_dwarf2_per_objfile): New function.
3873 (set_dwarf2_per_objfile): New function.
3874 (dwarf2_build_psymtabs_hard): Change objfile parameter to
3875 dwarf2_per_objfile.
3876 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3877 (read_abbrev_offset): Likewise.
3878 (read_indirect_string): Likewise.
3879 (read_indirect_line_string): Likewise.
3880 (read_indirect_string_at_offset): Likewise.
3881 (read_indirect_string_from_dwz): Likewise.
3882 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3883 dwarf2_per_objfile.
3884 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3885 (create_all_comp_units): Change objfile parameter to
3886 dwarf2_per_objfile.
3887 (create_all_type_units): Likewise.
3888 (process_queue): Add dwarf2_per_objfile parameter.
3889 (read_and_check_comp_unit_head): Likewise.
3890 (lookup_dwo_unit_in_dwp): Likewise.
3891 (get_dwp_file): Likewise.
3892 (process_cu_includes): Likewise.
3893 (struct free_dwo_file_cleanup_data): New struct.
3894 (dwarf2_has_info): Use get_dwarf2_per_objfile and
3895 set_dwarf2_per_objfile.
3896 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
3897 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
3898 context, adjust calls.
3899 (dw2_instantiate_symtab): Likewise.
3900 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
3901 (dw2_get_cu): Likewise.
3902 (create_cu_from_index_list): Change objfile parameter to
3903 dwarf2_per_objfile.
3904 (create_cus_from_index_list): Get dwarf2_per_objfile from
3905 context, adjust calls.
3906 (create_cus_from_index): Likewise.
3907 (create_signatured_type_table_from_index): Change objfile
3908 parameter to dwarf2_per_objfile.
3909 (create_signatured_type_table_from_debug_names): Change objfile
3910 parameter to dwarf2_per_objfile.
3911 (create_addrmap_from_index): Likewise.
3912 (create_addrmap_from_aranges): Likewise.
3913 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
3914 (dw2_setup): Remove.
3915 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
3916 context.
3917 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
3918 get_dwarf2_per_objfile.
3919 (dw2_forget_cached_source_info): Likewise.
3920 (dw2_map_symtabs_matching_filename): Likewise.
3921 (struct dw2_symtab_iterator) <index>: Remove.
3922 <dwarf2_per_objfile>: New field.
3923 (dw2_symtab_iter_init): Replace index parameter with
3924 dwarf2_per_objfile.
3925 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
3926 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
3927 (dw2_print_stats): Likewise.
3928 (dw2_dump): Likewise.
3929 (dw2_expand_symtabs_for_function): Likewise.
3930 (dw2_expand_all_symtabs): Likewise.
3931 (dw2_expand_symtabs_with_fullname): Likewise.
3932 (dw2_expand_marked_cus): Replace index and objfile parameters
3933 with dwarf2_per_objfile.
3934 (dw_expand_symtabs_matching_file_matcher): Add
3935 dwarf2_per_objfile parameter and adjust calls.
3936 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
3937 adjust calls.
3938 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
3939 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
3940 adjust calls.
3941 (create_cus_from_debug_names_list): Replace objfile parameter
3942 with dwarf2_per_objfile and adjust calls.
3943 (create_cus_from_debug_names): Likewise.
3944 (dwarf2_read_debug_names): Likewise.
3945 (mapped_debug_names::namei_to_name): Adjust call.
3946 (dw2_debug_names_iterator::next): Likewise.
3947 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3948 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
3949 (dw2_debug_names_dump): Likewise.
3950 (dw2_debug_names_expand_symtabs_for_function): Likewise.
3951 (dw2_debug_names_expand_symtabs_matching): Likewise.
3952 (dwarf2_initialize_objfile): Likewise.
3953 (dwarf2_build_psymtabs): Likewise.
3954 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
3955 this_cu.
3956 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
3957 (read_and_check_comp_unit_head): Likewise.
3958 (read_abbrev_offset): Likewise.
3959 (create_debug_type_hash_table): Likewise.
3960 (create_debug_types_hash_table): Likewise.
3961 (create_all_type_units): Replace objfile parameter with
3962 dwarf2_per_objfile.
3963 (add_type_unit): Add dwarf2_per_objfile parameter.
3964 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
3965 with dwarf2_per_objfile.
3966 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
3967 (lookup_dwp_signatured_type): Likewise.
3968 (lookup_signatured_type): Likewise.
3969 (read_cutu_die_from_dwo): Likewise.
3970 (init_tu_and_read_dwo_dies): Likewise.
3971 (init_cutu_and_read_dies): Likewise.
3972 (init_cutu_and_read_dies_no_follow): Likewise.
3973 (allocate_type_unit_groups_table): Add objfile parameter.
3974 (create_type_unit_group): Use dwarf2_per_objfile from cu.
3975 (get_type_unit_group): Likewise.
3976 (process_psymtab_comp_unit): Update call.
3977 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
3978 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
3979 (print_tu_stats): Likewise.
3980 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
3981 in void* parameter.
3982 (build_type_psymtabs): Change objfile parameter to
3983 dwarf2_per_objfile.
3984 (process_skeletonless_type_unit): Use dwarf2_per_objfile
3985 passed in void* parameter.
3986 (process_skeletonless_type_units): Change objfile parameter to
3987 dwarf2_per_objfile.
3988 (set_partial_user): Likewise.
3989 (dwarf2_build_psymtabs_hard): Likewise.
3990 (read_comp_units_from_section): Likewise.
3991 (create_all_comp_units): Likewise.
3992 (scan_partial_symbols): Update calls.
3993 (add_partial_symbol): Likewise.
3994 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
3995 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
3996 (process_queue): Add dwarf2_per_objfile parameter.
3997 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
3998 (compute_compunit_symtab_includes): Likewise.
3999 (process_cu_includes): Add dwarf2_per_objfile parameter.
4000 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
4001 (process_full_type_unit): Likewise.
4002 (process_imported_unit_die): Update call.
4003 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
4004 (read_file_scope): Likewise.
4005 (allocate_dwo_file_hash_table): Add objfile parameter.
4006 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
4007 (create_cus_hash_table): Likewise.
4008 (create_dwp_hash_table): Likewise.
4009 (create_dwo_unit_in_dwp_v1): Likewise.
4010 (create_dwp_v2_section): Likewise.
4011 (create_dwo_unit_in_dwp_v2): Likewise.
4012 (lookup_dwo_unit_in_dwp): Likewise.
4013 (try_open_dwop_file): Likewise.
4014 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
4015 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
4016 cleanup to include a reference to dwarf2_per_objfile.
4017 (open_dwp_file): Add dwarf2_per_objfile parameter.
4018 (open_and_init_dwp_file): Likewise.
4019 (get_dwp_file): Likewise.
4020 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
4021 (queue_and_load_all_dwo_tus): Update call.
4022 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
4023 data.
4024 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
4025 (dwarf2_ranges_process): Likewise.
4026 (dwarf2_get_pc_bounds): Likewise.
4027 (mark_common_block_symbol_computed): Likewise.
4028 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
4029 (dwarf2_read_abbrevs): Update call.
4030 (read_partial_die): Use dwarf2_per_objfile from cu.
4031 (find_partial_die): Likewise.
4032 (fixup_partial_die): Likewise.
4033 (read_attribute_value): Likewise.
4034 (read_indirect_string_at_offset_from): Add objfile parameter.
4035 (read_indirect_string_at_offset): Add dwarf2_per_objfile
4036 parameter.
4037 (read_indirect_string_from_dwz): Add objfile parameter.
4038 (read_indirect_string): Add objfile parameter.
4039 (read_addr_index_1): Add dwarf2_per_objfile parameter.
4040 (read_addr_index): Use dwarf2_per_objfile from cu.
4041 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
4042 call dw2_setup.
4043 (read_str_index): Use dwarf2_per_objfile from cu.
4044 (get_debug_line_section): Likewise.
4045 (read_formatted_entries): Add dwarf2_per_objfile parameter.
4046 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
4047 (new_symbol_full): Use dwarf2_per_objfile from cu.
4048 (build_error_marker_type): Likewise.
4049 (lookup_die_type): Likewise.
4050 (determine_prefix): Likewise.
4051 (follow_die_offset): Likewise.
4052 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
4053 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
4054 (dwarf2_fetch_die_type_sect_off): Likewise.
4055 (dwarf2_get_die_type): Likewise.
4056 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
4057 (get_signatured_type): Likewise.
4058 (get_DW_AT_signature_type): Likewise.
4059 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
4060 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
4061 (cu_debug_loc_section): Likewise.
4062 (fill_in_loclist_baton): Likewise.
4063 (dwarf2_symbol_mark_computed): Likewise.
4064 (dwarf2_find_containing_comp_unit): Change objfile parameter to
4065 dwarf2_per_objfile.
4066 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
4067 parameter.
4068 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
4069 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
4070 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
4071 (set_die_type): Use dwarf2_free_objfile from cu.
4072 (get_die_type_at_offset): Likewise.
4073 (dwarf2_per_objfile_free): Don't assign global variable.
4074 (debug_names) <constructor>: Add dwarf2_per_objfile
4075 parameter, update m_debugstrlookup construction.
4076 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
4077 parameter.
4078 <m_dwarf2_per_objfile>: New field.
4079 <lookup>: Use m_dwarf2_per_objfile.
4080 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
4081 (psyms_seen_size): Likewise.
4082 (write_gdbindex): Replace objfile parameter with
4083 dwarf2_per_objfile.
4084 (write_debug_names): Likewise.
4085 (write_psymtabs_to_index): Likewise.
4086 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
4087 calls.
4088
e3b94546
SM
40892018-01-07 Simon Marchi <simon.marchi@ericsson.com>
4090
4091 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
4092 <dwarf2_per_objfile>: New field.
4093 (struct dwarf2_per_cu_data) <objfile>: Remove.
4094 <dwarf2_per_objfile>: New field.
4095 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
4096 of objfile.
4097 (create_signatured_type_table_from_index): Likewise.
4098 (create_debug_type_hash_table): Likewise.
4099 (fill_in_sig_entry_from_dwo_entry): Likewise.
4100 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
4101 (create_type_unit_group): Assign dwarf2_per_objfile instead of
4102 objfile.
4103 (create_partial_symtab): Access objfile through
4104 dwarf2_per_objfile.
4105 (process_psymtab_comp_unit_reader): Likewise.
4106 (read_comp_units_from_section): Likewise.
4107 (scan_partial_symbols): Likewise.
4108 (add_partial_symbol): Likewise.
4109 (add_partial_subprogram): Likewise.
4110 (peek_die_abbrev): Likewise.
4111 (fixup_go_packaging): Likewise.
4112 (process_full_comp_unit): Likewise.
4113 (process_full_type_unit): Likewise.
4114 (process_imported_unit_die): Likewise.
4115 (dwarf2_compute_name): Likewise.
4116 (dwarf2_physname): Likewise.
4117 (read_import_statement): Likewise.
4118 (create_cus_hash_table): Assign dwarf2_physname instead of
4119 objfile.
4120 (read_func_scope): Access objfile through dwarf2_per_objfile.
4121 (read_lexical_block_scope): Likewise.
4122 (read_call_site_scope): Likewise.
4123 (read_variable): Likewise.
4124 (dwarf2_rnglists_process): Likewise.
4125 (dwarf2_ranges_process): Likewise.
4126 (dwarf2_ranges_read): Likewise.
4127 (dwarf2_record_block_ranges): Likewise.
4128 (dwarf2_add_field): Likewise.
4129 (dwarf2_add_member_fn): Likewise.
4130 (read_structure_type): Likewise.
4131 (process_structure_scope): Likewise.
4132 (read_enumeration_type): Likewise.
4133 (read_array_type): Likewise.
4134 (read_common_block): Likewise.
4135 (read_namespace_type): Likewise.
4136 (read_namespace): Likewise.
4137 (read_module_type): Likewise.
4138 (read_tag_pointer_type): Likewise.
4139 (read_tag_ptr_to_member_type): Likewise.
4140 (read_tag_string_type): Likewise.
4141 (read_subroutine_type): Likewise.
4142 (read_typedef): Likewise.
4143 (read_base_type): Likewise.
4144 (attr_to_dynamic_prop): Likewise.
4145 (read_subrange_type): Likewise.
4146 (read_unspecified_type): Likewise.
4147 (load_partial_dies): Likewise.
4148 (read_partial_die): Likewise.
4149 (find_partial_die): Likewise.
4150 (guess_partial_die_structure_name): Likewise.
4151 (fixup_partial_die): Likewise.
4152 (read_attribute_value): Likewise.
4153 (read_addr_index_from_leb128): Likewise.
4154 (dwarf2_read_addr_index): Likewise.
4155 (dwarf2_string_attr): Likewise.
4156 (lnp_state_machine::check_line_address): Likewise.
4157 (dwarf_decode_lines_1): Likewise.
4158 (dwarf_decode_lines): Likewise.
4159 (dwarf2_start_symtab): Likewise.
4160 (var_decode_location): Likewise.
4161 (new_symbol_full): Likewise.
4162 (dwarf2_const_value_data): Likewise.
4163 (dwarf2_const_value_attr): Likewise.
4164 (dwarf2_const_value): Likewise.
4165 (die_type): Likewise.
4166 (die_containing_type): Likewise.
4167 (lookup_die_type): Likewise.
4168 (guess_full_die_structure_name): Likewise.
4169 (anonymous_struct_prefix): Likewise.
4170 (dwarf2_name): Likewise.
4171 (follow_die_ref_or_sig): Likewise.
4172 (follow_die_offset): Likewise.
4173 (follow_die_ref): Likewise.
4174 (dwarf2_fetch_die_loc_sect_off): Likewise.
4175 (dwarf2_fetch_constant_bytes): Likewise.
4176 (dwarf2_fetch_die_type_sect_off): Likewise.
4177 (dwarf2_get_die_type): Likewise.
4178 (follow_die_sig): Likewise.
4179 (decode_locdesc): Likewise.
4180 (dwarf2_per_cu_objfile): Likewise.
4181 (dwarf2_per_cu_text_offset): Likewise.
4182 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
4183 objfile.
4184 (set_die_type): Access objfile through
4185 dwarf2_per_objfile.
4186
b01ba14d
SM
41872018-01-07 Simon Marchi <simon.marchi@ericsson.com>
4188
4189 * valprint.c (converted_character_d): Remove typedef.
4190 (DEF_VEC_O (converted_character_d)): Remove.
4191 (count_next_character): Use std::vector.
4192 (print_converted_chars_to_obstack): Likewise.
4193 (generic_printstr): Likewise.
4194
4d0fdd9b
SM
41952018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4196
4197 * xml-support.h (struct gdb_xml_value): Add constructor.
4198 <value>: Change type to unique_xmalloc_ptr.
4199 (gdb_xml_value_s): Remove typedef.
4200 (DEF_VEC_O (gdb_xml_value_s)): Remove.
4201 (gdb_xml_element_start_handler): Change parameter type to
4202 std::vector.
4203 (xml_find_attribute): Likewise.
4204 * xml-support.c (xml_find_attribute): Change parameter type to
4205 std::vector and adjust.
4206 (gdb_xml_values_cleanup): Remove.
4207 (gdb_xml_parser::start_element): Adjust to std::vector.
4208 (xinclude_start_include): Change paraeter type to std::vector
4209 and adjust.
4210 * btrace.c (check_xml_btrace_version): Likewise.
4211 (parse_xml_btrace_block): Likewise.
4212 (parse_xml_btrace_pt_config_cpu): Likewise.
4213 (parse_xml_btrace_pt): Likewise.
4214 (parse_xml_btrace_conf_bts): Likewise.
4215 (parse_xml_btrace_conf_pt): Likewise.
4216 * memory-map.c (memory_map_start_memory): Likewise.
4217 (memory_map_start_property): Likewise.
4218 * osdata.c (osdata_start_osdata): Likewise.
4219 (osdata_start_item): Likewise.
4220 (osdata_start_column): Likewise.
4221 * remote.c (start_thread): Likewise.
4222 * solib-aix.c (library_list_start_library): Likewise.
4223 (library_list_start_list): Likewise.
4224 * solib-svr4.c (library_list_start_library): Likewise.
4225 (svr4_library_list_start_list): Likewise.
4226 * solib-target.c (library_list_start_segment): Likewise.
4227 (library_list_start_section): Likewise.
4228 (library_list_start_library): Likewise.
4229 (library_list_start_list): Likewise.
4230 * tracepoint.c (traceframe_info_start_memory): Likewise.
4231 (traceframe_info_start_tvar): Likewise.
4232 * xml-syscall.c (syscall_start_syscall): Likewise.
4233 * xml-tdesc.c (tdesc_start_target): Likewise.
4234 (tdesc_start_feature): Likewise.
4235 (tdesc_start_reg): Likewise.
4236 (tdesc_start_union): Likewise.
4237 (tdesc_start_struct): Likewise.
4238 (tdesc_start_flags): Likewise.
4239 (tdesc_start_enum): Likewise.
4240 (tdesc_start_field): Likewise.
4241 (tdesc_start_enum_value): Likewise.
4242 (tdesc_start_vector): Likewise.
4243
f979c73f
SM
42442018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4245
4246 * extension.h (struct xmethod_worker) <clone>: Remove.
4247 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
4248 Remove.
4249 (python_xmethod_worker::clone): Remove.
4250 * valops.c (find_overload_match): Use std::move instead of
4251 clone.
4252
ba18742c
SM
42532018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4254
4255 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
4256 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
4257 <free_xmethod_worker_data>: Remove.
4258 <get_matching_xmethod_workers>: Chance VEC to std::vector.
4259 <get_xmethod_arg_types>: Remove.
4260 <get_xmethod_result_type>: Remove.
4261 <invoke_xmethod>: Remove.
4262 * extension.c (new_xmethod_worker): Remove.
4263 (clone_xmethod_worker): Remove.
4264 (get_matching_xmethod_workers): Return void, pass std::vector by
4265 pointer.
4266 (get_xmethod_arg_types): Rename to...
4267 (xmethod_worker::get_arg_types): ... this, and adjust.
4268 (get_xmethod_result_type): Rename to...
4269 (xmethod_worker::get_result_type): ... this, and adjust.
4270 (invoke_xmethod): Remove.
4271 (free_xmethod_worker): Remove.
4272 (free_xmethod_worker_vec): Remove.
4273 * extension.h (enum ext_lang_rc): Move here from
4274 extension-priv.h.
4275 (struct xmethod_worker): Add constructor and destructor.
4276 <data>: Remove.
4277 <value>: Remove.
4278 <invoke, clone, do_get_result_type, do_get_arg_types>: New
4279 virtual pure methods.
4280 <get_arg_types, get_result_type>: New methods.
4281 (xmethod_worker_ptr): Remove typedef.
4282 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
4283 (xmethod_worker_vec): Remove typedef.
4284 (xmethod_worker_up): New typedef.
4285 (invoke_xmethod): Remove.
4286 (clone_xmethod_worker): Remove.
4287 (free_xmethod_worker): Remove.
4288 (free_xmethod_worker_vec): Remove.
4289 (get_xmethod_arg_types): Remove.
4290 (get_xmethod_result_type): Remove.
4291 * valops.c (find_method_list): Use std::vector, don't use
4292 intermediate vector.
4293 (value_find_oload_method_list): Use std::vector.
4294 (find_overload_match): Use std::vector.
4295 (find_oload_champ): Use std::vector.
4296 * value.c (value_free): Use operator delete.
4297 (value_of_xmethod): Rename to...
4298 (value_from_xmethod): ... this. Don't assign
4299 xmethod_worker::value, take rvalue-reference.
4300 (result_type_of_xmethod): Adjust.
4301 (call_xmethod): Adjust.
4302 * value.h: Include extension.h.
4303 (struct xmethod_worker): Don't forward-declare.
4304 (value_of_xmethod): Rename to...
4305 (value_from_xmethod): ... this, take rvalue-reference.
4306 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
4307 (struct python_xmethod_worker): ... this, add constructor and
4308 destructor.
4309 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
4310 (gdbpy_free_xmethod_worker_data): Rename to...
4311 (python_xmethod_worker::~python_xmethod_worker): ... this and
4312 adjust.
4313 (gdbpy_clone_xmethod_worker_data): Rename to...
4314 (python_xmethod_worker::clone): ... this and adjust.
4315 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
4316 temporary vector.
4317 (gdbpy_get_xmethod_arg_types): Rename to...
4318 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
4319 (gdbpy_get_xmethod_result_type): Rename to...
4320 (python_xmethod_worker::do_get_result_type): ... this and
4321 adjust.
4322 (gdbpy_invoke_xmethod): Rename to...
4323 (python_xmethod_worker::invoke): ... this and adjust.
4324 (new_python_xmethod_worker): Rename to...
4325 (python_xmethod_worker::python_xmethod_worker): ... this and
4326 adjust.
4327 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
4328 Remove.
4329 (gdbpy_free_xmethod_worker_data): Remove.
4330 (gdbpy_get_matching_xmethod_workers): Use std::vector.
4331 (gdbpy_get_xmethod_arg_types): Remove.
4332 (gdbpy_get_xmethod_result_type): Remove.
4333 (gdbpy_invoke_xmethod): Remove.
4334 * python/python.c (python_extension_ops): Remove obsolete
4335 callbacks.
4336
e379cee6
PA
43372018-01-05 Pedro Alves <palves@redhat.com>
4338
4339 PR gdb/18653
4340 * common/signals-state-save-restore.c
4341 (save_original_signals_state): New parameter 'quiet'. Warn if we
4342 find a custom handler preinstalled, instead of internal erroring.
4343 But only warn if !quiet.
4344 * common/signals-state-save-restore.h
4345 (save_original_signals_state): New parameter 'quiet'.
4346 * main.c (captured_main_1): Move save_original_signals_state call
4347 after option handling, and pass QUIET.
4348
a655456c
PA
43492018-01-05 Pedro Alves <palves@redhat.com>
4350
4351 * spu-tdep.c (spu_catch_start): Pass
4352 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
4353
de63c46b
PA
43542018-01-05 Pedro Alves <palves@redhat.com>
4355
4356 PR gdb/22670
4357 * ada-lang.c (literal_symbol_name_matcher): New function.
4358 (ada_get_symbol_name_matcher): Use it for
4359 symbol_name_match_type::SEARCH_NAME.
4360 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
4361 it down instead of assuming symbol_name_match_type::FULL.
4362 * block.h (block_lookup_symbol): New parameter 'match_type'.
4363 * c-valprint.c (print_unpacked_pointer): Use
4364 lookup_symbol_search_name instead of lookup_symbol.
4365 * compile/compile-object-load.c (get_out_value_type): Pass down
4366 symbol_name_match_type::SEARCH_NAME.
4367 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
4368 symbol_name_match_type::FULL.
4369 * cp-support.c (cp_get_symbol_name_matcher): Handle
4370 symbol_name_match_type::SEARCH_NAME.
4371 * infrun.c (insert_exception_resume_breakpoint): Use
4372 lookup_symbol_search_name.
4373 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
4374 * psymtab.c (maintenance_check_psymtabs): Use
4375 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
4376 * stack.c (print_frame_args): Use lookup_symbol_search_name and
4377 SYMBOL_SEARCH_NAME.
4378 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
4379 if symbol_name_match_type::SEARCH_NAME.
4380 (lookup_symbol_in_language): Pass down
4381 symbol_name_match_type::FULL.
4382 (lookup_symbol_search_name): New.
4383 (lookup_language_this): Pass down
4384 symbol_name_match_type::SEARCH_NAME.
4385 (lookup_symbol_aux, lookup_local_symbol): New parameter
4386 'match_type'. Pass it down.
4387 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
4388 (lookup_symbol_search_name): New declaration.
4389 (lookup_symbol_in_block): New 'match_type' parameter.
4390
f98fc17b
PA
43912018-01-05 Pedro Alves <palves@redhat.com>
4392
4393 PR gdb/22670
4394 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
4395 ada_lookup_symbol.
4396 (ada_lookup_symbol): Reimplement in terms of
4397 ada_lookup_symbol_list, bits factored out from
4398 ada_lookup_encoded_symbol.
4399
342f8240
JB
44002018-01-05 Joel Brobecker <brobecker@adacore.com>
4401
4402 * ada-exp.y (write_object_renaming): When subscripting an array
4403 using a symbol as the index, pass the block in call to
4404 ada_lookup_encoded_symbol when looking that symbol up.
4405
7150d33c
JG
44062018-01-05 Jerome Guitton <guitton@adacore.com>
4407
4408 * ada-lang.c (ada_array_length): Use ada_index_type instead of
4409 TYPE_INDEX_TYPE.
4410
cc0e770c
JB
44112018-01-05 Joel Brobecker <brobecker@adacore.com>
4412
4413 * ada-lang.c (ada_to_fixed_value_create): Add handling of
4414 the case where VALUE_LVAL (val0) is not lval_memory.
4415
f79da888 44162018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
4417
4418 * ada-valprint.c (print_optional_low_bound): Handle
4419 character-indexed array printing like boolean-indexed array
4420 printing.
4421
cd385f94
JB
44222018-01-05 Joel Brobecker <brobecker@adacore.com>
4423
4424 * NEWS: Create a new section for the next release branch.
4425 Rename the section of the current branch, now that it has
4426 been cut.
4427
09aca949
JB
44282018-01-05 Joel Brobecker <brobecker@adacore.com>
4429
4430 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
4431 * version.in: Bump version to 8.1.50.DATE-git.
4432
9f757bf7
XR
44332018-01-03 Xavier Roirand <roirand@adacore.com>
4434
4435 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
4436 Add field.
4437 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
4438 Add field.
4439 (default_exception_support_info) <catch_handlers_sym>: Add field.
4440 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
4441 (ada_exception_name_addr_1): Add "catch handlers" handling.
4442 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
4443 Update all callers.
4444 (create_excep_cond_exprs) <ex>: Add parameter.
4445 (re_set_exception): Update create_excep_cond_exprs call.
4446 (print_it_exception, print_one_exception, print_mention_exception)
4447 (print_recreate_exception): Add "catch handler" handling.
4448 (allocate_location_catch_handlers, re_set_catch_handlers)
4449 (check_status_catch_handlers, print_it_catch_handlers)
4450 (print_one_catch_handlers, print_mention_catch_handlers)
4451 (print_recreate_catch_handlers): New function.
4452 (catch_handlers_breakpoint_ops): New variable.
4453 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
4454 Add parameter. Add "catch handler" handling.
4455 (ada_exception_sym_name, ada_exception_breakpoint_ops):
4456 Add "catch handler" handling.
4457 (ada_exception_catchpoint_cond_string): Add "catch handler"
4458 handling.
4459 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
4460 call.
4461 (catch_ada_handlers_command): New function.
4462 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
4463 operations structure.
4464 (_initialize_ada_language): Add "catch handlers" command entry.
4465 * NEWS: Document "catch handlers" feature.
4466
9fe561ab
JB
44672018-01-02 Joel Brobecker <brobecker@adacore.com>
4468
4469 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
4470 account when creating the array type of the slice.
4471 (ada_value_slice): Likewise.
4472
a405673c
JB
44732018-01-02 Joel Brobecker <brobecker@adacore.com>
4474
4475 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
4476 New enum value.
4477 (create_array_type_with_stride): Add byte_stride_prop parameter.
4478 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
4479 New parameter. Update all callers in this file.
4480 (array_type_has_dynamic_stride): New function.
4481 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
4482 of arrays with dynamic byte strides.
4483 * dwarf2read.c (read_array_type): Add support for dynamic
4484 DW_AT_byte_stride attributes.
4485
74a2f8ff
JB
44862018-01-02 Joel Brobecker <brobecker@adacore.com>
4487
4488 * dwarf2read.c (read_unspecified_type): Treat
4489 DW_TAG_enumeration_type DIEs from Ada units as stubs.
4490
e2882c85
JB
44912018-01-01 Joel Brobecker <brobecker@adacore.com>
4492
4493 Update copyright year range in all GDB files.
4494
1690bb24
JB
44952018-01-01 Joel Brobecker <brobecker@adacore.com>
4496
4497 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
4498 and gdb/testsuite/gdb.base/step-line.c.
4499
0f0c98a8
JB
45002018-01-01 Joel Brobecker <brobecker@adacore.com>
4501
4502 * copyright.py (main): Dump the contents of
4503 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
4504 even if BY_HAND is empty.
4505
82e1e79a
JB
45062018-01-01 Joel Brobecker <brobecker@adacore.com>
4507
4508 * top.c (print_gdb_version): Update Copyright year in version
4509 message.
4510
053f54e5 45112018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 4512
053f54e5 4513 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 4514
053f54e5 4515For older changes see ChangeLog-2017.
c906108c
SS
4516\f
4517Local Variables:
4518mode: change-log
4519left-margin: 8
4520fill-column: 74
4521version-control: never
57da7796 4522coding: utf-8
c906108c 4523End:
This page took 2.278241 seconds and 4 git commands to generate.