Commit | Line | Data |
---|---|---|
6e562fa3 PFC |
1 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
2 | ||
3 | * ppc-linux-nat.c (ppc_linux_dreg_interface::detect) | |
4 | (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0 | |
5 | and >= to check return value instead of == -1 and != -1. | |
6 | ||
d369b608 SM |
7 | 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca> |
8 | ||
9 | * utils.h (class gdb_argv) <as_array_view>: New method. | |
10 | * utils.c (gdb_argv_as_array_view_test): New. | |
11 | (_initialize_utils): Register selftest. | |
12 | * maint.c (maintenance_selftest): Use the new method. | |
13 | ||
b31488a3 KR |
14 | 2020-08-13 Kamil Rytarowski <n54@gmx.com> |
15 | ||
16 | * target.h (supports_dumpcore, dumpcore): New | |
17 | function declarations. | |
18 | * target.c (supports_dumpcore, dumpcore): New | |
19 | functions. | |
20 | * target-delegates.c: Rebuild. | |
21 | * gcore.c (gcore_command): Use target_supports_dumpcore () | |
22 | and target_dumpcore (). | |
23 | ||
002a3166 AM |
24 | 2020-08-13 Aaron Merey <amerey@redhat.com> |
25 | ||
26 | * debuginfod-support.c: Replace global variables with user_data. | |
27 | ||
ece5bc8a SM |
28 | 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca> |
29 | ||
30 | * maint.c (maintenance_selftest): Split args and pass array_view | |
31 | to run_tests. | |
32 | ||
6d8a0a5e LM |
33 | 2020-08-12 Luis Machado <luis.machado@linaro.org> |
34 | ||
35 | * value.c (check_type_length_before_alloc): Use ULONGEST to store a | |
36 | type's length. | |
37 | Use %s and pulongest to print the length. | |
38 | ||
7cf663a9 PA |
39 | 2020-08-12 Pedro Alves <palves@redhat.com> |
40 | ||
41 | * NEWS: Move "Multi-target debugging support" item to the | |
42 | "Changes since GDB 9" section. | |
43 | ||
27c7b875 PA |
44 | 2020-08-12 Pedro Alves <palves@redhat.com> |
45 | ||
46 | PR gdb/26336 | |
47 | * progspace.c (program_space::remove_objfile): Invalidate the | |
48 | frame cache. | |
49 | ||
1796a2a1 TV |
50 | 2020-08-11 Tom de Vries <tdevries@suse.de> |
51 | ||
52 | * MAINTAINERS: Mark ms1 as deleted. | |
53 | ||
f8e3fe0d LM |
54 | 2020-08-10 Luis Machado <luis.machado@linaro.org> |
55 | ||
56 | PR gdb/26310 | |
57 | ||
58 | * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and | |
59 | act accordingly. | |
60 | (aarch64_analyze_prologue_test): Add more unit tests to exercise | |
61 | movz/str/stur/stp skipping behavior. | |
62 | ||
cc308722 LM |
63 | 2020-08-10 Luis Machado <luis.machado@linaro.org> |
64 | ||
65 | * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use | |
66 | struct user_sve_header instead of struct sve_context. | |
67 | ||
041d9819 SM |
68 | 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca> |
69 | ||
70 | * read.h (dwarf2_fetch_die_loc_sect_off, | |
71 | dwarf2_fetch_die_loc_cu_off): Replace function pointer + | |
72 | `void *` parameter with function_view. | |
73 | * read.c (dwarf2_fetch_die_loc_sect_off, | |
74 | dwarf2_fetch_die_loc_cu_off): Likewise. | |
75 | * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove. | |
76 | (per_cu_dwarf_call): Adjust. | |
77 | (get_frame_address_in_block_wrapper): Remove. | |
78 | (indirect_synthetic_pointer): Adjust. | |
79 | (get_ax_pc): Remove. | |
80 | (dwarf2_compile_expr_to_ax): Adjust. | |
81 | ||
38f8aa06 TV |
82 | 2020-08-08 Tom de Vries <tdevries@suse.de> |
83 | ||
84 | PR build/26344 | |
85 | * arch/riscv.c (riscv_lookup_target_description): Use an explicit | |
86 | constructor. | |
87 | * regcache.c (get_thread_arch_aspace_regcache): Same. | |
88 | ||
a52b3ae2 TT |
89 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
90 | ||
91 | * ravenscar-thread.c | |
92 | (ravenscar_thread_target::set_base_thread_from_ravenscar_task): | |
93 | New method. | |
94 | (ravenscar_thread_target::wait): Check | |
95 | runtime_initialized. | |
96 | (ravenscar_thread_target::prepare_to_store) | |
97 | (ravenscar_thread_target::stopped_by_sw_breakpoint) | |
98 | (ravenscar_thread_target::stopped_by_hw_breakpoint) | |
99 | (ravenscar_thread_target::stopped_by_watchpoint) | |
100 | (ravenscar_thread_target::stopped_data_address) | |
101 | (ravenscar_thread_target::core_of_thread): Use | |
102 | scoped_restore_current_thread and | |
103 | set_base_thread_from_ravenscar_task. | |
104 | ||
0e29517d TT |
105 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
106 | ||
107 | * ravenscar-thread.c (update_thread_list): Set inferior_ptid. | |
108 | ||
592f9bd7 TT |
109 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
110 | ||
111 | * ravenscar-thread.c (ravenscar_thread_target::wait): Call | |
112 | update_inferior_ptid before update_thread_list. | |
113 | (temporarily_change_regcache_ptid): New class. | |
114 | (ravenscar_thread_target::fetch_registers) | |
115 | (ravenscar_thread_target::store_registers) | |
116 | (ravenscar_thread_target::prepare_to_store): Use base thread when | |
117 | forwarding operation. | |
118 | ||
39e2018a TT |
119 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
120 | ||
121 | * ravenscar-thread.c (ravenscar_thread_target::resume): Handle | |
122 | "is_pid" case. | |
123 | ||
2080266b TT |
124 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
125 | ||
126 | * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread): | |
127 | New methods. | |
128 | (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map | |
129 | first. | |
130 | (ravenscar_thread_target::add_thread): Rename from | |
131 | ravenscar_add_thread. | |
132 | (ravenscar_thread_target::update_thread_list): Use a lambda. | |
133 | (ravenscar_thread_target::xfer_partial): New method. | |
134 | ||
78c02f21 TT |
135 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
136 | ||
137 | * ada-lang.h (ada_task_list_iterator_ftype): Now a | |
138 | gdb::function_view. | |
139 | (iterate_over_live_ada_tasks): Change type of argument. | |
140 | * ada-tasks.c (iterate_over_live_ada_tasks): Change type | |
141 | of argument. | |
142 | ||
d5d833af TT |
143 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
144 | ||
145 | * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>: | |
146 | Remove. | |
147 | (ravenscar_thread_target::extra_thread_info): Remove. | |
148 | (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result; | |
149 | defer to target beneath for non-Ravenscar threads. | |
150 | ||
a8ac85bb TT |
151 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
152 | ||
153 | * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu, | |
154 | get_base_thread_from_ravenscar_task>: Now methods. | |
155 | <m_cpu_map>: New member. | |
156 | (ravenscar_thread_target::get_thread_base_cpu): Rename from | |
157 | ravenscar_get_thread_base_cpu. Check m_cpu_map. | |
158 | (ravenscar_thread_target::task_is_currently_active): Update. | |
159 | (ravenscar_thread_target::get_base_thread_from_ravenscar_task): | |
160 | Now a method. | |
161 | (ravenscar_thread_target::add_active_thread): Put initial thread | |
162 | into the m_cpu_map. | |
163 | ||
550ab58d TT |
164 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
165 | ||
166 | * ravenscar-thread.c (ravenscar_thread_target::wait): Return | |
167 | event_ptid. | |
168 | ||
e9546579 TT |
169 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
170 | ||
171 | * ravenscar-thread.c (ravenscar_thread_target::wait): Check | |
172 | runtime_initialized. | |
173 | ||
3d4470e5 TT |
174 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
175 | ||
176 | * ravenscar-thread.c (ravenscar_thread_target): Don't call | |
177 | add_active_thread. | |
178 | (ravenscar_thread_target::add_active_thread): Now public. | |
179 | (ravenscar_inferior_created): Call add_active_thread after pushing | |
180 | the target. | |
181 | ||
888bdb2b SM |
182 | 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca> |
183 | ||
184 | * regcache.c (ptid_regcache_map): New type. | |
185 | (target_ptid_regcache_map): New type. | |
186 | (regcaches): Change type to target_ptid_regcache_map. | |
187 | (get_thread_arch_aspace_regcache): Update to regcaches' new | |
188 | type. | |
189 | (regcache_thread_ptid_changed): Likewise. | |
190 | (registers_changed_ptid): Likewise. | |
191 | (regcaches_size): Likewise. | |
192 | (regcaches_test): Update. | |
193 | (regcache_thread_ptid_changed): Update. | |
194 | * regcache.h (regcache_up): New type. | |
195 | * gdbsupport/ptid.h (hash_ptid): New struct. | |
196 | ||
b161a60d SM |
197 | 2020-08-07 Simon Marchi <simon.marchi@efficios.com> |
198 | ||
199 | * observable.h (thread_ptid_changed): Add parameter | |
200 | `process_stratum_target *`. | |
201 | * infrun.c (infrun_thread_ptid_changed): Add parameter | |
202 | `process_stratum_target *` and use it. | |
203 | (selftests): New namespace. | |
204 | (infrun_thread_ptid_changed): New function. | |
205 | (_initialize_infrun): Register selftest. | |
206 | * regcache.c (regcache_thread_ptid_changed): Add parameter | |
207 | `process_stratum_target *` and use it. | |
208 | (regcache_thread_ptid_changed): New function. | |
209 | (_initialize_regcache): Register selftest. | |
210 | * thread.c (thread_change_ptid): Pass target to | |
211 | thread_ptid_changed observable. | |
212 | ||
d2854d8d CT |
213 | 2020-08-06 Caroline Tice <cmtice@google.com> |
214 | ||
fe4c3d43 SM |
215 | * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field. |
216 | (struct dwp_sections): Update field comments. Add loclists and | |
217 | rnglists fields. | |
218 | (struct virtual_v2_dwo_sections): Rename struct to | |
219 | 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add | |
220 | size & offset fields for loclists and rnglists. | |
221 | (struct dwp_hash_table): Add a 'v5' struct field to the union section. | |
222 | (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for | |
223 | skipping dummy type units. | |
224 | (create_dwp_hash_table): Update the large comment above the function to | |
225 | discuss Version 5 DWP files as well, with references. Update all the | |
226 | version checks in the function to check for version 5 as well. Add new | |
227 | section at the end to create dwp hash table for version 5. | |
228 | (create_dwp_v2_section): Rename function to | |
229 | 'create_dwp_v2_or_v5_section'. Update function comment appropriately. | |
230 | Add V5 to error message text. | |
231 | (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section | |
232 | into calls to create_dwp_v2_or_v5_section. | |
233 | (create_dwo_unit_in_dwp_v5): New function. | |
234 | (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly | |
235 | check for version2; add else clause to handle version 5. | |
236 | (open_and_init_dwo_file): Add code to check dwarf version & only call | |
237 | create_debug_types_hash_table (with sections.types) if version is not 5; | |
238 | else call create_debug_type_hash_table, with sections.info. | |
239 | (dwarf2_locate_v2_dwp_sections): Update function comment to mention | |
240 | version 5. | |
241 | (dwarf2_locate_v5_dwp_sections): New function. | |
242 | (open_and_init_dwp_file): Add else-if clause for version 5 to call | |
243 | bfd_map_over_sections with dwarf2_locate_v5_dwp_sections. | |
d2854d8d | 244 | |
159ed7d9 SM |
245 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> |
246 | ||
247 | * regcache.h (class regcache): Remove friend | |
248 | registers_changed_ptid. | |
249 | <regcache_thread_ptid_changed>: Remove. | |
250 | <regcaches>: Remove. | |
251 | * regcache.c (regcache::regcaches): Rename to... | |
252 | (regcaches): ... this. Make static. | |
253 | (get_thread_arch_aspace_regcache): Update. | |
254 | (regcache::regcache_thread_ptid_changed): Rename to... | |
255 | (regcache_thread_ptid_changed): ... this. Update. | |
256 | (class regcache_access): Remove. | |
257 | (regcaches_test): Update. | |
258 | (_initialize_regcache): Update. | |
259 | * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include | |
260 | <forward_list>. | |
261 | ||
174981ae SM |
262 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> |
263 | ||
264 | * regcache.h (class regcache) <current_regcache>: Rename to... | |
265 | <regcaches>: ... this. Move doc here. | |
266 | * regcache.c (regcache::current_regcache) Rename to... | |
267 | (regcache::regcaches): ... this. Move doc to header. | |
268 | (get_thread_arch_aspace_regcache): Update. | |
269 | (regcache::regcache_thread_ptid_changed): Update. | |
270 | (registers_changed_ptid): Update. | |
271 | (class regcache_access) <current_regcache_size>: Rename to... | |
272 | <regcaches_size>: ... this. | |
273 | (current_regcache_test): Rename to... | |
274 | (regcaches_test): ... this. | |
275 | (_initialize_regcache): Update. | |
276 | ||
ed908db6 VC |
277 | 2020-08-06 Victor Collod <vcollod@nvidia.com> |
278 | ||
279 | * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment. | |
280 | ||
b5582ab7 KB |
281 | 2020-08-05 Kevin Buettner <kevinb@redhat.com> |
282 | ||
283 | * corelow.c (core_target::build_file_mappings): Don't output | |
284 | null pathname in warning. | |
285 | ||
ea946b86 SM |
286 | 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca> |
287 | ||
288 | * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp, | |
289 | gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp, | |
290 | gdb.dwarf2/dw2-single-line-discriminators.exp, | |
291 | dw2-undefined-ret-addr.exp: Pass nopie to compilation options. | |
292 | ||
57d02173 TT |
293 | 2020-08-05 Tom Tromey <tromey@adacore.com> |
294 | ||
295 | PR rust/26197: | |
296 | * dwarf2/read.c (alloc_rust_variant): Handle univariant case. | |
297 | (quirk_rust_enum): Call alloc_rust_variant for univariant case. | |
298 | Fix off-by-one and type size errors in ordinary case. | |
299 | ||
5555c86d TV |
300 | 2020-08-05 Tom de Vries <tdevries@suse.de> |
301 | ||
302 | * gdbtypes.c (type_not_allocated, type_not_associated): Use | |
303 | "prop->const_val () == 0" instead of "prop->const_val () != 0". | |
304 | ||
97916bfe SM |
305 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> |
306 | ||
307 | * frame.h (frame_id_p): Return bool. | |
308 | (frame_id_artificial_p): Return bool. | |
309 | (frame_id_eq): Return bool. | |
310 | (has_stack_frames): Return bool. | |
311 | (get_selected_frame): Fix typo in comment. | |
312 | (get_frame_pc_if_available): Return bool. | |
313 | (get_frame_address_in_block_if_available): Return bool. | |
314 | (get_frame_func_if_available): Return bool. | |
315 | (read_frame_register_unsigned): Return bool. | |
316 | (get_frame_register_bytes): Return bool. | |
317 | (safe_frame_unwind_memory): Return bool. | |
318 | (deprecated_frame_register_read): Return bool. | |
319 | (frame_unwinder_is): Return bool. | |
320 | * frame.c (struct frame_info) <prev_arch::p>: Change type to | |
321 | bool. | |
322 | <this_id::p>: Likewise. | |
323 | <prev_p>: Likewise. | |
324 | (frame_stash_add): Return bool. | |
325 | (get_frame_id): Use bool. | |
326 | (frame_id_build_special) Use bool. | |
327 | (frame_id_build_unavailable_stack): Use bool. | |
328 | (frame_id_build): Use bool. | |
329 | (frame_id_p): Return bool, use true/false instead of 1/0. | |
330 | (frame_id_artificial_p): Likewise. | |
331 | (frame_id_eq): Likewise. | |
332 | (frame_id_inner): Likewise. | |
333 | (get_frame_func_if_available): Likewise. | |
334 | (read_frame_register_unsigned): Likewise. | |
335 | (deprecated_frame_register_read): Likewise. | |
336 | (get_frame_register_bytes): Likewise. | |
337 | (has_stack_frames): Likewise. | |
338 | (inside_main_func): Likewise. | |
339 | (inside_entry_func): Likewise. | |
340 | (get_frame_pc_if_available): Likewise. | |
341 | (get_frame_address_in_block_if_available): Likewise. | |
342 | (frame_unwinder_is): Likewise. | |
343 | (safe_frame_unwind_memory): Likewise. | |
344 | (frame_unwind_arch): Likewise. | |
345 | ||
fedfee88 SM |
346 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> |
347 | ||
348 | * frame.c (frame_info) <prev_func> <p>: Rename to status, change | |
349 | type to cached_copy_status. | |
350 | (fprintf_frame): Adjust. | |
351 | (get_frame_func_if_available): Adjust. | |
352 | (frame_cleanup_after_sniffer): Adjust. | |
353 | ||
6cfa9b59 MW |
354 | 2020-08-04 Mark Wielaard <mark@klomp.org> |
355 | ||
356 | * MAINTAINERS (Write After Approval): Update email address. | |
357 | ||
66d6346b SM |
358 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
359 | ||
360 | * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with | |
361 | dynamic_prop::const_val. | |
362 | ||
8a6d5e35 SM |
363 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
364 | ||
365 | * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with | |
366 | dynamic_prop::kind. | |
367 | ||
51d6067d SM |
368 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
369 | ||
370 | * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove. | |
371 | ||
b26e2ae7 JM |
372 | 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com> |
373 | ||
374 | * configure.tgt: Set gdb_sim for bpf-*-* targets. | |
375 | ||
39791af2 JM |
376 | 2020-08-04 Weimin Pan <weimin.pan@oracle.com> |
377 | Jose E. Marchesi <jose.marchesi@oracle.com> | |
378 | ||
379 | * configure.tgt: Add entry for bpf-*-*. | |
380 | * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o | |
381 | (ALLDEPFILES): Add bpf-tdep.c. | |
382 | * bpf-tdep.c: New file. | |
383 | * MAINTAINERS: Add bpf target and maintainer. | |
384 | * NEWS: Mention the support for the new target. | |
385 | ||
521894aa TV |
386 | 2020-08-04 Tom de Vries <tdevries@suse.de> |
387 | ||
388 | PR symtab/23270 | |
389 | * dwarf2/read.c (find_partial_die): Change internal error into Dwarf | |
390 | Error. | |
391 | ||
5d6356e9 JB |
392 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> |
393 | ||
394 | * syscalls/freebsd.xml: Regenerate. | |
395 | ||
0cf82b81 JB |
396 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> |
397 | ||
398 | * syscalls/update-freebsd.sh: Fix usage and year range. | |
399 | ||
8f34b746 TV |
400 | 2020-08-03 Tom de Vries <tdevries@suse.de> |
401 | ||
402 | PR symtab/26333 | |
403 | * dwarf2/read.c (dwarf_decode_lines_1): Ignore | |
404 | DW_LNE_lo_user/DW_LNE_hi_user range. | |
405 | ||
5e500d33 SM |
406 | 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca> |
407 | ||
408 | PR ada/26318 | |
409 | * ada-lang.c (ada_modulus): Return 0 if property is not of const | |
410 | kind. | |
411 | ||
78319c15 TBA |
412 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
413 | ||
414 | * breakpoint.c (set_breakpoint_condition): Do minor refactoring. | |
415 | ||
4c55e970 TBA |
416 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
417 | ||
418 | * breakpoint.c (set_breakpoint_condition): Update the condition | |
419 | expressions after checking that the input condition string parses | |
420 | successfully and does not contain junk at the end. | |
421 | ||
1e620590 TBA |
422 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
423 | ||
424 | * breakpoint.c (set_breakpoint_condition): Update the | |
425 | condition string after parsing the new condition successfully. | |
426 | ||
c8693053 RO |
427 | 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
428 | ||
429 | * proc-api.c (_STRUCTURED_PROC): Don't define. | |
430 | * proc-events.c: Likewise. | |
431 | * proc-flags.c: Likewise. | |
432 | * proc-why.c: Likewise. | |
433 | * procfs.c: Likewise. | |
434 | ||
435 | * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS. | |
436 | * configure, config.in: Regenerate. | |
437 | ||
5a99adb8 TV |
438 | 2020-07-30 Tom de Vries <tdevries@suse.de> |
439 | ||
440 | PR build/26320 | |
441 | * ui-style.h (struct ui_file_style::color): Wrap m_value and | |
442 | m_red/m_green/m_blue in a union. | |
443 | ||
8ba83e91 TV |
444 | 2020-07-29 Tom de Vries <tdevries@suse.de> |
445 | ||
446 | PR tdep/26280 | |
447 | * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized. | |
448 | ||
f75a0693 AB |
449 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
450 | ||
451 | PR symtab/26270: | |
452 | * symtab.h (find_pc_partial_function_sym): Declare. | |
453 | * cli/cli-cmds.c (disassemble_command): Use | |
454 | find_pc_partial_function_sym. Check asm_demangle. | |
455 | * blockframe.c (cache_pc_function_sym): New global. | |
456 | (cache_pc_function_name): Remove. | |
457 | (clear_pc_function_cache): Update. | |
458 | (find_pc_partial_function_sym): New function, from | |
459 | find_pc_partial_function. | |
460 | (find_pc_partial_function): Rewrite using | |
461 | find_pc_partial_function_sym. | |
462 | ||
16f3242c TT |
463 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
464 | ||
465 | * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble" | |
466 | help. Add usage. | |
467 | ||
4888741a TT |
468 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
469 | ||
470 | * dwarf2/expr.c (dwarf_expr_context::execute_stack_op) | |
471 | <DW_OP_GNU_variable_value>: Cast to address type. | |
472 | ||
4d46f402 KR |
473 | 2020-07-28 Kamil Rytarowski <n54@gmx.com> |
474 | ||
475 | * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration. | |
476 | * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function. | |
477 | * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data) | |
478 | (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data) | |
479 | (nbsd_get_siginfo_type): New. | |
480 | (nbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
481 | (_initialize_nbsd_tdep): New. | |
482 | ||
d70f978b L |
483 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> |
484 | ||
485 | PR binutils/26301 | |
486 | * configure: Regenerated. | |
487 | ||
377170fa L |
488 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> |
489 | ||
490 | PR binutils/26301 | |
491 | * configure: Regenerated. | |
492 | ||
43d5901d AB |
493 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> |
494 | ||
495 | * python/py-frame.c: Remove 'user-regs.h' include. | |
496 | (frapy_read_register): Rewrite to make use of | |
497 | gdbpy_parse_register_id. | |
498 | * python/py-registers.c (gdbpy_parse_register_id): New function, | |
499 | moved here from python/py-unwind.c. Updated the return type, and | |
500 | also accepts register descriptor objects. | |
501 | * python/py-unwind.c: Remove 'user-regs.h' include. | |
502 | (pyuw_parse_register_id): Moved to python/py-registers.c. | |
503 | (unwind_infopy_add_saved_register): Update to use | |
504 | gdbpy_parse_register_id. | |
505 | (pending_framepy_read_register): Likewise. | |
506 | * python/python-internal.h (gdbpy_parse_register_id): Declare. | |
507 | ||
14fa8fb3 AB |
508 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> |
509 | ||
510 | * python/py-registers.c: Add 'user-regs.h' include. | |
511 | (register_descriptor_iter_find): New function. | |
512 | (register_descriptor_iterator_object_methods): New static global | |
513 | methods array. | |
514 | (register_descriptor_iterator_object_type): Add pointer to methods | |
515 | array. | |
516 | ||
ddce1758 JB |
517 | 2020-07-27 John Baldwin <jhb@FreeBSD.org> |
518 | ||
519 | * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO | |
520 | for all architectures on FreeBSD 11.3 and later. | |
521 | ||
a4089f52 TT |
522 | 2020-07-27 Tom Tromey <tromey@adacore.com> |
523 | ||
524 | * gcore.h (load_corefile): Don't declare. | |
525 | ||
95420d30 TV |
526 | 2020-07-27 Tom de Vries <tdevries@suse.de> |
527 | ||
528 | * configure.ac: Fix sys/sockets.h -> sys/socket.h typo. | |
529 | * config.in: Regenerate. | |
530 | * configure: Regenerate. | |
531 | ||
05a6b8c2 EZ |
532 | 2020-07-26 Eli Zaretskii <eliz@gnu.org> |
533 | ||
534 | * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and | |
535 | ws2tcpip.h. When checking whether socklen_t type is defined, use | |
536 | ws2tcpip.h if it is available and sys/socket.h isn't. | |
537 | * configure: Regenerate. | |
538 | * config.in: Regenerate. | |
539 | ||
e79eb02f AB |
540 | 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com> |
541 | ||
542 | PR fortran/23051 | |
543 | PR fortran/26139 | |
544 | * valops.c (value_ind): Pass address to | |
545 | readjust_indirect_value_type. | |
546 | * value.c (readjust_indirect_value_type): Make parameter | |
547 | non-const, and add extra address parameter. Resolve original type | |
548 | before using it. | |
549 | * value.h (readjust_indirect_value_type): Update function | |
550 | signature and comment. | |
551 | ||
876518dd TV |
552 | 2020-07-25 Tom de Vries <tdevries@suse.de> |
553 | ||
554 | PR symtab/26243 | |
555 | * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line | |
556 | entries. | |
557 | ||
f6720b1c AM |
558 | 2020-07-24 Aaron Merey <amerey@redhat.com> |
559 | ||
560 | * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS. | |
561 | * configure: Rebuild. | |
562 | ||
513487e1 KB |
563 | 2020-07-23 Kevin Buettner <kevinb@redhat.com> |
564 | ||
565 | PR corefiles/26294 | |
566 | * corelow.c (_initialize_corelow): Add period to help text | |
567 | for "maintenance print core-file-backed-mappings". | |
568 | ||
e7bc9db8 PA |
569 | 2020-07-23 Pedro Alves <pedro@palves.net> |
570 | ||
571 | * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't | |
572 | touch THIS_CACHE/THIS_FRAME if the frame cache was cleared | |
573 | meanwhile. | |
574 | * frame.c (frame_cache_generation, get_frame_cache_generation): | |
575 | New. | |
576 | (reinit_frame_cache): Increment FRAME_CACHE_GENERATION. | |
577 | (get_prev_frame_if_no_cycle): On exception, don't touch | |
578 | PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile. | |
579 | * frame.h (get_frame_cache_generation): Declare. | |
580 | ||
90fcc466 TV |
581 | 2020-07-23 Tom de Vries <tdevries@suse.de> |
582 | ||
583 | PR tui/26282 | |
584 | * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows): | |
585 | New default constructor. | |
586 | ||
78344df7 AB |
587 | 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com> |
588 | ||
589 | * disasm.c (do_mixed_source_and_assembly_deprecated): Don't | |
590 | exclude non-statement entries. | |
591 | ||
b089853a KB |
592 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
593 | ||
594 | * NEWS (New commands): Mention new command | |
595 | "maintenance print core-file-backed-mappings". | |
596 | ||
09c2f5d4 KB |
597 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
598 | ||
599 | * corelow.c (gdbcmd.h): Include. | |
600 | (core_target::info_proc_mappings): New method. | |
601 | (get_current_core_target): New function. | |
602 | (maintenance_print_core_file_backed_mappings): New function. | |
603 | (_initialize_corelow): Add core-file-backed-mappings to | |
604 | "maint print" commands. | |
605 | ||
9c5ec5c2 | 606 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
fe4c3d43 | 607 | |
9c5ec5c2 KB |
608 | * linux-tdep.c (dump_note_entry_p): New function. |
609 | (linux_dump_mapping_p_ftype): New typedef. | |
610 | (linux_find_memory_regions_full): Add new parameter, | |
611 | should_dump_mapping_p. | |
612 | (linux_find_memory_regions): Adjust call to | |
613 | linux_find_memory_regions_full. | |
614 | (linux_make_mappings_core_file_notes): Use dump_note_entry_p in | |
615 | call to linux_find_memory_regions_full. | |
616 | ||
db082f59 KB |
617 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
618 | ||
619 | * corelow.c (solist.h, unordered_map): Include. | |
620 | (class core_target): Add field m_core_file_mappings and | |
621 | method build_file_mappings. | |
622 | (core_target::core_target): Call build_file_mappings. | |
623 | (core_target::~core_target): Free memory associated with | |
624 | m_core_file_mappings. | |
625 | (core_target::build_file_mappings): New method. | |
626 | (core_target::xfer_partial): Use m_core_file_mappings | |
627 | for memory transfers. | |
628 | * linux-tdep.c (linux_read_core_file_mappings): New | |
629 | function. | |
630 | (linux_core_info_proc_mappings): Rewrite to use | |
631 | linux_read_core_file_mappings. | |
632 | (linux_init_abi): Register linux_read_core_file_mappings. | |
633 | ||
7e183d27 KB |
634 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
635 | ||
636 | * arch-utils.c (default_read_core_file_mappings): New function. | |
637 | * arch-utils.c (default_read_core_file_mappings): Declare. | |
638 | * gdbarch.sh (read_core_file_mappings): New gdbarch method. | |
639 | * gdbarch.h, gdbarch.c: Regenerate. | |
640 | ||
2735d421 KB |
641 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
642 | ||
643 | PR corefiles/25631 | |
644 | * corelow.c (core_target:xfer_partial): Revise | |
645 | TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS | |
646 | case after first checking the stratum beneath the core | |
647 | target. | |
648 | (has_all_memory): Return true. | |
649 | * target.c (raw_memory_xfer_partial): Revise comment | |
650 | regarding use of has_all_memory. | |
651 | ||
e56cb451 KB |
652 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
653 | ||
654 | * exec.h (section_table_xfer_memory): Revise declaration, | |
655 | replacing section name parameter with an optional callback | |
656 | predicate. | |
657 | * exec.c (section_table_xfer_memory): Likewise. | |
658 | * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers | |
659 | of section_table_xfer_memory. | |
660 | ||
32fa152e TT |
661 | 2020-07-22 Tom Tromey <tromey@adacore.com> |
662 | ||
663 | * mi/mi-cmd-stack.c (list_args_or_locals): Use | |
664 | lookup_symbol_search_name. | |
665 | ||
a67a1c41 AB |
666 | 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com> |
667 | ||
668 | * python/py-registers.c (gdbpy_register_object_data_init): Remove | |
669 | redundant local variable. | |
670 | (gdbpy_get_register_descriptor): Extract descriptor vector as a | |
671 | reference, not pointer, update code accordingly. | |
672 | ||
a7b4ff4f SM |
673 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
674 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
675 | ||
676 | * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field. | |
677 | * jit.c (jit_breakpoint_re_set_internal): Use the | |
678 | `skip_jit_symbol_lookup` field. | |
679 | ||
2340e834 SM |
680 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
681 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
682 | ||
683 | * jit.c (jit_read_descriptor): Define the descriptor address once, | |
684 | use twice. | |
685 | (jit_breakpoint_deleted): Move the declaration of the loop variable | |
686 | `iter` into the loop header. | |
687 | (jit_breakpoint_re_set_internal): Move the declaration of the local | |
688 | variable `objf_data` to the first point of definition. | |
689 | (jit_event_handler): Move the declaration of local variables | |
690 | `code_entry`, `entry_addr`, and `objf` to their first point of use. | |
691 | Rename `objf` to `jited`. | |
692 | ||
c1072906 SM |
693 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
694 | ||
695 | * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>: | |
696 | Remove. | |
697 | * jit.c (get_jiter_objfile_data): Update. | |
698 | ||
c8474dc3 TBA |
699 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
700 | Simon Marchi <simon.marchi@polymtl.ca> | |
701 | ||
702 | * jit.c (struct jit_program_space_data): Remove. | |
703 | (jit_program_space_key): Remove. | |
704 | (jiter_objfile_data::~jiter_objfile_data): Remove program space | |
705 | stuff. | |
706 | (get_jit_program_space_data): Remove. | |
707 | (jit_breakpoint_deleted): Iterate on all of the program space's | |
708 | objfiles. | |
709 | (jit_inferior_init): Likewise. | |
710 | (jit_breakpoint_re_set_internal): Likewise. Also change return | |
711 | type to void. | |
712 | (jit_breakpoint_re_set): Pass current_program_space to | |
713 | jit_breakpoint_re_set_internal. | |
714 | ||
77208eb7 SM |
715 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
716 | ||
717 | * jit.h (struct jiter_objfile_data) <cached_code_address, | |
718 | jit_breakpoint>: Move to here from ... | |
719 | * jit.c (jit_program_space_data): ... here. | |
720 | (jiter_objfile_data::~jiter_objfile_data): Update. | |
721 | (jit_breakpoint_deleted): Update. | |
722 | (jit_breakpoint_re_set_internal): Update. | |
723 | ||
8c1c720f SM |
724 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
725 | ||
726 | * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some | |
727 | checks. | |
728 | (jit_read_descriptor): Remove NULL check. | |
729 | (jit_event_handler): Add an assertion. | |
730 | ||
0e74a041 SM |
731 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
732 | ||
733 | * jit.h (struct jit_objfile_data): Split into... | |
734 | (struct jiter_objfile_data): ... this ... | |
735 | (struct jited_objfile_data): ... and this. | |
736 | * objfiles.h (struct objfile) <jit_data>: Remove. | |
737 | <jiter_data, jited_data>: New fields. | |
738 | * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ... | |
739 | (jiter_objfile_data::~jiter_objfile_data): ... this. | |
740 | (get_jit_objfile_data): Rename to ... | |
741 | (get_jiter_objfile_data): ... this. | |
742 | (add_objfile_entry): Update. | |
743 | (jit_read_descriptor): Use get_jiter_objfile_data. | |
744 | (jit_find_objf_with_entry_addr): Use objfile's jited_data field. | |
745 | (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data. | |
746 | (jit_inferior_exit_hook): Use objfile's jited_data field. | |
747 | ||
238b5c9f SM |
748 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
749 | ||
750 | * jit.h: Forward-declare `struct minimal_symbol`. | |
751 | (struct jit_objfile_data): Migrate to here from jit.c; also add a | |
752 | constructor, destructor, and an objfile* field. | |
753 | * jit.c (jit_objfile_data): Remove. | |
754 | (struct jit_objfile_data): Migrate from here to jit.h. | |
755 | (jit_objfile_data::~jit_objfile_data): New destructor | |
756 | implementation with code moved from free_objfile_data. | |
757 | (free_objfile_data): Delete. | |
758 | (get_jit_objfile_data): Update to use the jit_data field of objfile. | |
759 | (jit_find_objf_with_entry_addr): Ditto. | |
760 | (jit_inferior_exit_hook): Ditto. | |
761 | (_initialize_jit): Remove the call to | |
762 | register_objfile_data_with_cleanup. | |
763 | * objfiles.h (struct objfile) <jit_data>: New field. | |
764 | ||
fe053b9e TBA |
765 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
766 | ||
767 | * jit.h: Forward-declare `struct objfile`. | |
768 | (jit_event_handler): Add a second parameter, the JITer objfile. | |
769 | * jit.c (jit_read_descriptor): Change the signature to take the | |
770 | JITer objfile as an argument instead of the jit_program_space_data. | |
771 | (jit_inferior_init): Update the call to jit_read_descriptor. | |
772 | (jit_event_handler): Use the new JITer objfile argument when calling | |
773 | jit_read_descriptor. | |
774 | * breakpoint.c (handle_jit_event): Update the call to | |
775 | jit_event_handler to pass the JITer objfile. | |
776 | ||
4cec0c66 JB |
777 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
778 | ||
779 | * gdbarch.c: Regenerate. | |
780 | * gdbarch.h: Regenerate. | |
781 | * gdbarch.sh (handle_segmentation_fault): Remove method. | |
782 | * infrun.c (handle_segmentation_fault): Remove. | |
783 | (print_signal_received_reason): Remove call to | |
784 | handle_segmentation_fault. | |
785 | ||
0e42f66a JB |
786 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
787 | ||
788 | * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault): | |
789 | Rename to sparc64_linux_report_signal_info and add siggnal | |
790 | argument. | |
791 | (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info | |
792 | instead of sparc64_linux_handle_segmentation_fault. | |
793 | ||
77bdfeb2 JB |
794 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
795 | ||
796 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use | |
797 | i386_linux_report_signal_info instead of | |
798 | i386_linux_handle_segmentation_fault. | |
799 | * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename | |
800 | to i386_linux_report_signal_info and add siggnal argument. | |
801 | (i386_linux_init_abi): Use i386_linux_report_signal_info instead | |
802 | of i386_linux_handle_segmentation_fault. | |
803 | * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename | |
804 | to i386_linux_report_signal_info and add siggnal argument. | |
805 | ||
ad97bfc5 JB |
806 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
807 | ||
808 | * corelow.c (core_target_open): Invoke gdbarch report_signal_info | |
809 | hook if present. | |
810 | ||
272bb05c JB |
811 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
812 | ||
813 | * gdbarch.c: Regenerate. | |
814 | * gdbarch.h: Regenerate. | |
815 | * gdbarch.sh (report_signal_info): New method. | |
816 | * infrun.c (print_signal_received_reason): Invoke gdbarch | |
817 | report_signal_info hook if present. | |
818 | ||
baf8791e AB |
819 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> |
820 | ||
821 | * python/py-registers.c : Add 'unordered_map' include. | |
822 | (gdbpy_new_reggroup): Renamed to... | |
823 | (gdbpy_get_reggroup): ...this. Update to only create register | |
824 | group descriptors when needed. | |
825 | (gdbpy_reggroup_iter_next): Update. | |
826 | ||
f7306dac AB |
827 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> |
828 | ||
829 | * python/py-registers.c (gdbpy_register_object_data): New static | |
830 | global. | |
831 | (gdbpy_register_object_data_init): New function. | |
832 | (gdbpy_new_register_descriptor): Renamed to... | |
833 | (gdbpy_get_register_descriptor): ...this, and update to reuse | |
834 | existing register descriptors where possible. | |
835 | (gdbpy_register_descriptor_iter_next): Update. | |
836 | (gdbpy_initialize_registers): Register new gdbarch data. | |
837 | ||
05c309a8 SM |
838 | 2020-07-21 Simon Marchi <simon.marchi@efficios.com> |
839 | ||
840 | * linux-nat.c (stopped_pids): Make static. | |
841 | ||
d1fd641e SM |
842 | 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca> |
843 | ||
844 | PR ada/26235 | |
845 | * gdbtypes.c (ada_discrete_type_low_bound, | |
846 | ada_discrete_type_high_bound): Handle undefined bounds. | |
847 | ||
1de14d77 KR |
848 | 2020-07-21 Kamil Rytarowski <n54@gmx.com> |
849 | ||
850 | * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New | |
851 | declaration. | |
852 | * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New | |
853 | function. | |
854 | ||
ed810cc7 JB |
855 | 2020-07-20 John Baldwin <jhb@FreeBSD.org> |
856 | ||
857 | * fbsd-tdep.c (fbsd_skip_solib_resolver): New function. | |
858 | (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method. | |
859 | * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype. | |
860 | * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function. | |
861 | (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver" | |
862 | method. | |
863 | ||
ae5369e7 LC |
864 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> |
865 | ||
866 | * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t' | |
867 | and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax', | |
868 | which are deprecated in Guile 3.0. | |
869 | * configure.ac (try_guile_versions): Add "guile-3.0". | |
870 | * configure (try_guile_versions): Regenerate. | |
871 | * NEWS: Update entry. | |
872 | ||
68cf161c LC |
873 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> |
874 | Doug Evans <dje@google.com> | |
875 | ||
876 | PR gdb/21104 | |
877 | * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro. | |
878 | (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if | |
879 | USING_GUILE_BEFORE_2_2. | |
880 | (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]: | |
881 | Change type to 'scm_t_port_type *'. | |
882 | (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable. | |
883 | (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream' | |
884 | parameter and honor it. Update callers. | |
885 | (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function. | |
886 | (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New | |
887 | functions. | |
888 | (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if | |
889 | USING_GUILE_BEFORE_2_2. | |
890 | (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use | |
891 | 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'. | |
892 | (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function. | |
893 | (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP' | |
894 | and 'SCM_PORT_TYPE'. | |
895 | (gdbscm_memory_port_end_input, gdbscm_memory_port_seek) | |
896 | (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2. | |
897 | (gdbscm_memory_port_read, gdbscm_memory_port_write) | |
898 | (gdbscm_memory_port_seek, gdbscm_memory_port_close) | |
899 | [!USING_GUILE_BEFORE_2_2]: New functions. | |
900 | (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'. | |
901 | (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use | |
902 | 'gdbscm_memory_port_read'. | |
903 | Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and | |
904 | 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2. | |
905 | (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New | |
906 | function. | |
907 | (ioscm_init_memory_port): Remove. | |
908 | (ioscm_init_memory_port_stream): New function | |
909 | (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New | |
910 | function. | |
911 | (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
912 | Return scm_from_uint (0). | |
913 | (gdbscm_set_memory_port_read_buffer_size_x) | |
914 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
915 | (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
916 | Return scm_from_uint (0). | |
917 | (gdbscm_set_memory_port_write_buffer_size_x) | |
918 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
919 | * configure.ac (try_guile_versions): Add "guile-2.2". | |
920 | * configure: Regenerate. | |
921 | * NEWS: Add entry. | |
922 | ||
aee91db3 TT |
923 | 2020-07-18 Tom Tromey <tom@tromey.com> |
924 | ||
925 | * linux-nat.c (linux_multi_process): Remove. | |
926 | (linux_nat_target::supports_multi_process): Return true. | |
927 | ||
0e267416 AB |
928 | 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com> |
929 | ||
930 | * arch/riscv.c (riscv_tdesc_cache): Change map type. | |
931 | (riscv_lookup_target_description): Return pointer out of | |
932 | unique_ptr. | |
933 | * target-descriptions.c (allocate_target_description): Add | |
934 | comment. | |
935 | (target_desc_deleter::operator()): Likewise. | |
936 | * target-descriptions.h (struct target_desc_deleter): Moved to | |
937 | gdbsupport/tdesc.h. | |
938 | (target_desc_up): Likewise. | |
939 | ||
f80c8ec4 TT |
940 | 2020-07-17 Tom Tromey <tromey@adacore.com> |
941 | ||
942 | * linux-nat.c (linux_nat_target::supports_non_stop) | |
943 | (linux_nat_target::always_non_stop_p): Use "true". | |
944 | (linux_nat_target::supports_disable_randomization): Use "true" and | |
945 | "false". | |
946 | ||
d0ce17d8 CT |
947 | 2020-07-16 Caroline Tice <cmtice@google.com> |
948 | ||
949 | * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition. | |
950 | (RNGLIST_HEADER_SIZE64): New constant definition. | |
951 | (struct dwop_section_names): Add rnglists_dwo. | |
952 | (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo. | |
953 | (struct loclist_header): Rename to 'loclists_rnglists_header'. | |
954 | (struct dwo_sections): Add rnglists field. | |
955 | (read_attribut_reprocess): Add tag parameter. | |
956 | (dwarf2_ranges_read): Add tag parameter & remove forward function decl. | |
957 | (cu_debug_rnglists_section): New function (decl & definition). | |
958 | (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section. | |
959 | (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of | |
960 | die whose range is being checked; get rnglist section from | |
961 | cu_debug_rnglists_section, to get from either objfile or dwo file as | |
962 | appropriate. Add cases for DW_RLE_base_addressx, | |
963 | DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add | |
964 | the base address to DW_RLE_offset_pairs (not to all ranges), moving | |
965 | test inside if-condition and updating complaint message. | |
966 | (dwarf2_ranges_process): Add dwarf tag parameter and pass it to | |
967 | dwarf2_rnglists_process. | |
968 | (dwarf2_ranges_read): Add dwarf tag parameter and pass it to | |
969 | dwarf2_ranges_process. | |
970 | (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting | |
971 | need_ranges_base and update comment appropriately. Also pass die tag | |
972 | to dwarf2_ranges_read. | |
973 | (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting | |
974 | need_ranges_base and update comment appropriately. Also pass die tag | |
975 | to dwarf2_ranges_process. | |
976 | (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to | |
977 | cu->ranges_base. Also pass die tag to read_attribute_reprocess. | |
978 | (partial_die_info::read): Check for DW_FORM_rnglistx when setting | |
979 | need_ranges_base and update comment appropriately. Also pass die tag | |
980 | to read_attribute_reprocess and dwarf2_ranges_read. | |
981 | (read_loclist_header): Rename function to read_loclists_rnglists_header, | |
982 | and update function comment appropriately. | |
983 | (read_loclist_index): Call read_loclists_rnglists_header instead of | |
984 | read_loclist_header. | |
985 | (read_rnglist_index): New function. | |
986 | (read_attribute_reprocess): Add tag parameter. Add code for | |
987 | DW_FORM_rnglistx, passing tag to read_rnglist_index. | |
988 | (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess. | |
989 | ||
3dcc261c AB |
990 | 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com> |
991 | ||
992 | * f-typeprint.c (f_type_print_base): Allow for dynamic types not | |
993 | being resolved. | |
994 | ||
ccb9eba6 AB |
995 | 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com> |
996 | ||
997 | * arch-utils.c (show_architecture): Update formatting of messages. | |
998 | ||
cf88be68 SM |
999 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1000 | ||
1001 | * gdbtypes.h (struct type) <bounds>: Handle array and string | |
1002 | types. | |
1003 | * ada-lang.c (assign_aggregate): Use type::bounds on | |
1004 | array/string type. | |
1005 | * c-typeprint.c (c_type_print_varspec_suffix): Likewise. | |
1006 | * c-varobj.c (c_number_of_children): Likewise. | |
1007 | (c_describe_child): Likewise. | |
1008 | * eval.c (evaluate_subexp_for_sizeof): Likewise. | |
1009 | * f-typeprint.c (f_type_print_varspec_suffix): Likewise. | |
1010 | (f_type_print_base): Likewise. | |
1011 | * f-valprint.c (f77_array_offset_tbl): Likewise. | |
1012 | (f77_get_upperbound): Likewise. | |
1013 | (f77_print_array_1): Likewise. | |
1014 | * guile/scm-type.c (gdbscm_type_range): Likewise. | |
1015 | * m2-typeprint.c (m2_array): Likewise. | |
1016 | (m2_is_long_set_of_type): Likewise. | |
1017 | * m2-valprint.c (get_long_set_bounds): Likewise. | |
1018 | * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise. | |
1019 | * python/py-type.c (typy_range): Likewise. | |
1020 | * rust-lang.c (rust_internal_print_type): Likewise. | |
1021 | * type-stack.c (type_stack::follow_types): Likewise. | |
1022 | * valarith.c (value_subscripted_rvalue): Likewise. | |
1023 | * valops.c (value_cast): Likewise. | |
1024 | ||
509971ae SM |
1025 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1026 | ||
1027 | * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all | |
1028 | callers to use the equivalent accessor methods. | |
1029 | ||
107406b7 SM |
1030 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1031 | ||
1032 | * gdbtypes.h (struct range_bounds) <bit_stride>: New method. | |
1033 | (struct type) <bit_stride>: New method. | |
1034 | (TYPE_BIT_STRIDE): Remove. | |
1035 | * gdbtypes.c (update_static_array_size): Use type::bit_stride. | |
1036 | ||
bb789949 SM |
1037 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1038 | ||
1039 | * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE, | |
1040 | TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all | |
1041 | callers to use the equivalent accessor methods instead. | |
1042 | ||
39498edb SM |
1043 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1044 | ||
1045 | * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, | |
1046 | TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all | |
1047 | callers to use the equivalent accessor methods instead. | |
1048 | ||
3b606f38 SM |
1049 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1050 | ||
1051 | * gdbtypes.h (TYPE_LOW_BOUND_KIND, | |
1052 | TYPE_HIGH_BOUND_KIND): Remove. Update all callers | |
1053 | to use dynamic_prop::kind. | |
1054 | ||
064d9cb9 SM |
1055 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1056 | ||
1057 | * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED, | |
1058 | TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers | |
1059 | to get the bound property's kind and check against | |
1060 | PROP_UNDEFINED. | |
1061 | ||
5537ddd0 SM |
1062 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1063 | ||
1064 | * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update | |
1065 | all callers to use type::range_bounds followed by | |
1066 | dynamic_prop::{low,high}. | |
1067 | ||
8c2e4e06 SM |
1068 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
1069 | ||
1070 | * gdbtypes.h (struct dynamic_prop) <kind, set_undefined, | |
1071 | const_val, set_const_val, baton, set_locexpr, set_loclist, | |
1072 | set_addr_offset, variant_parts, set_variant_parts, | |
1073 | original_type, set_original_type>: New methods. | |
1074 | <kind>: Rename to... | |
1075 | <m_kind>: ... this. Update all users to use the new methods | |
1076 | instead. | |
1077 | <data>: Rename to... | |
1078 | <m_data>: ... this. Update all users to use the new methods | |
1079 | instead. | |
1080 | ||
7c6f2712 SM |
1081 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1082 | ||
1083 | * gdbtypes.c (get_discrete_bounds): Return failure if | |
1084 | the range type's bounds are not both defined and constant | |
1085 | values. | |
1086 | (get_array_bounds): Update comment. Remove undefined bound check. | |
1087 | ||
599088e3 SM |
1088 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
1089 | ||
1090 | * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use | |
1091 | the type::bounds method directly. | |
1092 | ||
c4dfcb36 SM |
1093 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1094 | ||
1095 | * gdbtypes.h (struct type) <bounds, set_bounds>: New methods. | |
1096 | (TYPE_RANGE_DATA): Use type::bounds. Change all uses that | |
1097 | are used to set the range type's bounds to use set_bounds. | |
1098 | ||
0a278aa7 PW |
1099 | 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1100 | ||
1101 | * exec.c (_initialize_exec): Update exec-file-mismatch help. | |
1102 | ||
cce20f10 PA |
1103 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1104 | ||
1105 | * gdbthread.h (inferior_ref): Define. | |
1106 | (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref. | |
1107 | (scoped_restore_current_thread) <m_inf>: Now an inferior_ref. | |
1108 | * thread.c | |
1109 | (scoped_restore_current_thread::restore): | |
1110 | Adjust to gdb::ref_ptr. | |
1111 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
1112 | Remove manual decref handling. | |
1113 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
1114 | Adjust to use | |
1115 | inferior_ref::new_reference/thread_info_ref::new_reference. | |
1116 | Incref the thread before calling get_frame_id instead of after. | |
1117 | Let TARGET_CLOSE_ERROR propagate. | |
1118 | ||
6d7aa592 PA |
1119 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1120 | ||
1121 | * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow | |
1122 | NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR / | |
1123 | NOT_AVAILABLE_ERROR. | |
1124 | * value.c (value_optimized_out): Only swallow MEMORY_ERROR / | |
1125 | OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR. | |
1126 | ||
b3e3a4c1 SM |
1127 | 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca> |
1128 | Pedro Alves <pedro@palves.net> | |
1129 | ||
1130 | PR gdb/26199 | |
1131 | * infrun.c (threads_are_resumed_pending_p): Delete. | |
1132 | (do_target_wait): Remove threads_are_executing and | |
1133 | threads_are_resumed_pending_p checks from the inferior_matches | |
1134 | lambda. Update comments. | |
1135 | ||
d6cc5d98 PA |
1136 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1137 | ||
1138 | PR gdb/26199 | |
1139 | * infrun.c (handle_no_resumed): Transfer terminal to inferior with | |
1140 | executing threads. | |
1141 | ||
7d3badc6 PA |
1142 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1143 | ||
1144 | PR gdb/26199 | |
1145 | * infrun.c (handle_no_resumed): Handle multiple targets. | |
1146 | ||
42bd97a6 PA |
1147 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1148 | ||
1149 | PR gdb/26199 | |
1150 | * infrun.c (prepare_to_wait): Check target_can_async_p instead of | |
1151 | target_is_async_p. | |
1152 | ||
43667cc6 PA |
1153 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1154 | ||
1155 | PR gdb/26199 | |
1156 | * target.c (target_pass_ctrlc): Look at the inferior's non-exited | |
1157 | threads, not all threads. | |
1158 | ||
96118d11 PA |
1159 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1160 | ||
1161 | PR gdb/26199 | |
1162 | * remote.c (remote_target::open_1): Pass remote target pointer as | |
1163 | data to create_async_event_handler. | |
1164 | (remote_async_inferior_event_handler): Mark async event handler | |
1165 | before returning if the remote target still has either pending | |
1166 | events or unacknowledged notifications. | |
1167 | ||
54904d81 JB |
1168 | 2020-07-10 John Baldwin <jhb@FreeBSD.org> |
1169 | ||
1170 | * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New | |
1171 | declaration. | |
1172 | * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New | |
1173 | function. | |
1174 | ||
f37e5866 JB |
1175 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
1176 | ||
1177 | * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against | |
1178 | inferior_ptid. | |
1179 | ||
fc238d4a JB |
1180 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
1181 | ||
1182 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC, | |
1183 | AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV, | |
1184 | AT_FREEBSD_PS_STRINGS. | |
1185 | ||
6e2469ff HD |
1186 | 2020-07-08 Hannes Domani <ssbssa@yahoo.de> |
1187 | ||
1188 | * auto-load.c (auto_load_objfile_script_1): Convert drive part | |
1189 | of debugfile path on Windows. | |
1190 | ||
d1076c41 JB |
1191 | 2020-07-08 John Baldwin <jhb@FreeBSD.org> |
1192 | ||
1193 | * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd' | |
1194 | argument to 'data'. | |
1195 | ||
15f3b077 TT |
1196 | 2020-07-08 Tom Tromey <tromey@adacore.com> |
1197 | ||
1198 | * ada-lang.c (ada_exception_message_1): Use read_memory. | |
1199 | ||
9fc501fd AB |
1200 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1201 | ||
1202 | PR python/22748 | |
1203 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove | |
1204 | special handling for inline frames. | |
1205 | * findvar.c (value_of_register_lazy): Skip inline frames when | |
1206 | creating lazy register values. | |
1207 | * frame.c (frame_id_computed_p): Delete definition. | |
1208 | * frame.h (frame_id_computed_p): Delete declaration. | |
1209 | ||
64cb3757 AB |
1210 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1211 | ||
1212 | * NEWS: Mention additions to Python API. | |
1213 | * python/py-arch.c (archpy_register_groups): New function. | |
1214 | (arch_object_methods): Add 'register_groups' method. | |
1215 | * python/py-registers.c (reggroup_iterator_object): New struct. | |
1216 | (reggroup_object): New struct. | |
1217 | (gdbpy_new_reggroup): New function. | |
1218 | (gdbpy_reggroup_to_string): New function. | |
1219 | (gdbpy_reggroup_name): New function. | |
1220 | (gdbpy_reggroup_iter): New function. | |
1221 | (gdbpy_reggroup_iter_next): New function. | |
1222 | (gdbpy_new_reggroup_iterator): New function | |
1223 | (gdbpy_initialize_registers): Register new types. | |
1224 | (reggroup_iterator_object_type): Define new Python type. | |
1225 | (gdbpy_reggroup_getset): New static global. | |
1226 | (reggroup_object_type): Define new Python type. | |
1227 | * python/python-internal.h | |
1228 | ||
0f767f94 AB |
1229 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1230 | ||
1231 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c | |
1232 | * python/py-arch.c (archpy_registers): New function. | |
1233 | (arch_object_methods): Add 'registers' method. | |
1234 | * python/py-registers.c: New file. | |
1235 | * python/python-internal.h | |
1236 | (gdbpy_new_register_descriptor_iterator): Declare. | |
1237 | (gdbpy_initialize_registers): Declare. | |
1238 | * python/python.c (do_start_initialization): Call | |
1239 | gdbpy_initialize_registers. | |
1240 | * NEWS: Mention additions to the Python API. | |
1241 | ||
87dbc774 AB |
1242 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1243 | ||
1244 | * NEWS: Mention new Python API method. | |
1245 | * python/py-unwind.c (pending_framepy_architecture): New function. | |
1246 | (pending_frame_object_methods): Add architecture method. | |
1247 | ||
3bc98c0c AB |
1248 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1249 | ||
1250 | * gdbarch.c: Regenerate. | |
1251 | * gdbarch.h: Regenerate. | |
1252 | * gdbarch.sh (deprecated_set_gdbarch_data): Delete. | |
1253 | (gdbarch_data): Use internal_error for the case where | |
1254 | deprecated_set_gdbarch_data was originally needed. | |
1255 | * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters, | |
1256 | and use passed in obstack. | |
1257 | (libunwind_frame_set_descr): Should no longer get back NULL from | |
1258 | gdbarch_data. | |
1259 | (_initialize_libunwind_frame): Register as a pre-init gdbarch data | |
1260 | type. | |
1261 | * user-regs.c (user_regs_init): Update parameters, and use passed | |
1262 | in obstack. | |
1263 | (user_reg_add): Should no longer get back NULL from gdbarch_data. | |
1264 | (_initialize_user_regs): Register as a pre-init gdbarch data type. | |
1265 | ||
d8cc8af6 TV |
1266 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
1267 | ||
1268 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle | |
1269 | End-Of-Sequence in lte_is_less_than. | |
1270 | * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313 | |
1271 | "gdb: Don't reorder line table entries too much when sorting". | |
1272 | ||
947f7597 TV |
1273 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
1274 | ||
1275 | PR tui/26205 | |
1276 | * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name. | |
1277 | ||
1e7c1b22 TV |
1278 | 2020-07-05 Tom de Vries <tdevries@suse.de> |
1279 | ||
1280 | PR build/26187 | |
1281 | * inferior.h (struct infcall_suspend_state_deleter): If available, use | |
1282 | std::uncaught_exceptions instead of deprecated | |
1283 | std::uncaught_exception. | |
1284 | ||
a36158ec SM |
1285 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
1286 | ||
1287 | * macroexp.h (macro_stringify): Return | |
1288 | gdb::unique_xmalloc_ptr<char>. | |
1289 | * macroexp.c (macro_stringify): Likewise. | |
1290 | * macrotab.c (fixup_definition): Update. | |
1291 | ||
14d960c8 SM |
1292 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
1293 | ||
1294 | * c-exp.y (scan_macro_expansion): Don't free `expansion`. | |
1295 | (lex_one_token): Update. | |
1296 | * macroexp.c (struct macro_buffer) <release>: Return | |
1297 | gdb::unique_xmalloc_ptr<char>. | |
1298 | (macro_stringify): Update. | |
1299 | (macro_expand): Update. | |
1300 | (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>. | |
1301 | * macroexp.h (macro_expand_next): Likewise. | |
1302 | ||
211d5b1c SM |
1303 | 2020-07-02 Simon Marchi <simon.marchi@efficios.com> |
1304 | ||
1305 | * macroexp.h (macro_lookup_ftype): Remove. | |
1306 | (macro_expand, macro_expand_once, macro_expand_next): Remove | |
1307 | lookup function parameters, add scope parameter. | |
1308 | * macroexp.c (scan, substitute_args, expand, maybe_expand, | |
1309 | macro_expand, macro_expand_once, macro_expand_next): Likewise. | |
1310 | * macroscope.h (standard_macro_lookup): Change parameter type | |
1311 | to macro_scope. | |
1312 | * macroscope.c (standard_macro_lookup): Likewise. | |
1313 | * c-exp.y (lex_one_token): Update. | |
1314 | * macrocmd.c (macro_expand_command): Likewise. | |
1315 | (macro_expand_once_command): Likewise. | |
1316 | ||
b1a35af2 SM |
1317 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
1318 | ||
1319 | * inf-loop.c (inferior_event_handler): Remove client_data param. | |
1320 | * inf-loop.h (inferior_event_handler): Likewise. | |
1321 | * infcmd.c (step_1): Adjust. | |
1322 | * infrun.c (proceed): Adjust. | |
1323 | (fetch_inferior_event): Remove client_data param. | |
1324 | (infrun_async_inferior_event_handler): Adjust. | |
1325 | * infrun.h (fetch_inferior_event): Remove `void *` param. | |
1326 | * linux-nat.c (handle_target_event): Adjust. | |
1327 | * record-btrace.c (record_btrace_handle_async_inferior_event): | |
1328 | Adjust. | |
1329 | * record-full.c (record_full_async_inferior_event_handler): | |
1330 | Adjust. | |
1331 | * remote.c (remote_async_inferior_event_handler): Adjust. | |
1332 | ||
1cdf9e33 TT |
1333 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1334 | ||
1335 | * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual. | |
1336 | * tui/tui-stack.h (struct tui_locator_window) <name>: New method. | |
1337 | ||
32c1e210 TT |
1338 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1339 | ||
1340 | * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from | |
1341 | tui_gen_win_info. | |
1342 | (tui_win_info::make_window): Merge with | |
1343 | tui_gen_win_info::make_window. | |
1344 | (tui_win_info::make_visible): Move from tui_gen_win_info. | |
1345 | * tui/tui-win.c (tui_win_info::max_width): Move from | |
1346 | tui_gen_win_info. | |
1347 | * tui/tui-layout.h (class tui_layout_window) <m_window>: Change | |
1348 | type. | |
1349 | <window_factory>: Likewise. | |
1350 | * tui/tui-layout.c (tui_win_info::resize): Move from | |
1351 | tui_gen_win_info. | |
1352 | (make_standard_window): Change return type. | |
1353 | (get_locator_window, tui_get_window_by_name): Likewise. | |
1354 | (tui_layout_window::apply): Remove a cast. | |
1355 | * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier. | |
1356 | (struct tui_win_info): Merge with tui_gen_win_info. | |
1357 | (struct tui_gen_win_info): Remove. | |
1358 | ||
a30cb6da TT |
1359 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1360 | ||
1361 | * tui/tui-stack.h (struct tui_locator_window): Derive from | |
1362 | tui_win_info. | |
1363 | <do_scroll_horizontal, do_scroll_vertical>: New methods. | |
1364 | <can_box>: New method. | |
1365 | ||
1eb2161f TT |
1366 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1367 | ||
1368 | * tui/tui-stack.h (struct tui_locator_window): Remove body. | |
1369 | ||
7134f2eb TT |
1370 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1371 | ||
1372 | * tui/tui-regs.c (tui_data_window::display_registers_from) | |
1373 | (tui_data_window::display_registers_from) | |
1374 | (tui_data_window::first_data_item_displayed) | |
1375 | (tui_data_window::delete_data_content_windows): Update. | |
1376 | (tui_data_window::refresh_window, tui_data_window::no_refresh): | |
1377 | Remove. | |
1378 | (tui_data_window::check_register_values): Update. | |
1379 | (tui_data_item_window::rerender): Add parameters. Update. | |
1380 | (tui_data_item_window::refresh_window): Remove. | |
1381 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer | |
1382 | virtual. | |
1383 | * tui/tui-regs.h (struct tui_data_item_window): Don't derive from | |
1384 | tui_gen_win_info. | |
1385 | <refresh_window, max_height, min_height>: Remove. | |
1386 | <rerender>: Add parameters. | |
1387 | <x, y, visible>: New members. | |
1388 | (struct tui_data_window) <refresh_window, no_refresh>: Remove. | |
1389 | <m_item_width>: New member. | |
1390 | ||
22b7b041 TT |
1391 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1392 | ||
1393 | * tui/tui-regs.c (tui_data_window::show_register_group) | |
1394 | (tui_data_window::check_register_values): Update. | |
1395 | * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename | |
1396 | from item_no. | |
1397 | ||
c9753adb TT |
1398 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1399 | ||
1400 | * tui/tui-regs.c (tui_data_window::show_register_group): Remove | |
1401 | useless "if". | |
1402 | ||
9ab26b4a TT |
1403 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1404 | ||
1405 | * tui/tui-regs.c (tui_data_window::show_register_group): Update. | |
1406 | * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove. | |
1407 | ||
e555083f TT |
1408 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1409 | ||
1410 | * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h | |
1411 | * tui/tui-winsource.h (enum tui_line_or_address_kind) | |
1412 | (struct tui_line_or_address): Move from tui-data.h. | |
1413 | * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h. | |
1414 | * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c. | |
1415 | (tui_cmd_window, tui_source_window_base, tui_source_window) | |
1416 | (tui_disasm_window): Don't declare. | |
1417 | (enum tui_line_or_address_kind, struct tui_line_or_address): Move | |
1418 | to tui-winsource.h. | |
1419 | (SINGLE_KEY): Move to tui-stack.c. | |
1420 | ||
7a02bab7 TT |
1421 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1422 | ||
1423 | * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a | |
1424 | std::string. | |
1425 | * tui/tui-regs.c (class tab_expansion_file): New. | |
1426 | (tab_expansion_file::write): New method. | |
1427 | (tui_register_format): Change return type. Use | |
1428 | tab_expansion_file. | |
1429 | (tui_get_register, tui_data_window::display_registers_from) | |
1430 | (tui_data_item_window::rerender): Update. | |
1431 | * tui/tui-io.h (tui_expand_tabs): Don't declare. | |
1432 | * tui/tui-io.c (tui_expand_tabs): Remove. | |
1433 | ||
ea68593b TT |
1434 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1435 | ||
1436 | * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum. | |
1437 | ||
a8caed5d FS |
1438 | 2020-07-01 Fangrui Song <maskray@google.com> |
1439 | ||
1440 | * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1. | |
1441 | ||
9cdf9820 AKS |
1442 | 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
1443 | ||
1444 | * dwarf2/read.c (set_die_type): Removed conditions to restrict | |
1445 | forms for DW_AT_associated and DW_AT_allocated attributes, | |
1446 | which is already checked in function attr_to_dynamic_prop. | |
1447 | ||
a1520ad8 TT |
1448 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
1449 | ||
1450 | * dwarf2/read.c (quirk_rust_enum): Correctly call | |
1451 | alloc_rust_variant for default-less enum. | |
1452 | ||
5ac58899 TT |
1453 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
1454 | ||
1455 | PR build/26183: | |
1456 | * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use | |
1457 | gdb::to_string. | |
1458 | ||
19b187a9 SM |
1459 | 2020-06-29 Simon Marchi <simon.marchi@efficios.com> |
1460 | ||
1461 | * gdbarch.sh (displaced_step_copy_insn): Update doc. | |
1462 | * gdbarch.h: Re-generate. | |
1463 | ||
cd4c4c07 TT |
1464 | 2020-06-28 Tom Tromey <tom@tromey.com> |
1465 | ||
1466 | * command.h (cmd_types): Remove. | |
1467 | (cmd_type): Don't declare. | |
1468 | * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a | |
1469 | typedef. | |
1470 | * cli/cli-cmds.c (setting_cmd): Use cmd->type directly. | |
1471 | * cli/cli-decode.c (cmd_type): Remove. | |
1472 | ||
05779d57 PA |
1473 | 2020-06-27 Pedro Alves <palves@redhat.com> |
1474 | ||
1475 | * fork-child.c (prefork_hook): Adjust. | |
1476 | * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal): | |
1477 | Delete. | |
1478 | (set_inferior_tty_command, show_inferior_tty_command): Adjust. | |
1479 | * inferior.c (inferior::set_tty, inferior::tty): New methods. | |
1480 | * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal): | |
1481 | Remove declarations. | |
1482 | (struct inferior) <set_tty, tty>: New methods. | |
1483 | (struct inferior) <terminal>: Rename to ... | |
1484 | (struct inferior) <m_terminal>: ... this and make private. | |
1485 | * main.c (captured_main_1): Adjust. | |
1486 | * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust. | |
1487 | (mi_cmd_inferior_tty_show): Adjust. | |
1488 | * nto-procfs.c (nto_procfs_target::create_inferior): Adjust. | |
1489 | * windows-nat.c (windows_nat_target::create_inferior): Adjust. | |
1490 | ||
1776e3e5 NA |
1491 | 2020-06-26 Nick Alcock <nick.alcock@oracle.com> |
1492 | ||
1493 | * configure.ac: Add --enable-libctf: handle --disable-static | |
1494 | properly. | |
1495 | * acinclude.m4: sinclude ../config/enable.m4. | |
1496 | * Makefile.in (aclocal_m4_deps): Adjust accordingly. | |
1497 | (LIBCTF): Substitute in. | |
1498 | (CTF_DEPS): New, likewise. | |
1499 | (CLIBS): libctf needs symbols from libbfd: move earlier. | |
1500 | (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath | |
1501 | flags. | |
1502 | * ctfread.c: Surround in ENABLE_LIBCTF. | |
1503 | (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub. | |
1504 | * configure: Regenerate. | |
1505 | * config.in: Likewise. | |
1506 | ||
58373b80 SM |
1507 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
1508 | ||
1509 | * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup. | |
1510 | ||
277474ee SM |
1511 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
1512 | ||
1513 | * inferior.h (struct inferior) <terminal>: Change type to | |
1514 | gdb::unique_xmalloc_ptr<char>. | |
1515 | * inferior.c (inferior::~inferior): Don't free inf->terminal. | |
1516 | * infcmd.c (set_inferior_io_terminal): Don't free terminal | |
1517 | field, adjust to unique pointer. | |
1518 | (get_inferior_io_terminal): Adjust to unique pointer. | |
1519 | ||
6d74da72 AB |
1520 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1521 | ||
1522 | * riscv-tdep.c (riscv_print_registers_info): Loop over all | |
1523 | registers, not just the known core set of registers. | |
1524 | ||
2e52d038 AB |
1525 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1526 | ||
1527 | * riscv-tdep.c (riscv_register_name): Return NULL for duplicate | |
1528 | fflags, frm, and fcsr registers. | |
1529 | (riscv_register_reggroup_p): Remove unknown CSRs from save and | |
1530 | restore groups. | |
1531 | (riscv_tdesc_unknown_reg): New function. | |
1532 | (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to | |
1533 | tdesc_use_registers. | |
1534 | * riscv-tdep.h (struct gdbarch_tdep): Add | |
1535 | unknown_csrs_first_regnum, unknown_csrs_count, | |
1536 | duplicate_fflags_regnum, duplicate_frm_regnum, and | |
1537 | duplicate_fcsr_regnum fields. | |
1538 | ||
be64fd07 AB |
1539 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1540 | ||
1541 | * target-descriptions.c (tdesc_use_registers): Add new parameter a | |
1542 | callback, use the callback (when not null) to help number unknown | |
1543 | registers. | |
1544 | * target-descriptions.h (tdesc_unknown_register_ftype): New typedef. | |
1545 | (tdesc_use_registers): Add extra parameter to declaration. | |
1546 | ||
3b9fce96 AB |
1547 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1548 | ||
1549 | * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later | |
1550 | in the file. | |
1551 | (class riscv_pending_register_alias): Likewise. | |
1552 | (riscv_register_feature::register_info): Change 'required_p' field | |
1553 | to 'required', and change its type. Add 'check' member function. | |
1554 | (riscv_register_feature::register_info::check): Define new member | |
1555 | function. | |
1556 | (riscv_xreg_feature): Change initialisation of 'required' field. | |
1557 | (riscv_freg_feature): Likewise. | |
1558 | (riscv_virtual_feature): Likewise. | |
1559 | (riscv_csr_feature): Likewise. | |
1560 | (riscv_check_tdesc_feature): Take extra parameter, the csr | |
1561 | tdesc_feature, rewrite the function to use the new | |
1562 | riscv_register_feature::register_info::check function. | |
1563 | (riscv_gdbarch_init): Pass the csr tdesc_feature where needed. | |
1564 | ||
865bad26 AB |
1565 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1566 | ||
1567 | * features/Makefile: Remove all references to the deleted files | |
1568 | below. | |
1569 | * features/riscv/32bit-csr.c: Deleted. | |
1570 | * features/riscv/32bit-csr.xml: Deleted. | |
1571 | * features/riscv/64bit-csr.c: Deleted. | |
1572 | * features/riscv/64bit-csr.xml: Deleted. | |
1573 | * features/riscv/rebuild-csr-xml.sh: Deleted. | |
1574 | ||
ed69cbc8 AB |
1575 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1576 | ||
1577 | * riscv-tdep.c (struct riscv_register_feature::register_info): Fix | |
1578 | whitespace error for declaration of names member variable. | |
1579 | (struct riscv_register_feature): Add new prefer_first_name member | |
1580 | variable, and fix whitespace error in declaration of registers. | |
1581 | (riscv_xreg_feature): Initialize prefer_first_name field. | |
1582 | (riscv_freg_feature): Likewise. | |
1583 | (riscv_virtual_feature): Likewise. | |
1584 | (riscv_csr_feature): Likewise. | |
1585 | (riscv_register_name): Expand on comments. Remove register name | |
1586 | modifications for CSR and virtual registers. | |
1587 | ||
4445e8f5 AB |
1588 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1589 | ||
1590 | * riscv-tdep.c (struct riscv_register_feature): Fix whitespace | |
1591 | errors. | |
1592 | ||
767a879e AB |
1593 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1594 | ||
1595 | * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from | |
1596 | riscv-opc.h. | |
1597 | (class riscv_pending_register_alias): New class. | |
1598 | (riscv_check_tdesc_feature): Take vector of pending aliases and | |
1599 | populate it as appropriate. | |
1600 | (riscv_setup_register_aliases): Delete. | |
1601 | (riscv_gdbarch_init): Create vector of pending aliases and pass it | |
1602 | to riscv_check_tdesc_feature in all cases. Use the vector to | |
1603 | create the register aliases. | |
1604 | ||
bb6e55f3 RO |
1605 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1606 | ||
1607 | * sol2-tdep.c (sol2_static_transform_name): Remove. | |
1608 | (sol2_init_abi): Don't register it. | |
1609 | * gdbarch.sh (static_transform_name): Remove. | |
1610 | * gdbarch.c, gdbarch.h: Regenerate. | |
1611 | ||
1612 | * dbxread.c (read_dbx_symtab) <'S'>: Remove call to | |
1613 | gdbarch_static_transform_name. | |
1614 | * mdebugread.c (parse_partial_symbols) <'S'>: Likewise. | |
1615 | * stabsread.c (define_symbol) <'X'>: Remove. | |
1616 | (define_symbol) <'S'>: Remove gdbarch_static_transform_name | |
1617 | handling. | |
1618 | <'V'>: Likewise. | |
1619 | * xcoffread.c (scan_xcoff_symtab): Remove gdbarch. | |
1620 | <'S'>: Remove call to gdbarch_static_transform_name. | |
1621 | ||
c6d36836 RO |
1622 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1623 | ||
1624 | * procfs.c (procfs_pre_trace): New function. | |
1625 | (procfs_target::create_inferior): Pass it to fork_inferior. | |
1626 | ||
a7e6196b RO |
1627 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1628 | ||
1629 | * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove | |
1630 | sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o. | |
1631 | <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o, | |
1632 | sol2-tdep.o, sparc-sol2-tdep.o. | |
1633 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static. | |
1634 | * sparc-tdep.h (sparc32_sol2_init_abi): Remove. | |
1635 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static. | |
1636 | * sparc64-tdep.h (sparc64_sol2_init_abi): Remove. | |
1637 | ||
d412e696 RO |
1638 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1639 | ||
1640 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove. | |
1641 | (amd64_sol2_init_abi): Use sol2_sigtramp_p. | |
1642 | Call sol2_init_abi. | |
1643 | Remove calls to set_gdbarch_skip_solib_resolver, | |
1644 | set_gdbarch_core_pid_to_str. | |
1645 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove. | |
1646 | (i386_sol2_static_transform_name): Remove. | |
1647 | (i386_sol2_init_abi): Call sol2_init_abi. | |
1648 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
1649 | set_gdbarch_static_transform_name, | |
1650 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
1651 | Use sol2_sigtramp_p. | |
1652 | * sol2-tdep.c (sol2_pc_in_sigtramp): New function. | |
1653 | (sol2_sigtramp_p): New function. | |
1654 | (sol2_static_transform_name): New function. | |
1655 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static. | |
1656 | (sol2_init_abi): New function. | |
1657 | * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare. | |
1658 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove. | |
1659 | * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove. | |
1660 | (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p. | |
1661 | (sparc_sol2_static_transform_name): Remove. | |
1662 | (sparc32_sol2_init_abi): Call sol2_init_abi. | |
1663 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
1664 | set_gdbarch_static_transform_name, | |
1665 | set_gdbarch_skip_solib_resolver, | |
1666 | set_gdbarch_core_pid_to_str. | |
1667 | * sparc-tdep.h (sparc_sol2_pc_in_sigtramp) | |
1668 | (sparc_sol2_static_transform_name): Remove | |
1669 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just | |
1670 | call sol2_sigtramp_p. | |
1671 | (sparc64_sol2_init_abi): Call sol2_init_abi. | |
1672 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
1673 | set_gdbarch_static_transform_name, | |
1674 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
1675 | ||
a8654e7d PW |
1676 | 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1677 | ||
1678 | * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM. | |
1679 | * exec.c (validate_exec_file): If from_tty, set both | |
1680 | SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM. | |
1681 | * symfile.c (symbol_file_add_with_addrs): if always_confirm | |
1682 | and from_tty, unconditionally ask a confirmation. | |
1683 | ||
caa7fd04 AB |
1684 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1685 | ||
1686 | * target-descriptions.c (tdesc_architecture_name): Protect against | |
1687 | NULL pointer dereference. | |
1688 | (maint_print_xml_tdesc_cmd): New function. | |
1689 | (_initialize_target_descriptions): Register new 'maint print | |
1690 | xml-tdesc' command and give it the filename completer. | |
1691 | * NEWS: Mention new 'maint print xml-tdesc' command. | |
1692 | ||
fbf42f4e AB |
1693 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1694 | ||
1695 | * target-descriptions.c (class tdesc_compatible_info): New class. | |
1696 | (struct target_desc): Change type of compatible vector. | |
1697 | (tdesc_compatible_p): Update for change in type of | |
1698 | target_desc::compatible. | |
1699 | (tdesc_compatible_info_list): New function. | |
1700 | (tdesc_compatible_info_arch_name): New function. | |
1701 | (tdesc_add_compatible): Update for change in type of | |
1702 | target_desc::compatible. | |
1703 | (print_c_tdesc::visit_pre): Likewise. | |
1704 | ||
20821f4e AB |
1705 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1706 | ||
1707 | * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change | |
1708 | whitespace to underscore. | |
1709 | (maint_print_c_tdesc_cmd): Use fake filename for target | |
1710 | descriptions that came from the target. | |
1711 | (_initialize_target_descriptions): Add filename command completion | |
1712 | for 'maint print c-tdesc'. | |
1713 | ||
1fb5ee62 SM |
1714 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
1715 | ||
1716 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty | |
1717 | lines. | |
1718 | ||
fc3ecb3e SM |
1719 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
1720 | ||
1721 | * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty | |
1722 | lines. | |
1723 | (dwarf2_find_location_expression): Likewise. | |
1724 | (call_site_parameter_matches): Likewise. | |
1725 | (dwarf2_compile_expr_to_ax): Likewise. | |
1726 | (disassemble_dwarf_expression): Likewise. | |
1727 | (loclist_describe_location): Likewise. | |
1728 | ||
236ef034 PA |
1729 | 2020-06-23 Pedro Alves <palves@redhat.com> |
1730 | ||
1731 | * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or | |
1732 | progspace-and-thread.h. Include scoped-mock-context.h instead. | |
1733 | (register_to_value_test): Use scoped_mock_context. | |
1734 | * regcache.c: Include "scoped-mock-context.h". | |
1735 | (cooked_read_test): Don't error out if a target is already pushed. | |
1736 | Use scoped_mock_context. Adjust. | |
1737 | * scoped-mock-context.h: New file. | |
1738 | ||
39e7ecca AB |
1739 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1740 | ||
1741 | * ada-lang.c (ada_language_data): Delete la_is_string_type_p | |
1742 | initializer. | |
1743 | (ada_language::is_string_type_p): New member function. | |
1744 | * c-lang.c (c_language_data): Delete la_is_string_type_p | |
1745 | initializer. | |
1746 | (cplus_language_data): Likewise. | |
1747 | (asm_language_data): Likewise. | |
1748 | (minimal_language_data): Likewise. | |
1749 | * d-lang.c (d_language_data): Likewise. | |
1750 | * f-lang.c (f_is_string_type_p): Delete function, implementation | |
1751 | moved to f_language::is_string_type_p. | |
1752 | (f_language_data): Delete la_is_string_type_p initializer. | |
1753 | (f_language::is_string_type_p): New member function, | |
1754 | implementation from f_is_string_type_p. | |
1755 | * go-lang.c (go_is_string_type_p): Delete function, implementation | |
1756 | moved to go_language::is_string_type_p. | |
1757 | (go_language_data): Delete la_is_string_type_p initializer. | |
1758 | (go_language::is_string_type_p): New member function, | |
1759 | implementation from go_is_string_type_p. | |
1760 | * language.c (language_defn::is_string_type_p): Define new member | |
1761 | function. | |
1762 | (default_is_string_type_p): Make static, add comment copied from | |
1763 | header file. | |
1764 | (unknown_language_data): Delete la_is_string_type_p initializer. | |
1765 | (unknown_language::is_string_type_p): New member function. | |
1766 | (auto_language_data): Delete la_is_string_type_p initializer. | |
1767 | (auto_language::is_string_type_p): New member function. | |
1768 | * language.h (language_data): Delete la_is_string_type_p field. | |
1769 | (language_defn::is_string_type_p): Declare new function. | |
1770 | (default_is_string_type_p): Delete desclaration, move comment to | |
1771 | definition. | |
1772 | * m2-lang.c (m2_is_string_type_p): Delete function, implementation | |
1773 | moved to m2_language::is_string_type_p. | |
1774 | (m2_language_data): Delete la_is_string_type_p initializer. | |
1775 | (m2_language::is_string_type_p): New member function, | |
1776 | implementation from m2_is_string_type_p. | |
1777 | * objc-lang.c (objc_language_data): Delete la_is_string_type_p | |
1778 | initializer. | |
1779 | * opencl-lang.c (opencl_language_data): Likewise. | |
1780 | * p-lang.c (pascal_is_string_type_p): Delete function, | |
1781 | implementation moved to pascal_language::is_string_type_p. | |
1782 | (pascal_language_data): Delete la_is_string_type_p initializer. | |
1783 | (pascal_language::is_string_type_p): New member function, | |
1784 | implementation from pascal_is_string_type_p. | |
1785 | * rust-lang.c (rust_is_string_type_p): Delete function, | |
1786 | implementation moved to rust_language::is_string_type_p. | |
1787 | (rust_language_data): Delete la_is_string_type_p initializer. | |
1788 | (rust_language::is_string_type_p): New member function, | |
1789 | implementation from rust_is_string_type_p. | |
1790 | * valprint.c (val_print_scalar_or_string_type_p): Update call to | |
1791 | is_string_type_p. | |
1792 | ||
4ffc13fb AB |
1793 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1794 | ||
1795 | * ada-lang.c (ada_language_data): Delete la_print_typedef | |
1796 | initializer. | |
1797 | (ada_language::print_typedef): New member function. | |
1798 | * c-lang.c (c_language_data): Delete la_print_typedef initializer. | |
1799 | (cplus_language_data): Likewise. | |
1800 | (asm_language_data): Likewise. | |
1801 | (minimal_language_data): Likewise. | |
1802 | * d-lang.c (d_language_data): Likewise. | |
1803 | * f-lang.c (f_language_data): Likewise. | |
1804 | (f_language::print_typedef): New member function. | |
1805 | * go-lang.c (go_language_data): Delete la_print_typedef | |
1806 | initializer. | |
1807 | * language.c (language_defn::print_typedef): Define member | |
1808 | function. | |
1809 | (unknown_language_data): Delete la_print_typedef initializer. | |
1810 | (unknown_language::print_typedef): New member function. | |
1811 | (auto_language_data): Delete la_print_typedef initializer. | |
1812 | (auto_language::print_typedef): New member function. | |
1813 | * language.h (language_data): Delete la_print_typedef field. | |
1814 | (language_defn::print_typedef): Declare new member function. | |
1815 | (LA_PRINT_TYPEDEF): Update call to print_typedef. | |
1816 | (default_print_typedef): Delete declaration. | |
1817 | * m2-lang.c (m2_language_data): Delete la_print_typedef | |
1818 | initializer. | |
1819 | (m2_language::print_typedef): New member function. | |
1820 | * objc-lang.c (objc_language_data): Delete la_print_typedef | |
1821 | initializer. | |
1822 | * opencl-lang.c (opencl_language_data): Likewise. | |
1823 | * p-lang.c (pascal_language_data): Likewise. | |
1824 | (pascal_language::print_typedef): New member function. | |
1825 | * rust-lang.c (rust_print_typedef): Delete function, | |
1826 | implementation moved to rust_language::print_typedef. | |
1827 | (rust_language): Delete la_print_typedef initializer. | |
1828 | (rust_language::print_typedef): New member function, | |
1829 | implementation from rust_print_typedef. | |
1830 | * typeprint.c (default_print_typedef): Delete. | |
1831 | ||
d711ee67 AB |
1832 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1833 | ||
1834 | * ada-lang.c (ada_language_data): Delete la_printstr initializer. | |
1835 | (ada_language::printstr): New member function. | |
1836 | * c-lang.c (c_language_data): Delete la_printstr initializer. | |
1837 | (cplus_language_data): Likewise. | |
1838 | (asm_language_data): Likewise. | |
1839 | (minimal_language_data): Likewise. | |
1840 | * d-lang.c (d_language_data): Likewise. | |
1841 | * f-lang.c (f_printstr): Rename to f_language::printstr. | |
1842 | (f_language_data): Delete la_printstr initializer. | |
1843 | (f_language::printstr): New member function, implementation from | |
1844 | f_printstr. | |
1845 | * go-lang.c (go_language_data): Delete la_printstr initializer. | |
1846 | * language.c (language_defn::printstr): Define new member | |
1847 | function. | |
1848 | (unk_lang_printstr): Delete. | |
1849 | (unknown_language_data): Delete la_printstr initializer. | |
1850 | (unknown_language::printstr): New member function. | |
1851 | (auto_language_data): Delete la_printstr initializer. | |
1852 | (auto_language::printstr): New member function. | |
1853 | * language.h (language_data): Delete la_printstr field. | |
1854 | (language_defn::printstr): Declare new member function. | |
1855 | (LA_PRINT_STRING): Update call to printstr. | |
1856 | * m2-lang.c (m2_printstr): Rename to m2_language::printstr. | |
1857 | (m2_language_data): Delete la_printstr initializer. | |
1858 | (m2_language::printstr): New member function, implementation from | |
1859 | m2_printstr. | |
1860 | * objc-lang.c (objc_language_data): Delete la_printstr | |
1861 | initializer. | |
1862 | * opencl-lang.c (opencl_language_data): Likewise. | |
1863 | * p-lang.c (pascal_printstr): Rename to pascal_language::printstr. | |
1864 | (pascal_language_data): Delete la_printstr initializer. | |
1865 | (pascal_language::printstr): New member function, implementation | |
1866 | from pascal_printstr. | |
1867 | * p-lang.h (pascal_printstr): Delete declaration. | |
1868 | * rust-lang.c (rust_printstr): Update header comment. | |
1869 | (rust_language_data): Delete la_printstr initializer. | |
1870 | (rust_language::printstr): New member function. | |
1871 | ||
52b50f2c AB |
1872 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1873 | ||
1874 | * ada-lang.c (ada_language_data): Delete la_printchar initializer. | |
1875 | (ada_language::printchar): New member function. | |
1876 | * c-lang.c (c_language_data): Delete la_printchar initializer. | |
1877 | (cplus_language_data): Likewise. | |
1878 | (asm_language_data): Likewise. | |
1879 | (minimal_language_data): Likewise. | |
1880 | * d-lang.c (d_language_data): Likewise. | |
1881 | * f-lang.c (f_printchar): Rename to f_language::printchar. | |
1882 | (f_language_data): Delete la_printchar initializer. | |
1883 | (f_language::printchar): New member function, implementation from | |
1884 | f_printchar. | |
1885 | * go-lang.c (go_language_data): Delete la_printchar initializer. | |
1886 | * language.c (unk_lang_printchar): Delete. | |
1887 | (language_defn::printchar): Define new member function. | |
1888 | (unknown_language_data): Delete la_printchar initializer. | |
1889 | (unknown_language::printchar): New member function. | |
1890 | (auto_language_data): Delete la_printchar initializer. | |
1891 | (auto_language::printchar): New member function. | |
1892 | * language.h (language_data): Delete la_printchar field. | |
1893 | (language_defn::printchar): Declare new member function. | |
1894 | (LA_PRINT_CHAR): Update call to printchar. | |
1895 | * m2-lang.c (m2_language_data): Delete la_printchar initializer. | |
1896 | (m2_language::printchar): New member function. | |
1897 | * objc-lang.c (objc_language_data): Delete la_printchar | |
1898 | initializer. | |
1899 | * opencl-lang.c (opencl_language_data): Likewise. | |
1900 | * p-lang.c (pascal_language_data): Delete la_printchar | |
1901 | initializer. | |
1902 | (pascal_language::printchar): New member function. | |
1903 | * rust-lang.c (rust_printchar): Rename to | |
1904 | rust_language::printchar. | |
1905 | (rust_language_data): Delete la_printchar initializer. | |
1906 | (rust_language::printchar): New member function, implementation | |
1907 | from rust_printchar. | |
1908 | ||
ec8cec5b AB |
1909 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1910 | ||
1911 | * ada-lang.c (emit_char): Renamed to ada_language::emitchar. | |
1912 | (ada_language_data): Delete la_emitchar initializer. | |
1913 | (ada_language::emitchar): New member function, implementation from | |
1914 | emit_char. | |
1915 | * c-lang.c (c_language_data): Delete la_emitchar initializer. | |
1916 | (cplus_language_data): Likewise. | |
1917 | (asm_language_data): Likewise. | |
1918 | (minimal_language_data): Likewise. | |
1919 | * d-lang.c (d_language_data): Likewise. | |
1920 | * f-lang.c (f_emit_char): Rename to f_language::emitchar. | |
1921 | (f_language_data): Delete la_emitchar initializer. | |
1922 | (f_language::emitchar): New member function, implementation from | |
1923 | f_emit_char. | |
1924 | * go-lang.c (go_language_data): Delete la_emitchar initializer. | |
1925 | * language.c (unk_lang_emit_char): Delete. | |
1926 | (language_defn::emitchar): New member function definition. | |
1927 | (unknown_language_data): Delete la_emitchar initializer. | |
1928 | (unknown_language::emitchar): New member function. | |
1929 | (auto_language_data): Delete la_emitchar initializer. | |
1930 | (auto_language::emitchar): New member function. | |
1931 | * language.h (language_data): Delete la_emitchar field. | |
1932 | (language_defn::emitchar): New member field declaration. | |
1933 | (LA_EMIT_CHAR): Update call to emitchar. | |
1934 | * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar. | |
1935 | (m2_language_data): Delete la_emitchar initializer. | |
1936 | (m2_language::emitchar): New member function, implementation from | |
1937 | m2_emit_char. | |
1938 | * objc-lang.c (objc_language_data): Delete la_emitchar | |
1939 | initializer. | |
1940 | * opencl-lang.c (opencl_language_data): Likewise. | |
1941 | * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar. | |
1942 | (pascal_language_data): Delete la_emitchar initializer. | |
1943 | (pascal_language::emitchar): New member function, implementation | |
1944 | from pascal_emit_char. | |
1945 | * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar. | |
1946 | (rust_language_data): Delete la_emitchar initializer. | |
1947 | (rust_language::emitchar): New member function, implementation | |
1948 | from rust_emitchar. | |
1949 | ||
1bf9c363 AB |
1950 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1951 | ||
1952 | * ada-lang.c (resolve): Rename to ada_language::post_parser. | |
1953 | (ada_language_data): Delete la_post_parser initializer. | |
1954 | (ada_language::post_parser): New member function. | |
1955 | * c-lang.c (c_language_data): Delete la_post_parser initializer. | |
1956 | (cplus_language_data): Likewise. | |
1957 | (asm_language_data): Likewise. | |
1958 | (minimal_language_data): Likewise. | |
1959 | * d-lang.c (d_language_data): Likewise. | |
1960 | * f-lang.c (f_language_data): Likewise. | |
1961 | * go-lang.c (go_language_data): Likewise. | |
1962 | * language.c (unknown_language_data): Likewise. | |
1963 | (auto_language_data): Likewise. | |
1964 | * language.h (language_data): Delete la_post_parser field. | |
1965 | (language_defn::post_parser): New member function. | |
1966 | * m2-lang.c (m2_language_data): Delete la_post_parser initializer. | |
1967 | * objc-lang.c (objc_language_data): Likewise. | |
1968 | * opencl-lang.c (opencl_language_data): Likewise. | |
1969 | * p-lang.c (pascal_language_data): Likewise. | |
1970 | * parse.c (parse_exp_in_context): Update call to post_parser. | |
1971 | (null_post_parser): Delete definition. | |
1972 | * parser-defs.h (null_post_parser): Delete declaration. | |
1973 | * rust-lang.c (rust_language_data): Delete la_post_parser | |
1974 | initializer. | |
1975 | ||
87afa652 AB |
1976 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1977 | ||
1978 | * ada-lang.c (parse): Rename to ada_language::parser. | |
1979 | (ada_language_data): Delete la_parser initializer. | |
1980 | (ada_language::parser): New member function, implementation from | |
1981 | parse. | |
1982 | * c-lang.c (c_language_data): Delete la_parser initializer. | |
1983 | (cplus_language_data): Likewise. | |
1984 | (asm_language_data): Likewise. | |
1985 | (minimal_language_data): Likewise. | |
1986 | * d-lang.c (d_language_data): Likewise. | |
1987 | (d_language::parser): New member function. | |
1988 | * f-lang.c (f_language_data): Delete la_parser initializer. | |
1989 | (f_language::parser): New member function. | |
1990 | * go-lang.c (go_language_data): Delete la_parser initializer. | |
1991 | (go_language::parser): New member function. | |
1992 | * language.c (unk_lang_parser): Delete. | |
1993 | (language_defn::parser): Define new member function. | |
1994 | (unknown_language_data): Delete la_parser initializer. | |
1995 | (unknown_language::parser): New member function. | |
1996 | (auto_language_data): Delete la_parser initializer. | |
1997 | (auto_language::parser): New member function. | |
1998 | * language.h (language_data): Delete la_parser field. | |
1999 | (language_defn::parser): Declare new member function. | |
2000 | * m2-lang.c (m2_language_data): Delete la_parser initializer. | |
2001 | (m2_language::parser): New member function. | |
2002 | * objc-lang.c (objc_language_data): Delete la_parser initializer. | |
2003 | * opencl-lang.c (opencl_language_data): Likewise. | |
2004 | * p-lang.c (pascal_language_data): Likewise. | |
2005 | (pascal_language::parser): New member function. | |
2006 | * parse.c (parse_exp_in_context): Update call to parser. | |
2007 | * rust-lang.c (rust_language_data): Delete la_parser initializer. | |
2008 | (rust_language::parser): New member function. | |
2009 | ||
37825800 AB |
2010 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2011 | ||
2012 | * top.c (print_gdb_configuration): Print --with-python-libdir | |
2013 | configuration value. | |
2014 | ||
5b860c93 PW |
2015 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2016 | ||
2017 | * NEWS: Mention change to the alias command. | |
2018 | ||
cf00cd6f PW |
2019 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2020 | ||
2021 | * cli/cli-cmds.c (lookup_cmd_for_default_args) | |
2022 | (alias_command_completer) | |
2023 | (make_alias_options_def_group): New functions. | |
2024 | (alias_opts, alias_option_defs): New struct and array. | |
2025 | (alias_usage_error): Update usage. | |
2026 | (alias_command): Handles optional DEFAULT-ARGS... arguments. | |
2027 | Use option framework. | |
2028 | (_initialize_cli_cmds): Update alias command help. | |
2029 | Update aliases command help. | |
2030 | (show_user): | |
2031 | Add NULL for new default_args lookup_cmd argument. | |
2032 | (valid_command_p): Rename to validate_aliased_command. | |
2033 | Add NULL for new default_args lookup_cmd argument. Verify that the | |
2034 | aliased_command has no default args. | |
2035 | * cli/cli-decode.c (help_cmd): Show aliases definitions. | |
2036 | (lookup_cmd_1, lookup_cmd): New argument default_args. | |
2037 | (add_alias_cmd): | |
2038 | Add NULL for new default_args lookup_cmd argument. | |
2039 | (print_help_for_command): Show default args under the layout | |
2040 | alias some_alias = some_aliased_cmd some_alias_default_arg. | |
2041 | * cli/cli-decode.h (struct cmd_list_element): New member default_args. | |
2042 | xfree default_args in destructor. | |
2043 | * cli/cli-script.c (process_next_line, do_define_command): | |
2044 | Add NULL for new default_args lookup_cmd argument. | |
2045 | * command.h: Declare new default_args argument in lookup_cmd | |
2046 | and lookup_cmd_1. | |
2047 | * completer.c (complete_line_internal_1): | |
2048 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
2049 | * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. | |
2050 | * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p): | |
2051 | Likewise. | |
2052 | * infcmd.c (_initialize_infcmd): Likewise. | |
2053 | * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise. | |
2054 | * python/py-cmd.c (gdbpy_parse_command_name): Likewise. | |
2055 | * python/py-param.c (add_setshow_generic): Likewise. | |
2056 | * remote.c (_initialize_remote): Likewise. | |
2057 | * top.c (execute_command): Prepend default_args if command has some. | |
2058 | (set_verbose): | |
2059 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
2060 | * tracepoint.c (validate_actionline, encode_actions_1): | |
2061 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
2062 | ||
bd920864 TBA |
2063 | 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2064 | ||
2065 | * jit.c (jit_read_descriptor): Use bool as the return type. | |
2066 | (jit_breakpoint_re_set_internal): Use bool as the return type. | |
2067 | Invert the return value logic; return true if the jit breakpoint | |
2068 | has been successfully initialized. | |
2069 | (jit_inferior_init): Update the call to | |
2070 | jit_breakpoint_re_set_internal. | |
2071 | ||
f8098322 PA |
2072 | 2020-06-22 Pedro Alves <palves@redhat.com> |
2073 | ||
2074 | PR gdb/25939 | |
2075 | * procfs.c (procfs_target::wait): Don't reference inferior_ptid. | |
2076 | Use the current inferior instead. Don't return | |
2077 | TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and | |
2078 | wait again. | |
2079 | * sol-thread.c (sol_thread_target::wait): Don't reference | |
2080 | inferior_ptid. | |
2081 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs) | |
2082 | (sol_update_thread_list_callback): Use the current inferior's pid | |
2083 | instead of inferior_ptid. | |
2084 | ||
196535a6 RO |
2085 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2086 | ||
2087 | * procfs.c: Cleanup many comments. | |
2088 | ||
2089 | (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG) | |
2090 | (AFTER_WATCHFLAG): Replace by value. | |
2091 | ||
2092 | (MAIN_PROC_NAME_FORMAT): Inline ... | |
2093 | (create_procinfo): ... here. | |
2094 | ||
2095 | (procfs_debug_inferior): Remove SYS_exec handling. | |
2096 | (syscall_is_exec): Likewise. | |
2097 | (procfs_set_exec_trap): Likewise. | |
2098 | ||
2099 | (syscall_is_lwp_exit): Inline in callers. | |
2100 | (syscall_is_exit): Likewise. | |
2101 | (syscall_is_exec): Likewise. | |
2102 | (syscall_is_lwp_create): Likewise. | |
2103 | ||
2104 | (invalidate_cache): Remove #if 0 code. | |
2105 | ||
2106 | (make_signal_thread_runnable): Remove. | |
2107 | (procfs_target::resume): Remove #if 0 code. | |
2108 | ||
cf6f3e86 RO |
2109 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2110 | ||
2111 | PR gdb/25939 | |
2112 | * procfs.c (procfs_target::procfs_init_inferior): Move push_target | |
2113 | call ... | |
2114 | (procfs_target::create_inferior): ... here. | |
2115 | ||
48e9cc84 PW |
2116 | 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2117 | ||
2118 | * exec.c (validate_exec_file): Ensure the build-id is up to | |
2119 | date by calling reopen_exec_file (that checks file timestamp | |
2120 | to decide to re-read the file). | |
2121 | ||
3922b302 PA |
2122 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2123 | ||
2124 | PR gdb/25412 | |
2125 | * gdbthread.h (delete_thread, delete_thread_silent) | |
2126 | (find_thread_ptid): Update comments. | |
2127 | * thread.c (current_thread_): New global. | |
2128 | (is_current_thread): Move higher, and reimplement. | |
2129 | (inferior_thread): Reimplement. | |
2130 | (set_thread_exited): Use bool. Add assertions. | |
2131 | (add_thread_silent): Simplify thread-reuse handling by always | |
2132 | calling delete_thread. | |
2133 | (delete_thread): Remove intro comment. | |
2134 | (find_thread_ptid): Skip exited threads. | |
2135 | (switch_to_thread_no_regs): Write to current_thread_. | |
2136 | (switch_to_no_thread): Check CURRENT_THREAD_ instead of | |
2137 | INFERIOR_PTID. Clear current_thread_. | |
2138 | ||
6dbdab44 PA |
2139 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2140 | ||
2141 | * aix-thread.c (pd_update): Use switch_to_thread. | |
2142 | ||
2da4b788 PA |
2143 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2144 | ||
2145 | * ravenscar-thread.c (ravenscar_thread_target): Update. | |
2146 | (ravenscar_thread_target::update_inferior_ptid): Rename to ... | |
2147 | (ravenscar_thread_target::add_active_thread): ... this. Don't | |
2148 | set m_base_ptid here. Update to avoid referencing inferior_ptid. | |
2149 | (ravenscar_thread_target::wait): Don't write to inferior_ptid. | |
2150 | ||
50838d1b PA |
2151 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2152 | ||
2153 | * nat/windows-nat.c (current_windows_thread): Remove. | |
2154 | * nat/windows-nat.h (current_windows_thread): Remove. | |
2155 | * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint): | |
2156 | Adjust. | |
2157 | (display_selectors): Adjust to fetch the current | |
2158 | windows_thread_info based on inferior_ptid. | |
2159 | (fake_create_process): No longer write to current_windows_thread. | |
2160 | (windows_nat_target::get_windows_debug_event): | |
2161 | Don't set inferior_ptid or current_windows_thread. | |
2162 | (windows_nat_target::wait): Adjust to not rely on | |
2163 | current_windows_thread. | |
2164 | (do_initial_windows_stuff): Now a method of windows_nat_target. | |
2165 | Switch to the last_ptid thread. | |
2166 | (windows_nat_target::attach): Adjust. | |
2167 | (windows_nat_target::detach): Use switch_to_no_thread instead of | |
2168 | writing to inferior_ptid directly. | |
2169 | (windows_nat_target::create_inferior): Adjust. | |
2170 | ||
31ce04e9 PA |
2171 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2172 | ||
2173 | * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid. | |
2174 | ||
1ee1a363 PA |
2175 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2176 | ||
2177 | * go32-nat.c (go32_nat_target::create_inferior): Switch to thread | |
2178 | after creating it, instead of writing to inferior_ptid. Don't | |
2179 | write to inferior_ptid. | |
2180 | ||
6d350754 PA |
2181 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2182 | ||
2183 | * fork-child.c (postfork_hook): Don't write to inferior_ptid. | |
2184 | ||
5d971d48 PA |
2185 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2186 | ||
2187 | * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding | |
2188 | it, instead of writing to inferior_ptid. | |
2189 | ||
86e57d1b PA |
2190 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2191 | ||
2192 | * btrace.c (btrace_fetch): Use switch_to_thread instead of writing | |
2193 | to inferior_ptid. | |
2194 | ||
f2e1c129 PA |
2195 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2196 | ||
2197 | * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread | |
2198 | instead of writing to inferior_ptid directly. | |
2199 | ||
60db1b85 PA |
2200 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2201 | ||
2202 | * corelow.c (core_target::close): Use switch_to_no_thread instead | |
2203 | of writing to inferior_ptid directly. | |
2204 | (add_to_thread_list, core_target_open): Use switch_to_thread | |
2205 | instead of writing to inferior_ptid directly. | |
2206 | ||
fe7d6a8d PA |
2207 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2208 | ||
2209 | * darwin-nat.c (darwin_nat_target::decode_message): Don't write to | |
2210 | inferior_ptid. | |
2211 | (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid | |
2212 | inferior_ptid. | |
2213 | (darwin_attach_pid): Use switch_to_no_thread instead of writing to | |
2214 | inferior_ptid directly. | |
2215 | (darwin_nat_target::init_thread_list): Switch to thread, instead | |
2216 | of writing to inferior_ptid. | |
2217 | (darwin_nat_target::attach): Don't write to inferior_ptid. | |
2218 | (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid. | |
2219 | ||
975f8708 PA |
2220 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2221 | ||
2222 | * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added | |
2223 | thread. | |
2224 | (gnu_nat_target::attach): Don't write to inferior_ptid directly. | |
2225 | Instead use switch_to_thread. | |
2226 | (gnu_nat_target::detach): Use switch_to_no_thread | |
2227 | instead of writing to inferior_ptid directly. Used passed-in | |
2228 | inferior instead of looking up the inferior by pid. | |
2229 | ||
1a204730 PA |
2230 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2231 | ||
2232 | * go32-nat.c (go32_nat_target::create_inferior): Don't write to | |
2233 | inferior_ptid. | |
2234 | ||
ebe84f23 PA |
2235 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2236 | ||
2237 | * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid | |
2238 | inferior_ptid. | |
2239 | (nto_procfs_target::attach): Avoid inferior_ptid. Switch to | |
2240 | thread. | |
2241 | (nto_procfs_target::detach): Avoid referencing | |
2242 | inferior_ptid. Use switch_to_no_thread instead of writing to | |
2243 | inferior_ptid directly. | |
2244 | (nto_procfs_target::mourn_inferior): Use switch_to_no_thread | |
2245 | instead of writing to inferior_ptid directly. | |
2246 | (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch | |
2247 | to thread. | |
2248 | ||
191f02e5 PA |
2249 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2250 | ||
2251 | * remote-sim.c (gdbsim_target::create_inferior): Switch to thread | |
2252 | after creating it, instead of writing to inferior_ptid. | |
2253 | (gdbsim_target_open): Use switch_to_no_thread instead of writing | |
2254 | to inferior_ptid directly. | |
2255 | (gdbsim_target::wait): Don't write to inferior_ptid. | |
2256 | ||
0ac55310 PA |
2257 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2258 | ||
2259 | * remote.c (remote_target::remote_notice_new_inferior): Use | |
2260 | switch_to_thread instead of writing to inferior_ptid directly. | |
2261 | (remote_target::add_current_inferior_and_thread): Use | |
2262 | switch_to_no_thread instead of writing to inferior_ptid directly. | |
2263 | (extended_remote_target::attach): Use switch_to_inferior_no_thread | |
2264 | and switch_to_thread instead of using set_current_inferior or | |
2265 | writing to inferior_ptid directly. | |
2266 | ||
5233f39b PA |
2267 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2268 | ||
2269 | * tracectf.c (ctf_target_open): Switch to added thread instead of | |
2270 | writing to inferior_ptid directly. | |
2271 | (ctf_target::close): Use switch_to_no_thread instead of writing to | |
2272 | inferior_ptid directly. | |
2273 | ||
087e161b PA |
2274 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2275 | ||
2276 | * tracefile-tfile.c (tfile_target_open): Don't write to | |
2277 | inferior_ptid directly, instead switch to added thread. | |
2278 | (tfile_target::close): Use switch_to_no_thread instead of writing | |
2279 | to inferior_ptid directly. | |
2280 | ||
7fb43e53 PA |
2281 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2282 | ||
2283 | * procfs.c (procfs_target::attach): Don't write to inferior_ptid. | |
2284 | (procfs_target::detach): Use switch_to_no_thread | |
2285 | instead of writing to inferior_ptid directly. | |
2286 | (do_attach): Change return type to void. Switch to the added | |
2287 | thread. | |
2288 | (procfs_target::create_inferior): Switch to the added thread. | |
2289 | (procfs_do_thread_registers): Don't write to inferior_ptid. | |
2290 | ||
18493a00 PA |
2291 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2292 | ||
2293 | * infrun.c (generic_mourn_inferior): Use switch_to_thread instead | |
2294 | of writing to inferior_ptid. | |
2295 | (scoped_restore_exited_inferior): Delete. | |
2296 | (handle_vfork_child_exec_or_exit): Simplify using | |
2297 | scoped_restore_current_pspace_and_thread. Use switch_to_thread | |
2298 | instead of writing to inferior_ptid. | |
2299 | (THREAD_STOPPED_BY): Delete. | |
2300 | (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint) | |
2301 | (thread_stopped_by_hw_breakpoint): Delete. | |
2302 | (save_waitstatus): Use | |
2303 | scoped_restore_current_thread+switch_to_thread, and call | |
2304 | target_stopped_by_watchpoint instead of | |
2305 | thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint | |
2306 | instead of thread_stopped_by_sw_breakpoint, and | |
2307 | target_stopped_by_hw_breakpoint instead of | |
2308 | thread_stopped_by_hw_breakpoint. | |
2309 | (handle_inferior_event) | |
2310 | <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to | |
2311 | inferior_ptid directly, nor | |
2312 | set_current_inferior/set_current_program_space. Use | |
2313 | switch_to_thread / switch_to_inferior_no_thread instead. | |
2314 | ||
a0776b13 PA |
2315 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2316 | ||
2317 | * target.c (generic_mourn_inferior): Use switch_to_no_thread | |
2318 | instead of writing to inferior_ptid. | |
2319 | ||
6155c136 PA |
2320 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2321 | ||
2322 | * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the | |
2323 | added thread. | |
2324 | (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch | |
2325 | to the added thread. | |
2326 | (inf_ptrace_target::detach_success): Use switch_to_no_thread | |
2327 | instead of writing to inferior_ptid. | |
2328 | ||
c5316fc6 PA |
2329 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2330 | ||
2331 | * gdbarch-selftests.c: Include "progspace-and-thread.h". | |
2332 | (register_to_value_test): Mock a program_space too. Heap-allocate | |
2333 | the address space. Don't write to inferior_ptid. Use | |
2334 | switch_to_thread instead. | |
2335 | ||
8df01799 PA |
2336 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2337 | ||
2338 | * linux-tdep.c (find_signalled_thread(thread_info *,void *)): | |
2339 | Delete. | |
2340 | (find_signalled_thread()): New, factored out from | |
2341 | linux_make_corefile_notes and adjusted to handle exited threads. | |
2342 | (linux_make_corefile_notes): Adjust to use the new | |
2343 | find_signalled_thread. | |
2344 | ||
41792d68 PA |
2345 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2346 | ||
2347 | * linux-tdep.c (btrace_fetch): Save/restore current thread instead | |
2348 | of saving/restoring inferior_ptid. | |
2349 | ||
612f258a TT |
2350 | 2020-06-17 Tom Tromey <tom@tromey.com> |
2351 | ||
2352 | * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward) | |
2353 | (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't | |
2354 | declare. | |
2355 | * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove. | |
2356 | ||
efb763a5 SM |
2357 | 2020-06-15 Simon Marchi <simon.marchi@efficios.com> |
2358 | ||
2359 | * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence | |
2360 | of partial symtabs. | |
2361 | ||
2951f6c0 SM |
2362 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
2363 | ||
2364 | * regformats/reg-arm.dat: Remove. | |
2365 | * regformats/reg-bfin.dat: Remove. | |
2366 | * regformats/reg-cris.dat: Remove. | |
2367 | * regformats/reg-crisv32.dat: Remove. | |
2368 | * regformats/reg-m32r.dat: Remove. | |
2369 | * regformats/reg-tilegx.dat: Remove. | |
2370 | * regformats/reg-tilegx32.dat: Remove. | |
2371 | ||
7d458ea5 SM |
2372 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
2373 | ||
2374 | * features/Makefile (WHICH): Remove arm files. | |
2375 | * regformats/arm/arm-with-iwmmxt.dat: Remove. | |
2376 | * regformats/arm/arm-with-neon.dat: Remove. | |
2377 | * regformats/arm/arm-with-vfpv2.dat: Remove. | |
2378 | * regformats/arm/arm-with-vfpv3.dat: Remove. | |
2379 | ||
3af96c0d SM |
2380 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
2381 | ||
2382 | * features/Makefile (XMLTOC): Remove rx.xml. | |
2383 | ||
b25e22fd PA |
2384 | 2020-06-17 Pedro Alves <palves@redhat.com> |
2385 | ||
2386 | * gdbthread.h (thread_control_state) <trap_expected> Update | |
2387 | comments. | |
2388 | ||
a78a19b1 AB |
2389 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2390 | ||
2391 | * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to | |
2392 | ada_language::lookup_symbol_nonlocal. | |
2393 | (ada_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
2394 | (ada_language::lookup_symbol_nonlocal): New member function, | |
2395 | implementation from ada_lookup_symbol_nonlocal. | |
2396 | * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal | |
2397 | initializer. | |
2398 | (cplus_language_data): Delete la_lookup_symbol_nonlocal | |
2399 | initializer. | |
2400 | (cplus_language::lookup_symbol_nonlocal): New member function. | |
2401 | (asm_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
2402 | (minimal_language_data) Likewise. | |
2403 | * cp-namespace.c (cp_lookup_nested_symbol): Update comment. | |
2404 | * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal | |
2405 | initializer. | |
2406 | (d_language::lookup_symbol_nonlocal): New member function. | |
2407 | * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal | |
2408 | initializer. | |
2409 | (f_language::lookup_symbol_nonlocal): New member function. | |
2410 | * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal | |
2411 | initializer. | |
2412 | * language.c (unknown_language_data): Likewise. | |
2413 | (auto_language_data): Likewise. | |
2414 | * language.h (language_data): Delete la_lookup_symbol_nonlocal | |
2415 | field. | |
2416 | (language_defn::lookup_symbol_nonlocal): New member function. | |
2417 | * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal | |
2418 | initializer. | |
2419 | * objc-lang.c (objc_language_data): Likewise. | |
2420 | * opencl-lang.c (opencl_language_data): Likewise. | |
2421 | * p-lang.c (pascal_language_data): Likewise. | |
2422 | * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to | |
2423 | rust_language::lookup_symbol_nonlocal. | |
2424 | (rust_language_data): Delete la_lookup_symbol_nonlocal | |
2425 | initializer. | |
2426 | (rust_language::lookup_symbol_nonlocal): New member function, | |
2427 | implementation from rust_lookup_symbol_nonlocal. | |
2428 | * symtab.c (lookup_symbol_aux): Update call to | |
2429 | lookup_symbol_nonlocal. | |
2430 | (basic_lookup_symbol_nonlocal): Rename to... | |
2431 | (language_defn::lookup_symbol_nonlocal): ...this, and update | |
2432 | header comment. Remove language_defn parameter, and replace with | |
2433 | uses of `this'. | |
2434 | * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration. | |
2435 | ||
ebe2334e AB |
2436 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2437 | ||
2438 | * ada-lang.c (ada_language_data): Delete la_value_print_inner | |
2439 | initializer. | |
2440 | (ada_language::value_print_inner): New member function. | |
2441 | * c-lang.c (c_language_data): Delete la_value_print_inner | |
2442 | initializer. | |
2443 | (cplus_language_data): Likewise. | |
2444 | (asm_language_data): Likewise. | |
2445 | (minimal_language_data): Likewise. | |
2446 | * d-lang.c (d_language_data): Likewise. | |
2447 | (d_language::value_print_inner): New member function. | |
2448 | * f-lang.c (f_language_data): Delete la_value_print_inner | |
2449 | initializer. | |
2450 | (f_language::value_print_inner): New member function. | |
2451 | * f-lang.h (f_value_print_innner): Rename to... | |
2452 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
2453 | * f-valprint.c (f_value_print_innner): Rename to... | |
2454 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
2455 | * go-lang.c (go_language_data): Delete la_value_print_inner | |
2456 | initializer. | |
2457 | (go_language::value_print_inner): New member function. | |
2458 | * language.c (language_defn::value_print_inner): Define new member | |
2459 | function. | |
2460 | (unk_lang_value_print_inner): Delete. | |
2461 | (unknown_language_data): Delete la_value_print_inner initializer. | |
2462 | (unknown_language::value_print_inner): New member function. | |
2463 | (auto_language_data): Delete la_value_print_inner initializer. | |
2464 | (auto_language::value_print_inner): New member function. | |
2465 | * language.h (language_data): Delete la_value_print_inner field. | |
2466 | (language_defn::value_print_inner): Delcare new member function. | |
2467 | * m2-lang.c (m2_language_data): Delete la_value_print_inner | |
2468 | initializer. | |
2469 | (m2_language::value_print_inner): New member function. | |
2470 | * objc-lang.c (objc_language_data): Delete la_value_print_inner | |
2471 | initializer. | |
2472 | * opencl-lang.c (opencl_language_data): Likewise. | |
2473 | * p-lang.c (pascal_language_data): Likewise. | |
2474 | (pascal_language::value_print_inner): New member function. | |
2475 | * rust-lang.c (rust_language_data): Delete la_value_print_inner | |
2476 | initializer. | |
2477 | (rust_language::value_print_inner): New member function. | |
2478 | * valprint.c (do_val_print): Update call to value_print_inner. | |
2479 | ||
a1d1fa3e AB |
2480 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2481 | ||
2482 | * ada-lang.c (ada_language_data): Delete la_value_print | |
2483 | initializer. | |
2484 | (ada_language::value_print): New member function. | |
2485 | * c-lang.c (c_language_data): Delete la_value_print initializer. | |
2486 | (cplus_language_data): Likewise. | |
2487 | (asm_language_data): Likewise. | |
2488 | (minimal_language_data): Likewise. | |
2489 | * d-lang.c (d_language_data): Likewise. | |
2490 | * f-lang.c (f_language_data): Likewise. | |
2491 | * go-lang.c (go_language_data): Likewise. | |
2492 | * language.c (unk_lang_value_print): Delete. | |
2493 | (language_defn::value_print): Define new member function. | |
2494 | (unknown_language_data): Delete la_value_print initializer. | |
2495 | (unknown_language::value_print): New member function. | |
2496 | (auto_language_data): Delete la_value_print initializer. | |
2497 | (auto_language::value_print): New member function. | |
2498 | * language.h (language_data): Delete la_value_print field. | |
2499 | (language_defn::value_print): Declare new member function. | |
2500 | (LA_VALUE_PRINT): Update call to value_print. | |
2501 | * m2-lang.c (m2_language_data): Delete la_value_print initializer. | |
2502 | * objc-lang.c (objc_language_data): Likewise. | |
2503 | * opencl-lang.c (opencl_language_data): Likewise. | |
2504 | * p-lang.c (pascal_language_data): Likewise. | |
2505 | (pascal_language::value_print): New member function. | |
2506 | * rust-lang.c (rust_language_data): Delete la_value_print | |
2507 | initializer. | |
2508 | ||
f16a9f57 AB |
2509 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2510 | ||
2511 | * ada-lang.c (ada_watch_location_expression): Rename to | |
2512 | ada_language::watch_location_expression. | |
2513 | (ada_language_data): Delete la_watch_location_expression | |
2514 | initializer. | |
2515 | (ada_language::watch_location_expression): New member function, | |
2516 | implementation from ada_watch_location_expression. | |
2517 | * breakpoint.c (watch_command_1): Update call to | |
2518 | watch_location_expression. | |
2519 | * c-lang.c (c_watch_location_expression): Rename to | |
2520 | language_defn::watch_location_expression. | |
2521 | (c_language_data): Delete la_watch_location_expression | |
2522 | initializer. | |
2523 | (cplus_language_data): Likewise. | |
2524 | (asm_language_data): Likewise. | |
2525 | (minimal_language_data): Likewise. | |
2526 | * c-lang.h (c_watch_location_expression): Delete declaration. | |
2527 | * d-lang.c (d_language_data): Delete la_watch_location_expression | |
2528 | initializer. | |
2529 | * f-lang.c (f_language_data): Likewise. | |
2530 | * go-lang.c (go_language_data): Likewise. | |
2531 | * language.c (language_defn::watch_location_expression): Member | |
2532 | function implementation from c_watch_location_expression. | |
2533 | (unknown_language_data): Delete la_watch_location_expression | |
2534 | initializer. | |
2535 | (auto_language_data): Likewise. | |
2536 | * language.h (language_data): Delete la_watch_location_expression | |
2537 | field. | |
2538 | (language_defn::watch_location_expression): Declare new member | |
2539 | function. | |
2540 | * m2-lang.c (m2_language_data): Delete | |
2541 | la_watch_location_expression initializer. | |
2542 | * objc-lang.c (objc_language_data): Likewise. | |
2543 | * opencl-lang.c (opencl_language_data): Likewise. | |
2544 | * p-lang.c (pascal_language_data): Likewise. | |
2545 | * rust-lang.c (rust_watch_location_expression): Rename to | |
2546 | rust_language::watch_location_expression. | |
2547 | (rust_language_data): Delete la_watch_location_expression | |
2548 | initializer. | |
2549 | (rust_language::watch_location_expression): New member function, | |
2550 | implementation from rust_watch_location_expression. | |
2551 | ||
7e56227d AB |
2552 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2553 | ||
2554 | * ada-lang.c (ada_collect_symbol_completion_matches): Rename to | |
2555 | ada_language::collect_symbol_completion_matches. | |
2556 | (ada_language_data): Delete la_collect_symbol_completion_matches | |
2557 | initializer. | |
2558 | (ada_language::collect_symbol_completion_matches): New member | |
2559 | function, implementation from | |
2560 | ada_collect_symbol_completion_matches. | |
2561 | * c-lang.c (c_language_data): Delete | |
2562 | la_collect_symbol_completion_matches initializer. | |
2563 | (cplus_language_data): Likewise. | |
2564 | (asm_language_data): Likewise. | |
2565 | (minimal_language_data): Likewise. | |
2566 | * d-lang.c (d_language_data): Likewise. | |
2567 | * f-lang.c (f_collect_symbol_completion_matches): Rename to | |
2568 | f_language::collect_symbol_completion_matches. | |
2569 | (f_language_data): Delete la_collect_symbol_completion_matches | |
2570 | initializer. | |
2571 | (f_language::collect_symbol_completion_matches) New member | |
2572 | function, implementation from f_collect_symbol_completion_matches. | |
2573 | * go-lang.c (go_language_data): Delete | |
2574 | la_collect_symbol_completion_matches initializer. | |
2575 | * language.c (unknown_language_data): Likewise. | |
2576 | (auto_language_data): Likewise. | |
2577 | * language.h (language_data): Delete | |
2578 | la_collect_symbol_completion_matches field. | |
2579 | (language_defn::collect_symbol_completion_matches): New member | |
2580 | function. | |
2581 | * m2-lang.c (m2_language_data): Delete | |
2582 | la_collect_symbol_completion_matches initializer. | |
2583 | * objc-lang.c (objc_language_data): Likewise. | |
2584 | * opencl-lang.c (opencl_language_data): Likewise. | |
2585 | * p-lang.c (pascal_language_data): Likewise. | |
2586 | * rust-lang.c (rust_language_data): Likewise. | |
2587 | * symtab.c (default_collect_symbol_completion_matches): Delete. | |
2588 | (collect_symbol_completion_matches): Update call to | |
2589 | collect_symbol_completion_matches. | |
2590 | (collect_symbol_completion_matches_type): Likewise. | |
2591 | * symtab.h (default_collect_symbol_completion_matches): Delete | |
2592 | declaration. | |
2593 | ||
53fc67f8 AB |
2594 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2595 | ||
2596 | * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete. | |
2597 | (ada_language_data): Delete la_word_break_characters initializer. | |
2598 | (ada_language::word_break_characters): New member function. | |
2599 | * c-lang.c (c_language_data): Delete la_word_break_characters | |
2600 | initializer. | |
2601 | (cplus_language_data): Likewise. | |
2602 | (asm_language_data): Likewise. | |
2603 | (minimal_language_data): Likewise. | |
2604 | * completer.c: Update global comment. | |
2605 | (advance_to_expression_complete_word_point): Update call to | |
2606 | word_break_characters. | |
2607 | (complete_files_symbols): Likewise. | |
2608 | (complete_line_internal_1): Likewise. | |
2609 | (default_completer_handle_brkchars): Likewise. | |
2610 | (skip_quoted_chars): Likewise. | |
2611 | * d-lang.c (d_language_data): Delete la_word_break_characters | |
2612 | initializer. | |
2613 | * f-lang.c (f_word_break_characters): Delete. | |
2614 | (f_language_data): Delete la_word_break_characters initializer. | |
2615 | (f_language::word_break_characters): New member function. | |
2616 | * go-lang.c (go_language_data): Delete la_word_break_characters | |
2617 | initializer. | |
2618 | * language.c (unknown_language_data): Likewise. | |
2619 | (auto_language_data): Likewise. | |
2620 | * language.h (default_word_break_characters): Move declaration to | |
2621 | earlier in the file. | |
2622 | (language_data): Delete la_word_break_characters field. | |
2623 | (language_defn::word_break_characters): New member function. | |
2624 | * m2-lang.c (m2_language_data): Delete la_word_break_characters | |
2625 | initializer. | |
2626 | * objc-lang.c (objc_language_data): Likewise. | |
2627 | * opencl-lang.c (opencl_language_data): Likewise. | |
2628 | * p-lang.c (pascal_language_data): Likewise. | |
2629 | * rust-lang.c (rust_language_data): Likewise. | |
2630 | ||
c9debfb9 AB |
2631 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2632 | ||
2633 | * ada-lang.c (ada_get_symbol_name_matcher): Update header comment. | |
2634 | (ada_language_data): Delete la_get_symbol_name_matcher | |
2635 | initializer. | |
2636 | (language_defn::get_symbol_name_matcher_inner): New member | |
2637 | function. | |
2638 | * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher | |
2639 | initializer. | |
2640 | (cplus_language_data): Likewise. | |
2641 | (cplus_language::get_symbol_name_matcher_inner): New member | |
2642 | function. | |
2643 | (asm_language_data): Delete la_get_symbol_name_matcher initializer. | |
2644 | (minimal_language_data): Likewise. | |
2645 | * cp-support.h (cp_get_symbol_name_matcher): Update header comment. | |
2646 | * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher | |
2647 | initializer. | |
2648 | * dictionary.c (iter_match_first_hashed): Update call to | |
2649 | get_symbol_name_matcher. | |
2650 | (iter_match_next_hashed): Likewise. | |
2651 | (iter_match_next_linear): Likewise. | |
2652 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise. | |
2653 | * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher | |
2654 | initializer. | |
2655 | (f_language::get_symbol_name_matcher_inner): New member function. | |
2656 | * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher | |
2657 | initializer. | |
2658 | * language.c (default_symbol_name_matcher): Update header comment, | |
2659 | make static. | |
2660 | (language_defn::get_symbol_name_matcher): New definition. | |
2661 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
2662 | (get_symbol_name_matcher): Delete. | |
2663 | (unknown_language_data): Delete la_get_symbol_name_matcher | |
2664 | initializer. | |
2665 | (auto_language_data): Likewise. | |
2666 | * language.h (language_data): Delete la_get_symbol_name_matcher | |
2667 | field. | |
2668 | (language_defn::get_symbol_name_matcher): New member function. | |
2669 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
2670 | (default_symbol_name_matcher): Delete declaration. | |
2671 | * linespec.c (find_methods): Update call to | |
2672 | get_symbol_name_matcher. | |
2673 | * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher | |
2674 | initializer. | |
2675 | * minsyms.c (lookup_minimal_symbol): Update call to | |
2676 | get_symbol_name_matcher. | |
2677 | (iterate_over_minimal_symbols): Likewise. | |
2678 | * objc-lang.c (objc_language_data): Delete | |
2679 | la_get_symbol_name_matcher initializer. | |
2680 | * opencl-lang.c (opencl_language_data): Likewise. | |
2681 | * p-lang.c (pascal_language_data): Likewise. | |
2682 | * psymtab.c (psymbol_name_matches): Update call to | |
2683 | get_symbol_name_matcher. | |
2684 | * rust-lang.c (rust_language_data): Delete | |
2685 | la_get_symbol_name_matcher initializer. | |
2686 | * symtab.c (symbol_matches_search_name): Update call to | |
2687 | get_symbol_name_matcher. | |
2688 | (compare_symbol_name): Likewise. | |
2689 | ||
9a49ad8c AB |
2690 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2691 | ||
2692 | * ada-lang.c (ada_language_data): Delete la_compute_program | |
2693 | initializer. | |
2694 | * c-lang.c (c_language_data): Likewise. | |
2695 | (c_language::compute_program): New member function. | |
2696 | (cplus_language_data): Delete la_compute_program initializer. | |
2697 | (cplus_language::compute_program): New member function. | |
2698 | (asm_language_data): Delete la_compute_program initializer. | |
2699 | (minimal_language_data): Likewise. | |
2700 | * c-lang.h (c_compute_program): Update comment. | |
2701 | (cplus_compute_program): Likewise. | |
2702 | * compile/compile-c-support.c (c_compute_program): Likewise. | |
2703 | (cplus_compute_program): Likewise. | |
2704 | * compile/compile.c (compile_to_object): Update call to | |
2705 | la_compute_program. | |
2706 | * d-lang.c (d_language_data): Delete la_compute_program | |
2707 | initializer. | |
2708 | * f-lang.c (f_language_data): Likewise. | |
2709 | * go-lang.c (go_language_data): Likewise. | |
2710 | * language.c (unknown_language_data): Likewise. | |
2711 | (auto_language_data): Likewise. | |
2712 | * language.h (language_data): Delete la_compute_program field. | |
2713 | (language_defn::compute_program): New member function. | |
2714 | * m2-lang.c (m2_language_data): Delete la_compute_program | |
2715 | initializer. | |
2716 | * objc-lang.c (objc_language_data): Likewise. | |
2717 | * opencl-lang.c (opencl_language_data): Likewise. | |
2718 | * p-lang.c (pascal_language_data): Likewise. | |
2719 | * rust-lang.c (rust_language_data): Likewise. | |
2720 | ||
eff93b4d AB |
2721 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2722 | ||
2723 | * ada-lang.c (ada_language_data) Delete | |
2724 | la_class_name_from_physname initializer. | |
2725 | * c-lang.c (c_language_data): Likewise. | |
2726 | (cplus_language_data): Likewise. | |
2727 | (cplus_language::class_name_from_physname): New member function. | |
2728 | (asm_language_data): Delete la_class_name_from_physname | |
2729 | initializer. | |
2730 | (minimal_language_data): Likewise. | |
2731 | * d-lang.c (d_language_data): Likewise. | |
2732 | * dwarf2/read.c (guess_partial_die_structure_name): Update to call | |
2733 | method on language_defn class. | |
2734 | (guess_full_die_structure_name): Likewise. | |
2735 | * f-lang.c (f_language_data): Delete la_class_name_from_physname | |
2736 | initializer. | |
2737 | * go-lang.c (go_language_data): Likewise. | |
2738 | * language.c (language_class_name_from_physname): Delete. | |
2739 | (unk_lang_class_name): Delete. | |
2740 | (unknown_language_data): Delete la_class_name_from_physname | |
2741 | initializer. | |
2742 | (auto_language_data): Likewise. | |
2743 | * language.h (language_data): Delete la_class_name_from_physname | |
2744 | field. | |
2745 | (language_defn::class_name_from_physname): New function. | |
2746 | (language_class_name_from_physname): Delete declaration. | |
2747 | * m2-lang.c (m2_language_data): Delete la_class_name_from_physname | |
2748 | initializer. | |
2749 | * objc-lang.c (objc_language_data): Likewise. | |
2750 | * opencl-lang.c (opencl_language_data): Likewise. | |
2751 | * p-lang.c (pascal_language_data): Likewise. | |
2752 | * rust-lang.c (rust_language_data): Likewise. | |
2753 | ||
de543742 TT |
2754 | 2020-06-16 Tom Tromey <tom@tromey.com> |
2755 | ||
2756 | * tui/tui-data.h (STATUS_NAME): New macro. | |
2757 | * tui/tui-layout.c (tui_remove_some_windows) | |
2758 | (initialize_known_windows, tui_register_window) | |
2759 | (tui_layout_split::remove_windows, initialize_layouts) | |
2760 | (tui_new_layout_command): Don't use hard-coded window names. | |
2761 | ||
a350efd4 TT |
2762 | 2020-06-16 Tom Tromey <tom@tromey.com> |
2763 | ||
2764 | PR tui/25348: | |
2765 | * tui/tui.c (tui_ensure_readline_initialized): Rename from | |
2766 | tui_initialize_readline. Only run once. Call rl_initialize. | |
2767 | * tui/tui.h (tui_ensure_readline_initialized): Rename from | |
2768 | tui_initialize_readline. | |
2769 | * tui/tui-io.c (tui_setup_io): Call | |
2770 | tui_ensure_readline_initialized. | |
2771 | * tui/tui-interp.c (tui_interp::init): Update. | |
2772 | ||
39ec0490 TT |
2773 | 2020-06-16 Tom Tromey <tom@tromey.com> |
2774 | ||
2775 | * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic. | |
2776 | Also preserve the status window. | |
2777 | ||
d2d1ea20 TT |
2778 | 2020-06-16 Tom Tromey <tom@tromey.com> |
2779 | ||
2780 | * python/py-tui.c (tui_py_window::~tui_py_window): Handle case | |
2781 | where m_window==nullptr. | |
2782 | ||
66920317 TT |
2783 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
2784 | ||
2785 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
2786 | Update. | |
2787 | (windows_nat::handle_ms_vc_exception): Update. | |
2788 | * target.h (target_read_string): Change API. | |
2789 | * target.c (target_read_string): Change API. | |
2790 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
2791 | Update. | |
2792 | * solib-frv.c (frv_current_sos): Update. | |
2793 | * solib-dsbt.c (dsbt_current_sos): Update. | |
2794 | * solib-darwin.c (darwin_current_sos): Update. | |
2795 | * linux-thread-db.c (inferior_has_bug): Update. | |
2796 | * expprint.c (print_subexp_standard): Update. | |
2797 | * ada-lang.c (ada_main_name, ada_tag_name_from_tsd) | |
2798 | (ada_exception_message_1): Update. | |
2799 | ||
a5d871dd TT |
2800 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
2801 | ||
2802 | * linux-tdep.c (dump_mapping_p): Use target_read_memory. | |
2803 | ||
670e35fa TT |
2804 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
2805 | ||
2806 | * valprint.c (read_string): Update comment. | |
2807 | * target.c (MIN): Remove. | |
2808 | (target_read_string): Rewrite. | |
2809 | ||
f5272a3b TT |
2810 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
2811 | ||
2812 | * corefile.c (read_memory_string): Remove. | |
2813 | * ada-valprint.c (ada_value_print_ptr): Update. | |
2814 | * ada-lang.h (ada_tag_name): Change return type. | |
2815 | * ada-lang.c (type_from_tag): Update. | |
2816 | (ada_tag_name_from_tsd): Change return type. Use | |
2817 | target_read_string. | |
2818 | (ada_tag_name): Likewise. | |
2819 | * gdbcore.h (read_memory_string): Don't declare. | |
2820 | ||
2c074f49 HD |
2821 | 2020-06-14 Hannes Domani <ssbssa@yahoo.de> |
2822 | ||
2823 | * symtab.c (rbreak_command): Ignore Windows drive colon. | |
2824 | ||
6a17d503 SM |
2825 | 2020-06-12 Simon Marchi <simon.marchi@efficios.com> |
2826 | ||
2827 | * NEWS: Mention removed GDBserver host support. | |
2828 | ||
453c733f NC |
2829 | 2020-06-12 Nelson Chu <nelson.chu@sifive.com> |
2830 | ||
2831 | * features/riscv/rebuild-csr-xml.sh: Updated. | |
2832 | ||
2b4e6a3f TT |
2833 | 2020-06-11 Tom Tromey <tom@tromey.com> |
2834 | ||
2835 | PR gdb/18318: | |
2836 | * c-exp.y (lex_one_token): Handle 'p' like 'e'. | |
2837 | ||
4412332f JG |
2838 | 2020-06-09 Jonny Grant <jg@jguk.org> |
2839 | 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca> | |
2840 | ||
2841 | * main.c (captured_main_1): Don't print new line after help. | |
2842 | (print_gdb_help): add mailing list and IRC channel information | |
2843 | to --help. Add new lines between items in the footer. Remove | |
2844 | quotes around bug url. | |
2845 | ||
2f33032a KS |
2846 | 2020-06-11 Keith Seitz <keiths@redhat.com> |
2847 | ||
2848 | PR gdb/21356 | |
2849 | * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct): | |
2850 | Resolve typedefs for type length calculations. | |
2851 | ||
7ab96794 TV |
2852 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
2853 | ||
2854 | PR ada/24713 | |
2855 | * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack. | |
2856 | (write_psymbols): Enable .gdb_index for ada. | |
2857 | * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for | |
2858 | ada. | |
2859 | ||
e5f3ece2 TV |
2860 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
2861 | ||
2862 | * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ... | |
2863 | (dw2_symtab_iter_init): ... here. Add variant with "offset_type | |
2864 | namei" instead of "const char *name" argument. | |
2865 | (dw2_map_matching_symbols): Use "offset_type namei" variant of | |
2866 | dw2_symtab_iter_init. | |
2867 | ||
940da03e SM |
2868 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
2869 | ||
2870 | * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites | |
2871 | to use type::field and field::type instead. | |
2872 | ||
b6cdac4b SM |
2873 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
2874 | ||
2875 | * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites | |
2876 | to use field::type instead. | |
2877 | ||
5d14b6e5 SM |
2878 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
2879 | ||
2880 | * gdbtypes.h (struct field) <type, set_type>: New methods. | |
2881 | Rename `type` field to... | |
2882 | <m_type>: ... this. Change references throughout to use type or | |
2883 | set_type methods. | |
2884 | (FIELD_TYPE): Use field::type. Change call sites that modify | |
2885 | the field's type to use field::set_type instead. | |
2886 | ||
3d967001 SM |
2887 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
2888 | ||
2889 | * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites | |
2890 | to use type::index_type instead. | |
2891 | ||
262abc0d SM |
2892 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
2893 | ||
2894 | * gdbtypes.h (struct type) <index_type, set_index_type>: New | |
2895 | methods. | |
2896 | (TYPE_INDEX_TYPE): Use type::index_type. | |
2897 | * gdbtypes.c (create_array_type_with_stride): Likewise. | |
2898 | ||
82836c92 TT |
2899 | 2020-06-07 Tom Tromey <tom@tromey.com> |
2900 | ||
2901 | * valprint.c (generic_val_print_float): Remove "embedded_offset" | |
2902 | parameter. | |
2903 | (generic_value_print): Update. | |
2904 | ||
940dace9 AB |
2905 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
2906 | ||
2907 | Revert commit 982a38f60b0. | |
2908 | * python/py-tui.c (gdbpy_tui_set_title): Restore use of get. | |
2909 | ||
982a38f6 AB |
2910 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
2911 | ||
2912 | * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to | |
2913 | avoid use after free. | |
2914 | ||
82f06518 TV |
2915 | 2020-06-05 Tom de Vries <tdevries@suse.de> |
2916 | ||
2917 | * NEWS: Fix typos. | |
2918 | ||
f8c41851 SM |
2919 | 2020-06-04 Simon Marchi <simon.marchi@efficios.com> |
2920 | ||
2921 | * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in | |
2922 | the per_bfd object. | |
2923 | (dwarf2_read_debug_names): Likewise. | |
2924 | (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd | |
2925 | object when re-using a per_bfd object with an index. | |
2926 | ||
f9b5d5ea TV |
2927 | 2020-06-03 Tom de Vries <tdevries@suse.de> |
2928 | ||
2929 | PR symtab/26046 | |
2930 | * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram | |
2931 | children for C++. | |
2932 | (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of | |
2933 | DW_TAG_subprogram. | |
2934 | ||
f6eee2d0 AB |
2935 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
2936 | ||
2937 | * ada-lang.c (ada_language_data): Delete skip_trampoline | |
2938 | initializer. | |
2939 | * c-lang.c (c_language_data): Likewise. | |
2940 | (cplus_language_data): Likewise. | |
2941 | (cplus_language::skip_trampoline): New member function. | |
2942 | (asm_language_data): Delete skip_trampoline initializer. | |
2943 | (minimal_language_data): Likewise. | |
2944 | * d-lang.c (d_language_data): Likewise. | |
2945 | * f-lang.c (f_language_data): Likewise. | |
2946 | * go-lang.c (go_language_data): Likewise. | |
2947 | * language.c (unk_lang_trampoline): Delete function. | |
2948 | (skip_language_trampoline): Update. | |
2949 | (unknown_language_data): Delete skip_trampoline initializer. | |
2950 | (auto_language_data): Likewise. | |
2951 | * language.h (language_data): Delete skip_trampoline field. | |
2952 | (language_defn::skip_trampoline): New function. | |
2953 | * m2-lang.c (m2_language_data): Delete skip_trampoline | |
2954 | initializer. | |
2955 | * objc-lang.c (objc_skip_trampoline): Delete function, move | |
2956 | implementation to objc_language::skip_trampoline. | |
2957 | (objc_language_data): Delete skip_trampoline initializer. | |
2958 | (objc_language::skip_trampoline): New member function with | |
2959 | implementation from objc_skip_trampoline. | |
2960 | * opencl-lang.c (opencl_language_data): Delete skip_trampoline | |
2961 | initializer. | |
2962 | * p-lang.c (pascal_language_data): Likewise. | |
2963 | * rust-lang.c (rust_language_data): Likewise. | |
2964 | ||
0a50df5d AB |
2965 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
2966 | ||
2967 | * ada-lang.c (ada_language_data): Delete la_demangle initializer. | |
2968 | (ada_language::demangle): New member function. | |
2969 | * c-lang.c (c_language_data): Delete la_demangle initializer. | |
2970 | (cplus_language_data): Delete la_demangle initializer. | |
2971 | (cplus_language::demangle): New member function. | |
2972 | (asm_language_data): Delete la_demangle initializer. | |
2973 | (minimal_language_data): Delete la_demangle initializer. | |
2974 | * d-lang.c (d_language_data): Delete la_demangle initializer. | |
2975 | (d_language::demangle): New member function. | |
2976 | * f-lang.c (f_language_data): Delete la_demangle initializer. | |
2977 | (f_language::demangle): New member function. | |
2978 | * go-lang.c (go_language_data): Delete la_demangle initializer. | |
2979 | (go_language::demangle): New member function. | |
2980 | * language.c (language_demangle): Update. | |
2981 | (unk_lang_demangle): Delete. | |
2982 | (unknown_language_data): Delete la_demangle initializer. | |
2983 | (unknown_language::demangle): New member function. | |
2984 | (auto_language_data): Delete la_demangle initializer. | |
2985 | (auto_language::demangle): New member function. | |
2986 | * language.h (language_data): Delete la_demangle field. | |
2987 | (language_defn::demangle): New function. | |
2988 | * m2-lang.c (m2_language_data): Delete la_demangle initializer. | |
2989 | * objc-lang.c (objc_language_data): Delete la_demangle | |
2990 | initializer. | |
2991 | (objc_language::demangle): New member function. | |
2992 | * opencl-lang.c (opencl_language_data): Delete la_demangle | |
2993 | initializer. | |
2994 | * p-lang.c (pascal_language_data): Likewise. | |
2995 | * rust-lang.c (rust_language_data): Likewise. | |
2996 | (rust_language::demangle): New member function. | |
2997 | ||
fbfb0a46 AB |
2998 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
2999 | ||
3000 | * ada-lang.c (ada_language_data): Delete la_print_type | |
3001 | initializer. | |
3002 | (ada_language::print_type): New member function. | |
3003 | * c-lang.c (c_language_data): Delete la_print_type initializer. | |
3004 | (c_language::print_type): New member function. | |
3005 | (cplus_language_data): Delete la_print_type initializer. | |
3006 | (cplus_language::print_type): New member function. | |
3007 | (asm_language_data): Delete la_print_type initializer. | |
3008 | (asm_language::print_type): New member function. | |
3009 | (minimal_language_data): Delete la_print_type initializer. | |
3010 | (minimal_language::print_type): New member function. | |
3011 | * d-lang.c (d_language_data): Delete la_print_type initializer. | |
3012 | (d_language::print_type): New member function. | |
3013 | * f-lang.c (f_language_data): Delete la_print_type initializer. | |
3014 | (f_language::print_type): New member function. | |
3015 | * go-lang.c (go_language_data): Delete la_print_type initializer. | |
3016 | (go_language::print_type): New member function. | |
3017 | * language.c (unk_lang_print_type): Delete. | |
3018 | (unknown_language_data): Delete la_print_type initializer. | |
3019 | (unknown_language::print_type): New member function. | |
3020 | (auto_language_data): Delete la_print_type initializer. | |
3021 | (auto_language::print_type): New member function. | |
3022 | * language.h (language_data): Delete la_print_type field. | |
3023 | (language_defn::print_type): New function. | |
3024 | (LA_PRINT_TYPE): Update. | |
3025 | * m2-lang.c (m2_language_data): Delete la_print_type initializer. | |
3026 | (m2_language::print_type): New member function. | |
3027 | * objc-lang.c (objc_language_data): Delete la_print_type | |
3028 | initializer. | |
3029 | (objc_language::print_type): New member function. | |
3030 | * opencl-lang.c (opencl_print_type): Delete, implementation moved | |
3031 | to opencl_language::print_type. | |
3032 | (opencl_language_data): Delete la_print_type initializer. | |
3033 | (opencl_language::print_type): New member function, implementation | |
3034 | from opencl_print_type. | |
3035 | * p-lang.c (pascal_language_data): Delete la_print_type | |
3036 | initializer. | |
3037 | (pascal_language::print_type): New member function. | |
3038 | * rust-lang.c (rust_print_type): Delete, implementation moved to | |
3039 | rust_language::print_type. | |
3040 | (rust_language_data): Delete la_print_type initializer. | |
3041 | (rust_language::print_type): New member function, implementation | |
3042 | from rust_print_type. | |
3043 | ||
6f827019 AB |
3044 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3045 | ||
3046 | * ada-lang.c (ada_sniff_from_mangled_name): Delete function, | |
3047 | implementation moves to... | |
3048 | (ada_language::sniff_from_mangled_name): ...here. Update return | |
3049 | type. | |
3050 | (ada_language_data): Delete la_sniff_from_mangled_name | |
3051 | initializer. | |
3052 | * c-lang.c (c_language_data): Likewise. | |
3053 | (cplus_language_data): Likewise. | |
3054 | (cplus_language::sniff_from_mangled_name): New member function, | |
3055 | implementation taken from gdb_sniff_from_mangled_name. | |
3056 | (asm_language_data): Delete la_sniff_from_mangled_name | |
3057 | initializer. | |
3058 | (minimal_language_data): Likewise. | |
3059 | * cp-support.c (gdb_sniff_from_mangled_name): Delete, | |
3060 | implementation moves to cplus_language::sniff_from_mangled_name. | |
3061 | * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration. | |
3062 | * d-lang.c (d_sniff_from_mangled_name): Delete, implementation | |
3063 | moves to... | |
3064 | (d_language::sniff_from_mangled_name): ...here. | |
3065 | (d_language_data): Delete la_sniff_from_mangled_name initializer. | |
3066 | * f-lang.c (f_language_data): Likewise. | |
3067 | * go-lang.c (go_sniff_from_mangled_name): Delete, implementation | |
3068 | moves to... | |
3069 | (go_language::sniff_from_mangled_name): ...here. | |
3070 | (go_language_data): Delete la_sniff_from_mangled_name initializer. | |
3071 | * language.c (language_sniff_from_mangled_name): Delete. | |
3072 | (unknown_language_data): Delete la_sniff_from_mangled_name | |
3073 | initializer. | |
3074 | (auto_language_data): Likewise. | |
3075 | * language.h (language_data): Delete la_sniff_from_mangled_name | |
3076 | field. | |
3077 | (language_defn::sniff_from_mangled_name): New function. | |
3078 | (language_sniff_from_mangled_name): Delete declaration. | |
3079 | * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name | |
3080 | field. | |
3081 | * objc-lang.c (objc_sniff_from_mangled_name): Delete, | |
3082 | implementation moves to... | |
3083 | (objc_language::sniff_from_mangled_name): ...here. | |
3084 | (objc_language_data): Delete la_sniff_from_mangled_name initializer. | |
3085 | * opencl-lang.c (opencl_language_data): Likewise. | |
3086 | * p-lang.c (pascal_language_data): Likewise. | |
3087 | * rust-lang.c (rust_sniff_from_mangled_name): Delete, | |
3088 | implementation moves to... | |
3089 | (rust_language::sniff_from_mangled_name): ...here. | |
3090 | (rust_language_data): Delete la_sniff_from_mangled_name | |
3091 | initializer. | |
3092 | * symtab.c (symbol_find_demangled_name): Call | |
3093 | sniff_from_mangled_name member function. | |
3094 | ||
fb8006fd AB |
3095 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3096 | ||
3097 | * ada-lang.c (ada_language_data): Delete la_search_name_hash | |
3098 | initializer. | |
3099 | * c-lang.c (c_language_data): Likewise. | |
3100 | (cplus_language_data): Likewise. | |
3101 | (cplus_language::search_name_hash): New member function. | |
3102 | (asm_language_data): Delete la_search_name_hash initializer. | |
3103 | (minimal_language_data): Likewise. | |
3104 | * d-lang.c (d_language_data): Likewise. | |
3105 | * dictionary.c (default_search_name_hash): Rename to... | |
3106 | (language_defn::search_name_hash): ...this. | |
3107 | * f-lang.c (f_language_data): Likewise. | |
3108 | (f_language::search_name_hash): New member function. | |
3109 | * go-lang.c (go_language_data): Delete la_search_name_hash | |
3110 | initializer. | |
3111 | * language.c (unknown_language_data): Likewise. | |
3112 | (auto_language_data): Likewise. | |
3113 | * language.h (struct language_data): Delete la_search_name_hash | |
3114 | field. | |
3115 | (language_defn::search_name_hash): Declare new member function. | |
3116 | (default_search_name_hash): Delete declaration. | |
3117 | * m2-lang.c (m2_language_data): Delete la_search_name_hash | |
3118 | initializer. | |
3119 | * objc-lang.c (objc_language_data): Likewise. | |
3120 | * opencl-lang.c (opencl_language_data): Likewise. | |
3121 | * p-lang.c (pascal_language_data): Likewise. | |
3122 | * rust-lang.c (rust_language_data): Likewise. | |
3123 | * symtab.c (search_name_hash): Update call. | |
3124 | ||
8e25bafe AB |
3125 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3126 | ||
3127 | * ada-lang.c (ada_language_data): Delete la_get_compile_instance | |
3128 | initializer. | |
3129 | * c-lang.c (class compile_instance): Declare. | |
3130 | (c_language_data): Delete la_get_compile_instance initializer. | |
3131 | (c_language::get_compile_instance): New member function. | |
3132 | (cplus_language_data): Delete la_get_compile_instance initializer. | |
3133 | (cplus_language::get_compile_instance): New member function. | |
3134 | (asm_language_data): Delete la_get_compile_instance initializer. | |
3135 | (minimal_language_data): Likewise. | |
3136 | * c-lang.h (c_get_compile_context): Update comment. | |
3137 | (cplus_get_compile_context): Update comment. | |
3138 | * compile/compile.c (compile_to_object): Update calls, don't rely | |
3139 | on function pointer being NULL. | |
3140 | * d-lang.c (d_language_data): Delete la_get_compile_instance | |
3141 | initializer. | |
3142 | * f-lang.c (f_language_data): Likewise. | |
3143 | * go-lang.c (go_language_data): Likewise. | |
3144 | * language.c (unknown_language_data): Likewise. | |
3145 | (auto_language_data): Likewise. | |
3146 | * language.h (language_data): Delete la_get_compile_instance field. | |
3147 | (language_defn::get_compile_instance): New member function. | |
3148 | * m2-lang.c (m2_language_data): Delete la_get_compile_instance | |
3149 | initializer. | |
3150 | * objc-lang.c (objc_language_data): Likewise. | |
3151 | * opencl-lang.c (opencl_language_data): Likewise. | |
3152 | * p-lang.c (pascal_language_data): Likewise. | |
3153 | * rust-lang.c (rust_language_data): Likewise. | |
3154 | ||
4009ee92 AB |
3155 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3156 | ||
3157 | * ada-lang.c (ada_add_all_symbols): Update comment. | |
3158 | (ada_iterate_over_symbols): Delete, move implementation to... | |
3159 | (ada_language::iterate_over_symbols): ...here, a new member | |
3160 | function, rewrite to use range based for loop. | |
3161 | (ada_language_data): Delete la_iterate_over_symbols initializer. | |
3162 | * c-lang.c (c_language_data): Likewise. | |
3163 | (cplus_language_data): Likewise. | |
3164 | (asm_language_data): Likewise. | |
3165 | (minimal_language_data): Likewise. | |
3166 | * d-lang.c (d_language_data): Likewise. | |
3167 | * f-lang.c (f_language_data): Likewise. | |
3168 | * go-lang.c (go_language_data): Likewise. | |
3169 | * language.c (unknown_language_data): Likewise. | |
3170 | (auto_language_data): Likewise. | |
3171 | * language.h (language_data): Delete la_iterate_over_symbols field. | |
3172 | (language_defn::iterate_over_symbols): New member function. | |
3173 | (LA_ITERATE_OVER_SYMBOLS): Update. | |
3174 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
3175 | * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols | |
3176 | initializer. | |
3177 | * objc-lang.c (objc_language_data): Likewise. | |
3178 | * opencl-lang.c (opencl_language_data): Likewise. | |
3179 | * p-lang.c (pascal_language_data): Likewise. | |
3180 | * rust-lang.c (rust_language_data): Likewise. | |
3181 | ||
54f4ca46 AB |
3182 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3183 | ||
3184 | * ada-lang.c (ada_language_data): Delete | |
3185 | la_lookup_transparent_type initializer. | |
3186 | * c-lang.c (c_language_data): Likewise. | |
3187 | (cplus_language_data): Likewise. | |
3188 | (cplus_language::lookup_transparent_type): New member function. | |
3189 | (asm_language_data): Delete la_lookup_transparent_type | |
3190 | initializer. | |
3191 | (minimal_language_data): Likewise. | |
3192 | * d-lang.c (d_language_data): Likewise. | |
3193 | * f-lang.c (f_language_data): Likewise. | |
3194 | * go-lang.c (go_language_data): Likewise. | |
3195 | * language.c (unknown_language_data): Likewise. | |
3196 | (auto_language_data): Likewise. | |
3197 | * language.h (struct language_data): Delete | |
3198 | la_lookup_transparent_type field. | |
3199 | (language_defn::lookup_transparent_type): New member function. | |
3200 | * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type | |
3201 | initializer. | |
3202 | * objc-lang.c (objc_language_data): Likewise. | |
3203 | * opencl-lang.c (opencl_language_data): Likewise. | |
3204 | * p-lang.c (pascal_language_data): Likewise. | |
3205 | * rust-lang.c (rust_language_data): Likewise. | |
3206 | * symtab.c (symbol_matches_domain): Update call. | |
3207 | ||
1fb314aa AB |
3208 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3209 | ||
3210 | * ada-lang.c (ada_language_arch_info): Delete function, move | |
3211 | implementation to... | |
3212 | (ada_language::language_arch_info): ...here, a new member | |
3213 | function. | |
3214 | (ada_language_data): Delete la_language_arch_info. | |
3215 | * c-lang.c (c_language_data): Likewise. | |
3216 | (c_language::language_arch_info): New member function. | |
3217 | (cplus_language_arch_info): Delete function, move | |
3218 | implementation to... | |
3219 | (cplus_language::language_arch_info): ...here, a new member | |
3220 | function. | |
3221 | (cplus_language_data): Delete la_language_arch_info. | |
3222 | (asm_language_data): Likewise. | |
3223 | (asm_language::language_arch_info): New member function. | |
3224 | (minimal_language_data): Delete la_language_arch_info. | |
3225 | (minimal_language::language_arch_info): New member function. | |
3226 | * d-lang.c (d_language_arch_info): Delete function, move | |
3227 | implementation to... | |
3228 | (d_language::language_arch_info): ...here, a new member | |
3229 | function. | |
3230 | (d_language_data): Delete la_language_arch_info. | |
3231 | * f-lang.c (f_language_arch_info): Delete function, move | |
3232 | implementation to... | |
3233 | (f_language::language_arch_info): ...here, a new member | |
3234 | function. | |
3235 | (f_language_data): Delete la_language_arch_info. | |
3236 | * go-lang.c (go_language_arch_info): Delete function, move | |
3237 | implementation to... | |
3238 | (go_language::language_arch_info): ...here, a new member | |
3239 | function. | |
3240 | (go_language_data): Delete la_language_arch_info. | |
3241 | * language.c (unknown_language_data): Likewise. | |
3242 | (unknown_language::language_arch_info): New member function. | |
3243 | (auto_language_data): Delete la_language_arch_info. | |
3244 | (auto_language::language_arch_info): New member function. | |
3245 | (language_gdbarch_post_init): Update call to | |
3246 | la_language_arch_info. | |
3247 | * language.h (language_data): Delete la_language_arch_info | |
3248 | function pointer. | |
3249 | (language_defn::language_arch_info): New function. | |
3250 | * m2-lang.c (m2_language_arch_info): Delete function, move | |
3251 | implementation to... | |
3252 | (m2_language::language_arch_info): ...here, a new member | |
3253 | function. | |
3254 | (m2_language_data): Delete la_language_arch_info. | |
3255 | * objc-lang.c (objc_language_arch_info): Delete function, move | |
3256 | implementation to... | |
3257 | (objc_language::language_arch_info): ...here, a new member | |
3258 | function. | |
3259 | (objc_language_data): Delete la_language_arch_info. | |
3260 | * opencl-lang.c (opencl_language_arch_info): Delete function, move | |
3261 | implementation to... | |
3262 | (opencl_language::language_arch_info): ...here, a new member | |
3263 | function. | |
3264 | (opencl_language_data): Delete la_language_arch_info. | |
3265 | * p-lang.c (pascal_language_arch_info): Delete function, move | |
3266 | implementation to... | |
3267 | (pascal_language::language_arch_info): ...here, a new member | |
3268 | function. | |
3269 | (pascal_language_data): Delete la_language_arch_info. | |
3270 | * rust-lang.c (rust_language_arch_info): Delete function, move | |
3271 | implementation to... | |
3272 | (rust_language::language_arch_info): ...here, a new member | |
3273 | function. | |
3274 | (rust_language_data): Delete la_language_arch_info. | |
3275 | ||
48448202 AB |
3276 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3277 | ||
3278 | * ada-lang.c (ada_language_data): Delete la_pass_by_reference | |
3279 | initializer. | |
3280 | * c-lang.c (c_language_data): Likewise. | |
3281 | (cplus_language_data): Likewise. | |
3282 | (cplus_language::pass_by_reference_info): New method. | |
3283 | (asm_language_data): Delete la_pass_by_reference initializer. | |
3284 | (minimal_language_data): Likewise. | |
3285 | * cp-abi.c (cp_pass_by_reference): Remove use of | |
3286 | default_pass_by_reference. | |
3287 | * d-lang.c (d_language_data): Likewise. | |
3288 | * f-lang.c (f_language_data): Likewise. | |
3289 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of | |
3290 | default_pass_by_reference. | |
3291 | * go-lang.c (go_language_data): Likewise. | |
3292 | * language.c (language_pass_by_reference): Update. | |
3293 | (default_pass_by_reference): Delete. | |
3294 | (unknown_language_data): Delete la_pass_by_reference | |
3295 | initializer. | |
3296 | (auto_language_data): Likewise. | |
3297 | * language.h (struct language_data): Delete la_pass_by_reference | |
3298 | field. | |
3299 | (language_defn::pass_by_reference_info): New member function. | |
3300 | (default_pass_by_reference): Delete declaration. | |
3301 | * m2-lang.c (m2_language_data): Delete la_pass_by_reference | |
3302 | initializer. | |
3303 | * objc-lang.c (objc_language_data): Likewise. | |
3304 | * opencl-lang.c (opencl_language_data): Likewise. | |
3305 | * p-lang.c (pascal_language_data): Likewise. | |
3306 | * rust-lang.c (rust_language_data): Likewise. | |
3307 | ||
15e5fd35 AB |
3308 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3309 | ||
3310 | * ada-lang.c (ada_read_var_value): Delete function, move | |
3311 | implementation to... | |
3312 | (ada_language::read_var_value): ...here. | |
3313 | (ada_language_data): Delete la_read_var_value initializer. | |
3314 | * c-lang.c (c_language_data): Likewise. | |
3315 | (cplus_language_data): Likewise. | |
3316 | (minimal_language_data): Likewise. | |
3317 | * d-lang.c (d_language_data): Likewise. | |
3318 | * f-lang.c (f_language_data): Likewise. | |
3319 | * findvar.c (default_read_var_value): Rename to... | |
3320 | (language_defn::read_var_value): ...this. | |
3321 | * findvar.c (read_var_value): Update header comment, and change to | |
3322 | call member function instead of function pointer. | |
3323 | * go-lang.c (go_language_data): Likewise. | |
3324 | * language.c (unknown_language_data): Delete la_read_var_value | |
3325 | initializer. | |
3326 | (auto_language_data): Likewise. | |
3327 | * language.h (struct language_data): Delete la_read_var_value | |
3328 | field. | |
3329 | (language_defn::read_var_value): New member function. | |
3330 | (default_read_var_value): Delete declaration. | |
3331 | * m2-lang.c (m2_language_data): Delete la_read_var_value | |
3332 | initializer. | |
3333 | * objc-lang.c (objc_language_data): Likewise. | |
3334 | * opencl-lang.c (opencl_language_data): Likewise. | |
3335 | * p-lang.c (pascal_language_data): Likewise. | |
3336 | * rust-lang.c (rust_language_data): Likewise. | |
3337 | * value.h (default_read_var_value): Delete declaration. | |
3338 | ||
5bd40f2a AB |
3339 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3340 | ||
3341 | * ada-lang.c (ada_print_array_index): Delete function, move | |
3342 | implementation to... | |
3343 | (ada_language::print_array_index): ...here. | |
3344 | (ada_language_data): Delete la_print_array_index initializer. | |
3345 | * c-lang.c (c_language_data): Likewise. | |
3346 | (cplus_language_data): Likewise. | |
3347 | (minimal_language_data): Likewise. | |
3348 | * d-lang.c (d_language_data): Likewise. | |
3349 | * f-lang.c (f_language_data): Likewise. | |
3350 | * go-lang.c (go_language_data): Likewise. | |
3351 | * language.c (default_print_array_index): Delete function, move | |
3352 | implementation to... | |
3353 | (language_defn::print_array_index): ...here. | |
3354 | (unknown_language_data): Delete la_print_array_index initializer. | |
3355 | (auto_language_data): Likewise. | |
3356 | * language.h (struct language_data): Delete la_print_array_index | |
3357 | field. | |
3358 | (language_defn::print_array_index): New member function. | |
3359 | (LA_PRINT_ARRAY_INDEX): Update. | |
3360 | (default_print_array_index): Delete declaration. | |
3361 | * m2-lang.c (m2_language_data): Delete la_print_array_index | |
3362 | initializer. | |
3363 | * objc-lang.c (objc_language_data): Likewise. | |
3364 | * opencl-lang.c (opencl_language_data): Likewise. | |
3365 | * p-lang.c (pascal_language_data): Likewise. | |
3366 | * rust-lang.c (rust_language_data): Likewise. | |
3367 | ||
0874fd07 AB |
3368 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3369 | ||
3370 | * gdb/ada-lang.c (ada_language_defn): Convert to... | |
3371 | (ada_language_data): ...this. | |
3372 | (class ada_language): New class. | |
3373 | (ada_language_defn): New static global. | |
3374 | * gdb/c-lang.c (c_language_defn): Convert to... | |
3375 | (c_language_data): ...this. | |
3376 | (class c_language): New class. | |
3377 | (c_language_defn): New static global. | |
3378 | (cplus_language_defn): Convert to... | |
3379 | (cplus_language_data): ...this. | |
3380 | (class cplus_language): New class. | |
3381 | (cplus_language_defn): New static global. | |
3382 | (asm_language_defn): Convert to... | |
3383 | (asm_language_data): ...this. | |
3384 | (class asm_language): New class. | |
3385 | (asm_language_defn): New static global. | |
3386 | (minimal_language_defn): Convert to... | |
3387 | (minimal_language_data): ...this. | |
3388 | (class minimal_language): New class. | |
3389 | (minimal_language_defn): New static global. | |
3390 | * gdb/d-lang.c (d_language_defn): Convert to... | |
3391 | (d_language_data): ...this. | |
3392 | (class d_language): New class. | |
3393 | (d_language_defn): New static global. | |
3394 | * gdb/f-lang.c (f_language_defn): Convert to... | |
3395 | (f_language_data): ...this. | |
3396 | (class f_language): New class. | |
3397 | (f_language_defn): New static global. | |
3398 | * gdb/go-lang.c (go_language_defn): Convert to... | |
3399 | (go_language_data): ...this. | |
3400 | (class go_language): New class. | |
3401 | (go_language_defn): New static global. | |
3402 | * gdb/language.c (unknown_language_defn): Remove declaration. | |
3403 | (current_language): Initialize to nullptr, real initialization is | |
3404 | moved to _initialize_language. | |
3405 | (languages): Delete global. | |
3406 | (language_defn::languages): Define. | |
3407 | (set_language_command): Use language_defn::languages. | |
3408 | (set_language): Likewise. | |
3409 | (range_error): Likewise. | |
3410 | (language_enum): Likewise. | |
3411 | (language_def): Likewise. | |
3412 | (add_set_language_command): Use language_def::languages for the | |
3413 | language list, and language_def to lookup language pointers. | |
3414 | (skip_language_trampoline): Use language_defn::languages. | |
3415 | (unknown_language_defn): Convert to... | |
3416 | (unknown_language_data): ...this. | |
3417 | (class unknown_language): New class. | |
3418 | (unknown_language_defn): New static global. | |
3419 | (auto_language_defn): Convert to... | |
3420 | (auto_language_data): ...this. | |
3421 | (class auto_language): New class. | |
3422 | (auto_language_defn): New static global. | |
3423 | (language_gdbarch_post_init): Use language_defn::languages. | |
3424 | (_initialize_language): Initialize current_language. | |
3425 | * gdb/language.h (struct language_defn): Rename to... | |
3426 | (struct language_data): ...this. | |
3427 | (struct language_defn): New. | |
3428 | (auto_language_defn): Delete. | |
3429 | (unknown_language_defn): Delete. | |
3430 | (minimal_language_defn): Delete. | |
3431 | (ada_language_defn): Delete. | |
3432 | (asm_language_defn): Delete. | |
3433 | (c_language_defn): Delete. | |
3434 | (cplus_language_defn): Delete. | |
3435 | (d_language_defn): Delete. | |
3436 | (f_language_defn): Delete. | |
3437 | (go_language_defn): Delete. | |
3438 | (m2_language_defn): Delete. | |
3439 | (objc_language_defn): Delete. | |
3440 | (opencl_language_defn): Delete. | |
3441 | (pascal_language_defn): Delete. | |
3442 | (rust_language_defn): Delete. | |
3443 | * gdb/m2-lang.c (m2_language_defn): Convert to... | |
3444 | (m2_language_data): ...this. | |
3445 | (class m2_language): New class. | |
3446 | (m2_language_defn): New static global. | |
3447 | * gdb/objc-lang.c (objc_language_defn): Convert to... | |
3448 | (objc_language_data): ...this. | |
3449 | (class objc_language): New class. | |
3450 | (objc_language_defn): New static global. | |
3451 | * gdb/opencl-lang.c (opencl_language_defn): Convert to... | |
3452 | (opencl_language_data): ...this. | |
3453 | (class opencl_language): New class. | |
3454 | (opencl_language_defn): New static global. | |
3455 | * gdb/p-lang.c (pascal_language_defn): Convert to... | |
3456 | (pascal_language_data): ...this. | |
3457 | (class pascal_language): New class. | |
3458 | (pascal_language_defn): New static global. | |
3459 | * gdb/rust-exp.y (rust_lex_tests): Use language_def to find | |
3460 | language pointer, update comment format. | |
3461 | * gdb/rust-lang.c (rust_language_defn): Convert to... | |
3462 | (rust_language_data): ...this. | |
3463 | (class rust_language): New class. | |
3464 | (rust_language_defn): New static global. | |
3465 | ||
1313c56e AB |
3466 | 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com> |
3467 | ||
3468 | * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New | |
3469 | member variable. | |
3470 | <m_stmt_at_address>: New member variable. | |
3471 | (lnp_state_machine::record_line): Don't record some lines, update | |
3472 | tracking of is_stmt at the same address. | |
3473 | (lnp_state_machine::lnp_state_machine): Initialise new member | |
3474 | variables. | |
3475 | ||
b7ed9f3d ST |
3476 | 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org> |
3477 | ||
3478 | * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add | |
3479 | "-include gnu-nat-mig.h". | |
3480 | * gnu-nat-mig.h: New file. | |
3481 | * gnu-nat.c: Include "gnu-nat-mig.h". | |
3482 | (exc_server, msg_reply_server, notify_server, | |
3483 | process_reply_server): Remove declarations. | |
3484 | ||
14a8ad62 ST |
3485 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
3486 | ||
3487 | * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced, | |
3488 | steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup, | |
3489 | inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports, | |
3490 | inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports, | |
3491 | inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread, | |
3492 | inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal, | |
3493 | inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc, | |
3494 | proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port, | |
3495 | proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions | |
3496 | to gnu_nat_target class. | |
3497 | * gnu-nat.c: Likewise. | |
3498 | (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd, | |
3499 | set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd, | |
3500 | set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target | |
3501 | object. | |
3502 | (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this' | |
3503 | instead of `gnu_target'. | |
3504 | ||
0af5e106 ST |
3505 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
3506 | ||
3507 | * i386-gnu-tdep.c: Include "gdbcore.h" | |
3508 | (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays. | |
3509 | (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL, | |
3510 | I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros | |
3511 | (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p, | |
3512 | i386_gnu_sigcontext_addr): New functions | |
3513 | (i386gnu_init_abi): Register i386_gnu_sigtramp_p, | |
3514 | i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch | |
3515 | tdep. | |
3516 | ||
078f2fc9 ST |
3517 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
3518 | ||
3519 | * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call | |
3520 | before fork_inferior call. Avoid calling it if target_is_pushed returns | |
3521 | true. | |
3522 | ||
53dff92c ST |
3523 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
3524 | ||
3525 | * gnu-nat.h (gnu_target): New variable declaration. | |
3526 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize | |
3527 | gnu_target. | |
3528 | * gnu-nat.c (gnu_target): New variable. | |
3529 | (inf_validate_procs): Pass gnu_target to thread_change_ptid, | |
3530 | add_thread_silent, and add_thread calls. | |
3531 | (gnu_nat_target::create_inferior): Pass gnu_target to | |
3532 | add_thread_silent, thread_change_ptid call. | |
3533 | (gnu_nat_target::detach): Pass gnu_target to detach_inferior | |
3534 | call. | |
3535 | ||
5a8b8627 ST |
3536 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
3537 | ||
3538 | * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. | |
3539 | (gnu_nat_target::find_memory_regions): Remove unused | |
3540 | `old_address' variable. | |
3541 | ||
366f550a ST |
3542 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
3543 | ||
3544 | * gnu-nat.c: Include "gdbarch.h". | |
3545 | ||
f14871bf ST |
3546 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
3547 | ||
3548 | * reply_mig_hack.awk (Error return): Cast function through | |
3549 | void *, to bypass compiler function call check. | |
3550 | ||
c6887cfb ST |
3551 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
3552 | ||
3553 | * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on | |
3554 | $(srcdir)/reply_mig_hack.awk. | |
3555 | ||
6930bffe ST |
3556 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
3557 | ||
3558 | * gnu-nat.h (gnu_debug_flag): Set type to bool. | |
3559 | ||
112c22ed JG |
3560 | 2020-05-30 Jonny Grant <jg@jguk.org> |
3561 | ||
3562 | * configure.ac (ACX_BUGURL): change bug URL to https. | |
3563 | ||
f68f85b5 PA |
3564 | 2020-05-30 Pedro Alves <palves@redhat.com> |
3565 | ||
3566 | * cp-support.c (replace_typedefs_template): New. | |
3567 | (replace_typedefs_qualified_name): Handle | |
3568 | DEMANGLE_COMPONENT_TEMPLATE. | |
3569 | ||
976ca316 SM |
3570 | 2020-05-29 Simon Marchi <simon.marchi@efficios.com> |
3571 | ||
3572 | * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c, | |
3573 | dwarf2/index-cache.h, dwarf2/index-write.c, | |
3574 | dwarf2/index-write.h, dwarf2/line-header.c, | |
3575 | dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h, | |
3576 | dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile | |
3577 | variables and fields from `dwarf2_per_objfile` to just | |
3578 | `per_objfile` throughout. | |
3579 | ||
989ade05 SM |
3580 | 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca> |
3581 | ||
3582 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
3583 | <push_dwarf_reg_entry_value>: Add comment. | |
3584 | ||
c47bae85 KB |
3585 | 2020-05-28 Kevin Buettner <kevinb@redhat.com> |
3586 | Keith Seitz <keiths@redhat.com> | |
3587 | ||
3588 | * python/python.c (do_start_initialization): Call PyEval_SaveThread | |
3589 | instead of PyEval_ReleaseLock. | |
3590 | (class gdbpy_gil): Move to earlier in file. | |
3591 | (finalize_python): Set gdb_python_initialized. | |
3592 | (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early | |
3593 | when not initialized. | |
3594 | ||
44486dcf SM |
3595 | 2020-05-28 Simon Marchi <simon.marchi@efficios.com> |
3596 | ||
3597 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
3598 | <push_dwarf_reg_entry_value>: Remove assert. Override | |
3599 | per_objfile with caller_per_objfile. | |
3600 | ||
f030440d TV |
3601 | 2020-05-28 Tom de Vries <tdevries@suse.de> |
3602 | ||
3603 | * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit | |
3604 | PR gold/15646 workaround to symbol kind "type". | |
3605 | ||
f0fbb768 TT |
3606 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
3607 | ||
3608 | * dwarf2/read.c (load_partial_dies): Use add_partial_symbol. | |
3609 | ||
af0b2a3e TT |
3610 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
3611 | ||
3612 | * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline. | |
3613 | Use htab_find_with_hash. | |
3614 | <add_abbrev>: Remove "abbrev_number" parameter. | |
3615 | * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove | |
3616 | "abbrev_number" parameter. Use htab_find_slot_with_hash. | |
3617 | (hash_abbrev): Add comment. | |
3618 | (abbrev_table::lookup_abbrev): Move to header file. | |
3619 | (abbrev_table::read): Update. | |
3620 | ||
7d00ffec TT |
3621 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
3622 | ||
3623 | * dwarf2/read.c (struct partial_die_info) <name>: Declare new | |
3624 | method. | |
3625 | <canonical_name>: New member. | |
3626 | <raw_name>: Rename from "name". | |
3627 | (partial_die_info): Initialize canonical_name. | |
3628 | (scan_partial_symbols): Check raw_name. | |
3629 | (partial_die_parent_scope, partial_die_full_name) | |
3630 | (add_partial_symbol, add_partial_subprogram) | |
3631 | (add_partial_enumeration, load_partial_dies): Use "name" method. | |
3632 | (partial_die_info::name): New method. | |
3633 | (partial_die_info::read, guess_partial_die_structure_name) | |
3634 | (partial_die_info::fixup): Update. | |
3635 | ||
697bba18 TT |
3636 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
3637 | ||
3638 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline. | |
3639 | <get_ref_die_offset>: Inline. | |
3640 | <get_ref_die_offset_complaint>: New method. | |
3641 | * dwarf2/attribute.c (attribute::form_is_ref): Move to header. | |
3642 | (attribute::get_ref_die_offset_complaint): Rename from | |
3643 | get_ref_die_offset. Just issue complaint. | |
3644 | ||
c17ace43 HD |
3645 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
3646 | ||
3647 | * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars. | |
3648 | ||
96445f0b HD |
3649 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
3650 | ||
3651 | * exec.c (exec_file_attach): Use errno value of first openp failure. | |
3652 | ||
ac637ec3 HD |
3653 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
3654 | ||
3655 | * nat/windows-nat.c (windows_thread_info::~windows_thread_info): | |
3656 | Don't close thread handle. | |
3657 | ||
17ee85fc TT |
3658 | 2020-05-27 Tom Tromey <tom@tromey.com> |
3659 | Simon Marchi <simon.marchi@efficios.com> | |
3660 | ||
3661 | * objfiles.h (struct objfile) <partial_symtabs>: Now a | |
3662 | shared_ptr. | |
3663 | * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New | |
3664 | member. | |
3665 | * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key, | |
3666 | dwarf2_per_bfd_objfile_data_key>: New globals. | |
3667 | (dwarf2_has_info): Use shared dwarf2_per_bfd if possible. | |
3668 | (dwarf2_get_section_info): Use get_dwarf2_per_objfile. | |
3669 | (dwarf2_initialize_objfile): Consider cases where per_bfd can be | |
3670 | shared. | |
3671 | (dwarf2_build_psymtabs): Set objfile::partial_symtabs and | |
3672 | short-circuit when sharing. | |
3673 | (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs. | |
3674 | (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units. | |
3675 | ||
39b16f87 SM |
3676 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3677 | ||
3678 | * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move | |
3679 | to... | |
3680 | (struct dwarf2_per_objfile) <line_header_hash>: ... here. | |
3681 | * dwarf2/read.c (handle_DW_AT_stmt_list): Update. | |
3682 | ||
fcf23d5b SM |
3683 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3684 | ||
3685 | * dwarf2/read.c (struct mapped_index_base) <symbol_name_at, | |
3686 | build_name_components, find_name_components_bounds>: | |
3687 | Add per_objfile parameter. | |
3688 | (struct mapped_index) <symbol_name_at>: Likewise. | |
3689 | (struct mapped_debug_names): Remove constructor. | |
3690 | <dwarf2_per_objfile>: Remove field. | |
3691 | <namei_to_name, symbol_name_at>: Add per_objfile parameter. | |
3692 | (mapped_index_base::find_name_components_bounds, | |
3693 | mapped_index_base::build_name_components, | |
3694 | dw2_expand_symtabs_matching_symbol): Likewise. | |
3695 | (class mock_mapped_index) <symbol_name_at>: Likewise. | |
3696 | (check_match): Likewise. | |
3697 | (check_find_bounds_finds): Likewise. | |
3698 | (test_mapped_index_find_name_component_bounds): Update. | |
3699 | (CHECK_MATCH): Update. | |
3700 | (dw2_expand_symtabs_matching): Update. | |
3701 | (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add | |
3702 | per_objfile parameter. | |
3703 | <find_vec_in_debug_names>: Likewise. | |
3704 | <m_per_objfile>: New field. | |
3705 | (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile | |
3706 | parameter. | |
3707 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
3708 | (dw2_debug_names_iterator::next): Update. | |
3709 | (dw2_debug_names_lookup_symbol): Update. | |
3710 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
3711 | (dw2_debug_names_map_matching_symbols): Update. | |
3712 | (dw2_debug_names_expand_symtabs_matching): Update. | |
3713 | (dwarf2_read_debug_names): Update. | |
3714 | ||
7188ed02 SM |
3715 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3716 | ||
3717 | * dwarf2/read.h (struct dwarf2_cu): Forward-declare. | |
3718 | (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove, | |
3719 | move to dwarf2_per_objfile. | |
3720 | <read_in_chain>: Remove. | |
3721 | (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu, | |
3722 | remove_all_cus, age_comp_units>: New methods. | |
3723 | <m_dwarf2_cus>: New member. | |
3724 | (struct dwarf2_per_cu_data) <cu>: Remove. | |
3725 | * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove. | |
3726 | (age_cached_comp_units, free_one_cached_comp_unit): Remove, | |
3727 | moved to methods of dwarf2_per_objfile. | |
3728 | (dwarf2_clear_marks): Remove. | |
3729 | (dwarf2_queue_item::~dwarf2_queue_item): Update. | |
3730 | (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus. | |
3731 | (dwarf2_per_bfd::free_cached_comp_units): Remove. | |
3732 | (dwarf2_per_objfile::remove_all_cus): New. | |
3733 | (class free_cached_comp_units) <~free_cached_comp_units>: | |
3734 | Update. | |
3735 | (load_cu): Update. | |
3736 | (dw2_do_instantiate_symtab): Adjust. | |
3737 | (fill_in_sig_entry_from_dwo_entry): Adjust. | |
3738 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
3739 | (cutu_reader::cutu_reader): Likewise. | |
3740 | (cutu_reader::keep): Use dwarf2_per_objfile::set_cu. | |
3741 | (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu. | |
3742 | (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu | |
3743 | and dwarf2_per_objfile::age_comp_units. | |
3744 | (load_partial_comp_unit): Update. | |
3745 | (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu. | |
3746 | (process_queue): Likewise. | |
3747 | (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu | |
3748 | backlink. | |
3749 | (dwarf2_read_addr_index): Likewise. | |
3750 | (follow_die_offset): Likewise. | |
3751 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
3752 | (dwarf2_fetch_constant_bytes): Likewise. | |
3753 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
3754 | (follow_die_sig_1): Likewise. | |
3755 | (load_full_type_unit): Likewise. | |
3756 | (read_signatured_type): Likewise. | |
3757 | (dwarf2_cu::dwarf2_cu): Don't set cu field. | |
3758 | (dwarf2_cu::~dwarf2_cu): Remove. | |
3759 | (dwarf2_per_objfile::get_cu): New. | |
3760 | (dwarf2_per_objfile::set_cu): New. | |
3761 | (age_cached_comp_units): Rename to... | |
3762 | (dwarf2_per_objfile::age_comp_units): ... this. Adjust | |
3763 | to std::unordered_map. | |
3764 | (free_one_cached_comp_unit): Rename to... | |
3765 | (dwarf2_per_objfile::remove_cu): ... this. Adjust | |
3766 | to std::unordered_map. | |
3767 | (dwarf2_per_objfile::~dwarf2_per_objfile): New. | |
3768 | (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect | |
3769 | a dwarf2_per_objfile in data. | |
3770 | (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse. | |
3771 | (dwarf2_clear_marks): Remove. | |
3772 | ||
2e671100 SM |
3773 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3774 | ||
3775 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace | |
3776 | `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`. | |
3777 | (init_tu_and_read_dwo_dies): Likewise. | |
3778 | (cutu_reader::init_tu_and_read_dwo_dies): Likewise. | |
3779 | (cutu_reader::cutu_reader): Likewise. | |
3780 | (load_partial_comp_unit): Likewise. | |
3781 | (process_psymtab_comp_unit): Update. | |
3782 | (build_type_psymtabs_1): Update. | |
3783 | (process_skeletonless_type_unit): Update. | |
3784 | (load_full_comp_unit): Update. | |
3785 | (find_partial_die): Update. | |
3786 | (dwarf2_read_addr_index): Update. | |
3787 | (read_signatured_type): Update. | |
3788 | ||
2e6a9f79 SM |
3789 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
3790 | ||
3791 | * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header, | |
3792 | m_header_read_in>: New fields. | |
3793 | <get_header>: New method. | |
3794 | * dwarf2/read.c (per_cu_header_read_in): Remove. | |
3795 | (dwarf2_per_cu_data::get_header): New. | |
3796 | (dwarf2_per_cu_data::addr_size): Update. | |
3797 | (dwarf2_per_cu_data::offset_size): Update. | |
3798 | (dwarf2_per_cu_data::ref_addr_size): Update. | |
3799 | ||
1b555f17 SM |
3800 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
3801 | ||
3802 | * dwarf2/read.c (load_cu): Return dwarf2_cu. | |
3803 | (dw2_do_instantiate_symtab): Update. | |
3804 | (queue_and_load_all_dwo_tus): Change parameter from | |
3805 | dwarf2_per_cu_data to dwarf2_cu. | |
3806 | (dwarf2_fetch_die_loc_sect_off): Update. | |
3807 | (dwarf2_fetch_constant_bytes): Update. | |
3808 | (dwarf2_fetch_die_type_sect_off): Update. | |
3809 | ||
8fc0b21d SM |
3810 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
3811 | ||
3812 | * dwarf2/read.c (process_full_comp_unit, | |
3813 | process_full_type_unit): Remove per_cu, per_objfile paramters. | |
3814 | Add dwarf2_cu parameter. | |
3815 | (process_queue): Update. | |
3816 | ||
168c9250 SM |
3817 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
3818 | ||
3819 | * dwarf2/read.c (create_cu_from_index_list): Replace | |
3820 | dwarf2_per_objfile parameter with dwarf2_per_bfd. | |
3821 | (create_cus_from_index_list): Likewise. | |
3822 | (create_cus_from_index): Likewise. | |
3823 | (create_signatured_type_table_from_index): Likewise. | |
3824 | (create_cus_from_debug_names_list): Likewise. | |
3825 | (create_cus_from_debug_names): Likewise. | |
3826 | (dwarf2_read_gdb_index): Update. | |
3827 | (dwarf2_read_debug_names): Update. | |
3828 | ||
e286671b TT |
3829 | 2020-05-27 Tom Tromey <tom@tromey.com> |
3830 | Simon Marchi <simon.marchi@efficios.com> | |
3831 | ||
3832 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
3833 | <get_type_for_signatured_type, set_type_for_signatured_type>: | |
3834 | New methods. | |
3835 | <m_type_map>: New member. | |
3836 | (struct signatured_type) <type>: Remove. | |
3837 | * dwarf2/read.c | |
3838 | (dwarf2_per_objfile::get_type_for_signatured_type, | |
3839 | dwarf2_per_objfile::set_type_for_signatured_type): New. | |
3840 | (get_signatured_type): Use new methods. | |
3841 | ||
8adb8487 TT |
3842 | 2020-05-27 Tom Tromey <tom@tromey.com> |
3843 | Simon Marchi <simon.marchi@efficios.com> | |
3844 | ||
3845 | * dwarf2/read.h (struct type_unit_group_unshareable): New. | |
3846 | (struct dwarf2_per_objfile) <type_units>: New member. | |
3847 | <get_type_unit_group_unshareable>: New method. | |
3848 | * dwarf2/read.c (struct type_unit_group) <compunit_symtab, | |
3849 | num_symtabs, symtabs>: Remove; move to | |
3850 | type_unit_group_unshareable. | |
3851 | (dwarf2_per_objfile::get_type_unit_group_unshareable): New. | |
3852 | (process_full_type_unit, dwarf2_cu::setup_type_unit_groups) | |
3853 | (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable. | |
3854 | ||
127bbf4b SM |
3855 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3856 | ||
3857 | * dwarf2/read.h (struct dwarf2_per_cu_data): | |
3858 | <dwarf2_per_objfile>: Remove. | |
3859 | * dwarf2/read.c (create_cu_from_index_list): Don't assign | |
3860 | dwarf2_per_objfile. | |
3861 | (create_signatured_type_table_from_index): Likewise. | |
3862 | (create_signatured_type_table_from_debug_names): Likewise. | |
3863 | (create_debug_type_hash_table): Likewise. | |
3864 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
3865 | (create_type_unit_group): Likewise. | |
3866 | (read_comp_units_from_section): Likewise. | |
3867 | (create_cus_hash_table): Likewise. | |
3868 | ||
f6e649dd SM |
3869 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3870 | ||
3871 | * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to | |
3872 | dwarf2_per_cu_data::dwarf2_per_objfile. | |
3873 | (compute_compunit_symtab_includes): Likewise. | |
3874 | (dwarf2_cu::start_symtab): Likewise. | |
3875 | ||
aa66c379 SM |
3876 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
3877 | ||
3878 | * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile | |
3879 | parameter. | |
3880 | * dwarf2/read.c (get_die_type_at_offset): Likewise. | |
3881 | (read_namespace_alias): Update. | |
3882 | (lookup_die_type): Update. | |
3883 | (dwarf2_get_die_type): Add dwarf2_per_objfile parameter. | |
3884 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>: | |
3885 | Update. | |
3886 | (disassemble_dwarf_expression): Update. | |
3887 | ||
120ce1b5 SM |
3888 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3889 | ||
3890 | * dwarf2/read.h (struct dwarf2_queue_item): Add | |
3891 | dwarf2_per_objfile parameter, assign new parameter. | |
3892 | <per_objfile>: New field. | |
3893 | * dwarf2/read.c (free_one_cached_comp_unit): Add | |
3894 | dwarf2_per_objfile parameter. | |
3895 | (queue_comp_unit): Likewise. | |
3896 | (dw2_do_instantiate_symtab): Update. | |
3897 | (process_psymtab_comp_unit): Update. | |
3898 | (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter. | |
3899 | (process_imported_unit_die): Update. | |
3900 | (queue_and_load_dwo_tu): Update. | |
3901 | (follow_die_offset): Update. | |
3902 | (follow_die_sig_1): Update. | |
3903 | ||
9f47c707 SM |
3904 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3905 | ||
3906 | * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove. | |
3907 | * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down. | |
3908 | (read_call_site_scope): Assign per_objfile. | |
3909 | (dwarf2_per_cu_data::objfile): Remove. | |
3910 | * gdbtypes.h (struct call_site) <per_objfile>: New member. | |
3911 | * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add | |
3912 | dwarf2_per_objfile parameter. | |
3913 | * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add | |
3914 | dwarf2_per_objfile parameter. | |
3915 | (dwarf_expr_reg_to_entry_parameter): Add output | |
3916 | dwarf2_per_objfile parameter. | |
3917 | (locexpr_get_frame_base): Update. | |
3918 | (class dwarf_evaluate_loc_desc) <get_tls_address>: Update. | |
3919 | <push_dwarf_reg_entry_value>: Update. | |
3920 | <call_site_to_target_addr>: Update. | |
3921 | (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile | |
3922 | parameter. | |
3923 | (value_of_dwarf_reg_entry): Update. | |
3924 | (rw_pieced_value): Update. | |
3925 | (indirect_synthetic_pointer): Update. | |
3926 | (dwarf2_evaluate_property): Update. | |
3927 | (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile | |
3928 | parameter. | |
3929 | (locexpr_read_variable): Update. | |
3930 | (locexpr_get_symbol_read_needs): Update. | |
3931 | (loclist_read_variable): Update. | |
3932 | ||
14095eb3 SM |
3933 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3934 | ||
3935 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
3936 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
3937 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
3938 | parameter. | |
3939 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
3940 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
3941 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
3942 | parameter. | |
3943 | * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call, | |
3944 | sect_variable_value): Add dwarf2_per_objfile parameter. | |
3945 | (class dwarf_evaluate_loc_desc) <dwarf_call, | |
3946 | dwarf_variable_value>: Update. | |
3947 | (fetch_const_value_from_synthetic_pointer): Add | |
3948 | dwarf2_per_objfile parameter. | |
3949 | (fetch_const_value_from_synthetic_pointer): Update. | |
3950 | (coerced_pieced_ref): Update. | |
3951 | (class symbol_needs_eval_context) <dwarf_call, | |
3952 | dwarf_variable_value>: Update. | |
3953 | (dwarf2_compile_expr_to_ax): Update. | |
3954 | ||
3c3cd3d4 SM |
3955 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3956 | ||
3957 | * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile | |
3958 | parameter. | |
3959 | (dwarf2_evaluate_loc_desc_full): Update. | |
3960 | ||
82ca3f51 SM |
3961 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3962 | ||
3963 | * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile | |
3964 | parameter. | |
3965 | * dwarf2/read.c (dwarf2_read_addr_index): Likewise. | |
3966 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add | |
3967 | dwarf2_per_objfile parameter. | |
3968 | (decode_debug_loc_dwo_addresses): Likewise. | |
3969 | (dwarf2_find_location_expression): Update. | |
3970 | (class dwarf_evaluate_loc_desc) <get_addr_index>: Update. | |
3971 | (locexpr_describe_location_piece): Add dwarf2_per_objfile | |
3972 | parameter. | |
3973 | (disassemble_dwarf_expression): Add dwarf2_per_objfile | |
3974 | parameter. | |
3975 | (locexpr_describe_location_1): Likewise. | |
3976 | (locexpr_describe_location): Update. | |
3977 | ||
4b167ea1 SM |
3978 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3979 | ||
3980 | * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>: | |
3981 | Remove. | |
3982 | * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove. | |
3983 | * dwarf2/loc.c (dwarf2_find_location_expression): Update. | |
3984 | (dwarf2_compile_property_to_c): Update. | |
3985 | (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter, | |
3986 | use text offset from objfile. | |
3987 | (locexpr_tracepoint_var_ref): Update. | |
3988 | (locexpr_generate_c_location): Update. | |
3989 | (loclist_describe_location): Update. | |
3990 | (loclist_tracepoint_var_ref): Update. | |
3991 | * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add | |
3992 | dwarf2_per_objfile parameter. | |
3993 | * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise, | |
3994 | use text offset from objfile. | |
3995 | (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter. | |
3996 | ||
89b07335 SM |
3997 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
3998 | ||
3999 | * dwarf2/expr.h (struct dwarf_expr_context) | |
4000 | <dwarf_expr_context>: Add dwarf2_per_objfile parameter. | |
4001 | <offset>: Remove. | |
4002 | <per_objfile>: New member. | |
4003 | * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add | |
4004 | dwarf2_per_objfile parameter. Don't set offset, set | |
4005 | per_objfile. | |
4006 | (dwarf_expr_context::execute_stack_op): Use offset from objfile. | |
4007 | * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter) | |
4008 | a dwarf2_per_objfile object instead of an offset. | |
4009 | (class dwarf_expr_executor) <dwarf_expr_executor>: Add | |
4010 | constructor. | |
4011 | (execute_stack_op): Add dwarf2_per_objfile parameter, pass it | |
4012 | to dwarf2_expr_executor constructor. Don't set offset. | |
4013 | (dwarf2_fetch_cfa_info): Update. | |
4014 | (struct dwarf2_frame_cache) <text_offset>: Remove. | |
4015 | <per_objfile>: New field. | |
4016 | (dwarf2_frame_cache): Update. | |
4017 | (dwarf2_frame_prev_register): Update. | |
4018 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
4019 | <dwarf_evaluate_loc_desc>: Add constructor. | |
4020 | (dwarf2_evaluate_loc_desc_full): Update. | |
4021 | (dwarf2_locexpr_baton_eval): Update. | |
4022 | (class symbol_needs_eval_context) <symbol_needs_eval_context>: | |
4023 | Add constructor. | |
4024 | (dwarf2_loc_desc_get_symbol_read_needs): Update. | |
4025 | ||
293e7e51 SM |
4026 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4027 | ||
4028 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type, | |
4029 | addr_sized_int_type>: Move to dwarf2_cu. | |
4030 | <int_type>: Move to dwarf2_per_objfile. | |
4031 | (struct dwarf2_per_objfile) <int_type>: Move here. | |
4032 | * dwarf2/read.c (struct dwarf2_cu) <addr_type, | |
4033 | addr_sized_int_type>: Move here. | |
4034 | (read_func_scope): Update. | |
4035 | (read_array_type): Update. | |
4036 | (read_tag_string_type): Update. | |
4037 | (attr_to_dynamic_prop): Update. | |
4038 | (dwarf2_per_cu_data::int_type): Rename to... | |
4039 | (dwarf2_per_objfile::int_type): ... this. | |
4040 | (dwarf2_per_cu_data::addr_sized_int_type): Rename to... | |
4041 | (dwarf2_cu::addr_sized_int_type): ... this. | |
4042 | (read_subrange_type): Update. | |
4043 | (dwarf2_per_cu_data::addr_type): Rename to... | |
4044 | (dwarf2_cu::addr_type): ... this. | |
4045 | (set_die_type): Update. | |
4046 | ||
64874a40 SM |
4047 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4048 | ||
4049 | * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile | |
4050 | data through per_cu->cu. | |
4051 | ||
4ab09049 SM |
4052 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4053 | ||
4054 | * dwarf2/read.c (lookup_dwo_comp_unit): Change | |
4055 | dwarf2_per_cu_data parameter fo dwarf2_cu. | |
4056 | (lookup_dwo_type_unit): Likewise. | |
4057 | (read_cutu_die_from_dwo): Likewise. | |
4058 | (lookup_dwo_unit): Likewise. | |
4059 | (open_and_init_dwo_file): Likewise. | |
4060 | (lookup_dwo_cutu): Likewise. | |
4061 | (lookup_dwo_comp_unit): Likewise. | |
4062 | (lookup_dwo_type_unit): Likewise. | |
4063 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
4064 | (cutu_reader::cutu_reader): Update. | |
4065 | ||
47b14e86 SM |
4066 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4067 | ||
4068 | * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile | |
4069 | parameter. | |
4070 | (process_full_type_unit): Likewise. | |
4071 | (process_queue): Update. | |
4072 | ||
43182c09 SM |
4073 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4074 | ||
4075 | * dwarf2/read.c (recursively_compute_inclusions): Add | |
4076 | dwarf2_per_objfile parameter. | |
4077 | (compute_compunit_symtab_includes): Likewise. | |
4078 | (process_cu_includes): Update. | |
4079 | ||
7aa104c4 SM |
4080 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4081 | ||
4082 | * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile | |
4083 | parameter. | |
4084 | (create_type_unit_group): Update. | |
4085 | (process_psymtab_comp_unit_reader): Update. | |
4086 | (build_type_psymtabs_reader): Update. | |
4087 | ||
e3beb21d SM |
4088 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4089 | ||
4090 | * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile | |
4091 | object through m_this_cu->cu. | |
4092 | ||
d460f660 SM |
4093 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4094 | ||
4095 | * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as | |
4096 | the info parameter. | |
4097 | (queue_and_load_all_dwo_tus): Pass per_cu->cu. | |
4098 | ||
ab432490 SM |
4099 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4100 | ||
4101 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add | |
4102 | per_objfile parameter. | |
4103 | (load_full_type_unit): Add per_objfile parameter. | |
4104 | (read_signatured_type): Likewise. | |
4105 | (load_full_comp_unit): Likewise. | |
4106 | (load_cu): Likewise. | |
4107 | (dw2_do_instantiate_symtab): Likewise. | |
4108 | (dw2_get_file_names): Likewise. | |
4109 | (dw2_map_symtabs_matching_filename): Update. | |
4110 | (dw_expand_symtabs_matching_file_matcher): Update. | |
4111 | (dw2_map_symbol_filenames): Update. | |
4112 | (process_psymtab_comp_unit): Add per_objfile parameter. | |
4113 | (build_type_psymtabs_1): Update. | |
4114 | (process_skeletonless_type_unit): Update. | |
4115 | (dwarf2_build_psymtabs_hard): Update. | |
4116 | (load_partial_comp_unit): Add per_objfile parameter. | |
4117 | (scan_partial_symbols): Update. | |
4118 | (load_full_comp_unit): Add per_objfile parameter. | |
4119 | (process_imported_unit_die): Update. | |
4120 | (create_cus_hash_table): Update. | |
4121 | (find_partial_die): Update. | |
4122 | (dwarf2_read_addr_index): Update. | |
4123 | (follow_die_offset): Update. | |
4124 | (dwarf2_fetch_die_loc_sect_off): Update. | |
4125 | (dwarf2_fetch_constant_bytes): Update. | |
4126 | (dwarf2_fetch_die_type_sect_off): Update. | |
4127 | (follow_die_sig_1): Update. | |
4128 | (load_full_type_unit): Add per_objfile parameter. | |
4129 | (read_signatured_type): Likewise. | |
4130 | ||
313bad1b SM |
4131 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4132 | ||
4133 | * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead | |
4134 | of objfile_name. | |
4135 | ||
c3699833 SM |
4136 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4137 | ||
4138 | * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member. | |
4139 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
4140 | * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd | |
4141 | field. | |
4142 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
4143 | (create_cus_from_index): Update. | |
4144 | (dwarf2_read_gdb_index): Update. | |
4145 | (create_cus_from_debug_names): Update. | |
4146 | (dwarf2_read_debug_names): Update. | |
4147 | (get_abbrev_section_for_cu): Update. | |
4148 | (create_all_comp_units): Update. | |
4149 | (read_attribute_value): Update. | |
4150 | (get_debug_line_section): Update. | |
4151 | * dwarf2/index-cache.c (index_cache::store): Update. | |
4152 | * dwarf2/index-write.c (save_gdb_index_command): Update. | |
4153 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. | |
4154 | ||
1859c670 SM |
4155 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4156 | ||
4157 | * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New | |
4158 | member. | |
4159 | * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize | |
4160 | dwarf2_per_cu_data::per_bfd. | |
4161 | (dwarf2_per_bfd::allocate_signatured_type): Likewise. | |
4162 | (create_type_unit_group): Likewise. | |
4163 | (queue_comp_unit): Remove reference to | |
4164 | per_cu->dwarf2_per_objfile. | |
4165 | (maybe_queue_comp_unit): Likewise. | |
4166 | (fill_in_sig_entry_from_dwo_entry): Assign new field. | |
4167 | (create_cus_hash_table): Assign new field. | |
4168 | ||
5e22e966 SM |
4169 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4170 | ||
4171 | * dwarf2/read.c: Replace | |
4172 | dwarf2_cu->per_cu->dwarf2_per_objfile references with | |
4173 | dwarf2_cu->per_objfile throughout. | |
4174 | ||
97a1449a SM |
4175 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4176 | ||
4177 | * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile | |
4178 | parameter, don't use per_cu->dwarf2_per_objfile. | |
4179 | (dw2_instantiate_symtab): Likewise. | |
4180 | (dw2_find_last_source_symtab): Update. | |
4181 | (dw2_map_expand_apply): Update. | |
4182 | (dw2_lookup_symbol): Update. | |
4183 | (dw2_expand_symtabs_for_function): Update. | |
4184 | (dw2_expand_all_symtabs): Update. | |
4185 | (dw2_expand_symtabs_with_fullname): Update. | |
4186 | (dw2_expand_symtabs_matching_one): Add per_objfile parameter, | |
4187 | don't use per_cu->dwarf2_per_objfile. | |
4188 | (dw2_expand_marked_cus): Update. | |
4189 | (dw2_find_pc_sect_compunit_symtab): Update. | |
4190 | (dw2_debug_names_lookup_symbol): Update. | |
4191 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
4192 | (dw2_debug_names_map_matching_symbols): Update. | |
4193 | (dwarf2_psymtab::expand_psymtab): Update. | |
4194 | ||
9e021579 SM |
4195 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4196 | ||
4197 | * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter. | |
4198 | <per_objfile>: New member. | |
4199 | (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter. | |
4200 | (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update | |
4201 | call to dwarf2_cu. | |
4202 | (cutu_reader::cutu_reader): Update. | |
4203 | (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile. | |
4204 | ||
ae090bdb SM |
4205 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4206 | ||
4207 | * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to | |
4208 | struct dwarf2_per_objfile. | |
4209 | (struct dwarf2_per_objfile) <die_type_hash>: Move from struct | |
4210 | dwarf2_per_bfd. | |
4211 | * dwarf2/read.c (set_die_type): Update. | |
4212 | (get_die_type_at_offset): Update. | |
4213 | ||
af758d11 SM |
4214 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4215 | Simon Marchi <simon.marchi@efficios.com> | |
4216 | ||
4217 | * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New | |
4218 | method. | |
4219 | (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p, | |
4220 | get_symtab, set_symtab>: New methods. | |
4221 | <m_symtabs>: New field. | |
4222 | (struct dwarf2_psymtab): Derive from partial_symtab. | |
4223 | <readin_p, get_compunit_symtab>: Declare methods. | |
4224 | * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p, | |
4225 | dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab): | |
4226 | New methods. | |
4227 | (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove. | |
4228 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab) | |
4229 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
4230 | (dw2_symtab_iter_next, dw2_print_stats) | |
4231 | (dw2_expand_symtabs_with_fullname) | |
4232 | (dw2_expand_symtabs_matching_one) | |
4233 | (dw_expand_symtabs_matching_file_matcher) | |
4234 | (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames) | |
4235 | (dw2_debug_names_iterator::next) | |
4236 | (dw2_debug_names_map_matching_symbols) | |
4237 | (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab) | |
4238 | (process_queue, dwarf2_psymtab::expand_psymtab): Update. | |
4239 | (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab): | |
4240 | New methods. | |
4241 | (get_compunit_symtab, process_full_comp_unit) | |
4242 | (process_full_type_unit): Update. | |
4243 | (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call | |
4244 | ||
5989a64e SM |
4245 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4246 | ||
4247 | * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd, | |
4248 | then introduce a new dwarf2_per_objfile type. | |
4249 | <read_line_string>: Move to the new dwarf2_per_objfile type. | |
4250 | <objfile>: Likewise. | |
4251 | (dwarf2_per_bfd): Rename dwarf2_per_objfile to this. | |
4252 | * dwarf2/read.c: Replace references to dwarf2_per_objfile with | |
4253 | dwarf2_per_objfile->per_bfd. | |
4254 | (dwarf2_per_objfile::dwarf2_per_objfile): Rename to... | |
4255 | (dwarf2_per_bfd::dwarf2_per_bfd): ... this. | |
4256 | (dwarf2_per_objfile::free_cached_comp_units): Rename to... | |
4257 | (dwarf2_per_bfd::free_cached_comp_units): ... this. | |
4258 | (dwarf2_has_info): Allocate dwarf2_per_bfd. | |
4259 | (dwarf2_per_objfile::locate_sections): Rename to... | |
4260 | (dwarf2_per_bfd::locate_sections): ... this. | |
4261 | (dwarf2_per_objfile::get_cutu): Rename to... | |
4262 | (dwarf2_per_bfd::get_cutu): ... this. | |
4263 | (dwarf2_per_objfile::get_cu): Rename to... | |
4264 | (dwarf2_per_bfd::get_cu): ... this. | |
4265 | (dwarf2_per_objfile::get_tu): Rename to... | |
4266 | (dwarf2_per_bfd::get_tu): ... this. | |
4267 | (dwarf2_per_objfile::allocate_per_cu): Rename to... | |
4268 | (dwarf2_per_bfd::allocate_per_cu): ... this. | |
4269 | (dwarf2_per_objfile::allocate_signatured_type): Rename to... | |
4270 | (dwarf2_per_bfd::allocate_signatured_type): ... this. | |
4271 | (get_gdb_index_contents_ftype): Change parameter from | |
4272 | dwarf2_per_objfile to dwarf2_per_bfd. | |
4273 | * dwarf2/macro.c, dwarf2/index-write.c: Replace references to | |
4274 | dwarf2_per_objfile with dwarf2_per_objfile->per_bfd. | |
4275 | ||
a50264ba TT |
4276 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4277 | Simon Marchi <simon.marchi@efficios.com> | |
4278 | ||
4279 | * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member. | |
4280 | (allocate_piece_closure): Set "per_objfile" member. | |
4281 | (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval) | |
4282 | (locexpr_describe_location, loclist_describe_location): Use new | |
4283 | member. | |
4284 | * dwarf2/read.c (read_call_site_scope) | |
4285 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
4286 | (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off) | |
4287 | (fill_in_loclist_baton, dwarf2_symbol_mark_computed, | |
4288 | handle_data_member_location): Set per_objfile member. | |
4289 | * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New | |
4290 | member. | |
4291 | (struct dwarf2_loclist_baton) <per_objfile>: New member. | |
4292 | ||
d3473f0c TT |
4293 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4294 | ||
4295 | * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu, | |
4296 | allocate_signatured_type>: Declare new methods. | |
4297 | <m_num_psymtabs>: New member. | |
4298 | (struct dwarf2_per_cu_data) <index>: New member. | |
4299 | * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu) | |
4300 | (dwarf2_per_objfile::allocate_signatured_type): New methods. | |
4301 | (create_cu_from_index_list): Use allocate_per_cu. | |
4302 | (create_signatured_type_table_from_index) | |
4303 | (create_signatured_type_table_from_debug_names) | |
4304 | (create_debug_type_hash_table, add_type_unit) | |
4305 | (read_comp_units_from_section): Use allocate_signatured_type. | |
4306 | ||
5717c425 TT |
4307 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4308 | ||
4309 | * psymtab.c (partial_map_expand_apply) | |
4310 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
4311 | (psym_lookup_global_symbol_language) | |
4312 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
4313 | (psym_print_stats, psym_expand_symtabs_for_function) | |
4314 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
4315 | (psym_expand_symtabs_matching) | |
4316 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
4317 | (maintenance_check_psymtabs): Update. | |
4318 | * psympriv.h (struct partial_symtab) <readin_p, | |
4319 | get_compunit_symtab>: Add objfile parameter. | |
4320 | (struct standard_psymtab) <readin_p, get_compunit_symtab>: | |
4321 | Likewise. | |
4322 | * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p, | |
4323 | get_compunit_symtab>: Likewise. | |
4324 | (dwarf2_psymtab::expand_psymtab): Pass objfile argument. | |
4325 | ||
45940949 TT |
4326 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4327 | ||
4328 | * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New | |
4329 | member. | |
4330 | * dwarf2/read.c (delete_file_name_entry): Fix comment. | |
4331 | (create_cu_from_index_list) | |
4332 | (create_signatured_type_table_from_index) | |
4333 | (create_signatured_type_table_from_debug_names) | |
4334 | (dw2_get_file_names_reader, dwarf2_initialize_objfile) | |
4335 | (dwarf2_create_include_psymtab) | |
4336 | (create_debug_type_hash_table, add_type_unit) | |
4337 | (create_type_unit_group, read_comp_units_from_section) | |
4338 | (dwarf2_compute_name, create_cus_hash_table) | |
4339 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
4340 | (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new | |
4341 | obstack. | |
4342 | (dw2_get_real_path): Likewise. Change argument to | |
4343 | dwarf2_per_objfile. | |
4344 | ||
f8c6d152 LM |
4345 | 2020-05-27 Luis Machado <luis.machado@linaro.org> |
4346 | ||
4347 | PR tdep/26000 | |
4348 | * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching | |
4349 | for ldrd (immediate). | |
4350 | ||
e98d2e6d PW |
4351 | 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4352 | ||
4353 | * command.h: Add comment giving the name of class_tui. | |
4354 | * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined, | |
4355 | create the fake command for the help for class_tui. | |
4356 | ||
53a47a3e TT |
4357 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
4358 | ||
4359 | * ada-lang.c (ada_print_array_index): Change type. Call val_atr. | |
4360 | (ada_value_ptr_subscript): Don't call pos_atr on the lower bound. | |
4361 | (val_atr): New function. | |
4362 | (value_val_atr): Use it. | |
4363 | * ada-valprint.c (print_optional_low_bound): Change low bound | |
4364 | handling for enums. | |
4365 | (val_print_packed_array_elements): Don't call discrete_position. | |
4366 | * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call | |
4367 | discrete_position for enum types. | |
4368 | * language.c (default_print_array_index): Change type. | |
4369 | * language.h (struct language_defn) <la_print_array_index>: Add | |
4370 | index_type parameter, change type of index_value. | |
4371 | (LA_PRINT_ARRAY_INDEX): Add index_type parameter. | |
4372 | (default_print_array_index): Update. | |
4373 | * valprint.c (maybe_print_array_index): Don't call | |
4374 | value_from_longest. Update. | |
4375 | (value_print_array_elements): Don't call discrete_position. | |
4376 | ||
0bc2354b TT |
4377 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
4378 | ||
4379 | * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE. | |
4380 | * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE. | |
4381 | ||
1218a4bf CDA |
4382 | 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com> |
4383 | ||
4384 | PR gdb/13519 | |
4385 | * avr-tdep.c (avr_integer_to_address): Return data or code | |
4386 | address accordingly to the second 'type' argument of the | |
4387 | function. | |
4388 | ||
92651b1d MW |
4389 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> |
4390 | ||
4391 | * infcmd.c, inferior.h: (construct_inferior_arguments): | |
4392 | Moved function from here to gdbsupport/common-inferior.{h,cc} | |
4393 | ||
0a4f5f8c TT |
4394 | 2020-05-23 Tom Tromey <tom@tromey.com> |
4395 | ||
4396 | Revert commit eca1f90c: | |
4397 | * NEWS: Remove entry for completion styling. | |
4398 | * completer.c (_rl_completion_prefix_display_length): Move | |
4399 | declaration later. | |
4400 | (gdb_fnprint): Revert. | |
4401 | (gdb_display_match_list_1): Likewise. | |
4402 | * cli/cli-style.c (completion_prefix_style) | |
4403 | (completion_difference_style, completion_suffix_style): Remove. | |
4404 | (_initialize_cli_style): Revert. | |
4405 | * cli/cli-style.h (completion_prefix_style) | |
4406 | (completion_difference_style, completion_suffix_style): Don't | |
4407 | declare. | |
4408 | ||
e08bd6c5 PA |
4409 | 2020-05-24 Pedro Alves <palves@redhat.com> |
4410 | ||
4411 | * symtab.c (completion_list_add_name): Return boolean indication | |
4412 | of whether the symbol matched. | |
4413 | (completion_list_add_symbol): Don't try to remove C++ aliases if | |
4414 | the symbol didn't match in the first place. | |
4415 | * symtab.h (completion_list_add_name): Return bool. | |
4416 | ||
ceacbf6e SM |
4417 | 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca> |
4418 | ||
4419 | * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with | |
4420 | type::field. | |
4421 | ||
26f16254 JB |
4422 | 2020-05-23 Joel Brobecker <brobecker@adacore.com> |
4423 | ||
4424 | GDB 9.2 released. | |
4425 | ||
eca1f90c TT |
4426 | 2020-05-23 Tom Tromey <tom@tromey.com> |
4427 | ||
4428 | * NEWS: Add entry for completion styling. | |
4429 | * completer.c (_rl_completion_prefix_display_length): Move | |
4430 | declaration earlier. | |
4431 | (gdb_fnprint): Use completion_style. | |
4432 | (gdb_display_match_list_1): Likewise. | |
4433 | * cli/cli-style.c (completion_prefix_style) | |
4434 | (completion_difference_style, completion_suffix_style): New | |
4435 | globals. | |
4436 | (_initialize_cli_style): Register new globals. | |
4437 | * cli/cli-style.h (completion_prefix_style) | |
4438 | (completion_difference_style, completion_suffix_style): Declare. | |
4439 | ||
51e2cfa2 PA |
4440 | 2020-05-23 Pedro Alves <palves@redhat.com> |
4441 | ||
4442 | * utils.c: Include "gdbsupport/gdb-safe-ctype.h". | |
4443 | (parse_escape): Use ISDIGIT instead of isdigit. | |
4444 | (puts_debug): Use gdb_isprint instead of isprint. | |
4445 | (fprintf_symbol_filtered): Use ISALNUM instead of isalnum. | |
4446 | (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use | |
4447 | ISSPACE instead of isspace. | |
4448 | (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE | |
4449 | instead of isspace. | |
4450 | (strcmp_iw_ordered): Use ISSPACE instead of isspace. | |
4451 | (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT | |
4452 | instead of isxdigit and ISDIGIT instead of isdigit. | |
4453 | ||
80fc5e77 SM |
4454 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
4455 | ||
4456 | * gdbtypes.h (struct type) <field>: New method. | |
4457 | (TYPE_FIELDS): Remove, replace all uses with either type::fields | |
4458 | or type::field. | |
4459 | ||
3cabb6b0 SM |
4460 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
4461 | ||
4462 | * gdbtypes.h (struct type) <fields, set_fields>: New methods. | |
4463 | (TYPE_FIELDS): Use type::fields. Change all call sites that | |
4464 | modify the propery to use type::set_fields instead. | |
4465 | ||
1f704f76 SM |
4466 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
4467 | ||
4468 | * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use | |
4469 | type::num_fields instead. | |
4470 | ||
5e33d5f4 SM |
4471 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
4472 | ||
4473 | * gdbtypes.h (struct type) <num_fields, set_num_fields>: New | |
4474 | methods. | |
4475 | (TYPE_NFIELDS): Use type::num_fields. Change all call sites | |
4476 | that modify the number of fields to use type::set_num_fields | |
4477 | instead. | |
4478 | ||
9392ebb3 TT |
4479 | 2020-05-22 Tom Tromey <tromey@adacore.com> |
4480 | ||
4481 | * compile/compile-object-load.h (munmap_list_free): Don't | |
4482 | declare. | |
4483 | ||
7c13f4e8 AB |
4484 | 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com> |
4485 | ||
4486 | * annotate.c (annotate_source_line): Update return type, add call | |
4487 | to update current symtab and line. | |
4488 | * annotate.h (annotate_source_line): Update return type, and | |
4489 | extend header comment. | |
4490 | * source.c (info_line_command): Check annotation_level before | |
4491 | calling annotate_source_line. | |
4492 | * stack.c (print_frame_info): If calling annotate_source_line | |
4493 | returns true, then don't print any other source line information. | |
4494 | ||
aa370940 SM |
4495 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
4496 | ||
4497 | * lm32-tdep.c (lm32_register_reggroup_p): Fix condition. | |
4498 | ||
84d53fa9 SM |
4499 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
4500 | ||
4501 | * coffread.c (patch_type): Remove NULL check before xfree. | |
4502 | * corefile.c (set_gnutarget): Likewise. | |
4503 | * cp-abi.c (set_cp_abi_as_auto_default): Likewise. | |
4504 | * exec.c (build_section_table): Likewise. | |
4505 | * remote.c (remote_target::pass_signals): Likewise. | |
4506 | * utils.c (n_spaces): Likewise. | |
4507 | * cli/cli-script.c (document_command): Likewise. | |
4508 | * i386-windows-tdep.c (core_process_module_section): Likewise. | |
4509 | * linux-fork.c (struct fork_info) <~fork_info>: Likewise. | |
4510 | ||
9d428aae SM |
4511 | 2020-05-20 Simon Marchi <simon.marchi@efficios.com> |
4512 | ||
4513 | * symfile.c (reread_symbols): Clear objfile's section_offsets | |
4514 | vector and section indices, re-compute them by calling | |
4515 | sym_offsets. | |
4516 | ||
250106a7 TT |
4517 | 2020-05-20 Tom Tromey <tromey@adacore.com> |
4518 | ||
4519 | * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove. | |
ec16513e | 4520 | (desc_one_bound, desc_index_type): Compute field name. |
250106a7 | 4521 | |
9a0bacfb TV |
4522 | 2020-05-20 Tom de Vries <tdevries@suse.de> |
4523 | ||
4524 | PR symtab/25833 | |
4525 | * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index. | |
4526 | ||
7b958a48 AM |
4527 | 2020-05-20 Alan Modra <amodra@gmail.com> |
4528 | ||
4529 | PR 25993 | |
4530 | * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for | |
4531 | bfd_set_filename. | |
4532 | * solib-aix.c (solib_aix_bfd_open): Use std::string for name | |
4533 | passed to bfd_set_filename. | |
4534 | * symfile-mem.c (add_vsyscall_page): Likewise for string | |
4535 | passed to symbol_file_add_from_memory. | |
4536 | (symbol_file_add_from_memory): Make name param a const char* and | |
4537 | don't strdup. | |
4538 | ||
c7e97679 AM |
4539 | 2020-05-20 Alan Modra <amodra@gmail.com> |
4540 | ||
4541 | * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename | |
4542 | rather than accessing bfd->filename directly. | |
4543 | * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise, | |
4544 | and use bfd_section_name. | |
4545 | * dwarf2/frame.c (decode_frame_entry): Likewise. | |
4546 | * exec.c (exec_set_section_address): Likewise. | |
4547 | * solib-aix.c (solib_aix_bfd_open): Likewise. | |
4548 | * stap-probe.c (get_stap_base_address): Likewise. | |
4549 | * symfile.c (reread_symbols): Likewise. | |
4550 | ||
563c591b TT |
4551 | 2020-05-19 Tom Tromey <tromey@adacore.com> |
4552 | ||
4553 | * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open. | |
4554 | ||
f408d82c SM |
4555 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
4556 | ||
4557 | * dwarf2/read.c (quirk_rust_enum): Allocate enough fields. | |
4558 | ||
98c59b52 PA |
4559 | 2020-05-19 Pedro Alves <palves@redhat.com> |
4560 | ||
4561 | * NEWS (set exec-file-mismatch): Adjust entry. | |
4562 | * exec.c: Include "build-id.h". | |
4563 | (validate_exec_file): Try to match build IDs instead of filenames. | |
4564 | * gdb_bfd.c (struct gdb_bfd_open_closure): New. | |
4565 | (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure | |
4566 | and pass down 'warn_if_slow'. | |
4567 | (gdb_bfd_open): Add 'warn_if_slow' parameter. Use | |
4568 | gdb_bfd_open_closure to pass it down. | |
4569 | * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter. | |
4570 | ||
4111f652 PA |
4571 | 2020-05-19 Pedro Alves <palves@redhat.com> |
4572 | ||
4573 | * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. | |
4574 | * target.c (target_fileio_open_1): Rename to target_fileio_open | |
4575 | and make extern. Use bool. | |
4576 | (target_fileio_open, target_fileio_open_warn_if_slow): Delete. | |
4577 | (target_fileio_read_alloc_1): Adjust. | |
4578 | * target.h (target_fileio_open): Add 'warn_if_slow' parameter. | |
4579 | (target_fileio_open_warn_if_slow): Delete declaration. | |
4580 | ||
ad80db5b PA |
4581 | 2020-05-19 Pedro Alves <palves@redhat.com> |
4582 | ||
4583 | * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1. | |
4584 | Adjust all callers. | |
4585 | ||
1d6ce4d3 YS |
4586 | 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp> |
4587 | ||
4588 | * h8300-tdep.c (h8300_is_argument_spill): Change how we check | |
4589 | whether disp is negative. | |
4590 | ||
9005fbbb SM |
4591 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
4592 | ||
4593 | * symfile.h (struct symfile_segment_data) | |
4594 | <~symfile_segment_data>: Remove. | |
4595 | <segment_info>: Change to std::vector. | |
4596 | * symfile.c (default_symfile_segments): Update. | |
4597 | * elfread.c (elf_symfile_segments): Update. | |
4598 | ||
68b888ff SM |
4599 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
4600 | ||
4601 | * symfile.h (struct symfile_segment_data) <struct segment>: New. | |
4602 | <segments>: New. | |
4603 | <segment_bases, segment_sizes>: Remove. | |
4604 | * symfile.c (default_symfile_segments): Update. | |
4605 | * elfread.c (elf_symfile_segments): Update. | |
4606 | * remote.c (remote_target::get_offsets): Update. | |
4607 | * solib-target.c (solib_target_relocate_section_addresses): | |
4608 | Update. | |
4609 | ||
62982abd SM |
4610 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
4611 | ||
4612 | * symfile.h (struct symfile_segment_data): Initialize fields. | |
4613 | <~symfile_segment_data>: Add. | |
4614 | (symfile_segment_data_up): New. | |
4615 | (struct sym_fns) <sym_segments>: Return a | |
4616 | symfile_segment_data_up. | |
4617 | (default_symfile_segments): Return a symfile_segment_data_up. | |
4618 | (free_symfile_segment_data): Remove. | |
4619 | (get_symfile_segment_data): Return a symfile_segment_data_up. | |
4620 | * symfile.c (default_symfile_segments): Likewise. | |
4621 | (get_symfile_segment_data): Likewise. | |
4622 | (free_symfile_segment_data): Remove. | |
4623 | (symfile_find_segment_sections): Update. | |
4624 | * elfread.c (elf_symfile_segments): Return a | |
4625 | symfile_segment_data_up. | |
4626 | * remote.c (remote_target::get_offsets): Update. | |
4627 | * solib-target.c (solib_target_relocate_section_addresses): | |
4628 | Update. | |
4629 | * symfile-debug.c (debug_sym_segments): Return a | |
4630 | symfile_segment_data_up. | |
4631 | ||
7f204339 RO |
4632 | 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
4633 | ||
e52a0f1b RO |
4634 | PR build/25981 |
4635 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap): | |
4636 | Hardcode register numbers. | |
4637 | ||
7f204339 RO |
4638 | PR build/25981 |
4639 | * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry, | |
4640 | procfs_find_LDT_entry): Remove. | |
4641 | * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd, | |
4642 | procfs_find_LDT_entry): Remove. | |
4643 | * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT): | |
4644 | Remove. | |
4645 | ||
7f32a4d5 PA |
4646 | 2020-05-17 Pedro Alves <palves@redhat.com> |
4647 | Andrew Burgess <andrew.burgess@embecosm.com> | |
4648 | Keno Fischer <keno@juliacomputing.com> | |
4649 | ||
4650 | PR gdb/25741 | |
4651 | * breakpoint.c (build_target_condition_list): Update comments. | |
4652 | (build_target_command_list): Update comments and skip matching | |
4653 | locations. | |
4654 | (insert_bp_location): Move "set breakpoint auto-hw on" handling to | |
4655 | a separate function. Simplify "set breakpoint auto-hw off" | |
4656 | handling. | |
4657 | (insert_breakpoints): Update comment. | |
4658 | (tracepoint_locations_match): New parameter. For breakpoints, | |
4659 | compare location types too, if the caller wants to. | |
4660 | (handle_automatic_hardware_breakpoints): New functions. | |
4661 | (bp_location_is_less_than): Also sort by location type and | |
4662 | hardware breakpoint length. | |
4663 | (update_global_location_list): Handle "set breakpoint auto-hw on" | |
4664 | here. | |
4665 | (update_breakpoint_locations): Ask breakpoint_locations_match to | |
4666 | ignore location types. | |
4667 | ||
7d93a1e0 SM |
4668 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
4669 | ||
4670 | * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use | |
4671 | type::name instead. | |
4672 | ||
d0e39ea2 SM |
4673 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
4674 | ||
4675 | * gdbtypes.h (struct type) <name, set_name>: New methods. | |
4676 | (TYPE_CODE): Use type::name. Change all call sites used to set | |
4677 | the name to use type::set_name instead. | |
4678 | ||
2dab0c7b TT |
4679 | 2020-05-16 Tom Tromey <tom@tromey.com> |
4680 | ||
4681 | * top.c (quit_force): Update. | |
4682 | * infrun.c (handle_no_resumed): Update. | |
4683 | * top.h (all_uis): New function. | |
4684 | (ALL_UIS): Remove. | |
4685 | ||
59f7bd8d SM |
4686 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
4687 | ||
4688 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition. | |
4689 | ||
9bf058f0 PA |
4690 | 2020-05-16 Pedro Alves <palves@redhat.com> |
4691 | ||
4692 | * ia64-linux-nat.c | |
4693 | (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>: | |
4694 | Declare method. | |
4695 | (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target. | |
4696 | ||
8f86ae1a SM |
4697 | 2020-05-15 Simon Marchi <simon.marchi@efficios.com> |
4698 | ||
4699 | * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct). | |
4700 | (sparc64_adi_info): Likewise. | |
4701 | ||
d6bc0792 TT |
4702 | 2020-05-15 Tom Tromey <tom@tromey.com> |
4703 | ||
4704 | * symtab.c (lookup_language_this, lookup_symbol_aux): Use | |
4705 | block_objfile. | |
4706 | (lookup_objfile_from_block): Remove. | |
4707 | (lookup_symbol_in_block, lookup_symbol_in_static_block) | |
4708 | (lookup_global_symbol): Use block_objfile. | |
4709 | * symtab.h (lookup_objfile_from_block): Don't declare. | |
4710 | * printcmd.c (clear_dangling_display_expressions): Use | |
4711 | block_objfile. | |
4712 | * parse.c (operator_check_standard): Use block_objfile. | |
4713 | ||
8c14c3a3 TT |
4714 | 2020-05-15 Tom Tromey <tom@tromey.com> |
4715 | ||
4716 | * language.c (language_alloc_type_symbol): Set | |
4717 | SYMBOL_SECTION. | |
4718 | * symtab.c (initialize_objfile_symbol): Remove. | |
4719 | (allocate_symbol): Remove. | |
4720 | (allocate_template_symbol): Remove. | |
4721 | * dwarf2/read.c (fixup_go_packaging): Use "new". | |
4722 | (new_symbol): Use "new". | |
4723 | (read_variable): Don't call initialize_objfile_symbol. Use | |
4724 | "new". | |
4725 | (read_func_scope): Use "new". | |
4726 | * xcoffread.c (process_xcoff_symbol): Don't call | |
4727 | initialize_objfile_symbol. | |
4728 | (SYMBOL_DUP): Remove. | |
4729 | * coffread.c (process_coff_symbol, coff_read_enum_type): Use | |
4730 | "new". | |
4731 | * symtab.h (allocate_symbol, initialize_objfile_symbol) | |
4732 | (allocate_template_symbol): Don't declare. | |
4733 | (struct symbol): Add copy constructor. Change defaults. | |
4734 | * jit.c (finalize_symtab): Use "new". | |
4735 | * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb): | |
4736 | Use "new". | |
4737 | * stabsread.c (patch_block_stabs, define_symbol, read_enum_type) | |
4738 | (common_block_end): Use "new". | |
4739 | * mdebugread.c (parse_symbol): Use "new". | |
4740 | (new_symbol): Likewise. | |
4741 | ||
5b4a1a8d PW |
4742 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4743 | ||
4744 | * NEWS: Mention changes to help and apropos. | |
4745 | ||
57b4f16e PW |
4746 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4747 | ||
4748 | * command.h (enum command_class): Improve comments, document | |
4749 | that class_alias is for user-defined aliases, give the class | |
4750 | name for each class, remove unused class_xdb. | |
4751 | * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage. | |
4752 | * breakpoint.c (_initialize_breakpoint): Replace class_alias | |
4753 | by a precise class. | |
4754 | * infcmd.c (_initialize_infcmd): Likewise. | |
4755 | * reverse.c (_initialize_reverse): Likewise. | |
4756 | * stack.c (_initialize_stack): Likewise. | |
4757 | * symfile.c (_initialize_symfile): Likewise. | |
4758 | * tracepoint.c (_initialize_tracepoint): Likewise. | |
4759 | ||
7c05caf7 PW |
4760 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4761 | ||
4762 | * cli/cli-decode.c (apropos_cmd): Produce output for aliases | |
4763 | when their aliased command is traversed. | |
4764 | (help_cmd): Add fput_command_names_styled call to | |
4765 | output command name and aliases when command has an alias. | |
4766 | ||
3b3aaacb PW |
4767 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4768 | ||
4769 | * cli/cli-decode.h (help_cmd_list): Remove declaration. | |
4770 | * cli/cli-decode.c (help_cmd_list): Declare as static, | |
4771 | remove prefix argument, use bool for recurse arg, rework to show the aliases of | |
4772 | a command together with the command. | |
4773 | (fput_command_name_styled, fput_command_names_styled): New functions. | |
4774 | (print_help_for_command): Remove prefix arg, use bool for recurse arg, use | |
4775 | fput_command_name_styled. | |
4776 | (help_list, help_all): Update callers to remove prefix arg and use bool recurse. | |
4777 | * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc. | |
4778 | ||
7aa1b46f PW |
4779 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4780 | ||
4781 | * cli/cli-setshow.h (cmd_show_list): Remove prefix argument. | |
4782 | * cli/cli-decode.c (do_show_prefix_cmd): Likewise. | |
4783 | * command.h (cmd_show_list): Likewise. | |
4784 | * dwarf2/index-cache.c (show_index_cache_command): Likewise. | |
4785 | * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases. | |
4786 | ||
89bcba74 PW |
4787 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4788 | ||
4789 | * unittests/command-def-selftests.c (traverse_command_structure): | |
4790 | Verify all commands of a list have the same prefix command and | |
4791 | that only the top cmdlist commands have a null prefix. | |
4792 | ||
3f4d92eb PW |
4793 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4794 | ||
4795 | * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command | |
4796 | as prefix, not one of its aliases. | |
4797 | (set_cmd_prefix): Remove. | |
4798 | (do_add_cmd): Centralize the setting of the prefix of a command, when | |
4799 | command is defined after its full chain of prefix commands. | |
4800 | (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it. | |
4801 | (add_setshow_cmd_full): Likewise. | |
4802 | (update_prefix_field_of_prefixed_commands): New function. | |
4803 | (add_prefix_cmd): Replace non working call to set_cmd_prefix by | |
4804 | update_prefix_field_of_prefixed_commands. | |
4805 | * gdb/remote-fileio.c (initialize_remote_fileio): Use the real | |
4806 | addresses of remote_set_cmdlist and remote_show_cmdlist given | |
4807 | as argument, not the address of an argument. | |
4808 | * gdb/remote-fileio.h (initialize_remote_fileio): Likewise. | |
4809 | * gdb/remote.c (_initialize_remote): Likewise. | |
4810 | ||
0605465f PW |
4811 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4812 | ||
4813 | * cli/cli-cmds.c (alias_command): Check for an existing alias | |
4814 | using lookup_cmd_composition, as valid_command_p is too strict | |
4815 | and forbids aliases that are the prefix of an existing alias | |
4816 | or command. | |
4817 | * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix | |
4818 | command is properly recognised as a valid command. | |
4819 | ||
58e6ac70 PW |
4820 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4821 | ||
4822 | * unittests/help-doc-selftests.c: Rename to | |
4823 | unittests/command-def-selftests.c | |
4824 | * unittests/command-def-selftests.c (help_doc_tests): Update some | |
4825 | comments. | |
4826 | (command_structure_tests, traverse_command_structure): New namespace | |
4827 | and function. | |
4828 | (command_structure_invariants_tests): New function. | |
4829 | (_initialize_command_def_selftests) Renamed from | |
4830 | _initialize_help_doc_selftests, register command_structure_invariants | |
4831 | selftest. | |
4832 | ||
a7b9ceb8 PW |
4833 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4834 | ||
4835 | * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as | |
4836 | an alias of 'show'. | |
4837 | ||
b2188a06 JB |
4838 | 2020-05-15 Joel Brobecker <brobecker@adacore.com> |
4839 | ||
4840 | * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames | |
4841 | ada_is_fixed_point_type. Update all callers. | |
4842 | (gnat_encoded_fixed_point_delta): Renames ada_delta. Update | |
4843 | all callers. | |
4844 | * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info. | |
4845 | Update all callers. | |
4846 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames | |
4847 | print_fixed_point_type. Update all callers. | |
4848 | * ada-valprint.c (ada_value_print_num): Replace call to | |
4849 | ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type. | |
4850 | ||
a51951c2 KB |
4851 | 2020-05-14 Kevin Buettner <kevinb@redhat.com> |
4852 | ||
4853 | * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD | |
4854 | processors. | |
4855 | (cpu_supports_bts): Add CV_AMD case. | |
4856 | ||
29d6859f LM |
4857 | 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com> |
4858 | Simon Marchi <simon.marchi@efficios.com> | |
4859 | ||
4860 | * infrun.c (stop_all_threads): Collect multiple wait events at | |
4861 | each pass. | |
4862 | ||
78134374 SM |
4863 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
4864 | ||
4865 | * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use | |
4866 | type::code instead. | |
4867 | ||
67607e24 SM |
4868 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
4869 | ||
4870 | * gdbtypes.h (struct type) <code, set_code>: New methods. | |
4871 | (TYPE_CODE): Use type::code. Change all call sites used to set | |
4872 | the code to use type::set_code instead. | |
4873 | ||
a05575d3 TBA |
4874 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4875 | Tom de Vries <tdevries@suse.de> | |
4876 | Pedro Alves <palves@redhat.com> | |
4877 | ||
4878 | PR threads/25478 | |
4879 | * infrun.c (stop_all_threads): Do NOT ignore | |
4880 | TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED, | |
4881 | TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses | |
4882 | received. | |
4883 | (handle_no_resumed): Remove code handling a live inferior with no | |
4884 | threads. | |
4885 | * remote.c (has_single_non_exited_thread): New. | |
4886 | (remote_target::update_thread_list): Do not delete a thread if is | |
4887 | the last thread of the process. | |
4888 | * thread.c (thread_select): Call delete_exited_threads instead of | |
4889 | prune_threads. | |
4890 | ||
6ad82919 TBA |
4891 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4892 | ||
4893 | * infrun.c (stop_all_threads): Enable/disable thread events of all | |
4894 | targets. Move a debug message denoting the end of the function | |
4895 | into the SCOPED_EXIT block. | |
4896 | ||
d890404b TBA |
4897 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4898 | ||
4899 | * process-stratum-target.h: Include <set>. | |
4900 | (all_non_exited_process_targets, switch_to_target_no_thread): New | |
4901 | function declarations. | |
4902 | * process-stratum-target.c (all_non_exited_process_targets) | |
4903 | (switch_to_target_no_thread): New function implementations. | |
4904 | ||
293b3ebc TBA |
4905 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4906 | ||
4907 | * infrun.c (handle_inferior_event): Extract out a piece of code | |
4908 | into... | |
4909 | (mark_non_executing_threads): ...this new function. | |
4910 | ||
7ca9b62a TBA |
4911 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4912 | ||
4913 | * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first | |
4914 | use. | |
4915 | ||
fc75c28b TBA |
4916 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4917 | ||
4918 | * regcache.c (regcache_read_pc_protected): New function | |
4919 | implementation that returns 0 if the PC cannot read via | |
4920 | 'regcache_read_pc'. | |
4921 | * infrun.c (proceed): Call 'regcache_read_pc_protected' | |
4922 | instead of 'regcache_read_pc'. | |
4923 | (keep_going_pass_signal): Ditto. | |
4924 | ||
a89febbd TT |
4925 | 2020-05-13 Tom Tromey <tromey@adacore.com> |
4926 | ||
4927 | * ada-lang.c (align_value): Remove. | |
4928 | (ada_template_to_fixed_record_type_1): Use align_up. | |
4929 | ||
f7e23710 TBA |
4930 | 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4931 | ||
4932 | * async-event.c: Update the copyright year. | |
4933 | * async-event.h: Update the copyright year. | |
4934 | ||
02ff80c2 SM |
4935 | 2020-05-12 Simon Marchi <simon.marchi@efficios.com> |
4936 | ||
4937 | * objfiles.h (is_addr_in_objfile, | |
4938 | shared_objfile_contains_address_p): Return bool. | |
4939 | * objfile.c (is_addr_in_objfile, | |
4940 | shared_objfile_contains_address_p): Return bool. | |
4941 | ||
4fd6c7e8 TT |
4942 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
4943 | ||
4944 | * cli/cli-cmds.c (info_command): Restore. | |
4945 | (_initialize_cli_cmds): Use add_prefix_command for "info". | |
4946 | * gdb-gdb.gdb.in: Restore breakpoint on info_command. | |
4947 | ||
5eb68a39 TT |
4948 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
4949 | ||
4950 | * ada-lang.c (ada_value_primitive_field): Now public. | |
4951 | * ada-lang.h (ada_value_primitive_field): Declare. | |
4952 | * ada-valprint.c (print_field_values): Use | |
4953 | ada_value_primitive_field for wrapper fields. | |
4954 | ||
7666722f TV |
4955 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
4956 | ||
4957 | * dwarf2/index-write.c (debug_names::psymbol_tag): Handle | |
4958 | MODULE_DOMAIN. | |
4959 | ||
3ee6bb11 TV |
4960 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
4961 | ||
4962 | PR symtab/25941 | |
4963 | * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs | |
4964 | with length 0, if not gdb-produced. | |
4965 | (cutu_reader::cutu_reader): Set CU length to actual length if 0. | |
4966 | ||
43434996 TV |
4967 | 2020-05-09 Tom de Vries <tdevries@suse.de> |
4968 | ||
4969 | PR gdb/25955 | |
4970 | * break-catch-throw.c (check_status_exception_catchpoint): Fix name | |
4971 | calculation. | |
4972 | ||
2f78cffc TT |
4973 | 2020-05-09 Tom Tromey <tom@tromey.com> |
4974 | ||
4975 | * top.c (server_command): Now bool. | |
4976 | * top.h (server_command): Now bool. | |
4977 | ||
4f7bc5ed TT |
4978 | 2020-05-08 Tom Tromey <tromey@adacore.com> |
4979 | ||
4980 | * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE | |
4981 | already being processed. | |
4982 | ||
8be4b118 TT |
4983 | 2020-05-08 Tom Tromey <tom@tromey.com> |
4984 | ||
4985 | * printcmd.c (struct display) <next>: Remove. | |
4986 | <display>: New constructor. | |
4987 | <exp_string>: Now a std::string. | |
4988 | <enabled_p>: Now a bool. | |
4989 | (display_number): Move definition earlier. | |
4990 | (displays): Rename from display_chain. Now a std::vector. | |
4991 | (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove. | |
4992 | (display_command): Update. | |
4993 | (do_one_display, disable_display) | |
4994 | (enable_disable_display_command, do_enable_disable_display): | |
4995 | Update. | |
4996 | (free_display): Remove. | |
4997 | (clear_displays): Rewrite. | |
4998 | (delete_display): Update. | |
4999 | (map_display_numbers): Use function_view. Remove "data" | |
5000 | parameter. Update. | |
5001 | (do_delete_display): Remove. | |
5002 | (undisplay_command): Update. | |
5003 | (do_one_display, do_displays, disable_display) | |
5004 | (info_display_command): Update. | |
5005 | (do_enable_disable_display): Remove. | |
5006 | (enable_disable_display_command) | |
5007 | (clear_dangling_display_expressions): Update. | |
5008 | ||
94c93c35 TT |
5009 | 2020-05-08 Tom Tromey <tom@tromey.com> |
5010 | ||
5011 | * symtab.c (set_symbol_cache_size) | |
5012 | (maintenance_print_symbol_cache, maintenance_flush_symbol_cache) | |
5013 | (maintenance_print_symbol_cache_statistics): Update. | |
5014 | * symmisc.c (print_symbol_bcache_statistics) | |
5015 | (print_objfile_statistics, maintenance_print_objfiles) | |
5016 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
5017 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
5018 | Update. | |
5019 | * symfile-debug.c (set_debug_symfile): Update. | |
5020 | * source.c (forget_cached_source_info): Update. | |
5021 | * python/python.c (gdbpy_progspaces): Update. | |
5022 | * psymtab.c (maintenance_info_psymtabs): Update. | |
5023 | * probe.c (parse_probes): Update. | |
5024 | * linespec.c (iterate_over_all_matching_symtabs) | |
5025 | (collect_symtabs_from_filename, search_minsyms_for_name): Update. | |
5026 | * guile/scm-progspace.c (gdbscm_progspaces): Update. | |
5027 | * exec.c (exec_target::close): Update. | |
5028 | * ada-tasks.c (ada_tasks_new_objfile_observer): Update. | |
5029 | * breakpoint.c (print_one_breakpoint_location) | |
5030 | (create_longjmp_master_breakpoint) | |
5031 | (create_std_terminate_master_breakpoint): Update. | |
5032 | * progspace.c (program_spaces): Now a std::vector. | |
5033 | (maybe_new_address_space): Update. | |
5034 | (add_program_space): Remove. | |
5035 | (program_space::program_space): Update. | |
5036 | (remove_program_space): Update. | |
5037 | (number_of_program_spaces): Remove. | |
5038 | (print_program_space, update_address_spaces): Update. | |
5039 | * progspace.h (program_spaces): Change type. | |
5040 | (ALL_PSPACES): Remove. | |
5041 | (number_of_program_spaces): Don't declare. | |
5042 | (struct program_space) <next>: Remove. | |
5043 | ||
a1fd1ac9 TT |
5044 | 2020-05-08 Tom Tromey <tom@tromey.com> |
5045 | ||
5046 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update. | |
5047 | * solib-svr4.c (svr4_fetch_objfile_link_map): Update. | |
5048 | (enable_break): Update. | |
5049 | * solib-frv.c (frv_fdpic_find_global_pointer): Update. | |
5050 | (frv_fdpic_find_canonical_descriptor): Update. | |
5051 | (frv_fetch_objfile_link_map): Update. | |
5052 | * progspace.c (program_space::free_all_objfiles): Update. | |
5053 | (program_space::solibs): New method. | |
5054 | * progspace.h (struct program_space) <solibs>: New method. | |
5055 | * solist.h (master_so_list): Don't declare. | |
5056 | (ALL_SO_LIBS): Remove. | |
5057 | * solib.h (so_list_head): Remove. | |
5058 | (update_solib_list): Update comment. | |
5059 | * solib.c (master_so_list): Remove. | |
5060 | (solib_used, update_solib_list, solib_add) | |
5061 | (info_sharedlibrary_command, clear_solib) | |
5062 | (reload_shared_libraries_1, remove_user_added_objfile): Update. | |
5063 | ||
38eae084 TT |
5064 | 2020-05-08 Tom Tromey <tom@tromey.com> |
5065 | ||
5066 | * extension.c (extension_languages): Now a std::array. | |
5067 | (ALL_EXTENSION_LANGUAGES): Remove. | |
5068 | (get_ext_lang_defn, get_ext_lang_of_file) | |
5069 | (eval_ext_lang_from_control_command): Update. | |
5070 | (finish_ext_lang_initialization) | |
5071 | (auto_load_ext_lang_scripts_for_objfile) | |
5072 | (ext_lang_type_printers::ext_lang_type_printers) | |
5073 | (apply_ext_lang_type_printers) | |
5074 | (ext_lang_type_printers::~ext_lang_type_printers) | |
5075 | (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter) | |
5076 | (preserve_ext_lang_values, get_breakpoint_cond_ext_lang) | |
5077 | (breakpoint_ext_lang_cond_says_stop, check_quit_flag) | |
5078 | (get_matching_xmethod_workers, ext_lang_colorize) | |
5079 | (ext_lang_before_prompt): Update. | |
5080 | (ALL_ENABLED_EXTENSION_LANGUAGES): Remove. | |
5081 | ||
596dc4ad TT |
5082 | 2020-05-08 Tom Tromey <tom@tromey.com> |
5083 | ||
5084 | * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New | |
5085 | overload. | |
5086 | <swap_string, m_string>: Remove. | |
5087 | * symtab.c (demangle_for_lookup, completion_list_add_symbol): | |
5088 | Update. | |
5089 | * stabsread.c (define_symbol, read_type): Update. | |
5090 | * linespec.c (find_linespec_symbols): Update. | |
5091 | * gnu-v3-abi.c (gnuv3_get_typeid): Update. | |
5092 | * dwarf2/read.c (dwarf2_canonicalize_name): Update. | |
5093 | * dbxread.c (read_dbx_symtab): Update. | |
5094 | * cp-support.h (cp_canonicalize_string_full) | |
5095 | (cp_canonicalize_string, cp_canonicalize_string_no_typedefs): | |
5096 | Return unique_xmalloc_ptr. | |
5097 | * cp-support.c (inspect_type): Update. | |
5098 | (cp_canonicalize_string_full): Return unique_xmalloc_ptr. | |
5099 | (cp_canonicalize_string_no_typedefs, cp_canonicalize_string): | |
5100 | Likewise. | |
5101 | * c-typeprint.c (print_name_maybe_canonical): Update. | |
5102 | * break-catch-throw.c (check_status_exception_catchpoint): | |
5103 | Update. | |
5104 | ||
bf4cb9be TV |
5105 | 2020-05-08 Tom de Vries <tdevries@suse.de> |
5106 | ||
5107 | * infrun.c (follow_fork): Copy current_line and current_symtab to | |
5108 | child thread. | |
5109 | ||
a1b68f28 SM |
5110 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
5111 | ||
5112 | * async-event.c (struct async_signal_handler, struct | |
5113 | async_event_handler): Reformat, remove typedef. | |
5114 | ||
98d48915 SM |
5115 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
5116 | ||
5117 | * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users | |
5118 | access thistype->main_type->dyn_prop_list directly. | |
5119 | ||
7aa91313 SM |
5120 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
5121 | ||
5122 | * gdbtypes.h (struct type) <remove_dyn_prop>: New method. | |
5123 | (remove_dyn_prop): Remove. Update all users to use | |
5124 | type::remove_dyn_prop. | |
5125 | * gdbtypes.c (remove_dyn_prop): Rename to... | |
5126 | (type::remove_dyn_prop): ... this. | |
5127 | ||
5c54719c SM |
5128 | 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> |
5129 | ||
5130 | * gdbtypes.h (struct type) <add_dyn_prop>: New method. | |
5131 | (add_dyn_prop): Remove. Update all users to use | |
5132 | type::add_dyn_prop. | |
5133 | * gdbtypes.c (add_dyn_prop): Rename to... | |
5134 | (type::add_dyn_prop): ... this. | |
5135 | ||
24e99c6c SM |
5136 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
5137 | ||
5138 | * gdbtypes.h (struct type) <get_dyn_prop>: New method. | |
5139 | (get_dyn_prop): Remove. Update all users to use | |
5140 | type::dyn_prop. | |
5141 | * gdbtypes.c (get_dyn_prop): Rename to... | |
5142 | (type::dyn_prop): ... this. | |
5143 | ||
0d4bf016 SM |
5144 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
5145 | ||
5146 | * gdbtypes.h (struct main_type) <flag_static>: Remove. | |
5147 | ||
ac4a4f1c SM |
5148 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
5149 | ||
5150 | * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64` | |
5151 | instruction, skip it if it's there. | |
5152 | ||
a3bbacc1 SM |
5153 | 2020-05-05 Simon Marchi <simon.marchi@efficios.com> |
5154 | ||
5155 | * gdbtypes.h (struct main_type) <flag_incomplete>: Remove. | |
5156 | ||
c3236f84 SM |
5157 | 2020-05-04 Simon Marchi <simon.marchi@efficios.com> |
5158 | ||
5159 | * gdbtypes.h (TYPE_INCOMPLETE): Remove. | |
5160 | * gdbtypes.c (recursive_dump_type): Remove use of | |
5161 | TYPE_INCOMPLETE. | |
5162 | ||
3b6acaee TT |
5163 | 2020-05-03 Tom Tromey <tom@tromey.com> |
5164 | ||
5165 | * breakpoint.c (catch_command, tcatch_command): Remove. | |
5166 | (_initialize_breakpoint): Use add_basic_prefix_cmd, | |
5167 | add_show_prefix_cmd. | |
5168 | (set_breakpoint_cmd, show_breakpoint_cmd): Remove | |
5169 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
5170 | Remove. | |
5171 | (add_internal_problem_command): Use add_basic_prefix_cmd, | |
5172 | add_show_prefix_cmd. | |
5173 | * mips-tdep.c (set_mipsfpu_command): Remove. | |
5174 | (_initialize_mips_tdep): Use add_basic_prefix_cmd. | |
5175 | * dwarf2/index-cache.c (set_index_cache_command): Remove. | |
5176 | (_initialize_index_cache): Use add_basic_prefix_cmd. | |
5177 | * memattr.c (dummy_cmd): Remove. | |
5178 | (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd. | |
5179 | * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove. | |
5180 | (_initialize_tui_win): Use add_basic_prefix_cmd, | |
5181 | add_show_prefix_cmd. | |
5182 | * cli/cli-logging.c (set_logging_command): Remove. | |
5183 | (_initialize_cli_logging): Use add_basic_prefix_cmd, | |
5184 | add_show_prefix_cmd. | |
5185 | (show_logging_command): Remove. | |
5186 | * target.c (target_command): Remove. | |
5187 | (add_target): Use add_basic_prefix_cmd. | |
5188 | ||
a51119cd HD |
5189 | 2020-05-02 Hannes Domani <ssbssa@yahoo.de> |
5190 | ||
5191 | * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo. | |
5192 | ||
652fc23a | 5193 | 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 5194 | |
652fc23a PW |
5195 | * gdb-gdb.gdb-in: Remove breakpoint on disappeared function |
5196 | info_command. | |
5197 | ||
117539e6 KR |
5198 | 2020-04-30 Kamil Rytarowski <n54@gmx.com> |
5199 | ||
5200 | * nbsd-nat.c (nbsd_enable_proc_events) | |
5201 | (nbsd_nat_target::post_startup_inferior): Add. | |
5202 | (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'. | |
5203 | (nbsd_nat_target::update_thread_list): Rewrite. | |
5204 | (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and | |
5205 | "PTRACE_LWP_CREATE". | |
5206 | * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add. | |
5207 | ||
102e38eb | 5208 | 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 5209 | |
102e38eb PW |
5210 | * stack.c (_initialize_stack): Remove duplicated creation |
5211 | of "frame" command and "f" alias. | |
5212 | ||
ee9d1e5f HD |
5213 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
5214 | ||
5215 | PR gdb/18706 | |
5216 | * gdbtypes.c (check_typedef): Calculate size of array of | |
5217 | stubbed type. | |
5218 | ||
627c7fb8 HD |
5219 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
5220 | ||
5221 | PR gdb/15559 | |
5222 | * i386-tdep.c (i386_push_dummy_call): Call | |
5223 | i386_thiscall_push_dummy_call. | |
5224 | (i386_thiscall_push_dummy_call): New function. | |
5225 | * i386-tdep.h (i386_thiscall_push_dummy_call): Declare. | |
5226 | * i386-windows-tdep.c (i386_windows_push_dummy_call): New function. | |
5227 | (i386_windows_init_abi): Call set_gdbarch_push_dummy_call. | |
5228 | ||
ffc2844e SM |
5229 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5230 | ||
5231 | * gdbarch.sh (do_read): Add shellcheck disable directive for | |
5232 | warning SC2162. | |
5233 | ||
1207375d SM |
5234 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5235 | ||
5236 | * gdbarch.sh: Use ${foo:-} where shellcheck would report a | |
5237 | "referenced but not assigned" warning. | |
5238 | ||
9fdb2916 SM |
5239 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5240 | ||
5241 | * gdbarch.sh: Remove code that sets fallbackdefault. | |
5242 | ||
759cea5e SM |
5243 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5244 | ||
5245 | * gdbarch.sh: Use shell operators && and || instead of | |
5246 | -a and -o. | |
5247 | ||
cb02ab24 SM |
5248 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5249 | ||
5250 | * gdbarch.sh: Use $(...) instead of `...`. | |
5251 | ||
a6fc5ffc SM |
5252 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5253 | ||
5254 | * gdbarch.sh: Use double quotes around variables. | |
5255 | ||
8d113d13 SM |
5256 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5257 | ||
5258 | * gdbarch.sh: Use %s with printf, instead of variables in the | |
5259 | format string. | |
5260 | ||
ed6acedd TT |
5261 | 2020-04-29 Tom Tromey <tromey@adacore.com> |
5262 | ||
5263 | PR ada/25875: | |
5264 | * dwarf2/read.c (update_enumeration_type_from_children): Compute | |
5265 | type fields here. | |
5266 | (read_enumeration_type): Call | |
5267 | update_enumeration_type_from_children later. Update comments. | |
5268 | (process_enumeration_scope): Don't create type fields. | |
5269 | ||
b68b1b58 KR |
5270 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
5271 | ||
5272 | * nbsd-tdep.c: Include "xml-syscall.h". | |
5273 | (nbsd_init_abi): Call `set_xml_syscall_file_name'. | |
5274 | ||
f94b2e03 KR |
5275 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
5276 | ||
5277 | * nbsd-nat.c: Include "sys/wait.h". | |
5278 | (nbsd_resume, nbsd_nat_target::resume, nbsd_wait) | |
5279 | (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint) | |
5280 | (nbsd_nat_target::remove_exec_catchpoint) | |
5281 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
5282 | * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait) | |
5283 | (nbsd_nat_target::insert_exec_catchpoint) | |
5284 | (nbsd_nat_target::remove_exec_catchpoint) | |
5285 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
5286 | * nbsd-tdep.c (nbsd_get_syscall_number): Add. | |
5287 | (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass | |
5288 | `nbsd_get_syscall_number'. | |
5289 | ||
fc49bc72 TT |
5290 | 2020-04-29 Tom Tromey <tom@tromey.com> |
5291 | ||
5292 | * stack.c (print_block_frame_labels): Remove. | |
5293 | ||
d642b692 HD |
5294 | 2020-04-29 Hannes Domani <ssbssa@yahoo.de> |
5295 | ||
5296 | PR gdb/17320 | |
5297 | * ada-valprint.c (val_print_packed_array_elements): Move array | |
5298 | end bracket to new line. | |
5299 | (ada_val_print_string): Remove extra spaces before first array | |
5300 | element. | |
5301 | * c-valprint.c (c_value_print_array): Likewise. | |
5302 | * m2-valprint.c (m2_print_array_contents): Likewise. | |
5303 | (m2_value_print_inner): Likewise. | |
5304 | * p-valprint.c (pascal_value_print_inner): Likewise. | |
5305 | * valprint.c (generic_val_print_array): Likewise. | |
5306 | (value_print_array_elements): Move first array element and array | |
5307 | end bracket to new line. | |
5308 | ||
ea90f227 TV |
5309 | 2020-04-29 Tom de Vries <tdevries@suse.de> |
5310 | ||
5311 | PR symtab/25889 | |
5312 | * linespec.c (find_method): Fix ix calculation. | |
5313 | ||
4498ef4f KR |
5314 | 2020-04-28 Kamil Rytarowski <n54@gmx.com> |
5315 | ||
5316 | * syscalls/update-netbsd.sh: New file. | |
5317 | * syscalls/netbsd.xml: Regenerate. | |
5318 | * data-directory/Makefile.in: Register `netbsd.xml' in | |
5319 | `SYSCALLS_FILES'. | |
5320 | ||
a55e30b5 SM |
5321 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
5322 | ||
5323 | * syscalls/update-freebsd.sh: Add double quotes. | |
5324 | ||
2b2fbab8 TT |
5325 | 2020-04-28 Tom Tromey <tom@tromey.com> |
5326 | ||
5327 | * NEWS: Update. | |
5328 | * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI. | |
5329 | (cmdpy_init): Allow class_tui. | |
5330 | ||
a65189c9 TV |
5331 | 2020-04-28 Mark Williams <mark@myosotissp.com> |
5332 | ||
5333 | PR gdb/24480 | |
5334 | * dwarf2read.c: Add missing assingments to list_in_scope when | |
5335 | start_symtab was already called. | |
5336 | ||
1b95cdb7 SM |
5337 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
5338 | ||
5339 | PR gdb/25881 | |
5340 | * dwarf2/read.c (offset_map_type): Use | |
5341 | gdb:hash_enum<sect_offset> as hash function. | |
5342 | ||
15cd93d0 TV |
5343 | 2020-04-28 Tom de Vries <tdevries@suse.de> |
5344 | ||
5345 | * dwarf2/read.c (process_structure_scope): Add symbol for struct decl | |
5346 | with DW_AT_signature. | |
5347 | ||
1eb39914 SM |
5348 | 2020-04-27 Simon Marchi <simon.marchi@efficios.com> |
5349 | ||
5350 | * configure.ac: Remove check for fs_base/gs_base in | |
5351 | user_regs_struct. | |
5352 | * configure: Re-generate. | |
5353 | * config.in: Re-generate. | |
5354 | * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust. | |
5355 | * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers, | |
5356 | amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust. | |
5357 | ||
991a3e2e LM |
5358 | 2020-04-27 Luis Machado <luis.machado@linaro.org> |
5359 | ||
5360 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle | |
5361 | problematic inline frame unwinding situation. | |
5362 | * frame.c (frame_id_computed_p): New function. | |
5363 | * frame.h (frame_id_computed_p): New prototype. | |
5364 | ||
361ba0e8 TT |
5365 | 2020-04-26 Tom Tromey <tom@tromey.com> |
5366 | ||
5367 | * command.h (enum command_class) <class_pseudo>: Remove. | |
5368 | ||
bc3609fd PW |
5369 | 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5370 | ||
5371 | * cli/cli-decode.c (lookup_cmd_composition): Fix comments | |
5372 | and whitespace. | |
5373 | ||
b9771db7 KR |
5374 | 2020-04-25 Kamil Rytarowski <n54@gmx.com> |
5375 | ||
ec16513e SM |
5376 | * inf-ptrace.c (inf_ptrace_target::wait): Remove |
5377 | `PT_GET_PROCESS_STATE' block. | |
b9771db7 | 5378 | |
7151c1af TT |
5379 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5380 | ||
5381 | * symtab.h (symbol_get_demangled_name): Don't declare. | |
5382 | * symtab.c (symbol_get_demangled_name): Remove. | |
5383 | (general_symbol_info::natural_name) | |
5384 | (general_symbol_info::demangled_name): Update. | |
5385 | ||
906bb4c5 TT |
5386 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5387 | ||
5388 | PR rust/25025: | |
5389 | * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust. | |
5390 | ||
bcfe6157 TT |
5391 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5392 | ||
5393 | PR symtab/12707: | |
5394 | * dwarf2/read.c (add_partial_symbol): Use the linkage name if it | |
5395 | exists. | |
5396 | (new_symbol): Likewise. | |
5397 | * compile/compile-object-load.c (get_out_value_type): Use | |
5398 | symbol_matches_search_name. | |
5399 | ||
f049a313 TT |
5400 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5401 | ||
5402 | * dwarf2/read.c (add_partial_symbol): Do not call | |
5403 | compute_and_set_names. | |
5404 | ||
76e288d1 TT |
5405 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5406 | ||
5407 | * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list | |
5408 | overload. | |
5409 | ||
2467f4f6 TT |
5410 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5411 | ||
5412 | * psymtab.c (add_psymbol_to_bcache): Simplify calling convention. | |
5413 | (add_psymbol_to_list): New overload. Make old overload call new | |
5414 | one. | |
5415 | * psympriv.h (add_psymbol_to_list): New overload. | |
5416 | ||
e61108c9 TT |
5417 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5418 | ||
5419 | * dwarf2/read.c (partial_die_info::read) <case | |
5420 | DW_AT_linkage_name>: Use value_as_string. | |
5421 | (dwarf2_string_attr): Use value_as_string. | |
5422 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
5423 | method. | |
5424 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
5425 | ||
8c87a452 TT |
5426 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5427 | ||
5428 | * symtab.c (general_symbol_info::natural_name) | |
5429 | (general_symbol_info::demangled_name): Check for language_rust. | |
5430 | ||
787de330 TT |
5431 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5432 | ||
5433 | * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here... | |
5434 | (dwarf2_physname): ... from here. | |
5435 | (partial_die_info::read): Add Rust "{" hack. | |
5436 | ||
ff985671 TT |
5437 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5438 | ||
5439 | * symtab.h (struct general_symbol_info) <set_demangled_name>: New | |
5440 | method. | |
5441 | (symbol_set_demangled_name): Don't declare. | |
5442 | * symtab.c (general_symbol_info::set_demangled_name): Rename from | |
5443 | symbol_set_demangled_name. | |
5444 | (general_symbol_info::set_language) | |
5445 | (general_symbol_info::compute_and_set_names): Update. | |
5446 | * minsyms.c (minimal_symbol_reader::install): Update. | |
5447 | * dwarf2/read.c (new_symbol): Update. | |
5448 | ||
1acda803 TT |
5449 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5450 | ||
5451 | PR python/23662: | |
5452 | * python/py-type.c (convert_field): Handle | |
5453 | FIELD_LOC_KIND_DWARF_BLOCK. | |
5454 | (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH. | |
5455 | (typy_get_dynamic): Nw function. | |
5456 | (type_object_getset): Add "dynamic". | |
5457 | * NEWS: Add entry. | |
5458 | ||
d656f129 TT |
5459 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5460 | ||
5461 | * ada-typeprint.c (print_choices, print_variant_part) | |
5462 | (print_record_field_types_dynamic): New functions. | |
5463 | (print_record_field_types): Use print_record_field_types_dynamic. | |
5464 | ||
7d79de9a TT |
5465 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5466 | ||
5467 | * dwarf2/read.c (handle_data_member_location): New overload. | |
5468 | (dwarf2_add_field): Use it. | |
5469 | (decode_locdesc): Add "computed" parameter. Update comment. | |
5470 | * gdbtypes.c (is_dynamic_type_internal): Also look for | |
5471 | FIELD_LOC_KIND_DWARF_BLOCK. | |
5472 | (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK. | |
5473 | * gdbtypes.c (is_dynamic_type_internal): Add special case for C++ | |
5474 | virtual base classes. | |
5475 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle | |
5476 | FIELD_LOC_KIND_DWARF_BLOCK. | |
5477 | ||
f8e89861 TT |
5478 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5479 | ||
5480 | * dwarf2/read.c (read_structure_type): Handle dynamic length. | |
5481 | * gdbtypes.c (is_dynamic_type_internal): Check | |
5482 | TYPE_HAS_DYNAMIC_LENGTH. | |
5483 | (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH. | |
5484 | * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH): | |
5485 | New macros. | |
5486 | (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New | |
5487 | constant. | |
5488 | ||
9c6a1327 TT |
5489 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5490 | ||
5491 | * dwarf2/read.c (struct variant_field): Rewrite. | |
5492 | (struct variant_part_builder): New. | |
5493 | (struct nextfield): Remove "variant" field. Add "offset". | |
5494 | (struct field_info): Add "current_variant_part" and | |
5495 | "variant_parts". | |
5496 | (alloc_discriminant_info): Remove. | |
5497 | (alloc_rust_variant): New function. | |
5498 | (quirk_rust_enum): Update. | |
5499 | (dwarf2_add_field): Set "offset" member. Don't handle | |
5500 | DW_TAG_variant_part. | |
5501 | (offset_map_type): New typedef. | |
5502 | (convert_variant_range, create_one_variant) | |
5503 | (create_one_variant_part, create_variant_parts) | |
5504 | (add_variant_property): New functions. | |
5505 | (dwarf2_attach_fields_to_type): Call add_variant_property. | |
5506 | (read_structure_type): Don't handle DW_TAG_variant_part. | |
5507 | (handle_variant_part, handle_variant): New functions. | |
5508 | (handle_struct_member_die): Use them. | |
5509 | (process_structure_scope): Don't handle variant parts. | |
5510 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove. | |
5511 | (struct discriminant_info): Remove. | |
5512 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove. | |
5513 | (struct main_type) <flag_discriminated_union>: Remove. | |
5514 | * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite. | |
5515 | (rust_enum_variant): Return int. Remove "contents". Rewrite. | |
5516 | (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp): | |
5517 | Update. | |
5518 | * valops.c (value_union_variant): Remove. | |
5519 | * value.h (value_union_variant): Don't declare. | |
5520 | ||
b249d2c2 TT |
5521 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5522 | ||
5523 | * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low) | |
5524 | (ada_value_primitive_packed_val): Update. | |
5525 | * ada-valprint.c (ada_value_print_1): Update. | |
5526 | * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct. | |
5527 | (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than | |
5528 | just an address. Use evaluate_for_locexpr_baton. | |
5529 | (dwarf2_evaluate_property): Update. | |
5530 | * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an | |
5531 | array_view. | |
5532 | * findvar.c (default_read_var_value): Update. | |
5533 | * gdbtypes.c (compute_variant_fields_inner) | |
5534 | (resolve_dynamic_type_internal): Update. | |
5535 | (resolve_dynamic_type): Change type of valaddr parameter. | |
5536 | * gdbtypes.h (resolve_dynamic_type): Update. | |
5537 | * valarith.c (value_subscripted_rvalue): Update. | |
5538 | * value.c (value_from_contents_and_address): Update. | |
5539 | ||
61122aa9 TT |
5540 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5541 | ||
5542 | * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add | |
5543 | "push_initial_value" parameter. | |
5544 | (dwarf2_evaluate_property): Likewise. | |
5545 | * dwarf2/loc.h (dwarf2_evaluate_property): Update. | |
5546 | ||
ef83a141 TT |
5547 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5548 | ||
5549 | * gdbtypes.c (is_dynamic_type_internal): Check for variant parts. | |
5550 | (variant::matches, compute_variant_fields_recurse) | |
5551 | (compute_variant_fields_inner, compute_variant_fields): New | |
5552 | functions. | |
5553 | (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS. | |
5554 | Use resolved_type after type is made. | |
5555 | (operator==): Add new cases. | |
5556 | * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro. | |
5557 | (struct discriminant_range, struct variant, struct variant_part): | |
5558 | New. | |
5559 | (union dynamic_prop_data) <variant_parts, original_type>: New | |
5560 | members. | |
5561 | (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant. | |
5562 | (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New | |
5563 | constants. | |
5564 | * value.c (unpack_bits_as_long): Now public. | |
5565 | * value.h (unpack_bits_as_long): Declare. | |
5566 | ||
675127ec TT |
5567 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5568 | ||
5569 | * rs6000-tdep.c (struct ppc_variant): Rename from "variant". | |
5570 | (variants, find_variant_by_arch, rs6000_gdbarch_init): Update. | |
5571 | ||
9852ceef HD |
5572 | 2020-04-24 Hannes Domani <ssbssa@yahoo.de> |
5573 | ||
5574 | * windows-tdep.c (exception_values): Add WOW64 exception numbers. | |
5575 | ||
7632c6ce KR |
5576 | 2020-04-24 Kamil Rytarowski <n54@gmx.com> |
5577 | ||
5578 | * inf-ptrace.h (follow_fork, insert_fork_catchpoint) | |
5579 | (remove_fork_catchpoint, post_startup_inferior) | |
5580 | (post_attach): Move... | |
5581 | * obsd-nat.h (follow_fork, insert_fork_catchpoint) | |
5582 | (remove_fork_catchpoint, post_startup_inferior) | |
5583 | (post_attach): ...here. | |
5584 | * inf-ptrace.c (follow_fork, insert_fork_catchpoint) | |
5585 | (remove_fork_catchpoint, post_startup_inferior) | |
5586 | (post_attach): Move... | |
5587 | * obsd-nat.c (follow_fork, insert_fork_catchpoint) | |
5588 | (remove_fork_catchpoint, post_startup_inferior) | |
5589 | (post_attach): ...here. | |
5590 | ||
7be2bb4f TT |
5591 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5592 | ||
5593 | * nat/windows-nat.h (struct windows_thread_info) | |
5594 | <pc_adjusted>: New member. | |
5595 | * windows-nat.c (windows_fetch_one_register): Check | |
5596 | pc_adjusted. | |
5597 | (windows_nat_target::get_windows_debug_event) | |
5598 | (windows_nat_target::wait): Set pc_adjusted. | |
5599 | ||
f80cb3b4 TV |
5600 | 2020-04-24 Tom de Vries <tdevries@suse.de> |
5601 | ||
5602 | * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling. | |
5603 | Run gdb-add-index inside temp dir. | |
5604 | ||
29514b87 TT |
5605 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
5606 | ||
5607 | * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter" | |
5608 | in loop. | |
5609 | ||
5939967b LM |
5610 | 2020-04-23 Luis Machado <luis.machado@linaro.org> |
5611 | ||
5612 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use | |
5613 | get_frame_register instead of gdbarch_unwind_pc. | |
5614 | ||
70bc38f5 TV |
5615 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
5616 | ||
5617 | * symtab.c (lookup_global_symbol): Prefer def over decl. | |
5618 | ||
de82891c TV |
5619 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
5620 | ||
5621 | PR symtab/25807 | |
5622 | * block.c (best_symbol, better_symbol): Promote to external. | |
5623 | * block.h (best_symbol, better_symbol): Declare. | |
5624 | * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over | |
5625 | decl. | |
5626 | ||
ecc6c606 TT |
5627 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
5628 | ||
5629 | PR ada/25837: | |
5630 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a | |
5631 | "const char *", not a "const std::string &". | |
5632 | <name_and_matcher::operator==>: Update. | |
5633 | * unittests/lookup_name_info-selftests.c: Change type of | |
5634 | "result". | |
5635 | ||
740480b8 TT |
5636 | 2020-04-23 Tom Tromey <tom@tromey.com> |
5637 | ||
5638 | * inferior.h (iterate_over_inferiors): Don't declare. | |
5639 | * inferior.c (iterate_over_inferiors): Remove. | |
5640 | * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it): | |
5641 | Remove. | |
5642 | (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't | |
5643 | use iterate_over_inferiors. | |
5644 | (darwin_resume_inferior_it) | |
5645 | (struct resume_inferior_threads_param) | |
5646 | (darwin_resume_inferior_threads_it): Remove. | |
5647 | (darwin_nat_target::resume): Don't use iterate_over_inferiors. | |
5648 | ||
ae3ab1f0 TV |
5649 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
5650 | ||
5651 | * blockframe.c (find_pc_partial_function): Use | |
5652 | find_pc_sect_compunit_symtab rather than | |
5653 | objfile->sf->qf->find_pc_sect_compunit_symtab. | |
5654 | ||
317d2668 TV |
5655 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
5656 | ||
5657 | PR symtab/25764 | |
5658 | * dwarf2/read.c (scan_partial_symbols): Allow external variable decls | |
5659 | in psymtabs. | |
5660 | ||
eea9e357 TV |
5661 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
5662 | ||
5663 | PR symtab/25801 | |
5664 | * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared | |
5665 | symtabs. | |
5666 | ||
3d5afab3 TV |
5667 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
5668 | ||
5669 | PR symtab/25700 | |
5670 | * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for | |
5671 | CU if already created. | |
5672 | ||
d43b7a2d TBA |
5673 | 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5674 | ||
5675 | * infrun.c (displaced_step_fixup): Switch to the event_thread | |
5676 | before calling displaced_step_restore, not after. | |
5677 | ||
d89edf9b MM |
5678 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
5679 | ||
5680 | * record-btrace.c (record_btrace_enable_warn): Ignore thread if | |
5681 | its inferior is not recorded by us. | |
5682 | (record_btrace_target_open): Replace call to | |
5683 | all_non_exited_threads () with call to current_inferior | |
5684 | ()->non_exited_threads (). | |
5685 | (record_btrace_target::stop_recording): Likewise. | |
5686 | (record_btrace_target::close): Likewise. | |
5687 | (record_btrace_target::wait): Likewise. | |
5688 | (record_btrace_target::record_stop_replaying): Likewise. | |
5689 | ||
5897fd49 MM |
5690 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
5691 | ||
5692 | * btrace.c (btrace_enable): Throw an error on double enables and | |
5693 | when enabling recording fails. | |
5694 | (btrace_disable): Throw an error if the thread is not recorded. | |
5695 | ||
1a476b6d MM |
5696 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
5697 | ||
5698 | * record-btrace.c (record_btrace_target::fetch_registers): Forward | |
5699 | request if we do not have a thread_info. | |
5700 | ||
4778a5f8 TV |
5701 | 2020-04-21 Tom de Vries <tdevries@suse.de> |
5702 | ||
5703 | PR gdb/25471 | |
5704 | * thread.c | |
5705 | (scoped_restore_current_thread::scoped_restore_current_thread): Catch | |
5706 | exception in get_frame_id. | |
5707 | ||
0fa7617d TT |
5708 | 2020-04-20 Tom Tromey <tromey@adacore.com> |
5709 | ||
5710 | * python/python.c (struct gdbpy_event): Mark move constructor as | |
5711 | noexcept. | |
5712 | * python/py-tui.c (class gdbpy_tui_window_maker): Mark move | |
5713 | constructor as noexcept. | |
5714 | * completer.h (struct completion_result): Mark move constructor as | |
5715 | noexcept. | |
5716 | * completer.c (completion_result::completion_result): Use | |
5717 | initialization style. Don't call reset_match_list. | |
5718 | ||
ad23bda0 MS |
5719 | 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com> |
5720 | ||
5721 | * MAINTAINERS (Write After Approval): Add myself. | |
5722 | ||
45e1f031 TT |
5723 | 2020-04-18 Tom Tromey <tom@tromey.com> |
5724 | ||
5725 | * windows-tdep.c (init_w32_command_list) | |
5726 | (w32_prefix_command_valid): Restore. | |
5727 | (_initialize_windows_tdep): Call init_w32_command_list. | |
5728 | ||
08feed99 TT |
5729 | 2020-04-18 Tom Tromey <tom@tromey.com> |
5730 | ||
5731 | * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update. | |
5732 | * value.c (value_fn_field): Update. | |
5733 | * valops.c (find_function_in_inferior) | |
5734 | (value_allocate_space_in_inferior): Update. | |
5735 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
5736 | Update. | |
5737 | * tui/tui-source.c (tui_source_window::set_contents): Update. | |
5738 | * symtab.c (lookup_global_or_static_symbol) | |
5739 | (find_function_start_sal_1, skip_prologue_sal) | |
5740 | (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update. | |
5741 | * symmisc.c (dump_msymbols, dump_symtab_1) | |
5742 | (maintenance_print_one_line_table): Update. | |
5743 | * symfile.c (init_entry_point_info, section_is_mapped) | |
5744 | (list_overlays_command, simple_read_overlay_table) | |
5745 | (simple_overlay_update_1): Update. | |
5746 | * stap-probe.c (handle_stap_probe): Update. | |
5747 | * stabsread.c (dbx_init_float_type, define_symbol) | |
5748 | (read_one_struct_field, read_enum_type, read_range_type): Update. | |
5749 | * source.c (info_line_command): Update. | |
5750 | * python/python.c (gdbpy_source_objfile_script) | |
5751 | (gdbpy_execute_objfile_script): Update. | |
5752 | * python/py-type.c (save_objfile_types): Update. | |
5753 | * python/py-objfile.c (py_free_objfile): Update. | |
5754 | * python/py-inferior.c (python_new_objfile): Update. | |
5755 | * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab) | |
5756 | (dump_psymtab_addrmap_1, maintenance_info_psymtabs) | |
5757 | (maintenance_check_psymtabs): Update. | |
5758 | * printcmd.c (info_address_command): Update. | |
5759 | * objfiles.h (struct objfile) <arch>: New method, from | |
5760 | get_objfile_arch. | |
5761 | (get_objfile_arch): Don't declare. | |
5762 | * objfiles.c (get_objfile_arch): Remove. | |
5763 | (filter_overlapping_sections): Update. | |
5764 | * minsyms.c (msymbol_is_function): Update. | |
5765 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines) | |
5766 | (output_nondebug_symbol): Update. | |
5767 | * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols) | |
5768 | (mdebug_expand_psymtab): Update. | |
5769 | * machoread.c (macho_add_oso_symfile): Update. | |
5770 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): | |
5771 | Update. | |
5772 | * linux-fork.c (checkpoint_command): Update. | |
5773 | * linespec.c (convert_linespec_to_sals): Update. | |
5774 | * jit.c (finalize_symtab): Update. | |
5775 | * infrun.c (insert_exception_resume_from_probe): Update. | |
5776 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
5777 | * hppa-tdep.c (internalize_unwinds): Update. | |
5778 | * gdbtypes.c (get_type_arch, init_float_type, objfile_type): | |
5779 | Update. | |
5780 | * gcore.c (call_target_sbrk): Update. | |
5781 | * elfread.c (record_minimal_symbol, elf_symtab_read) | |
5782 | (elf_rel_plt_read, elf_gnu_ifunc_record_cache) | |
5783 | (elf_gnu_ifunc_resolve_by_got): Update. | |
5784 | * dwarf2/read.c (create_addrmap_from_index) | |
5785 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
5786 | (read_debug_names_from_section) | |
5787 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
5788 | (add_partial_subprogram, process_full_comp_unit) | |
5789 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
5790 | (read_call_site_scope, dwarf2_ranges_read) | |
5791 | (dwarf2_record_block_ranges, dwarf2_add_field) | |
5792 | (mark_common_block_symbol_computed, read_tag_pointer_type) | |
5793 | (read_tag_string_type, dwarf2_init_float_type) | |
5794 | (dwarf2_init_complex_target_type, read_base_type) | |
5795 | (partial_die_info::read, partial_die_info::read) | |
5796 | (read_attribute_value, dwarf_decode_lines_1, new_symbol) | |
5797 | (dwarf2_fetch_die_loc_sect_off): Update. | |
5798 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
5799 | (class dwarf_evaluate_loc_desc, rw_pieced_value) | |
5800 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval) | |
5801 | (dwarf2_loc_desc_get_symbol_read_needs) | |
5802 | (locexpr_describe_location_piece, locexpr_describe_location_1) | |
5803 | (loclist_describe_location): Update. | |
5804 | * dwarf2/index-write.c (write_debug_names): Update. | |
5805 | * dwarf2/frame.c (dwarf2_build_frame_info): Update. | |
5806 | * dtrace-probe.c (dtrace_process_dof): Update. | |
5807 | * dbxread.c (read_dbx_symtab, dbx_end_psymtab) | |
5808 | (process_one_symbol): Update. | |
5809 | * ctfread.c (ctf_init_float_type, read_base_type): Update. | |
5810 | * coffread.c (coff_symtab_read, enter_linenos, decode_base_type) | |
5811 | (coff_read_enum_type): Update. | |
5812 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
5813 | * buildsym.c (buildsym_compunit::finish_block_internal): Update. | |
5814 | * breakpoint.c (create_overlay_event_breakpoint) | |
5815 | (create_longjmp_master_breakpoint) | |
5816 | (create_std_terminate_master_breakpoint) | |
5817 | (create_exception_master_breakpoint, get_sal_arch): Update. | |
5818 | * block.c (block_gdbarch): Update. | |
5819 | * annotate.c (annotate_source_line): Update. | |
5820 | ||
0743fc83 TT |
5821 | 2020-04-17 Tom Tromey <tromey@adacore.com> |
5822 | ||
5823 | * auto-load.c (show_auto_load_cmd): Remove. | |
5824 | (auto_load_show_cmdlist_get): Use add_show_prefix_cmd. | |
5825 | * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd. | |
5826 | (maintenance_print_arc_command): Remove. | |
5827 | * tui/tui-win.c (tui_command): Remove. | |
5828 | (tui_get_cmd_list): Use add_basic_prefix_cmd. | |
5829 | * tui/tui-layout.c (tui_layout_command): Remove. | |
5830 | (_initialize_tui_layout): Use add_basic_prefix_cmd. | |
5831 | * python/python.c (user_set_python, user_show_python): Remove. | |
5832 | (_initialize_python): Use add_basic_prefix_cmd, | |
5833 | add_show_prefix_cmd. | |
5834 | * guile/guile.c (set_guile_command, show_guile_command): Remove. | |
5835 | (install_gdb_commands): Use add_basic_prefix_cmd, | |
5836 | add_show_prefix_cmd. | |
5837 | (info_guile_command): Remove. | |
5838 | * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove. | |
5839 | (_initialize_dwarf2_read): Use add_basic_prefix_cmd, | |
5840 | add_show_prefix_cmd. | |
5841 | * cli/cli-style.h (class cli_style_option) <add_setshow_commands>: | |
5842 | Remove do_set and do_show parameters. | |
5843 | * cli/cli-style.c (set_style, show_style): Remove. | |
5844 | (_initialize_cli_style): Use add_basic_prefix_cmd, | |
5845 | add_show_prefix_cmd. | |
5846 | (cli_style_option::add_setshow_commands): Remove do_set and | |
5847 | do_show parameters. | |
5848 | (cli_style_option::add_setshow_commands): Use | |
5849 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
5850 | (STYLE_ADD_SETSHOW_COMMANDS): Remove macro. | |
5851 | (set_style_name): Remove. | |
5852 | * cli/cli-dump.c (dump_command, append_command): Remove. | |
5853 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
5854 | (tekhex_dump_command, binary_dump_command) | |
5855 | (binary_append_command): Remove. | |
5856 | (_initialize_cli_dump): Use add_basic_prefix_cmd. | |
5857 | * windows-tdep.c (w32_prefix_command_valid): Remove global. | |
5858 | (init_w32_command_list): Remove; move into ... | |
5859 | (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd. | |
5860 | * valprint.c (set_print, show_print, set_print_raw) | |
5861 | (show_print_raw): Remove. | |
5862 | (_initialize_valprint): Use add_basic_prefix_cmd, | |
5863 | add_show_prefix_cmd. | |
5864 | * typeprint.c (set_print_type, show_print_type): Remove. | |
5865 | (_initialize_typeprint): Use add_basic_prefix_cmd, | |
5866 | add_show_prefix_cmd. | |
5867 | * record.c (set_record_command, show_record_command): Remove. | |
5868 | (_initialize_record): Use add_basic_prefix_cmd, | |
5869 | add_show_prefix_cmd. | |
5870 | * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd, | |
5871 | add_show_prefix_cmd. | |
5872 | (info_command, show_command, set_debug, show_debug): Remove. | |
5873 | * top.h (set_history, show_history): Don't declare. | |
5874 | * top.c (set_history, show_history): Remove. | |
5875 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
5876 | (unset_tdesc_cmd): Remove. | |
5877 | (_initialize_target_descriptions): Use add_basic_prefix_cmd, | |
5878 | add_show_prefix_cmd. | |
5879 | * symtab.c (info_module_command): Remove. | |
5880 | (_initialize_symtab): Use add_basic_prefix_cmd. | |
5881 | * symfile.c (overlay_command): Remove. | |
5882 | (_initialize_symfile): Use add_basic_prefix_cmd. | |
5883 | * sparc64-tdep.c (info_adi_command): Remove. | |
5884 | (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd. | |
5885 | * sh-tdep.c (show_sh_command, set_sh_command): Remove. | |
5886 | (_initialize_sh_tdep): Use add_basic_prefix_cmd, | |
5887 | add_show_prefix_cmd. | |
5888 | * serial.c (serial_set_cmd, serial_show_cmd): Remove. | |
5889 | (_initialize_serial): Use add_basic_prefix_cmd, | |
5890 | add_show_prefix_cmd. | |
5891 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove. | |
5892 | (_initialize_ser_tcp): Use add_basic_prefix_cmd, | |
5893 | add_show_prefix_cmd. | |
5894 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command) | |
5895 | (_initialize_rs6000_tdep): Use add_basic_prefix_cmd, | |
5896 | add_show_prefix_cmd. | |
5897 | * riscv-tdep.c (show_riscv_command, set_riscv_command) | |
5898 | (show_debug_riscv_command, set_debug_riscv_command): Remove. | |
5899 | (_initialize_riscv_tdep): Use add_basic_prefix_cmd, | |
5900 | add_show_prefix_cmd. | |
5901 | * remote.c (remote_command, set_remote_cmd): Remove. | |
5902 | (_initialize_remote): Use add_basic_prefix_cmd. | |
5903 | * record-full.c (set_record_full_command) | |
5904 | (show_record_full_command): Remove. | |
5905 | (_initialize_record_full): Use add_basic_prefix_cmd, | |
5906 | add_show_prefix_cmd. | |
5907 | * record-btrace.c (cmd_set_record_btrace) | |
5908 | (cmd_show_record_btrace, cmd_set_record_btrace_bts) | |
5909 | (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt) | |
5910 | (cmd_show_record_btrace_pt): Remove. | |
5911 | (_initialize_record_btrace): Use add_basic_prefix_cmd, | |
5912 | add_show_prefix_cmd. | |
5913 | * ravenscar-thread.c (set_ravenscar_command) | |
5914 | (show_ravenscar_command): Remove. | |
5915 | (_initialize_ravenscar): Use add_basic_prefix_cmd, | |
5916 | add_show_prefix_cmd. | |
5917 | * mips-tdep.c (show_mips_command, set_mips_command) | |
5918 | (_initialize_mips_tdep): Use add_basic_prefix_cmd, | |
5919 | add_show_prefix_cmd. | |
5920 | * maint.c (maintenance_command, maintenance_info_command) | |
5921 | (maintenance_check_command, maintenance_print_command) | |
5922 | (maintenance_set_cmd, maintenance_show_cmd): Remove. | |
5923 | (_initialize_maint_cmds): Use add_basic_prefix_cmd, | |
5924 | add_show_prefix_cmd. | |
5925 | (show_per_command_cmd): Remove. | |
5926 | * maint-test-settings.c (maintenance_set_test_settings_cmd): | |
5927 | Remove. | |
5928 | (maintenance_show_test_settings_cmd): Remove. | |
5929 | (_initialize_maint_test_settings): Use add_basic_prefix_cmd, | |
5930 | add_show_prefix_cmd. | |
5931 | * maint-test-options.c (maintenance_test_options_command): | |
5932 | Remove. | |
5933 | (_initialize_maint_test_options): Use add_basic_prefix_cmd. | |
5934 | * macrocmd.c (macro_command): Remove | |
5935 | (_initialize_macrocmd): Use add_basic_prefix_cmd. | |
5936 | * language.c (set_check, show_check): Remove. | |
5937 | (_initialize_language): Use add_basic_prefix_cmd, | |
5938 | add_show_prefix_cmd. | |
5939 | * infcmd.c (unset_command): Remove. | |
5940 | (_initialize_infcmd): Use add_basic_prefix_cmd. | |
5941 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove. | |
5942 | (_initialize_i386_tdep): Use add_basic_prefix_cmd, | |
5943 | add_show_prefix_cmd. | |
5944 | * go32-nat.c (go32_info_dos_command): Remove. | |
5945 | (_initialize_go32_nat): Use add_basic_prefix_cmd. | |
5946 | * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd) | |
5947 | (do_show_prefix_cmd, add_show_prefix_cmd): New functions. | |
5948 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove. | |
5949 | (_initialize_frame): Use add_basic_prefix_cmd, | |
5950 | add_show_prefix_cmd. | |
5951 | * dcache.c (set_dcache_command, show_dcache_command): Remove. | |
5952 | (_initialize_dcache): Use add_basic_prefix_cmd, | |
5953 | add_show_prefix_cmd. | |
5954 | * cp-support.c (maint_cplus_command): Remove. | |
5955 | (_initialize_cp_support): Use add_basic_prefix_cmd. | |
5956 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
5957 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
5958 | (maint_btrace_pt_show_cmd, _initialize_btrace): Use | |
5959 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
5960 | * breakpoint.c (save_command): Remove. | |
5961 | (_initialize_breakpoint): Use add_basic_prefix_cmd. | |
5962 | * arm-tdep.c (set_arm_command, show_arm_command): Remove. | |
5963 | (_initialize_arm_tdep): Use add_basic_prefix_cmd, | |
5964 | add_show_prefix_cmd. | |
5965 | * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd) | |
5966 | (set_ada_command, show_ada_command): Remove. | |
5967 | (_initialize_ada_language): Use add_basic_prefix_cmd, | |
5968 | add_show_prefix_cmd. | |
5969 | * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare. | |
5970 | ||
3557f442 KR |
5971 | 2020-04-16 Kamil Rytarowski <n54@gmx.com> |
5972 | ||
5973 | * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove. | |
5974 | * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise. | |
5975 | ||
16197208 SM |
5976 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
5977 | ||
5978 | * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to | |
5979 | warning messages. | |
5980 | ||
00ac85d3 SM |
5981 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
5982 | ||
5983 | * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where | |
5984 | import table is not at beginning of .idata section. | |
5985 | ||
381ce63f PA |
5986 | 2020-04-16 Pedro Alves <palves@redhat.com> |
5987 | ||
5988 | * inferior.c (delete_inferior): Use delete operator directly | |
5989 | instead of delete_program_space. | |
5990 | * progspace.c (add_program_space): New, factored out from | |
5991 | program_space::program_space. | |
5992 | (remove_program_space): New, factored out from | |
5993 | delete_program_space. | |
5994 | (program_space::program_space): Remove intro comment. Rewrite. | |
5995 | (program_space::~program_space): Remove intro comment. Call | |
5996 | remove_program_space. | |
5997 | (delete_program_space): Delete. | |
5998 | * progspace.h (program_space::program_space): Make explicit. Move | |
5999 | intro comment here, adjusted. | |
6000 | (program_space::~program_space): Move intro comment here, | |
6001 | adjusted. | |
6002 | (delete_program_space): Remove. | |
6003 | ||
a010605f TT |
6004 | 2020-04-16 Tom Tromey <tromey@adacore.com> |
6005 | ||
6006 | * windows-nat.c (windows_nat::handle_access_violation): New | |
6007 | function. | |
6008 | * nat/windows-nat.h (handle_access_violation): Declare. | |
6009 | * nat/windows-nat.c (handle_exception): Move Cygwin code to | |
6010 | windows-nat.c. Call handle_access_violation. | |
6011 | ||
efba5c23 TV |
6012 | 2020-04-16 Tom de Vries <tdevries@suse.de> |
6013 | ||
6014 | PR symtab/25791 | |
6015 | * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for | |
6016 | CUs without psymtab. | |
6017 | ||
97ed802d KB |
6018 | 2020-04-16 Kevin Buettner <kevinb@redhat.com> |
6019 | ||
6020 | * python/python.c (do_start_initialization): Don't call | |
6021 | PyEval_InitThreads for Python 3.9 and beyond. | |
6022 | ||
c7d64809 KR |
6023 | 2020-04-15 Kamil Rytarowski <n54@gmx.com> |
6024 | ||
6025 | * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to | |
6026 | thread functions. | |
6027 | (obsd_nat_target::wait): Likewise. | |
6028 | ||
ce127a96 TT |
6029 | 2020-04-15 Tom Tromey <tromey@adacore.com> |
6030 | ||
6031 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) | |
6032 | (DEBUG_EXCEPT): Use debug_printf. | |
6033 | ||
99f1bc6a AB |
6034 | 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
6035 | ||
6036 | * completer.c (class completion_tracker::completion_hash_entry) | |
6037 | <hash_name>: New member function. | |
6038 | (completion_tracker::discard_completions): New callback to hash a | |
6039 | completion_hash_entry, pass this to htab_create_alloc. | |
6040 | ||
a0e9b532 JT |
6041 | 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk> |
6042 | ||
6043 | * windows-nat.c (windows_make_so): Warn rather than stopping with | |
6044 | an error if realpath() fails. | |
6045 | ||
06ca5dd4 KR |
6046 | 2020-04-14 Kamil Rytarowski <n54@gmx.com> |
6047 | ||
6048 | * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New. | |
6049 | (nbsd_nat_target::info_proc): Add do_status. | |
6050 | ||
194d088f TV |
6051 | 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca> |
6052 | Tom de Vries <tdevries@suse.de> | |
6053 | ||
6054 | PR symtab/25718 | |
6055 | * psympriv.h (struct partial_symtab::read_symtab) | |
6056 | (struct partial_symtab::expand_psymtab) | |
6057 | (struct partial_symtab::read_dependencies): Update comments. | |
6058 | * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call | |
6059 | read_symtab for includer. | |
6060 | (struct dwarf2_include_psymtab::expand_psymtab): Assert false. | |
6061 | (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer. | |
6062 | (struct dwarf2_include_psymtab::m_readin): Remove. | |
6063 | (struct dwarf2_include_psymtab::includer): New member function. | |
6064 | (dwarf2_psymtab::expand_psymtab): Assert !readin. | |
6065 | ||
c1a66c06 TV |
6066 | 2020-04-14 Tom de Vries <tdevries@suse.de> |
6067 | ||
6068 | PR symtab/25720 | |
6069 | * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching | |
6070 | with NULL symbol_matcher and lookup_name. | |
6071 | * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher | |
6072 | and lookup_name. | |
6073 | * dwarf2/read.c (dw2_expand_symtabs_matching) | |
6074 | (dw2_debug_names_expand_symtabs_matching): Same. | |
6075 | * symfile.h (struct quick_symbol_functions::expand_symtabs_matching): | |
6076 | Make lookup_name a pointer. Update comment. | |
6077 | * symtab.c (global_symbol_searcher::expand_symtabs): Handle | |
6078 | lookup_name being a pointer. | |
6079 | * symfile.c (expand_symtabs_matching): Same. | |
6080 | * symfile-debug.c (debug_qf_expand_symtabs_matching): Same. | |
6081 | * linespec.c (iterate_over_all_matching_symtabs): Same. | |
6082 | ||
400b5eca TT |
6083 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6084 | ||
6085 | * run-on-main-thread.c: Update include. | |
6086 | * unittests/main-thread-selftests.c: Update include. | |
6087 | * tui/tui-win.c: Update include. | |
6088 | * tui/tui-io.c: Update include. | |
6089 | * tui/tui-interp.c: Update include. | |
6090 | * tui/tui-hooks.c: Update include. | |
6091 | * top.h: Update include. | |
6092 | * top.c: Update include. | |
6093 | * ser-base.c: Update include. | |
6094 | * remote.c: Update include. | |
6095 | * remote-notif.c: Update include. | |
6096 | * remote-fileio.c: Update include. | |
6097 | * record-full.c: Update include. | |
6098 | * record-btrace.c: Update include. | |
6099 | * python/python.c: Update include. | |
6100 | * posix-hdep.c: Update include. | |
6101 | * mingw-hdep.c: Update include. | |
6102 | * mi/mi-main.c: Update include. | |
6103 | * mi/mi-interp.c: Update include. | |
6104 | * main.c: Update include. | |
6105 | * linux-nat.c: Update include. | |
6106 | * interps.c: Update include. | |
6107 | * infrun.c: Update include. | |
6108 | * inf-loop.c: Update include. | |
6109 | * event-top.c: Update include. | |
6110 | * event-loop.c: Move to ../gdbsupport/. | |
6111 | * event-loop.h: Move to ../gdbsupport/. | |
6112 | * async-event.h: Update include. | |
6113 | * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update. | |
6114 | ||
93b54c8e TT |
6115 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6116 | ||
6117 | * tui/tui-win.c: Include async-event.h. | |
6118 | * remote.c: Include async-event.h. | |
6119 | * remote-notif.c: Include async-event.h. | |
6120 | * record-full.c: Include async-event.h. | |
6121 | * record-btrace.c: Include async-event.h. | |
6122 | * infrun.c: Include async-event.h. | |
6123 | * event-top.c: Include async-event.h. | |
6124 | * event-loop.h: Move some declarations to async-event.h. | |
6125 | * event-loop.c: Don't include ser-event.h or top.h. Move some | |
6126 | code to async-event.c. | |
6127 | * async-event.h: New file. | |
6128 | * async-event.c: New file. | |
6129 | * Makefile.in (COMMON_SFILES): Add async-event.c. | |
6130 | (HFILES_NO_SRCDIR): Add async-event.h. | |
6131 | ||
c1cd3163 TT |
6132 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6133 | ||
6134 | * utils.c (flush_streams): New function. | |
6135 | * event-loop.c (gdb_wait_for_event): Call flush_streams. | |
6136 | ||
29f2bf4f TT |
6137 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6138 | ||
6139 | * event-loop.c (handle_file_event): Use warning, not | |
6140 | printf_unfiltered. | |
6141 | ||
98029d02 TT |
6142 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6143 | ||
6144 | * event-loop.c: Include <chrono>. | |
6145 | ||
06cc9596 TT |
6146 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6147 | ||
6148 | * gdb_select.h: Move to ../gdbsupport/. | |
6149 | * event-loop.c: Update include path. | |
6150 | * top.c: Update include path. | |
6151 | * ser-base.c: Update include path. | |
6152 | * ui-file.c: Update include path. | |
6153 | * ser-tcp.c: Update include path. | |
6154 | * guile/scm-ports.c: Update include path. | |
6155 | * posix-hdep.c: Update include path. | |
6156 | * ser-unix.c: Update include path. | |
6157 | * gdb_usleep.c: Update include path. | |
6158 | * mingw-hdep.c: Update include path. | |
6159 | * inflow.c: Update include path. | |
6160 | * infrun.c: Update include path. | |
6161 | * event-top.c: Update include path. | |
6162 | ||
8ae8e197 TT |
6163 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6164 | ||
6165 | * configure: Rebuild. | |
6166 | * configure.ac: Remove checks that are now in GDB_AC_COMMON. | |
6167 | ||
58cf28e8 TT |
6168 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6169 | ||
6170 | * event-loop.h (start_event_loop): Don't declare. | |
6171 | * event-loop.c (start_event_loop): Move... | |
6172 | * main.c (start_event_loop): ...here. Now static. | |
6173 | ||
b7f999ae SDJ |
6174 | 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net> |
6175 | ||
6176 | * MAINTAINERS: Update my email address. | |
6177 | ||
1085dfd4 KR |
6178 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
6179 | ||
6180 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and | |
6181 | IP_ALL. | |
6182 | ||
49d1d1f5 KR |
6183 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
6184 | ||
6185 | * nbsd-nat.c (nbsd_pid_to_cmdline): Add. | |
aac66a4c | 6186 | (nbsd_nat_target::info_proc): Add do_cmdline. |
49d1d1f5 | 6187 | |
b4848d2a KR |
6188 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
6189 | ||
6190 | * nbsd-nat.c (nbsd_pid_to_cwd): Add. | |
aac66a4c | 6191 | (nbsd_nat_target::info_proc): Add do_cwd. |
b4848d2a | 6192 | |
51c133d5 KR |
6193 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
6194 | ||
6195 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe. | |
6196 | ||
54b8cbd0 KR |
6197 | 2020-04-11 Kamil Rytarowski <n54@gmx.com> |
6198 | ||
6199 | * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h". | |
6200 | * nbsd-nat.c (nbsd_nat_target::find_memory_regions) | |
6201 | (nbsd_nat_target::info_proc): New functions. | |
6202 | * nbsd-nat.c (kinfo_get_vmmap): New function. | |
6203 | * nbsd-nat.c (nbsd_nat_target::info_proc) Use | |
6204 | nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry. | |
6205 | * nbsd-tdep.c (nbsd_info_proc_mappings_header) | |
6206 | (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New | |
6207 | functions. | |
6208 | * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE) | |
6209 | (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
6210 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
6211 | (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP) | |
6212 | (KINFO_VME_FLAG_GROWS_DOWN): New. | |
6213 | ||
cf83625d AS |
6214 | 2020-04-10 Artur Shepilko <nomadbyte@gmail.com> |
6215 | ||
6216 | * utils.c (copy_bitwise): Use unsigned 0 constant as operand of | |
6217 | bit shift. | |
6218 | ||
0c4311ab TT |
6219 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
6220 | ||
6221 | * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE. | |
6222 | ||
3e65b3e9 TT |
6223 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
6224 | ||
6225 | * symtab.c (get_symbol_address, get_msymbol_address): Skip | |
6226 | separate debug files. | |
6227 | ||
13302e95 HD |
6228 | 2020-04-10 Hannes Domani <ssbssa@yahoo.de> |
6229 | ||
6230 | * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
6231 | Move to... | |
6232 | * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
6233 | ... here. | |
6234 | * windows-nat.c (windows_nat_target::get_windows_debug_event): | |
6235 | Check for STATUS_WX86_BREAKPOINT. | |
6236 | (windows_nat_target::wait): Same. | |
6237 | ||
bdfc1e8a TV |
6238 | 2020-04-10 Tom de Vries <tdevries@suse.de> |
6239 | ||
6240 | PR cli/25808 | |
6241 | * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False. | |
6242 | ||
f4460aec SM |
6243 | 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
6244 | ||
6245 | * MAINTAINERS (Global Maintainers): Add Tom de Vries. | |
6246 | (Write After Approval): Remove Tom de Vries. | |
6247 | ||
a25198bb BE |
6248 | 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de> |
6249 | ||
6250 | revert partially: | |
6251 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
6252 | ||
aac66a4c SM |
6253 | * buildsym.c (record_line): Fix undefined behavior and preserve |
6254 | lines at eof. | |
a25198bb | 6255 | |
206c98a6 KR |
6256 | 2020-04-09 Kamil Rytarowski <n54@gmx.com> |
6257 | ||
6258 | * auxv.h (svr4_auxv_parse): New. | |
6259 | * auxv.c (default_auxv_parse): Split into default_auxv_parse | |
6260 | and generic_auxv_parse. | |
6261 | (svr4_auxv_parse): Add. | |
6262 | * obsd-tdep.c: Include "auxv.h". | |
6263 | (obsd_auxv_parse): Remove. | |
6264 | (obsd_init_abi): Remove comment. | |
6265 | (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument | |
6266 | from `obsd_auxv_parse' to `svr4_auxv_parse'. | |
6267 | * nbsd-tdep.c: Include "auxv.h". | |
6268 | (nbsd_init_abi): Call set_gdbarch_auxv_parse. | |
6269 | ||
71fbdbaf TT |
6270 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6271 | ||
6272 | * nat/windows-nat.h (last_wait_event): Don't declare. | |
6273 | (wait_for_debug_event): Update comment. | |
6274 | * nat/windows-nat.c (last_wait_event): Now static. | |
6275 | ||
2c1d95e8 TT |
6276 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6277 | ||
6278 | * windows-nat.c (wait_for_debug_event): Move to | |
6279 | nat/windows-nat.c. | |
6280 | * nat/windows-nat.h (wait_for_debug_event): Declare. | |
6281 | * nat/windows-nat.c (wait_for_debug_event): Move from | |
6282 | windows-nat.c. No longer static. | |
6283 | ||
d2977bc4 TT |
6284 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6285 | ||
6286 | * windows-nat.c (get_windows_debug_event): Use | |
6287 | fetch_pending_stop. | |
6288 | * nat/windows-nat.h (fetch_pending_stop): Declare. | |
6289 | * nat/windows-nat.c (fetch_pending_stop): New function. | |
6290 | ||
e758e19c TT |
6291 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6292 | ||
6293 | * windows-nat.c (windows_continue): Use matching_pending_stop and | |
6294 | continue_last_debug_event. | |
6295 | * nat/windows-nat.h (matching_pending_stop) | |
6296 | (continue_last_debug_event): Declare. | |
6297 | * nat/windows-nat.c (DEBUG_EVENTS): New define. | |
6298 | (matching_pending_stop, continue_last_debug_event): New | |
6299 | functions. | |
6300 | ||
8d30e395 TT |
6301 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6302 | ||
6303 | * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c. | |
6304 | (handle_exception_result): Move to nat/windows-nat.h. | |
6305 | (DEBUG_EXCEPTION_SIMPLE): Remove. | |
6306 | (windows_nat::handle_ms_vc_exception): New function. | |
6307 | (handle_exception): Move to nat/windows-nat.c. | |
6308 | (get_windows_debug_event): Update. | |
6309 | (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to | |
6310 | nat/windows-nat.c. | |
6311 | * nat/windows-nat.h (handle_ms_vc_exception): Declare. | |
6312 | (handle_exception_result): Move from windows-nat.c. | |
6313 | (handle_exception): Declare. | |
6314 | * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception) | |
6315 | (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from | |
6316 | windows-nat.c. | |
6317 | ||
29de418d TT |
6318 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6319 | ||
6320 | * windows-nat.c (exception_count, event_count): Remove. | |
6321 | (handle_exception, get_windows_debug_event) | |
6322 | (do_initial_windows_stuff): Update. | |
6323 | ||
a816ba18 TT |
6324 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6325 | ||
6326 | * windows-nat.c (windows_nat::handle_load_dll) | |
6327 | (windows_nat::handle_unload_dll): Rename. No longer static. | |
6328 | * nat/windows-nat.h (handle_load_dll, handle_unload_dll): | |
6329 | Declare. | |
6330 | ||
a00caa12 TT |
6331 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6332 | ||
6333 | * complaints.h (stop_whining): Declare at top-level. | |
6334 | (complaint): Don't declare stop_whining. | |
6335 | ||
d41b524f TT |
6336 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6337 | ||
6338 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
6339 | Rename. No longer static. | |
6340 | * nat/windows-nat.h (handle_output_debug_string): Declare. | |
6341 | ||
3c76026d TT |
6342 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6343 | ||
6344 | * windows-nat.c (current_process_handle, current_process_id) | |
6345 | (main_thread_id, last_sig, current_event, last_wait_event) | |
6346 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
6347 | (struct pending_stop, siginfo_er): Move to nat/windows-nat.c. | |
6348 | (display_selectors, fake_create_process) | |
6349 | (get_windows_debug_event): Update. | |
6350 | * nat/windows-nat.h (current_process_handle, current_process_id) | |
6351 | (main_thread_id, last_sig, current_event, last_wait_event) | |
6352 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
6353 | (struct pending_stop, siginfo_er): Move from windows-nat.c. | |
6354 | * nat/windows-nat.c (current_process_handle, current_process_id) | |
6355 | (main_thread_id, last_sig, current_event, last_wait_event) | |
6356 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
6357 | (siginfo_er): New globals. Move from windows-nat.c. | |
6358 | ||
9d8679cc TT |
6359 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6360 | ||
6361 | * windows-nat.c (get_image_name): Move to nat/windows-nat.c. | |
6362 | (handle_load_dll): Update. | |
6363 | * nat/windows-nat.c (get_image_name): Move from windows-nat.c. | |
6364 | ||
28688adf TT |
6365 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6366 | ||
6367 | * windows-nat.c (enum thread_disposition_type): Move to | |
6368 | nat/windows-nat.h. | |
6369 | (windows_nat::thread_rec): Rename from thread_rec. No longer | |
6370 | static. | |
6371 | (windows_add_thread, windows_nat_target::fetch_registers) | |
6372 | (windows_nat_target::store_registers, handle_exception) | |
6373 | (windows_nat_target::resume, get_windows_debug_event) | |
6374 | (windows_nat_target::get_tib_address) | |
6375 | (windows_nat_target::thread_name) | |
6376 | (windows_nat_target::thread_alive): Update. | |
6377 | * nat/windows-nat.h (enum thread_disposition_type): Move from | |
6378 | windows-nat.c. | |
6379 | (thread_rec): Declare. | |
6380 | ||
4834dad0 TT |
6381 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6382 | ||
6383 | * windows-nat.c: Add "using namespace". | |
6384 | * nat/windows-nat.h: Wrap contents in windows_nat namespace. | |
6385 | * nat/windows-nat.c: Wrap contents in windows_nat namespace. | |
6386 | ||
65bafd5b TT |
6387 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6388 | ||
6389 | * nat/windows-nat.h (struct windows_thread_info): Declare | |
6390 | destructor. | |
6391 | * nat/windows-nat.c (~windows_thread_info): New. | |
6392 | ||
0a4afda3 TT |
6393 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6394 | ||
6395 | PR gdb/22992 | |
6396 | * windows-nat.c (current_event): Update comment. | |
6397 | (last_wait_event, desired_stop_thread_id): New globals. | |
6398 | (struct pending_stop): New. | |
6399 | (pending_stops): New global. | |
6400 | (windows_nat_target) <stopped_by_sw_breakpoint> | |
6401 | <supports_stopped_by_sw_breakpoint>: New methods. | |
6402 | (windows_fetch_one_register): Add assertions. Adjust PC. | |
6403 | (windows_continue): Handle pending stops. Suspend other threads | |
6404 | when stepping. Use last_wait_event | |
6405 | (wait_for_debug_event): New function. | |
6406 | (get_windows_debug_event): Use wait_for_debug_event. Handle | |
6407 | pending stops. Queue spurious stops. | |
6408 | (windows_nat_target::wait): Set stopped_at_software_breakpoint. | |
6409 | (windows_nat_target::kill): Use wait_for_debug_event. | |
6410 | * nat/windows-nat.h (struct windows_thread_info) | |
6411 | <stopped_at_software_breakpoint>: New field. | |
6412 | * nat/windows-nat.c (windows_thread_info::resume): Clear | |
6413 | stopped_at_software_breakpoint. | |
6414 | ||
8e61ebec TT |
6415 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6416 | ||
6417 | * windows-nat.c (enum thread_disposition_type): New. | |
6418 | (thread_rec): Replace "get_context" parameter with "disposition"; | |
6419 | change type. | |
6420 | (windows_add_thread, windows_nat_target::fetch_registers) | |
6421 | (windows_nat_target::store_registers, handle_exception) | |
6422 | (windows_nat_target::resume, get_windows_debug_event) | |
6423 | (windows_nat_target::get_tib_address) | |
6424 | (windows_nat_target::thread_name) | |
6425 | (windows_nat_target::thread_alive): Update. | |
6426 | ||
98a03287 TT |
6427 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6428 | ||
6429 | * windows-nat.c (thread_rec): Use windows_thread_info::suspend. | |
6430 | (windows_continue): Use windows_continue::resume. | |
6431 | * nat/windows-nat.h (struct windows_thread_info) <suspend, | |
6432 | resume>: Declare new methods. | |
6433 | * nat/windows-nat.c: New file. | |
6434 | * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed. | |
6435 | ||
7c7411bc TT |
6436 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6437 | ||
6438 | * windows-nat.c (windows_add_thread, windows_delete_thread) | |
6439 | (windows_nat_target::fetch_registers) | |
6440 | (windows_nat_target::store_registers, fake_create_process) | |
6441 | (windows_nat_target::resume, windows_nat_target::resume) | |
6442 | (get_windows_debug_event, windows_nat_target::wait) | |
6443 | (windows_nat_target::pid_to_str) | |
6444 | (windows_nat_target::get_tib_address) | |
6445 | (windows_nat_target::get_ada_task_ptid) | |
6446 | (windows_nat_target::thread_name) | |
6447 | (windows_nat_target::thread_alive): Use lwp, not tid. | |
6448 | ||
2950fdf7 TT |
6449 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6450 | ||
6451 | * windows-nat.c (handle_exception) | |
6452 | (windows_nat_target::thread_name): Update. | |
6453 | * nat/windows-nat.h (windows_thread_info): Remove destructor. | |
6454 | <name>: Now unique_xmalloc_ptr. | |
6455 | ||
62fe396b TT |
6456 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6457 | ||
6458 | * windows-nat.c (thread_rec) | |
6459 | (windows_nat_target::fetch_registers): Update. | |
6460 | * nat/windows-nat.h (struct windows_thread_info) <suspended>: | |
6461 | Update comment. | |
6462 | <debug_registers_changed, reload_context>: Now bool. | |
6463 | ||
e9534bd2 TT |
6464 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6465 | ||
6466 | * windows-nat.c (windows_add_thread): Use new. | |
6467 | (windows_init_thread_list, windows_delete_thread): Use delete. | |
6468 | (get_windows_debug_event): Update. | |
6469 | * nat/windows-nat.h (struct windows_thread_info): Add constructor, | |
6470 | destructor, and initializers. | |
6471 | ||
ae1f8880 TT |
6472 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6473 | ||
6474 | * windows-nat.c (struct windows_thread_info): Remove. | |
6475 | * nat/windows-nat.h: New file. | |
6476 | ||
55a1e039 TT |
6477 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6478 | ||
6479 | * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id". | |
6480 | (thread_rec, windows_add_thread, windows_delete_thread) | |
6481 | (windows_continue): Update. | |
6482 | ||
93366324 TT |
6483 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6484 | ||
6485 | * windows-nat.c (struct windows_thread_info): Remove typedef. | |
6486 | (thread_head): Remove. | |
6487 | (thread_list): New global. | |
6488 | (thread_rec, windows_add_thread, windows_init_thread_list) | |
6489 | (windows_delete_thread, windows_continue): Update. | |
6490 | ||
0f2265e2 SM |
6491 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
6492 | ||
6493 | * windows-tdep.h (windows_init_abi): Add comment. | |
6494 | (cygwin_init_abi): New declaration. | |
6495 | * windows-tdep.c: Split signal enumeration in two, one for | |
6496 | Windows and one for Cygwin. | |
6497 | (windows_gdb_signal_to_target): Only deal with signal of the | |
6498 | Windows OS ABI. | |
6499 | (cygwin_gdb_signal_to_target): New function. | |
6500 | (windows_init_abi): Rename to windows_init_abi_common, don't set | |
6501 | gdb_signal_to_target gdbarch method. Add new new function with | |
6502 | this name. | |
6503 | (cygwin_init_abi): New function. | |
6504 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add | |
6505 | comment. Don't call windows_init_abi. | |
6506 | (amd64_windows_init_abi): Add comment, call windows_init_abi. | |
6507 | (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi. | |
6508 | * i386-windows-tdep.c (i386_windows_init_abi): Rename to | |
6509 | i386_windows_init_abi_common, don't call windows_init_abi. Add | |
6510 | a new function of this name. | |
6511 | (i386_cygwin_init_abi): New function. | |
6512 | (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to | |
6513 | OS ABI Cygwin. | |
6514 | ||
3810f182 SM |
6515 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
6516 | ||
6517 | * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile | |
6518 | parameter.c. | |
6519 | (dwarf2_read_gdb_index): Update. | |
6520 | ||
063f8e80 KR |
6521 | 2020-04-07 Kamil Rytarowski <n54@gmx.com> |
6522 | ||
6523 | * nbsd-tdep.c: Include "objfiles.h". | |
6524 | (nbsd_skip_solib_resolver): New. | |
6525 | (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver(). | |
6526 | ||
85a9510c | 6527 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
6528 | ||
6529 | * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_ | |
6530 | addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair | |
6531 | with DW_LLE_base_addressx are being emitted in DWARFv5. | |
6532 | Add the newly added kind DW_LOC_OFFSET_PAIR also. | |
6533 | The length of location description is an unsigned ULEB integer in DWARFv5 instead of | |
6534 | unsigned integer. | |
6535 | ||
9fc3eaae | 6536 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
6537 | ||
6538 | * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR. | |
6539 | (dwarf2_find_location_expression): Call the function decode_debug_loclists_ | |
6540 | addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair | |
6541 | with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*. | |
6542 | Add applicable base address if the entry is DW_LLE_offset_pair from DWO. | |
6543 | (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of | |
6544 | DEBUG_LOC_START_END in case of DW_LLE_offset_pair. | |
6545 | ||
6546 | ||
41144253 | 6547 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
6548 | ||
6549 | * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function. | |
6550 | (read_loclist_index): New function definition. | |
6551 | (lookup_loclist_base): New function definition. | |
6552 | (read_loclist_header): New function definition. | |
6553 | (dwarf2_cu): Add loclist_base and loclist_header field. | |
6554 | (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section. | |
6555 | (read_full_die_1): Read the value of DW_AT_loclists_base. | |
6556 | (read_attribute_reprocess): Handle DW_FORM_loclistx. | |
6557 | (read_attribute_value): Handle DW_FORM_loclistx. | |
6558 | (skip_one_die): Handle DW_FORM_loclistx. | |
6559 | (loclist_header): New structure declaration. | |
6560 | * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx. | |
6561 | ||
9f4e76a4 SM |
6562 | 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
6563 | ||
6564 | * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters | |
6565 | constructor. Remove `addr` parameter from other constructor and | |
6566 | add `per_cu` parameter. | |
6567 | * dwarf2/read.c (create_partial_symtab): Update. | |
6568 | ||
25c11aca TV |
6569 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
6570 | ||
6571 | PR symtab/25796 | |
6572 | * dwarf2/read.c (can_have_DW_AT_const_value_p): New function. | |
6573 | (partial_die_info::fixup): Inherit has_const_value. | |
6574 | ||
5707e24b TV |
6575 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
6576 | ||
6577 | * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK | |
6578 | symbols without address. | |
6579 | ||
05f00e22 KR |
6580 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
6581 | ||
6582 | * nbsd-nat.h (struct thread_info): Add forward declaration. | |
6583 | (nbsd_nat_target::thread_alive): Add. | |
6584 | (nbsd_nat_target::thread_name): Likewise. | |
6585 | (nbsd_nat_target::update_thread_list): Likewise. | |
6586 | (update_thread_list::post_attach): Likewise. | |
6587 | (post_attach::pid_to_str): Likewise. | |
6588 | * nbsd-nat.c: Include "gdbthread.h" and "inferior.h". | |
6589 | (nbsd_thread_lister): Add. | |
6590 | (nbsd_nat_target::thread_alive): Likewise. | |
6591 | (nbsd_nat_target::thread_name): Likewise. | |
6592 | (nbsd_add_threads): Likewise. | |
6593 | (update_thread_list::post_attach): Likewise. | |
6594 | (nbsd_nat_target::update_thread_list): Likewise. | |
6595 | (post_attach::pid_to_str): Likewise. | |
6596 | ||
6ee448cc TT |
6597 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
6598 | ||
6599 | * ada-valprint.c (print_variant_part): Extract the variant field. | |
6600 | (print_field_values): Use the field as the outer value when | |
6601 | recursing. | |
6602 | ||
dea34e8c TT |
6603 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
6604 | ||
6605 | * sh-nbsd-tdep.c: Include nbsd-tdep.h. | |
6606 | * ppc-nbsd-tdep.c: Include nbsd-tdep.h. | |
6607 | * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";". | |
6608 | * arm-nbsd-tdep.c: Include nbsd-tdep.h. | |
6609 | * hppa-nbsd-tdep.c: Include nbsd-tdep.h. | |
6610 | ||
93689ce9 TT |
6611 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
6612 | ||
6613 | * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle | |
6614 | TYPE_CODE_ERROR. | |
6615 | ||
79743962 KR |
6616 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
6617 | ||
6618 | * nbsd-tdep.c: Include "gdbarch.h". | |
6619 | Define enum with NetBSD signal numbers. | |
6620 | (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New. | |
6621 | * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi(). | |
6622 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
6623 | * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise. | |
6624 | * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise. | |
6625 | * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise. | |
6626 | * mips-nbsd-tdep.c (nbsd_init_abi): Likewise. | |
6627 | * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise. | |
6628 | * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise. | |
6629 | * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise. | |
6630 | * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise. | |
6631 | * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise. | |
6632 | ||
9e7c9a03 HD |
6633 | 2020-04-03 Hannes Domani <ssbssa@yahoo.de> |
6634 | ||
6635 | PR gdb/25325 | |
6636 | * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. | |
6637 | ||
d9e49b61 TT |
6638 | 2020-04-03 Tom Tromey <tromey@adacore.com> |
6639 | ||
6640 | * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>: | |
6641 | Read constant block. | |
6642 | ||
e0fc5c3f SM |
6643 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
6644 | ||
6645 | * gdb_bfd.h: Include gdbsupport/byte-vector.h. | |
6646 | (gdb_bfd_get_full_section_contents): New declaration. | |
6647 | * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function. | |
6648 | * windows-tdep.c (is_linked_with_cygwin_dll): Use | |
6649 | gdb_bfd_get_full_section_contents. | |
6650 | ||
e2ff18a0 SM |
6651 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
6652 | ||
6653 | * exec.c (build_section_table): Replace internal_error with | |
6654 | gdb_assert. | |
6655 | (section_table_xfer_memory_partial): Likewise. | |
6656 | * mdebugread.c (parse_partial_symbols): Likewise. | |
6657 | * psymtab.c (lookup_partial_symbol): Likewise. | |
6658 | * utils.c (wrap_here): Likewise. | |
6659 | ||
0830d301 TT |
6660 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
6661 | ||
6662 | * f-lang.c (build_fortran_types): Use arch_type to initialize | |
6663 | builtin_complex_s32 in the TYPE_CODE_ERROR case. | |
6664 | ||
e7da7f8f TT |
6665 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
6666 | ||
6667 | * dwarf2/read.c (partial_die_info::read): Do not create a vector | |
6668 | of attributes. | |
6669 | ||
c90d28ac AB |
6670 | 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com> |
6671 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
6672 | Tom Tromey <tromey@adacore.com> | |
6673 | ||
6674 | * buildsym.c (buildsym_compunit::record_line): Remove | |
6675 | deduplication code. | |
6676 | ||
1aa98955 TV |
6677 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
6678 | ||
6679 | PR ada/24671 | |
6680 | * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow. | |
6681 | ||
d3214198 TV |
6682 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
6683 | ||
6684 | * dwarf2/read.c (dwarf2_gdb_index_functions, | |
6685 | dwarf2_debug_names_functions): Init lookup_global_symbol_language with | |
6686 | NULL. | |
6687 | * psymtab.c (psym_lookup_global_symbol_language): New function. | |
6688 | (psym_functions): Init psym_lookup_global_symbol_language with | |
6689 | psym_lookup_global_symbol_language. | |
6690 | * symfile-debug.c (debug_sym_quick_functions): Init | |
6691 | lookup_global_symbol_language with NULL. | |
6692 | * symfile.c (set_initial_language): Remove fixme comment. | |
6693 | * symfile.h (struct quick_symbol_functions): Add | |
6694 | lookup_global_symbol_language. | |
6695 | * symtab.c (find_quick_global_symbol_language): New function. | |
6696 | (find_main_name): Use find_quick_global_symbol_language. | |
6697 | ||
2836752f SM |
6698 | 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
6699 | ||
6700 | * windows-tdep.c (is_linked_with_cygwin_dll): Fix style. | |
6701 | ||
64dc2d4b BE |
6702 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
6703 | ||
6704 | * buildsym.c (record_line): Fix undefined behavior and preserve | |
6705 | lines at eof. | |
6706 | ||
bbe3dc41 BE |
6707 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
6708 | ||
6709 | * buildsym.c (record_line): Fix the resizing condition. | |
6710 | ||
6b4a335b TT |
6711 | 2020-04-01 Tom Tromey <tom@tromey.com> |
6712 | ||
6713 | * value.h (value_literal_complex): Add comment. | |
6714 | * valops.c (value_literal_complex): Refer to value.h. | |
6715 | ||
3638a098 TT |
6716 | 2020-04-01 Tom Tromey <tom@tromey.com> |
6717 | ||
6718 | * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens. | |
6719 | (scalar_type): New rule, from typebase. | |
6720 | (typebase): Use scalar_type. Recognize complex types. | |
6721 | (field_name): Handle FLOAT_KEYWORD. | |
6722 | (ident_tokens): Add _Complex and __complex__. | |
6723 | ||
c34e8714 TT |
6724 | 2020-04-01 Tom Tromey <tom@tromey.com> |
6725 | ||
6726 | PR exp/25299: | |
6727 | * valarith.c (promotion_type, complex_binop): New functions. | |
6728 | (scalar_binop): Handle complex numbers. Use promotion_type. | |
6729 | (value_pos, value_neg, value_complement): Handle complex numbers. | |
6730 | ||
fa649bb7 TT |
6731 | 2020-04-01 Tom Tromey <tom@tromey.com> |
6732 | ||
6733 | * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. | |
6734 | (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules. | |
6735 | (parse_number): Handle complex numbers. | |
6736 | ||
981c08ce TT |
6737 | 2020-04-01 Tom Tromey <tom@tromey.com> |
6738 | ||
6739 | * c-valprint.c (c_decorations): Change complex suffix to "i". | |
6740 | ||
4c99290d TT |
6741 | 2020-04-01 Tom Tromey <tom@tromey.com> |
6742 | ||
6743 | * valprint.c (generic_value_print_complex): Use accessors. | |
6744 | * value.h (value_real_part, value_imaginary_part): Declare. | |
6745 | * valops.c (value_real_part, value_imaginary_part): New | |
6746 | functions. | |
6747 | * value.c (creal_internal_fn, cimag_internal_fn): Use accessors. | |
6748 | ||
5b930b45 TT |
6749 | 2020-04-01 Tom Tromey <tom@tromey.com> |
6750 | ||
6751 | * stabsread.c (rs6000_builtin_type, read_sun_floating_type) | |
6752 | (read_range_type): Update. | |
6753 | * mdebugread.c (basic_type): Update. | |
6754 | * go-lang.c (build_go_types): Use init_complex_type. | |
6755 | * gdbtypes.h (struct main_type) <complex_type>: New member. | |
6756 | (init_complex_type): Update. | |
6757 | (arch_complex_type): Don't declare. | |
6758 | * gdbtypes.c (init_complex_type): Remove "objfile" parameter. | |
6759 | Make name if none given. Use alloc_type_copy. Look for cached | |
6760 | complex type. | |
6761 | (arch_complex_type): Remove. | |
6762 | (gdbtypes_post_init): Use init_complex_type. | |
6763 | * f-lang.c (build_fortran_types): Use init_complex_type. | |
6764 | * dwarf2/read.c (read_base_type): Update. | |
6765 | * d-lang.c (build_d_types): Use init_complex_type. | |
6766 | * ctfread.c (read_base_type): Update. | |
6767 | ||
53cccef1 TBA |
6768 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6769 | ||
6770 | * infrun.c (stop_all_threads): Update assertion, plus when | |
6771 | stopping threads, take into account that we might be trying | |
6772 | to stop an all-stop target. | |
6773 | (stop_waiting): Call 'stop_all_threads' if there exists a | |
6774 | non-stop target. | |
6775 | ||
a0714d30 TBA |
6776 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6777 | ||
6778 | * target.h (exists_non_stop_target): New function declaration. | |
6779 | * target.c (exists_non_stop_target): New function. | |
6780 | ||
60e22c1e HD |
6781 | 2020-04-01 Hannes Domani <ssbssa@yahoo.de> |
6782 | ||
6783 | PR gdb/24789 | |
6784 | * eval.c (is_integral_or_integral_reference): New function. | |
6785 | (evaluate_subexp_standard): Allow integer references in | |
6786 | pointer arithmetic. | |
6787 | ||
e139a727 TBA |
6788 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6789 | ||
6790 | * remote.c (remote_target::remote_parse_stop_reply): Remove the | |
6791 | check for no ptid in the stop reply when the target is non-stop. | |
6792 | ||
e0802d59 TT |
6793 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
6794 | ||
6795 | * symtab.h (class lookup_name_info) <lookup_name_info>: Change | |
6796 | "name" parameter to rvalue reference. Initialize m_name_holder. | |
6797 | <lookup_name_info>: New overloads. | |
6798 | <name>: Return gdb::string_view. | |
6799 | <c_str>: New method. | |
6800 | <make_ignore_params>: Update. | |
6801 | <search_name_hash>: Update. | |
6802 | <language_lookup_name>: Return const char *. | |
6803 | <m_name>: Change type. | |
6804 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info) | |
6805 | (demangle_for_lookup_info::demangle_for_lookup_info): Update. | |
6806 | (lookup_name_info::match_any): Update. | |
6807 | * psymtab.c (match_partial_symbol, lookup_partial_symbol): | |
6808 | Update. | |
6809 | * minsyms.c (linkage_name_str): Update. | |
6810 | * language.c (default_symbol_name_matcher): Update. | |
6811 | * dwarf2/read.c (mapped_index_base::find_name_components_bounds): | |
6812 | Update. | |
6813 | * ada-lang.c (ada_fold_name): Change parameter to string_view. | |
6814 | (ada_lookup_name_info::ada_lookup_name_info): Update. | |
6815 | (literal_symbol_name_matcher): Update. | |
6816 | ||
8c072cb6 TT |
6817 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
6818 | ||
6819 | * psymtab.c (psymtab_search_name): Remove function. | |
6820 | (psym_lookup_symbol): Create search name and lookup name here. | |
6821 | (lookup_partial_symbol): Remove "name" parameter; add | |
6822 | lookup_name. | |
6823 | (psym_expand_symtabs_for_function): Update. | |
6824 | ||
6f29a534 TT |
6825 | 2020-03-31 Joel Jones <joelkevinjones@gmail.com> |
6826 | ||
6827 | PR tui/25597: | |
6828 | * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. | |
6829 | ||
af62665e TT |
6830 | 2020-03-31 Tom Tromey <tromey@adacore.com> |
6831 | ||
6832 | * dwarf2/abbrev.c (abbrev_table::read): Conditionally call | |
6833 | memcpy. | |
6834 | ||
d1a89da5 NC |
6835 | 2020-03-30 Nelson Chu <nelson.chu@sifive.com> |
6836 | ||
6837 | * features/riscv/32bit-csr.xml: Regenerated. | |
6838 | * features/riscv/64bit-csr.xml: Regenerated. | |
6839 | ||
d8af9068 TT |
6840 | 2020-03-30 Tom Tromey <tromey@adacore.com> |
6841 | ||
6842 | * ada-valprint.c (print_variant_part): Update. | |
6843 | * ada-lang.h (ada_which_variant_applies): Update. | |
6844 | * ada-lang.c (ada_which_variant_applies): Remove outer_type and | |
6845 | outer_valaddr parameters; replace with "outer" value parameter. | |
6846 | (to_fixed_variant_branch_type): Update. | |
6847 | ||
227c0bf4 PFC |
6848 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
6849 | ||
6850 | * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and | |
6851 | <list>. Remove inclusion of observable.h. | |
6852 | (PPC_DEBUG_CURRENT_VERSION): Move up define. | |
6853 | (struct arch_lwp_info): New struct. | |
6854 | (class ppc_linux_dreg_interface): New class. | |
6855 | (struct ppc_linux_process_info): New struct. | |
6856 | (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork> | |
6857 | <low_new_clone, low_forget_process, low_prepare_to_resume> | |
6858 | <copy_thread_dreg_state, mark_thread_stale> | |
6859 | <mark_debug_registers_changed, register_hw_breakpoint> | |
6860 | <clear_hw_breakpoint, register_wp, clear_wp> | |
6861 | <can_use_watchpoint_cond_accel, calculate_dvc, check_condition> | |
6862 | <num_memory_accesses, get_trigger_type> | |
6863 | <create_watchpoint_request, hwdebug_point_cmp> | |
6864 | <init_arch_lwp_info, get_arch_lwp_info> | |
6865 | <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as | |
6866 | methods. | |
6867 | <struct ptid_hash>: New inner struct. | |
6868 | <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare | |
6869 | members. | |
6870 | (saved_dabr_value, hwdebug_info, max_slots_number) | |
6871 | (struct hw_break_tuple, struct thread_points, ppc_threads) | |
6872 | (have_ptrace_hwdebug_interface) | |
6873 | (hwdebug_find_thread_points_by_tid) | |
6874 | (hwdebug_insert_point, hwdebug_remove_point): Remove. | |
6875 | (ppc_linux_nat_target::can_use_hw_breakpoint): Use | |
6876 | m_dreg_interface, remove call to PTRACE_SET_DEBUGREG. | |
6877 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment, | |
6878 | use m_dreg_interface. | |
6879 | (hwdebug_point_cmp): Change to... | |
6880 | (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use | |
6881 | reference arguments instead of pointers. | |
6882 | (ppc_linux_nat_target::ranged_break_num_registers): Use | |
6883 | m_dreg_interface. | |
6884 | (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use | |
6885 | m_dreg_interface. Call register_hw_breakpoint. | |
6886 | (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use | |
6887 | m_dreg_interface. Call clear_hw_breakpoint. | |
6888 | (get_trigger_type): Change to... | |
6889 | (ppc_linux_nat_target::get_trigger_type): ...this method. Add | |
6890 | comment. | |
6891 | (ppc_linux_nat_target::insert_mask_watchpoint): Update comment, | |
6892 | use m_dreg_interface. Call register_hw_breakpoint. | |
6893 | (ppc_linux_nat_target::remove_mask_watchpoint): Update comment, | |
6894 | use m_dreg_interface. Call clear_hw_breakpoint. | |
6895 | (can_use_watchpoint_cond_accel): Change to... | |
6896 | (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this | |
6897 | method. Update comment, use m_dreg_interface and | |
6898 | m_process_info. | |
6899 | (calculate_dvc): Change to... | |
6900 | (ppc_linux_nat_target::calculate_dvc): ...this method. Use | |
6901 | m_dreg_interface. | |
6902 | (num_memory_accesses): Change to... | |
6903 | (ppc_linux_nat_target::num_memory_accesses): ...this method. | |
6904 | (check_condition): Change to... | |
6905 | (ppc_linux_nat_target::check_condition): ...this method. | |
6906 | (ppc_linux_nat_target::can_accel_watchpoint_condition): Update | |
6907 | comment, use m_dreg_interface. | |
6908 | (create_watchpoint_request): Change to... | |
6909 | (ppc_linux_nat_target::create_watchpoint_request): ...this | |
6910 | method. Use m_dreg_interface. | |
6911 | (ppc_linux_nat_target::insert_watchpoint): Add comment, use | |
6912 | m_dreg_interface. Call register_hw_breakpoint or register_wp. | |
6913 | (ppc_linux_nat_target::remove_watchpoint): Add comment, use | |
6914 | m_dreg_interface. Call clear_hw_breakpoint or clear_wp. | |
6915 | (ppc_linux_nat_target::low_forget_process) | |
6916 | (ppc_linux_nat_target::low_new_fork) | |
6917 | (ppc_linux_nat_target::low_new_clone) | |
6918 | (ppc_linux_nat_target::low_delete_thread) | |
6919 | (ppc_linux_nat_target::low_prepare_to_resume): New methods. | |
6920 | (ppc_linux_nat_target::low_new_thread): Remove previous logic, | |
6921 | only call mark_thread_stale. | |
6922 | (ppc_linux_thread_exit): Remove. | |
6923 | (ppc_linux_nat_target::stopped_data_address): Change to... | |
6924 | (ppc_linux_nat_target::low_stopped_data_address): This. Add | |
6925 | comment, use m_dreg_interface and m_thread_hw_breakpoints. | |
6926 | (ppc_linux_nat_target::stopped_by_watchpoint): Change to... | |
6927 | (ppc_linux_nat_target::stopped_by_watchpoint): This. Add | |
6928 | comment. Call low_stopped_data_address. | |
6929 | (ppc_linux_nat_target::watchpoint_addr_within_range): Use | |
6930 | m_dreg_interface. | |
6931 | (ppc_linux_nat_target::masked_watch_num_registers): Use | |
6932 | m_dreg_interface. | |
6933 | (ppc_linux_nat_target::copy_thread_dreg_state) | |
6934 | (ppc_linux_nat_target::mark_thread_stale) | |
6935 | (ppc_linux_nat_target::mark_debug_registers_changed) | |
6936 | (ppc_linux_nat_target::register_hw_breakpoint) | |
6937 | (ppc_linux_nat_target::clear_hw_breakpoint) | |
6938 | (ppc_linux_nat_target::register_wp) | |
6939 | (ppc_linux_nat_target::clear_wp) | |
6940 | (ppc_linux_nat_target::init_arch_lwp_info) | |
6941 | (ppc_linux_nat_target::get_arch_lwp_info): New methods. | |
6942 | (_initialize_ppc_linux_nat): Remove observer callback. | |
6943 | ||
4db10d8f PFC |
6944 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
6945 | ||
6946 | * ppc-linux-nat.c (ppc_linux_nat_target::store_registers) | |
6947 | (ppc_linux_nat_target::auxv_parse) | |
6948 | (ppc_linux_nat_target::read_description) | |
6949 | (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): | |
6950 | Move up. | |
6951 | ||
1310c1b0 PFC |
6952 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
6953 | ||
6954 | * linux-nat.h (low_new_clone): New method. | |
6955 | * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. | |
6956 | ||
69b037c3 SM |
6957 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
6958 | ||
6959 | * dbxread.c (dbx_psymtab_to_symtab_1): Rename to... | |
6960 | (dbx_expand_psymtab): ... this. | |
6961 | (start_psymtab): Update. | |
6962 | * mdebugread.c (psymtab_to_symtab_1): Rename to... | |
6963 | (mdebug_expand_psymtab): ... this. | |
6964 | (parse_partial_symbols): Update. | |
6965 | (new_psymtab): Update. | |
6966 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to... | |
6967 | (xcoff_expand_psymtab): ... this. | |
6968 | (xcoff_start_psymtab): Update. | |
6969 | ||
48993951 SM |
6970 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
6971 | ||
6972 | * psympriv.h (partial_symtab) <read_dependencies>: Rename to... | |
6973 | <expand_dependencies>: ... this. | |
6974 | * psymtab.c (partial_symtab::read_dependencies): Rename to... | |
6975 | (partial_symtab::expand_dependencies): ... this. | |
6976 | * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>: | |
6977 | Update. | |
6978 | (dwarf2_psymtab::expand_psymtab): Update. | |
6979 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
6980 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
6981 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
6982 | ||
3ad83046 SM |
6983 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
6984 | ||
6985 | * psympriv.h (discard_psymtab): Remove. | |
6986 | * dbxread.c (dbx_end_psymtab): Update. | |
6987 | * xcoffread.c (xcoff_end_psymtab): Update. | |
6988 | ||
4d1b9ab6 TT |
6989 | 2020-03-28 Tom Tromey <tom@tromey.com> |
6990 | ||
6991 | * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update | |
6992 | comment. | |
6993 | ||
f1749218 TT |
6994 | 2020-03-28 Tom Tromey <tom@tromey.com> |
6995 | ||
6996 | * dwarf2/read.c (read_attribute_reprocess): Fix formatting. | |
6997 | ||
ebea7626 HD |
6998 | 2020-03-27 Hannes Domani <ssbssa@yahoo.de> |
6999 | ||
7000 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
7001 | ||
a879b4d5 JB |
7002 | 2020-03-26 John Baldwin <jhb@FreeBSD.org> |
7003 | ||
7004 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. | |
7005 | ||
0826b30a TT |
7006 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7007 | ||
7008 | * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) | |
7009 | (mark_common_block_symbol_computed, read_tag_string_type) | |
7010 | (attr_to_dynamic_prop, read_subrange_type): Update. | |
7011 | (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move | |
7012 | to be methods on struct attribute. | |
7013 | (skip_one_die, process_imported_unit_die, read_namespace_alias) | |
7014 | (read_call_site_scope, partial_die_info::read) | |
7015 | (partial_die_info::read, lookup_die_type, follow_die_ref): | |
7016 | Update. | |
7017 | * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, | |
7018 | from dwarf2_get_ref_die_offset. | |
7019 | (attribute::constant_value): New method, from | |
7020 | dwarf2_get_attr_constant_value. | |
7021 | * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>: | |
7022 | Declare method. | |
7023 | <constant_value>: New method. | |
7024 | ||
2b2558bf TT |
7025 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7026 | ||
7027 | * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) | |
7028 | (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) | |
7029 | (dwarf_type_encoding_name): Move to stringify.c. | |
7030 | * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. | |
7031 | * dwarf2/stringify.c: New file. | |
7032 | * dwarf2/stringify.h: New file. | |
7033 | ||
eeb64781 TT |
7034 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7035 | ||
7036 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: | |
7037 | Rewrite. | |
7038 | ||
a39fdb41 TT |
7039 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7040 | ||
7041 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New | |
7042 | methods. | |
7043 | * dwarf2/read.c (lookup_addr_base): Move to die.h. | |
7044 | (lookup_ranges_base): Likewise. | |
7045 | (read_cutu_die_from_dwo, read_full_die_1): Update. | |
7046 | ||
436c571c TT |
7047 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7048 | ||
7049 | * dwarf2/read.c (read_import_statement, read_file_scope) | |
7050 | (read_type_unit_scope, inherit_abstract_dies, read_func_scope) | |
7051 | (read_lexical_block_scope, read_call_site_scope) | |
7052 | (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) | |
7053 | (handle_struct_member_die, process_structure_scope) | |
7054 | (update_enumeration_type_from_children) | |
7055 | (process_enumeration_scope, read_array_type, read_common_block) | |
7056 | (read_namespace, read_module, read_subroutine_type): Update. | |
7057 | (sibling_die): Remove. | |
7058 | ||
052c8bb8 TT |
7059 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7060 | ||
7061 | * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) | |
7062 | (build_type_psymtabs_reader, read_structure_type) | |
7063 | (read_enumeration_type, read_full_die_1): Update. | |
7064 | (dwarf2_attr_no_follow): Move to die.h. | |
7065 | * dwarf2/die.h (struct die_info) <attr>: New method. | |
7066 | ||
2b24b6e4 TT |
7067 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7068 | ||
7069 | * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove. | |
7070 | <base_address>: Now an optional. | |
7071 | (dwarf2_find_base_address, dwarf2_rnglists_process) | |
7072 | (dwarf2_ranges_process, fill_in_loclist_baton) | |
7073 | (dwarf2_symbol_mark_computed): Update. | |
7074 | ||
c2d50fd0 TT |
7075 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7076 | ||
7077 | * dwarf2/read.c (struct die_info): Move to die.h. | |
7078 | * dwarf2/die.h: New file. | |
7079 | ||
0df7ad3a TT |
7080 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7081 | ||
7082 | * dwarf2/line-header.h (dwarf_decode_line_header): Declare. | |
7083 | * dwarf2/read.c | |
7084 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
7085 | Move to line-header.c. | |
7086 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
7087 | Likewise. | |
7088 | (dwarf_decode_line_header): Split into two. | |
7089 | * dwarf2/line-header.c | |
7090 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
7091 | Move from read.c. | |
7092 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
7093 | Likewise. | |
7094 | (dwarf_decode_line_header): New function, split from read.c. | |
7095 | ||
86c0bb4c TT |
7096 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7097 | ||
7098 | * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>: | |
7099 | Declare method. | |
7100 | * dwarf2/read.c (read_attribute_value): Update. | |
7101 | (dwarf2_per_objfile::read_line_string): Rename from | |
7102 | read_indirect_line_string. | |
7103 | (read_formatted_entries): Update. | |
7104 | ||
2ef46c2f TT |
7105 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7106 | ||
7107 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local | |
7108 | variable. | |
7109 | ||
4f9c1eda TT |
7110 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7111 | ||
7112 | * dwarf2/macro.h (dwarf_decode_macros): Make section parameter | |
7113 | const. | |
7114 | * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) | |
7115 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section | |
7116 | parameter const. | |
7117 | ||
5a0e026f TT |
7118 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7119 | ||
7120 | * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. | |
7121 | * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. | |
7122 | * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. | |
7123 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. | |
7124 | ||
8844c11b TT |
7125 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7126 | ||
7127 | * dwarf2/line-header.h (struct line_header) <is_valid_file_index, | |
7128 | file_names_size, file_full_name, file_file_name>: Use const. | |
7129 | <file_name_at, file_names>: Add const overload. | |
7130 | * dwarf2/line-header.c (line_header::file_file_name) | |
7131 | (line_header::file_full_name): Update. | |
7132 | ||
c90ec28a TT |
7133 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7134 | ||
7135 | * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) | |
7136 | (macro_start_file, consume_improper_spaces) | |
7137 | (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) | |
7138 | (dwarf_parse_macro_header, dwarf_decode_macro_bytes) | |
7139 | (dwarf_decode_macros): Move to macro.c. | |
7140 | * dwarf2/macro.c: New file. | |
7141 | * dwarf2/macro.h: New file. | |
7142 | * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. | |
7143 | ||
4f44ae6c TT |
7144 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7145 | ||
7146 | * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New | |
7147 | method. | |
7148 | * dwarf2/section.c: New method. From | |
7149 | read_indirect_string_at_offset_from. | |
7150 | * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. | |
7151 | (read_indirect_string_at_offset_from): Move to section.c. | |
7152 | (read_indirect_string_at_offset): Rewrite. | |
7153 | (read_indirect_line_string_at_offset): Remove. | |
7154 | (read_indirect_string, read_indirect_line_string) | |
7155 | (dwarf_decode_macro_bytes): Update. | |
7156 | ||
a0194fa8 TT |
7157 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7158 | ||
7159 | * dwarf2/section.h (struct dwarf2_section_info) | |
7160 | <overload_complaint>: Declare. | |
7161 | (dwarf2_section_buffer_overflow_complaint): Don't declare. | |
7162 | * dwarf2/section.c (dwarf2_section_info::overflow_complaint): | |
7163 | Rename from dwarf2_section_buffer_overflow_complaint. | |
7164 | * dwarf2/read.c (skip_one_die, partial_die_info::read) | |
7165 | (skip_form_bytes, dwarf_decode_macro_bytes): Update. | |
7166 | ||
3d27bbdb TT |
7167 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7168 | ||
7169 | * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): | |
7170 | Declare. | |
7171 | * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): | |
7172 | Move from read.c. | |
7173 | * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move | |
7174 | to section.c. | |
7175 | ||
9eac9650 TT |
7176 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7177 | ||
7178 | * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. | |
7179 | ||
bf80d710 TT |
7180 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7181 | ||
7182 | * dwarf2/read.c (macro_start_file): Change "cu" parameter to | |
7183 | "builder". | |
7184 | (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile | |
7185 | parameter. | |
7186 | (dwarf_decode_macros): Update. | |
7187 | ||
0314b390 TT |
7188 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7189 | ||
7190 | * dwarf2/read.c (read_attribute_value): Update. | |
7191 | (read_indirect_string_from_dwz): Move to dwz.c; change into | |
7192 | method. | |
7193 | (dwarf_decode_macro_bytes): Update. | |
7194 | * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method. | |
7195 | * dwarf2/dwz.c: New file. | |
7196 | * Makefile.in (COMMON_SFILES): Add dwz.c. | |
7197 | ||
9fda78b6 TT |
7198 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7199 | ||
7200 | * dwarf2/read.h (struct dwz_file): Move to dwz.h. | |
7201 | * dwarf2/read.c: Add include. | |
7202 | * dwarf2/index-write.c: Add include. | |
7203 | * dwarf2/index-cache.c: Add include. | |
7204 | * dwarf2/dwz.h: New file. | |
7205 | ||
33aa3c10 TT |
7206 | 2020-03-25 Tom Tromey <tom@tromey.com> |
7207 | ||
7208 | * compile/compile-object-load.c (get_out_value_type): Mention | |
7209 | correct symbol name in error message. | |
7210 | ||
d503b685 HD |
7211 | 2020-03-25 Hannes Domani <ssbssa@yahoo.de> |
7212 | ||
7213 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
7214 | ||
7b1eff95 TV |
7215 | 2020-03-25 Tom de Vries <tdevries@suse.de> |
7216 | ||
7217 | * symtab.h (is_main_symtab_of_compunit_symtab): New function. | |
7218 | * symmisc.c (dump_symtab_1): Print user and includes fields. | |
7219 | (maintenance_info_symtabs): Same. | |
7220 | ||
dd895392 AB |
7221 | 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com> |
7222 | ||
7223 | PR gdb/25534 | |
7224 | * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. | |
7225 | (riscv_regcache_cooked_write): New function. | |
7226 | (riscv_push_dummy_call): Use new function. | |
7227 | (riscv_return_value): Likewise. | |
7228 | ||
5ab2fbf1 SM |
7229 | 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
7230 | ||
7231 | * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. | |
7232 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise. | |
7233 | * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. | |
7234 | * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise. | |
7235 | * infrun.c (follow_fork): Likewise. | |
7236 | (follow_fork_inferior): Likewise. | |
7237 | * linux-nat.c (linux_nat_target::follow_fork): Likewise. | |
7238 | * linux-nat.h (class linux_nat_target): Likewise. | |
7239 | * remote.c (class remote_target) <follow_fork>: Likewise. | |
7240 | (remote_target::follow_fork): Likewise. | |
7241 | * target-delegates.c: Re-generate. | |
7242 | * target.c (default_follow_fork): Likewise. | |
7243 | (target_follow_fork): Likewise. | |
7244 | * target.h (struct target_ops) <follow_fork>: Likewise. | |
7245 | (target_follow_fork): Likewise. | |
7246 | ||
a64fafb5 TV |
7247 | 2020-03-24 Tom de Vries <tdevries@suse.de> |
7248 | ||
7249 | * psymtab.c (maintenance_info_psymtabs): Print user field. | |
7250 | ||
fe26d3a3 TT |
7251 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
7252 | ||
7253 | * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" | |
7254 | const. | |
7255 | * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" | |
7256 | const. | |
7257 | ||
c884cc46 SM |
7258 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> |
7259 | ||
7260 | * ptrace.m4: Don't check for ptrace declaration. | |
7261 | * config.in: Re-generate. | |
7262 | * configure: Re-generate. | |
7263 | * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is | |
7264 | not defined. | |
7265 | ||
1ff700c2 KR |
7266 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
7267 | ||
7268 | * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to | |
7269 | `PTRACE_TYPE_RET'. | |
7270 | * i386-bsd-nat.c (gdb_ptrace): Likewise. | |
7271 | * sparc-nat.c (gdb_ptrace): Likewise. | |
7272 | * x86-bsd-nat.c (gdb_ptrace): Likewise. | |
7273 | ||
f7d4f0b1 TT |
7274 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
7275 | ||
7276 | * c-exp.y (lex_one_token): Fix assert. | |
7277 | ||
f67210ff TT |
7278 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
7279 | ||
7280 | * ada-tasks.c (read_atcb): Use smaller length in strncpy call. | |
7281 | * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in | |
7282 | strncpy call. | |
7283 | ||
1773be9e TT |
7284 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
7285 | ||
7286 | * symmisc.c (maintenance_print_one_line_table): Use ui_out. | |
7287 | ||
70304be9 TT |
7288 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
7289 | ||
7290 | * ada-valprint.c (print_variant_part): Remove parameters; switch | |
7291 | to value-based API. | |
7292 | (print_field_values): Likewise. | |
7293 | (ada_val_print_struct_union): Likewise. | |
7294 | (ada_value_print_1): Update. | |
7295 | ||
9faa006d KR |
7296 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
7297 | ||
7298 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from | |
7299 | nbsd_nat_target instead of inf_ptrace_target. | |
7300 | * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
7301 | nbsd_nat_target. | |
7302 | ||
4a90f062 KR |
7303 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
7304 | ||
7305 | * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
7306 | it to the ptrace call. | |
7307 | * (store_registers): Likewise. | |
7308 | ||
7309 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
c7da12c7 KR |
7310 | |
7311 | * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
7312 | it to the ptrace call. | |
7313 | * (store_registers): Likewise. | |
7314 | ||
2d07da27 LM |
7315 | 2020-03-19 Luis Machado <luis.machado@linaro.org> |
7316 | ||
7317 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not | |
7318 | valid, fetch vg value from ptrace. | |
7319 | ||
f09db380 KR |
7320 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
7321 | * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. | |
7322 | * inf-ptrace.c: Likewise. | |
7323 | * (gdb_ptrace): Add. | |
7324 | * (inf_ptrace_target::resume): Update. | |
7325 | * (inf_ptrace_target::xfer_partial): Likewise. | |
7326 | * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. | |
7327 | * (inf_ptrace_peek_poke): Update. | |
7328 | ||
fcc7376e KR |
7329 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
7330 | ||
7331 | * x86-bsd-nat.c (gdb_ptrace): New. | |
7332 | * (x86bsd_dr_set): Add new argument `ptid'. | |
7333 | * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, | |
7334 | x86bsd_dr_set_addr): Update. | |
7335 | ||
cada5fc9 AB |
7336 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
7337 | ||
7338 | * remote.c (remote_target::process_stop_reply): Handle events for | |
7339 | all threads differently. | |
7340 | ||
19a2740f AB |
7341 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
7342 | ||
7343 | * completer.c (completion_tracker::remove_completion): Define new | |
7344 | function. | |
7345 | * completer.h (completion_tracker::remove_completion): Declare new | |
7346 | function. | |
7347 | * symtab.c (completion_list_add_symbol): Remove aliasing msymbols | |
7348 | when adding a C++ function symbol. | |
7349 | ||
724fd9ba AB |
7350 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
7351 | ||
7352 | * completer.c (completion_tracker::completion_hash_entry): Define | |
7353 | new class. | |
7354 | (advance_to_filename_complete_word_point): Call | |
7355 | recompute_lowest_common_denominator. | |
7356 | (completion_tracker::completion_tracker): Call discard_completions | |
7357 | to setup the hash table. | |
7358 | (completion_tracker::discard_completions): Allow for being called | |
7359 | from the constructor, pass new equal function, and element deleter | |
7360 | when constructing the hash table. Initialise new class member | |
7361 | variables. | |
7362 | (completion_tracker::maybe_add_completion): Remove use of | |
7363 | m_entries_vec, and store more information into m_entries_hash. | |
7364 | (completion_tracker::recompute_lcd_visitor): New function, most | |
7365 | content taken from... | |
7366 | (completion_tracker::recompute_lowest_common_denominator): | |
7367 | ...here, this now just visits each item in the hash calling the | |
7368 | above visitor. | |
7369 | (completion_tracker::build_completion_result): Remove use of | |
7370 | m_entries_vec, call recompute_lowest_common_denominator. | |
7371 | * completer.h (completion_tracker::have_completions): Remove use | |
7372 | of m_entries_vec. | |
7373 | (completion_tracker::completion_hash_entry): Declare new class. | |
7374 | (completion_tracker::recompute_lowest_common_denominator): Change | |
7375 | function signature. | |
7376 | (completion_tracker::recompute_lcd_visitor): Declare new function. | |
7377 | (completion_tracker::m_entries_vec): Delete. | |
7378 | (completion_tracker::m_entries_hash): Initialize to NULL. | |
7379 | (completion_tracker::m_lowest_common_denominator_valid): New | |
7380 | member variable. | |
7381 | (completion_tracker::m_lowest_common_denominator_max_length): New | |
7382 | member variable. | |
7383 | ||
5a82b8a1 KR |
7384 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7385 | ||
7386 | * regformats/regdef.h: Put reg in gdb namespace. | |
7387 | ||
fb516a69 KR |
7388 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7389 | ||
7390 | * i386-bsd-nat.c (gdb_ptrace): New. | |
7391 | * (i386bsd_fetch_inferior_registers, | |
7392 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
7393 | * (i386bsd_fetch_inferior_registers, | |
7394 | i386bsd_store_inferior_registers) Use gdb_ptrace. | |
7395 | ||
1c0aa1fb KR |
7396 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7397 | ||
7398 | * amd64-bsd-nat.c (gdb_ptrace): New. | |
7399 | * (amd64bsd_fetch_inferior_registers, | |
7400 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
7401 | * (amd64bsd_fetch_inferior_registers, | |
7402 | amd64bsd_store_inferior_registers) Use gdb_ptrace. | |
7403 | ||
5ccd2fb7 KR |
7404 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7405 | ||
7406 | * user-regs.c (user_reg::read): Rename to... | |
7407 | (user_reg::xread): ...this. | |
7408 | * (append_user_reg): Rename argument `read' to `xread'. | |
7409 | * (user_reg_add_builtin): Likewise. | |
7410 | * (user_reg_add): Likewise. | |
7411 | * (value_of_user_reg): Likewise. | |
7412 | ||
2108a63a KR |
7413 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7414 | ||
7415 | * sparc-nat.c (gdb_ptrace): New. | |
7416 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
7417 | (sparc_store_inferior_registers) Remove obsolete comment. | |
7418 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
7419 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. | |
7420 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
7421 | (sparc_store_inferior_registers) Use gdb_ptrace. | |
7422 | ||
a225c9a8 KR |
7423 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7424 | ||
7425 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
7426 | it to the ptrace call. | |
7427 | * sh-nbsd-nat.c (store_registers): Likewise. | |
7428 | ||
98097623 KR |
7429 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7430 | ||
7431 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from | |
7432 | nbsd_nat_target instead of inf_ptrace_target. | |
7433 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
7434 | nbsd_nat_target. | |
7435 | ||
9e38d619 KR |
7436 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7437 | ||
7438 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". | |
7439 | ||
a2ecbe9f KR |
7440 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7441 | ||
7442 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and | |
7443 | <sys/sysctl.h>. | |
7444 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. | |
7445 | ||
58990295 TV |
7446 | 2020-03-17 Tom de Vries <tdevries@suse.de> |
7447 | ||
7448 | PR gdb/23710 | |
7449 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang | |
7450 | fields. | |
7451 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang | |
7452 | fields. | |
7453 | (process_imported_unit_die): Skip import of c++ CUs. | |
7454 | ||
771dd3a8 TT |
7455 | 2020-03-16 Tom Tromey <tom@tromey.com> |
7456 | ||
7457 | * p-valprint.c (pascal_object_print_value): Initialize | |
7458 | base_value. | |
7459 | ||
817a7585 AK |
7460 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> |
7461 | Shahab Vahedi <shahab@synopsys.com> | |
7462 | ||
7463 | * Makefile.in: Add arch/arc.o | |
7464 | * configure.tgt: Likewise. | |
7465 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. | |
7466 | (_initialize_arc_tdep): Don't initialize old target descriptions. | |
aac66a4c | 7467 | (arc_read_description): New function to cache target descriptions. |
817a7585 AK |
7468 | * arc-tdep.h (arc_read_description): Add proto type. |
7469 | * arch/arc.c: New file. | |
7470 | * arch/arc.h: Likewise. | |
7471 | * features/Makefile: Replace old target descriptions with new. | |
7472 | * features/arc-arcompact.c: Remove. | |
7473 | * features/arc-arcompact.xml: Likewise. | |
7474 | * features/arc-v2.c: Likewise | |
7475 | * features/arc-v2.xml: Likewise | |
7476 | * features/arc/aux-arcompact.xml: New file. | |
7477 | * features/arc/aux-v2.xml: Likewise. | |
7478 | * features/arc/core-arcompact.xml: Likewise. | |
7479 | * features/arc/core-v2.xml: Likewise. | |
7480 | * features/arc/aux-arcompact.c: Generate. | |
7481 | * features/arc/aux-v2.c: Likewise. | |
7482 | * features/arc/core-arcompact.c: Likewise. | |
7483 | * features/arc/core-v2.c: Likewise. | |
7484 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. | |
7485 | ||
67430cd0 TT |
7486 | 2020-03-16 Tom Tromey <tromey@adacore.com> |
7487 | ||
7488 | PR gdb/25663: | |
7489 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after | |
7490 | putting value into bcache. | |
7491 | ||
30efb6c7 SM |
7492 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
7493 | ||
7494 | PR gdb/21500 | |
7495 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename | |
7496 | to... | |
7497 | (amd64_windows_init_abi_common): ... this. Don't set size of | |
7498 | long type. | |
7499 | (amd64_windows_init_abi): New function. | |
7500 | (amd64_cygwin_init_abi): New function. | |
7501 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for | |
7502 | the Cygwin OS ABI. | |
7503 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify | |
7504 | comment. | |
7505 | ||
8db52437 SM |
7506 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
7507 | ||
7508 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. | |
7509 | * windows-tdep.c (CYGWIN_DLL_NAME): New. | |
7510 | (pe_import_directory_entry): New struct type. | |
7511 | (is_linked_with_cygwin_dll): New function. | |
7512 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select | |
7513 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. | |
7514 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. | |
7515 | ||
5982a56a SM |
7516 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
7517 | ||
7518 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except | |
7519 | i386_cygwin_core_osabi_sniffer. | |
7520 | ||
7a1998df SM |
7521 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
7522 | ||
7523 | * i386-cygwin-tdep.c: Rename to... | |
7524 | * i386-windows-tdep.c: ... this. | |
7525 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to | |
7526 | i386-windows-tdep.c. | |
7527 | * configure.tgt: Likewise. | |
7528 | ||
053205cc SM |
7529 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
7530 | ||
7531 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. | |
7532 | * osabi.c (gdb_osabi_names): Add "Windows". | |
7533 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return | |
7534 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". | |
7535 | (i386_cygwin_core_osabi_sniffer): New function, extracted from | |
7536 | i386_cygwin_osabi_sniffer. | |
7537 | (_initialize_i386_cygwin_tdep): Register OS ABI | |
7538 | GDB_OSABI_WINDOWS for i386. | |
7539 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return | |
7540 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". | |
7541 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS | |
7542 | for x86-64. | |
7543 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI | |
7544 | when the target matches '*-*-mingw*'. | |
7545 | ||
fe4b2ee6 SM |
7546 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
7547 | ||
7548 | * defs.h (enum gdb_osabi): Move to... | |
7549 | * osabi.h (enum gdb_osabi): ... here. | |
7550 | * gdbarch.sh: Include osabi.h in gdbarch.h. | |
7551 | * gdbarch.h: Re-generate. | |
7552 | ||
cb9b645d SM |
7553 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
7554 | ||
7555 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New | |
7556 | function. | |
7557 | (_initialize_amd64_windows_tdep): Register osabi sniffer. | |
7558 | ||
3293bbaf TT |
7559 | 2020-03-14 Tom Tromey <tom@tromey.com> |
7560 | ||
7561 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" | |
7562 | for C++. | |
7563 | (c_type_print_modifier): Likewise. Add "language" parameter. | |
7564 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) | |
7565 | (c_type_print_base_1): Update. | |
7566 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New | |
7567 | constants. | |
7568 | * type-stack.c (type_stack::insert): Handle tp_atomic and | |
7569 | tp_restrict. | |
7570 | (type_stack::follow_type_instance_flags): Likewise. | |
7571 | (type_stack::follow_types): Likewise. Merge type-following code. | |
7572 | * c-exp.y (RESTRICT, ATOMIC): New tokens. | |
7573 | (space_identifier, cv_with_space_id) | |
7574 | (const_or_volatile_or_space_identifier_noopt) | |
7575 | (const_or_volatile_or_space_identifier): Remove. | |
7576 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New | |
7577 | rules. | |
7578 | (ptr_operator, typebase): Update. | |
7579 | (enum token_flag) <FLAG_C>: New constant. | |
7580 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and | |
7581 | "_Atomic". | |
7582 | (lex_one_token): Handle FLAG_C. | |
7583 | ||
154151a6 KR |
7584 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7585 | ||
7586 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass | |
7587 | it to the ptrace call. | |
7588 | * m68k-bsd-nat.c (store_registers): Likewise. | |
7589 | ||
bc107784 KR |
7590 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7591 | ||
7592 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to | |
7593 | gdb_byte *. | |
7594 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
7595 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. | |
7596 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. | |
7597 | ||
01a80117 KR |
7598 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7599 | ||
7600 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from | |
7601 | nbsd_nat_target instead of inf_ptrace_target. | |
7602 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
7603 | nbsd_nat_target. | |
7604 | ||
f90280ca KR |
7605 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7606 | ||
7607 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
7608 | register_t. | |
7609 | ||
6def66f1 KR |
7610 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7611 | ||
7612 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass | |
7613 | it to the ptrace call. | |
7614 | * alpha-bsd-nat.c (store_registers): Likewise. | |
7615 | ||
66eaca97 KR |
7616 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7617 | ||
7618 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from | |
7619 | includes. | |
7620 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. | |
7621 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, | |
7622 | fill_fpregset): Likewise. | |
7623 | ||
4fed520b KR |
7624 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7625 | ||
7626 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from | |
7627 | nbsd_nat_target instead of inf_ptrace_target. | |
7628 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
7629 | nbsd_nat_target. | |
7630 | ||
2190cf06 KR |
7631 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7632 | ||
7633 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
7634 | register_t. | |
7635 | ||
75c56d3d KR |
7636 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7637 | ||
7638 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass | |
7639 | it to the ptrace call. | |
7640 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. | |
7641 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. | |
7642 | * arm-nbsd-nat.c (store_register): Likewise. | |
7643 | * arm-nbsd-nat.c (store_regs): Likewise. | |
7644 | * arm-nbsd-nat.c (store_fp_register): Likewise. | |
7645 | * arm-nbsd-nat.c (store_fp_regs): Likewise. | |
7646 | ||
6018d381 KR |
7647 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7648 | ||
7649 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from | |
7650 | nbsd_nat_target instead of inf_ptrace_target. | |
7651 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
7652 | nbsd_nat_target. | |
7653 | ||
013f99f0 KR |
7654 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7655 | ||
7656 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass | |
7657 | it to the ptrace call. | |
7658 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. | |
7659 | ||
12753073 KR |
7660 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7661 | ||
6227b330 KR |
7662 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass |
7663 | it to the ptrace call. | |
7664 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. | |
7665 | ||
7666 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
7667 | ||
7668 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const | |
7669 | gdb_byte *. | |
12753073 KR |
7670 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. |
7671 | ||
d5be5fa4 KR |
7672 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7673 | ||
7674 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target | |
7675 | instead of inf_ptrace_target. | |
7676 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
7677 | nbsd_nat_target. | |
7678 | ||
8110f842 KR |
7679 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7680 | ||
7681 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
7682 | register_t. | |
7683 | ||
52feded7 KR |
7684 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7685 | ||
7686 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
7687 | register_t. | |
7688 | ||
25567eee KR |
7689 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
7690 | ||
7691 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
7692 | register_t. | |
7693 | ||
426a9c18 TT |
7694 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7695 | ||
7696 | * value.h (val_print): Don't declare. | |
7697 | * valprint.h (val_print_array_elements) | |
7698 | (val_print_scalar_formatted, generic_val_print): Don't declare. | |
7699 | * valprint.c (generic_val_print_array): Take a struct value. | |
7700 | (generic_val_print_ptr, generic_val_print_memberptr) | |
7701 | (generic_val_print_bool, generic_val_print_int) | |
7702 | (generic_val_print_char, generic_val_print_complex) | |
7703 | (generic_val_print): Remove. | |
7704 | (generic_value_print): Update. | |
7705 | (do_val_print): Remove unused parameters. Don't call | |
7706 | la_val_print. | |
7707 | (val_print): Remove. | |
7708 | (common_val_print): Update. Don't call value_check_printable. | |
7709 | (val_print_scalar_formatted, val_print_array_elements): Remove. | |
7710 | * rust-lang.c (rust_val_print): Remove. | |
7711 | (rust_language_defn): Update. | |
7712 | * p-valprint.c (pascal_val_print): Remove. | |
7713 | (pascal_value_print_inner): Update. | |
7714 | (pascal_object_print_val_fields, pascal_object_print_val): | |
7715 | Remove. | |
7716 | (pascal_object_print_static_field): Update. | |
7717 | * p-lang.h (pascal_val_print): Don't declare. | |
7718 | * p-lang.c (pascal_language_defn): Update. | |
7719 | * opencl-lang.c (opencl_language_defn): Update. | |
7720 | * objc-lang.c (objc_language_defn): Update. | |
7721 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. | |
7722 | * m2-lang.h (m2_val_print): Don't declare. | |
7723 | * m2-lang.c (m2_language_defn): Update. | |
7724 | * language.h (struct language_defn) <la_val_print>: Remove. | |
7725 | * language.c (unk_lang_value_print_inner): Rename. Change | |
7726 | argument types. | |
7727 | (unknown_language_defn, auto_language_defn): Update. | |
7728 | * go-valprint.c (go_val_print): Remove. | |
7729 | * go-lang.h (go_val_print): Don't declare. | |
7730 | * go-lang.c (go_language_defn): Update. | |
7731 | * f-valprint.c (f_val_print): Remove. | |
7732 | * f-lang.h (f_value_print): Don't declare. | |
7733 | * f-lang.c (f_language_defn): Update. | |
7734 | * d-valprint.c (d_val_print): Remove. | |
7735 | * d-lang.h (d_value_print): Don't declare. | |
7736 | * d-lang.c (d_language_defn): Update. | |
7737 | * cp-valprint.c (cp_print_value_fields) | |
7738 | (cp_print_value_fields_rtti, cp_print_value): Remove. | |
7739 | (cp_print_static_field): Update. | |
7740 | * c-valprint.c (c_val_print_array, c_val_print_ptr) | |
7741 | (c_val_print_struct, c_val_print_union, c_val_print_int) | |
7742 | (c_val_print_memberptr, c_val_print): Remove. | |
7743 | * c-lang.h (c_val_print_array, cp_print_value_fields) | |
7744 | (cp_print_value_fields_rtti): Don't declare. | |
7745 | * c-lang.c (c_language_defn, cplus_language_defn) | |
7746 | (asm_language_defn, minimal_language_defn): Update. | |
7747 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. | |
7748 | (ada_val_print_enum): Take a struct value. | |
7749 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) | |
7750 | (ada_val_print): Remove. | |
7751 | (ada_value_print_1): Update. | |
7752 | (printable_val_type): Remove. | |
7753 | * ada-lang.h (ada_val_print): Don't declare. | |
7754 | * ada-lang.c (ada_language_defn): Update. | |
7755 | ||
42331a1e TT |
7756 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7757 | ||
7758 | * valprint.c (do_val_print): Update. | |
7759 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take | |
7760 | a struct value. | |
7761 | (value_to_value_object_no_release): Declare. | |
7762 | * python/py-value.c (value_to_value_object_no_release): New | |
7763 | function. | |
7764 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a | |
7765 | struct value. | |
7766 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New | |
7767 | function. | |
7768 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take | |
7769 | a struct value. | |
7770 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): | |
7771 | Declare. | |
7772 | (gdbscm_apply_val_pretty_printer): Take a struct value. | |
7773 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct | |
7774 | value. | |
7775 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct | |
7776 | value. | |
7777 | * extension-priv.h (struct extension_language_ops) | |
7778 | <apply_val_pretty_printer>: Take a struct value. | |
7779 | * cp-valprint.c (cp_print_value): Create a struct value. | |
7780 | (cp_print_value): Update. | |
7781 | ||
3a916a97 TT |
7782 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7783 | ||
7784 | * ada-valprint.c (print_field_values): Call common_val_print. | |
7785 | ||
b59eac37 TT |
7786 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7787 | ||
7788 | * ada-valprint.c (val_print_packed_array_elements): Remove | |
7789 | bitoffset and val parameters. Call common_val_print. | |
7790 | (ada_val_print_string): Remove offset, address, and original_value | |
7791 | parameters. | |
7792 | (ada_val_print_array): Update. | |
7793 | (ada_value_print_array): New function. | |
7794 | (ada_value_print_1): Call it. | |
7795 | ||
03371129 TT |
7796 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7797 | ||
7798 | * ada-valprint.c (ada_value_print): Use common_val_print. | |
7799 | ||
2e088f8b TT |
7800 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7801 | ||
7802 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. | |
7803 | ||
39ef85a8 TT |
7804 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7805 | ||
7806 | * ada-valprint.c (ada_value_print_num): New function. | |
7807 | (ada_value_print_1): Use it. | |
7808 | ||
b9fa6e07 TT |
7809 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7810 | ||
7811 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. | |
7812 | ||
416595d6 TT |
7813 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7814 | ||
7815 | * ada-valprint.c (ada_value_print_ptr): New function. | |
7816 | (ada_value_print_1): Use it. | |
7817 | ||
5b5e15ec TT |
7818 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7819 | ||
7820 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; | |
7821 | call common_val_print. | |
7822 | (ada_val_print_1): Update. | |
7823 | (ada_value_print_1): New function. | |
7824 | (ada_value_print_inner): Rewrite. | |
7825 | ||
fbf54e75 TT |
7826 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7827 | ||
7828 | * cp-valprint.c (cp_print_value_fields): Update. | |
7829 | (cp_print_value): New function. | |
7830 | ||
64b653ca TT |
7831 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7832 | ||
7833 | * m2-valprint.c (m2_value_print_inner): Use | |
7834 | cp_print_value_fields. | |
7835 | * cp-valprint.c (cp_print_value_fields): New function. | |
7836 | * c-valprint.c (c_value_print_struct): New function. | |
7837 | (c_value_print_inner): Use c_value_print_struct. | |
7838 | * c-lang.h (cp_print_value_fields): Declare. | |
7839 | ||
6999f067 TT |
7840 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7841 | ||
7842 | * c-valprint.c (c_value_print_array): New function. | |
7843 | (c_value_print_inner): Use it. | |
7844 | ||
ce80b8bd TT |
7845 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7846 | ||
7847 | * c-valprint.c (c_value_print_memberptr): New function. | |
7848 | (c_value_print_inner): Use it. | |
7849 | ||
2faac269 TT |
7850 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7851 | ||
7852 | * c-valprint.c (c_value_print_int): New function. | |
7853 | (c_value_print_inner): Use it. | |
7854 | ||
da3e2c29 TT |
7855 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7856 | ||
7857 | * c-valprint.c (c_value_print_ptr): New function. | |
7858 | (c_value_print_inner): Use it. | |
7859 | ||
50836231 TT |
7860 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7861 | ||
7862 | * c-valprint.c (c_value_print_inner): Rewrite. | |
7863 | ||
4f412b6e TT |
7864 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7865 | ||
7866 | * valprint.c (generic_value_print_complex): New function. | |
7867 | (generic_value_print): Use it. | |
7868 | ||
f5354008 TT |
7869 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7870 | ||
7871 | * valprint.c (generic_val_print_float): Don't call | |
7872 | val_print_scalar_formatted. | |
7873 | (generic_val_print, generic_value_print): Update. | |
7874 | ||
3eec3b05 TT |
7875 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7876 | ||
7877 | * valprint.c (generic_value_print_char): New function | |
7878 | (generic_value_print): Use it. | |
7879 | ||
fdddfccb TT |
7880 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7881 | ||
7882 | * valprint.c (generic_value_print_int): New function. | |
7883 | (generic_value_print): Use it. | |
7884 | ||
6dde7521 TT |
7885 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7886 | ||
7887 | * valprint.c (generic_value_print_bool): New function. | |
7888 | (generic_value_print): Use it. | |
7889 | ||
4112d2e6 TT |
7890 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7891 | ||
7892 | * valprint.c (generic_val_print_func): Simplify. | |
7893 | (generic_val_print, generic_value_print): Update. | |
7894 | ||
65786af6 TT |
7895 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7896 | ||
7897 | * valprint.c (generic_val_print_flags): Remove. | |
7898 | (generic_val_print, generic_value_print): Update. | |
7899 | (val_print_type_code_flags): Add original_value parameter. | |
7900 | ||
40f3ce18 TT |
7901 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7902 | ||
7903 | * valprint.c (generic_val_print): Update. | |
7904 | (generic_value_print): Update. | |
7905 | * valprint.c (generic_val_print_enum): Don't call | |
7906 | val_print_scalar_formatted. | |
7907 | ||
2a5b130b TT |
7908 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7909 | ||
7910 | * valprint.c (generic_value_print): Call generic_value_print_ptr. | |
7911 | * valprint.c (generic_value_print_ptr): New function. | |
7912 | ||
abc66ce9 TT |
7913 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7914 | ||
7915 | * valprint.c (generic_value_print): Rewrite. | |
7916 | ||
07a32858 TT |
7917 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7918 | ||
7919 | * p-valprint.c (pascal_object_print_value_fields) | |
7920 | (pascal_object_print_value): New functions. | |
7921 | ||
64d64d3a TT |
7922 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7923 | ||
7924 | * p-valprint.c (pascal_value_print_inner): Rewrite. | |
7925 | ||
6a95a1f5 TT |
7926 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7927 | ||
7928 | * f-valprint.c (f_value_print_innner): Rewrite. | |
7929 | ||
59fcdac6 TT |
7930 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7931 | ||
7932 | * m2-valprint.c (m2_print_unbounded_array): New overload. | |
7933 | (m2_print_unbounded_array): Update. | |
7934 | (m2_print_array_contents): Take a struct value. | |
7935 | (m2_value_print_inner): Rewrite. | |
7936 | ||
d133c3e1 TT |
7937 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7938 | ||
7939 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. | |
7940 | (d_value_print_inner): New function. | |
7941 | * d-lang.h (d_value_print_inner): Declare. | |
7942 | * d-lang.c (d_language_defn): Use d_value_print_inner. | |
7943 | ||
23b0f06b TT |
7944 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7945 | ||
7946 | * go-valprint.c (go_value_print_inner): New function. | |
7947 | * go-lang.h (go_value_print_inner): Declare. | |
7948 | * go-lang.c (go_language_defn): Use go_value_print_inner. | |
7949 | ||
5f56f7cb TT |
7950 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7951 | ||
7952 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value | |
7953 | API. | |
7954 | (rust_val_print): Rewrite. | |
7955 | (rust_value_print_inner): New function, from rust_val_print. | |
7956 | (rust_language_defn): Use rust_value_print_inner. | |
7957 | ||
26792ee0 TT |
7958 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7959 | ||
7960 | * ada-valprint.c (ada_value_print_inner): New function. | |
7961 | * ada-lang.h (ada_value_print_inner): Declare. | |
7962 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. | |
7963 | ||
24051bbe TT |
7964 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7965 | ||
7966 | * f-valprint.c (f_value_print_innner): New function. | |
7967 | * f-lang.h (f_value_print_innner): Declare. | |
7968 | * f-lang.c (f_language_defn): Use f_value_print_innner. | |
7969 | ||
c0941be6 TT |
7970 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7971 | ||
7972 | * p-valprint.c (pascal_value_print_inner): New function. | |
7973 | * p-lang.h (pascal_value_print_inner): Declare. | |
7974 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. | |
7975 | ||
62c4663d TT |
7976 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7977 | ||
7978 | * m2-valprint.c (m2_value_print_inner): New function. | |
7979 | * m2-lang.h (m2_value_print_inner): Declare. | |
7980 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. | |
7981 | ||
62182190 TT |
7982 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7983 | ||
7984 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. | |
7985 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. | |
7986 | * c-valprint.c (c_value_print_inner): New function. | |
7987 | * c-lang.h (c_value_print_inner): Declare. | |
7988 | * c-lang.c (c_language_defn, cplus_language_defn) | |
7989 | (asm_language_defn, minimal_language_defn): Use | |
7990 | c_value_print_inner. | |
7991 | ||
1e592a8a TT |
7992 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7993 | ||
7994 | * p-valprint.c (pascal_object_print_value_fields): Now static. | |
7995 | * p-lang.h (pascal_object_print_value_fields): Don't declare. | |
7996 | ||
7fe471e9 TT |
7997 | 2020-03-13 Tom Tromey <tom@tromey.com> |
7998 | ||
7999 | * c-valprint.c (c_val_print_array): Simplify. | |
8000 | ||
d121c6ce TT |
8001 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8002 | ||
8003 | * valprint.c (value_print_array_elements): New function. | |
8004 | * valprint.h (value_print_array_elements): Declare. | |
8005 | ||
4dba70ee TT |
8006 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8007 | ||
8008 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. | |
8009 | * mips-tdep.c (mips_print_register): Use | |
8010 | value_print_scalar_formatted. | |
8011 | ||
4f9ae810 TT |
8012 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8013 | ||
8014 | * valprint.h (value_print_scalar_formatted): Declare. | |
8015 | * valprint.c (value_print_scalar_formatted): New function. | |
8016 | ||
156bfec9 TT |
8017 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8018 | ||
8019 | * valprint.h (generic_value_print): Declare. | |
8020 | * valprint.c (generic_value_print): New function. | |
8021 | ||
2b4e573d TT |
8022 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8023 | ||
8024 | * valprint.c (do_val_print): Call la_value_print_inner, if | |
8025 | available. | |
8026 | * rust-lang.c (rust_language_defn): Update. | |
8027 | * p-lang.c (pascal_language_defn): Update. | |
8028 | * opencl-lang.c (opencl_language_defn): Update. | |
8029 | * objc-lang.c (objc_language_defn): Update. | |
8030 | * m2-lang.c (m2_language_defn): Update. | |
8031 | * language.h (struct language_defn) <la_value_print_inner>: New | |
8032 | member. | |
8033 | * language.c (unknown_language_defn, auto_language_defn): Update. | |
8034 | * go-lang.c (go_language_defn): Update. | |
8035 | * f-lang.c (f_language_defn): Update. | |
8036 | * d-lang.c (d_language_defn): Update. | |
8037 | * c-lang.c (c_language_defn, cplus_language_defn) | |
8038 | (asm_language_defn, minimal_language_defn): Update. | |
8039 | * ada-lang.c (ada_language_defn): Update. | |
8040 | ||
a1f6a07c TT |
8041 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8042 | ||
8043 | * c-valprint.c (c_value_print): Use common_val_print. | |
8044 | ||
410cf315 TT |
8045 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8046 | ||
8047 | * cp-valprint.c (cp_print_static_field): Use common_val_print. | |
8048 | ||
72a45c93 TT |
8049 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8050 | ||
8051 | * f-valprint.c (f77_print_array_1, f_val_print): Use | |
8052 | common_val_print. | |
8053 | ||
040f66bd TT |
8054 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8055 | ||
8056 | * riscv-tdep.c (riscv_print_one_register_info): Use | |
8057 | common_val_print. | |
8058 | ||
a6e05a6c TT |
8059 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8060 | ||
8061 | * mi/mi-main.c (output_register): Use common_val_print. | |
8062 | ||
3444c526 TT |
8063 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8064 | ||
8065 | * infcmd.c (default_print_one_register_info): Use | |
8066 | common_val_print. | |
8067 | ||
c2a44efe TT |
8068 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8069 | ||
8070 | * valprint.h (common_val_print_checked): Declare. | |
8071 | * valprint.c (common_val_print_checked): New function. | |
8072 | * stack.c (print_frame_arg): Use common_val_print_checked. | |
8073 | ||
b0c26e99 TT |
8074 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8075 | ||
8076 | * valprint.c (do_val_print): New function, from val_print. | |
8077 | (val_print): Use do_val_print. | |
8078 | (common_val_print): Use do_val_print. | |
8079 | ||
ce3acbe9 TT |
8080 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8081 | ||
8082 | * valprint.c (value_print): Use scoped_value_mark. | |
8083 | ||
96c7f873 TV |
8084 | 2020-03-13 Tom de Vries <tdevries@suse.de> |
8085 | ||
8086 | PR symtab/25646 | |
8087 | * psymtab.c (partial_symtab::partial_symtab): Don't set | |
8088 | globals_offset and statics_offset. Push element onto | |
8089 | current_global_psymbols and current_static_psymbols stacks. | |
8090 | (concat): New function. | |
8091 | (end_psymtab_common): Set globals_offset and statics_offset. Pop | |
8092 | element from current_global_psymbols and current_static_psymbols | |
8093 | stacks. Concat popped elements to global_psymbols and | |
8094 | static_symbols. | |
8095 | (add_psymbol_to_list): Use current_global_psymbols and | |
8096 | current_static_psymbols stacks. | |
8097 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and | |
8098 | current_static_psymbols fields. | |
8099 | ||
6ba0a321 CB |
8100 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
8101 | ||
8102 | * corelow.c (sniff_core_bfd): Remove. | |
8103 | (class core_target) <m_core_vec>: Remove. | |
8104 | (core_target::core_target): Update. | |
8105 | (core_file_fns): Remove. | |
8106 | (deprecated_add_core_fns): Remove. | |
8107 | (default_core_sniffer): Remove. | |
8108 | (sniff_core_bfd): Remove. | |
8109 | (default_check_format): Remove. | |
8110 | (gdb_check_format): Remove. | |
8111 | (core_target_open): Update. | |
8112 | (core_target::get_core_register_section): Update. | |
8113 | (get_core_registers_cb): Update. | |
8114 | (core_target::fetch_registers): Update. | |
8115 | * gdbcore.h (struct core_fns): Remove. | |
8116 | (deprecated_add_core_fns): Remove. | |
8117 | (default_core_sniffer): Remove. | |
8118 | (default_check_format): Remove. | |
8119 | ||
227031b2 TT |
8120 | 2020-03-12 Tom Tromey <tom@tromey.com> |
8121 | ||
8122 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a | |
8123 | CORE_ADDR. | |
8124 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. | |
8125 | ||
53807e9f TT |
8126 | 2020-03-12 Tom Tromey <tom@tromey.com> |
8127 | ||
8128 | * remote.c (remote_target::download_tracepoint) | |
8129 | (remote_target::enable_tracepoint) | |
8130 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. | |
8131 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not | |
8132 | sprintf_vma. | |
8133 | ||
64f25102 TT |
8134 | 2020-03-12 Tom Tromey <tom@tromey.com> |
8135 | ||
8136 | * symfile-mem.c: Update CORE_ADDR size assert. | |
8137 | ||
272cd5a3 SM |
8138 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
8139 | ||
8140 | * selftest.m4: Move to gdbsupport/. | |
8141 | * acinclude.m4: Update path to selftest.m4. | |
8142 | ||
74cd3f9d SM |
8143 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
8144 | ||
8145 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... | |
8146 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, | |
8147 | gdbarch-selfselftests.c and selftest-arch.c. | |
8148 | (SUBDIR_UNITTESTS_OBS): Rename to... | |
8149 | (SELFTESTS_OBS): ... this. | |
8150 | (COMMON_SFILES): Remove disasm-selftests.c and | |
8151 | gdbarch-selftests.c. | |
8152 | * configure.ac: Don't add selftest-arch.{c,o} to | |
8153 | CONFIG_{SRCS,OBS}. | |
8154 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST | |
8155 | preprocessor conditions. | |
8156 | ||
db6878ac SM |
8157 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
8158 | ||
8159 | * configure.ac: Don't source bfd/development.sh. | |
8160 | * selftest.m4: Modify comment. | |
8161 | * configure: Re-generate. | |
8162 | ||
4d696a5c SM |
8163 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
8164 | ||
8165 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is | |
8166 | not "true" or "false". | |
8167 | * configure: Re-generate. | |
8168 | ||
8dd8e1c7 CB |
8169 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
8170 | ||
8171 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. | |
8172 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and | |
8173 | renamed to arm_nbsd_supply_gregset. | |
8174 | (fetch_register): Update to call arm_nbsd_supply_gregset. | |
8175 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. | |
8176 | (arm_netbsd_nat_target::fetch_registers): Update. | |
8177 | (fetch_elfcore_registers): Removed. | |
8178 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. | |
8179 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. | |
8180 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to | |
8181 | not require NetBSD system headers. | |
8182 | (arm_nbsd_regset): New struct. | |
8183 | (arm_nbsd_iterate_over_regset_sections): New function. | |
8184 | (arm_netbsd_init_abi_common): Updated to call | |
8185 | set_gdbarch_iterate_over_regset_sections. | |
8186 | * arm-nbsd-tdep.h: New file. | |
8187 | ||
dd69bf7a KB |
8188 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> |
8189 | ||
8190 | * symtab.c (find_pc_sect_line): Add check which prevents infinite | |
8191 | recursion. | |
8192 | ||
a0761e34 SM |
8193 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
8194 | ||
8195 | * configure: Re-generate. | |
8196 | ||
e7a82140 TT |
8197 | 2020-03-11 Tom Tromey <tromey@adacore.com> |
8198 | ||
8199 | * ada-typeprint.c (print_choices): Fix comment. | |
8200 | ||
dcc050c8 AB |
8201 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
8202 | ||
8203 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing | |
8204 | previous item in the list, when the list has no items. | |
8205 | ||
1c33af77 TV |
8206 | 2020-03-11 Tom de Vries <tdevries@suse.de> |
8207 | ||
8208 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in | |
8209 | PROP_LOCLIST handling code. | |
8210 | ||
8c95582d AB |
8211 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> |
8212 | ||
8213 | * buildsym-legacy.c (record_line): Pass extra parameter to | |
8214 | record_line. | |
8215 | * buildsym.c (buildsym_compunit::record_line): Take an extra | |
8216 | parameter, reduce duplication in the line table, and record the | |
8217 | is_stmt flag in the line table. | |
8218 | * buildsym.h (buildsym_compunit::record_line): Add extra | |
8219 | parameter. | |
8220 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore | |
8221 | non-statement lines. | |
8222 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass | |
8223 | this to the symtab builder. | |
8224 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. | |
8225 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag | |
8226 | through to dwarf_record_line_1. | |
8227 | * infrun.c (process_event_stop_test): When stepping, don't stop at | |
8228 | a non-statement instruction, and only refresh the step info when | |
8229 | we land in the middle of a line's range. Also add an extra | |
8230 | comment. | |
8231 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt | |
8232 | field. | |
8233 | * record-btrace.c (btrace_find_line_range): Only record lines | |
8234 | marked as is-statement. | |
8235 | * stack.c (frame_show_address): Show the frame address if we are | |
8236 | in a non-statement sal. | |
8237 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. | |
8238 | (maintenance_print_one_line_table): Print a header for the is_stmt | |
8239 | column, and include is_stmt information in the output. | |
8240 | * symtab.c (find_pc_sect_line): Find lines marked as statements in | |
8241 | preference to non-statements. | |
8242 | (find_pcs_for_symtab_line): Prefer is-statement entries. | |
8243 | (find_line_common): Likewise. | |
8244 | * symtab.h (struct linetable_entry): Add is_stmt field. | |
8245 | (struct symtab_and_line): Likewise. | |
8246 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when | |
8247 | arranging the line table. | |
8248 | ||
e4003a34 TV |
8249 | 2020-03-07 Tom de Vries <tdevries@suse.de> |
8250 | ||
8251 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder | |
8252 | DIE. | |
8253 | ||
e8932576 TT |
8254 | 2020-03-07 Tom Tromey <tom@tromey.com> |
8255 | ||
8256 | * valops.c (value_literal_complex): Remove obsolete comment. | |
8257 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete | |
8258 | comment. | |
8259 | ||
29734269 SM |
8260 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
8261 | ||
8262 | * infrun.h: Forward-declare thread_info. | |
8263 | (set_step_info): Add thread_info parameter, add doc. | |
8264 | * infrun.c (set_step_info): Add thread_info parameter, move doc | |
8265 | to header. | |
8266 | * infrun.c (process_event_stop_test): Pass thread to | |
8267 | set_step_info call. | |
8268 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to | |
8269 | set_step_info. | |
8270 | (prepare_one_step): Add thread_info parameter, pass it to | |
8271 | set_step_frame and prepare_one_step (recursive) call. | |
8272 | (step_1): Pass thread to prepare_one_step call. | |
8273 | (step_command_fsm::should_stop): Pass thread to | |
8274 | prepare_one_step. | |
8275 | (until_next_fsm): Pass thread to set_step_frame call. | |
8276 | (finish_command): Pass thread to set_step_info call. | |
8277 | ||
b7d64b29 HD |
8278 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> |
8279 | ||
8280 | * windows-tdep.c (windows_solib_create_inferior_hook): | |
8281 | Check if inferior is running. | |
8282 | ||
09f2921c TV |
8283 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
8284 | ||
8285 | * NEWS: Fix "the the". | |
8286 | * ctfread.c: Same. | |
8287 | ||
fd760e79 TV |
8288 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
8289 | ||
8290 | * psymtab.c (psymtab_to_symtab): Don't print "done.". | |
8291 | ||
20ea4a60 AB |
8292 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
8293 | ||
8294 | * .dir-locals.el: Add a comment referencing the other copies of | |
8295 | this file. | |
8296 | ||
0afbabf0 JB |
8297 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> |
8298 | ||
8299 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for | |
8300 | psargs. | |
8301 | ||
842806cb TBA |
8302 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8303 | ||
8304 | * .gitattributes: New file. | |
8305 | ||
be1e3d3e TT |
8306 | 2020-03-04 Tom Tromey <tom@tromey.com> |
8307 | ||
8308 | * symmisc.c (print_symbol_bcache_statistics) | |
8309 | (print_objfile_statistics): Update. | |
8310 | * symfile.c (allocate_symtab): Use intern. | |
8311 | * psymtab.c (partial_symtab::partial_symtab): Use intern. | |
8312 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
8313 | macro_cache>: Remove. | |
8314 | <string_cache>: New member. | |
8315 | (struct objfile) <intern>: New methods. | |
8316 | * elfread.c (elf_symtab_read): Use intern. | |
8317 | * dwarf2/read.c (fixup_go_packaging): Intern package name. | |
8318 | (dwarf2_compute_name, dwarf2_physname) | |
8319 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern | |
8320 | names. | |
8321 | (guess_partial_die_structure_name): Update. | |
8322 | (partial_die_info::fixup): Intern name. | |
8323 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern | |
8324 | name. | |
8325 | (dwarf2_name): Intern name. Update. | |
8326 | * buildsym.c (buildsym_compunit::get_macro_table): Use | |
8327 | string_cache. | |
8328 | ||
4e7625fd TT |
8329 | 2020-03-04 Tom Tromey <tom@tromey.com> |
8330 | ||
8331 | * jit.c (bfd_open_from_target_memory): Make "target" const. | |
8332 | * corefile.c (gnutarget): Now const. | |
8333 | * gdbcore.h (gnutarget): Now const. | |
8334 | ||
46f9f931 HD |
8335 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> |
8336 | ||
8337 | * NEWS: Mention support for WOW64 processes. | |
8338 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. | |
8339 | (amd64_windows_segment_register_p): Remove static. | |
8340 | (_initialize_amd64_windows_nat): Update. | |
8341 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. | |
8342 | * i386-windows-nat.c (context_offset): Update. | |
8343 | (i386_mappings): Rename and remove static. | |
8344 | (i386_windows_segment_register_p): Remove static. | |
8345 | (_initialize_i386_windows_nat): Update. | |
8346 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. | |
8347 | (STATUS_WX86_SINGLE_STEP): New macro. | |
8348 | (EnumProcessModulesEx): New macro. | |
8349 | (Wow64SuspendThread): New macro. | |
8350 | (Wow64GetThreadContext): New macro. | |
8351 | (Wow64SetThreadContext): New macro. | |
8352 | (Wow64GetThreadSelectorEntry): New macro. | |
8353 | (windows_set_context_register_offsets): Add static. | |
8354 | (windows_set_segment_register_p): Likewise. | |
8355 | (windows_add_thread): Adapt for WOW64 processes. | |
8356 | (windows_fetch_one_register): Likewise. | |
8357 | (windows_nat_target::fetch_registers): Likewise. | |
8358 | (windows_store_one_register): Likewise. | |
8359 | (display_selector): Likewise. | |
8360 | (display_selectors): Likewise. | |
8361 | (handle_exception): Likewise. | |
8362 | (windows_continue): Likewise. | |
8363 | (windows_nat_target::resume): Likewise. | |
8364 | (windows_add_all_dlls): Likewise. | |
8365 | (do_initial_windows_stuff): Likewise. | |
8366 | (windows_nat_target::attach): Likewise. | |
8367 | (windows_get_exec_module_filename): Likewise. | |
8368 | (windows_nat_target::create_inferior): Likewise. | |
8369 | (windows_xfer_siginfo): Likewise. | |
8370 | (_initialize_loadable): Initialize Wow64SuspendThread, | |
8371 | Wow64GetThreadContext, Wow64SetThreadContext, | |
8372 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. | |
8373 | * windows-nat.h (windows_set_context_register_offsets): | |
8374 | Remove declaration. | |
8375 | (windows_set_segment_register_p): Likewise. | |
8376 | (i386_windows_segment_register_p): Add declaration. | |
8377 | (amd64_windows_segment_register_p): Likewise. | |
8378 | ||
440cf44e LM |
8379 | 2020-03-04 Luis Machado <luis.machado@linaro.org> |
8380 | ||
8381 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions | |
8382 | in "info registers" for AArch64/ARM. | |
8383 | ||
8384 | The change caused "info registers" to not print GPR's. | |
8385 | ||
8386 | gdb/ChangeLog: | |
8387 | ||
8388 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
8389 | ||
8390 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
8391 | when reg->group is empty and reggroup is not. | |
8392 | ||
1009d92f TT |
8393 | 2020-03-03 Tom Tromey <tromey@adacore.com> |
8394 | ||
8395 | * dwarf2/frame.c (struct dwarf2_frame_cache) | |
8396 | <checked_tailcall_bottom, entry_cfa_sp_offset, | |
8397 | entry_cfa_sp_offset_p>: Remove members. | |
8398 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. | |
8399 | (dwarf2_frame_prev_register): Don't call | |
8400 | dwarf2_tailcall_sniffer_first. | |
8401 | (dwarf2_append_unwinders): Don't append tailcall unwinder. | |
8402 | * frame-unwind.c (add_unwinder): New fuction. | |
8403 | (frame_unwind_init): Use it. Add tailcall unwinder. | |
8404 | ||
5e5d66b6 AB |
8405 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> |
8406 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
8407 | ||
8408 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero | |
8409 | value should be printed as true. | |
8410 | ||
584cf46d HD |
8411 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> |
8412 | ||
8413 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. | |
8414 | (windows_init_abi): Set and use windows_so_ops. | |
8415 | ||
7b973adc SDJ |
8416 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> |
8417 | ||
8418 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR | |
8419 | when verifying if dealing with a convenience variable. | |
8420 | ||
bb7b70ab LM |
8421 | 2020-03-03 Luis Machado <luis.machado@linaro.org> |
8422 | ||
8423 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. | |
8424 | ||
9822cb57 SM |
8425 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
8426 | ||
8427 | * infrun.c (gdbarch_supports_displaced_stepping): New. | |
8428 | (use_displaced_stepping): Break up conditions in smaller pieces. | |
8429 | Use gdbarch_supports_displaced_stepping. | |
8430 | (displaced_step_prepare_throw): Use | |
8431 | gdbarch_supports_displaced_stepping. | |
8432 | ||
63e163f2 AB |
8433 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8434 | ||
8435 | * NEWS: Mention new behaviour of the history filename. | |
8436 | * top.c (write_history_p): Add comment. | |
8437 | (show_write_history_p): Add header comment, give a different | |
8438 | message when history writing is on, but the history filename is | |
8439 | empty. | |
8440 | (history_filename): Add comment. | |
8441 | (history_filename_empty): New function. | |
8442 | (show_history_filename): Add header comment, give a different | |
8443 | message when the filename is empty. | |
8444 | (init_history): Compare history_filename against nullptr, and only | |
8445 | read history if the filename is not empty. | |
8446 | (set_history_filename): Add header comment, and only make | |
8447 | non-empty filenames absolute. | |
8448 | (init_main): Make the filename argument to 'set history filename' | |
8449 | optional. | |
8450 | ||
81b86b97 CB |
8451 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> |
8452 | ||
8453 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... | |
8454 | (arm_supply_vfpregset): ...this, and update to use VFP registers. | |
8455 | (fetch_fp_register): Update. | |
8456 | (fetch_fp_regs): Update. | |
8457 | (store_fp_register): Update. | |
8458 | (store_fp_regs): Update. | |
8459 | (arm_netbsd_nat_target::read_description): New function. | |
8460 | (fetch_elfcore_registers): Update. | |
8461 | ||
24ed6739 AB |
8462 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8463 | ||
8464 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the | |
8465 | general_thread if the stop reply is missing a thread-id. | |
8466 | (remote_target::process_stop_reply): Use the first non-exited | |
8467 | thread if the target didn't pass a thread-id. | |
8468 | * infrun.c (do_target_wait): Move call to | |
8469 | switch_to_inferior_no_thread to .... | |
8470 | (do_target_wait_1): ... here. | |
8471 | ||
a84bb2a0 JT |
8472 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> |
8473 | ||
8474 | * debuginfod-support.c: Include defs.h first. | |
8475 | ||
658dadf0 TV |
8476 | 2020-02-28 Tom de Vries <tdevries@suse.de> |
8477 | ||
8478 | * symfile.c (set_initial_language): Use default language for lookup. | |
8479 | ||
4ebe4877 SM |
8480 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> |
8481 | ||
8482 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove | |
8483 | reader variable, pass `this` to read_cutu_die_from_dwo. | |
8484 | ||
e5da1139 AM |
8485 | 2020-02-27 Aaron Merey <amerey@redhat.com> |
8486 | ||
8487 | * source.c (open_source_file): Check for nullptr when computing | |
8488 | srcpath. | |
8489 | ||
317f7127 TT |
8490 | 2020-02-27 Tom Tromey <tromey@adacore.com> |
8491 | ||
8492 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a | |
8493 | member. | |
8494 | (dwarf2_add_field): Don't update nfields. | |
8495 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. | |
8496 | ||
3104d9ee AB |
8497 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
8498 | ||
8499 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not | |
8500 | abs. | |
8501 | ||
b83470bf TT |
8502 | 2020-02-26 Tom Tromey <tom@tromey.com> |
8503 | ||
8504 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. | |
8505 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. | |
8506 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) | |
8507 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for | |
8508 | per_cu_data. | |
8509 | ||
edfe0a0c TT |
8510 | 2020-02-26 Tom Tromey <tom@tromey.com> |
8511 | ||
8512 | * dwarf2/index-write.c (psym_index_map): Change type. | |
8513 | (add_address_entry_worker, write_one_signatured_type) | |
8514 | (recursively_count_psymbols, recursively_write_psymbols) | |
8515 | (class debug_names, psyms_seen_size, write_gdbindex) | |
8516 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. | |
8517 | ||
0d79cdc4 AM |
8518 | 2020-02-26 Aaron Merey <amerey@redhat.com> |
8519 | ||
8520 | * Makefile.in: Handle optional debuginfod support. | |
8521 | * NEWS: Update. | |
8522 | * README: Add --with-debuginfod summary. | |
8523 | * config.in: Regenerate. | |
8524 | * configure: Regenerate. | |
8525 | * configure.ac: Handle optional debuginfod support. | |
8526 | * debuginfod-support.c: debuginfod helper functions. | |
8527 | * debuginfod-support.h: Ditto. | |
8528 | * doc/gdb.texinfo: Add --with-debuginfod to configure options | |
8529 | summary. | |
8530 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers | |
8531 | when a dwz file cannot be found. | |
8532 | * elfread.c (elf_symfile_read): Query debuginfod servers when a | |
8533 | debuginfo file cannot be found. | |
8534 | * source.c (open_source_file): Query debuginfod servers when a | |
8535 | source file cannot be found. | |
8536 | * top.c (print_gdb_configuration): Include | |
8537 | --{with,without}-debuginfod in the output. | |
8538 | ||
b65ce565 JG |
8539 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
8540 | ||
8541 | * thread.c (thr_try_catch_cmd): Print thread name. | |
8542 | ||
d4c9a4f8 SM |
8543 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> |
8544 | ||
8545 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, | |
8546 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
8547 | dwarf2_fetch_die_type_sect_off): Move to... | |
8548 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
8549 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
8550 | dwarf2_fetch_die_type_sect_off): ... here. | |
8551 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
8552 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
8553 | dwarf2_fetch_die_type_sect_off): Move doc to header file. | |
8554 | ||
0dce4280 TV |
8555 | 2020-02-26 Tom de Vries <tdevries@suse.de> |
8556 | ||
8557 | PR gdb/25603 | |
8558 | * symfile.c (set_initial_language): Exit-early if | |
8559 | language_mode == language_mode_manual. | |
8560 | ||
450a1bfc SM |
8561 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
8562 | ||
8563 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... | |
8564 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. | |
8565 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. | |
8566 | ||
9e80cfa1 AB |
8567 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
8568 | ||
8569 | * gdbtypes.c (create_array_type_with_stride): Handle negative | |
8570 | array strides. | |
8571 | * valarith.c (value_subscripted_rvalue): Likewise. | |
8572 | ||
09624f1f LM |
8573 | 2020-02-25 Luis Machado <luis.machado@linaro.org> |
8574 | ||
8575 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. | |
8576 | ||
8cb5117c SM |
8577 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
8578 | ||
8579 | * loc.h (dwarf2_get_die_type): Move to... | |
8580 | * read.h (dwarf2_get_die_type): ... here. | |
8581 | * read.c (dwarf2_get_die_type): Move doc to header. | |
8582 | ||
c325c44e JB |
8583 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> |
8584 | ||
8585 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and | |
8586 | 'gnulib/Makefile.in' to the list. | |
8587 | ||
4ac93832 TT |
8588 | 2020-02-24 Tom Tromey <tom@tromey.com> |
8589 | ||
8590 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: | |
8591 | Remove. | |
8592 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use | |
8593 | XOBNEWVEC. | |
8594 | ||
197400e8 TT |
8595 | 2020-02-24 Tom Tromey <tom@tromey.com> |
8596 | ||
8597 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: | |
8598 | New method. | |
8599 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. | |
8600 | (dw2_do_instantiate_symtab, dw2_get_file_names) | |
8601 | (build_type_psymtab_dependencies, load_full_type_unit): Update. | |
8602 | ||
76935768 TT |
8603 | 2020-02-24 Tom Tromey <tom@tromey.com> |
8604 | ||
8605 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use | |
8606 | make_scoped_restore. | |
8607 | (dwarf2_psymtab::read_symtab): Don't clear | |
8608 | reading_partial_symbols. | |
8609 | ||
a88ef40d TV |
8610 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
8611 | ||
8612 | PR gdb/25592 | |
8613 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. | |
8614 | ||
c9af6521 TV |
8615 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
8616 | ||
8617 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for | |
8618 | commands layout next/prev/regs. | |
8619 | ||
5707a07a TT |
8620 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8621 | ||
8622 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
8623 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
8624 | ||
3b0fb49e TT |
8625 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8626 | ||
8627 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
8628 | ||
283be8bf TT |
8629 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8630 | ||
8631 | * tui/tui-win.c (_initialize_tui_win): Add usage text. | |
8632 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. | |
8633 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. | |
8634 | * tui/tui.c (_initialize_tui): Add usage text. | |
8635 | ||
ca793b96 TT |
8636 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8637 | ||
8638 | * tui/tui-win.c (tui_set_focus_command) | |
8639 | (tui_set_win_height_command): Use error_no_arg. | |
8640 | (_initialize_tui_win): Update help text. | |
8641 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. | |
8642 | ||
432b5c40 TT |
8643 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8644 | ||
8645 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. | |
8646 | * tui/tui-disasm.h (struct tui_disasm_window) | |
8647 | <display_start_addr>: Declare. | |
8648 | * tui/tui-source.h (struct tui_source_window) | |
8649 | <display_start_addr>: Declare. | |
8650 | * tui/tui-winsource.h (struct tui_source_window_base) | |
8651 | <show_source_line, display_start_addr>: New methods. | |
8652 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: | |
8653 | Rename and move to protected section. | |
8654 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) | |
8655 | (tui_source_window_base::do_erase_source_content): Update. | |
8656 | (tui_source_window_base::show_source_line): Now a method. | |
8657 | (tui_source_window_base::show_source_content) | |
8658 | (tui_source_window_base::tui_source_window_base) | |
8659 | (tui_source_window_base::rerender) | |
8660 | (tui_source_window_base::refill) | |
8661 | (tui_source_window_base::do_scroll_horizontal) | |
8662 | (tui_source_window_base::set_is_exec_point_at) | |
8663 | (tui_source_window_base::update_breakpoint_info) | |
8664 | (tui_source_window_base::update_exec_info): Update. | |
8665 | * tui/tui-source.c (tui_source_window::set_contents) | |
8666 | (tui_source_window::showing_source_p) | |
8667 | (tui_source_window::do_scroll_vertical) | |
8668 | (tui_source_window::location_matches_p) | |
8669 | (tui_source_window::line_is_displayed): Update. | |
8670 | (tui_source_window::display_start_addr): New method. | |
8671 | * tui/tui-disasm.c (tui_disasm_window::set_contents) | |
8672 | (tui_disasm_window::do_scroll_vertical) | |
8673 | (tui_disasm_window::location_matches_p): Update. | |
8674 | (tui_disasm_window::display_start_addr): New method. | |
8675 | ||
01b1af32 TT |
8676 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8677 | ||
8678 | * NEWS: Add entry for gdb.register_window_type. | |
8679 | * tui/tui-layout.h (window_factory): New typedef. | |
8680 | (tui_register_window): Declare. | |
8681 | * tui/tui-layout.c (saved_tui_windows): New global. | |
8682 | (tui_apply_current_layout): Use it. | |
8683 | (tui_register_window): New function. | |
8684 | * python/python.c (do_start_initialization): Call | |
8685 | gdbpy_initialize_tui. | |
8686 | (python_GdbMethods): Add "register_window_type" function. | |
8687 | * python/python-internal.h (gdbpy_register_tui_window) | |
8688 | (gdbpy_initialize_tui): Declare. | |
8689 | * python/py-tui.c: New file. | |
8690 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. | |
8691 | ||
fc96d20b TT |
8692 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8693 | ||
8694 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. | |
8695 | ||
935c78c0 TT |
8696 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8697 | ||
8698 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. | |
8699 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. | |
8700 | * tui/tui-data.c (tui_set_win_with_focus): Remove. | |
8701 | (tui_set_win_focus_to): Move from tui-win.c. | |
8702 | ||
0240c8f1 TT |
8703 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8704 | ||
8705 | * tui/tui-layout.c (make_standard_window, get_locator_window): New | |
8706 | functions. | |
8707 | (known_window_types): New global. | |
8708 | (tui_get_window_by_name): Reimplement. | |
8709 | (initialize_known_windows): New function. | |
8710 | (validate_window_name): Rewrite. | |
8711 | (_initialize_tui_layout): Call initialize_known_windows. | |
8712 | ||
fdb01f0c TT |
8713 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8714 | ||
8715 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: | |
8716 | Remove constants. | |
8717 | * tui/tui-winsource.h (struct tui_source_window_base) | |
8718 | <tui_source_window_base>: Remove parameter. | |
8719 | * tui/tui-winsource.c | |
8720 | (tui_source_window_base::tui_source_window_base): Remove | |
8721 | parameter. | |
8722 | (tui_source_window_base::refill): Update. | |
8723 | * tui/tui-stack.h (struct tui_locator_window) | |
8724 | <tui_locator_window>: Update. | |
8725 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: | |
8726 | Default the constructor. | |
8727 | * tui/tui-regs.h (struct tui_data_item_window) | |
8728 | <tui_data_item_window>: Default the constructor. | |
8729 | (struct tui_data_window) <tui_data_window>: Likewise. | |
8730 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: | |
8731 | Default the constructor. | |
8732 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: | |
8733 | Default the constructor. | |
8734 | <type>: Remove. | |
8735 | (struct tui_win_info) <tui_win_info>: Default the constructor. | |
8736 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. | |
8737 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: | |
8738 | Default the constructor. | |
8739 | ||
865a5aec TT |
8740 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8741 | ||
8742 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. | |
8743 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. | |
8744 | * tui/tui-win.c (tui_resize_all): Don't call | |
8745 | tui_delete_invisible_windows. | |
8746 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when | |
8747 | done. | |
8748 | (tui_set_layout): Update. | |
8749 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. | |
8750 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. | |
8751 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. | |
8752 | ||
e098d18c TT |
8753 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8754 | ||
8755 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity | |
8756 | correctly. | |
8757 | ||
eb9c8874 TT |
8758 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8759 | ||
8760 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. | |
8761 | ||
7eed1a8e TT |
8762 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8763 | ||
8764 | * tui/tui-winsource.h (struct tui_source_window_iterator) | |
8765 | <inner_iterator>: New etytypedef. | |
8766 | <tui_source_window_iterator>: Take "end" parameter. | |
8767 | <tui_source_window_iterator>: Take iterator. | |
8768 | <operator*, advance>: Update. | |
8769 | <m_iter>: Change type. | |
8770 | <m_end>: New field. | |
8771 | (struct tui_source_windows) <begin, end>: Update. | |
8772 | * tui/tui-layout.c (tui_windows): New global. | |
8773 | (tui_apply_current_layout): Clear tui_windows. | |
8774 | (tui_layout_window::apply): Update tui_windows. | |
8775 | * tui/tui-data.h (tui_windows): Declare. | |
8776 | (all_tui_windows): Now inline function. | |
8777 | (class tui_window_iterator, struct all_tui_windows): Remove. | |
8778 | ||
7c043ba6 TT |
8779 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8780 | ||
8781 | PR tui/17850: | |
8782 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. | |
8783 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add | |
8784 | "height" argument. | |
8785 | (class tui_layout_window) <get_sizes>: Likewise. | |
8786 | (class tui_layout_split) <tui_layout_split>: Add "vertical" | |
8787 | argument. | |
8788 | <get_sizes>: Add "height" argument. | |
8789 | <m_vertical>: New field. | |
8790 | * tui/tui-layout.c (tui_layout_split::clone): Update. | |
8791 | (tui_layout_split::get_sizes): Add "height" argument. | |
8792 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. | |
8793 | (tui_new_layout_command): Parse "-horizontal". | |
8794 | (_initialize_tui_layout): Update help string. | |
8795 | (tui_layout_split::specification): Add "-horizontal" when needed. | |
8796 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" | |
8797 | argument. | |
8798 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: | |
8799 | New methods. | |
8800 | ||
6bc56648 TT |
8801 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8802 | ||
8803 | * tui/tui-layout.h (enum tui_adjust_result): New. | |
8804 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. | |
8805 | (class tui_layout_window) <adjust_size>: Return | |
8806 | tui_adjust_result. Rewrite. | |
8807 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. | |
8808 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. | |
8809 | ||
c22fef7e TT |
8810 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8811 | ||
8812 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change | |
8813 | parameter and return types. | |
8814 | (class tui_layout_base) <specification>: Add "depth". | |
8815 | (class tui_layout_window) <specification>: Add "depth". | |
8816 | (class tui_layout_split) <specification>: Add "depth". | |
8817 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter | |
8818 | and return types. | |
8819 | (tui_new_layout_command): Parse sub-layouts. | |
8820 | (_initialize_tui_layout): Update help string. | |
8821 | (tui_layout_window::specification): Add "depth". | |
8822 | (add_layout_command): Update. | |
8823 | ||
ee325b61 TT |
8824 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8825 | ||
8826 | * NEWS: Add "tui new-layout" item. | |
8827 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. | |
8828 | Add new-layout command to help text. | |
8829 | (validate_window_name): New function. | |
8830 | (tui_new_layout_command): New function. | |
8831 | (_initialize_tui_layout): Register "new-layout". | |
8832 | (tui_layout_window::specification): New method. | |
8833 | (tui_layout_window::specification): New method. | |
8834 | * tui/tui-layout.h (class tui_layout_base) <specification>: New | |
8835 | method. | |
8836 | (class tui_layout_window) <specification>: New method. | |
8837 | (class tui_layout_split) <specification>: New method. | |
8838 | ||
416eb92d TT |
8839 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8840 | ||
8841 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. | |
8842 | * tui/tui-win.c (window_name_completer): Update comment. | |
8843 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: | |
8844 | Declare method. | |
8845 | (class tui_layout_window) <replace_window>: Likewise. | |
8846 | (class tui_layout_split) <replace_window>: Likewise. | |
8847 | (tui_set_layout): Don't declare. | |
8848 | (tui_set_initial_layout): Declare function. | |
8849 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) | |
8850 | (asm_regs_layout): New globals. | |
8851 | (tui_current_layout, show_layout): Remove. | |
8852 | (tui_set_layout, tui_add_win_to_layout): Rewrite. | |
8853 | (find_layout, tui_apply_layout): New function. | |
8854 | (layout_completer): Remove. | |
8855 | (tui_next_layout): Reimplement. | |
8856 | (tui_next_layout_command): New function. | |
8857 | (tui_set_initial_layout, tui_prev_layout_command): New functions. | |
8858 | (tui_regs_layout): Reimplement. | |
8859 | (tui_regs_layout_command): New function. | |
8860 | (extract_display_start_addr): Rewrite. | |
8861 | (next_layout, prev_layout): Remove. | |
8862 | (tui_layout_window::replace_window): New method. | |
8863 | (tui_layout_split::replace_window): New method. | |
8864 | (destroy_layout): New function. | |
8865 | (layout_list): New global. | |
8866 | (add_layout_command): New function. | |
8867 | (initialize_layouts): Update. | |
8868 | (tui_layout_command): New function. | |
8869 | (_initialize_tui_layout): Install "layout" commands. | |
8870 | * tui/tui-data.h (enum tui_layout_type): Remove. | |
8871 | (tui_current_layout): Don't declare. | |
8872 | ||
0dbc2fc7 TT |
8873 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8874 | ||
8875 | * tui/tui-regs.c (tui_reg_layout): Remove. | |
8876 | (tui_reg_command): Use tui_regs_layout. | |
8877 | * tui/tui-layout.h (tui_reg_command): Declare. | |
8878 | * tui/tui-layout.c (tui_reg_command): New function. | |
8879 | ||
5afe342e TT |
8880 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8881 | ||
8882 | * tui/tui.c (tui_rl_delete_other_windows): Call | |
8883 | tui_remove_some_windows. | |
8884 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: | |
8885 | Declare method. | |
8886 | (class tui_layout_window) <remove_windows>: New method. | |
8887 | (class tui_layout_split) <remove_windows>: Declare. | |
8888 | (tui_remove_some_windows): Declare. | |
8889 | * tui/tui-layout.c (tui_remove_some_windows): New function. | |
8890 | (tui_layout_split::remove_windows): New method. | |
8891 | ||
427326a8 TT |
8892 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8893 | ||
8894 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. | |
8895 | * tui/tui-layout.h (tui_next_layout): Declare. | |
8896 | * tui/tui-layout.c (tui_next_layout): New function. | |
8897 | ||
3fe12b6d TT |
8898 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8899 | ||
8900 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use | |
8901 | correct coordinates. | |
8902 | ||
59b8b5d2 TT |
8903 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8904 | ||
8905 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. | |
8906 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove | |
8907 | DATA_WIN case. | |
8908 | ||
2a3d458b TT |
8909 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8910 | ||
8911 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use | |
8912 | TUI_DISASM_WIN, not tui_win_list. | |
8913 | ||
3f0cbb04 TT |
8914 | 2020-02-22 Tom Tromey <tom@tromey.com> |
8915 | ||
8916 | * valprint.c (generic_val_print_enum_1) | |
8917 | (val_print_type_code_flags): Style member names. | |
8918 | * rust-lang.c (val_print_struct, rust_print_enum) | |
8919 | (rust_print_struct_def, rust_internal_print_type): Style member | |
8920 | names. | |
8921 | * p-valprint.c (pascal_object_print_value_fields): Style member | |
8922 | names. Only call fprintf_symbol_filtered for static members. | |
8923 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. | |
8924 | * f-valprint.c (f_val_print): Style member names. | |
8925 | * f-typeprint.c (f_type_print_base): Style member names. | |
8926 | * cp-valprint.c (cp_print_value_fields): Style member names. Only | |
8927 | call fprintf_symbol_filtered for static members. | |
8928 | (cp_print_class_member): Style member names. | |
8929 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style | |
8930 | member names. | |
8931 | * ada-valprint.c (ada_print_scalar): Style enum names. | |
8932 | (ada_val_print_enum): Likewise. | |
8933 | * ada-typeprint.c (print_enum_type): Style enum names. | |
8934 | ||
d4d947ae TT |
8935 | 2020-02-21 Tom Tromey <tom@tromey.com> |
8936 | ||
8937 | * psympriv.h (struct partial_symtab): Update comment. | |
8938 | ||
e94e944b TT |
8939 | 2020-02-21 Tom Tromey <tromey@adacore.com> |
8940 | ||
8941 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter | |
8942 | type is CORE_ADDR. | |
8943 | ||
1eb73179 TV |
8944 | 2020-02-21 Tom de Vries <tdevries@suse.de> |
8945 | ||
8946 | PR gdb/25534 | |
8947 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency | |
8948 | if dependencies[i]->user != NULL. | |
8949 | ||
4f180d53 AT |
8950 | 2020-02-21 Ali Tamur <tamur@google.com> |
8951 | ||
8952 | * dwarf2/read.c (dwarf2_name): Add null check. | |
8953 | ||
22b6cd70 TT |
8954 | 2020-02-20 Tom Tromey <tom@tromey.com> |
8955 | ||
8956 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not | |
8957 | ">=", in binary search. | |
8958 | (dwarf2_find_containing_comp_unit): New overload. | |
8959 | (run_test): New self-test. | |
8960 | (_initialize_dwarf2_read): Register new test. | |
8961 | ||
bd0cf5a6 NC |
8962 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
8963 | ||
8964 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. | |
8965 | * riscv-tdep.h: Likewise. | |
8966 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without | |
8967 | rv32-only CSR. | |
8968 | * features/riscv/64bit-csr.xml: Regenerated. | |
8969 | ||
3f702acd SDJ |
8970 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
8971 | Tom Tromey <tom@tromey.com> | |
8972 | ||
8973 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead | |
8974 | of 'fputc_unfiltered'. | |
8975 | (putchar_unfiltered): Call 'fputc_unfiltered'. | |
8976 | (fputc_unfiltered): Call 'fputs_unfiltered'. | |
8977 | ||
d13c7322 AB |
8978 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> |
8979 | ||
8980 | * config.in: Regenerate. | |
8981 | * configure: Regenerate. | |
8982 | * configure.ac: Add --with-python-libdir option. | |
8983 | * main.c: Use WITH_PYTHON_LIBDIR. | |
8984 | ||
869d8950 TT |
8985 | 2020-02-19 Tom Tromey <tom@tromey.com> |
8986 | ||
8987 | * symtab.c (general_symbol_info::compute_and_set_names): Use | |
8988 | obstack_strndup. Simplify call to symbol_set_demangled_name. | |
8989 | ||
298e9637 SM |
8990 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> |
8991 | ||
8992 | * dwarf2/read.c (allocate_signatured_type_table, | |
8993 | allocate_dwo_unit_table, allocate_type_unit_groups_table, | |
8994 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): | |
8995 | Remove objfile parameter, update all callers. | |
8996 | ||
08410482 DE |
8997 | 2020-02-19 Doug Evans <dje@google.com> |
8998 | ||
8999 | PR rust/25535 | |
9000 | * rust-lang.c (rust_print_enum): Apply embedded_offset to | |
9001 | rust_enum_variant calculation. | |
9002 | ||
dfdeeca1 TT |
9003 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
9004 | ||
9005 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. | |
9006 | ||
2ef5453b TT |
9007 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
9008 | ||
9009 | * ada-lang.c (cache_symbol): Use obstack_strdup. | |
9010 | ||
9f1528a1 AB |
9011 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
9012 | ||
9013 | * configure: Regenerate. | |
9014 | ||
d3c22fa8 TT |
9015 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
9016 | ||
9017 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove | |
9018 | NULL check. | |
9019 | ||
bf84f706 MR |
9020 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
9021 | ||
9022 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. | |
9023 | ||
d1c9b20f AB |
9024 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
9025 | ||
9026 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define | |
9027 | if GDBSERVER is not defined. | |
9028 | (riscv_tdesc_cache): Likewise, also store const target_desc. | |
9029 | (STATIC_IN_GDB): Define. | |
9030 | (riscv_create_target_description): Update declaration with | |
9031 | STATIC_IN_GDB. | |
9032 | (riscv_lookup_target_description): New function, only define if | |
9033 | GDBSERVER is not defined. | |
9034 | * arch/riscv.h (riscv_create_target_description): Declare only | |
9035 | when GDBSERVER is defined. | |
9036 | (riscv_lookup_target_description): New declaration when GDBSERVER | |
9037 | is not defined. | |
9038 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... | |
9039 | (riscv_linux_read_features): ...this, and return | |
9040 | riscv_gdbarch_features instead of target_desc. | |
9041 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. | |
9042 | (riscv_linux_read_description): Rename to... | |
9043 | (riscv_linux_read_features): ...this. | |
9044 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
9045 | Update to use riscv_gdbarch_features and | |
9046 | riscv_lookup_target_description. | |
9047 | * riscv-tdep.c (riscv_find_default_target_description): Use | |
9048 | riscv_lookup_target_description instead of | |
9049 | riscv_create_target_description. | |
9050 | ||
373d7ac0 SM |
9051 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
9052 | ||
9053 | * valprint.c (generic_val_print_enum_1): When printing a flag | |
9054 | enum with value 0 and there is no enumerator with value 0, print | |
9055 | just "0" instead of "(unknown: 0x0)". | |
9056 | ||
b29a2df0 SM |
9057 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
9058 | ||
9059 | * valprint.c (generic_val_print_enum_1): Print unknown part of | |
9060 | flag enum in hex. | |
9061 | ||
6740f0cc SM |
9062 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
9063 | ||
9064 | * dwarf2/read.c (update_enumeration_type_from_children): Allow | |
9065 | flag enums to contain duplicate enumerators. | |
9066 | * valprint.c (generic_val_print_enum_1): Update comment. | |
9067 | ||
edd45eb0 SM |
9068 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
9069 | ||
9070 | * dwarf2/read.c: Include "count-one-bits.h". | |
9071 | (update_enumeration_type_from_children): If an enumerator has | |
9072 | multiple bits set, don't treat the enumeration as a "flag enum". | |
9073 | * valprint.c (generic_val_print_enum_1): Assert that enumerators | |
9074 | of flag enums have 0 or 1 bit set. | |
9075 | ||
6d0cf446 BE |
9076 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
9077 | ||
9078 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit | |
9079 | conversion. | |
9080 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
9081 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
9082 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
9083 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
9084 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
9085 | ||
7001c1b7 SM |
9086 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
9087 | ||
9088 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. | |
9089 | ||
fdb61c6c SM |
9090 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
9091 | ||
9092 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use | |
9093 | displaced_step_closure_up. | |
9094 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
9095 | (struct displaced_step_closure_up): | |
9096 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
9097 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
9098 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): | |
9099 | Likewise. | |
9100 | * gdbarch.sh (displaced_step_copy_insn): Likewise. | |
9101 | * gdbarch.c, gdbarch.h: Re-generate. | |
9102 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use | |
9103 | displaced_step_closure_up. | |
9104 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
9105 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
9106 | * infrun.h (displaced_step_closure_up): New type alias. | |
9107 | (struct displaced_step_inferior_state) <step_closure>: Change | |
9108 | type to displaced_step_closure_up. | |
9109 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use | |
9110 | displaced_step_closure_up. | |
9111 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
9112 | ||
a4a38eb4 TT |
9113 | 2020-02-14 Tom Tromey <tom@tromey.com> |
9114 | ||
9115 | * minidebug.c (gnu_debug_key): New global. | |
9116 | (find_separate_debug_file_in_section): Use it. | |
9117 | ||
e8217e61 SM |
9118 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
9119 | ||
9120 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an | |
9121 | std::unique_ptr. | |
9122 | * gdbarch.c: Re-generate. | |
9123 | * gdbarch.h: Re-generate. | |
9124 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr | |
9125 | change. | |
9126 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return | |
9127 | type to std::unique_ptr. | |
9128 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
9129 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
9130 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
9131 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
9132 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. | |
9133 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
9134 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
9135 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
9136 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
9137 | ||
d8d83535 SM |
9138 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
9139 | ||
9140 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to | |
9141 | std::unique_ptr. | |
9142 | (displaced_step_clear): Rename to... | |
9143 | (displaced_step_reset): ... this. Just call displaced->reset (). | |
9144 | (displaced_step_clear_cleanup): Rename to... | |
9145 | (displaced_step_reset_cleanup): ... this. | |
9146 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. | |
9147 | (displaced_step_fixup): Likewise. | |
9148 | (resume_1): Likewise. | |
9149 | (handle_inferior_event): Restore child's memory before calling | |
9150 | displaced_step_fixup on the parent. | |
9151 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust | |
9152 | to std::unique_ptr. | |
9153 | <step_closure>: Change type to std::unique_ptr. | |
9154 | ||
5f661e03 SM |
9155 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
9156 | ||
9157 | * arm-tdep.c: Include count-one-bits.h. | |
9158 | (cleanup_block_store_pc): Use count_one_bits. | |
9159 | (cleanup_block_load_pc): Use count_one_bits. | |
9160 | (arm_copy_block_xfer): Use count_one_bits. | |
9161 | (thumb2_copy_block_xfer): Use count_one_bits. | |
9162 | (thumb_copy_pop_pc_16bit): Use count_one_bits. | |
9163 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. | |
9164 | (thumb_get_next_pcs_raw): Use count_one_bits. | |
9165 | (arm_get_next_pcs_raw): Use count_one_bits_l. | |
9166 | * arch/arm.c (bitcount): Remove. | |
9167 | * arch/arm.h (bitcount): Remove. | |
9168 | ||
8084e579 TT |
9169 | 2020-02-14 Tom Tromey <tromey@adacore.com> |
9170 | ||
9171 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): | |
9172 | Update. | |
9173 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. | |
9174 | * dwarf2/loc.c (call_site_find_chain_1): Return | |
9175 | unique_xmalloc_ptr. | |
9176 | (call_site_find_chain): Likewise. | |
9177 | ||
258bf0ee RB |
9178 | 2020-02-14 Richard Biener <rguenther@suse.de> |
9179 | ||
9180 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE | |
9181 | on expression with division operators. | |
9182 | ||
f98a8458 AKS |
9183 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
9184 | ||
9185 | * MAINTAINERS (Write After Approval): Adding myself. | |
9186 | ||
d1437c0e TT |
9187 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9188 | ||
9189 | * event-loop.c (event_data, gdb_event, event_handler_func): | |
9190 | Remove. | |
9191 | ||
3d4560f7 TT |
9192 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9193 | ||
9194 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. | |
9195 | (dwarf2_frame_objfile_data): Add comment. | |
9196 | (find_comp_unit, set_comp_unit): New functions. | |
9197 | (dwarf2_frame_find_fde): Use find_comp_unit. | |
9198 | (dwarf2_build_frame_info): Use set_comp_unit. | |
9199 | ||
21982304 TT |
9200 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9201 | ||
9202 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. | |
9203 | (comp_unit): Don't initialize objfile. | |
9204 | (execute_cfa_program): Add text_offset parameter. | |
9205 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) | |
9206 | (dwarf2_frame_cache): Update. | |
9207 | (dwarf2_build_frame_info): Don't set "objfile" member. | |
9208 | ||
4debb237 TT |
9209 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9210 | ||
9211 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. | |
9212 | (decode_frame_entry): Likewise. | |
9213 | (dwarf2_build_frame_info): Update. | |
9214 | ||
0d404d44 TT |
9215 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9216 | ||
9217 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. | |
9218 | (decode_frame_entry_1): Use the comp_unit obstack. | |
9219 | ||
a7a3ae5c TT |
9220 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9221 | ||
9222 | * dwarf2/frame.c (struct comp_unit): Add initializers and | |
9223 | constructor. | |
9224 | (dwarf2_frame_objfile_data): Store a comp_unit. | |
9225 | (dwarf2_frame_find_fde): Update. | |
9226 | (dwarf2_build_frame_info): Use "new". | |
9227 | ||
a9d65418 TT |
9228 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9229 | ||
9230 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. | |
9231 | (dwarf2_fde_table): Typedef for std::vector. | |
9232 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. | |
9233 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) | |
9234 | (decode_frame_entry): Update. | |
9235 | (dwarf2_build_frame_info): Use "new". | |
9236 | ||
7559c217 CB |
9237 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
9238 | ||
9239 | * arm-tdep.c (arm_gdbarch_init): Update. | |
9240 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, | |
9241 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, | |
9242 | have_neon, is_m>: Change to bool. | |
9243 | ||
aeefc73c CB |
9244 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
9245 | ||
9246 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. | |
9247 | ||
d27b8e5f TT |
9248 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9249 | ||
9250 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. | |
9251 | ||
cd5900f3 HD |
9252 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
9253 | ||
9254 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. | |
9255 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. | |
9256 | ||
f056b22b TT |
9257 | 2020-02-11 Tom Tromey <tom@tromey.com> |
9258 | ||
9259 | * psymtab.h: Update comment. | |
9260 | ||
f92ff6b5 TT |
9261 | 2020-02-11 Tom Tromey <tom@tromey.com> |
9262 | ||
9263 | * gdb_obstack.h (struct auto_obstack): Use | |
9264 | DISABLE_COPY_AND_ASSIGN. | |
9265 | ||
3fd6912b TT |
9266 | 2020-02-11 Tom Tromey <tom@tromey.com> |
9267 | ||
9268 | * dwarf2/frame.h (struct objfile): Don't forward declare. | |
9269 | ||
69ed9b74 CB |
9270 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
9271 | ||
9272 | * cris-tdep.c (cris_supply_gregset): Change signature to match | |
9273 | what struct regset expects. | |
9274 | (cris_regset): New struct. | |
9275 | (fetch_core_registers): Remove. | |
9276 | (cris_iterate_over_regset_sections): New function. | |
9277 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. | |
9278 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. | |
9279 | ||
bda874f6 CB |
9280 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
9281 | ||
9282 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 | |
9283 | registers. | |
9284 | ||
754e1564 CB |
9285 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
9286 | ||
9287 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. | |
9288 | ||
8ddd8e0e SM |
9289 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
9290 | ||
9291 | * configure: Re-generate. | |
9292 | ||
898e7f60 SM |
9293 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
9294 | ||
9295 | * configure: Re-generate. | |
9296 | ||
58df732b SM |
9297 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
9298 | ||
9299 | * acinclude: Update warning.m4 path. | |
9300 | * warning.m4: Move to gdbsupport. | |
9301 | ||
da5bd37e TT |
9302 | 2020-02-11 Tom Tromey <tromey@adacore.com> |
9303 | ||
9304 | * remote.c (remote_console_output): Update. | |
9305 | * printcmd.c (printf_command): Update. | |
9306 | * event-loop.c (gdb_wait_for_event): Update. | |
9307 | * linux-nat.c (sigchld_handler): Update. | |
9308 | * remote-sim.c (gdb_os_write_stdout): Update. | |
9309 | (gdb_os_flush_stdout): Update. | |
9310 | (gdb_os_flush_stderr): Update. | |
9311 | (gdb_os_write_stderr): Update. | |
9312 | * exceptions.c (print_exception): Update. | |
9313 | * remote-fileio.c (remote_fileio_func_read): Update. | |
9314 | (remote_fileio_func_write): Update. | |
9315 | * tui/tui.c (tui_enable): Update. | |
9316 | * tui/tui-interp.c (tui_interp::init): Update. | |
9317 | * utils.c (init_page_info): Update. | |
9318 | (putchar_unfiltered, fputc_unfiltered): Update. | |
9319 | (gdb_flush): Update. | |
9320 | (emit_style_escape): Update. | |
9321 | (flush_wrap_buffer, fputs_maybe_filtered): Update. | |
9322 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) | |
9323 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. | |
9324 | (stderr_file::write): Update. | |
9325 | (stderr_file::puts): Update. | |
9326 | * ui-file.h (ui_file_isatty, ui_file_write) | |
9327 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) | |
9328 | (ui_file_puts): Don't declare. | |
9329 | ||
85f0dd3c TV |
9330 | 2020-02-10 Tom de Vries <tdevries@suse.de> |
9331 | ||
9332 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL | |
9333 | sentinel to char *. | |
9334 | ||
2e927613 TV |
9335 | 2020-02-09 Tom de Vries <tdevries@suse.de> |
9336 | ||
9337 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to | |
9338 | filename if it matches "<artificial>". | |
9339 | ||
6bafc845 HD |
9340 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
9341 | ||
9342 | * windows-tdep.c (struct enum_value_name): New struct. | |
9343 | (create_enum): New function. | |
9344 | (windows_get_siginfo_type): Create and use enum types. | |
9345 | ||
7928d571 HD |
9346 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
9347 | ||
9348 | * NEWS: Mention $_siginfo support for Windows. | |
9349 | * windows-nat.c (handle_exception): Set siginfo_er. | |
9350 | (windows_nat_target::mourn_inferior): Reset siginfo_er. | |
9351 | (windows_xfer_siginfo): New function. | |
9352 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. | |
9353 | * windows-tdep.c (struct windows_gdbarch_data): New struct. | |
9354 | (init_windows_gdbarch_data): New function. | |
9355 | (get_windows_gdbarch_data): New function. | |
9356 | (windows_get_siginfo_type): New function. | |
9357 | (windows_init_abi): Register windows_get_siginfo_type. | |
9358 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. | |
9359 | ||
6751ebae TT |
9360 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9361 | ||
9362 | * dwarf2/read.c (class cutu_reader) <cutu_reader, | |
9363 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. | |
9364 | <keep>: Declare method. | |
9365 | <m_keep>: Remove member. | |
9366 | <~cutu_reader>: Remove. | |
9367 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
9368 | (cutu_reader::cutu_reader): Update. | |
9369 | (cutu_reader::keep): Rename from ~cutu_reader. | |
9370 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
9371 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
9372 | (load_full_comp_unit, dwarf2_read_addr_index) | |
9373 | (read_signatured_type): Update. | |
9374 | ||
135f5437 TT |
9375 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9376 | ||
9377 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove | |
9378 | "want_partial_unit" parameter. | |
9379 | (process_psymtab_comp_unit): Change want_partial_unit to bool. | |
9380 | Inline check for DW_TAG_partial_unit. | |
9381 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. | |
9382 | ||
9f66ff1c TT |
9383 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9384 | ||
9385 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to | |
9386 | read.c. | |
9387 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from | |
9388 | read.c. | |
9389 | ||
c8a7a66f TT |
9390 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9391 | ||
9392 | * dwarf2/read.c (read_address): Move to comp-unit.c. | |
9393 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
9394 | (read_attribute_value, dwarf_decode_lines_1) | |
9395 | (var_decode_location, decode_locdesc): Update. | |
9396 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from | |
9397 | read.c. Remove "cu" parameter. | |
9398 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New | |
9399 | method. | |
9400 | ||
8266302d TT |
9401 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9402 | ||
9403 | * dwarf2/read.c (read_attribute_value, read_indirect_string) | |
9404 | (read_indirect_line_string): Update. | |
9405 | * dwarf2/comp-unit.c (read_offset): Remove. | |
9406 | (read_comp_unit_head): Update. | |
9407 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New | |
9408 | method. | |
9409 | (read_offset): Don't declare. | |
9410 | ||
4057dfde TT |
9411 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9412 | ||
9413 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. | |
9414 | * dwarf2/read.c (struct comp_unit_head): Move to | |
9415 | dwarf2/comp-unit.h. | |
9416 | (enum class rcuh_kind): Move to comp-unit.h. | |
9417 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. | |
9418 | (read_comp_unit_head, error_check_comp_unit_head) | |
9419 | (read_and_check_comp_unit_head): Move to comp-unit.c. | |
9420 | (read_offset, dwarf_unit_type_name): Likewise. | |
9421 | (create_debug_type_hash_table, read_cutu_die_from_dwo) | |
9422 | (cutu_reader::cutu_reader, read_call_site_scope) | |
9423 | (find_partial_die, follow_die_offset): Update. | |
9424 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. | |
9425 | ||
24aa364d TT |
9426 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9427 | ||
9428 | * dwarf2/read.c (read_offset_1): Move to leb.c. | |
9429 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) | |
9430 | (dwarf_decode_macro_bytes): Update. | |
9431 | * dwarf2/leb.c (read_offset): Rename; move from read.c. | |
9432 | * dwarf2/leb.h (read_offset): Declare. | |
9433 | ||
2c7d5afc TT |
9434 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9435 | ||
9436 | * dwarf2/read.c (dwarf2_section_size): Remove. | |
9437 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): | |
9438 | Update. | |
9439 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. | |
9440 | ||
4075cb26 TT |
9441 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9442 | ||
9443 | * dwarf2/read.c (read_initial_length): Move to leb.c. | |
9444 | * dwarf2/leb.h (read_initial_length): Declare. | |
9445 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add | |
9446 | handle_nonstd parameter. | |
9447 | * dwarf2/frame.c (read_initial_length): Remove. | |
9448 | (decode_frame_entry_1): Update. | |
9449 | ||
09ba997f TT |
9450 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9451 | ||
9452 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
9453 | (dwarf_evaluate_loc_desc::get_tls_address) | |
9454 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
9455 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) | |
9456 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) | |
9457 | (dwarf2_compile_property_to_c) | |
9458 | (dwarf2_loc_desc_get_symbol_read_needs) | |
9459 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) | |
9460 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) | |
9461 | (loclist_describe_location, loclist_tracepoint_var_ref) | |
9462 | (loclist_generate_c_location): Update. | |
9463 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. | |
9464 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) | |
9465 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) | |
9466 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. | |
9467 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) | |
9468 | (dwarf2_per_cu_data::addr_size) | |
9469 | (dwarf2_per_cu_data::ref_addr_size) | |
9470 | (dwarf2_per_cu_data::text_offset) | |
9471 | (dwarf2_per_cu_data::addr_type): Now methods. | |
9472 | (per_cu_header_read_in): Make per_cu "const". | |
9473 | (dwarf2_version): Remove. | |
9474 | (dwarf2_per_cu_data::int_type): Now a method. | |
9475 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. | |
9476 | (set_die_type, read_array_type, read_subrange_index_type) | |
9477 | (read_tag_string_type, read_subrange_type): Update. | |
9478 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, | |
9479 | offset_size, ref_addr_size, text_offset, addr_type, version, | |
9480 | objfile, int_type, addr_sized_int_type>: Declare methods. | |
9481 | ||
96c738c0 TT |
9482 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9483 | ||
9484 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: | |
9485 | Move earlier. | |
9486 | ||
8fdd972c TT |
9487 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9488 | ||
9489 | * dwarf2/read.h (dwarf_line_debug): Declare. | |
9490 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. | |
9491 | * dwarf2/read.c: Move line_header code to new files. | |
9492 | (dwarf_line_debug): No longer static. | |
9493 | * dwarf2/line-header.c: New file. | |
9494 | * dwarf2/line-header.h: New file. | |
9495 | ||
03075812 TT |
9496 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9497 | ||
9498 | * dwarf2/read.c (struct line_header) <file_full_name, | |
9499 | file_file_name>: Return unique_xmalloc_ptr. | |
9500 | (line_header::file_file_name): Update. | |
9501 | (line_header::file_full_name): Update. | |
9502 | (dw2_get_file_names_reader): Update. | |
9503 | (macro_start_file): Update. | |
9504 | ||
bb822404 TT |
9505 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9506 | ||
9507 | * dwarf2/read.c (struct line_header) <file_full_name, | |
9508 | file_file_name>: Declare methods. | |
9509 | (dw2_get_file_names_reader): Update. | |
9510 | (file_file_name): Now a method. | |
9511 | (file_full_name): Likewise. | |
9512 | (macro_start_file): Update. | |
9513 | ||
009b64fc TT |
9514 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9515 | ||
9516 | * dwarf2/read.c (dwarf_always_disassemble) | |
9517 | (show_dwarf_always_disassemble): Move to loc.c. | |
9518 | (_initialize_dwarf2_read): Move "always-disassemble" registration | |
9519 | to loc.c. | |
9520 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. | |
9521 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now | |
9522 | static. | |
9523 | (show_dwarf_always_disassemble): Move from read.c. | |
9524 | (_initialize_dwarf2loc): Move always-disassemble from read.c. | |
9525 | ||
5895093f TT |
9526 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9527 | ||
9528 | * dwarf2/read.c (~dwarf2_per_objfile): Update. | |
9529 | (create_quick_file_names_table): Return htab_up. | |
9530 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): | |
9531 | Update. | |
9532 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
9533 | <quick_file_names_table>: Now htab_up. | |
9534 | ||
b3b32279 TT |
9535 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9536 | ||
9537 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. | |
9538 | ||
1d33d811 TT |
9539 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9540 | ||
9541 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. | |
9542 | Rewrite. | |
9543 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. | |
9544 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. | |
9545 | (abbrev_table::abbrev_table): No longer inline. | |
9546 | (ABBREV_HASH_SIZE): Remove. | |
9547 | (abbrev_table::m_abbrevs): Now an htab_up. | |
9548 | ||
86de1d91 TT |
9549 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9550 | ||
9551 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. | |
9552 | (cutu_reader): Update. | |
9553 | (build_type_psymtabs_1): Update. | |
9554 | * dwarf2/abbrev.c (abbrev_table::read): Rename. | |
9555 | (abbrev_table::alloc_abbrev): Update. | |
9556 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. | |
9557 | (abbrev_table::read): New static method, renamed from | |
9558 | abbrev_table_read_table. | |
9559 | (abbrev_table::alloc_abbrev) | |
9560 | (abbrev_table::add_abbrev): Now private. | |
9561 | (abbrev_table::abbrev_table): Now private. | |
9562 | (abbrev_table::m_abbrev_obstack): Now private. Rename. | |
9563 | ||
0335378b TT |
9564 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9565 | ||
9566 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. | |
9567 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now | |
9568 | htab_up. | |
9569 | ||
48b490f2 TT |
9570 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9571 | ||
9572 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now | |
9573 | htab_up. | |
9574 | (lookup_dwo_unit_in_dwp): Update. | |
9575 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate | |
9576 | on obstack. | |
9577 | ||
bc68fb19 TT |
9578 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9579 | ||
9580 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on | |
9581 | obstack. | |
9582 | ||
d15acc42 TT |
9583 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9584 | ||
9585 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete | |
9586 | line_header_hash. | |
9587 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. | |
9588 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: | |
9589 | Change type to htab_up. | |
9590 | ||
eaa5fa8b TT |
9591 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9592 | ||
9593 | * dwarf2/read.c (allocate_type_unit_groups_table): Return | |
9594 | htab_up. Don't allocate on obstack. | |
9595 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. | |
9596 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: | |
9597 | Change type to htab_up. | |
9598 | ||
b0b6a987 TT |
9599 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9600 | ||
9601 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: | |
9602 | Change type to htab_up. | |
9603 | * dwarf2/read.c (create_signatured_type_table_from_index) | |
9604 | (create_signatured_type_table_from_debug_names) | |
9605 | (create_all_type_units, add_type_unit) | |
9606 | (lookup_dwo_signatured_type, lookup_signatured_type) | |
9607 | (process_skeletonless_type_unit): Update. | |
9608 | (create_debug_type_hash_table, create_debug_types_hash_table): | |
9609 | Change type of types_htab. | |
9610 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return | |
9611 | htab_up. Don't allocate on obstack. | |
9612 | (create_cus_hash_table): Change type of cus_htab parameter. | |
9613 | (struct dwo_file) <cus, tus>: Now htab_up. | |
9614 | (lookup_dwo_signatured_type, lookup_dwo_cutu) | |
9615 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) | |
9616 | (queue_and_load_all_dwo_tus): Update. | |
9617 | * dwarf2/index-write.c (write_gdbindex): Update. | |
9618 | (write_debug_names): Update. | |
9619 | ||
39856def TT |
9620 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9621 | ||
9622 | * dwarf2/read.h (struct dwarf2_queue_item): Move from | |
9623 | dwarf2/read.c. Remove "next" member. Add constructor ntad | |
9624 | destructor. | |
9625 | (struct dwarf2_per_objfile) <queue>: New member. | |
9626 | * dwarf2/read.c (struct dwarf2_queue_item): Move to | |
9627 | dwarf2/read.h. | |
9628 | (dwarf2_queue, dwarf2_queue_tail): Remove. | |
9629 | (class dwarf2_queue_guard): Add parameter to constructor. Use | |
9630 | DISABLE_COPY_AND_ASSIGN. | |
9631 | <m_per_objfile>: New member. | |
9632 | <~dwarf2_queue_guard>: Rewrite. | |
9633 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): | |
9634 | Update. | |
9635 | (~dwarf2_queue_item): New. | |
9636 | ||
3e225074 TT |
9637 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9638 | ||
9639 | * dwarf2/read.c (struct die_info) <has_children>: New member. | |
9640 | (dw2_get_file_names_reader): Remove has_children. | |
9641 | (dw2_get_file_names): Update. | |
9642 | (read_cutu_die_from_dwo): Remove has_children. | |
9643 | (cutu_reader::init_tu_and_read_dwo_dies) | |
9644 | (cutu_reader::cutu_reader): Update. | |
9645 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): | |
9646 | Remove has_children. | |
9647 | (build_type_psymtabs_1, process_skeletonless_type_unit) | |
9648 | (load_partial_comp_unit, load_full_comp_unit): Update. | |
9649 | (create_dwo_cu_reader): Remove has_children. | |
9650 | (create_cus_hash_table, read_die_and_children): Update. | |
9651 | (read_full_die_1,read_full_die): Remove has_children. | |
9652 | (read_signatured_type): Update. | |
9653 | (class cutu_reader) <has_children>: Remove. | |
9654 | ||
82ca8957 TT |
9655 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9656 | ||
9657 | * dwarf2/expr.c: Rename from dwarf2expr.c. | |
9658 | * dwarf2/expr.h: Rename from dwarf2expr.h. | |
9659 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. | |
9660 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. | |
9661 | * dwarf2/frame.c: Rename from dwarf2-frame.c. | |
9662 | * dwarf2/frame.h: Rename from dwarf2-frame.h. | |
9663 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. | |
9664 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. | |
9665 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. | |
9666 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. | |
9667 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. | |
9668 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. | |
9669 | * dwarf2/loc.c: Rename from dwarf2loc.c. | |
9670 | * dwarf2/loc.h: Rename from dwarf2loc.h. | |
9671 | * dwarf2/read.c: Rename from dwarf2read.c. | |
9672 | * dwarf2/read.h: Rename from dwarf2read.h. | |
9673 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, | |
9674 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, | |
9675 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, | |
9676 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, | |
9677 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, | |
9678 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, | |
9679 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, | |
9680 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, | |
9681 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, | |
9682 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, | |
9683 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, | |
9684 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, | |
9685 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: | |
9686 | Update. | |
9687 | * Makefile.in (COMMON_SFILES): Update. | |
9688 | (HFILES_NO_SRCDIR): Update. | |
9689 | ||
9e35d499 TT |
9690 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9691 | ||
9692 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. | |
9693 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. | |
9694 | ||
1eba2311 TT |
9695 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9696 | ||
9697 | * dwarf2read.h (struct die_info): Don't declare. | |
9698 | ||
e41c2da2 TT |
9699 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9700 | ||
9701 | * dwarf2read.h (die_info_ptr): Remove typedef. | |
9702 | ||
4fc6c0d5 TT |
9703 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9704 | ||
9705 | * dwarf2read.c (read_call_site_scope) | |
9706 | (handle_data_member_location, dwarf2_add_member_fn) | |
9707 | (mark_common_block_symbol_computed, read_common_block) | |
9708 | (attr_to_dynamic_prop, partial_die_info::read) | |
9709 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) | |
9710 | (dwarf2_symbol_mark_computed, set_die_type): Update. | |
9711 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare | |
9712 | method. | |
9713 | (attr_form_is_block): Don't declare. | |
9714 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. | |
9715 | ||
cd6c91b4 TT |
9716 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9717 | ||
9718 | * dwarf2read.c (dwarf2_find_base_address, ) | |
9719 | (read_call_site_scope, rust_containing_type) | |
9720 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
9721 | (handle_data_member_location, dwarf2_add_member_fn) | |
9722 | (get_alignment, read_structure_type, process_structure_scope) | |
9723 | (mark_common_block_symbol_computed, read_common_block) | |
9724 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) | |
9725 | (partial_die_info::read, read_attribute_value, new_symbol) | |
9726 | (lookup_die_type, dwarf2_get_ref_die_offset) | |
9727 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) | |
9728 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) | |
9729 | (dwarf2_symbol_mark_computed): Update. | |
9730 | * dwarf2/attribute.h (struct attribute) <value_as_address, | |
9731 | form_is_section_offset, form_is_constant, form_is_ref>: Declare | |
9732 | methods. | |
9733 | (value_as_address, attr_form_is_section_offset) | |
9734 | (attr_form_is_constant, attr_form_is_ref): Don't declare. | |
9735 | * dwarf2/attribute.c (attribute::value_as_address) | |
9736 | (attribute::form_is_section_offset, attribute::form_is_constant) | |
9737 | (attribute::form_is_ref): Now methods. | |
9738 | ||
162dce55 TT |
9739 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9740 | ||
9741 | * dwarf2read.c (struct attribute, DW_STRING) | |
9742 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) | |
9743 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) | |
9744 | (attr_form_is_block, attr_form_is_section_offset) | |
9745 | (attr_form_is_constant, attr_form_is_ref): Move. | |
9746 | * dwarf2/attribute.h: New file. | |
9747 | * dwarf2/attribute.c: New file, from dwarf2read.c. | |
9748 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. | |
9749 | ||
3054dd54 TT |
9750 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9751 | ||
9752 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) | |
9753 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): | |
9754 | Move. | |
9755 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. | |
9756 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) | |
9757 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to | |
9758 | abbrev.c. | |
9759 | * dwarf2/abbrev.h: New file. | |
9760 | * dwarf2/abbrev.c: New file, from dwarf2read.c. | |
9761 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. | |
9762 | ||
96b79293 TT |
9763 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9764 | ||
9765 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) | |
9766 | (dwarf2_section_size, dwarf2_get_section_info) | |
9767 | (create_signatured_type_table_from_debug_names) | |
9768 | (create_addrmap_from_aranges, read_debug_names_from_section) | |
9769 | (get_gdb_index_contents_from_section, read_comp_unit_head) | |
9770 | (error_check_comp_unit_head, read_abbrev_offset) | |
9771 | (create_debug_type_hash_table, init_cu_die_reader) | |
9772 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) | |
9773 | (read_comp_units_from_section, create_cus_hash_table) | |
9774 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
9775 | (create_dwp_v2_section, dwarf2_rnglists_process) | |
9776 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) | |
9777 | (abbrev_table_read_table, read_indirect_string_at_offset_from) | |
9778 | (read_indirect_string_from_dwz, read_addr_index_1) | |
9779 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) | |
9780 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
9781 | (fill_in_loclist_baton): Update. | |
9782 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, | |
9783 | get_containing_section, get_bfd_owner, get_bfd_section, | |
9784 | get_file_name, get_id, get_flags, empty, read>: Declare methods. | |
9785 | (dwarf2_read_section, get_section_name, get_section_file_name) | |
9786 | (get_containing_section, get_section_bfd_owner) | |
9787 | (get_section_bfd_section, get_section_name, get_section_file_name) | |
9788 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't | |
9789 | declare. | |
9790 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) | |
9791 | (dwarf2_section_info::get_bfd_owner) | |
9792 | (dwarf2_section_info::get_bfd_section) | |
9793 | (dwarf2_section_info::get_name) | |
9794 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) | |
9795 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) | |
9796 | (dwarf2_section_info::read): Now methods. | |
9797 | * dwarf-index-write.c (class debug_names): Update. | |
9798 | ||
2c86cff9 TT |
9799 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9800 | ||
9801 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): | |
9802 | Move to dwarf2/section.h. | |
9803 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) | |
9804 | (get_section_bfd_section, get_section_name) | |
9805 | (get_section_file_name, get_section_id, get_section_flags) | |
9806 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to | |
9807 | dwarf2/section.c. | |
9808 | * dwarf2/section.h: New file. | |
9809 | * dwarf2/section.c: New file, from dwarf2read.c. | |
9810 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. | |
9811 | ||
f4382c45 TT |
9812 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9813 | ||
9814 | * dwarf2read.h (read_unsigned_leb128): Don't declare. | |
9815 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
9816 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) | |
9817 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. | |
9818 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. | |
9819 | * dwarf2/leb.h: New file, from dwarf2read.c. | |
9820 | * dwarf2/leb.c: New file, from dwarf2read.c. | |
9821 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): | |
9822 | Remove. | |
9823 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. | |
9824 | (COMMON_SFILES): Add dwarf2/leb.c. | |
9825 | ||
01840b7a JB |
9826 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> |
9827 | ||
9828 | GDB 9.1 released. | |
9829 | ||
dfcb27e4 IB |
9830 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
9831 | ||
9832 | PR gdb/25190: | |
aac66a4c SM |
9833 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. |
9834 | * gdb/remote.c (remote_console_output): Update. | |
9835 | * gdb/ui-file.c (fputs_unfiltered): Rename to... | |
9836 | (ui_file_puts): ...this. | |
9837 | * gdb/ui-file.h (ui_file_puts): Add declaration. | |
9838 | * gdb/utils.c (emit_style_escape): Update. | |
9839 | (flush_wrap_buffer): Update. | |
9840 | (fputs_maybe_filtered): Update. | |
9841 | (fputs_unfiltered): Add function. | |
dfcb27e4 | 9842 | |
faa17681 IB |
9843 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
9844 | ||
aac66a4c SM |
9845 | * gdb/event-loop.c (gdb_wait_for_event): Update. |
9846 | * gdb/printcmd.c (printf_command): Update. | |
9847 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. | |
9848 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. | |
9849 | (gdb_os_flush_stderr): Update. | |
9850 | * gdb/remote.c (remote_console_output): Update. | |
9851 | * gdb/ui-file.c (gdb_flush): Rename to... | |
9852 | (ui_file_flush): ...this. | |
9853 | (stderr_file::write): Update. | |
9854 | (stderr_file::puts): Update. | |
9855 | * gdb/ui-file.h (gdb_flush): Rename to... | |
9856 | (ui_file_flush): ...this. | |
9857 | * gdb/utils.c (gdb_flush): Add function. | |
9858 | * gdb/utils.h (gdb_flush): Add declaration. | |
faa17681 | 9859 | |
5abbbe1d TT |
9860 | 2020-02-07 Tom Tromey <tromey@adacore.com> |
9861 | ||
9862 | PR breakpoints/24915: | |
9863 | * source.c (find_and_open_source): Do not check basenames_may_differ. | |
9864 | ||
919adfe8 TT |
9865 | 2020-02-07 Tom Tromey <tom@tromey.com> |
9866 | ||
9867 | * README: Update gdbserver documentation. | |
9868 | * gdbserver: Move to top level. | |
9869 | * configure.tgt (build_gdbserver): Remove. | |
9870 | * configure.ac: Remove --enable-gdbserver. | |
9871 | * configure: Rebuild. | |
9872 | * Makefile.in (distclean): Don't mention gdbserver. | |
9873 | ||
1d5d29e7 SV |
9874 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
9875 | ||
9876 | * source-cache.c (source_cache::ensure): Surround | |
9877 | get_plain_source_lines with a try/catch. | |
9878 | (source_cache::get_line_charpos): Get rid of try/catch | |
9879 | and only check for the return value of "ensure". | |
9880 | * tui/tui-source.c (tui_source_window::set_contents): | |
9881 | Simplify "nlines" calculation. | |
9882 | ||
6eb1129c SV |
9883 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
9884 | ||
9885 | * MAINTAINERS (Write After Approval): Add myself. | |
9886 | ||
c6a42d11 CB |
9887 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
9888 | ||
9889 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class | |
9890 | function call. | |
9891 | ||
c8ecdda6 CB |
9892 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
9893 | ||
9894 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. | |
9895 | ||
f6480e70 MR |
9896 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> |
9897 | ||
9898 | * nat/riscv-linux-tdesc.h: New file. | |
9899 | * nat/riscv-linux-tdesc.c: New file, taking code from... | |
9900 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
9901 | ... here. | |
9902 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to | |
9903 | NATDEPFILES. | |
9904 | ||
dcc9fbc6 AB |
9905 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> |
9906 | ||
9907 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that | |
9908 | we don't set the fake simulator ptid to the null_ptid. | |
9909 | ||
719546c4 SM |
9910 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> |
9911 | ||
9912 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. | |
9913 | * gdbthread.h (class thread_info) <resumed>: Likewise. | |
9914 | * infrun.c (resume_1): Likewise. | |
9915 | (proceed): Likewise. | |
9916 | (infrun_thread_stop_requested): Likewise. | |
9917 | (stop_all_threads): Likewise. | |
9918 | (handle_inferior_event): Likewise. | |
9919 | (restart_threads): Likewise. | |
9920 | (finish_step_over): Likewise. | |
9921 | (keep_going_stepped_thread): Likewise. | |
9922 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. | |
9923 | (linux_handle_extended_wait): Likewise. | |
9924 | * record-btrace.c (get_thread_current_frame_id): Likewise. | |
9925 | * record-full.c (record_full_wait_1): Likewise. | |
9926 | * remote.c (remote_target::process_initial_stop_replies): Likewise. | |
9927 | * target.c (target_resume): Likewise. | |
9928 | * thread.c (set_running_thread): Likewise. | |
9929 | ||
e409c542 AKS |
9930 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
9931 | ||
9932 | * f-valprint.c (f77_print_array_1): Changed datatype of index | |
9933 | variable to LONGEST from int to enable it to contain bound | |
9934 | values correctly. | |
9935 | ||
ee98c0da MR |
9936 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> |
9937 | ||
9938 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. | |
9939 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer | |
9940 | offsets according to FLEN determined. | |
9941 | (riscv_linux_nat_target::read_description): Determine FLEN | |
9942 | dynamically. | |
9943 | (riscv_linux_nat_target::fetch_registers): Size regset buffer | |
9944 | according to FLEN determined. | |
9945 | (riscv_linux_nat_target::store_registers): Likewise. | |
9946 | ||
aa66aac4 SV |
9947 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
9948 | ||
9949 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
9950 | when reg->group is empty and reggroup is not. | |
9951 | ||
fd9faca8 TT |
9952 | 2020-01-31 Tom Tromey <tromey@adacore.com> |
9953 | ||
9954 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): | |
9955 | Call beneath target's mourn_inferior after unpushing. | |
9956 | ||
42330a68 AB |
9957 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
9958 | ||
9959 | PR tui/9765 | |
9960 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't | |
9961 | have enough lines to fill the screen, still return the lowest | |
9962 | address we found. | |
9963 | ||
7a27a45b AB |
9964 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
9965 | ||
9966 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', | |
9967 | '-', '<', and '>' commands. | |
9968 | ||
c47f70e2 PA |
9969 | 2020-01-29 Pedro Alves <palves@redhat.com> |
9970 | Sergio Durigan Junior <sergiodj@redhat.com> | |
9971 | ||
9972 | * infcmd.c (construct_inferior_arguments): Assert that | |
9973 | 'argc' is greater than 0. | |
9974 | ||
5133a315 LM |
9975 | 2020-01-29 Luis Machado <luis.machado@linaro.org> |
9976 | ||
9977 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. | |
9978 | (BRK_INSN_MASK): Define to 0xd4200000. | |
9979 | (aarch64_program_breakpoint_here_p): New function. | |
9980 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. | |
9981 | * arch-utils.c (default_program_breakpoint_here_p): Moved from | |
9982 | breakpoint.c. | |
9983 | * arch-utils.h (default_program_breakpoint_here_p): Moved from | |
9984 | breakpoint.h | |
9985 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and | |
9986 | call gdbarch_program_breakpoint_here_p. | |
9987 | (program_breakpoint_here): Moved to arch-utils.c, renamed to | |
9988 | default_program_breakpoint_here_p, changed return type to bool and | |
9989 | simplified. | |
9990 | * breakpoint.h (program_breakpoint_here): Moved prototype to | |
9991 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed | |
9992 | return type to bool. | |
9993 | * gdbarch.c: Regenerate. | |
9994 | * gdbarch.h: Regenerate. | |
9995 | * gdbarch.sh (program_breakpoint_here_p): New method. | |
9996 | * infrun.c (handle_signal_stop): Call | |
9997 | gdbarch_program_breakpoint_here_p. | |
9998 | ||
168f8c6b TT |
9999 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10000 | ||
10001 | * ctfread.c (struct ctf_fp_info): Reindent. | |
10002 | (_initialize_ctfread): Remove. | |
10003 | ||
128a391f TT |
10004 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10005 | ||
10006 | * psymtab.c (partial_map_expand_apply) | |
10007 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
10008 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
10009 | (psym_print_stats, psym_expand_symtabs_for_function) | |
10010 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
10011 | (psym_expand_symtabs_matching) | |
10012 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
10013 | (maintenance_check_psymtabs): Use new methods. | |
10014 | * psympriv.h (struct partial_symtab) <readin_p, | |
10015 | get_compunit_symtab>: New methods. | |
10016 | <readin, compunit_symtab>: Remove members. | |
10017 | (struct standard_psymtab): New. | |
10018 | (struct legacy_psymtab): Derive from standard_psymtab. | |
10019 | * dwarf2read.h (struct dwarf2_psymtab): Derive from | |
10020 | standard_psymtab. | |
10021 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. | |
10022 | ||
0494dbec TT |
10023 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10024 | ||
10025 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call | |
10026 | read_dependencies. Add assert. | |
10027 | * psymtab.c (partial_symtab::read_dependencies): New method. | |
10028 | * psympriv.h (struct partial_symtab) <read_dependencies>: New | |
10029 | method. | |
10030 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. | |
10031 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call | |
10032 | read_dependencies. | |
10033 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. | |
10034 | Add assert. | |
10035 | ||
8566b89b TT |
10036 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10037 | ||
10038 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. | |
10039 | Call expand_psymtab. | |
10040 | (xcoff_read_symtab): Call expand_psymtab. | |
10041 | (xcoff_start_psymtab, xcoff_end_psymtab): Set | |
10042 | legacy_expand_psymtab. | |
10043 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New | |
10044 | method. | |
10045 | (struct legacy_psymtab) <expand_psymtab>: Implement. | |
10046 | <legacy_expand_psymtab>: New member. | |
10047 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. | |
10048 | (parse_partial_symbols): Set legacy_expand_psymtab. | |
10049 | (psymtab_to_symtab_1): Change argument order. Call | |
10050 | expand_psymtab. | |
10051 | (new_psymtab): Set legacy_expand_psymtab. | |
10052 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. | |
10053 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call | |
10054 | expand_psymtab. | |
10055 | (dwarf2_psymtab::expand_psymtab): Rename from | |
10056 | psymtab_to_symtab_1. Call expand_psymtab. | |
10057 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. | |
10058 | (dbx_end_psymtab): Likewise. | |
10059 | (dbx_psymtab_to_symtab_1): Change argument order. Call | |
10060 | expand_psymtab. | |
10061 | (dbx_read_symtab): Call expand_psymtab. | |
10062 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. | |
10063 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. | |
10064 | (ctf_psymtab::read_symtab): Call expand_psymtab. | |
10065 | ||
077cbab2 TT |
10066 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10067 | ||
10068 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. | |
10069 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" | |
10070 | messages. | |
10071 | * mdebugread.c (mdebug_read_symtab): Remove prints. | |
10072 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add | |
10073 | assert. | |
10074 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. | |
10075 | ||
891813be TT |
10076 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10077 | ||
10078 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) | |
10079 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) | |
10080 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use | |
10081 | legacy_symtab. | |
10082 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. | |
10083 | * psymtab.c (psymtab_to_symtab): Call method. | |
10084 | (dump_psymtab): Update. | |
10085 | * psympriv.h (struct partial_symtab): Add virtual destructor. | |
10086 | <read_symtab>: New method. | |
10087 | (struct legacy_symtab): New. | |
10088 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. | |
10089 | (struct pst_map) <pst>: Now a legacy_psymtab. | |
10090 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) | |
10091 | (new_psymtab): Use legacy_psymtab. | |
10092 | * dwarf2read.h (struct dwarf2_psymtab): New. | |
10093 | (struct dwarf2_per_cu_data) <psymtab>: Use it. | |
10094 | * dwarf2read.c (dwarf2_create_include_psymtab) | |
10095 | (dwarf2_build_include_psymtabs, create_type_unit_group) | |
10096 | (create_partial_symtab, process_psymtab_comp_unit_reader) | |
10097 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) | |
10098 | (set_partial_user): Use dwarf2_psymtab. | |
10099 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. | |
10100 | (psymtab_to_symtab_1, process_full_comp_unit) | |
10101 | (process_full_type_unit, dwarf2_ranges_read) | |
10102 | (dwarf2_get_pc_bounds, psymtab_include_file_name) | |
10103 | (dwarf_decode_lines): Use dwarf2_psymtab. | |
10104 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. | |
10105 | (add_address_entry_worker, write_one_signatured_type) | |
10106 | (recursively_count_psymbols, recursively_write_psymbols) | |
10107 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) | |
10108 | (write_debug_names): Likewise. | |
10109 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. | |
10110 | <pst>: Now a legacy_psymtab. | |
10111 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. | |
10112 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) | |
10113 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. | |
10114 | * ctfread.c (struct ctf_psymtab): New. | |
10115 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a | |
10116 | ctf_psymtab. | |
10117 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. | |
10118 | (create_partial_symtab): Return a ctf_psymtab. | |
10119 | (scan_partial_symbols): Update. | |
10120 | ||
c3693a1d TT |
10121 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10122 | ||
10123 | * xcoffread.c (xcoff_start_psymtab): Use new. | |
10124 | * psymtab.c (partial_symtab::partial_symtab): New constructor, | |
10125 | renamed from start_psymtab_common. | |
10126 | * psympriv.h (struct partial_symtab): Add new constructor. | |
10127 | (start_psymtab_common): Don't declare. | |
10128 | * mdebugread.c (parse_partial_symbols): Use new. | |
10129 | * dwarf2read.c (create_partial_symtab): Use new. | |
10130 | * dbxread.c (start_psymtab): Use new. | |
10131 | * ctfread.c (create_partial_symtab): Use new. | |
10132 | ||
32caafd0 TT |
10133 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10134 | ||
10135 | * xcoffread.c (xcoff_end_psymtab): Use new. | |
10136 | * psymtab.c (start_psymtab_common): Use new. | |
10137 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. | |
10138 | Update. | |
10139 | * psympriv.h (struct partial_symtab): Add parameters to | |
10140 | constructor. Don't inline. | |
10141 | (allocate_psymtab): Don't declare. | |
10142 | * mdebugread.c (new_psymtab): Use new. | |
10143 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. | |
10144 | * dbxread.c (dbx_end_psymtab): Use new. | |
10145 | ||
abaa2f23 TT |
10146 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10147 | ||
10148 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from | |
10149 | allocate_psymtab. Update documentation. | |
10150 | * psymtab.c (psymtab_storage::install_psymtab): Rename from | |
10151 | allocate_psymtab. Do not use new. | |
10152 | (allocate_psymtab): Use new. Update. | |
10153 | ||
6d94535f TT |
10154 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10155 | ||
10156 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
10157 | * psymtab.c (psym_print_stats): Update. | |
10158 | * psympriv.h (struct partial_symtab) <readin, | |
10159 | psymtabs_addrmap_supported, anonymous>: Now bool. | |
10160 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
10161 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) | |
10162 | (build_type_psymtabs_reader, psymtab_to_symtab_1) | |
10163 | (process_full_comp_unit, process_full_type_unit): Update. | |
10164 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
10165 | * ctfread.c (psymtab_to_symtab): Update. | |
10166 | ||
6f17252b TT |
10167 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10168 | ||
10169 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. | |
10170 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. | |
10171 | * psymtab.c (psymtab_storage): Delete psymtabs. | |
10172 | (psymtab_storage::allocate_psymtab): Use new. | |
10173 | (psymtab_storage::discard_psymtab): Use delete. | |
10174 | * psympriv.h (struct partial_symtab): Add constructor and | |
10175 | initializers. | |
10176 | ||
f6f1cebc TT |
10177 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10178 | ||
10179 | * machoread.c: Do not include psympriv.h. | |
10180 | ||
e47e48f6 PW |
10181 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
10182 | ||
10183 | * NEWS: Mention the new option and the set/show commands. | |
10184 | ||
a2fedca9 PW |
10185 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
10186 | ||
10187 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) | |
10188 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) | |
10189 | (validate_exec_file): New variables, enums, functions. | |
10190 | (exec_file_locate_attach, print_section_info): Style the filenames. | |
10191 | (_initialize_exec): Install show_exec_file_mismatch_command and | |
10192 | set_exec_file_mismatch_command. | |
10193 | * gdbcore.h (validate_exec_file): Declare. | |
10194 | * infcmd.c (attach_command): Call validate_exec_file. | |
10195 | * remote.c ( remote_target::remote_add_inferior): Likewise. | |
10196 | ||
7ffa82e1 AB |
10197 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
10198 | ||
10199 | * frame.c (find_frame_sal): Move call to get_next_frame into more | |
10200 | inner scope. | |
10201 | * inline-frame.c (inilne_state) <inline_state>: Update argument | |
10202 | types. | |
10203 | (inilne_state) <skipped_symbol>: Rename to... | |
10204 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. | |
10205 | (skip_inline_frames): Build vector of skipped symbols and use this | |
10206 | to reate the inline_state. | |
10207 | (inline_skipped_symbol): Add a comment and some assertions, fetch | |
10208 | skipped symbol from the list. | |
10209 | ||
3d92a3e3 AB |
10210 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
10211 | ||
10212 | * buildsym.c (lte_is_less_than): Delete. | |
10213 | (buildsym_compunit::end_symtab_with_blockvector): Create local | |
10214 | lambda function to sort line table entries, and use | |
10215 | std::stable_sort instead of std::sort. | |
10216 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence | |
10217 | markers when looking for a previous line. | |
10218 | ||
94a72be7 AB |
10219 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
10220 | ||
10221 | * dwarf2read.c (lnp_state_machine::record_line): Include | |
10222 | end_sequence parameter in debug print out. Record the line if we | |
10223 | are at an end_sequence marker even if it's not the start of a | |
10224 | statement. | |
10225 | * symmisc.c (maintenance_print_one_line_table): Print end of | |
10226 | sequence markers with 'END' not '0'. | |
10227 | ||
53af73bf PA |
10228 | 2020-01-24 Pedro Alves <palves@redhat.com> |
10229 | ||
10230 | PR gdb/25410 | |
10231 | * thread.c (scoped_restore_current_thread::restore): Use | |
10232 | switch_to_inferior_no_thread. | |
10233 | * exec.c: Include "progspace-and-thread.h". | |
10234 | (add_target_sections, remove_target_sections): | |
10235 | scoped_restore_current_pspace_and_thread instead of | |
10236 | scoped_restore_current_thread. | |
10237 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace | |
10238 | and aspace to the inferior before calling clone_program_space. | |
10239 | Remove stale comment. | |
10240 | ||
3050c6f4 CB |
10241 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
10242 | ||
10243 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... | |
10244 | (arm_netbsd_nat_target::fetch_registers): ...this. | |
10245 | (arm_nbsd_nat_target::store_registers): Rename to... | |
10246 | (arm_netbsd_nat_target::store_registers): ...this. | |
10247 | ||
73685c7e CB |
10248 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
10249 | ||
10250 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
10251 | register_t. | |
10252 | ||
89203d40 CB |
10253 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
10254 | ||
10255 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): | |
10256 | Update comment. | |
10257 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): | |
10258 | Likewise. | |
10259 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. | |
10260 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to | |
10261 | the correct replacement (iterate_over_regset_sections). | |
10262 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): | |
10263 | Update comment. | |
10264 | ||
1ba1ac88 AB |
10265 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> |
10266 | ||
10267 | PR gdb/23718 | |
10268 | * gdb/python/python.c (execute_gdb_command): Call | |
10269 | async_enable_stdin in catch block. | |
10270 | ||
f3364a6d AB |
10271 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
10272 | ||
10273 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with | |
10274 | SWITCH_THRU_ALL_UIS. | |
10275 | ||
733d0a67 AB |
10276 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
10277 | ||
10278 | PR tui/9765 | |
10279 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header | |
10280 | comment, add extra parameter, and update to store previous symbol | |
10281 | when appropriate. | |
10282 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, | |
10283 | add extra parameter. | |
10284 | * tui/tui-disasm.c (tui_disassemble): Update header comment, | |
10285 | remove unneeded parameter, add try/catch around gdb_print_insn, | |
10286 | rewrite to add items to asm_lines vector. | |
10287 | (tui_find_backward_disassembly_start_address): New function. | |
10288 | (tui_find_disassembly_address): Updated throughout. | |
10289 | (tui_disasm_window::set_contents): Update for changes to | |
10290 | tui_disassemble. | |
10291 | (tui_disasm_window::do_scroll_vertical): No need to adjust the | |
10292 | number of lines to scroll. | |
10293 | ||
b3b3bada SM |
10294 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
10295 | ||
10296 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. | |
10297 | (SECT_OFF_DATA): Likewise. | |
10298 | (SECT_OFF_RODATA): Likewise. | |
10299 | (SECT_OFF_TEXT): Likewise. | |
10300 | (SECT_OFF_BSS): Likewise. | |
10301 | (struct objfile) <text_section_offset, data_section_offset>: New | |
10302 | methods. | |
10303 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use | |
10304 | objfile::text_section_offset. | |
10305 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. | |
10306 | * coffread.c (coff_symtab_read): Likewise. | |
10307 | (enter_linenos): Likewise. | |
10308 | (process_coff_symbol): Likewise. | |
10309 | * ctfread.c (get_objfile_text_range): Likewise. | |
10310 | * dtrace-probe.c (dtrace_probe::get_relocated_address): | |
10311 | Use objfile::data_section_offset. | |
10312 | * dwarf2-frame.c (execute_cfa_program): Use | |
10313 | objfile::text_section_offset. | |
10314 | (dwarf2_frame_find_fde): Likewise. | |
10315 | * dwarf2read.c (create_addrmap_from_index): Likewise. | |
10316 | (create_addrmap_from_aranges): Likewise. | |
10317 | (dw2_find_pc_sect_compunit_symtab): Likewise. | |
10318 | (process_psymtab_comp_unit_reader): Likewise. | |
10319 | (add_partial_symbol): Likewise. | |
10320 | (add_partial_subprogram): Likewise. | |
10321 | (process_full_comp_unit): Likewise. | |
10322 | (read_file_scope): Likewise. | |
10323 | (read_func_scope): Likewise. | |
10324 | (read_lexical_block_scope): Likewise. | |
10325 | (read_call_site_scope): Likewise. | |
10326 | (dwarf2_rnglists_process): Likewise. | |
10327 | (dwarf2_ranges_process): Likewise. | |
10328 | (dwarf2_ranges_read): Likewise. | |
10329 | (dwarf_decode_lines_1): Likewise. | |
10330 | (new_symbol): Likewise. | |
10331 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
10332 | (dwarf2_per_cu_text_offset): Likewise. | |
10333 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
10334 | * hppa-tdep.c (read_unwind_info): Likewise. | |
10335 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. | |
10336 | * psympriv.h (struct partial_symtab): Likewise. | |
10337 | * psymtab.c (find_pc_sect_psymtab): Likewise. | |
10338 | * solib-svr4.c (enable_break): Likewise. | |
10339 | * stap-probe.c (relocate_address): Use | |
10340 | objfile::data_section_offset. | |
10341 | * xcoffread.c (enter_line_range): Use | |
10342 | objfile::text_section_offset. | |
10343 | (read_xcoff_symtab): Likewise. | |
10344 | ||
ab53f382 SM |
10345 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
10346 | ||
10347 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` | |
10348 | declaration to narrower scopes. | |
10349 | ||
e7eee665 SM |
10350 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
10351 | ||
10352 | * darwin-nat.h (struct darwin_exception_msg, enum | |
10353 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): | |
10354 | Move up. | |
10355 | (class darwin_nat_target) <wait_1, check_new_threads, | |
10356 | decode_exception_message, decode_message, stop_inferior, | |
10357 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. | |
10358 | * darwin-nat.c (darwin_check_new_threads): Rename to... | |
10359 | (darwin_nat_target::check_new_threads): ... this. | |
10360 | (darwin_suspend_inferior_it): Remove. | |
10361 | (darwin_decode_exception_message): Rename to... | |
10362 | (darwin_nat_target::decode_exception_message): ... this. | |
10363 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. | |
10364 | (darwin_decode_message): Rename to... | |
10365 | (darwin_nat_target::decode_message): ... this. | |
10366 | (cancel_breakpoint): Rename to... | |
10367 | (darwin_nat_target::cancel_breakpoint): ... this. | |
10368 | (darwin_wait): Rename to... | |
10369 | (darwin_nat_target::wait_1): ... this. Use range-based for loop | |
10370 | instead of iterate_over_inferiors. | |
10371 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. | |
10372 | (darwin_stop_inferior): Rename to... | |
10373 | (darwin_nat_target::stop_inferior): ... this. | |
10374 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. | |
10375 | (darwin_init_thread_list): Rename to... | |
10376 | (darwin_nat_target::init_thread_list): ... this. | |
10377 | (darwin_ptrace_him): Rename to... | |
10378 | (darwin_nat_target::ptrace_him): ... this. | |
10379 | (darwin_nat_target::create_inferior): Pass lambda function to | |
10380 | fork_inferior. | |
10381 | (darwin_nat_target::detach): Call stop_inferior instead of | |
10382 | darwin_stop_inferior. | |
10383 | * fork-inferior.h (fork_inferior): Change init_trace_fun | |
10384 | parameter to gdb::function_view. | |
10385 | * fork-inferior.c (fork_inferior): Likewise. | |
10386 | ||
c162ed3e HD |
10387 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> |
10388 | ||
10389 | * i386-cygwin-tdep.c (core_process_module_section): Update. | |
10390 | * windows-nat.c (struct lm_info_windows): Add text_offset. | |
10391 | (windows_xfer_shared_libraries): Update. | |
10392 | * windows-tdep.c (windows_xfer_shared_library): | |
10393 | Add text_offset_cached argument. | |
10394 | * windows-tdep.h (windows_xfer_shared_library): Update. | |
10395 | ||
a1237872 SM |
10396 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
10397 | ||
10398 | * gdbarch.sh: Add declaration for _initialize_gdbarch. | |
10399 | ||
b3ee6dd9 SM |
10400 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
10401 | ||
10402 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. | |
10403 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, | |
10404 | replace with range-based for. | |
10405 | (gdbsim_interrupt_inferior): Remove. | |
10406 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use | |
10407 | with a range-based for. Inline code from | |
10408 | gdbsim_interrupt_inferior. | |
10409 | ||
f9fac3c8 SM |
10410 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
10411 | ||
10412 | * infrun.c (proceed): Fix indentation. | |
10413 | ||
f6474de9 TT |
10414 | 2020-01-21 Tom Tromey <tromey@adacore.com> |
10415 | ||
10416 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. | |
10417 | * python/python.c (python_extension_ops): Update. | |
10418 | (gdbpy_colorize): New function. | |
10419 | * python/lib/gdb/__init__.py (colorize): New function. | |
10420 | * extension.h (ext_lang_colorize): Declare. | |
10421 | * extension.c (ext_lang_colorize): New function. | |
10422 | * extension-priv.h (struct extension_language_ops) <colorize>: New | |
10423 | member. | |
10424 | * cli/cli-style.c (_initialize_cli_style): Update help text. | |
10425 | ||
f0c702d4 LM |
10426 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
10427 | ||
10428 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) | |
10429 | <cond>: Change type to bool. | |
10430 | (aarch64_displaced_step_b_cond): Update cond to use bool type. | |
10431 | (aarch64_displaced_step_cb): Likewise. | |
10432 | (aarch64_displaced_step_tb): Likewise. | |
10433 | ||
1ab139e5 LM |
10434 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
10435 | ||
10436 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging | |
10437 | output. | |
10438 | ||
0c271889 LM |
10439 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
10440 | ||
10441 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) | |
10442 | <pc_adjust>: Adjust the documentation. | |
10443 | (aarch64_displaced_step_fixup): Check if PC really moved before | |
10444 | adjusting it. | |
10445 | ||
4d89c1c7 TT |
10446 | 2020-01-19 Tom Tromey <tom@tromey.com> |
10447 | ||
10448 | * disasm.c (~gdb_disassembler): New destructor. | |
10449 | (gdb_buffered_insn_length): Call disassemble_free_target. | |
10450 | * disasm.h (class gdb_disassembler): Declare destructor. Use | |
10451 | DISABLE_COPY_AND_ASSIGN. | |
10452 | ||
c0ab21c2 TT |
10453 | 2020-01-19 Tom Tromey <tom@tromey.com> |
10454 | ||
10455 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. | |
10456 | (die_reader_func_ftype): Remove. | |
10457 | (cutu_reader): New class. | |
10458 | (dw2_get_file_names_reader): Remove "data" parameter. | |
10459 | (dw2_get_file_names): Use cutu_reader. | |
10460 | (create_debug_type_hash_table): Update. | |
10461 | (read_cutu_die_from_dwo): Update comment. | |
10462 | (lookup_dwo_unit): Add dwo_name parameter. | |
10463 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove | |
10464 | die_reader_func_ftype and data parameters. | |
10465 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. | |
10466 | Remove die_reader_func_ftype and data parameters. | |
10467 | (~cutu_reader): New; from init_cutu_and_read_dies. | |
10468 | (cutu_reader::cutu_reader): Rename from | |
10469 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype | |
10470 | and data parameters. | |
10471 | (init_cutu_and_read_dies_simple): Remove. | |
10472 | (struct process_psymtab_comp_unit_data): Remove. | |
10473 | (process_psymtab_comp_unit_reader): Remove data parameter; add | |
10474 | want_partial_unit and pretend_language parameters. | |
10475 | (process_psymtab_comp_unit): Use cutu_reader. | |
10476 | (build_type_psymtabs_reader): Remove data parameter. | |
10477 | (build_type_psymtabs_1): Use cutu_reader. | |
10478 | (process_skeletonless_type_unit): Likewise. | |
10479 | (load_partial_comp_unit_reader): Remove. | |
10480 | (load_partial_comp_unit): Use cutu_reader. | |
10481 | (load_full_comp_unit_reader): Remove. | |
10482 | (load_full_comp_unit): Use cutu_reader. | |
10483 | (struct create_dwo_cu_data): Remove. | |
10484 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and | |
10485 | dwo_unit parameters. | |
10486 | (create_cus_hash_table): Use cutu_reader. | |
10487 | (struct dwarf2_read_addr_index_data): Remove. | |
10488 | (dwarf2_read_addr_index_reader): Remove. | |
10489 | (dwarf2_read_addr_index): Use cutu_reader. | |
10490 | (read_signatured_type_reader): Remove. | |
10491 | (read_signatured_type): Use cutu_reader. | |
10492 | ||
45bbae5c TT |
10493 | 2020-01-19 Tom Tromey <tom@tromey.com> |
10494 | ||
10495 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. | |
10496 | * tui/tui-wingeneral.h (class tui_suppress_output): New. | |
10497 | (tui_wrefresh): Declare. | |
10498 | * tui/tui-wingeneral.c (suppress_output): New global. | |
10499 | (tui_suppress_output, ~tui_suppress_output): New constructor and | |
10500 | destructor. | |
10501 | (tui_wrefresh): New function. | |
10502 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. | |
10503 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. | |
10504 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare | |
10505 | method. | |
10506 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call | |
10507 | tui_wrefresh. | |
10508 | (tui_data_window::no_refresh): New method. | |
10509 | (tui_data_item_window::refresh_window): Call tui_wrefresh. | |
10510 | (tui_reg_command): Use tui_suppress_output | |
10511 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. | |
10512 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New | |
10513 | method. | |
10514 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. | |
10515 | ||
4f13c1c0 TT |
10516 | 2020-01-19 Tom Tromey <tom@tromey.com> |
10517 | ||
10518 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
10519 | Handle case where symtab is null. | |
10520 | ||
fa47e446 SM |
10521 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
10522 | ||
10523 | * linux-fork.c (one_fork_p): Simplify. | |
10524 | ||
26f42329 SM |
10525 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
10526 | ||
10527 | * top.c (struct qt_args): Remove. | |
10528 | (kill_or_detach): Change return type to void, replace `void *` | |
10529 | parameter with a proper one. | |
10530 | (print_inferior_quit_action): Likewise. | |
10531 | (quit_confirm): Use range-based for loop to iterate over inferiors. | |
10532 | (quit_force): Likewise. | |
10533 | ||
a9ac81b1 SM |
10534 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
10535 | ||
10536 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace | |
10537 | `void *` parameter with proper parameters. | |
10538 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. | |
10539 | (print_one_inferior): Change return type to void, replace `void *` | |
10540 | parameter with proper parameters. | |
10541 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over | |
10542 | inferiors. | |
10543 | (get_other_inferior): Remove. | |
10544 | (mi_cmd_remove_inferior): Use range-based loop to iterate over | |
10545 | inferiors. | |
10546 | ||
788eca49 SM |
10547 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
10548 | ||
10549 | * mi/mi-interp.c (report_initial_inferior): Remove. | |
10550 | (mi_interp::init): Use range-based for to iterate over inferiors. | |
10551 | ||
d9bc85b6 SM |
10552 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
10553 | ||
10554 | * python/py-inferior.c (build_inferior_list): Remove. | |
10555 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. | |
10556 | ||
40c94099 CB |
10557 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> |
10558 | ||
10559 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). | |
10560 | (btrace_stitch_trace): Likewise. | |
10561 | * charset.c (intermediate_encoding): Likewise (vaild). | |
10562 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). | |
10563 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). | |
10564 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). | |
10565 | ||
e0cdfe3c HD |
10566 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> |
10567 | ||
10568 | * windows-tdep.c (windows_get_tlb_type): | |
10569 | Add rtl_user_process_parameters type. | |
10570 | ||
790f1718 | 10571 | 2020-01-16 Pedro Alves <palves@redhat.com> |
aac66a4c | 10572 | Norbert Lange <nolange79@gmail.com> |
790f1718 PA |
10573 | |
10574 | PR build/24805 | |
10575 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. | |
10576 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) | |
10577 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) | |
10578 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) | |
10579 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) | |
10580 | (ps_plog): Redeclare exported functions with default visibility. | |
10581 | ||
3112ed97 NA |
10582 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> |
10583 | ||
10584 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle | |
10585 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. | |
10586 | ||
8dc3273e SM |
10587 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> |
10588 | ||
10589 | * infcmd.c (post_create_inferior): Use get_thread_regcache | |
10590 | instead of get_current_regcache. | |
10591 | ||
ff47f4f0 TT |
10592 | 2020-01-14 Tom Tromey <tom@tromey.com> |
10593 | ||
10594 | PR symtab/12535: | |
10595 | * python/python.c (gdbpy_decode_line): Treat empty string the same | |
10596 | as no argument. | |
10597 | ||
975f45b7 TT |
10598 | 2020-01-14 Tom Tromey <tom@tromey.com> |
10599 | ||
10600 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). | |
10601 | ||
25e57356 TT |
10602 | 2020-01-14 Tom Tromey <tom@tromey.com> |
10603 | ||
10604 | * nat/linux-btrace.c: Don't include <config.h>. | |
10605 | * nat/linux-ptrace.c: Don't include <config.h>. | |
10606 | * nat/x86-linux-dregs.c: Don't include <config.h>. | |
10607 | ||
05ea2a05 TT |
10608 | 2020-01-14 Tom Tromey <tom@tromey.com> |
10609 | ||
10610 | * configure: Rebuild. | |
10611 | * configure.ac: Move many checks to ../gdbsupport/common.m4. | |
10612 | ||
01027315 TT |
10613 | 2020-01-14 Tom Tromey <tom@tromey.com> |
10614 | ||
10615 | * nat/x86-linux-dregs.c: Include configh.h. | |
10616 | * nat/linux-ptrace.c: Include configh.h. | |
10617 | * nat/linux-btrace.c: Include configh.h. | |
10618 | * defs.h: Include config.h, bfd.h. | |
10619 | * configure.ac: Don't source common.host. | |
10620 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. | |
10621 | * configure: Rebuild. | |
10622 | * acinclude.m4: Update path. | |
10623 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. | |
10624 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. | |
10625 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. | |
10626 | (CLIBS): Add LIBSUPPORT. | |
10627 | (CDEPS): Likewise. | |
10628 | (COMMON_SFILES): Remove gdbsupport files. | |
10629 | (HFILES_NO_SRCDIR): Likewise. | |
10630 | (stamp-version): Update path to create-version.sh. | |
10631 | (ALLDEPFILES): Remove gdbsupport files. | |
10632 | ||
b2ceabe8 TT |
10633 | 2020-01-14 Tom Tromey <tom@tromey.com> |
10634 | ||
10635 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and | |
10636 | USE_WIN32API when needed. | |
10637 | * configure.ac (USE_WIN32API): Don't define. | |
10638 | (WIN32LIBS): Use WIN32APILIBS. | |
10639 | * configure: Rebuild. | |
10640 | ||
25c51f71 TT |
10641 | 2020-01-14 Tom Tromey <tom@tromey.com> |
10642 | ||
10643 | * configure: Rebuild. | |
10644 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. | |
10645 | ||
717c684d BE |
10646 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
10647 | ||
10648 | * skip.c (skip_function_command): Make skip w/o arguments use the | |
10649 | name of the inlined function if pc is inside any inlined function. | |
10650 | ||
7da6a5b9 LM |
10651 | 2020-01-14 Luis Machado <luis.machado@linaro.org> |
10652 | ||
10653 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. | |
10654 | * infrun.c (resume_1): Likewise. | |
10655 | (handle_inferior_event): Remove stale comment. | |
10656 | * linux-nat.c (linux_nat_target::resume): Update comments. | |
10657 | (save_stop_reason): Likewise. | |
10658 | (linux_nat_filter_event): Likewise. | |
10659 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. | |
10660 | ||
44e4c775 AB |
10661 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
10662 | ||
10663 | * elfread.c (record_minimal_symbol): Set section index to 0 for | |
10664 | non-allocatable sections. | |
10665 | ||
18a8505e AT |
10666 | |
10667 | 2020-01-13 Ali Tamur <tamur@google.com> | |
10668 | ||
10669 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. | |
10670 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base | |
10671 | to gdb::optional. Update comments. | |
10672 | (dwo_file): Update comments. | |
10673 | (read_attribute): Update API to take an additional out parameter, | |
10674 | need_reprocess. This is used to mark attributes that need other | |
10675 | attributes (e.g. str_offsets_base) for correct computation which may not | |
10676 | have been read yet. | |
10677 | (read_attribute_reprocess): New function declaration. | |
10678 | (read_addr_index): Likewise. | |
10679 | (read_dwo_str_index): Likewise. | |
10680 | (read_stub_str_index): Likewise. | |
10681 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. | |
10682 | (lookup_addr_base): New function definition. | |
10683 | (lookup_ranges_base): Likewise. | |
10684 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, | |
10685 | lookup_ranges_base. | |
10686 | (init_cutu_and_read_dies): Update comments. | |
10687 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile | |
10688 | unit. This is used to inherit parent's str_offsets_base and addr_base. | |
10689 | Update comments. | |
10690 | (init_cutu_and_read_dies_simple): Reflect API changes. | |
10691 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. | |
10692 | (create_cus_hash_table): Change API to take parent compile unit. | |
10693 | Reflect API changes. | |
10694 | (open_and_init_dwo_file): Reflect API changes. | |
10695 | (dwarf2_get_pc_bounds): Update comments. | |
10696 | (dwarf2_record_block_ranges): Likewise. | |
10697 | (read_full_die_1): Change implementation to reprocess attributes that | |
10698 | need str_offsets_base and addr_base. | |
10699 | (partial_die_info::read): Likewise. | |
10700 | (read_attribute_reprocess): New function definition. | |
10701 | (read_attribute_value): Change API to take an additional out parameter, | |
10702 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error | |
10703 | when a non-dwo compile unit has index based attributes. | |
10704 | (read_attribute): Reflect API changes. | |
10705 | (read_addr_index_1): Reflect API changes. Update comments. | |
10706 | (dwarf2_read_addr_index_data): Reflect API changes. | |
10707 | (dwarf2_read_addr_index): Likewise. | |
10708 | (read_str_index): Change API and implementation. This becomes a helper | |
10709 | to be used by the new string index related methods. Update error | |
10710 | message and comments. | |
10711 | (read_dwo_str_index): New function definition. | |
10712 | (read_stub_str_index): Likewise. | |
10713 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. | |
10714 | * symfile.h (dwarf2_debug_sections): Likewise. | |
10715 | * xcoffread.c (dwarf2_debug_sections): Likewise. | |
10716 | ||
0cac9354 SM |
10717 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
10718 | ||
10719 | * gdbcore.h (struct core_fns) <core_read_registers>: Change | |
10720 | core_reg_sect type to gdb_byte *. | |
10721 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. | |
10722 | * cris-tdep.c (fetch_core_registers): Likewise. | |
10723 | * corelow.c (core_target::get_core_register_section): Change | |
10724 | type of `contents` to gdb::byte_vector. | |
10725 | ||
9a6d629c AB |
10726 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
10727 | ||
10728 | * tui/tui-wingeneral.c (box_win): Position the title in the center | |
10729 | of the border. | |
10730 | ||
d8b2f9e3 SM |
10731 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
10732 | ||
10733 | * corelow.c (core_target::get_core_register_section): Use | |
10734 | std::vector instead of alloca. | |
10735 | ||
bb564c58 SM |
10736 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
10737 | ||
10738 | * warning.m4: Add -Wmissing-declarations to build_warnings. | |
10739 | * configure: Re-generate. | |
10740 | ||
6b366111 SM |
10741 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
10742 | ||
10743 | * python/python.c (init__gdb_module): Add declaration. | |
10744 | ||
6c265988 SM |
10745 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
10746 | ||
10747 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. | |
10748 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. | |
10749 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. | |
10750 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. | |
10751 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. | |
10752 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. | |
10753 | * ada-exp.y (_initialize_ada_exp): Add declaration. | |
10754 | * ada-lang.c (_initialize_ada_language): Add declaration. | |
10755 | * ada-tasks.c (_initialize_tasks): Add declaration. | |
10756 | * agent.c (_initialize_agent): Add declaration. | |
10757 | * aix-thread.c (_initialize_aix_thread): Add declaration. | |
10758 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. | |
10759 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. | |
10760 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. | |
10761 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. | |
10762 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. | |
10763 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. | |
10764 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. | |
10765 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. | |
10766 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. | |
10767 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. | |
10768 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. | |
10769 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. | |
10770 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. | |
10771 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. | |
10772 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. | |
10773 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. | |
10774 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. | |
10775 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. | |
10776 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. | |
10777 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. | |
10778 | * annotate.c (_initialize_annotate): Add declaration. | |
10779 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. | |
10780 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. | |
10781 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. | |
10782 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. | |
10783 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. | |
10784 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. | |
10785 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. | |
10786 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. | |
10787 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. | |
10788 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. | |
10789 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. | |
10790 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. | |
10791 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. | |
10792 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. | |
10793 | * auto-load.c (_initialize_auto_load): Add declaration. | |
10794 | * auxv.c (_initialize_auxv): Add declaration. | |
10795 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. | |
10796 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. | |
10797 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. | |
10798 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. | |
10799 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. | |
10800 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. | |
10801 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. | |
10802 | * breakpoint.c (_initialize_breakpoint): Add declaration. | |
10803 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. | |
10804 | * btrace.c (_initialize_btrace): Add declaration. | |
10805 | * charset.c (_initialize_charset): Add declaration. | |
10806 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. | |
10807 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. | |
10808 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. | |
10809 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. | |
10810 | * cli/cli-script.c (_initialize_cli_script): Add declaration. | |
10811 | * cli/cli-style.c (_initialize_cli_style): Add declaration. | |
10812 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. | |
10813 | * coffread.c (_initialize_coffread): Add declaration. | |
10814 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. | |
10815 | * compile/compile.c (_initialize_compile): Add declaration. | |
10816 | * complaints.c (_initialize_complaints): Add declaration. | |
10817 | * completer.c (_initialize_completer): Add declaration. | |
10818 | * copying.c (_initialize_copying): Add declaration. | |
10819 | * corefile.c (_initialize_core): Add declaration. | |
10820 | * corelow.c (_initialize_corelow): Add declaration. | |
10821 | * cp-abi.c (_initialize_cp_abi): Add declaration. | |
10822 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. | |
10823 | * cp-support.c (_initialize_cp_support): Add declaration. | |
10824 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. | |
10825 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. | |
10826 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. | |
10827 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. | |
10828 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. | |
10829 | * ctfread.c (_initialize_ctfread): Add declaration. | |
10830 | * d-lang.c (_initialize_d_language): Add declaration. | |
10831 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. | |
10832 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. | |
10833 | * dbxread.c (_initialize_dbxread): Add declaration. | |
10834 | * dcache.c (_initialize_dcache): Add declaration. | |
10835 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. | |
10836 | * disasm.c (_initialize_disasm): Add declaration. | |
10837 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. | |
10838 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. | |
10839 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. | |
10840 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. | |
10841 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. | |
10842 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. | |
10843 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. | |
10844 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. | |
10845 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. | |
10846 | * elfread.c (_initialize_elfread): Add declaration. | |
10847 | * exec.c (_initialize_exec): Add declaration. | |
10848 | * extension.c (_initialize_extension): Add declaration. | |
10849 | * f-lang.c (_initialize_f_language): Add declaration. | |
10850 | * f-valprint.c (_initialize_f_valprint): Add declaration. | |
10851 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. | |
10852 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. | |
10853 | * filesystem.c (_initialize_filesystem): Add declaration. | |
10854 | * findcmd.c (_initialize_mem_search): Add declaration. | |
10855 | * findvar.c (_initialize_findvar): Add declaration. | |
10856 | * fork-child.c (_initialize_fork_child): Add declaration. | |
10857 | * frame-base.c (_initialize_frame_base): Add declaration. | |
10858 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. | |
10859 | * frame.c (_initialize_frame): Add declaration. | |
10860 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. | |
10861 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. | |
10862 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. | |
10863 | * gcore.c (_initialize_gcore): Add declaration. | |
10864 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. | |
10865 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. | |
10866 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. | |
10867 | * gdbarch.c (_initialize_gdbarch): Add declaration. | |
10868 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. | |
10869 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. | |
10870 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. | |
10871 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. | |
10872 | * go-lang.c (_initialize_go_language): Add declaration. | |
10873 | * go32-nat.c (_initialize_go32_nat): Add declaration. | |
10874 | * guile/guile.c (_initialize_guile): Add declaration. | |
10875 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. | |
10876 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. | |
10877 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. | |
10878 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. | |
10879 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. | |
10880 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. | |
10881 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. | |
10882 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. | |
10883 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. | |
10884 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. | |
10885 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. | |
10886 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. | |
10887 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. | |
10888 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. | |
10889 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. | |
10890 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. | |
10891 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. | |
10892 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. | |
10893 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. | |
10894 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. | |
10895 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. | |
10896 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. | |
10897 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. | |
10898 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. | |
10899 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. | |
10900 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. | |
10901 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. | |
10902 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. | |
10903 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. | |
10904 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. | |
10905 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. | |
10906 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. | |
10907 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. | |
10908 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. | |
10909 | * infcall.c (_initialize_infcall): Add declaration. | |
10910 | * infcmd.c (_initialize_infcmd): Add declaration. | |
10911 | * inflow.c (_initialize_inflow): Add declaration. | |
10912 | * infrun.c (_initialize_infrun): Add declaration. | |
10913 | * interps.c (_initialize_interpreter): Add declaration. | |
10914 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. | |
10915 | * jit.c (_initialize_jit): Add declaration. | |
10916 | * language.c (_initialize_language): Add declaration. | |
10917 | * linux-fork.c (_initialize_linux_fork): Add declaration. | |
10918 | * linux-nat.c (_initialize_linux_nat): Add declaration. | |
10919 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. | |
10920 | * linux-thread-db.c (_initialize_thread_db): Add declaration. | |
10921 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. | |
10922 | * m2-lang.c (_initialize_m2_language): Add declaration. | |
10923 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. | |
10924 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. | |
10925 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. | |
10926 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. | |
10927 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. | |
10928 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. | |
10929 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. | |
10930 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. | |
10931 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. | |
10932 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. | |
10933 | * machoread.c (_initialize_machoread): Add declaration. | |
10934 | * macrocmd.c (_initialize_macrocmd): Add declaration. | |
10935 | * macroscope.c (_initialize_macroscope): Add declaration. | |
10936 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. | |
10937 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. | |
10938 | * maint.c (_initialize_maint_cmds): Add declaration. | |
10939 | * mdebugread.c (_initialize_mdebugread): Add declaration. | |
10940 | * memattr.c (_initialize_mem): Add declaration. | |
10941 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. | |
10942 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. | |
10943 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. | |
10944 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. | |
10945 | * mi/mi-main.c (_initialize_mi_main): Add declaration. | |
10946 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. | |
10947 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. | |
10948 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. | |
10949 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. | |
10950 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. | |
10951 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. | |
10952 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. | |
10953 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. | |
10954 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. | |
10955 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. | |
10956 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. | |
10957 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. | |
10958 | * mipsread.c (_initialize_mipsread): Add declaration. | |
10959 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. | |
10960 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. | |
10961 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. | |
10962 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. | |
10963 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. | |
10964 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. | |
10965 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. | |
10966 | * nto-procfs.c (_initialize_procfs): Add declaration. | |
10967 | * objc-lang.c (_initialize_objc_language): Add declaration. | |
10968 | * observable.c (_initialize_observer): Add declaration. | |
10969 | * opencl-lang.c (_initialize_opencl_language): Add declaration. | |
10970 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. | |
10971 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. | |
10972 | * osabi.c (_initialize_gdb_osabi): Add declaration. | |
10973 | * osdata.c (_initialize_osdata): Add declaration. | |
10974 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. | |
10975 | * parse.c (_initialize_parse): Add declaration. | |
10976 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. | |
10977 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. | |
10978 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. | |
10979 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. | |
10980 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. | |
10981 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. | |
10982 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. | |
10983 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. | |
10984 | * printcmd.c (_initialize_printcmd): Add declaration. | |
10985 | * probe.c (_initialize_probe): Add declaration. | |
10986 | * proc-api.c (_initialize_proc_api): Add declaration. | |
10987 | * proc-events.c (_initialize_proc_events): Add declaration. | |
10988 | * proc-service.c (_initialize_proc_service): Add declaration. | |
10989 | * procfs.c (_initialize_procfs): Add declaration. | |
10990 | * producer.c (_initialize_producer): Add declaration. | |
10991 | * psymtab.c (_initialize_psymtab): Add declaration. | |
10992 | * python/python.c (_initialize_python): Add declaration. | |
10993 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. | |
10994 | * record-btrace.c (_initialize_record_btrace): Add declaration. | |
10995 | * record-full.c (_initialize_record_full): Add declaration. | |
10996 | * record.c (_initialize_record): Add declaration. | |
10997 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. | |
10998 | * regcache.c (_initialize_regcache): Add declaration. | |
10999 | * reggroups.c (_initialize_reggroup): Add declaration. | |
11000 | * remote-notif.c (_initialize_notif): Add declaration. | |
11001 | * remote-sim.c (_initialize_remote_sim): Add declaration. | |
11002 | * remote.c (_initialize_remote): Add declaration. | |
11003 | * reverse.c (_initialize_reverse): Add declaration. | |
11004 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. | |
11005 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. | |
11006 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. | |
11007 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. | |
11008 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. | |
11009 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. | |
11010 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. | |
11011 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): | |
11012 | Add declaration. | |
11013 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. | |
11014 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. | |
11015 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. | |
11016 | * rust-exp.y (_initialize_rust_exp): Add declaration. | |
11017 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. | |
11018 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. | |
11019 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. | |
11020 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. | |
11021 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. | |
11022 | * score-tdep.c (_initialize_score_tdep): Add declaration. | |
11023 | * ser-go32.c (_initialize_ser_dos): Add declaration. | |
11024 | * ser-mingw.c (_initialize_ser_windows): Add declaration. | |
11025 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. | |
11026 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. | |
11027 | * ser-uds.c (_initialize_ser_socket): Add declaration. | |
11028 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. | |
11029 | * serial.c (_initialize_serial): Add declaration. | |
11030 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. | |
11031 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. | |
11032 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. | |
11033 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. | |
11034 | * skip.c (_initialize_step_skip): Add declaration. | |
11035 | * sol-thread.c (_initialize_sol_thread): Add declaration. | |
11036 | * solib-aix.c (_initialize_solib_aix): Add declaration. | |
11037 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. | |
11038 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. | |
11039 | * solib-frv.c (_initialize_frv_solib): Add declaration. | |
11040 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. | |
11041 | * solib-target.c (_initialize_solib_target): Add declaration. | |
11042 | * solib.c (_initialize_solib): Add declaration. | |
11043 | * source-cache.c (_initialize_source_cache): Add declaration. | |
11044 | * source.c (_initialize_source): Add declaration. | |
11045 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. | |
11046 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. | |
11047 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. | |
11048 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. | |
11049 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. | |
11050 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. | |
11051 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. | |
11052 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. | |
11053 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. | |
11054 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. | |
11055 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. | |
11056 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. | |
11057 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. | |
11058 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. | |
11059 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. | |
11060 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. | |
11061 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. | |
11062 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. | |
11063 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. | |
11064 | * stabsread.c (_initialize_stabsread): Add declaration. | |
11065 | * stack.c (_initialize_stack): Add declaration. | |
11066 | * stap-probe.c (_initialize_stap_probe): Add declaration. | |
11067 | * std-regs.c (_initialize_frame_reg): Add declaration. | |
11068 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. | |
11069 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. | |
11070 | * symfile.c (_initialize_symfile): Add declaration. | |
11071 | * symmisc.c (_initialize_symmisc): Add declaration. | |
11072 | * symtab.c (_initialize_symtab): Add declaration. | |
11073 | * target.c (_initialize_target): Add declaration. | |
11074 | * target-connection.c (_initialize_target_connection): Add | |
11075 | declaration. | |
11076 | * target-dcache.c (_initialize_target_dcache): Add declaration. | |
11077 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. | |
11078 | * thread.c (_initialize_thread): Add declaration. | |
11079 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. | |
11080 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. | |
11081 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. | |
11082 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. | |
11083 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. | |
11084 | * tracectf.c (_initialize_ctf): Add declaration. | |
11085 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. | |
11086 | * tracefile.c (_initialize_tracefile): Add declaration. | |
11087 | * tracepoint.c (_initialize_tracepoint): Add declaration. | |
11088 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. | |
11089 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. | |
11090 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. | |
11091 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. | |
11092 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. | |
11093 | * tui/tui-win.c (_initialize_tui_win): Add declaration. | |
11094 | * tui/tui.c (_initialize_tui): Add declaration. | |
11095 | * typeprint.c (_initialize_typeprint): Add declaration. | |
11096 | * ui-style.c (_initialize_ui_style): Add declaration. | |
11097 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. | |
11098 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. | |
11099 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. | |
11100 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. | |
11101 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. | |
11102 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. | |
11103 | * unittests/filtered_iterator-selftests.c | |
11104 | (_initialize_filtered_iterator_selftests): Add declaration. | |
11105 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. | |
11106 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. | |
11107 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. | |
11108 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. | |
11109 | * unittests/main-thread-selftests.c | |
11110 | (_initialize_main_thread_selftests): Add declaration. | |
11111 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. | |
11112 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. | |
11113 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. | |
11114 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. | |
11115 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. | |
11116 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. | |
11117 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. | |
11118 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. | |
11119 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. | |
11120 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. | |
11121 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. | |
11122 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. | |
11123 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. | |
11124 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. | |
11125 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add | |
11126 | declaration. | |
11127 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. | |
11128 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. | |
11129 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. | |
11130 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. | |
11131 | * user-regs.c (_initialize_user_regs): Add declaration. | |
11132 | * utils.c (_initialize_utils): Add declaration. | |
11133 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. | |
11134 | * valops.c (_initialize_valops): Add declaration. | |
11135 | * valprint.c (_initialize_valprint): Add declaration. | |
11136 | * value.c (_initialize_values): Add declaration. | |
11137 | * varobj.c (_initialize_varobj): Add declaration. | |
11138 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. | |
11139 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. | |
11140 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. | |
11141 | * windows-nat.c (_initialize_windows_nat): Add declaration. | |
11142 | (_initialize_check_for_gdb_ini): Add declaration. | |
11143 | (_initialize_loadable): Add declaration. | |
11144 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. | |
11145 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. | |
11146 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. | |
11147 | * xcoffread.c (_initialize_xcoffread): Add declaration. | |
11148 | * xml-support.c (_initialize_xml_support): Add declaration. | |
11149 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. | |
11150 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. | |
11151 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. | |
11152 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. | |
11153 | ||
e2de1eec SM |
11154 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
11155 | ||
11156 | * regformats/regdat.sh: Generate declaration for init function. | |
11157 | ||
e0037b4c SM |
11158 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
11159 | ||
11160 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move | |
11161 | up. | |
11162 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, | |
11163 | close_one_inferior>: New methods. | |
11164 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, | |
11165 | pass down target to find_inferior_pid. | |
11166 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): | |
11167 | Pass down target to find_inferior_ptid. | |
11168 | (gdbsim_target::create_inferior): Pass down target to | |
11169 | add_thread_silent. | |
11170 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass | |
11171 | target down to find_inferior_ptid and switch_to_thread. | |
11172 | (gdbsim_target::close): Update to call close_one_inferior. | |
11173 | (struct resume_data): Remove. | |
11174 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments | |
11175 | directly, rather than through a void pointer. | |
11176 | (gdbsim_target::resume): Update to call resume_one_inferior. | |
11177 | ||
58920b5b SM |
11178 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
11179 | ||
11180 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. | |
11181 | ||
4ec89149 PA |
11182 | 2020-01-12 Pedro Alves <palves@redhat.com> |
11183 | ||
11184 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent | |
11185 | directly for the current inferior instead of | |
11186 | discard_all_inferiors. | |
11187 | (discard_all_inferiors): Delete. | |
11188 | ||
7c392d1d TT |
11189 | 2020-01-11 Tom Tromey <tom@tromey.com> |
11190 | ||
11191 | * tui/tui-wingeneral.c (box_win): Check cli_styling. | |
11192 | * tui/tui-winsource.c (tui_source_window_base::refill): Use | |
11193 | deprecated_safe_get_selected_frame. | |
11194 | ||
d9ebdab7 TBA |
11195 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
11196 | ||
11197 | * inferior.c (print_inferior): Switch inferior before printing it. | |
11198 | ||
f3c469b9 PA |
11199 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> |
11200 | Pedro Alves <palves@redhat.com> | |
11201 | ||
11202 | * progspace-and-thread.c (switch_to_program_space_and_thread): | |
11203 | Assert there's an inferior for PSPACE. Use | |
11204 | switch_to_inferior_no_thread to switch the inferior too. | |
11205 | * progspace.c (program_space::~program_space): Call | |
11206 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. | |
11207 | (program_space::free_all_objfiles): Don't call clear_symtab_users | |
11208 | here. | |
11209 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. | |
11210 | ||
65c574f6 PA |
11211 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11212 | ||
11213 | * NEWS: Mention multi-target debugging, "info connections", and | |
11214 | "add-inferior -no-connection". | |
11215 | ||
2f4fcf00 PA |
11216 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11217 | ||
11218 | * infrun.c: Include "target-connection.h". | |
11219 | (check_multi_target_resumption): New. | |
11220 | (proceed): Call it. | |
11221 | * target-connection.c (make_target_connection_string): Make | |
11222 | extern. | |
11223 | * target-connection.h (make_target_connection_string): Declare. | |
11224 | ||
121b3efd PA |
11225 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11226 | ||
11227 | * Makefile.in (COMMON_SFILES): Add target-connection.c. | |
11228 | * inferior.c (uiout_field_connection): New function. | |
11229 | (print_inferior): Add new "connection-id" column. | |
11230 | (add_inferior_command): Show connection number/string of added | |
11231 | inferior. | |
11232 | * process-stratum-target.h | |
11233 | (process_stratum_target::connection_string): New virtual method. | |
11234 | (process_stratum_target::connection_number): New field. | |
11235 | * remote.c (remote_target::connection_string): New override. | |
11236 | * target-connection.c: New file. | |
11237 | * target-connection.h: New file. | |
11238 | * target.c (decref_target): Remove process_stratum targets from | |
11239 | the connection list. | |
11240 | (target_stack::push): Add process_stratum targets to the | |
11241 | connection list. | |
11242 | ||
4f837581 PA |
11243 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11244 | ||
11245 | Revert: | |
11246 | 2016-04-12 Pedro Alves <palves@redhat.com> | |
11247 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
11248 | Remove references to name. | |
11249 | * serial.h (struct serial) <name>: Delete. | |
11250 | ||
f4ec508e PA |
11251 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11252 | ||
11253 | * gdbarch-selftests.c (register_to_value_test): Remove "target | |
11254 | already pushed" check. | |
11255 | ||
5b6d1e4f PA |
11256 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11257 | John Baldwin <jhb@FreeBSD.org> | |
11258 | ||
11259 | * aarch64-linux-nat.c | |
11260 | (aarch64_linux_nat_target::thread_architecture): Adjust. | |
11261 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. | |
11262 | (task_command_1): Likewise. | |
11263 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) | |
11264 | (aix_thread_target::wait, aix_thread_target::fetch_registers) | |
11265 | (aix_thread_target::store_registers) | |
11266 | (aix_thread_target::thread_alive): Adjust. | |
11267 | * amd64-fbsd-tdep.c: Include "inferior.h". | |
11268 | (amd64fbsd_get_thread_local_address): Pass down target. | |
11269 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle | |
11270 | thread's gdbarch instead of target_gdbarch. | |
11271 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to | |
11272 | get_last_target_status. | |
11273 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
11274 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all | |
11275 | inferiors. | |
11276 | (update_inserted_breakpoint_locations): Skip if inferiors with no | |
11277 | execution. | |
11278 | (update_global_location_list): When handling moribund locations, | |
11279 | find representative inferior for location's pspace, and use thread | |
11280 | count of its process_stratum target. | |
11281 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. | |
11282 | * bsd-uthread.c (bsd_uthread_target::wait): Use | |
11283 | as_process_stratum_target and adjust thread_change_ptid and | |
11284 | add_thread calls. | |
11285 | (bsd_uthread_target::update_thread_list): Use | |
11286 | as_process_stratum_target and adjust find_thread_ptid, | |
11287 | thread_change_ptid and add_thread calls. | |
11288 | * btrace.c (maint_btrace_packet_history_cmd): Adjust | |
11289 | find_thread_ptid call. | |
11290 | * corelow.c (add_to_thread_list): Adjust add_thread call. | |
11291 | (core_target_open): Adjust add_thread_silent and thread_count | |
11292 | calls. | |
11293 | (core_target::pid_to_str): Adjust find_inferior_ptid call. | |
11294 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. | |
11295 | * event-top.c (async_disconnect): Pop targets from all inferiors. | |
11296 | * exec.c (add_target_sections): Push exec target on all inferiors | |
11297 | sharing the program space. | |
11298 | (remove_target_sections): Remove the exec target from all | |
11299 | inferiors sharing the program space. | |
11300 | (exec_on_vfork): New. | |
11301 | * exec.h (exec_on_vfork): Declare. | |
11302 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. | |
11303 | Pass it down. | |
11304 | (fbsd_nat_target::update_thread_list): Adjust. | |
11305 | (fbsd_nat_target::resume): Adjust. | |
11306 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it | |
11307 | down. | |
11308 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. | |
11309 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust | |
11310 | get_thread_arch_regcache call. | |
11311 | * fork-child.c (gdb_startup_inferior): Pass target down to | |
11312 | startup_inferior and set_executing. | |
11313 | * gdbthread.h (struct process_stratum_target): Forward declare. | |
11314 | (add_thread, add_thread_silent, add_thread_with_info) | |
11315 | (in_thread_list): Add process_stratum_target parameter. | |
11316 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
11317 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target | |
11318 | parameter. | |
11319 | (all_threads()): Delete overload. | |
11320 | (all_threads, all_non_exited_threads): Add process_stratum_target | |
11321 | parameter. | |
11322 | (all_threads_safe): Use brace initialization. | |
11323 | (thread_count): Add process_stratum_target parameter. | |
11324 | (set_resumed, set_running, set_stop_requested, set_executing) | |
11325 | (threads_are_executing, finish_thread_state): Add | |
11326 | process_stratum_target parameter. | |
11327 | (switch_to_thread): Use is_current_thread. | |
11328 | * i386-fbsd-tdep.c: Include "inferior.h". | |
11329 | (i386fbsd_get_thread_local_address): Pass down target. | |
11330 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. | |
11331 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove | |
11332 | have_inferiors check. | |
11333 | * inf-ptrace.c (inf_ptrace_target::create_inferior) | |
11334 | (inf_ptrace_target::attach): Adjust. | |
11335 | * infcall.c (run_inferior_call): Adjust. | |
11336 | * infcmd.c (run_command_1): Pass target to | |
11337 | scoped_finish_thread_state. | |
11338 | (proceed_thread_callback): Skip inferiors with no execution. | |
11339 | (continue_command): Rename 'all_threads' local to avoid hiding | |
11340 | 'all_threads' function. Adjust get_last_target_status call. | |
11341 | (prepare_one_step): Adjust set_running call. | |
11342 | (signal_command): Use user_visible_resume_target. Compare thread | |
11343 | pointers instead of inferior_ptid. | |
11344 | (info_program_command): Adjust to pass down target. | |
11345 | (attach_command): Mark target's 'thread_executing' flag. | |
11346 | (stop_current_target_threads_ns): New, factored out from ... | |
11347 | (interrupt_target_1): ... this. Switch inferior before making | |
11348 | target calls. | |
11349 | * inferior-iter.h | |
11350 | (struct all_inferiors_iterator, struct all_inferiors_range) | |
11351 | (struct all_inferiors_safe_range) | |
11352 | (struct all_non_exited_inferiors_range): Filter on | |
11353 | process_stratum_target too. Remove explicit. | |
11354 | * inferior.c (inferior::inferior): Push dummy target on target | |
11355 | stack. | |
11356 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): | |
11357 | Add process_stratum_target parameter, and pass it down. | |
11358 | (have_live_inferiors): Adjust. | |
11359 | (switch_to_inferior_and_push_target): New. | |
11360 | (add_inferior_command, clone_inferior_command): Handle | |
11361 | "-no-connection" parameter. Use | |
11362 | switch_to_inferior_and_push_target. | |
11363 | (_initialize_inferior): Mention "-no-connection" option in | |
11364 | the help of "add-inferior" and "clone-inferior" commands. | |
11365 | * inferior.h: Include "process-stratum-target.h". | |
11366 | (interrupt_target_1): Use bool. | |
11367 | (struct inferior) <push_target, unpush_target, target_is_pushed, | |
11368 | find_target_beneath, top_target, process_target, target_at, | |
11369 | m_stack>: New. | |
11370 | (discard_all_inferiors): Delete. | |
11371 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) | |
11372 | (all_inferiors, all_non_exited_inferiors): Add | |
11373 | process_stratum_target parameter. | |
11374 | * infrun.c: Include "gdb_select.h" and <unordered_map>. | |
11375 | (target_last_proc_target): New global. | |
11376 | (follow_fork_inferior): Push target on new inferior. Pass target | |
11377 | to add_thread_silent. Call exec_on_vfork. Handle target's | |
11378 | reference count. | |
11379 | (follow_fork): Adjust get_last_target_status call. Also consider | |
11380 | target. | |
11381 | (follow_exec): Push target on new inferior. | |
11382 | (struct execution_control_state) <target>: New field. | |
11383 | (user_visible_resume_target): New. | |
11384 | (do_target_resume): Call target_async. | |
11385 | (resume_1): Set target's threads_executing flag. Consider resume | |
11386 | target. | |
11387 | (commit_resume_all_targets): New. | |
11388 | (proceed): Also consider resume target. Skip threads of inferiors | |
11389 | with no execution. Commit resumtion in all targets. | |
11390 | (start_remote): Pass current inferior to wait_for_inferior. | |
11391 | (infrun_thread_stop_requested): Consider target as well. Pass | |
11392 | thread_info pointer to clear_inline_frame_state instead of ptid. | |
11393 | (infrun_thread_thread_exit): Consider target as well. | |
11394 | (random_pending_event_thread): New inferior parameter. Use it. | |
11395 | (do_target_wait): Rename to ... | |
11396 | (do_target_wait_1): ... this. Add inferior parameter, and pass it | |
11397 | down. | |
11398 | (threads_are_resumed_pending_p, do_target_wait): New. | |
11399 | (prepare_for_detach): Adjust calls. | |
11400 | (wait_for_inferior): New inferior parameter. Handle it. Use | |
11401 | do_target_wait_1 instead of do_target_wait. | |
11402 | (fetch_inferior_event): Adjust. Switch to representative | |
11403 | inferior. Pass target down. | |
11404 | (set_last_target_status): Add process_stratum_target parameter. | |
11405 | Save target in global. | |
11406 | (get_last_target_status): Add process_stratum_target parameter and | |
11407 | handle it. | |
11408 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. | |
11409 | (context_switch): Check inferior_ptid == null_ptid before calling | |
11410 | inferior_thread(). | |
11411 | (get_inferior_stop_soon): Pass down target. | |
11412 | (wait_one): Rename to ... | |
11413 | (poll_one_curr_target): ... this. | |
11414 | (struct wait_one_event): New. | |
11415 | (wait_one): New. | |
11416 | (stop_all_threads): Adjust. | |
11417 | (handle_no_resumed, handle_inferior_event): Adjust to consider the | |
11418 | event's target. | |
11419 | (switch_back_to_stepped_thread): Also consider target. | |
11420 | (print_stop_event): Update. | |
11421 | (normal_stop): Update. Also consider the resume target. | |
11422 | * infrun.h (wait_for_inferior): Remove declaration. | |
11423 | (user_visible_resume_target): New declaration. | |
11424 | (get_last_target_status, set_last_target_status): New | |
11425 | process_stratum_target parameter. | |
11426 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
11427 | process_stratum_target parameter, and use it. | |
11428 | (clear_inline_frame_state (thread_info*)): New. | |
11429 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
11430 | process_stratum_target parameter. | |
11431 | (clear_inline_frame_state (thread_info*)): Declare. | |
11432 | * linux-fork.c (delete_checkpoint_command): Pass target down to | |
11433 | find_thread_ptid. | |
11434 | (checkpoint_command): Adjust. | |
11435 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread | |
11436 | instead of just tweaking inferior_ptid. | |
11437 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. | |
11438 | (exit_lwp): Pass target down to find_thread_ptid. | |
11439 | (attach_proc_task_lwp_callback): Pass target down to | |
11440 | add_thread/set_running/set_executing. | |
11441 | (linux_nat_target::attach): Pass target down to | |
11442 | thread_change_ptid. | |
11443 | (get_detach_signal): Pass target down to find_thread_ptid. | |
11444 | Consider last target status's target. | |
11445 | (linux_resume_one_lwp_throw, resume_lwp) | |
11446 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) | |
11447 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) | |
11448 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. | |
11449 | (linux_nat_target::async_wait_fd): New. | |
11450 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass | |
11451 | target down. | |
11452 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. | |
11453 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. | |
11454 | * linux-thread-db.c (struct thread_db_info::process_target): New | |
11455 | field. | |
11456 | (add_thread_db_info): Save target. | |
11457 | (get_thread_db_info): New process_stratum_target parameter. Also | |
11458 | match target. | |
11459 | (delete_thread_db_info): New process_stratum_target parameter. | |
11460 | Also match target. | |
11461 | (thread_from_lwp): Adjust to pass down target. | |
11462 | (thread_db_notice_clone): Pass down target. | |
11463 | (check_thread_db_callback): Pass down target. | |
11464 | (try_thread_db_load_1): Always push the thread_db target. | |
11465 | (try_thread_db_load, record_thread): Pass target down. | |
11466 | (thread_db_target::detach): Pass target down. Always unpush the | |
11467 | thread_db target. | |
11468 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass | |
11469 | target down. Always unpush the thread_db target. | |
11470 | (find_new_threads_callback, thread_db_find_new_threads_2) | |
11471 | (thread_db_target::update_thread_list): Pass target down. | |
11472 | (thread_db_target::pid_to_str): Pass current inferior down. | |
11473 | (thread_db_target::get_thread_local_address): Pass target down. | |
11474 | (thread_db_target::resume, maintenance_check_libthread_db): Pass | |
11475 | target down. | |
11476 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. | |
11477 | * procfs.c (procfs_target::procfs_init_inferior): Declare. | |
11478 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. | |
11479 | (procfs_init_inferior): Rename to ... | |
11480 | (procfs_target::procfs_init_inferior): ... this and adjust. | |
11481 | (procfs_target::create_inferior, procfs_notice_thread) | |
11482 | (procfs_do_thread_registers): Adjust. | |
11483 | * ppc-fbsd-tdep.c: Include "inferior.h". | |
11484 | (ppcfbsd_get_thread_local_address): Pass down target. | |
11485 | * proc-service.c (ps_xfer_memory): Switch current inferior and | |
11486 | program space as well. | |
11487 | (get_ps_regcache): Pass target down. | |
11488 | * process-stratum-target.c | |
11489 | (process_stratum_target::thread_address_space) | |
11490 | (process_stratum_target::thread_architecture): Pass target down. | |
11491 | * process-stratum-target.h | |
11492 | (process_stratum_target::threads_executing): New field. | |
11493 | (as_process_stratum_target): New. | |
11494 | * ravenscar-thread.c | |
11495 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. | |
11496 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target | |
11497 | down. | |
11498 | * record-btrace.c (record_btrace_target::info_record): Adjust. | |
11499 | (record_btrace_target::record_method) | |
11500 | (record_btrace_target::record_is_replaying) | |
11501 | (record_btrace_target::fetch_registers) | |
11502 | (get_thread_current_frame_id, record_btrace_target::resume) | |
11503 | (record_btrace_target::wait, record_btrace_target::stop): Pass | |
11504 | target down. | |
11505 | * record-full.c (record_full_wait_1): Switch to event thread. | |
11506 | Pass target down. | |
11507 | * regcache.c (regcache::regcache) | |
11508 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add | |
11509 | process_stratum_target parameter and handle it. | |
11510 | (current_thread_target): New global. | |
11511 | (get_thread_regcache): Add process_stratum_target parameter and | |
11512 | handle it. Switch inferior before calling target method. | |
11513 | (get_thread_regcache): Pass target down. | |
11514 | (get_thread_regcache_for_ptid): Pass target down. | |
11515 | (registers_changed_ptid): Add process_stratum_target parameter and | |
11516 | handle it. | |
11517 | (registers_changed_thread, registers_changed): Pass target down. | |
11518 | (test_get_thread_arch_aspace_regcache): New. | |
11519 | (current_regcache_test): Define a couple local test_target_ops | |
11520 | instances and use them for testing. | |
11521 | (readwrite_regcache): Pass process_stratum_target parameter. | |
11522 | (cooked_read_test, cooked_write_test): Pass mock_target down. | |
11523 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) | |
11524 | (get_thread_arch_aspace_regcache): Add process_stratum_target | |
11525 | parameter. | |
11526 | (regcache::target): New method. | |
11527 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) | |
11528 | (regcache::registers_changed_ptid): Add process_stratum_target | |
11529 | parameter. | |
11530 | (regcache::m_target): New field. | |
11531 | (registers_changed_ptid): Add process_stratum_target parameter. | |
11532 | * remote.c (remote_state::supports_vCont_probed): New field. | |
11533 | (remote_target::async_wait_fd): New method. | |
11534 | (remote_unpush_and_throw): Add remote_target parameter. | |
11535 | (get_current_remote_target): Adjust. | |
11536 | (remote_target::remote_add_inferior): Push target. | |
11537 | (remote_target::remote_add_thread) | |
11538 | (remote_target::remote_notice_new_inferior) | |
11539 | (get_remote_thread_info): Pass target down. | |
11540 | (remote_target::update_thread_list): Skip threads of inferiors | |
11541 | bound to other targets. (remote_target::close): Don't discard | |
11542 | inferiors. (remote_target::add_current_inferior_and_thread) | |
11543 | (remote_target::process_initial_stop_replies) | |
11544 | (remote_target::start_remote) | |
11545 | (remote_target::remote_serial_quit_handler): Pass down target. | |
11546 | (remote_target::remote_unpush_target): New remote_target | |
11547 | parameter. Unpush the target from all inferiors. | |
11548 | (remote_target::remote_unpush_and_throw): New remote_target | |
11549 | parameter. Pass it down. | |
11550 | (remote_target::open_1): Check whether the current inferior has | |
11551 | execution instead of checking whether any inferior is live. Pass | |
11552 | target down. | |
11553 | (remote_target::remote_detach_1): Pass down target. Use | |
11554 | remote_unpush_target. | |
11555 | (extended_remote_target::attach): Pass down target. | |
11556 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. | |
11557 | (remote_target::append_resumption): Pass down target. | |
11558 | (remote_target::append_pending_thread_resumptions) | |
11559 | (remote_target::remote_resume_with_hc, remote_target::resume) | |
11560 | (remote_target::commit_resume): Pass down target. | |
11561 | (remote_target::remote_stop_ns): Check supports_vCont_probed. | |
11562 | (remote_target::interrupt_query) | |
11563 | (remote_target::remove_new_fork_children) | |
11564 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
11565 | (remote_target::remote_parse_stop_reply) | |
11566 | (remote_target::process_stop_reply): Pass down target. | |
11567 | (first_remote_resumed_thread): New remote_target parameter. Pass | |
11568 | it down. | |
11569 | (remote_target::wait_as): Pass down target. | |
11570 | (unpush_and_perror): New remote_target parameter. Pass it down. | |
11571 | (remote_target::readchar, remote_target::remote_serial_write) | |
11572 | (remote_target::getpkt_or_notif_sane_1) | |
11573 | (remote_target::kill_new_fork_children, remote_target::kill): Pass | |
11574 | down target. | |
11575 | (remote_target::mourn_inferior): Pass down target. Use | |
11576 | remote_unpush_target. | |
11577 | (remote_target::core_of_thread) | |
11578 | (remote_target::remote_btrace_maybe_reopen): Pass down target. | |
11579 | (remote_target::pid_to_exec_file) | |
11580 | (remote_target::thread_handle_to_thread_info): Pass down target. | |
11581 | (remote_target::async_wait_fd): New. | |
11582 | * riscv-fbsd-tdep.c: Include "inferior.h". | |
11583 | (riscv_fbsd_get_thread_local_address): Pass down target. | |
11584 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. | |
11585 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) | |
11586 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): | |
11587 | Adjust. | |
11588 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. | |
11589 | * solib-svr4.c (enable_break): Pass down target. | |
11590 | * spu-multiarch.c (parse_spufs_run): Pass down target. | |
11591 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. | |
11592 | * target-delegates.c: Regenerate. | |
11593 | * target.c (g_target_stack): Delete. | |
11594 | (current_top_target): Return the current inferior's top target. | |
11595 | (target_has_execution_1): Refer to the passed-in inferior's top | |
11596 | target. | |
11597 | (target_supports_terminal_ours): Check whether the initial | |
11598 | inferior was already created. | |
11599 | (decref_target): New. | |
11600 | (target_stack::push): Incref/decref the target. | |
11601 | (push_target, push_target, unpush_target): Adjust. | |
11602 | (target_stack::unpush): Defref target. | |
11603 | (target_is_pushed): Return bool. Adjust to refer to the current | |
11604 | inferior's target stack. | |
11605 | (dispose_inferior): Delete, and inline parts ... | |
11606 | (target_preopen): ... here. Only dispose of the current inferior. | |
11607 | (target_detach): Hold strong target reference while detaching. | |
11608 | Pass target down. | |
11609 | (target_thread_name): Add assertion. | |
11610 | (target_resume): Pass down target. | |
11611 | (target_ops::beneath, find_target_at): Adjust to refer to the | |
11612 | current inferior's target stack. | |
11613 | (get_dummy_target): New. | |
11614 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that | |
11615 | has a thread running. | |
11616 | (initialize_targets): Rename to ... | |
11617 | (_initialize_target): ... this. | |
11618 | * target.h: Include "gdbsupport/refcounted-object.h". | |
11619 | (struct target_ops): Inherit refcounted_object. | |
11620 | (target_ops::shortname, target_ops::longname): Make const. | |
11621 | (target_ops::async_wait_fd): New method. | |
11622 | (decref_target): Declare. | |
11623 | (struct target_ops_ref_policy): New. | |
11624 | (target_ops_ref): New typedef. | |
11625 | (get_dummy_target): Declare function. | |
11626 | (target_is_pushed): Return bool. | |
11627 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) | |
11628 | (all_matching_threads_iterator::all_matching_threads_iterator): | |
11629 | Handle filter target. | |
11630 | * thread-iter.h (struct all_matching_threads_iterator, struct | |
11631 | all_matching_threads_range, class all_non_exited_threads_range): | |
11632 | Filter by target too. Remove explicit. | |
11633 | * thread.c (threads_executing): Delete. | |
11634 | (inferior_thread): Pass down current inferior. | |
11635 | (clear_thread_inferior_resources): Pass down thread pointer | |
11636 | instead of ptid_t. | |
11637 | (add_thread_silent, add_thread_with_info, add_thread): Add | |
11638 | process_stratum_target parameter. Use it for thread and inferior | |
11639 | searches. | |
11640 | (is_current_thread): New. | |
11641 | (thread_info::deletable): Use it. | |
11642 | (find_thread_ptid, thread_count, in_thread_list) | |
11643 | (thread_change_ptid, set_resumed, set_running): New | |
11644 | process_stratum_target parameter. Pass it down. | |
11645 | (set_executing): New process_stratum_target parameter. Pass it | |
11646 | down. Adjust reference to 'threads_executing'. | |
11647 | (threads_are_executing): New process_stratum_target parameter. | |
11648 | Adjust reference to 'threads_executing'. | |
11649 | (set_stop_requested, finish_thread_state): New | |
11650 | process_stratum_target parameter. Pass it down. | |
11651 | (switch_to_thread): Also match inferior. | |
11652 | (switch_to_thread): New process_stratum_target parameter. Pass it | |
11653 | down. | |
11654 | (update_threads_executing): Reimplement. | |
11655 | * top.c (quit_force): Pop targets from all inferior. | |
11656 | (gdb_init): Don't call initialize_targets. | |
11657 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: | |
11658 | Declare. | |
11659 | (windows_add_thread, windows_delete_thread): Adjust. | |
11660 | (get_windows_debug_event): Rename to ... | |
11661 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. | |
11662 | * tracefile-tfile.c (tfile_target_open): Pass down target. | |
11663 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): | |
11664 | Forward declare. | |
11665 | (switch_to_thread): Add process_stratum_target parameter. | |
11666 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target | |
11667 | parameter. Use it. | |
11668 | (mi_on_resume): Pass target down. | |
11669 | * nat/fork-inferior.c (startup_inferior): Add | |
11670 | process_stratum_target parameter. Pass it down. | |
11671 | * nat/fork-inferior.h (startup_inferior): Add | |
11672 | process_stratum_target parameter. | |
11673 | * python/py-threadevent.c (py_get_event_thread): Pass target down. | |
11674 | ||
75c6c844 PA |
11675 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11676 | ||
11677 | * remote.c (remote_target::start_remote): Don't set inferior_ptid | |
11678 | directly. Instead find the first thread in the thread list and | |
11679 | use switch_to_thread. | |
11680 | ||
78f2c40a PA |
11681 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11682 | ||
11683 | * remote.c (remote_target::remote_add_inferior): Don't bind a | |
11684 | process to the current inferior if the current inferior is already | |
11685 | bound to a process. | |
11686 | ||
e7af6c70 TBA |
11687 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
11688 | Pedro Alves <palves@redhat.com> | |
11689 | ||
11690 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: | |
11691 | If no process is specified, return null_ptid instead of | |
11692 | inferior_ptid. | |
11693 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / | |
11694 | TARGET_WAITKIND_SIGNALLED with no pid. | |
11695 | ||
31ba933e PA |
11696 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11697 | ||
11698 | * remote.c (first_remote_resumed_thread): New. | |
11699 | (remote_target::wait_as): Use it as default event_ptid instead of | |
11700 | inferior_ptid. | |
11701 | ||
735fc2ca PA |
11702 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11703 | ||
11704 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. | |
11705 | ||
c17e02e1 PA |
11706 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11707 | ||
11708 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is | |
11709 | not -1. | |
11710 | ||
ab1ddbcf PA |
11711 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11712 | ||
11713 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a | |
11714 | ptid to get_last_target_status. | |
11715 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a | |
11716 | ptid to get_last_target_status. | |
11717 | * infcmd.c (continue_command): Don't pass a target_waitstatus to | |
11718 | get_last_target_status. | |
11719 | (info_program_command): Don't pass a target_waitstatus to | |
11720 | get_last_target_status. | |
11721 | * infrun.c (init_wait_for_inferior): Use | |
11722 | nullify_last_target_wait_ptid. | |
11723 | (get_last_target_status): Handle nullptr arguments. | |
11724 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. | |
11725 | (print_stop_event): Don't pass a ptid to get_last_target_status. | |
11726 | (normal_stop): Don't pass a ptid to get_last_target_status. | |
11727 | * infrun.h (get_last_target_status, set_last_target_status): Move | |
11728 | comments here and update. | |
11729 | (nullify_last_target_wait_ptid): Declare. | |
11730 | * linux-fork.c (fork_load_infrun_state): Remove local extern | |
11731 | declaration of nullify_last_target_wait_ptid. | |
11732 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus | |
11733 | to get_last_target_status. | |
11734 | ||
f3f8ece4 PA |
11735 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11736 | ||
11737 | * gdbthread.h (scoped_restore_current_thread) | |
11738 | <dont_restore, restore, m_dont_restore>: Declare. | |
11739 | * thread.c (thread_alive): Add assertion. Return bool. | |
11740 | (switch_to_thread_if_alive): New. | |
11741 | (prune_threads): Switch inferior/thread. | |
11742 | (print_thread_info_1): Switch thread before calling target methods. | |
11743 | (scoped_restore_current_thread::restore): New, factored out from | |
11744 | ... | |
11745 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
11746 | ... this. | |
11747 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
11748 | Add assertion. | |
11749 | (thread_apply_all_command, thread_select): Use | |
11750 | switch_to_thread_if_alive. | |
11751 | * infrun.c (proceed, restart_threads, handle_signal_stop) | |
11752 | (switch_back_to_stepped_thread): Switch current thread before | |
11753 | calling target methods. | |
11754 | ||
db2d40f7 PA |
11755 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11756 | ||
11757 | * inferior.c (switch_to_inferior_no_thread): New function, | |
11758 | factored out from ... | |
11759 | (inferior_command): ... here. | |
11760 | * inferior.h (switch_to_inferior_no_thread): Declare. | |
11761 | * mi/mi-main.c (run_one_inferior): Use | |
11762 | switch_to_inferior_no_thread. | |
11763 | ||
bd420a2d PA |
11764 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11765 | ||
11766 | * infcmd.c (kill_command): Remove dead code. | |
11767 | ||
ddf5db90 PA |
11768 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11769 | ||
11770 | * remote.c (remote_target::mourn_inferior): No longer check | |
11771 | whether the target is running. | |
11772 | ||
5018ce90 PA |
11773 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11774 | ||
11775 | * corelow.c (core_target::has_execution): Change parameter type to | |
11776 | inferior pointer. | |
11777 | * inferior.c (number_of_live_inferiors): Use | |
11778 | inferior::has_execution instead of target_has_execution_1. | |
11779 | * inferior.h (inferior::has_execution): New. | |
11780 | * linux-thread-db.c (thread_db_target::update_thread_list): Use | |
11781 | inferior::has_execution instead of target_has_execution_1. | |
11782 | * process-stratum-target.c | |
11783 | (process_stratum_target::has_execution): Change parameter type to | |
11784 | inferior pointer. Check the inferior's PID instead of | |
11785 | inferior_ptid. | |
11786 | * process-stratum-target.h | |
11787 | (process_stratum_target::has_execution): Change parameter type to | |
11788 | inferior pointer. | |
11789 | * record-full.c (record_full_core_target::has_execution): Change | |
11790 | parameter type to inferior pointer. | |
11791 | * target.c (target_has_execution_1): Change parameter type to | |
11792 | inferior pointer. | |
11793 | (target_has_execution_current): Adjust. | |
11794 | * target.h (target_ops::has_execution): Change parameter type to | |
11795 | inferior pointer. | |
11796 | (target_has_execution_1): Change parameter type to inferior | |
11797 | pointer. Change return type to bool. | |
11798 | * tracefile.h (tracefile_target::has_execution): Change parameter | |
11799 | type to inferior pointer. | |
11800 | ||
74375d18 PA |
11801 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11802 | ||
11803 | * exceptions.c (print_flush): Remove current_top_target() check. | |
11804 | ||
acdf84a6 PA |
11805 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11806 | ||
11807 | * remote.c (show_remote_exec_file): Show the current inferior's | |
11808 | exec-file instead of the command variable's value. | |
11809 | ||
ec506636 PA |
11810 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11811 | ||
11812 | * record-full.c (record_full_resume_ptid): New global. | |
11813 | (record_full_target::resume): Set it. | |
11814 | (record_full_wait_1): Use record_full_resume_ptid instead of | |
11815 | inferior_ptid. | |
11816 | ||
873657b9 PA |
11817 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11818 | ||
11819 | * gdbthread.h (scoped_restore_current_thread) | |
11820 | <dont_restore, restore, m_dont_restore>: Declare. | |
11821 | * thread.c (thread_alive): Add assertion. Return bool. | |
11822 | (switch_to_thread_if_alive): New. | |
11823 | (prune_threads): Switch inferior/thread. | |
11824 | (print_thread_info_1): Switch thread before calling target methods. | |
11825 | (scoped_restore_current_thread::restore): New, factored out from | |
11826 | ... | |
11827 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
11828 | ... this. | |
11829 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
11830 | Add assertion. | |
11831 | (thread_apply_all_command, thread_select): Use | |
11832 | switch_to_thread_if_alive. | |
11833 | ||
7f0ae84c GB |
11834 | 2020-01-10 George Barrett <bob@bob131.so> |
11835 | ||
11836 | * stap-probe.c (stap_modify_semaphore): Don't check for null | |
11837 | semaphores. | |
11838 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check | |
11839 | for null semaphores. | |
11840 | ||
f5a7c406 AB |
11841 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
11842 | ||
11843 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update | |
11844 | all source windows, and maintain horizontal scroll status while | |
11845 | doing so. | |
11846 | ||
9ae6bf64 TT |
11847 | 2020-01-09 Tom Tromey <tom@tromey.com> |
11848 | ||
11849 | PR tui/18932: | |
11850 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call | |
11851 | update_source_window, not print_source_lines. | |
11852 | ||
b2efe70c AB |
11853 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
11854 | ||
11855 | * tui/tui.c (tui_enable): Register tui hooks after calling | |
11856 | tui_display_main. | |
11857 | ||
5f23a082 CB |
11858 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
11859 | ||
11860 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. | |
11861 | ||
3061113b SM |
11862 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> |
11863 | ||
11864 | * thread.c (print_thread_info_1): Fix indentation. | |
11865 | ||
57d75002 CB |
11866 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
11867 | ||
11868 | * symtab.c (general_symbol_info::compute_and_set_names): Move the | |
11869 | unique_xmalloc_ptr outside the if to always free the demangled name. | |
11870 | ||
6a053cb1 TT |
11871 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
11872 | ||
11873 | * xcoffread.c (enter_line_range, read_xcoff_symtab) | |
11874 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. | |
11875 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. | |
11876 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): | |
11877 | Remove. | |
11878 | (section_offsets): New typedef. | |
11879 | * symtab.c (fixup_section, get_msymbol_address): Update. | |
11880 | * symmisc.c (dump_msymbols): Update. | |
11881 | * symfile.h (relative_addr_info_to_section_offsets) | |
11882 | (symfile_map_offsets_to_segments): Update. | |
11883 | * symfile.c (build_section_addr_info_from_objfile) | |
11884 | (init_objfile_sect_indices): Update. | |
11885 | (struct place_section_arg): Change type of "offsets". | |
11886 | (place_section): Update. | |
11887 | (relative_addr_info_to_section_offsets): Change type of | |
11888 | "section_offsets". Remove "num_sections" parameter. | |
11889 | (default_symfile_offsets, syms_from_objfile_1) | |
11890 | (set_objfile_default_section_offset): Update. | |
11891 | (reread_symbols): No need to preserve section offsets by hand. | |
11892 | (symfile_map_offsets_to_segments): Change type of "offsets". | |
11893 | * stap-probe.c (relocate_address): Update. | |
11894 | * stabsread.h (process_one_symbol): Update. | |
11895 | * solib-target.c (struct lm_info_target) <offsets>: Change type. | |
11896 | (solib_target_relocate_section_addresses): Update. | |
11897 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): | |
11898 | Update. | |
11899 | * solib-frv.c (frv_relocate_main_executable): Update. | |
11900 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. | |
11901 | * solib-aix.c (solib_aix_get_section_offsets): Change return | |
11902 | type. | |
11903 | (solib_aix_solib_create_inferior_hook): Update. | |
11904 | * remote.c (remote_target::get_offsets): Update. | |
11905 | * psymtab.c (find_pc_sect_psymtab): Update. | |
11906 | * psympriv.h (struct partial_symbol) <address, text_low, | |
11907 | text_high>: Update. | |
11908 | * objfiles.h (obj_section_offset): Update. | |
11909 | (struct objfile) <section_offsets>: Change type. | |
11910 | <num_sections>: Remove. | |
11911 | (objfile_relocate): Update. | |
11912 | * objfiles.c (entry_point_address_query): Update | |
11913 | (relocate_one_symbol): Change type of "section_offsets". | |
11914 | (objfile_relocate1, objfile_relocate1): Change type of | |
11915 | "new_offsets". | |
11916 | (objfile_rebase1): Update. | |
11917 | * mipsread.c (mipscoff_symfile_read): Update. | |
11918 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" | |
11919 | parameter. | |
11920 | * mdebugread.c (parse_symbol): Change type of "section_offsets". | |
11921 | (parse_external, psymtab_to_symtab_1): Update. | |
11922 | * machoread.c (macho_symfile_offsets): Update. | |
11923 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
11924 | * hppa-tdep.c (read_unwind_info): Update. | |
11925 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. | |
11926 | * dwarf2read.c (create_addrmap_from_index) | |
11927 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
11928 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
11929 | (add_partial_subprogram, process_full_comp_unit) | |
11930 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
11931 | (read_call_site_scope, dwarf2_rnglists_process) | |
11932 | (dwarf2_ranges_process, dwarf2_ranges_read) | |
11933 | (dwarf_decode_lines_1, var_decode_location, new_symbol) | |
11934 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): | |
11935 | Update. | |
11936 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): | |
11937 | Update. | |
11938 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. | |
11939 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. | |
11940 | (process_one_symbol): Change type of "section_offsets". | |
11941 | * ctfread.c (get_objfile_text_range): Update. | |
11942 | * coffread.c (coff_symtab_read, enter_linenos) | |
11943 | (process_coff_symbol): Update. | |
11944 | * coff-pe-read.c (add_pe_forwarded_sym): Update. | |
11945 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. | |
11946 | ||
456e800a TT |
11947 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
11948 | ||
11949 | * dwarf2read.c (parse_macro_definition): Use std::string. | |
11950 | (parse_macro_definition): Likewise. | |
11951 | ||
6dfa2fc2 TT |
11952 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
11953 | ||
11954 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. | |
11955 | (ATTR_ALLOC_CHUNK): Remove. | |
11956 | ||
421d1616 TT |
11957 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
11958 | ||
11959 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. | |
11960 | ||
43816ebc TT |
11961 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
11962 | ||
11963 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. | |
11964 | (dwarf2_compute_name, open_dwo_file): Likewise. | |
11965 | (process_enumeration_scope): Use std::vector. | |
11966 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. | |
11967 | (partial_die_info::fixup, dwarf2_start_subfile) | |
11968 | (guess_full_die_structure_name, dwarf2_name): Likewise. | |
11969 | (determine_prefix): Update. | |
11970 | (guess_full_die_structure_name): Make return type const. | |
11971 | (partial_die_full_name): Return unique_xmalloc_ptr. | |
11972 | (DW_FIELD_ALLOC_CHUNK): Remove. | |
11973 | ||
4212d509 TT |
11974 | 2020-01-07 Tom Tromey <tromey@adacore.com> |
11975 | ||
11976 | PR build/24937: | |
11977 | * stap-probe.c (class stap_static_probe_ops): Add constructor. | |
11978 | ||
06a6207a JT |
11979 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
11980 | ||
11981 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. | |
11982 | ||
153d79c4 AB |
11983 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11984 | ||
11985 | * stack.c (print_frame_info): Move disassemble_next_line code | |
11986 | inside source_print block. | |
11987 | ||
66182876 EZ |
11988 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
11989 | ||
11990 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of | |
11991 | gdb/signals.h, as we are now using native signal symbols. | |
11992 | ||
cbfa8581 SV |
11993 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
11994 | ||
11995 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid | |
11996 | overflow by an early check of content vs threshold. | |
aac66a4c | 11997 | * tui/tui-source.c (tui_source_window::line_is_displayed): |
cbfa8581 SV |
11998 | Likewise. |
11999 | ||
3f602821 EZ |
12000 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
12001 | ||
12002 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. | |
12003 | ||
a08c904d JT |
12004 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
12005 | ||
12006 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the | |
12007 | export table if no section contains it's RVA. | |
12008 | ||
89a65580 EZ |
12009 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
12010 | ||
12011 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. | |
12012 | ||
8b7fcda2 HD |
12013 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> |
12014 | ||
12015 | * source.c (print_source_lines_base): Set last_line_listed. | |
12016 | ||
a61b4f69 SV |
12017 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
12018 | ||
12019 | * tui/tui-disasm.c: Remove trailing spaces. | |
12020 | ||
559e7e50 EZ |
12021 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
12022 | Pedro Alves <palves@redhat.com> | |
12023 | ||
12024 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. | |
12025 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. | |
12026 | (windows_gdb_signal_to_target): New function, uses the above | |
12027 | enumeration to convert GDB internal signal codes to equivalent | |
12028 | Windows codes. | |
12029 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. | |
12030 | * windows-nat.c: Include "gdb_wait.h". | |
12031 | (get_windows_debug_event): Extract the fatal exception from the | |
12032 | exit status and convert to the equivalent Posix signal number. | |
12033 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the | |
12034 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. | |
12035 | * gdbsupport/gdb_wait.c: New file, implements | |
12036 | windows_status_to_termsig. | |
12037 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) | |
12038 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. | |
12039 | ||
f2302a34 AB |
12040 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> |
12041 | ||
12042 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not | |
12043 | show_layout. | |
12044 | ||
6a5206eb LM |
12045 | 2020-01-05 Luis Machado <luis.machado@linaro.org> |
12046 | ||
12047 | * aarch64-linux-nat.c | |
12048 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 | |
12049 | and bfd_mach_aarch64. | |
12050 | ||
6ec1d75e PW |
12051 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
12052 | ||
12053 | * ui-file.c (stdio_file::can_emit_style_escape) | |
12054 | (tee_file::can_emit_style_escape): Ensure style is used also on | |
12055 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly | |
12056 | to gdb_stdout. | |
12057 | * main.c (set_gdb_data_directory): Use file style to output the | |
12058 | warning that the given pathname is not a directory. | |
12059 | * top.c (show_history_filename, gdb_safe_append_history) | |
12060 | (show_gdb_datadir): Use file style. | |
12061 | ||
44f81a76 HD |
12062 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
12063 | ||
12064 | * solib-target.c (struct lm_info_target): | |
12065 | Change offsets to be a unique_xmalloc_ptr. | |
12066 | (solib_target_relocate_section_addresses): Update. | |
12067 | ||
25057eb0 HD |
12068 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
12069 | ||
12070 | * windows-nat.c (windows_clear_solib): Free so_list linked list. | |
12071 | ||
6e2118f5 BE |
12072 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
12073 | ||
12074 | * MAINTAINERS (Write After Approval): Add myself. | |
12075 | ||
8133c7dc LM |
12076 | 2020-01-02 Luis Machado <luis.machado@linaro.org> |
12077 | ||
12078 | * proc-service.c (get_ps_regcache): Remove reference to obsolete | |
12079 | Cell BE architecture. | |
12080 | * target.h (struct target_ops) <thread_architecture>: Likewise. | |
12081 | ||
48189bec HD |
12082 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
12083 | ||
12084 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
12085 | ||
ead1063b HD |
12086 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
12087 | ||
12088 | * MAINTAINERS (Write After Approval): Add myself. | |
12089 | ||
e5d78223 JB |
12090 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12091 | ||
12092 | * gdbarch.sh: Update copyright year range of generated files. | |
12093 | ||
b811d2c2 JB |
12094 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12095 | ||
12096 | Update copyright year range in all GDB files. | |
12097 | ||
5f4def5c JB |
12098 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12099 | ||
12100 | * copyright.py: Convert to Python 3. | |
12101 | ||
51fd4002 JB |
12102 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12103 | ||
12104 | * copyright.py: Adapt after move of gnulib directory from gdb | |
12105 | directory to toplevel directory. | |
12106 | ||
5fb651f2 JB |
12107 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12108 | ||
12109 | * copyright.py (main): Exit if run from the wrong directory. | |
12110 | ||
5dd8bf88 JB |
12111 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12112 | ||
12113 | * top.c (print_gdb_version): Change copyright year to 2020. | |
12114 | ||
9f71dacb | 12115 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
3d34df0a | 12116 | |
9f71dacb | 12117 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. |
3d34df0a | 12118 | |
9f71dacb | 12119 | For older changes see ChangeLog-2019. |
c906108c SS |
12120 | \f |
12121 | Local Variables: | |
12122 | mode: change-log | |
12123 | left-margin: 8 | |
12124 | fill-column: 74 | |
12125 | version-control: never | |
57da7796 | 12126 | coding: utf-8 |
c906108c | 12127 | End: |