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