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