]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Change frame_filter_flags to use DEF_ENUM_FLAGS_TYPE
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d4dd3282
TT
12018-02-26 Tom Tromey <tom@tromey.com>
2
3 * stack.c (backtrace_command_1): Update.
4 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
5 of "flags".
6 * python/py-framefilter.c (py_print_frame)
7 (gdbpy_apply_frame_filter): Change type of "flags".
8 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
9 of "flags".
10 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12 * extension.h (enum frame_filter_flag): Rename from
13 frame_filter_flags.
14 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
15 (apply_ext_lang_frame_filter): Change type of "flags".
16 * extension.c (apply_ext_lang_frame_filter): Change type of
17 "flags".
18 * extension-priv.h (struct extension_language_ops)
19 <apply_frame_filter>: Change type of "flags".
20
6893c19a
TT
212018-02-26 Tom Tromey <tom@tromey.com>
22
23 PR python/16497:
24 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
25 off-by-one in py_end computation.
26 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
27 PRINT_MORE_FRAMES.
28 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
29 constant.
30
2ddeaf8a
TT
312018-02-26 Tom Tromey <tom@tromey.com>
32
33 * dwarf2read.c (struct variant_field): New.
34 (struct nextfield) <variant>: New field.
35 (dwarf2_add_field): Handle DW_TAG_variant_part.
36 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
37 discriminated union.
38 (read_structure_type): Handle DW_TAG_variant_part.
39 (handle_struct_member_die): New function, extracted from
40 process_structure_scope. Handle DW_TAG_variant.
41 (process_structure_scope): Handle discriminated unions. Call
42 handle_struct_member_die.
43
c9317f21
TT
442018-02-26 Tom Tromey <tom@tromey.com>
45
46 * rust-lang.h (rust_last_path_segment): Declare.
47 * rust-lang.c (rust_last_path_segment): Now public. Change
48 contract.
49 (struct disr_info): Remove.
50 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
51 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
52 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
53 (rust_enum_p, rust_enum_variant): New function.
54 (rust_underscore_fields): Remove "offset" parameter.
55 (rust_print_enum): New function.
56 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
57 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
58 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
59 enums.
60 (rust_internal_print_type): New function, from rust_print_type.
61 Remove enum code.
62 (rust_print_type): Call rust_internal_print_type.
63 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
64 Update enum handling.
65 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
66 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
67 (rust_union_quirks): New functions.
68 (process_full_comp_unit, process_full_type_unit): Call
69 rust_union_quirks.
70 (process_structure_scope): Update rust_unions if necessary.
71
7c22600a
TT
722018-02-26 Tom Tromey <tom@tromey.com>
73
74 * value.h (value_union_variant): Declare.
75 * valops.c (value_union_variant): New function.
76 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
77 (struct discriminant_info): New.
78 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
79 enumerator.
80 (struct main_type) <flag_discriminated_union>: New field.
81
15ce8941
TT
822018-02-26 Tom Tromey <tom@tromey.com>
83
84 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
85 unittests/unpack-selftests.c.
86 * unittests/unpack-selftests.c: New file.
87 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
88
48fbe735
YQ
892018-02-26 Yao Qi <yao.qi@linaro.org>
90
91 * dwarf2read.c (struct partial_die_info) <read>: New method.
92 (read_partial_die): Remove the declaration.
93 (load_partial_dies): Update.
94 (partial_die_info::partial_die_info):
95 (read_partial_die): Change it to partial_die_info::read.
96
52356b79
YQ
972018-02-26 Yao Qi <yao.qi@linaro.org>
98
99 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
100 (fixup_partial_die): Remove declaration.
101 (scan_partial_symbols): Update.
102 (partial_die_parent_scope): Likewise.
103 (partial_die_full_name): Likewise.
104 (fixup_partial_die): Change it to partial_die_info::fixup.
105
35cc7ed7
YQ
1062018-02-26 Yao Qi <yao.qi@linaro.org>
107
108 * dwarf2read.c (read_partial_die): Update the declaration.
109 (load_partial_dies): Caller update.
110 (read_partial_die): Remove one argument abbrev_len.
111
6f06d47b
YQ
1122018-02-26 Yao Qi <yao.qi@linaro.org>
113
114 * dwarf2read.c (struct partial_die_info): Add ctor, delete
115 assignment operator.
116 (load_partial_dies): Use ctor and copy ctor.
117 (read_partial_die): Update.
118 (dwarf2_cu::find_partial_die): Use ctor.
119
d590ff25
YQ
1202018-02-26 Yao Qi <yao.qi@linaro.org>
121
122 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
123 (find_partial_die_in_comp_unit): Change it to
124 dwarf2_cu::find_partial_die.
125 (find_partial_die): Update.
126
fd0a254f
YQ
1272018-02-26 Yao Qi <yao.qi@linaro.org>
128
129 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
130 is NULL.
131
cd9983dd
YQ
1322018-02-26 Yao Qi <yao.qi@linaro.org>
133
134 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
135
f46cd62a
AH
1362018-02-26 Alan Hayward <alan.hayward@arm.com>
137
138 * arch/amd64.h: Use common/tdesc.h.
139 * arch/i386.c: Likewise.
140 * arch/i386.h: Likewise.
141 * arch/tic6x.c: Likewise.
142 * arch/tdesc.h: Move file from here...
143 * common/tdesc.h: ...to here.
144 * features/aarch64-core.c: Regenerate.
145 * features/aarch64-fpu.c: Regenerate.
146 * features/i386/32bit-avx.c: Regenerate.
147 * features/i386/32bit-avx512.c: Regenerate.
148 * features/i386/32bit-core.c: Regenerate.
149 * features/i386/32bit-linux.c: Regenerate.
150 * features/i386/32bit-mpx.c: Regenerate.
151 * features/i386/32bit-pkeys.c: Regenerate.
152 * features/i386/32bit-sse.c: Regenerate.
153 * features/i386/64bit-avx.c: Regenerate.
154 * features/i386/64bit-avx512.c: Regenerate.
155 * features/i386/64bit-core.c: Regenerate.
156 * features/i386/64bit-linux.c: Regenerate.
157 * features/i386/64bit-mpx.c: Regenerate.
158 * features/i386/64bit-pkeys.c: Regenerate.
159 * features/i386/64bit-segments.c: Regenerate.
160 * features/i386/64bit-sse.c: Regenerate.
161 * features/i386/x32-core.c: Regenerate.
162 * features/tic6x-c6xp.c: Regenerate.
163 * features/tic6x-core.c: Regenerate.
164 * features/tic6x-gp.c: Regenerate.
165 * target-descriptions.c: Use common/tdesc.h.
166 * target-descriptions.h: Likewise.
167
9b292f68
TT
1682018-02-24 Tom Tromey <tom@tromey.com>
169
170 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
171 (try_thread_db_load_from_dir, thread_db_load_search): Use
172 std::string.
173 (info_auto_load_libthread_db_compare): Return bool. Change
174 argument types.
175 (info_auto_load_libthread_db): Use std::vector, std::string.
176 Remove cleanups.
177
281d762b
TT
1782018-02-24 Tom Tromey <tom@tromey.com>
179
180 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
181 std::string.
182 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
183 std::string*.
184 * gdbarch.c: Rebuild.
185 * gdbarch.h: Rebuild.
186 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
187 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
188 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
189 std::string*.
190
9d8780f0
SM
1912018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * gdbtypes.h (sect_offset): Change type to uint64_t.
194 (sect_offset_str): New function.
195 * dwarf2read.c (create_addrmap_from_aranges): Use
196 sect_offset_str.
197 (error_check_comp_unit_head): Likewise.
198 (create_debug_type_hash_table): Likewise.
199 (read_cutu_die_from_dwo): Likewise.
200 (init_cutu_and_read_dies): Likewise.
201 (init_cutu_and_read_dies_no_follow): Likewise.
202 (process_psymtab_comp_unit_reader): Likewise.
203 (partial_die_parent_scope): Likewise.
204 (peek_die_abbrev): Likewise.
205 (process_queue): Likewise.
206 (dwarf2_physname): Likewise.
207 (read_namespace_alias): Likewise.
208 (read_import_statement): Likewise.
209 (create_dwo_cu_reader): Likewise.
210 (create_cus_hash_table): Likewise.
211 (lookup_dwo_cutu): Likewise.
212 (inherit_abstract_dies): Likewise.
213 (read_func_scope): Likewise.
214 (read_call_site_scope): Likewise.
215 (dwarf2_add_member_fn): Likewise.
216 (read_common_block): Likewise.
217 (read_module_type): Likewise.
218 (read_typedef): Likewise.
219 (read_subrange_type): Likewise.
220 (load_partial_dies): Likewise.
221 (read_partial_die): Likewise.
222 (find_partial_die): Likewise.
223 (read_str_index): Likewise.
224 (dwarf2_string_attr): Likewise.
225 (build_error_marker_type): Likewise.
226 (lookup_die_type): Likewise.
227 (dump_die_shallow): Likewise.
228 (follow_die_ref): Likewise.
229 (dwarf2_fetch_die_loc_sect_off): Likewise.
230 (dwarf2_fetch_constant_bytes): Likewise.
231 (follow_die_sig): Likewise.
232 (get_signatured_type): Likewise.
233 (get_DW_AT_signature_type): Likewise.
234 (dwarf2_find_containing_comp_unit): Likewise.
235 (set_die_type): Likewise.
236
8ec57239
JB
2372018-02-21 John Baldwin <jhb@FreeBSD.org>
238
239 * arch/aarch64.c: Include "common-defs.h".
240 * arch/amd64.c: Likewise.
241 * arch/i386.c: Likewise.
242
3eac2b65
TT
2432018-02-21 Tom Tromey <tom@tromey.com>
244
245 * value.h: (extract_field_op): Update.
246 * eval.c (extract_field_op): Return a const char *.
247 * expression.h (parse_expression_for_completion): Update.
248 * completer.c (complete_expression): Update.
249 (add_struct_fields): Make fieldname const.
250 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
251 (mark_completion_tag, parse_exp_in_context_1): Update.
252 (parse_expression_for_completion): Change "name" to
253 unique_xmalloc_ptr*.
254
6ccb583f
TT
2552018-02-21 Tom Tromey <tom@tromey.com>
256
257 * infcall.c (call_function_by_hand_dummy): Use std::vector.
258
c113ed0c
YQ
2592018-02-21 Yao Qi <yao.qi@linaro.org>
260
261 * avr-tdep.c (avr_read_pc): Change parameter type to
262 readable_regcache.
263 * gdbarch.sh (read_pc): Likewise.
264 * gdbarch.c: Re-generated.
265 * gdbarch.h: Re-generated.
266 * hppa-tdep.c (hppa_read_pc): Change parameter type to
267 readable_regcache.
268 * ia64-tdep.c (ia64_read_pc): Likewise.
269 * mips-tdep.c (mips_read_pc): Likewise.
270 * spu-tdep.c (spu_read_pc): Likewise.
271
4c74fe6b
YQ
2722018-02-21 Yao Qi <yao.qi@linaro.org>
273
274 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
275 * regcache-dump.c: New file.
276 * regcache.c: Move register_dump to regcache-dump.c.
277 (maintenance_print_registers): Likewise.
278 (maintenance_print_raw_registers): Likewise.
279 (maintenance_print_cooked_registers): Likewise.
280 (maintenance_print_register_groups): Likewise.
281 (maintenance_print_remote_registers): Likewise.
282 (_initialize_regcache): Likewise.
283 * regcache.h (register_dump): Moved from regcache.c.
284
796bb026
YQ
2852018-02-21 Yao Qi <yao.qi@linaro.org>
286
287 * regcache.c (regcache::regcache): Update.
288 (regcache::invalidate): Move it to detached_regcache::invalidate.
289 (get_thread_arch_aspace_regcache): Update.
290 (regcache::raw_update): Update.
291 (regcache::cooked_read): Remove some code.
292 (regcache::cooked_read_value): Likewise.
293 (regcache::raw_write): Remove assert on m_readonly_p.
294 (regcache::raw_supply_integer): Move it to
295 detached_regcache::raw_supply_integer.
296 (regcache::raw_supply_zeroed): Likewise.
297 * regcache.h (detached_regcache) <raw_supply_integer>: New
298 declaration.
299 <raw_supply_zeroed, invalidate>: Likewise.
300 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
301 <invalidate>: Likewise.
302 <m_readonly_p>: Removed.
303
215c69dc
YQ
3042018-02-21 Yao Qi <yao.qi@linaro.org>
305
306 * infcmd.c (get_return_value): Let stop_regs point to
307 get_current_regcache.
308 * regcache.c (regcache::regcache): Remove.
309 (register_dump_reg_buffer): New class.
310 (regcache_print): Adjust.
311 * regcache.h (regcache): Remove constructors.
312
f3384e66
YQ
3132018-02-21 Yao Qi <yao.qi@linaro.org>
314
315 * regcache.c (class register_dump): New class.
316 (register_dump_regcache, register_dump_none): New class.
317 (register_dump_remote, register_dump_groups): New class.
318 (regcache_print): Update.
319 * regcache.h (regcache_dump_what): Move it to regcache.c.
320 (regcache) <dump>: Remove.
321
c8ec2f33
YQ
3222018-02-21 Yao Qi <yao.qi@linaro.org>
323
324 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
325 reg_buffer_rw *.
326 (jit_unwind_reg_set_impl): Call raw_supply.
327 (jit_frame_sniffer): Use reg_buffer_rw.
328 * record-full.c (record_full_core_regbuf): Change its type.
329 (record_full_core_open_1): Use reg_buffer_rw.
330 (record_full_close): Likewise.
331 (record_full_core_fetch_registers): Use regcache->raw_supply.
332 (record_full_core_store_registers): Likewise.
333 * regcache.c (regcache::get_register_status): Move it to
334 reg_buffer.
335 (regcache_raw_set_cached_value): Remove.
336 (regcache::raw_set_cached_value): Remove.
337 (regcache::raw_write): Call raw_supply.
338 (regcache::raw_supply): Move it to reg_buffer_rw.
339 * regcache.h (regcache_raw_set_cached_value): Remove.
340 (reg_buffer_rw): New class.
341
daf6667d
YQ
3422018-02-21 Yao Qi <yao.qi@linaro.org>
343
344 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
345 readonly_detached_regcache.
346 (dummy_frame_prev_register): Use regcache->cooked_read.
347 * frame.c (frame_save_as_regcache): Change return type.
348 (frame_pop): Update.
349 * frame.h (frame_save_as_regcache): Update declaration.
350 * inferior.h (get_infcall_suspend_state_regcache): Update
351 declaration.
352 * infrun.c (infcall_suspend_state) <registers>: use
353 readonly_detached_regcache.
354 (save_infcall_suspend_state): Don't use regcache_dup.
355 (get_infcall_suspend_state_regcache): Change return type.
356 * linux-fork.c (struct fork_info) <savedregs>: Change to
357 readonly_detached_regcache.
358 <pc>: New field.
359 (fork_save_infrun_state): Don't use regcache_dup.
360 (info_checkpoints_command): Adjust.
361 * mi/mi-main.c (register_changed_p): Update declaration.
362 (mi_cmd_data_list_changed_registers): Use
363 readonly_detached_regcache.
364 (register_changed_p): Change parameter type to
365 readonly_detached_regcache.
366 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
367 readonly_detached_regcache.
368 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
369 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
370 New.
371 (regcache::save): Move it to reg_buffer.
372 (regcache::restore): Change parameter type.
373 (regcache_dup): Remove.
374 * regcache.h (reg_buffer) <save>: New method.
375 (readonly_detached_regcache): New class.
376 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
377 readonly_detached_regcache.
378 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
379
fc5b8736
YQ
3802018-02-21 Yao Qi <yao.qi@linaro.org>
381
382 * frame.c (frame_save_as_regcache): Use regcache method save.
383 (frame_pop): Use regcache method restore.
384 * infrun.c (restore_infcall_suspend_state): Likewise.
385 * linux-fork.c (fork_load_infrun_state): Likewise.
386 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
387 save.
388 * regcache.c (regcache_save): Remove.
389 (regcache::restore): More asserts.
390 (regcache_cpy): Remove.
391 * regcache.h (regcache_save): Remove the declaration.
392 (regcache::restore): Move from private to public.
393 Remove the friend declaration of regcache_cpy.
394 (regcache_cpy): Remove declaration.
395
849d0ba8
YQ
3962018-02-21 Yao Qi <yao.qi@linaro.org>
397
398 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
399 parameter type to 'readable_regcache *'.
400 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
401 * arm-tdep.c (arm_neon_quad_read): Likewise.
402 (arm_pseudo_read): Likewise.
403 * avr-tdep.c (avr_pseudo_register_read): Likewise.
404 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
405 * frv-tdep.c (frv_pseudo_register_read): Likewise.
406 * gdbarch.c: Re-generated.
407 * gdbarch.h: Re-generated.
408 * gdbarch.sh (pseudo_register_read): Change parameter type to
409 'readable_regcache *'.
410 (pseudo_register_read_value): Likewise.
411 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
412 (h8300_pseudo_register_read): Likewise.
413 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
414 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
415 (i386_pseudo_register_read_into_value): Likewise.
416 (i386_pseudo_register_read_value): Likewise.
417 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
418 declaration.
419 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
420 * m32c-tdep.c (m32c_raw_read): Likewise.
421 (m32c_read_flg): Likewise.
422 (m32c_banked_register): Likewise.
423 (m32c_banked_read): Likewise.
424 (m32c_sb_read): Likewise.
425 (m32c_part_read): Likewise.
426 (m32c_cat_read): Likewise.
427 (m32c_r3r2r1r0_read): Likewise.
428 (m32c_pseudo_register_read): Likewise.
429 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
430 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
431 (mep_pseudo_cr64_read): Likewise.
432 (mep_pseudo_register_read): Likewise.
433 * mips-tdep.c (mips_pseudo_register_read): Likewise.
434 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
435 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
436 * regcache.c (regcache::raw_read): Move it to readable_regcache.
437 (regcache::cooked_read): Likewise.
438 (regcache::cooked_read_value): Likewise.
439 (regcache_cooked_read_signed):
440 (regcache::cooked_read): Likewise.
441 * regcache.h (readable_regcache): New class.
442 (regcache): Inherit readable_regcache. Move some methods to
443 readable_regcache.
444 * rl78-tdep.c (rl78_pseudo_register_read): Change
445 parameter type to 'readable_regcache *'.
446 * rs6000-tdep.c (do_regcache_raw_read): Remove.
447 (e500_pseudo_register_read): Change parameter type to
448 'readable_regcache *'.
449 (dfp_pseudo_register_read): Likewise.
450 (vsx_pseudo_register_read): Likewise.
451 (efpr_pseudo_register_read): Likewise.
452 * s390-tdep.c (s390_pseudo_register_read): Likewise.
453 * sh-tdep.c (sh_pseudo_register_read): Likewise.
454 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
455 (sh64_pseudo_register_read): Likewise.
456 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
457 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
458 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
459 (spu_pseudo_register_read): Likewise.
460 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
461 (xtensa_pseudo_register_read): Likewise.
462
31716595
YQ
4632018-02-21 Yao Qi <yao.qi@linaro.org>
464
465 * regcache.c (regcache::regcache): Call reg_buffer ctor.
466 (regcache::arch): Move it to reg_buffer::arch.
467 (regcache::register_buffer): Likewise.
468 (regcache::assert_regnum): Likewise.
469 (regcache::num_raw_registers): Likewise.
470 * regcache.h (reg_buffer): New class.
471 (regcache): Inherit reg_buffer.
472
7104e59b
SM
4732018-02-20 Simon Marchi <simon.marchi@ericsson.com>
474
475 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
476 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
477
2d8adcbd
MM
4782018-02-20 Markus Metzger <markus.t.metzger@intel.com>
479
480 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
481
b5884fa7
AH
4822018-02-19 Alan Hayward <alan.hayward@arm.com>
483
484 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
485 (SFILES): Remove common/*.c files.
486 (COMMON_OBS): Remove some *.o files built from common/*.c files.
487 * common/common.host: Add common reference.
488 * configure.ac: Likewise.
489 * configure: Regenerate.
490
fd90ace4
YQ
4912018-02-16 Yao Qi <yao.qi@linaro.org>
492
493 * block.c (block_namespace_info): Inherit allocate_on_obstack.
494 (block_initialize_namespace): Use new.
495 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
496 (dwarf2_free_objfile): Use delete.
497 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
498 (copy_type_recursive): Use new.
499 * gdb_obstack.h (allocate_on_obstack): New.
500
85046ae2
YQ
5012018-02-15 Yao Qi <yao.qi@linaro.org>
502
503 PR gdb/22849
504 * inferior.c (exit_inferior_1): Reset inf->control.
505
355c559b
JB
5062018-02-15 Joel Brobecker <brobecker@adacore.com>
507
508 * ada-lang.c (ada_to_fixed_value_create): Delete advance
509 declaration.
510
980548fd
PA
5112018-02-14 Pedro Alves <palves@redhat.com>
512
513 * frame-unwind.c (frame_unwind_try_unwinder): Always call
514 frame_cleanup_after_sniffer on exception.
515
692d6f97
TT
5162018-02-14 Tom Tromey <tom@tromey.com>
517
518 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
519 const.
520 (solib_bfd_open): Make pathname const.
521 * solib.c (solib_bfd_open): Make pathname const.
522 * solib-spu.c (spu_bfd_fopen): Make name const.
523 (spu_bfd_open): Make pathname const.
524 * solib-darwin.c (darwin_bfd_open): Make pathname const.
525 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
526
e0cc99a6
TT
5272018-02-14 Tom Tromey <tom@tromey.com>
528
529 * symfile.c (symfile_bfd_open): Update.
530 * source.h (openp, source_full_path_of, find_and_open_source):
531 Change argument type to unique_xmalloc_ptr.
532 * source.c (openp): Take a unique_xmalloc_ptr.
533 (source_full_path_of, find_and_open_source): Likewise.
534 (open_source_file, symtab_to_fullname): Update.
535 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
536 unique_xmalloc_ptr.
537 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
538 (exec_file_find): Update.
539 * psymtab.c (psymtab_to_fullname): Update.
540 * nto-tdep.h (nto_find_and_open_solib): Update.
541 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
542 unique_xmalloc_ptr.
543 * exec.c (exec_file_attach): Update.
544 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
545 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
546
b46a8d7c
TT
5472018-02-14 Tom Tromey <tom@tromey.com>
548
549 * solib.c: Include source.h.
550 * nto-tdep.c: Include source.h.
551 * mi/mi-cmd-env.c: Include source.h.
552 * infcmd.c: Include source.h.
553 * exec.c: Include source.h.
554 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
555 (add_path, directory_switch, source_path, init_source_path): Move
556 declarations...
557 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
558 (add_path, directory_switch, source_path, init_source_path):
559 ...here.
560
797bc1cb
TT
5612018-02-14 Tom Tromey <tom@tromey.com>
562
563 * solist.h (exec_file_find, solib_find): Return
564 unique_xmalloc_ptr.
565 (solib_bfd_fopen): Take a const char *.
566 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
567 (exec_file_find, solib_find): Likewise.
568 (solib_bfd_fopen): Do not take ownership of "pathname".
569 (solib_bfd_open): Use unique_xmalloc_ptr.
570 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
571 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
572 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
573 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
574
f98b2e33
JB
5752018-02-14 Joel Brobecker <brobecker@adacore.com>
576
577 * ada-lang.c (name_match_type_from_name): Remove reference to
578 ada_name_for_lookup in function's documentation.
579 * ada-lang.h (ada_name_for_lookup): Delete declaration.
580
24b9144d
SM
5812018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * defs.h (enum openp_flags): New enum.
584 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
585 Move to enum openp_flags.
586 (openp_flags): New enum flags.
587 (openp): Change parameter type to openp_flags.
588 * source.c (openp): Change parameter type to openp_flags.
589 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
590 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
591
387cd15b
SM
5922018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
593
594 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
595 per-command.
596
b303c6f6
AB
5972018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
598
599 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
600 into...
601 (class dwarf2_queue_guard): ...the destructor of this new class.
602 (dw2_do_instantiate_symtab): Create instance of the new class
603 dwarf2_queue_guard, remove cleanup.
604
9c3630e9
TT
6052018-02-09 Tom Tromey <tom@tromey.com>
606
607 * source.c (find_source_lines): Don't reference past the end of
608 the vector.
609
c4e12631
MM
6102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
611
612 * remote.c (remote_btrace_maybe_reopen): Change error message.
613 * btrace.c (btrace_enable): Likewise.
614 (parse_xml_btrace): Likewise.
615 (parse_xml_btrace_conf): Likewise.
616
88711fbf
MM
6172018-02-09 Markus Metzger <markus.t.metzger@intel.com>
618
619 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
620 (linux_enable_pt, linux_enable_bts): Call
621 diagnose_perf_event_open_fail.
622
17ad2a4f
MM
6232018-02-09 Markus Metzger <markus.t.metzger@intel.com>
624
625 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
626 Remove parameter and change return type. Update callers. Move it.
627 (linux_enable_bts, linux_enable_pt): Improve error message.
628 (linux_enable_pt): Remove zero buffer size check.
629 (linux_enable_btrace): Improve error messages. Remove NULL return
630 check.
631
de6242d3
MM
6322018-02-09 Markus Metzger <markus.t.metzger@intel.com>
633
634 * btrace.c (btrace_enable): Remove target_supports_btrace call.
635 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
636 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
637 (linux_supports_pt, linux_supports_btrace): Remove.
638 (linux_enable_bts): Call cpu_supports_bts.
639 * nat/linux-btrace.h (linux_supports_btrace): Remove.
640 * remote.c (remote_supports_btrace): Remove.
641 (init_remote_ops): Remove remote_supports_btrace.
642 * target-delegates.c: Regenerated.
643 * target.c (target_supports_btrace): Remove.
644 * target.h (target_ops) <to_supports_btrace>: Remove
645 (target_supports_btrace): Remove.
646 * x86-linux-nat.c (x86_linux_create_target): Remove
647 linux_supports_btrace.
648
9ee23a85
MM
6492018-02-09 Markus Metzger <markus.t.metzger@intel.com>
650
651 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
652 btrace failed.
653 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
654 exception and use message in own exception.
655
5c3284c1
MM
6562018-02-09 Markus Metzger <markus.t.metzger@intel.com>
657
658 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
659 (perf_event_pt_event_type): Use gdb_file_up.
660 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
661 scoped_fd, and scoped_mmap.
662
84696f37
MM
6632018-02-09 Markus Metzger <markus.t.metzger@intel.com>
664
665 * common/scoped_mmap.h: New.
666 * unittests/scoped_mmap-selftest.c: New.
667 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
668 unittests/scoped_mmap-selftest.c.
669
ea4a0888
MM
6702018-02-09 Markus Metzger <markus.t.metzger@intel.com>
671
672 * common/scoped_fd.h: New.
673 * unittests/scoped_fd-selftest.c: New.
674 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
675 unittests/scoped_fd-selftest.c.
676
869e8290
TT
6772018-02-09 Tom Tromey <tom@tromey.com>
678
679 * auto-load.c (auto_load_section_scripts): Use
680 gdb::unique_xmalloc_ptr.
681
a37a2ae7
TT
6822018-02-09 Tom Tromey <tom@tromey.com>
683
684 * auto-load.c (execute_script_contents): Use std::string.
685
4e725347
JB
6862018-02-09 Joel Brobecker <brobecker@adacore.com>
687
688 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
689 Python function, rather than a new command.
690
9a897d43
TT
6912018-02-08 Tom Tromey <tom@tromey.com>
692
693 * solib.c (solib_find_1): Use std::string.
694 (solib_bfd_fopen): Use unique_xmalloc_ptr.
695
58ef3771
TT
6962018-02-08 Tom Tromey <tom@tromey.com>
697
698 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
699
a9abc434
TT
7002018-02-08 Tom Tromey <tom@tromey.com>
701
702 * source.c (find_source_lines): Use gdb::def_vector.
703
84f27c6f
TT
7042018-02-08 Tom Tromey <tom@tromey.com>
705
706 * macrocmd.c (struct temporary_macro_definition): New.
707 (macro_define_command): Use temporary_macro_definition. Remove
708 cleanups.
709 (free_macro_definition_ptr): Remove.
710
0354904b
TT
7112018-02-08 Tom Tromey <tom@tromey.com>
712
713 * macroexp.c (maybe_expand): Use std::string.
714
1739cf24
TT
7152018-02-08 Tom Tromey <tom@tromey.com>
716
717 * macroexp.c (struct macro_buffer): Add initializers for some
718 members.
719 (init_buffer, init_shared_buffer, free_buffer)
720 (free_buffer_return_text): Remove.
721 (macro_buffer): New constructors.
722 (~macro_buffer): New destructor.
723 (macro_buffer::set_shared): New method.
724 (macro_buffer::resize_buffer, macro_buffer::appendc)
725 (macro_buffer::appendmem): Now methods, not free functions.
726 (set_token, append_tokens_without_splicing, stringify)
727 (macro_stringify): Update.
728 (gather_arguments): Change return type. Remove argc_p argument,
729 add args_ptr argument. Use std::vector.
730 (substitute_args): Remove argc argument. Accept std::vector.
731 (expand): Update. Use std::vector.
732 (scan, macro_expand, macro_expand_next): Update.
733
f6c2623e
TT
7342018-02-08 Tom Tromey <tom@tromey.com>
735
736 * symtab.c (default_collect_symbol_completion_matches_break_on):
737 Use unique_xmalloc_ptr.
738 * macroscope.h: (sal_macro_scope, user_macro_scope)
739 (default_macro_scope): Return unique_xmalloc_ptr.
740 * macroscope.c (sal_macro_scope, user_macro_scope)
741 (default_macro_scope): Return unique_xmalloc_ptr.
742 * macroexp.h (macro_expand, macro_expand_once): Return
743 unique_xmalloc_ptr.
744 * macroexp.c (macro_expand, macro_expand_once): Return
745 unique_xmalloc_ptr.
746 * macrocmd.c (macro_expand_command, macro_expand_once_command)
747 (info_macro_command, info_macros_command): Use
748 unique_xmalloc_ptr.
749 * compile/compile-c-support.c (write_macro_definitions): Use
750 unique_xmalloc_ptr.
751 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
752
c2e0e465
SM
7532018-02-07 Simon Marchi <simon.marchi@ericsson.com>
754
755 * value.c (value_static_field): Assign field type instead of
756 containing type when returning an optimized out value.
757
3f8c94b4
YQ
7582018-02-06 Yao Qi <yao.qi@linaro.org>
759
760 * ft32-tdep.c (ft32_read_pc): Remove.
761 (ft32_write_pc): Remove.
762 (ft32_gdbarch_init): Update.
763 * m32r-tdep.c (m32r_read_pc): Remove.
764 (m32r_gdbarch_init): Update.
765 * mep-tdep.c (mep_read_pc): Remove.
766 (mep_gdbarch_init): Update.
767 * microblaze-tdep.c (microblaze_write_pc): Remove.
768 (microblaze_gdbarch_init): Update.
769 * mn10300-tdep.c (mn10300_read_pc): Remove.
770 (mn10300_write_pc): Remove.
771 (mn10300_gdbarch_init): Update.
772 * moxie-tdep.c (moxie_read_pc): Remove.
773 (moxie_write_pc): Remove.
774 (moxie_gdbarch_init): Update.
775
bca65a23
YQ
7762018-02-06 Yao Qi <yao.qi@linaro.org>
777
778 * expprint.c (print_subexp_standard): Handle
779 OP_F77_UNDETERMINED_ARGLIST.
780 (dump_subexp_body_standard): Likewise.
781
583e3f90 7822018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 783
583e3f90
YQ
784 * target-descriptions.c (tdesc_element_visitor) Add empty
785 implementations.
b8df6ca7
AH
786 (tdesc_type): Move make_gdb_type from here.
787 (tdesc_type_builtin): Likewise.
788 (tdesc_type_vector): Likewise.
789 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
790 (make_gdb_type_struct): Move from tdesc_type_with_fields.
791 (make_gdb_type_union): Likewise.
792 (make_gdb_type_flags): Likewise.
793 (make_gdb_type_enum): Likewise.
794 (make_gdb_type): New function.
795 (tdesc_register_type): Use static make_gdb_type.
796
e813d34a
RK
7972018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
798
799 * infcmd.c (default_print_one_register_info): Align natural-format
800 column values consistently one under another.
801 (pad_to_column): New function.
802
0eb876f5
JB
8032018-02-05 Joel Brobecker <brobecker@adacore.com>
804
805 * dwarf2read.c (dwarf2_physname): Move commment.
806
0625771b
LS
8072018-02-01 Leszek Swirski <leszeks@google.com>
808
809 * varobj.c (varobj_formatted_print_options): Allow recursive
810 pretty printing if pretty printing is enabled.
811
59498c30
LS
8122018-02-01 Leszek Swirski <leszeks@google.com>
813
814 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
815 names after a structop as a filename.
816
2d9e6acb
YQ
8172018-02-01 Yao Qi <yao.qi@linaro.org>
818
819 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
820 (arm_record_coproc_data_proc): Likewise.
821
df95a9cf
YQ
8222018-02-01 Yao Qi <yao.qi@linaro.org>
823
824 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
825
07e5f5cf
NP
8262018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
827
828 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
829 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
830
3045b475
PA
8312018-01-31 Pedro Alves <palves@redhat.com>
832
833 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
834 * inflow.c (child_terminal_save_inferior): Wrap reference to
835 tcgetpgrp in HAVE_TERMIOS_H.
836 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
837 _WIN32.
838 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
839 always iterate over all inferiors.
840 (gdbsim_cntrl_c): Adjust.
841 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
842
929b5ad4
JB
8432018-01-31 Joel Brobecker <brobecker@adacore.com>
844
845 * gdbtypes.c (lookup_array_range_type): Make sure the array's
846 index type is objfile-owned if the element type is as well.
847
29236ca2
JB
8482018-01-31 Joel Brobecker <brobecker@adacore.com>
849
850 GDB 8.1 released.
851
c81e8879
PR
8522018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
853
854 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
855 "features/s390x-linux64.c".
856 (_initialize_s390_linux_tdep): Remove initialization of tdescs
857 s390_linux32 and s390x_linux64.
858 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
859 default tdesc.
860 * s390-tdep.c: Include "features/s390-linux32.c" and
861 "features/s390x-linux64.c".
862 (s390_tdesc_valid): Add check for tdesc_has_registers.
863 (s390_gdbarch_init): Make sure there is always a valid tdesc.
864 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
865 tdesc_s390x_linux64.
866 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
867 tdesc_s390x_linux64 to...
868 * s390-tdep.h: ...here.
869
e671cd59
PA
8702018-01-30 Pedro Alves <palves@redhat.com>
871
872 PR gdb/13211
873 * config.in, configure: Regenerate.
874 * configure.ac: Check for getpgid.
875 * go32-nat.c (go32_pass_ctrlc): New.
876 (go32_target): Install it.
877 * inf-child.c (inf_child_target): Install
878 child_terminal_save_inferior, child_pass_ctrlc and
879 child_interrupt.
880 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
881 (inf_ptrace_target): No longer install it.
882 * infcmd.c (interrupt_target_1): Adjust.
883 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
884 (child_interrupt): Declare.
885 (inferior::terminal_state): New.
886 * inflow.c (struct terminal_info): Update comments.
887 (inferior_process_group): Delete.
888 (terminal_is_ours): Delete.
889 (gdb_tty_state): New.
890 (child_terminal_init): Adjust.
891 (is_gdb_terminal, sharing_input_terminal_1)
892 (sharing_input_terminal): New functions.
893 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
894 Set the process's actual process group in the foreground if
895 possible. Handle is_ours_for_output/is_ours distinction. Don't
896 mark terminal as the inferior's if not sharing GDB's terminal.
897 Don't check attach_flag.
898 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
899 pass down a target_terminal_state.
900 (child_terminal_save_inferior): New, factored out from ...
901 (child_terminal_ours_1): ... this. Handle
902 target_terminal_state::is_ours_for_output.
903 (child_interrupt, child_pass_ctrlc): New.
904 (inflow_inferior_exit): Clear the inferior's terminal_state.
905 (copy_terminal_info): Copy the inferior's terminal state.
906 (_initialize_inflow): Remove reference to terminal_is_ours.
907 * inflow.h (inferior_process_group): Delete.
908 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
909 * procfs.c (procfs_target): Don't install procfs_interrupt.
910 (procfs_interrupt): Delete.
911 * remote.c (remote_serial_quit_handler): Adjust.
912 (remote_interrupt): Remove ptid parameter. Adjust.
913 * target-delegates.c: Regenerate.
914 * target.c: Include "terminal.h".
915 (target_terminal::terminal_state): Rename to ...
916 (target_terminal::m_terminal_state): ... this.
917 (target_terminal::init): Adjust.
918 (target_terminal::inferior): Adjust to per-inferior
919 terminal_state.
920 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
921 (target_terminal::ours, target_terminal::ours_for_output): Use
922 target_terminal_is_ours_kind.
923 (target_interrupt): Remove ptid parameter. Adjust.
924 (default_target_pass_ctrlc): Adjust.
925 * target.h (target_ops::to_terminal_save_inferior): New field.
926 (target_ops::to_interrupt): Remove ptid_t parameter.
927 (target_interrupt): Remove ptid_t parameter. Update comment.
928 (target_pass_ctrlc): Update comment.
929 * target/target.h (target_terminal_state): New scoped enum,
930 factored out of ...
931 (target_terminal::terminal_state): ... here.
932 (target_terminal::inferior): Update comments.
933 (target_terminal::restore_inferior): New.
934 (target_terminal::is_inferior, target_terminal::is_ours)
935 (target_terminal::is_ours_for_output): Adjust.
936 (target_terminal::scoped_restore_terminal_state): Adjust to
937 rename, and call restore_inferior() instead of inferior().
938 (target_terminal::scoped_restore_terminal_state::m_state): Change
939 type.
940 (target_terminal::terminal_state): Rename to ...
941 (target_terminal::m_terminal_state): ... this and change type.
942
9c3a5d93
PA
9432018-01-30 Pedro Alves <palves@redhat.com>
944
945 * linux-nat.c (wait_for_signal): New function.
946 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
947 directly.
948 (async_terminal_is_ours)
949 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
950 (linux_nat_add_target): Don't override
951 to_terminal_inferior/to_terminal_ours.
952
69ab5edb
SDJ
9532018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
954
955 * remote.c (remote_follow_fork): Don't call "detach_inferior".
956
fc8e7e75
SM
9572018-01-28 Simon Marchi <simon.marchi@ericsson.com>
958
959 * dwarf2read.c (free_dwo_files): Add forward-declaration.
960 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
961 dwarf2_per_objfile_free here.
962 (dwarf2_per_objfile_free): Remove.
963 (_initialize_dwarf2_read): Don't register
964 dwarf2_per_objfile_free as a registry cleanup.
965
b2a426e2
EZ
9662018-01-27 Eli Zaretskii <eliz@gnu.org>
967
968 Avoid compilation errors in MinGW native builds
969
970 The error is triggered by including python-internal.h, and the
971 error message is:
972
973 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
974 from build-gnulib/import/math.h:27,
975 from d:/usr/Python26/include/pyport.h:235,
976 from d:/usr/Python26/include/Python.h:58,
977 from python/python-internal.h:94,
978 from python/py-arch.c:24:
979 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
980 using ::hypot;
981 ^~~~~
982
983 This happens because Python headers define 'hypot' to expand t
984 '_hypot' in the Windows builds.
985 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
986 'hypoth'. This avoids a compilation error.
987
0bdd8eac
AH
9882018-01-26 Alan Hayward <alan.hayward@arm.com>
989
990 * MAINTAINERS (Write After Approval): Fix ordering.
991
56ae9dc3
AH
9922018-01-26 Alan Hayward <alan.hayward@arm.com>
993
994 * MAINTAINERS (Write After Approval): Add Alan Hayward.
995
7433498b
AM
9962018-01-26 Alan Modra <amodra@gmail.com>
997
998 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
999 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
1000 Remove nop. Make const. Comment.
1001 (powerpc32_plt_stub_so_2): New.
1002 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
1003 Correct count. Update uses.
1004 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
1005 Move common code reading PLT entry word. Correct
1006 powerpc32_plt_stub PLT address calculation.
1007 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
1008 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
1009 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
1010 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
1011 (ppc64_standard_linkage8): Likewise.
1012 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
1013 Correct insns description.
1014 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1015
0f59d5fc
PA
10162018-01-24 Pedro Alves <palves@redhat.com>
1017
1018 GCC PR libstdc++/83906
1019 * gdbtypes.c (operator==(const dynamic_prop &,
1020 const dynamic_prop &)): New.
1021 (operator==(const range_bounds &, const range_bounds &)): New.
1022 (check_types_equal): Use them instead of memcmp.
1023 * gdbtypes.h (operator==(const dynamic_prop &,
1024 const dynamic_prop &)): Declare.
1025 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
1026 (operator==(const range_bounds &, const range_bounds &)): Declare.
1027 (operator!=(const range_bounds &, const range_bounds &)): Declare.
1028
ef8914a4
PR
10292018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1030
1031 * s390-linux-tdep.c (s390_record_address_mask)
1032 (s390_record_calc_disp_common, s390_record_calc_disp)
1033 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1034 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1035 (s390_process_record): Move to s390-tdep.c.
1036 (s390_linux_init_abi_any): Adjust.
1037 * s390-tdep.c (s390_record_address_mask)
1038 (s390_record_calc_disp_common, s390_record_calc_disp)
1039 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1040 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1041 (s390_process_record): Moved from s390-linux-tdep.c
1042 (s390_gdbarch_init): Adjust.
1043
d6e58945
PR
10442018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1045
1046 * s390-linux-nat.c (s390-tdep.h): New include.
1047 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
1048 (HFILES_NO_SRCDIR): Add s390-tdep.h.
1049 (ALLDEPFILES): Add s390-tdep.c.
1050 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
1051 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
1052 * s390-tdep.h: ...this. New file.
1053 * s390-linux-tdep.c (s390-tdep.h): New include.
1054 (_initialize_s390_tdep): Rename to...
1055 (_initialize_s390_linux_tdep): ...this and adjust.
1056 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
1057 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
1058 s390-tdep.h.
1059 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
1060 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
1061 (s390_is_partial_instruction, s390_software_single_step)
1062 (is_non_branch_ril, s390_displaced_step_copy_insn)
1063 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
1064 (s390_prologue_data, s390_addr, s390_store, s390_load)
1065 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
1066 (s390_register_call_saved, s390_guess_tracepoint_registers)
1067 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
1068 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
1069 (s390_pseudo_register_name, s390_pseudo_register_type)
1070 (s390_pseudo_register_read, s390_pseudo_register_write)
1071 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
1072 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
1073 (s390_addr_bits_remove, s390_address_class_type_flags)
1074 (s390_address_class_type_flags_to_name)
1075 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
1076 (s390_function_arg_float, s390_function_arg_vector)
1077 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
1078 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
1079 (s390_frame_align, s390_register_return_value, s390_return_value)
1080 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
1081 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
1082 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
1083 (s390_trad_frame_prev_register, s390_unwind_cache)
1084 (s390_prologue_frame_unwind_cache)
1085 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
1086 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
1087 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
1088 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
1089 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
1090 (s390_frame_base_address, s390_local_base_address)
1091 (s390_frame_base, s390_gcc_target_options)
1092 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
1093 (s390_validate_reg_range, s390_tdesc_valid)
1094 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
1095 * s390-tdep.c: ...this. New file.
1096
9c0b896e
PR
10972018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1098
1099 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
1100 (s390_process_record, s390_gdbarch_tdep_alloc)
1101 (s390_linux_init_abi_any): Use/set new hook.
1102
7042632b
PR
11032018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1104
1105 * s390-linux-tdep.c (osabi.h): New include.
1106 (s390_linux_init_abi_31, s390_linux_init_abi_64)
1107 (s390_linux_init_abi_any): New functions.
1108 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
1109
650f5e13
PR
11102018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1111
1112 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
1113 tdesc_has_registers check
1114
47c9317e
PR
11152018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1116
1117 * s390-linux-tdep.c (s390_tdesc_valid): New function.
1118 (s390_validate_reg_range): New macro.
1119 (s390_gdbarch_init): Adjust.
1120
095085d8
PR
11212018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1122
1123 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
1124 (s390_gdbarch_tdep_alloc): Adjust.
1125 (s390_gdbarch_init): Adjust.
1126
ab9bcc67
PR
11272018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1128
1129 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
1130 <have_tdb>: Change type to bool.
1131 (s390_gdbarch_tdep_alloc): Adjust.
1132 (s390_gdbarch_init): Adjust.
1133
21f6f5ff
PR
11342018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1135
1136 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
1137 (gdbarch_tdep) <have_upper, have_vx>: New fields.
1138 (s390_gdbarch_tdep_alloc): New function.
1139 (s390_gdbarch_init): Allocate tdep at start and use its fields
1140 instead of separate variables.
1141
0eb97953
PR
11422018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1143
1144 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
1145 when looking for cached gdbarch and add comment for remaining.
1146
5c319bb2
PA
11472018-01-22 Pedro Alves <palves@redhat.com>
1148 Sergio Durigan Junior <sergiodj@redhat.com>
1149
1150 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
1151 case.
1152
d65ce302
MR
11532018-01-22 Maciej W. Rozycki <macro@mips.com>
1154
1155 * MAINTAINERS: Update my company e-mail address.
1156
ec7a5fcb
YQ
11572018-01-22 Yao Qi <yao.qi@linaro.org>
1158
1159 * regcache.c (cooked_write_test): New function.
1160 (_initialize_regcache): Register the test.
1161
11f57cb6
YQ
11622018-01-22 Yao Qi <yao.qi@linaro.org>
1163
1164 * ia64-tdep.c (ia64_pseudo_register_read): Call
1165 regcache->cooked_read instead of regcache_cooked_read_unsigned.
1166 * m32c-tdep.c (m32c_cat_read): Likewise.
1167 (m32c_r3r2r1r0_read): Likewise.
1168 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1169 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1170
03f50fc8
YQ
11712018-01-22 Yao Qi <yao.qi@linaro.org>
1172
1173 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
1174 method raw_read instead of regcache_raw_read.
1175 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1176 * arm-tdep.c (arm_neon_quad_read): Likewise.
1177 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1178 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1179 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1180 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
1181 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1182 (i386_pseudo_register_read_into_value): Likewise.
1183 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1184 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1185 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1186 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
1187 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
1188 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1189 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1190 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1191 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
1192
dc711524
YQ
11932018-01-22 Yao Qi <yao.qi@linaro.org>
1194
1195 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
1196 * configure.tgt: Remove target mt.
1197 * mt-tdep.c: Remove.
1198 * regcache.c (cooked_read_test): Remove the check for mt.
1199
3f5a868b
YQ
12002018-01-22 Yao Qi <yao.qi@linaro.org>
1201
1202 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
1203 instead of gdbarch_pseudo_register_read_value.
1204
de4cb04a
JB
12052018-01-22 Joel Brobecker <brobecker@adacore.com>
1206
1207 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
1208 language is Ada.
1209
a9e40818
JB
12102018-01-22 Joel Brobecker <brobecker@adacore.com>
1211
1212 * linespec.c (create_sals_line_offset): Remove code that preserved
1213 the symtab_and_line's line number.
1214
e707fc44
AB
12152018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1216
1217 * varobj.c (varobj_create): Don't set valid_block when creating a
1218 floating varobj.
1219
03d0bf7b
AB
12202018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1221
1222 * varobj.c (varobj_create): Remove out of date comment.
1223
ae451627
AB
12242018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1225
1226 PR mi/20395
1227 * ada-exp.y (write_var_from_sym): Pass extra parameter when
1228 updating innermost block.
1229 * parse.c (innermost_block_tracker::update): Take extra type
1230 parameter, and check types match before updating innermost block.
1231 (write_dollar_variable): Update innermost block for registers.
1232 * parser-defs.h (enum innermost_block_tracker_type): New enum.
1233 (innermost_block_tracker::innermost_block_tracker): Initialise
1234 m_types member.
1235 (innermost_block_tracker::reset): Take type parameter.
1236 (innermost_block_tracker::update): Take type parameter, and pass
1237 type through as needed.
1238 (innermost_block_tracker::m_types): New member.
1239 * varobj.c (varobj_create): Pass type when reseting innermost
1240 block.
1241
aee1fcdf
AB
12422018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
1245 * ada-lang.c (resolve_subexp): Likewise.
1246 * breakpoint.c (set_breakpoint_condition) Likewise.
1247 (watch_command_1) Likewise.
1248 * c-exp.y (variable): Likewise.
1249 * d-exp.y (PrimaryExpression): Likewise.
1250 * f-exp.y (variable): Likewise.
1251 * go-exp.y (variable): Likewise.
1252 * m2-exp.y (variable): Likewise.
1253 * objfiles.c (objfile::~objfile): Likewise.
1254 * p-exp.y (variable): Likewise.
1255 * parse.c (innermost_block): Change type.
1256 * parser-defs.h (class innermost_block_tracker): New.
1257 (innermost_block): Change to innermost_block_tracker.
1258 * printcmd.c (display_command): Switch to innermost_block API.
1259 (do_one_display): Likewise.
1260 * rust-exp.y (do_one_display): Likewise.
1261 * symfile.c (clear_symtab_users): Likewise.
1262 * varobj.c (varobj_create): Switch to innermost_block API, replace
1263 use of innermost_block with block stored on varobj object.
1264
396af9a1
AB
12652018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1266
1267 * expression.h (innermost_block): Remove declaration.
1268 * varobj.c: Add 'parser-defs.h' include.
1269
fcfcc376
TT
12702018-01-19 Tom Tromey <tom@tromey.com>
1271
1272 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
1273 symbols in the static and global blocks.
1274
5a6c3296
JC
12752018-01-19 James Clarke <jrtc27@jrtc27.com>
1276
1277 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
1278 gdb_ptrace.h, and move including gdb_wait.h ...
1279 * nat/linux-ptrace.h: ... to here.
1280
bc09b0c1
SM
12812018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1282
1283 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
1284 inf_ptrace_detach_success.
1285 (inf_ptrace_detach_success): Add inferior parameter, use it
1286 instead of inferior_ptid, pass it to detach_inferior.
1287 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
1288 parameter.
1289 * inferior.c (detach_inferior): Add overload that takes an
1290 inferior object.
1291 * inferior.h (detach_inferior): Likewise.
1292 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
1293 use inferior_ptid, adjust call to inf_ptrace_detach_success.
1294 * linux-thread-db.c (thread_db_detach): Use inf parameter.
1295
6e1e1966
SM
12962018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1297
1298 * target.h (struct target_ops) <to_detach>: Add inferior
1299 parameter.
1300 (target_detach): Likewise.
1301 * target.c (dispose_inferior): Pass inferior down.
1302 (target_detach): Pass inferior down. Assert that it is equal to
1303 the current inferior.
1304 * aix-thread.c (aix_thread_detach): Pass inferior down.
1305 * corefile.c (core_file_command): Pass current_inferior() down.
1306 * corelow.c (core_detach): Add inferior parameter.
1307 * darwin-nat.c (darwin_detach): Likewise.
1308 * gnu-nat.c (gnu_detach): Likewise.
1309 * inf-ptrace.c (inf_ptrace_detach): Likewise.
1310 * infcmd.c (detach_command): Pass current_inferior() down to
1311 target_detach.
1312 * infrun.c (follow_fork_inferior): Pass parent_inf to
1313 target_detach.
1314 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
1315 target_detach.
1316 * linux-nat.c (linux_nat_detach): Add inferior parameter.
1317 * linux-thread-db.c (thread_db_detach): Likewise.
1318 * nto-procfs.c (procfs_detach): Likewise.
1319 * procfs.c (procfs_detach): Likewise.
1320 * record.c (record_detach): Likewise.
1321 * record.h (struct inferior): Forward-declare.
1322 (record_detach): Add inferior parameter.
1323 * remote-sim.c (gdbsim_detach): Likewise.
1324 * remote.c (remote_detach_1): Likewise.
1325 (remote_detach): Likewise.
1326 (extended_remote_detach): Likewise.
1327 * sol-thread.c (sol_thread_detach): Likewise.
1328 * target-debug.h (target_debug_print_inferior_p): New macro.
1329 * target-delegates.c: Re-generate.
1330 * top.c (kill_or_detach): Pass inferior down to target_detach.
1331 * windows-nat.c (windows_detach): Add inferior parameter.
1332
6bd6f3b6
SM
13332018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1334
1335 * target.h (struct target_ops) <to_detach>: Remove args
1336 parameter.
1337 (target_detach): Likewise.
1338 * target.c (dispose_inferior): Adjust.
1339 (target_detach): Remove args parameter, adjust.
1340 * aix-thread.c (aix_thread_detach): Adjust.
1341 * corefile.c (core_file_command): Adjust.
1342 * corelow.c (core_detach): Adjust.
1343 * darwin-nat.c (darwin_detach): Adjust.
1344 * gnu-nat.c (gnu_detach): Adjust.
1345 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1346 * infcmd.c (detach_command): Adjust
1347 * infrun.c (follow_fork_inferior): Adjust.
1348 (handle_vfork_child_exec_or_exit): Adjust.
1349 * linux-fork.c (linux_fork_detach): Remove args parameter.
1350 * linux-fork.h (linux_fork_detach): Likewise.
1351 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
1352 * linux-thread-db.c (thread_db_detach): Likewise.
1353 * nto-procfs.c (procfs_detach): Likewise.
1354 * procfs.c (procfs_detach): Likewise.
1355 (do_detach): Remove signo parameter.
1356 * record.c (record_detach): Remove args parameter.
1357 * record.h (record_detach): Likewise.
1358 * remote-sim.c (gdbsim_detach): Likewise.
1359 * remote.c (remote_detach_1): Likewise.
1360 (remote_detach): Likewise.
1361 (extended_remote_detach): Likewise.
1362 * sol-thread.c (sol_thread_detach): Likewise.
1363 * target-delegates.c: Re-generate.
1364 * top.c (struct qt_args) <args>: Remove field.
1365 (kill_or_detach): Don't pass args.
1366 (quit_force): Don't set args.
1367 * windows-nat.c (windows_detach): Remove args parameter.
1368
88af8ea8
YQ
13692018-01-19 Yao Qi <yao.qi@linaro.org>
1370
1371 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
1372 (arm_linux_init_abi): Install it.
1373
dea445b9
YQ
13742018-01-19 Yao Qi <yao.qi@linaro.org>
1375
1376 * osabi.c (gdb_osabi_names): Extend the regexp for
1377 arm-linux-gnueabihf.
1378
4a17f768
YQ
13792018-01-18 Yao Qi <yao.qi@linaro.org>
1380
1381 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
1382 m_abbrevs.
1383 (abbrev_table::add_abbrev): Update.
1384 (abbrev_table::lookup_abbrev): Update.
1385
d679c21a
YQ
13862018-01-18 Yao Qi <yao.qi@linaro.org>
1387
1388 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
1389
7d937cad
SDJ
13902018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1391
1392 * compile/compile.c (compile_to_object): Convert "triplet_rx"
1393 to "std::string".
1394
9e14690d
TT
13952018-01-17 Tom Tromey <tom@tromey.com>
1396
1397 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
1398
50a82047
TT
13992018-01-17 Tom Tromey <tom@tromey.com>
1400
1401 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
1402 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
1403 (create_array_type_with_stride): Update.
1404 * dwarf2read.c (set_die_type): Update.
1405
c89b44cd
TT
14062018-01-17 Tom Tromey <tom@tromey.com>
1407
1408 * dwarf2read.c (delayed_method_info): Remove typedef.
1409 (dwarf2_cu::method_info): Now a std::vector.
1410 (add_to_method_list): Update.
1411 (free_delayed_list): Remove.
1412 (compute_delayed_physnames): Update.
1413 (process_full_comp_unit, process_full_type_unit): Clear the method
1414 list. Remove cleanups.
1415 (psymtab_include_file_name): Add name_holder parameter. Use
1416 unique_xmalloc_ptr.
1417 (dwarf_decode_lines): Update.
1418
fcd3b13d
SM
14192018-01-17 Tom Tromey <tom@tromey.com>
1420 Simon Marchi <simon.marchi@ericsson.com>
1421
1422 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
1423 (dwarf2_per_objfile::free_cached_comp_units)
1424 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
1425 (init_cutu_and_read_dies_no_follow): Update.
1426 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
1427 (dwarf2_cu::~dwarf2_cu): New.
1428 (free_heap_comp_unit, free_stack_comp_unit): Remove.
1429 (age_cached_comp_units, free_one_cached_comp_unit): Update.
1430
685af9cd
TT
14312018-01-17 Tom Tromey <tom@tromey.com>
1432 Simon Marchi <simon.marchi@ericsson.com>
1433
1434 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
1435 (struct die_reader_specs) <abbrev_table>: New member.
1436 (struct abbrev_table): Add constructor.
1437 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
1438 <abbrev_obstack>: Now an auto_obstack.
1439 (abbrev_table_up): New typedef.
1440 (init_cu_die_reader): Add abbrev_table parameter.
1441 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
1442 Add result_dwo_abbrev_table.
1443 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
1444 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
1445 Update.
1446 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
1447 parameter.
1448 (skip_children): Update.
1449 (abbrev_table::alloc_abbrev): Rename from
1450 abbrev_table_alloc_abbrev.
1451 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
1452 (abbrev_table::lookup_abbrev): Rename from
1453 abbrev_table_lookup_abbrev.
1454 (abbrev_table_read_table): Return abbrev_table_up.
1455 (abbrev_table_free, abbrev_table_free_cleanup)
1456 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
1457 (load_partial_dies): Update.
1458
5e2db402
TT
14592018-01-17 Tom Tromey <tom@tromey.com>
1460
1461 * dwarf2read.c (dwarf2_compute_name): Update comment.
1462 (read_func_scope, read_variable): Update.
1463 (new_symbol): Remove.
1464 (new_symbol_full): Rename to new_symbol.
1465
ee7f689e 14662018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
1467
1468 PR gdb/16577
1469 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
1470 a warning instead of throwing an error, set section size to 0 and return
1471 NULL.
1472 * gdb_bfd.h (gdb_bfd_map_section): Update description.
1473
4d9b86e1
SM
14742018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1475
1476 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
1477 std::string.
1478 (linux_ptrace_attach_fail_reason_string): Likewise.
1479 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
1480 Likewise.
1481 (linux_ptrace_attach_fail_reason_string): Likewise.
1482 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
1483
a7b2d0fb
SM
14842018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1485
1486 * linux-nat.c (linux_nat_attach): Remove xstrdup.
1487
f517c180
EA
14882018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1489
1490 PR gdb/21559
1491 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1492 checking for fs_base/gs_base fields in struct user_regs_struct.
1493 * configure: Regenerate.
1494
7045b1ca
YQ
14952018-01-17 Yao Qi <yao.qi@linaro.org>
1496
1497 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
1498 function.
1499 (aarch64_linux_init_abi): Install it to gdbarch hook
1500 gcc_target_options.
1501
db422fb2
PA
15022018-01-15 Pedro Alves <palves@redhat.com>
1503
1504 * common/signals-state-save-restore.c
1505 (save_original_signals_state): Fix typos.
1506
ba643918
SDJ
15072017-01-12 Tom Tromey <tom@tromey.com>
1508 Sergio Durigan Junior <sergiodj@redhat.com>
1509
1510 * Makefile.in (install-only): Install gdb-add-index.
1511
906b4aac
JB
15122018-01-12 John Baldwin <jhb@FreeBSD.org>
1513
1514 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
1515
bdf2a94a
AA
15162018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1517
1518 * infrun.c (keep_going_pass_signal): Clear step-over info when
1519 insert_breakpoints fails.
1520
71d378ae
PA
15212018-01-11 Pedro Alves <palves@redhat.com>
1522
1523 PR gdb/22583
1524 * infrun.c (resume): Rename to ...
1525 (resume_1): ... this.
1526 (resume): Reimplement as wrapper around resume_1.
1527
3cada740
PA
15282018-01-11 Pedro Alves <palves@redhat.com>
1529
1530 PR remote/22597
1531 * remote.c (remote_parse_stop_reply): Default to the last-set
1532 general thread instead of to 'magic_null_ptid'.
1533
618daa93
PA
15342018-01-10 Pedro Alves <palves@redhat.com>
1535
1536 * language.h (language_get_symbol_name_matcher): Rename ...
1537 (get_symbol_name_matcher): ... this.
1538 * language.c (language_get_symbol_name_matcher): Ditto.
1539 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
1540 callers adjusted.
1541
c63d3e8d
PA
15422018-01-10 Pedro Alves <palves@redhat.com>
1543
1544 PR gdb/22670
1545 * dwarf2read.c
1546 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
1547 Adjust to use language_get_symbol_name_matcher instead of
1548 language_defn::la_get_symbol_name_matcher.
1549 * language.c (language_get_symbol_name_matcher): If in Ada mode
1550 and the lookup name is a verbatim match, return Ada's matcher.
1551 * language.h (language_get_symbol_name_matcher): Adjust comment.
1552 (ada_lookup_name_info::verbatim_p):: New method.
1553
d4c2a405
PA
15542018-01-10 Pedro Alves <palves@redhat.com>
1555
1556 PR gdb/22670
1557 * ada-lang.c (ada_collect_symbol_completion_matches): If the
1558 minsym's language is language_auto or language_cplus, pass down
1559 language_ada instead.
1560 * symtab.c (compare_symbol_name): Don't frob symbol language here.
1561
8825213e
PA
15622018-01-10 Pedro Alves <palves@redhat.com>
1563
1564 PR gdb/22670
1565 * minsyms.c (linkage_name_str): New function.
1566 (iterate_over_minimal_symbols): Use it.
1567
2d97a5d9
JB
15682018-01-09 John Baldwin <jhb@FreeBSD.org>
1569
1570 * NEWS: Document that 'info proc' now works on FreeBSD.
1571
92fce24d
JB
15722018-01-09 John Baldwin <jhb@FreeBSD.org>
1573
1574 * configure.ac: Check for kinfo_getfile in libutil.
1575 * configure: Regenerate.
1576 * config.in: Regenerate.
1577 * fbsd-nat.c: Include "fbsd-tdep.h".
1578 (fbsd_fetch_cmdline): New.
1579 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
1580 rather than calling error.
1581 (fbsd_info_proc): New.
1582 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
1583 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
1584 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
1585
262f62f5
JB
15862018-01-09 John Baldwin <jhb@FreeBSD.org>
1587
1588 * fbsd-nat.c (struct free_deleter): Remove.
1589 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
1590
b999e203
JB
15912018-01-09 John Baldwin <jhb@FreeBSD.org>
1592
1593 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
1594 NULL for an empty pathname.
1595
d2176225
JB
15962018-01-09 John Baldwin <jhb@FreeBSD.org>
1597
1598 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
1599 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
1600 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
1601 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
1602 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
1603 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
1604 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
1605 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
1606 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
1607 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
1608 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
1609 (fbsd_core_fetch_timeval, fbsd_print_sigset)
1610 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
1611 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
1612 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
1613
9c4ac400
ST
16142018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
1615
1616 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
1617 (gnu_xfer_auxv): New function.
1618 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
1619 TARGET_OBJECT_AUXV.
1620
1e5ded6c
YQ
16212018-01-08 Yao Qi <yao.qi@linaro.org>
1622 Simon Marchi <simon.marchi@ericsson.com>
1623
1624 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
1625 common/selftest.c.
1626 (COMMON_OBS): Remove selftest.o.
1627 * configure.ac: Append selftest-arch.c and common/selftest.c to
1628 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
1629 * configure: Re-generated.
1630 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
1631 GDB_SELF_TEST.
1632 (maintenance_info_selftests): Likewise.
1633
04bafb1e
XR
16342018-01-08 Xavier Roirand <roirand@adacore.com>
1635
1636 * ada-valprint.c (val_print_packed_array_elements): Use
1637 proper number of elements when printing an array indexed
1638 by an enumeration type.
1639
518817b3
SM
16402018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1641
1642 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
1643 (dw2_get_file_names_reader): Adjust.
1644 (lookup_dwo_signatured_type): Adjust.
1645 (lookup_dwp_signatured_type): Adjust.
1646 (lookup_signatured_type): Adjust.
1647 (create_type_unit_group): Adjust.
1648 (get_type_unit_group): Adjust.
1649 (process_psymtab_comp_unit_reader): Adjust.
1650 (build_type_psymtabs_reader): Adjust.
1651 (scan_partial_symbols): Adjust.
1652 (add_partial_symbol): Adjust.
1653 (add_partial_subprogram): Adjust.
1654 (peek_die_abbrev): Adjust.
1655 (fixup_go_packaging): Adjust.
1656 (process_imported_unit_die): Adjust.
1657 (dwarf2_compute_name): Adjust.
1658 (dwarf2_physname): Adjust.
1659 (read_import_statement): Adjust.
1660 (handle_DW_AT_stmt_list): Adjust.
1661 (read_file_scope): Adjust.
1662 (read_func_scope): Adjust.
1663 (read_lexical_block_scope): Adjust.
1664 (read_call_site_scope): Adjust.
1665 (read_variable): Adjust.
1666 (dwarf2_rnglists_process): Adjust.
1667 (dwarf2_ranges_process): Adjust.
1668 (dwarf2_ranges_read): Adjust.
1669 (dwarf2_get_pc_bounds): Adjust.
1670 (dwarf2_record_block_ranges): Adjust.
1671 (dwarf2_add_field): Adjust.
1672 (dwarf2_add_member_fn): Adjust.
1673 (read_structure_type): Adjust.
1674 (process_structure_scope): Adjust.
1675 (read_enumeration_type): Adjust.
1676 (read_array_type): Adjust.
1677 (mark_common_block_symbol_computed): Adjust.
1678 (read_common_block): Adjust.
1679 (read_namespace_type): Adjust.
1680 (read_namespace): Adjust.
1681 (read_module_type): Adjust.
1682 (read_tag_pointer_type): Adjust.
1683 (read_tag_ptr_to_member_type): Adjust.
1684 (read_tag_string_type): Adjust.
1685 (read_subroutine_type): Adjust.
1686 (read_typedef): Adjust.
1687 (read_base_type): Adjust.
1688 (attr_to_dynamic_prop): Adjust.
1689 (read_subrange_type): Adjust.
1690 (read_unspecified_type): Adjust.
1691 (dwarf2_read_abbrevs): Adjust.
1692 (load_partial_dies): Adjust.
1693 (read_partial_die): Adjust.
1694 (find_partial_die): Adjust.
1695 (guess_partial_die_structure_name): Adjust.
1696 (fixup_partial_die): Adjust.
1697 (read_attribute_value): Adjust.
1698 (read_addr_index): Adjust.
1699 (read_addr_index_from_leb128): Adjust.
1700 (read_str_index): Adjust.
1701 (dwarf2_string_attr): Adjust.
1702 (get_debug_line_section): Adjust.
1703 (dwarf_decode_line_header): Adjust.
1704 (lnp_state_machine::check_line_address): Adjust.
1705 (dwarf_decode_lines_1): Adjust.
1706 (dwarf_decode_lines): Adjust.
1707 (dwarf2_start_symtab): Adjust.
1708 (var_decode_location): Adjust.
1709 (new_symbol_full): Adjust.
1710 (dwarf2_const_value_data): Adjust.
1711 (dwarf2_const_value_attr): Adjust.
1712 (dwarf2_const_value): Adjust.
1713 (die_type): Adjust.
1714 (die_containing_type): Adjust.
1715 (build_error_marker_type): Adjust.
1716 (lookup_die_type): Adjust.
1717 (guess_full_die_structure_name): Adjust.
1718 (anonymous_struct_prefix): Adjust.
1719 (determine_prefix): Adjust.
1720 (dwarf2_name): Adjust.
1721 (follow_die_ref_or_sig): Adjust.
1722 (follow_die_offset): Adjust.
1723 (follow_die_ref): Adjust.
1724 (follow_die_sig_1): Adjust.
1725 (follow_die_sig): Adjust.
1726 (get_signatured_type): Adjust.
1727 (get_DW_AT_signature_type): Adjust.
1728 (decode_locdesc): Adjust.
1729 (dwarf_decode_macros): Adjust.
1730 (cu_debug_loc_section): Adjust.
1731 (fill_in_loclist_baton): Adjust.
1732 (dwarf2_symbol_mark_computed): Adjust.
1733 (init_one_comp_unit): Don't assign
1734 dwarf2_cu::dwarf2_per_objfile.
1735 (set_die_type): Adjust.
1736
ed2dc618
SM
17372018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1738
1739 * dwarf2read.c (struct mapped_debug_names): Add constructor.
1740 <dwarf2_per_objfile>: New field.
1741 (dwarf2_per_objfile): Remove global.
1742 (get_dwarf2_per_objfile): New function.
1743 (set_dwarf2_per_objfile): New function.
1744 (dwarf2_build_psymtabs_hard): Change objfile parameter to
1745 dwarf2_per_objfile.
1746 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1747 (read_abbrev_offset): Likewise.
1748 (read_indirect_string): Likewise.
1749 (read_indirect_line_string): Likewise.
1750 (read_indirect_string_at_offset): Likewise.
1751 (read_indirect_string_from_dwz): Likewise.
1752 (dwarf2_find_containing_comp_unit): Change objfile parameter to
1753 dwarf2_per_objfile.
1754 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1755 (create_all_comp_units): Change objfile parameter to
1756 dwarf2_per_objfile.
1757 (create_all_type_units): Likewise.
1758 (process_queue): Add dwarf2_per_objfile parameter.
1759 (read_and_check_comp_unit_head): Likewise.
1760 (lookup_dwo_unit_in_dwp): Likewise.
1761 (get_dwp_file): Likewise.
1762 (process_cu_includes): Likewise.
1763 (struct free_dwo_file_cleanup_data): New struct.
1764 (dwarf2_has_info): Use get_dwarf2_per_objfile and
1765 set_dwarf2_per_objfile.
1766 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
1767 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
1768 context, adjust calls.
1769 (dw2_instantiate_symtab): Likewise.
1770 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
1771 (dw2_get_cu): Likewise.
1772 (create_cu_from_index_list): Change objfile parameter to
1773 dwarf2_per_objfile.
1774 (create_cus_from_index_list): Get dwarf2_per_objfile from
1775 context, adjust calls.
1776 (create_cus_from_index): Likewise.
1777 (create_signatured_type_table_from_index): Change objfile
1778 parameter to dwarf2_per_objfile.
1779 (create_signatured_type_table_from_debug_names): Change objfile
1780 parameter to dwarf2_per_objfile.
1781 (create_addrmap_from_index): Likewise.
1782 (create_addrmap_from_aranges): Likewise.
1783 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
1784 (dw2_setup): Remove.
1785 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
1786 context.
1787 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
1788 get_dwarf2_per_objfile.
1789 (dw2_forget_cached_source_info): Likewise.
1790 (dw2_map_symtabs_matching_filename): Likewise.
1791 (struct dw2_symtab_iterator) <index>: Remove.
1792 <dwarf2_per_objfile>: New field.
1793 (dw2_symtab_iter_init): Replace index parameter with
1794 dwarf2_per_objfile.
1795 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
1796 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
1797 (dw2_print_stats): Likewise.
1798 (dw2_dump): Likewise.
1799 (dw2_expand_symtabs_for_function): Likewise.
1800 (dw2_expand_all_symtabs): Likewise.
1801 (dw2_expand_symtabs_with_fullname): Likewise.
1802 (dw2_expand_marked_cus): Replace index and objfile parameters
1803 with dwarf2_per_objfile.
1804 (dw_expand_symtabs_matching_file_matcher): Add
1805 dwarf2_per_objfile parameter and adjust calls.
1806 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
1807 adjust calls.
1808 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
1809 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
1810 adjust calls.
1811 (create_cus_from_debug_names_list): Replace objfile parameter
1812 with dwarf2_per_objfile and adjust calls.
1813 (create_cus_from_debug_names): Likewise.
1814 (dwarf2_read_debug_names): Likewise.
1815 (mapped_debug_names::namei_to_name): Adjust call.
1816 (dw2_debug_names_iterator::next): Likewise.
1817 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
1818 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
1819 (dw2_debug_names_dump): Likewise.
1820 (dw2_debug_names_expand_symtabs_for_function): Likewise.
1821 (dw2_debug_names_expand_symtabs_matching): Likewise.
1822 (dwarf2_initialize_objfile): Likewise.
1823 (dwarf2_build_psymtabs): Likewise.
1824 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
1825 this_cu.
1826 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
1827 (read_and_check_comp_unit_head): Likewise.
1828 (read_abbrev_offset): Likewise.
1829 (create_debug_type_hash_table): Likewise.
1830 (create_debug_types_hash_table): Likewise.
1831 (create_all_type_units): Replace objfile parameter with
1832 dwarf2_per_objfile.
1833 (add_type_unit): Add dwarf2_per_objfile parameter.
1834 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
1835 with dwarf2_per_objfile.
1836 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
1837 (lookup_dwp_signatured_type): Likewise.
1838 (lookup_signatured_type): Likewise.
1839 (read_cutu_die_from_dwo): Likewise.
1840 (init_tu_and_read_dwo_dies): Likewise.
1841 (init_cutu_and_read_dies): Likewise.
1842 (init_cutu_and_read_dies_no_follow): Likewise.
1843 (allocate_type_unit_groups_table): Add objfile parameter.
1844 (create_type_unit_group): Use dwarf2_per_objfile from cu.
1845 (get_type_unit_group): Likewise.
1846 (process_psymtab_comp_unit): Update call.
1847 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
1848 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
1849 (print_tu_stats): Likewise.
1850 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
1851 in void* parameter.
1852 (build_type_psymtabs): Change objfile parameter to
1853 dwarf2_per_objfile.
1854 (process_skeletonless_type_unit): Use dwarf2_per_objfile
1855 passed in void* parameter.
1856 (process_skeletonless_type_units): Change objfile parameter to
1857 dwarf2_per_objfile.
1858 (set_partial_user): Likewise.
1859 (dwarf2_build_psymtabs_hard): Likewise.
1860 (read_comp_units_from_section): Likewise.
1861 (create_all_comp_units): Likewise.
1862 (scan_partial_symbols): Update calls.
1863 (add_partial_symbol): Likewise.
1864 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
1865 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
1866 (process_queue): Add dwarf2_per_objfile parameter.
1867 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
1868 (compute_compunit_symtab_includes): Likewise.
1869 (process_cu_includes): Add dwarf2_per_objfile parameter.
1870 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
1871 (process_full_type_unit): Likewise.
1872 (process_imported_unit_die): Update call.
1873 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
1874 (read_file_scope): Likewise.
1875 (allocate_dwo_file_hash_table): Add objfile parameter.
1876 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
1877 (create_cus_hash_table): Likewise.
1878 (create_dwp_hash_table): Likewise.
1879 (create_dwo_unit_in_dwp_v1): Likewise.
1880 (create_dwp_v2_section): Likewise.
1881 (create_dwo_unit_in_dwp_v2): Likewise.
1882 (lookup_dwo_unit_in_dwp): Likewise.
1883 (try_open_dwop_file): Likewise.
1884 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
1885 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
1886 cleanup to include a reference to dwarf2_per_objfile.
1887 (open_dwp_file): Add dwarf2_per_objfile parameter.
1888 (open_and_init_dwp_file): Likewise.
1889 (get_dwp_file): Likewise.
1890 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
1891 (queue_and_load_all_dwo_tus): Update call.
1892 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
1893 data.
1894 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
1895 (dwarf2_ranges_process): Likewise.
1896 (dwarf2_get_pc_bounds): Likewise.
1897 (mark_common_block_symbol_computed): Likewise.
1898 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1899 (dwarf2_read_abbrevs): Update call.
1900 (read_partial_die): Use dwarf2_per_objfile from cu.
1901 (find_partial_die): Likewise.
1902 (fixup_partial_die): Likewise.
1903 (read_attribute_value): Likewise.
1904 (read_indirect_string_at_offset_from): Add objfile parameter.
1905 (read_indirect_string_at_offset): Add dwarf2_per_objfile
1906 parameter.
1907 (read_indirect_string_from_dwz): Add objfile parameter.
1908 (read_indirect_string): Add objfile parameter.
1909 (read_addr_index_1): Add dwarf2_per_objfile parameter.
1910 (read_addr_index): Use dwarf2_per_objfile from cu.
1911 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
1912 call dw2_setup.
1913 (read_str_index): Use dwarf2_per_objfile from cu.
1914 (get_debug_line_section): Likewise.
1915 (read_formatted_entries): Add dwarf2_per_objfile parameter.
1916 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
1917 (new_symbol_full): Use dwarf2_per_objfile from cu.
1918 (build_error_marker_type): Likewise.
1919 (lookup_die_type): Likewise.
1920 (determine_prefix): Likewise.
1921 (follow_die_offset): Likewise.
1922 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
1923 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
1924 (dwarf2_fetch_die_type_sect_off): Likewise.
1925 (dwarf2_get_die_type): Likewise.
1926 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
1927 (get_signatured_type): Likewise.
1928 (get_DW_AT_signature_type): Likewise.
1929 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
1930 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
1931 (cu_debug_loc_section): Likewise.
1932 (fill_in_loclist_baton): Likewise.
1933 (dwarf2_symbol_mark_computed): Likewise.
1934 (dwarf2_find_containing_comp_unit): Change objfile parameter to
1935 dwarf2_per_objfile.
1936 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
1937 parameter.
1938 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1939 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
1940 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
1941 (set_die_type): Use dwarf2_free_objfile from cu.
1942 (get_die_type_at_offset): Likewise.
1943 (dwarf2_per_objfile_free): Don't assign global variable.
1944 (debug_names) <constructor>: Add dwarf2_per_objfile
1945 parameter, update m_debugstrlookup construction.
1946 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
1947 parameter.
1948 <m_dwarf2_per_objfile>: New field.
1949 <lookup>: Use m_dwarf2_per_objfile.
1950 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
1951 (psyms_seen_size): Likewise.
1952 (write_gdbindex): Replace objfile parameter with
1953 dwarf2_per_objfile.
1954 (write_debug_names): Likewise.
1955 (write_psymtabs_to_index): Likewise.
1956 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
1957 calls.
1958
e3b94546
SM
19592018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1960
1961 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
1962 <dwarf2_per_objfile>: New field.
1963 (struct dwarf2_per_cu_data) <objfile>: Remove.
1964 <dwarf2_per_objfile>: New field.
1965 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
1966 of objfile.
1967 (create_signatured_type_table_from_index): Likewise.
1968 (create_debug_type_hash_table): Likewise.
1969 (fill_in_sig_entry_from_dwo_entry): Likewise.
1970 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
1971 (create_type_unit_group): Assign dwarf2_per_objfile instead of
1972 objfile.
1973 (create_partial_symtab): Access objfile through
1974 dwarf2_per_objfile.
1975 (process_psymtab_comp_unit_reader): Likewise.
1976 (read_comp_units_from_section): Likewise.
1977 (scan_partial_symbols): Likewise.
1978 (add_partial_symbol): Likewise.
1979 (add_partial_subprogram): Likewise.
1980 (peek_die_abbrev): Likewise.
1981 (fixup_go_packaging): Likewise.
1982 (process_full_comp_unit): Likewise.
1983 (process_full_type_unit): Likewise.
1984 (process_imported_unit_die): Likewise.
1985 (dwarf2_compute_name): Likewise.
1986 (dwarf2_physname): Likewise.
1987 (read_import_statement): Likewise.
1988 (create_cus_hash_table): Assign dwarf2_physname instead of
1989 objfile.
1990 (read_func_scope): Access objfile through dwarf2_per_objfile.
1991 (read_lexical_block_scope): Likewise.
1992 (read_call_site_scope): Likewise.
1993 (read_variable): Likewise.
1994 (dwarf2_rnglists_process): Likewise.
1995 (dwarf2_ranges_process): Likewise.
1996 (dwarf2_ranges_read): Likewise.
1997 (dwarf2_record_block_ranges): Likewise.
1998 (dwarf2_add_field): Likewise.
1999 (dwarf2_add_member_fn): Likewise.
2000 (read_structure_type): Likewise.
2001 (process_structure_scope): Likewise.
2002 (read_enumeration_type): Likewise.
2003 (read_array_type): Likewise.
2004 (read_common_block): Likewise.
2005 (read_namespace_type): Likewise.
2006 (read_namespace): Likewise.
2007 (read_module_type): Likewise.
2008 (read_tag_pointer_type): Likewise.
2009 (read_tag_ptr_to_member_type): Likewise.
2010 (read_tag_string_type): Likewise.
2011 (read_subroutine_type): Likewise.
2012 (read_typedef): Likewise.
2013 (read_base_type): Likewise.
2014 (attr_to_dynamic_prop): Likewise.
2015 (read_subrange_type): Likewise.
2016 (read_unspecified_type): Likewise.
2017 (load_partial_dies): Likewise.
2018 (read_partial_die): Likewise.
2019 (find_partial_die): Likewise.
2020 (guess_partial_die_structure_name): Likewise.
2021 (fixup_partial_die): Likewise.
2022 (read_attribute_value): Likewise.
2023 (read_addr_index_from_leb128): Likewise.
2024 (dwarf2_read_addr_index): Likewise.
2025 (dwarf2_string_attr): Likewise.
2026 (lnp_state_machine::check_line_address): Likewise.
2027 (dwarf_decode_lines_1): Likewise.
2028 (dwarf_decode_lines): Likewise.
2029 (dwarf2_start_symtab): Likewise.
2030 (var_decode_location): Likewise.
2031 (new_symbol_full): Likewise.
2032 (dwarf2_const_value_data): Likewise.
2033 (dwarf2_const_value_attr): Likewise.
2034 (dwarf2_const_value): Likewise.
2035 (die_type): Likewise.
2036 (die_containing_type): Likewise.
2037 (lookup_die_type): Likewise.
2038 (guess_full_die_structure_name): Likewise.
2039 (anonymous_struct_prefix): Likewise.
2040 (dwarf2_name): Likewise.
2041 (follow_die_ref_or_sig): Likewise.
2042 (follow_die_offset): Likewise.
2043 (follow_die_ref): Likewise.
2044 (dwarf2_fetch_die_loc_sect_off): Likewise.
2045 (dwarf2_fetch_constant_bytes): Likewise.
2046 (dwarf2_fetch_die_type_sect_off): Likewise.
2047 (dwarf2_get_die_type): Likewise.
2048 (follow_die_sig): Likewise.
2049 (decode_locdesc): Likewise.
2050 (dwarf2_per_cu_objfile): Likewise.
2051 (dwarf2_per_cu_text_offset): Likewise.
2052 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
2053 objfile.
2054 (set_die_type): Access objfile through
2055 dwarf2_per_objfile.
2056
b01ba14d
SM
20572018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2058
2059 * valprint.c (converted_character_d): Remove typedef.
2060 (DEF_VEC_O (converted_character_d)): Remove.
2061 (count_next_character): Use std::vector.
2062 (print_converted_chars_to_obstack): Likewise.
2063 (generic_printstr): Likewise.
2064
4d0fdd9b
SM
20652018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 * xml-support.h (struct gdb_xml_value): Add constructor.
2068 <value>: Change type to unique_xmalloc_ptr.
2069 (gdb_xml_value_s): Remove typedef.
2070 (DEF_VEC_O (gdb_xml_value_s)): Remove.
2071 (gdb_xml_element_start_handler): Change parameter type to
2072 std::vector.
2073 (xml_find_attribute): Likewise.
2074 * xml-support.c (xml_find_attribute): Change parameter type to
2075 std::vector and adjust.
2076 (gdb_xml_values_cleanup): Remove.
2077 (gdb_xml_parser::start_element): Adjust to std::vector.
2078 (xinclude_start_include): Change paraeter type to std::vector
2079 and adjust.
2080 * btrace.c (check_xml_btrace_version): Likewise.
2081 (parse_xml_btrace_block): Likewise.
2082 (parse_xml_btrace_pt_config_cpu): Likewise.
2083 (parse_xml_btrace_pt): Likewise.
2084 (parse_xml_btrace_conf_bts): Likewise.
2085 (parse_xml_btrace_conf_pt): Likewise.
2086 * memory-map.c (memory_map_start_memory): Likewise.
2087 (memory_map_start_property): Likewise.
2088 * osdata.c (osdata_start_osdata): Likewise.
2089 (osdata_start_item): Likewise.
2090 (osdata_start_column): Likewise.
2091 * remote.c (start_thread): Likewise.
2092 * solib-aix.c (library_list_start_library): Likewise.
2093 (library_list_start_list): Likewise.
2094 * solib-svr4.c (library_list_start_library): Likewise.
2095 (svr4_library_list_start_list): Likewise.
2096 * solib-target.c (library_list_start_segment): Likewise.
2097 (library_list_start_section): Likewise.
2098 (library_list_start_library): Likewise.
2099 (library_list_start_list): Likewise.
2100 * tracepoint.c (traceframe_info_start_memory): Likewise.
2101 (traceframe_info_start_tvar): Likewise.
2102 * xml-syscall.c (syscall_start_syscall): Likewise.
2103 * xml-tdesc.c (tdesc_start_target): Likewise.
2104 (tdesc_start_feature): Likewise.
2105 (tdesc_start_reg): Likewise.
2106 (tdesc_start_union): Likewise.
2107 (tdesc_start_struct): Likewise.
2108 (tdesc_start_flags): Likewise.
2109 (tdesc_start_enum): Likewise.
2110 (tdesc_start_field): Likewise.
2111 (tdesc_start_enum_value): Likewise.
2112 (tdesc_start_vector): Likewise.
2113
f979c73f
SM
21142018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2115
2116 * extension.h (struct xmethod_worker) <clone>: Remove.
2117 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
2118 Remove.
2119 (python_xmethod_worker::clone): Remove.
2120 * valops.c (find_overload_match): Use std::move instead of
2121 clone.
2122
ba18742c
SM
21232018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2124
2125 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
2126 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
2127 <free_xmethod_worker_data>: Remove.
2128 <get_matching_xmethod_workers>: Chance VEC to std::vector.
2129 <get_xmethod_arg_types>: Remove.
2130 <get_xmethod_result_type>: Remove.
2131 <invoke_xmethod>: Remove.
2132 * extension.c (new_xmethod_worker): Remove.
2133 (clone_xmethod_worker): Remove.
2134 (get_matching_xmethod_workers): Return void, pass std::vector by
2135 pointer.
2136 (get_xmethod_arg_types): Rename to...
2137 (xmethod_worker::get_arg_types): ... this, and adjust.
2138 (get_xmethod_result_type): Rename to...
2139 (xmethod_worker::get_result_type): ... this, and adjust.
2140 (invoke_xmethod): Remove.
2141 (free_xmethod_worker): Remove.
2142 (free_xmethod_worker_vec): Remove.
2143 * extension.h (enum ext_lang_rc): Move here from
2144 extension-priv.h.
2145 (struct xmethod_worker): Add constructor and destructor.
2146 <data>: Remove.
2147 <value>: Remove.
2148 <invoke, clone, do_get_result_type, do_get_arg_types>: New
2149 virtual pure methods.
2150 <get_arg_types, get_result_type>: New methods.
2151 (xmethod_worker_ptr): Remove typedef.
2152 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
2153 (xmethod_worker_vec): Remove typedef.
2154 (xmethod_worker_up): New typedef.
2155 (invoke_xmethod): Remove.
2156 (clone_xmethod_worker): Remove.
2157 (free_xmethod_worker): Remove.
2158 (free_xmethod_worker_vec): Remove.
2159 (get_xmethod_arg_types): Remove.
2160 (get_xmethod_result_type): Remove.
2161 * valops.c (find_method_list): Use std::vector, don't use
2162 intermediate vector.
2163 (value_find_oload_method_list): Use std::vector.
2164 (find_overload_match): Use std::vector.
2165 (find_oload_champ): Use std::vector.
2166 * value.c (value_free): Use operator delete.
2167 (value_of_xmethod): Rename to...
2168 (value_from_xmethod): ... this. Don't assign
2169 xmethod_worker::value, take rvalue-reference.
2170 (result_type_of_xmethod): Adjust.
2171 (call_xmethod): Adjust.
2172 * value.h: Include extension.h.
2173 (struct xmethod_worker): Don't forward-declare.
2174 (value_of_xmethod): Rename to...
2175 (value_from_xmethod): ... this, take rvalue-reference.
2176 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
2177 (struct python_xmethod_worker): ... this, add constructor and
2178 destructor.
2179 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
2180 (gdbpy_free_xmethod_worker_data): Rename to...
2181 (python_xmethod_worker::~python_xmethod_worker): ... this and
2182 adjust.
2183 (gdbpy_clone_xmethod_worker_data): Rename to...
2184 (python_xmethod_worker::clone): ... this and adjust.
2185 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
2186 temporary vector.
2187 (gdbpy_get_xmethod_arg_types): Rename to...
2188 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
2189 (gdbpy_get_xmethod_result_type): Rename to...
2190 (python_xmethod_worker::do_get_result_type): ... this and
2191 adjust.
2192 (gdbpy_invoke_xmethod): Rename to...
2193 (python_xmethod_worker::invoke): ... this and adjust.
2194 (new_python_xmethod_worker): Rename to...
2195 (python_xmethod_worker::python_xmethod_worker): ... this and
2196 adjust.
2197 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
2198 Remove.
2199 (gdbpy_free_xmethod_worker_data): Remove.
2200 (gdbpy_get_matching_xmethod_workers): Use std::vector.
2201 (gdbpy_get_xmethod_arg_types): Remove.
2202 (gdbpy_get_xmethod_result_type): Remove.
2203 (gdbpy_invoke_xmethod): Remove.
2204 * python/python.c (python_extension_ops): Remove obsolete
2205 callbacks.
2206
e379cee6
PA
22072018-01-05 Pedro Alves <palves@redhat.com>
2208
2209 PR gdb/18653
2210 * common/signals-state-save-restore.c
2211 (save_original_signals_state): New parameter 'quiet'. Warn if we
2212 find a custom handler preinstalled, instead of internal erroring.
2213 But only warn if !quiet.
2214 * common/signals-state-save-restore.h
2215 (save_original_signals_state): New parameter 'quiet'.
2216 * main.c (captured_main_1): Move save_original_signals_state call
2217 after option handling, and pass QUIET.
2218
a655456c
PA
22192018-01-05 Pedro Alves <palves@redhat.com>
2220
2221 * spu-tdep.c (spu_catch_start): Pass
2222 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
2223
de63c46b
PA
22242018-01-05 Pedro Alves <palves@redhat.com>
2225
2226 PR gdb/22670
2227 * ada-lang.c (literal_symbol_name_matcher): New function.
2228 (ada_get_symbol_name_matcher): Use it for
2229 symbol_name_match_type::SEARCH_NAME.
2230 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
2231 it down instead of assuming symbol_name_match_type::FULL.
2232 * block.h (block_lookup_symbol): New parameter 'match_type'.
2233 * c-valprint.c (print_unpacked_pointer): Use
2234 lookup_symbol_search_name instead of lookup_symbol.
2235 * compile/compile-object-load.c (get_out_value_type): Pass down
2236 symbol_name_match_type::SEARCH_NAME.
2237 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
2238 symbol_name_match_type::FULL.
2239 * cp-support.c (cp_get_symbol_name_matcher): Handle
2240 symbol_name_match_type::SEARCH_NAME.
2241 * infrun.c (insert_exception_resume_breakpoint): Use
2242 lookup_symbol_search_name.
2243 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
2244 * psymtab.c (maintenance_check_psymtabs): Use
2245 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
2246 * stack.c (print_frame_args): Use lookup_symbol_search_name and
2247 SYMBOL_SEARCH_NAME.
2248 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
2249 if symbol_name_match_type::SEARCH_NAME.
2250 (lookup_symbol_in_language): Pass down
2251 symbol_name_match_type::FULL.
2252 (lookup_symbol_search_name): New.
2253 (lookup_language_this): Pass down
2254 symbol_name_match_type::SEARCH_NAME.
2255 (lookup_symbol_aux, lookup_local_symbol): New parameter
2256 'match_type'. Pass it down.
2257 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
2258 (lookup_symbol_search_name): New declaration.
2259 (lookup_symbol_in_block): New 'match_type' parameter.
2260
f98fc17b
PA
22612018-01-05 Pedro Alves <palves@redhat.com>
2262
2263 PR gdb/22670
2264 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
2265 ada_lookup_symbol.
2266 (ada_lookup_symbol): Reimplement in terms of
2267 ada_lookup_symbol_list, bits factored out from
2268 ada_lookup_encoded_symbol.
2269
342f8240
JB
22702018-01-05 Joel Brobecker <brobecker@adacore.com>
2271
2272 * ada-exp.y (write_object_renaming): When subscripting an array
2273 using a symbol as the index, pass the block in call to
2274 ada_lookup_encoded_symbol when looking that symbol up.
2275
7150d33c
JG
22762018-01-05 Jerome Guitton <guitton@adacore.com>
2277
2278 * ada-lang.c (ada_array_length): Use ada_index_type instead of
2279 TYPE_INDEX_TYPE.
2280
cc0e770c
JB
22812018-01-05 Joel Brobecker <brobecker@adacore.com>
2282
2283 * ada-lang.c (ada_to_fixed_value_create): Add handling of
2284 the case where VALUE_LVAL (val0) is not lval_memory.
2285
f79da888 22862018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
2287
2288 * ada-valprint.c (print_optional_low_bound): Handle
2289 character-indexed array printing like boolean-indexed array
2290 printing.
2291
cd385f94
JB
22922018-01-05 Joel Brobecker <brobecker@adacore.com>
2293
2294 * NEWS: Create a new section for the next release branch.
2295 Rename the section of the current branch, now that it has
2296 been cut.
2297
09aca949
JB
22982018-01-05 Joel Brobecker <brobecker@adacore.com>
2299
2300 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
2301 * version.in: Bump version to 8.1.50.DATE-git.
2302
9f757bf7
XR
23032018-01-03 Xavier Roirand <roirand@adacore.com>
2304
2305 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
2306 Add field.
2307 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
2308 Add field.
2309 (default_exception_support_info) <catch_handlers_sym>: Add field.
2310 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
2311 (ada_exception_name_addr_1): Add "catch handlers" handling.
2312 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
2313 Update all callers.
2314 (create_excep_cond_exprs) <ex>: Add parameter.
2315 (re_set_exception): Update create_excep_cond_exprs call.
2316 (print_it_exception, print_one_exception, print_mention_exception)
2317 (print_recreate_exception): Add "catch handler" handling.
2318 (allocate_location_catch_handlers, re_set_catch_handlers)
2319 (check_status_catch_handlers, print_it_catch_handlers)
2320 (print_one_catch_handlers, print_mention_catch_handlers)
2321 (print_recreate_catch_handlers): New function.
2322 (catch_handlers_breakpoint_ops): New variable.
2323 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
2324 Add parameter. Add "catch handler" handling.
2325 (ada_exception_sym_name, ada_exception_breakpoint_ops):
2326 Add "catch handler" handling.
2327 (ada_exception_catchpoint_cond_string): Add "catch handler"
2328 handling.
2329 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
2330 call.
2331 (catch_ada_handlers_command): New function.
2332 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
2333 operations structure.
2334 (_initialize_ada_language): Add "catch handlers" command entry.
2335 * NEWS: Document "catch handlers" feature.
2336
9fe561ab
JB
23372018-01-02 Joel Brobecker <brobecker@adacore.com>
2338
2339 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
2340 account when creating the array type of the slice.
2341 (ada_value_slice): Likewise.
2342
a405673c
JB
23432018-01-02 Joel Brobecker <brobecker@adacore.com>
2344
2345 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
2346 New enum value.
2347 (create_array_type_with_stride): Add byte_stride_prop parameter.
2348 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
2349 New parameter. Update all callers in this file.
2350 (array_type_has_dynamic_stride): New function.
2351 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
2352 of arrays with dynamic byte strides.
2353 * dwarf2read.c (read_array_type): Add support for dynamic
2354 DW_AT_byte_stride attributes.
2355
74a2f8ff
JB
23562018-01-02 Joel Brobecker <brobecker@adacore.com>
2357
2358 * dwarf2read.c (read_unspecified_type): Treat
2359 DW_TAG_enumeration_type DIEs from Ada units as stubs.
2360
e2882c85
JB
23612018-01-01 Joel Brobecker <brobecker@adacore.com>
2362
2363 Update copyright year range in all GDB files.
2364
1690bb24
JB
23652018-01-01 Joel Brobecker <brobecker@adacore.com>
2366
2367 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
2368 and gdb/testsuite/gdb.base/step-line.c.
2369
0f0c98a8
JB
23702018-01-01 Joel Brobecker <brobecker@adacore.com>
2371
2372 * copyright.py (main): Dump the contents of
2373 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
2374 even if BY_HAND is empty.
2375
82e1e79a
JB
23762018-01-01 Joel Brobecker <brobecker@adacore.com>
2377
2378 * top.c (print_gdb_version): Update Copyright year in version
2379 message.
2380
053f54e5 23812018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 2382
053f54e5 2383 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 2384
053f54e5 2385For older changes see ChangeLog-2017.
c906108c
SS
2386\f
2387Local Variables:
2388mode: change-log
2389left-margin: 8
2390fill-column: 74
2391version-control: never
57da7796 2392coding: utf-8
c906108c 2393End: