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