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