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