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