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