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