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