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