Commit | Line | Data |
---|---|---|
294f2697 SM |
1 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
2 | ||
3 | * acinclude.m4: Modernize. | |
4 | * configure: Re-generate. | |
5 | ||
5593a99a SM |
6 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
7 | ||
8 | * configure.ac: Modernize. | |
9 | * configure: Re-generate. | |
10 | ||
e41fda1d SM |
11 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
12 | ||
13 | * acinclude.m4 (AM_PROG_CC_STDC): Remove. | |
14 | * configure: Re-generate. | |
15 | * configure.ac: Remove AM_PROG_CC_STDC. | |
16 | ||
91e1a0ed SM |
17 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
18 | ||
19 | * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of | |
20 | AC_CANONICAL_SYSTEM. | |
21 | * configure: Re-generate. | |
22 | ||
136821d9 SM |
23 | 2020-10-30 Simon Marchi <simon.marchi@efficios.com> |
24 | ||
25 | * infrun.h (displaced_debug_printf): New macro. Replace | |
26 | displaced debug prints throughout to use it. | |
27 | (displaced_debug_printf_1): New declaration. | |
28 | (displaced_step_dump_bytes): Return string, remove ui_file | |
29 | parameter, update all callers. | |
30 | * infrun.c (displaced_debug_printf_1): New function. | |
31 | (displaced_step_dump_bytes): Return string, remove ui_file | |
32 | parameter | |
33 | ||
aa2045e7 SM |
34 | 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca> |
35 | ||
36 | * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for | |
37 | ||
b1ec2735 TT |
38 | 2020-10-30 Tom Tromey <tromey@adacore.com> |
39 | ||
40 | * Makefile.in (stamp-init): Depend on config.status. | |
41 | ||
b78b3a29 TBA |
42 | 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
43 | ||
44 | * infrun.c (fetch_inferior_event): Temporarily disable pagination. | |
45 | ||
d70bdd3c PA |
46 | 2020-10-30 Pedro Alves <pedro@palves.net> |
47 | ||
48 | * thread.c (lookup_selected_frame): Move ... | |
49 | * frame.c (lookup_selected_frame): ... here. | |
50 | ||
79952e69 PA |
51 | 2020-10-30 Pedro Alves <pedro@palves.net> |
52 | ||
53 | * blockframe.c (block_innermost_frame): Use get_selected_frame. | |
54 | * frame.c | |
55 | (scoped_restore_selected_frame::scoped_restore_selected_frame): | |
56 | Use save_selected_frame. Save language as well. | |
57 | (scoped_restore_selected_frame::~scoped_restore_selected_frame): | |
58 | Use restore_selected_frame, and restore language as well. | |
59 | (selected_frame_id, selected_frame_level): New. | |
60 | (selected_frame): Update comments. | |
61 | (save_selected_frame, restore_selected_frame): New. | |
62 | (get_selected_frame): Use lookup_selected_frame. | |
63 | (get_selected_frame_if_set): Delete. | |
64 | (select_frame): Record selected_frame_level and selected_frame_id. | |
65 | * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New | |
66 | fields. | |
67 | (get_selected_frame): Make 'message' parameter optional. | |
68 | (get_selected_frame_if_set): Delete declaration. | |
69 | (select_frame): Update comments. | |
70 | (save_selected_frame, restore_selected_frame) | |
71 | (lookup_selected_frame): Declare. | |
72 | * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field. | |
73 | * infrun.c (struct infcall_control_state) <selected_frame_level>: | |
74 | New field. | |
75 | (save_infcall_control_state): Use save_selected_frame. | |
76 | (restore_selected_frame): Delete. | |
77 | (restore_infcall_control_state): Use restore_selected_frame. | |
78 | * stack.c (select_frame_command_core, frame_command_core): Use | |
79 | get_selected_frame. | |
80 | * thread.c (restore_selected_frame): Rename to ... | |
81 | (lookup_selected_frame): ... this and make extern. Select the | |
82 | current frame if the frame level is -1. | |
83 | (scoped_restore_current_thread::restore): Also restore the | |
84 | language. | |
85 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
86 | Don't try/catch. | |
87 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
88 | Save the language as well. Use save_selected_frame. | |
89 | ||
58103c33 SM |
90 | 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
91 | ||
92 | * gdbarch.sh (displaced_step_hw_singlestep): Adjust | |
93 | documentation. | |
94 | * gdbarch.h: Re-generate. | |
95 | ||
40a53766 SM |
96 | 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
97 | ||
98 | * gdbarch.sh (displaced_step_hw_singlestep): Remove closure | |
99 | parameter. | |
100 | * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): | |
101 | Likewise. | |
102 | * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep): | |
103 | Likewise. | |
104 | * arch-utils.c (default_displaced_step_hw_singlestep): | |
105 | Likewise. | |
106 | * arch-utils.h (default_displaced_step_hw_singlestep): | |
107 | Likewise. | |
108 | * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): | |
109 | Likewise. | |
110 | * s390-tdep.c (s390_displaced_step_hw_singlestep): | |
111 | Likewise. | |
112 | * gdbarch.c: Re-generate. | |
113 | * gdbarch.h: Re-generate. | |
114 | * infrun.c (resume_1): Adjust. | |
115 | ||
8407f91b TT |
116 | 2020-10-29 Tom Tromey <tom@tromey.com> |
117 | ||
118 | * progspace.c (program_space::~program_space): Don't call | |
119 | exec_close. | |
120 | ||
5008b3b2 TT |
121 | 2020-10-29 Tom Tromey <tom@tromey.com> |
122 | ||
123 | * exec.c (exec_target::close): Don't change current program | |
124 | space. | |
125 | ||
d9eebde0 TT |
126 | 2020-10-29 Tom Tromey <tom@tromey.com> |
127 | ||
128 | * symfile.c (add_symbol_file_command): Update. | |
129 | * exec.c (program_space::add_target_sections): Rename. | |
130 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
131 | * progspace.h (struct program_space) <add_target_sections>: | |
132 | Declare new overload. | |
133 | * exec.h (add_target_sections_of_objfile): Don't declare. | |
134 | ||
3769e227 TT |
135 | 2020-10-29 Tom Tromey <tom@tromey.com> |
136 | ||
137 | * solib.c (solib_map_sections): Update. | |
138 | * exec.c (program_space::add_target_sections): Now a method. | |
139 | (exec_file_attach): Update. | |
140 | * exec.h (add_target_sections): Don't declare. | |
141 | * progspace.h (struct program_space) <add_target_sections>: | |
142 | Declare. | |
143 | ||
2a3f84af TT |
144 | 2020-10-29 Tom Tromey <tom@tromey.com> |
145 | ||
146 | * progspace.h (struct program_space) <remove_target_sections>: | |
147 | Declare. | |
148 | * exec.c (program_space::remove_target_sections): Now a method. | |
149 | * exec.h (remove_target_sections): Don't declare. | |
150 | ||
004eecfd TT |
151 | 2020-10-29 Tom Tromey <tom@tromey.com> |
152 | ||
153 | * inferior.c (delete_inferior): Update. | |
154 | * progspace.c (program_space::empty): Rename from | |
155 | program_space_empty_p. Return bool. | |
156 | * progspace.h (struct program_space) <empty>: New method. | |
157 | (program_space_empty_p): Don't declare. | |
158 | ||
e39fb971 TT |
159 | 2020-10-29 Tom Tromey <tom@tromey.com> |
160 | ||
161 | * progspace.c (program_space::~program_space): Don't call | |
162 | clear_program_space_solib_cache. | |
163 | (program_space::clear_solib_cache): Rename from | |
164 | clear_solib_cache. | |
165 | * solib.c (handle_solib_event): Update. | |
166 | * progspace.h (struct program_space) <clear_solib_cache>: New | |
167 | method. | |
168 | (clear_program_space_solib_cache): Don't declare. | |
169 | ||
a42d7dd8 TT |
170 | 2020-10-29 Tom Tromey <tom@tromey.com> |
171 | ||
172 | * windows-tdep.c (windows_solib_create_inferior_hook): Update. | |
173 | * target.c (info_target_command): Update. | |
174 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
175 | (symbol_file_clear, reread_symbols): Update. | |
176 | * symfile-mem.c (add_symbol_file_from_memory_command): Update. | |
177 | * stabsread.c (scan_file_globals): Update. | |
178 | * solib.c (update_solib_list): Update. | |
179 | * solib-svr4.c (elf_locate_base, open_symbol_file_object) | |
180 | (svr4_fetch_objfile_link_map, enable_break) | |
181 | (svr4_relocate_main_executable) | |
182 | (svr4_iterate_over_objfiles_in_search_order): Update. | |
183 | * solib-frv.c (lm_base, enable_break) | |
184 | (frv_relocate_main_executable): Update. | |
185 | (main_got, frv_fdpic_find_canonical_descriptor): Update. | |
186 | (frv_fetch_objfile_link_map): Update. | |
187 | * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update. | |
188 | * solib-darwin.c (darwin_solib_create_inferior_hook): Update. | |
189 | * solib-aix.c (solib_aix_solib_create_inferior_hook): Update. | |
190 | * remote.c (remote_target::get_offsets): Update. | |
191 | (remote_target::start_remote) | |
192 | (extended_remote_target::post_attach): Update. | |
193 | * objfiles.c (entry_point_address_query): Update. | |
194 | * nto-procfs.c (nto_procfs_target::create_inferior): Update. | |
195 | * minsyms.c (get_symbol_leading_char): Update. | |
196 | * frame.c (inside_main_func): Update. | |
197 | * progspace.h (symfile_objfile): Remove macro. | |
198 | ||
19f6550e TT |
199 | 2020-10-29 Tom Tromey <tom@tromey.com> |
200 | ||
201 | * exec.c (exec_file_attach): Update. | |
202 | * progspace.c (program_space::exec_close): Update. | |
203 | * progspace.h (struct program_space) <ebfd>: Now a | |
204 | gdb_bfd_ref_ptr. | |
205 | <set_exec_bfd>: Change argument type. | |
206 | <exec_bfd>: Update. | |
207 | ||
7e10abd1 TT |
208 | 2020-10-29 Tom Tromey <tom@tromey.com> |
209 | ||
210 | * windows-tdep.c (windows_solib_create_inferior_hook): Update. | |
211 | * symfile.c (reread_symbols): Update. | |
212 | * symfile-mem.c (add_symbol_file_from_memory_command) | |
213 | (add_vsyscall_page): Update. | |
214 | * source-cache.c (source_cache::get_plain_source_lines): Update. | |
215 | * solib-svr4.c (find_program_interpreter, elf_locate_base) | |
216 | (svr4_current_sos_direct, svr4_exec_displacement) | |
217 | (svr4_relocate_main_executable): Update. | |
218 | (svr4_iterate_over_objfiles_in_search_order): Update. | |
219 | * solib-frv.c (enable_break2, enable_break): Update. | |
220 | * solib-dsbt.c (lm_base, enable_break): Update. | |
221 | * solib-darwin.c (find_program_interpreter) | |
222 | (darwin_solib_create_inferior_hook): Update. | |
223 | * sol-thread.c (rw_common, ps_pdmodel): Update. | |
224 | * rs6000-nat.c (rs6000_nat_target::create_inferior): Update. | |
225 | * remote.c (compare_sections_command) | |
226 | (remote_target::trace_set_readonly_regions): Update. | |
227 | * remote-sim.c (get_sim_inferior_data) | |
228 | (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update. | |
229 | (gdbsim_target_open, gdbsim_target::files_info): Update. | |
230 | * exec.h (exec_bfd): Remove macro. | |
231 | * progspace.c (initialize_progspace): Update. | |
232 | * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): | |
233 | Update. | |
234 | * nto-procfs.c (nto_procfs_target::post_attach) | |
235 | (nto_procfs_target::create_inferior): Update. | |
236 | * maint.c (maintenance_info_sections): Update. | |
237 | * linux-thread-db.c (thread_db_target::get_thread_local_address): | |
238 | Update. | |
239 | * infcmd.c (post_create_inferior): Update. | |
240 | * gcore.c (default_gcore_arch, default_gcore_target): Update. | |
241 | (objfile_find_memory_regions): Update. | |
242 | * exec.c (validate_exec_file, exec_file_attach) | |
243 | (exec_read_partial_read_only, print_section_info): Update. | |
244 | * corelow.c (core_target_open): Update. | |
245 | * corefile.c (reopen_exec_file, validate_files): Update. | |
246 | * arm-tdep.c (gdb_print_insn_arm): Update. | |
247 | * arch-utils.c (gdbarch_update_p, default_print_insn): Update. | |
248 | * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New | |
249 | methods. | |
250 | ||
b55221ab TT |
251 | 2020-10-29 Tom Tromey <tom@tromey.com> |
252 | ||
253 | * progspace.h (current_target_sections): Remove macro. | |
254 | * solib-svr4.c (scan_dyntag): Update. | |
255 | * solib-dsbt.c (scan_dyntag): Update. | |
256 | * exec.c (exec_target::close): Update. | |
257 | (add_target_sections, add_target_sections_of_objfile) | |
258 | (remove_target_sections, exec_target::get_section_table) | |
259 | (exec_target::files_info, set_section_command) | |
260 | (exec_set_section_address, exec_target::has_memory) | |
261 | (exec_target::has_memory): Update. | |
262 | ||
5a36e715 TT |
263 | 2020-10-29 Tom Tromey <tom@tromey.com> |
264 | ||
265 | * source-cache.c (source_cache::get_plain_source_lines): Use | |
266 | current_program_space. | |
267 | * corefile.c (reopen_exec_file): Use current_program_space. | |
268 | * exec.c (exec_file_attach): Use current_program_space. | |
269 | * exec.h (exec_bfd_mtime): Remove. | |
270 | ||
784c8592 TT |
271 | 2020-10-29 Tom Tromey <tom@tromey.com> |
272 | ||
273 | * gcore.c (default_gcore_mach): Remove. | |
274 | (create_gcore_bfd): Update. | |
275 | ||
8a4f1402 TT |
276 | 2020-10-29 Tom Tromey <tom@tromey.com> |
277 | ||
278 | * progspace.c (program_space::exec_close): New method, from | |
279 | exec_close in exec.c. | |
280 | * exec.c (exec_close): Move to progspace.c. | |
281 | (exec_target::close, exec_file_attach): Update. | |
282 | * progspace.h (struct program_space) <exec_close>: Declare | |
283 | method. | |
284 | ||
c20cb686 TT |
285 | 2020-10-29 Tom Tromey <tom@tromey.com> |
286 | ||
287 | * progspace.h (struct program_space) <exec_filename>: Rename from | |
288 | pspace_exec_filename. Now a unique_xmalloc_ptr. | |
289 | * inferior.c (print_selected_inferior): Update. | |
290 | (print_inferior): Update. | |
291 | * mi/mi-main.c (print_one_inferior): Update. | |
292 | * exec.h (exec_filename): Remove macro. | |
293 | * corefile.c (get_exec_file): Update. | |
294 | * exec.c (exec_close): Update. | |
295 | (exec_file_attach): Update. | |
296 | * progspace.c (clone_program_space): Update. | |
297 | (print_program_space): Update. | |
298 | ||
6be2a9ab TT |
299 | 2020-10-29 Tom Tromey <tom@tromey.com> |
300 | ||
301 | * target-section.h (struct target_section): Add constructor. | |
302 | * exec.c (build_section_table, add_target_sections_of_objfile): | |
303 | Update. | |
304 | * corelow.c (core_target::build_file_mappings): Update. | |
305 | ||
cfaa8f76 TBA |
306 | 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
307 | ||
308 | PR gdb/19318 | |
309 | * inferior.c (detach_inferior_command): Restore the current thread. | |
310 | (kill_inferior_command): Ditto. | |
311 | ||
1b00ef06 TV |
312 | 2020-10-28 Tom de Vries <tdevries@suse.de> |
313 | ||
314 | PR symtab/26772 | |
315 | * symtab.c (find_pc_sect_compunit_symtab): In case there's an address | |
316 | map, check it in the "best match" loop. | |
317 | ||
7f40ce1a SM |
318 | 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
319 | ||
320 | * m32c-tdep.c: Remove unused includes. | |
321 | ||
5eb9e3f5 SM |
322 | 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
323 | ||
324 | * xtensa-tdep.c: Remove includes. | |
325 | ||
b1d4d8d1 TBA |
326 | 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
327 | ||
328 | * breakpoint.c (struct condition_command_opts): New struct. | |
329 | (condition_command_option_defs): New static global. | |
330 | (make_condition_command_options_def_group): New function. | |
331 | (condition_completer): Update to consider the '-force' flag. | |
332 | (condition_command): Use gdb::option for the '-force' flag. | |
333 | ||
bd24c5d6 TV |
334 | 2020-10-27 Tom de Vries <tdevries@suse.de> |
335 | ||
336 | * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK | |
337 | symbols in section check. | |
338 | ||
61eb46a4 TV |
339 | 2020-10-27 Tom de Vries <tdevries@suse.de> |
340 | ||
341 | * symtab.c (find_pc_sect_compunit_symtab): Use early continue. | |
342 | ||
733d554a TBA |
343 | 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
344 | ||
345 | * breakpoint.h (set_breakpoint_condition): Add a new bool parameter. | |
346 | * breakpoint.c: Update the help text of the 'condition' and 'break' | |
347 | commands. | |
348 | (set_breakpoint_condition): Take a new bool parameter | |
349 | to control whether condition definition should be forced even when | |
350 | the condition expression is invalid in all of the current locations. | |
351 | (condition_command): Update the call to 'set_breakpoint_condition'. | |
352 | (find_condition_and_thread): Take the "-force-condition" flag into | |
353 | account. | |
354 | * linespec.c (linespec_keywords): Add "-force-condition" as an | |
355 | element. | |
356 | (FORCE_KEYWORD_INDEX): New #define. | |
357 | (linespec_lexer_lex_keyword): Update to consider "-force-condition" | |
358 | as a keyword. | |
359 | * ada-lang.c (create_ada_exception_catchpoint): Ditto. | |
360 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto. | |
361 | * python/py-breakpoint.c (bppy_set_condition): Ditto. | |
362 | * NEWS: Mention the changes to the 'break' and 'condition' commands. | |
363 | ||
b5fa468f TBA |
364 | 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
365 | ||
366 | * breakpoint.h (class bp_location) <disabled_by_cond>: New field. | |
367 | * breakpoint.c (set_breakpoint_location_condition): New function. | |
368 | (set_breakpoint_condition): Disable a breakpoint location if parsing | |
369 | the condition string gives an error. | |
370 | (should_be_inserted): Update to consider the 'disabled_by_cond' field. | |
371 | (build_target_condition_list): Ditto. | |
372 | (build_target_command_list): Ditto. | |
373 | (build_bpstat_chain): Ditto. | |
374 | (print_one_breakpoint_location): Ditto. | |
375 | (print_one_breakpoint): Ditto. | |
376 | (breakpoint_1): Ditto. | |
377 | (bp_location::bp_location): Ditto. | |
378 | (locations_are_equal): Ditto. | |
379 | (update_breakpoint_locations): Ditto. | |
380 | (enable_disable_bp_num_loc): Ditto. | |
381 | (init_breakpoint_sal): Use set_breakpoint_location_condition. | |
382 | (find_condition_and_thread_for_sals): New static function. | |
383 | (create_breakpoint): Call find_condition_and_thread_for_sals. | |
384 | (location_to_sals): Call find_condition_and_thread_for_sals instead | |
385 | of find_condition_and_thread. | |
386 | ||
1c47ec3e TV |
387 | 2020-10-26 Tom de Vries <tdevries@suse.de> |
388 | ||
389 | * dwarf2/read.c (process_full_comp_unit): Call | |
390 | dwarf2_find_base_address. | |
391 | ||
6390859c TT |
392 | 2020-10-26 Tom Tromey <tromey@adacore.com> |
393 | ||
394 | * gdbtypes.c (create_range_type): Revert previous patch. Add | |
395 | comment. | |
396 | ||
d744f0f9 PA |
397 | 2020-10-26 Pedro Alves <pedro@palves.net> |
398 | ||
399 | * nat/linux-waitpid.c: Include "gdbsupport/eintr.h". | |
400 | (my_waitpid): Use gdb::handle_eintr. | |
401 | ||
006811bc SM |
402 | 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca> |
403 | ||
404 | * acinclude.m4: Update ptrace.m4 path. | |
405 | * ptrace.m4: Moved to gdbsupport. | |
406 | ||
c75e31a1 SM |
407 | 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca> |
408 | ||
409 | * symfile-mem.c (add_vsyscall_page): Use inferior parameter | |
410 | instead of target_gdbarch. | |
411 | ||
32495661 SM |
412 | 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca> |
413 | ||
414 | * jit.c (jit_reader_load_command): Pass current inferior. | |
415 | (jit_inferior_init): Change parameter type to inferior, use it. | |
416 | (jit_inferior_created): Remove. | |
417 | (jit_inferior_created_hook): Pass inferior parameter down. | |
418 | (_initialize_jit): Use jit_inferior_created_hook instead of | |
419 | jit_inferior_created. | |
420 | * jit.h (jit_inferior_created_hook): Add inferior parameter. | |
421 | * infrun.c (follow_exec): Pass inferior to | |
422 | jit_inferior_created_hook. | |
423 | ||
3f66685e SM |
424 | 2020-10-24 Simon Marchi <simon.marchi@efficios.com> |
425 | ||
426 | * linux-thread-db.c (check_pid_namespace_match): Add inferior | |
427 | parameter and use it. | |
428 | (thread_db_inferior_created): Pass inferior argument. | |
429 | ||
a0ff652f SM |
430 | 2020-10-24 Simon Marchi <simon.marchi@efficios.com> |
431 | ||
432 | * aix-thread.c (aix_thread_inferior_created): Add inferior | |
433 | parameter. | |
434 | * bsd-uthread.c (bsd_uthread_inferior_created): Likewise. | |
435 | * dummy-frame.c (cleanup_dummy_frames): Likewise. | |
436 | * jit.c (jit_inferior_created): Likewise. | |
437 | * linux-thread-db.c (thread_db_inferior_created): Likewise. | |
438 | * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise. | |
439 | * observable.h (inferior_created): Likewise. | |
440 | * ravenscar-thread.c (ravenscar_inferior_created): Likewise. | |
441 | * symfile-mem.c (add_vsyscall_page): Likewise. | |
442 | * infcmd.c (post_create_inferior): Pass inferior argument. | |
443 | ||
3c67532c JB |
444 | 2020-10-24 Joel Brobecker <brobecker@adacore.com> |
445 | ||
446 | GDB 10.1 released. | |
447 | ||
8747316e JB |
448 | 2020-10-23 Joel Brobecker <brobecker@adacore.com> |
449 | ||
450 | * ada-typeprint.c (ada_print_type): Remove superfluous second call | |
451 | to ada_check_typedef. | |
452 | ||
1a0ea399 AB |
453 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
454 | ||
455 | * f-exp.y (f_parse): Rename to... | |
456 | (f_language::parser): ...this. | |
457 | * f-lang.c (f_get_encoding): Rename to... | |
458 | (f_language::get_encoding): ...this. | |
459 | (f_op_print_tab): Rename to... | |
460 | (f_language::op_print_tab): ...this. | |
461 | (exp_descriptor_f): Rename to... | |
462 | (f_language::exp_descriptor_tab): ...this. | |
463 | (class f_language): Moved to f-lang.h. | |
464 | (f_language::language_arch_info): New function, moved out of class | |
465 | declaration. | |
466 | (f_language::search_name_hash): Likewise. | |
467 | (f_language::lookup_symbol_nonlocal): Likewise. | |
468 | (f_language::get_symbol_name_matcher_inner): Likewise. | |
469 | * f-lang.h: Add 'valprint.h' include. | |
470 | (class f_language): Moved here from f-lang.c. | |
471 | * f-typeprint.c (f_type_print_args): Delete commented out | |
472 | declaration. | |
473 | (f_print_typedef): Rename to... | |
474 | (f_language::print_typedef): ...this. | |
475 | (f_print_type): Rename to... | |
476 | (f_language::print_type): ...this. | |
477 | (f_type_print_varspec_prefix): Delete declaration and rename to... | |
478 | (f_language::f_type_print_varspec_prefix): ...this. | |
479 | (f_type_print_varspec_suffix): Delete declaration and rename to... | |
480 | (f_language::f_type_print_varspec_suffix): ...this. | |
481 | (f_type_print_base): Delete declaration and rename to... | |
482 | (f_language::f_type_print_base): ...this. | |
483 | * f-valprint.c (f_value_print_inner): Rename to... | |
484 | (f_language::value_print_inner): ...this. | |
485 | * parse.c: Delete 'f-lang.h' include. | |
486 | ||
88cefd9b AB |
487 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
488 | ||
489 | * language.h (language_defn::print_type): Add variable names in | |
490 | declaration, and update header comment. | |
491 | ||
5399db93 AB |
492 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
493 | ||
494 | * ada-lang.c (ada_language::demangle): Rename to... | |
495 | (ada_language::demangle_symbol): ...this. | |
496 | * c-lang.c (cplus_language::demangle): Rename to... | |
497 | (cplus_language::demangle_symbol): ...this. | |
498 | * d-lang.c (d_language::demangle): Rename to... | |
499 | (d_language::demangle_symbol): ...this. | |
500 | * f-lang.c (f_language::demangle): Rename to... | |
501 | (f_language::demangle_symbol): ...this. | |
502 | * go-lang.c (go_language::demangle): Rename to... | |
503 | (go_language::demangle_symbol): ...this. | |
504 | * language.c (language_demangle): Update call to demangle_symbol. | |
505 | (auto_or_unknown_language::demangle): Rename to... | |
506 | (auto_or_unknown_language::demangle_symbol): ...this. | |
507 | * language.h (language_defn::demangle): Rename to... | |
508 | (language_defn::demangle_symbol): ...this. | |
509 | * objc-lang.c (objc_language::demangle): Rename to... | |
510 | (objc_language::demangle_symbol): ...this. | |
511 | * rust-lang.c (rust_language::demangle): Rename to... | |
512 | (rust_language::demangle_symbol): ...this. | |
513 | ||
4b2f86ef AB |
514 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
515 | ||
516 | * language.h (LA_ITERATE_OVER_SYMBOLS): Delete. | |
517 | (iterate_over_file_blocks): Replace use of macro with the macros | |
518 | definition. | |
519 | ||
e74b39de AB |
520 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
521 | ||
522 | * language.h (LA_PRINT_ARRAY_INDEX): Delete. | |
523 | * valprint.c (maybe_print_array_index): Replace use of macro with | |
524 | the macros definition. | |
525 | ||
00c696a6 AB |
526 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
527 | ||
528 | * ada-lang.c (ada_language::print_array_index): Call value_print | |
529 | directly. | |
530 | * language.c (language_defn::print_array_index): Likewise. | |
531 | * language.h (LA_VALUE_PRINT): Delete. | |
532 | * valprint.c (value_print): Call value_print on the | |
533 | current_language directly. | |
534 | ||
d3b67c56 AB |
535 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
536 | ||
537 | * language.h (LA_PRINT_TYPEDEF): Delete. | |
538 | * typeprint.c (typedef_print): Call print_typedef directly on the | |
539 | current_language object. | |
540 | ||
790e2a12 AB |
541 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
542 | ||
543 | * m2-exp.y (m2_parse): Rename to... | |
544 | (m2_language::parser): ...this. Update function signature. | |
545 | * m2-lang.c (m2_printchar): Renamed to m2_language::printchar. | |
546 | (m2_op_print): Rename to... | |
547 | (m2_language::op_print_tab): ...this, and make const. | |
548 | (exp_descriptor_modula2): Rename to... | |
549 | (m2_language::exp_descriptor_modula2): ...this. | |
550 | (class m2_language): Move to m2-lang.h. | |
551 | (m2_language::language_arch_info): New function, moved out of | |
552 | class declaration. | |
553 | (m2_language::printchar): New function, body from m2_printchar. | |
554 | (m2_language::printstr): New function, moved out of class | |
555 | declaration. | |
556 | (m2_language::emitchar): Likewise. | |
557 | * m2-lang.h (m2_parse): Delete declaration. | |
558 | (m2_print_typedef): Delete declaration. | |
559 | (m2_value_print_inner): Delete declaration. | |
560 | (class m2_language): Class declaration moved from m2-lang.c, | |
561 | larger functions are left in m2-lang.c. | |
562 | * m2-typeprint.c (m2_print_typedef): Rename to... | |
563 | (m2_language::print_typedef): ...this, and update function | |
564 | signature. | |
565 | * m2-valprint.c (m2_value_print_inner): Rename to... | |
566 | (m2_language::value_print_inner): ...this, replace use of | |
567 | LA_PRINT_STRING with a direct call to printstr member function, | |
568 | and update recursive call. | |
569 | ||
b01175fc AB |
570 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
571 | ||
572 | * language.c (default_is_string_type_p): Delete, implementation | |
573 | moved into auto_or_unknown_language::is_string_type_p. | |
574 | (unk_op_print_tab): Moved into | |
575 | auto_or_unknown_language::opcode_print_table. | |
576 | (unknown_language_arch_info): Delete, implementation moved into | |
577 | auto_or_unknown_language::language_arch_info. | |
578 | (class auto_or_unknown_language): New class, member functions | |
579 | copied from unknown_language class, with some updates. | |
580 | (class unknown_language): Most member functions moved into | |
581 | auto_or_unknown_language class. Inherit from | |
582 | auto_or_unknown_language class. | |
583 | (class auto_language): Inherit from auto_or_unknown_language. | |
584 | Delete most member functions. | |
585 | ||
1a97fe8c HD |
586 | 2020-10-22 Hannes Domani <ssbssa@yahoo.de> |
587 | ||
588 | * stabsread.c (read_member_functions): Remove gdb_assert. | |
589 | ||
6b9d0dfd HD |
590 | 2020-10-22 Hannes Domani <ssbssa@yahoo.de> |
591 | ||
592 | * gdbtypes.c (init_complex_type): Check target type name. | |
593 | ||
4b4bb603 SM |
594 | 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca> |
595 | ||
596 | * target-debug.h (target_debug_print_struct_target_ops_p): | |
597 | Remove. | |
598 | (target_debug_print_async_callback_ftype_p): Remove. | |
599 | (target_debug_print_struct_trace_state_variable_p): Remove. | |
600 | (target_debug_print_struct_traceframe_info_p): Remove. | |
601 | (target_debug_print_VEC__btrace_block_s__pp): Remove. | |
602 | (target_debug_print_enum_btrace_format): Remove. | |
603 | (target_debug_print_enum_info_proc_what): Remove. | |
604 | (target_debug_print_thread_info_pp): Remove. | |
605 | ||
24f5300a SM |
606 | 2020-10-22 Simon Marchi <simon.marchi@efficios.com> |
607 | ||
608 | * target.h (struct target_ops) <make_corefile_notes>: | |
609 | Change return type to unique pointer. | |
610 | * target.c (dummy_make_corefile_notes): Likewise. | |
611 | * exec.c (struct exec_target) <make_corefile_notes>: | |
612 | Likewise. | |
613 | (exec_target::make_corefile_notes): Likewise. | |
614 | * procfs.c (class procfs_target) <make_corefile_notes>: | |
615 | Likewise. | |
616 | (procfs_do_thread_registers): Adjust to unique pointer. | |
617 | (struct procfs_corefile_thread_data): Add constructor. | |
618 | <note_data>: Change type to unique pointer. | |
619 | (procfs_corefile_thread_callback): Adjust to unique pointer. | |
620 | (procfs_target::make_corefile_notes): Change return type to | |
621 | unique pointer. | |
622 | * target-delegates.c: Re-generate. | |
623 | * gcore.c (write_gcore_file_1): Adjust. | |
624 | * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char): | |
625 | New. | |
626 | ||
5fb4027f TV |
627 | 2020-10-22 Tom de Vries <tdevries@suse.de> |
628 | ||
629 | * block.c (find_block_in_blockvector): Make sure the returned block | |
630 | contains pc. | |
631 | ||
4a636814 SM |
632 | 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca> |
633 | ||
634 | PR gdb/26693 | |
635 | * dwarf2/read.c (load_full_comp_unit): Add existing_cu | |
636 | parameter. | |
637 | (load_cu): Pass existing CU. | |
638 | (process_imported_unit_die): Likewise. | |
639 | (follow_die_offset): Likewise. | |
640 | ||
1bd57575 LM |
641 | 2020-10-22 Luis Machado <luis.machado@linaro.org> |
642 | ||
643 | * corelow.c (core_target::xfer_partial): Also check for an empty | |
644 | m_core_unavailable_mappings vector. | |
645 | ||
6b4c676c AB |
646 | 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com> |
647 | ||
648 | * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE. | |
649 | * expression.h (enum range_type): Add RANGE_HAS_STRIDE. | |
650 | * f-exp.y (arglist): Allow for a series of subranges. | |
651 | (subrange): Add cases for subranges with strides. | |
652 | * f-lang.c (value_f90_subarray): Catch use of array strides and | |
653 | throw an error. | |
654 | * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE. | |
655 | ||
f2d8e4c5 AB |
656 | 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com> |
657 | ||
658 | * expprint.c (print_subexp_standard): Change enum range_type to | |
659 | range_flag and rename variables to match. | |
660 | (dump_subexp_body_standard): Likewise. | |
661 | * expression.h (enum range_type): Rename to... | |
662 | (enum range_flag): ...this. | |
663 | (range_types): Rename to... | |
664 | (range_flags): ...this. | |
665 | * f-lang.c (value_f90_subarray): Change enum range_type to | |
666 | range_flag and rename variables to match. | |
667 | * parse.c (operator_length_standard): Likewise. | |
668 | * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum | |
669 | range_type to range_flag. | |
670 | * rust-lang.c (rust_evaluate_funcall): Likewise. | |
671 | (rust_range): Likewise. | |
672 | (rust_compute_range): Likewise. | |
673 | (rust_subscript): Likewise. | |
674 | ||
2f1b18db AB |
675 | 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com> |
676 | ||
677 | * expprint.c (print_subexp_standard): Update to reflect changes to | |
678 | enum range_type. | |
679 | (dump_subexp_body_standard): Likewise. | |
680 | * expression.h (enum range_type): Convert to a bit field enum, and | |
681 | make the enum unsigned. | |
682 | * f-exp.y (subrange): Update to reflect changes to enum | |
683 | range_type. | |
684 | * f-lang.c (value_f90_subarray): Likewise. | |
685 | * parse.c (operator_length_standard): Likewise. | |
686 | * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise. | |
687 | * rust-lang.c (rust_range): Likewise. | |
688 | (rust_compute_range): Likewise. | |
689 | (rust_subscript): Likewise. | |
690 | ||
a46d1843 SM |
691 | 2020-10-21 Simon Marchi <simon.marchi@efficios.com> |
692 | ||
693 | * infrun.c (displaced_step_in_progress_thread): Fix comment. | |
694 | (displaced_step_in_progress): Fix comment. | |
695 | ||
c21f37a8 SM |
696 | 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
697 | ||
698 | * gdbarch.sh (make_corefile_notes): Return unique pointer. | |
699 | * gdbarch.c: Re-generate. | |
700 | * gdbarch.h: Re-generate. | |
701 | * gcore.c (write_gcore_file_1): Adjust. | |
702 | * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add | |
703 | constructor. | |
704 | <note_data>: Change type to unique pointer. | |
705 | <abort_iteration>: Change type to bool. | |
706 | (fbsd_collect_regset_section_cb): Adjust to unique pointer. | |
707 | (fbsd_collect_thread_registers): Return void, adjust. | |
708 | (struct fbsd_corefile_thread_data): Add construtor. | |
709 | <note_data>: Change type to unique pointer. | |
710 | (fbsd_corefile_thread): Adjust. | |
711 | (fbsd_make_corefile_notes): Return unique pointer, adjust. | |
712 | * linux-tdep.c (linux_make_mappings_corefile_notes): Change type | |
713 | to unique pointer, adjust. | |
714 | (struct linux_collect_regset_section_cb_data): Add constructor. | |
715 | <note_data>: Change type to unique pointer. | |
716 | <abort_iteration>: Change type to bool. | |
717 | (linux_collect_thread_registers): Return void, adjust. | |
718 | (struct linux_corefile_thread_data): Add constructor. | |
719 | <note_data>: Change type to unique pointer. | |
720 | (linux_corefile_thread): Adjust. | |
721 | (linux_make_corefile_notes): Return unique pointer, adjust. | |
722 | ||
07fbbd01 SM |
723 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> |
724 | ||
725 | * gdbarch.sh (displaced_step_hw_singlestep): Return bool. | |
726 | * gdbarch.c: Re-generate. | |
727 | * gdbarch.h: Re-generate. | |
728 | * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return | |
729 | bool. | |
730 | * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep): | |
731 | Likewise. | |
732 | * arch-utils.h (default_displaced_step_hw_singlestep): Likewise. | |
733 | * arch-utils.c (default_displaced_step_hw_singlestep): Likewise. | |
734 | * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise. | |
735 | * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise. | |
736 | ||
39535193 SM |
737 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> |
738 | ||
739 | * gdbarch.sh: Make generated predicates return bool. | |
740 | * gdbarch.c: Re-generate. | |
741 | * gdbarch.h: Re-generate. | |
742 | ||
ad523d01 TT |
743 | 2020-10-20 Tom Tromey <tom@tromey.com> |
744 | ||
745 | * varobj-iter.h (struct varobj_item): Remove typedef. | |
746 | ||
c4464ade SM |
747 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> |
748 | ||
749 | * infrun.c (currently_stepping): Change int to bool | |
750 | (maybe_software_singlestep): Likewise. | |
751 | (show_stop_on_solib_events): Likewise. | |
752 | (stepping_past_nonsteppable_watchpoint): Likewise. | |
753 | (displaced_step_in_progress_any_inferior): Likewise. | |
754 | (displaced_step_in_progress_thread): Likewise. | |
755 | (keep_going_stepped_thread): Likewise. | |
756 | (thread_still_needs_step_over): Likewise. | |
757 | (start_step_over): Likewise. | |
758 | (do_target_resume): Likewise. | |
759 | (resume_1): Likewise. | |
760 | (clear_proceed_status): Likewise. | |
761 | (thread_still_needs_step_over_bp): Likewise. | |
762 | (proceed): Likewise. | |
763 | (switch_back_to_stepped_thread): Likewise. | |
764 | (adjust_pc_after_break): Likewise. | |
765 | (stepped_in_from): Likewise. | |
766 | (handle_stop_requested): Likewise. | |
767 | (handle_syscall_event): Likewise. | |
768 | (handle_no_resumed): Likewise. | |
769 | (handle_inferior_event): Likewise. | |
770 | (finish_step_over): Likewise. | |
771 | (handle_signal_stop): Likewise. | |
772 | (process_event_stop_test): Likewise. | |
773 | ||
2eb20436 SM |
774 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> |
775 | ||
776 | * infrun.c (get_displaced_stepping_state): Fix comment. | |
777 | ||
e0c45ded AS |
778 | 2020-10-20 Andreas Schwab <schwab@linux-m68k.org> |
779 | ||
780 | * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help. | |
781 | ||
22cc388e TT |
782 | 2020-10-19 Tom Tromey <tromey@adacore.com> |
783 | ||
784 | PR tui/26719 | |
785 | * tui/tui-winsource.h (struct tui_source_window_base) | |
786 | <refresh_window>: Rename from refresh_pad. | |
787 | * tui/tui-winsource.c (tui_source_window_base::refresh_window): | |
788 | Rename from refresh_pad. | |
789 | (tui_source_window_base::show_source_content) | |
790 | (tui_source_window_base::do_scroll_horizontal): Update. | |
791 | ||
3c6eb4d4 TBA |
792 | 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
793 | ||
794 | * thread.c (_initialize_thread): Fine-tune the help text of | |
795 | 'info threads'. | |
796 | ||
26703721 TBA |
797 | 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
798 | ||
799 | * frame.c: Remove the unused 'uinteger_option_def' type alias. | |
800 | ||
61c26be8 MS |
801 | 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com> |
802 | ||
803 | * breakpoint.c (handle_jit_event): Add an argument, change how | |
804 | `jit_event_handler` is called. | |
805 | ||
932539d7 TT |
806 | 2020-10-17 Tom Tromey <tom@tromey.com> |
807 | ||
808 | * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty. | |
809 | (scan_xcoff_symtab): Update. | |
810 | * psymtab.h (class psymtab_storage) <global_psymbols, | |
811 | static_psymbols, current_global_psymbols, | |
812 | current_static_psymbols>: Remove. | |
813 | * psymtab.c (require_partial_symbols, find_pc_sect_psymbol) | |
814 | (match_partial_symbol, lookup_partial_symbol): Update. | |
815 | (print_partial_symbols): Change parameters. | |
816 | (dump_psymtab, recursively_search_psymtabs) | |
817 | (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address) | |
818 | (sort_pst_symbols, partial_symtab::partial_symtab): Update. | |
819 | (concat): Remove. | |
820 | (end_psymtab_common): Simplify. | |
821 | (append_psymbol_to_list): Change parameters. | |
822 | (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list. | |
823 | (init_psymbol_list): Simplify. | |
824 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
825 | * psympriv.h (struct partial_symtab) <empty>: New method. | |
826 | <globals_offset, n_global_syms, statics_offset, n_static_syms>: | |
827 | Remove. | |
828 | <global_psymbols, static_psymbols>: New members. | |
829 | <add_psymbol>: New methods. | |
830 | (add_psymbol_to_list): Don't declare. | |
831 | (psymbol_placement): Move earlier. | |
832 | * mdebugread.c (parse_partial_symbols): Update. | |
833 | (handle_psymbol_enumerators): Change parameters. | |
834 | (mdebug_expand_psymtab): Update. | |
835 | * dwarf2/read.c (process_psymtab_comp_unit_reader) | |
836 | (add_partial_symbol): Update. | |
837 | * dwarf2/index-write.c (write_psymbols): Change parameters. | |
838 | (write_one_signatured_type): Update. | |
839 | (recursively_count_psymbols): Update. | |
840 | (recursively_write_psymbols): Update. | |
841 | (class debug_names) <recursively_write_psymbols>: Update. | |
842 | <write_psymbols>: Change parameters. | |
843 | <write_one_signatured_type>: Update. | |
844 | * dbxread.c (read_dbx_symtab): Update. | |
845 | (dbx_end_psymtab): Use partial_symtab::empty. | |
846 | * ctfread.c (struct ctf_context) <pst>: New member. | |
847 | (create_partial_symtab): Set it. | |
848 | (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update. | |
849 | (scan_partial_symbols): Use the psymtab's context. Update. | |
850 | ||
cfabbd35 TT |
851 | 2020-10-17 Tom Tromey <tom@tromey.com> |
852 | ||
853 | * valprint.c (generic_value_print): Remove comment. | |
854 | * m2-valprint.c (m2_value_print_inner): Remove comment. | |
855 | * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base | |
856 | type. | |
857 | ||
520596f2 TV |
858 | 2020-10-17 Tom de Vries <tdevries@suse.de> |
859 | ||
860 | PR symtab/26317 | |
861 | * source.c (select_source_symtab): Handling sal.symtab == NULL for | |
862 | symbol main. | |
863 | ||
76547ab3 TV |
864 | 2020-10-14 Tom de Vries <tdevries@suse.de> |
865 | ||
866 | PR gdb/26733 | |
867 | * solib.c (solib_contains_address_p): Handle | |
868 | 'solib->sections == nullptr'. | |
869 | ||
d3a07122 SM |
870 | 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca> |
871 | ||
872 | PR gdb/26642 | |
873 | * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the | |
874 | target can't do async. | |
875 | * target.c (target_wait): Assert that we don't pass | |
876 | TARGET_WNOHANG to a target that can't async. | |
877 | ||
1b71cfcf KR |
878 | 2020-10-13 Kamil Rytarowski <n54@gmx.com> |
879 | ||
880 | * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS) | |
881 | HFILES_NO_SRCDIR, ALLDEPFILES): Rename files. | |
882 | * alpha-bsd-nat.c: Adjust include. | |
883 | * alpha-bsd-tdep.h: Adjust comment. | |
884 | * alpha-nbsd-tdep.c: Rename to ... | |
885 | * alpha-netbsd-tdep.c: ... this, adjust include. | |
886 | * amd64-nbsd-nat.c: Rename to ... | |
887 | * amd64-netbsd-nat.c: ... this, adjust include. | |
888 | * amd64-nbsd-tdep.c: Rename to ... | |
889 | * amd64-netbsd-tdep.c: ... this, adjust include. | |
890 | * amd64-tdep.h: Adjust include. | |
891 | * arm-nbsd-nat.c: Rename to ... | |
892 | * arm-netbsd-nat.c: ... this, adjust include. | |
893 | * arm-nbsd-tdep.c: Rename to ... | |
894 | * arm-netbsd-tdep.c: ... this, adjust include. | |
895 | * arm-nbsd-tdep.h: Rename to ... | |
896 | * arm-netbsd-tdep.h: ... this, adjust include. | |
897 | * configure.nat: Adjust file lists. | |
898 | * configure.tgt: Likewise. | |
899 | * hppa-nbsd-nat.c: Rename to ... | |
900 | * hppa-netbsd-nat.c: ... this, adjust include. | |
901 | * hppa-nbsd-tdep.c: Rename to ... | |
902 | * hppa-netbsd-tdep.c: ... this, adjust include. | |
903 | * i386-nbsd-nat.c: Rename to ... | |
904 | * i386-netbsd-nat.c: ... this, adjust include. | |
905 | * i386-nbsd-tdep.c: Rename to ... | |
906 | * i386-netbsd-tdep.c: ... this, adjust include. | |
907 | * m68k-bsd-nat.c: Adjust include. | |
908 | * mips-nbsd-nat.c: Rename to ... | |
909 | * mips-netbsd-nat.c: ... this, adjust include. | |
910 | * mips-nbsd-tdep.c: Rename to ... | |
911 | * mips-netbsd-tdep.c: ... this, adjust include. | |
912 | * mips-nbsd-tdep.h: Rename to ... | |
913 | * mips-netbsd-tdep.h: ... this. | |
914 | * nbsd-nat.c: Rename to ... | |
915 | * netbsd-nat.c: ... this, adjust include. | |
916 | * nbsd-nat.h: Rename to ... | |
917 | * netbsd-nat.h: ... this, adjust include. | |
918 | * nbsd-tdep.c: Rename to ... | |
919 | * netbsd-tdep.c: ... this, adjust include. | |
920 | * nbsd-tdep.h: Rename to ... | |
921 | * netbsd-tdep.h: ... this. | |
922 | * ppc-nbsd-nat.c: Rename to ... | |
923 | * ppc-netbsd-nat.c: ... this, adjust include. | |
924 | * ppc-nbsd-tdep.c: Rename to ... | |
925 | * ppc-netbsd-tdep.c: ... this, adjust include and comment. | |
926 | * ppc-nbsd-tdep.h: Rename to ... | |
927 | * ppc-netbsd-tdep.h: ... this. | |
928 | * sh-nbsd-nat.c: Rename to ... | |
929 | * sh-netbsd-nat.c: ... this, adjust include. | |
930 | * sh-nbsd-tdep.c: Rename to ... | |
931 | * sh-netbsd-tdep.c: ... this, adjust include. | |
932 | * sparc-nbsd-nat.c: Rename to ... | |
933 | * sparc-netbsd-nat.c: ... this. | |
934 | * sparc-nbsd-tdep.c: Rename to ... | |
935 | * sparc-netbsd-tdep.c: ... this, adjust include. | |
936 | * sparc64-nbsd-nat.c: Rename to ... | |
937 | * sparc64-netbsd-nat.c: ... this. | |
938 | * sparc64-nbsd-tdep.c: Rename to ... | |
939 | * sparc64-netbsd-tdep.c: ... this, adjust include. | |
940 | * sparc64-tdep.h: Adjust comment. | |
941 | * vax-bsd-nat.c: Adjust include. | |
942 | * vax-nbsd-tdep.c: Rename to ... | |
943 | * vax-netbsd-tdep.c: ... this, adjust include. | |
944 | ||
d7a78e5c TT |
945 | 2020-10-12 Tom Tromey <tom@tromey.com> |
946 | ||
947 | * target.h (struct target_ops) <get_section_table>: Update. | |
948 | (target_get_section_table): Update. | |
949 | * target.c (target_get_section_table, target_section_by_addr) | |
950 | (memory_xfer_partial_1): Update. | |
951 | * target-section.h (target_section_table): Now an alias. | |
952 | * target-delegates.c: Rebuild. | |
953 | * target-debug.h (target_debug_print_target_section_table_p): | |
954 | Rename from target_debug_print_struct_target_section_table_p. | |
955 | * symfile.c (build_section_addr_info_from_section_table): Update. | |
956 | * solib.c (solib_map_sections, solib_contains_address_p): Update. | |
957 | * solib-svr4.c (scan_dyntag): Update. | |
958 | * solib-dsbt.c (scan_dyntag): Update. | |
959 | * remote.c (remote_target::remote_xfer_live_readonly_partial): | |
960 | Update. | |
961 | * record-full.c (record_full_core_target::xfer_partial): Update. | |
962 | * progspace.h (struct program_space) <target_sections>: Update. | |
963 | * exec.h (print_section_info): Update. | |
964 | * exec.c (exec_target::close, build_section_table) | |
965 | (add_target_sections, add_target_sections_of_objfile) | |
966 | (remove_target_sections, exec_on_vfork) | |
967 | (section_table_available_memory) | |
968 | (section_table_xfer_memory_partial) | |
969 | (exec_target::get_section_table, exec_target::xfer_partial) | |
970 | (print_section_info, set_section_command) | |
971 | (exec_set_section_address, exec_target::has_memory): Update. | |
972 | * corelow.c (core_target::build_file_mappings) | |
973 | (core_target::xfer_partial, core_target::info_proc_mappings) | |
974 | (core_target::info_proc_mappings): Update. | |
975 | * bfd-target.c (class target_bfd): Update | |
976 | ||
eda214ce TT |
977 | 2020-10-12 Tom Tromey <tom@tromey.com> |
978 | ||
979 | * progspace.c (program_space::~program_space): Don't call | |
980 | clear_section_table. | |
981 | * exec.h (clear_section_table): Don't declare. | |
982 | * exec.c (exec_target::close): Update. | |
983 | (clear_section_table): Remove. | |
984 | ||
91840ee3 TT |
985 | 2020-10-12 Tom Tromey <tom@tromey.com> |
986 | ||
987 | * exec.c (add_target_sections_of_objfile): Simplify. | |
988 | ||
2d128614 TT |
989 | 2020-10-12 Tom Tromey <tom@tromey.com> |
990 | ||
991 | * solib.c (solib_map_sections): Update. | |
992 | * record-full.c (record_full_core_open_1): Update. | |
993 | * exec.h (build_section_table): Return a target_section_table. | |
994 | * exec.c (exec_file_attach): Update. | |
995 | (build_section_table): Return a target_section_table. | |
996 | * corelow.c (core_target::core_target): Update. | |
997 | * bfd-target.c (target_bfd::target_bfd): Update. | |
998 | ||
bb2a6777 TT |
999 | 2020-10-12 Tom Tromey <tom@tromey.com> |
1000 | ||
1001 | * target.c (target_section_by_addr, memory_xfer_partial_1): | |
1002 | Update. | |
1003 | * target-section.h (struct target_section_table): Use | |
1004 | std::vector. | |
1005 | * symfile.h (build_section_addr_info_from_section_table): Take a | |
1006 | target_section_table. | |
1007 | * symfile.c (build_section_addr_info_from_section_table): Take a | |
1008 | target_section_table. | |
1009 | * solist.h (struct so_list) <sections>: Change type. | |
1010 | <sections_end>: Remove. | |
1011 | * solib.c (solib_map_sections, clear_so, solib_read_symbols) | |
1012 | (solib_contains_address_p): Update. | |
1013 | * solib-svr4.c (scan_dyntag): Update. | |
1014 | * solib-dsbt.c (scan_dyntag): Update. | |
1015 | * remote.c (remote_target::remote_xfer_live_readonly_partial): | |
1016 | Update. | |
1017 | * record-full.c (record_full_core_start, record_full_core_end): | |
1018 | Remove. | |
1019 | (record_full_core_sections): New global. | |
1020 | (record_full_core_open_1, record_full_core_target::xfer_partial): | |
1021 | Update. | |
1022 | * exec.h (build_section_table, section_table_xfer_memory_partial) | |
1023 | (add_target_sections): Take a target_section_table. | |
1024 | * exec.c (exec_file_attach, clear_section_table): Update. | |
1025 | (resize_section_table): Remove. | |
1026 | (build_section_table, add_target_sections): Take a | |
1027 | target_section_table. | |
1028 | (add_target_sections_of_objfile, remove_target_sections) | |
1029 | (exec_on_vfork): Update. | |
1030 | (section_table_available_memory): Take a target_section_table. | |
1031 | (section_table_read_available_memory): Update. | |
1032 | (section_table_xfer_memory_partial): Take a target_section_table. | |
1033 | (print_section_info, set_section_command) | |
1034 | (exec_set_section_address, exec_target::has_memory): Update. | |
1035 | * corelow.c (class core_target) <m_core_section_table, | |
1036 | m_core_file_mappings>: Remove braces. | |
1037 | <~core_target>: Remove. | |
1038 | (core_target::core_target): Update. | |
1039 | (core_target::~core_target): Remove. | |
1040 | (core_target::build_file_mappings) | |
1041 | (core_target::xfer_memory_via_mappings) | |
1042 | (core_target::xfer_partial, core_target::info_proc_mappings): | |
1043 | Update. | |
1044 | * bfd-target.c (target_bfd::xfer_partial): Update. | |
1045 | (target_bfd::target_bfd): Update. | |
1046 | (target_bfd::~target_bfd): Remove. | |
1047 | ||
7b466b10 TT |
1048 | 2020-10-12 Tom Tromey <tom@tromey.com> |
1049 | ||
1050 | * target.h (struct target_section, struct target_section_table): | |
1051 | Move to target-section.h. | |
1052 | * target-section.h: New file. | |
1053 | ||
87a37e5e PA |
1054 | 2020-10-12 Pedro Alves <pedro@palves.net> |
1055 | ||
1056 | PR exp/26602 | |
1057 | * valops.c (struct struct_field_searcher): New. | |
1058 | (update_search_result): Rename to ... | |
1059 | (struct_field_searcher::update_result): ... this. Simplify | |
1060 | prototype. Record all found fields. | |
1061 | (do_search_struct_field): Rename to ... | |
1062 | (struct_field_searcher::search): ... this. Simplify prototype. | |
1063 | Maintain stack of visited baseclass path. Call update_result for | |
1064 | fields too. Keep searching fields in baseclasses instead of | |
1065 | stopping at the first found field. | |
1066 | (search_struct_field): Use struct_field_searcher. When looking | |
1067 | for fields, report ambiguous access attempts. | |
1068 | ||
9370fd51 AB |
1069 | 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com> |
1070 | ||
1071 | * frame.c (inside_main_func): Check full symbols as well as | |
1072 | minimal symbols. | |
1073 | ||
59c8a30b JB |
1074 | 2020-10-09 Joel Brobecker <brobecker@adacore.com> |
1075 | ||
1076 | * ada-lang.c (advance_wild_match): Rewrite the function's | |
1077 | description. Change the type of target0, t0 and t1 to char. | |
1078 | ||
7c184d33 TT |
1079 | 2020-10-09 Tom Tromey <tromey@adacore.com> |
1080 | ||
1081 | * dwarf2/read.c (dwarf2_add_field): Handle signed offsets. | |
1082 | ||
5c4258f4 TT |
1083 | 2020-10-09 Tom Tromey <tromey@adacore.com> |
1084 | ||
1085 | * ada-lang.h (ada_encode): Return std::string. | |
1086 | * ada-lang.c (ada_encode_1): Return std::string. | |
1087 | (ada_encode): Likewise. | |
1088 | (type_from_tag, ada_lookup_name_info::ada_lookup_name_info): | |
1089 | Update. | |
1090 | * ada-exp.y (block_lookup, write_var_or_type): Update. | |
1091 | ||
3d87245c HD |
1092 | 2020-10-09 Hannes Domani <ssbssa@yahoo.de> |
1093 | ||
1094 | PR exp/26714 | |
1095 | * printcmd.c (print_formatted): Handle void results as | |
1096 | unformatted prints. | |
1097 | ||
bbb826f5 AB |
1098 | 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com> |
1099 | ||
1100 | * arch/aarch32.c (aarch32_create_target_description): Release the | |
1101 | target_desc_up as late as possible. | |
1102 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
1103 | * arch/amd64.c (amd64_create_target_description): Likewise. | |
1104 | * arch/arc.c (arc_create_target_description): Return a | |
1105 | target_desc_up, don't release it. | |
1106 | * arch/arc.h (arc_create_target_description): Update declaration. | |
1107 | (arc_lookup_target_description): Move target_desc_up into the | |
1108 | cache, and return a borrowed pointer. | |
1109 | * arch/arm.c (arm_create_target_description): Release the | |
1110 | target_desc_up as late as possible. | |
1111 | * arch/i386.c (i386_create_target_description): Likewise. | |
1112 | * arch/riscv.h (riscv_create_target_description): Update | |
1113 | declaration to match definition. | |
1114 | * arch/tic6x.c (tic6x_create_target_description): Release the | |
1115 | target_desc_up as late as possible. | |
1116 | ||
361cb219 AB |
1117 | 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com> |
1118 | ||
1119 | * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU | |
1120 | or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking. | |
1121 | ||
f5c4b229 JV |
1122 | 2020-10-09 Jan Vrany <jan.vrany@labware.com> |
1123 | ||
1124 | * source.c (directory_command): Notify observers that "directories" | |
1125 | parameter has changed. | |
1126 | ||
b2701685 TT |
1127 | 2020-10-08 Tom Tromey <tom@tromey.com> |
1128 | ||
1129 | * cli/cli-cmds.c (print_disassembly): Style function name and | |
1130 | addresses. Add _() wrappers. | |
1131 | ||
ada508b6 SV |
1132 | 2020-10-08 Shahab Vahedi <shahab@synopsys.com> |
1133 | ||
1134 | * NEWS: Mention ARC support in GDBserver. | |
1135 | ||
51a948fd AB |
1136 | 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com> |
1137 | ||
1138 | * arch/aarch32.c (aarch32_create_target_description): Release | |
1139 | unique_ptr returned from allocate_target_description. | |
1140 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
1141 | * arch/amd64.c (amd64_create_target_description): Likewise. | |
1142 | * arch/arc.c (arc_create_target_description): Likewise. | |
1143 | * arch/arm.c (arm_create_target_description): Likewise. | |
1144 | * arch/i386.c (i386_create_target_description): Likewise. | |
1145 | * arch/riscv.c (riscv_create_target_description): Update return | |
1146 | type. Handle allocate_target_description returning a unique_ptr. | |
1147 | (riscv_lookup_target_description): Update to handle unique_ptr. | |
1148 | * arch/tic6x.c (tic6x_create_target_description): Release | |
1149 | unique_ptr returned from allocate_target_description. | |
1150 | * features/microblaze-with-stack-protect.c: Regenerate. | |
1151 | * features/microblaze.c: Regenerate. | |
1152 | * features/mips-dsp-linux.c: Regenerate. | |
1153 | * features/mips-linux.c: Regenerate. | |
1154 | * features/mips64-dsp-linux.c: Regenerate. | |
1155 | * features/mips64-linux.c: Regenerate. | |
1156 | * features/nds32.c: Regenerate. | |
1157 | * features/nios2.c: Regenerate. | |
1158 | * features/or1k.c: Regenerate. | |
1159 | * features/rs6000/powerpc-32.c: Regenerate. | |
1160 | * features/rs6000/powerpc-32l.c: Regenerate. | |
1161 | * features/rs6000/powerpc-403.c: Regenerate. | |
1162 | * features/rs6000/powerpc-403gc.c: Regenerate. | |
1163 | * features/rs6000/powerpc-405.c: Regenerate. | |
1164 | * features/rs6000/powerpc-505.c: Regenerate. | |
1165 | * features/rs6000/powerpc-601.c: Regenerate. | |
1166 | * features/rs6000/powerpc-602.c: Regenerate. | |
1167 | * features/rs6000/powerpc-603.c: Regenerate. | |
1168 | * features/rs6000/powerpc-604.c: Regenerate. | |
1169 | * features/rs6000/powerpc-64.c: Regenerate. | |
1170 | * features/rs6000/powerpc-64l.c: Regenerate. | |
1171 | * features/rs6000/powerpc-7400.c: Regenerate. | |
1172 | * features/rs6000/powerpc-750.c: Regenerate. | |
1173 | * features/rs6000/powerpc-860.c: Regenerate. | |
1174 | * features/rs6000/powerpc-altivec32.c: Regenerate. | |
1175 | * features/rs6000/powerpc-altivec32l.c: Regenerate. | |
1176 | * features/rs6000/powerpc-altivec64.c: Regenerate. | |
1177 | * features/rs6000/powerpc-altivec64l.c: Regenerate. | |
1178 | * features/rs6000/powerpc-e500.c: Regenerate. | |
1179 | * features/rs6000/powerpc-e500l.c: Regenerate. | |
1180 | * features/rs6000/powerpc-isa205-32l.c: Regenerate. | |
1181 | * features/rs6000/powerpc-isa205-64l.c: Regenerate. | |
1182 | * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate. | |
1183 | * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate. | |
1184 | * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate. | |
1185 | * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate. | |
1186 | * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate. | |
1187 | * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate. | |
1188 | * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate. | |
1189 | * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate. | |
1190 | * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate. | |
1191 | * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate. | |
1192 | * features/rs6000/powerpc-vsx32.c: Regenerate. | |
1193 | * features/rs6000/powerpc-vsx32l.c: Regenerate. | |
1194 | * features/rs6000/powerpc-vsx64.c: Regenerate. | |
1195 | * features/rs6000/powerpc-vsx64l.c: Regenerate. | |
1196 | * features/rs6000/rs6000.c: Regenerate. | |
1197 | * features/rx.c: Regenerate. | |
1198 | * features/s390-gs-linux64.c: Regenerate. | |
1199 | * features/s390-linux32.c: Regenerate. | |
1200 | * features/s390-linux32v1.c: Regenerate. | |
1201 | * features/s390-linux32v2.c: Regenerate. | |
1202 | * features/s390-linux64.c: Regenerate. | |
1203 | * features/s390-linux64v1.c: Regenerate. | |
1204 | * features/s390-linux64v2.c: Regenerate. | |
1205 | * features/s390-te-linux64.c: Regenerate. | |
1206 | * features/s390-tevx-linux64.c: Regenerate. | |
1207 | * features/s390-vx-linux64.c: Regenerate. | |
1208 | * features/s390x-gs-linux64.c: Regenerate. | |
1209 | * features/s390x-linux64.c: Regenerate. | |
1210 | * features/s390x-linux64v1.c: Regenerate. | |
1211 | * features/s390x-linux64v2.c: Regenerate. | |
1212 | * features/s390x-te-linux64.c: Regenerate. | |
1213 | * features/s390x-tevx-linux64.c: Regenerate. | |
1214 | * features/s390x-vx-linux64.c: Regenerate. | |
1215 | * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned | |
1216 | from allocate_target_description. | |
1217 | * target-descriptions.c (allocate_target_description): Update | |
1218 | return type. | |
1219 | (print_c_tdesc::visit_pre): Release unique_ptr returned from | |
1220 | allocate_target_description. | |
1221 | ||
485c47e5 TT |
1222 | 2020-10-07 Tom Tromey <tromey@adacore.com> |
1223 | ||
1224 | * unittests/search-memory-selftests.c: New file. | |
1225 | * Makefile.in (SELFTESTS_SRCS): Add | |
1226 | unittests/search-memory-selftests.c. | |
1227 | ||
3a135a91 TT |
1228 | 2020-10-07 Tom Tromey <tromey@adacore.com> |
1229 | ||
1230 | PR gdb/16930: | |
1231 | * findcmd.c (_initialize_mem_search): Mention that the range is | |
1232 | inclusive. | |
1233 | ||
4a72de73 TT |
1234 | 2020-10-07 Tom Tromey <tromey@adacore.com> |
1235 | ||
1236 | * target.h (simple_search_memory): Don't declare. | |
1237 | * target.c (simple_search_memory): Move to gdbsupport. | |
1238 | (default_search_memory): Update. | |
1239 | * remote.c (remote_target::search_memory): Update. | |
1240 | ||
a038ffd8 SM |
1241 | 2020-10-07 Simon Marchi <simon.marchi@efficios.com> |
1242 | ||
1243 | * Makefile.in (COMPILE): Add CXXFLAGS. | |
1244 | (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS. | |
1245 | (check-headers): Add CXXFLAGS. | |
1246 | ||
cc463201 AK |
1247 | 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com> |
1248 | ||
1249 | * arc-linux-tdep.h: New file. | |
1250 | * arc-linux-tdep.c (arc_linux_core_reg_offsets, | |
1251 | arc_linux_supply_gregset, arc_linux_supply_v2_regset, | |
1252 | arc_linux_collect_gregset, arc_linux_collect_v2_regset, | |
1253 | arc_linux_gregset, arc_linux_v2_regset, | |
1254 | arc_linux_iterate_over_regset_sections, | |
1255 | arc_linux_core_read_description): Implement. | |
1256 | (arc_linux_init_osabi): Set iterate_over_regset_sections. | |
1257 | * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare. | |
1258 | (arc_gdbarch_features_create): Add. | |
1259 | * arc-tdep.c (arc_gdbarch_features_create): Not static anymore. | |
1260 | ||
e4bd363f SV |
1261 | 2020-10-07 Shahab Vahedi <shahab@synopsys.com> |
1262 | ||
1263 | * arch/arc.h: Rename "arc_gdbarch_features" to | |
1264 | "arc_arch_features". | |
1265 | * arc-tdep.h: Likewise. | |
1266 | * arc-tdep.c: Likewise. | |
1267 | ||
b68bef99 TBA |
1268 | 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1269 | ||
1270 | * infcmd.c (attach_command): Remove the redundant call to | |
1271 | `clear_proceed_status`. | |
1272 | ||
4641551a KR |
1273 | 2020-10-07 Kamil Rytarowski <n54@gmx.com> |
1274 | ||
1275 | * nat/netbsd-nat.c (write_memory, read_memory): Update. | |
1276 | ||
91e5e8db KR |
1277 | 2020-10-07 Kamil Rytarowski <n54@gmx.com> |
1278 | ||
1279 | * nat/netbsd-nat.c (write_memory, read_memory): Add. | |
1280 | * nat/netbsd-nat.h (write_memory, read_memory): Likewise. | |
1281 | * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update. | |
1282 | ||
64c03bdb SM |
1283 | 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca> |
1284 | ||
1285 | * break-catch-sig.c (signal_catch_counts): Make a static arrray. | |
1286 | (_initialize_break_catch_sig): Don't allocate array. | |
1287 | ||
31a8f60f AB |
1288 | 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1289 | ||
1290 | * symtab.c (find_pc_line): Return unmapped addresses when the | |
1291 | requested address is also unmapped. | |
1292 | ||
9e6dbd8b SM |
1293 | 2020-10-05 Simon Marchi <simon.marchi@efficios.com> |
1294 | ||
1295 | * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add | |
1296 | tui/tui-out.h. | |
1297 | ||
a1d217e8 SM |
1298 | 2020-10-05 Simon Marchi <simon.marchi@efficios.com> |
1299 | ||
1300 | * amd64-windows-tdep.c (amd64_windows_return_value): Use | |
1301 | type::is_vector instead of TYPE_VECTOR. | |
1302 | ||
7d144117 SM |
1303 | 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca> |
1304 | ||
1305 | * auto-load.c (auto_load_objfile_script_1): Don't use | |
1306 | debugfile_holder as temporary variable when stripping drive | |
1307 | letter. | |
1308 | ||
cd096ec8 HD |
1309 | 2020-10-05 Hannes Domani <ssbssa@yahoo.de> |
1310 | ||
1311 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
1312 | Add TYPE_CODE_COMPLEX. | |
1313 | (amd64_windows_return_value): Fix types returned via XMM0. | |
1314 | ||
b58e7f72 AH |
1315 | 2020-10-05 Alan Hayward <alan.hayward@arm.com> |
1316 | ||
1317 | * MAINTAINERS (Responsible Maintainers): Add Luis Machado to | |
1318 | AArch64/ARM maintainers. | |
1319 | ||
8d378f27 SM |
1320 | 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca> |
1321 | ||
1322 | * NEWS: Mention set/show debug event-loop. | |
1323 | ||
d5519913 TT |
1324 | 2020-10-02 Tom Tromey <tromey@adacore.com> |
1325 | ||
1326 | * skip.c (skiplist_entry::skiplist_entry): Unconditionally use | |
1327 | REG_EXTENDED. | |
1328 | ||
18b67edc SM |
1329 | 2020-10-02 Simon Marchi <simon.marchi@efficios.com> |
1330 | ||
1331 | * aix-thread.c (aix_thread_inferior_created): Remove parameters. | |
1332 | * procfs.c (procfs_inferior_created): Remove. | |
1333 | (_initialize_procfs): Don't register procfs_inferior_created. | |
1334 | ||
6b01403b SM |
1335 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> |
1336 | ||
1337 | * async-event.c (invoke_async_signal_handlers): Add debug | |
1338 | print. | |
1339 | (check_async_event_handlers): Likewise. | |
1340 | * event-top.c (show_debug_event_loop): New function. | |
1341 | (_initialize_event_top): Register "set debug event-loop" | |
1342 | setting. | |
1343 | ||
ba988419 SM |
1344 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> |
1345 | ||
1346 | * debug.c (debug_prefixed_vprintf): Move to gdbsupport. | |
1347 | * debug.h: Remove. | |
1348 | * infrun.c: Include gdbsupport/common-debug.h. | |
1349 | * linux-nat.c: Likewise. | |
1350 | ||
db20ebdf SM |
1351 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> |
1352 | ||
1353 | * async-event.h (create_async_signal_handler): Add name | |
1354 | parameter. | |
1355 | (create_async_event_handler): Likewise. | |
1356 | * async-event.c (struct async_signal_handler) <name>: New field. | |
1357 | (struct async_event_handler) <name>: New field. | |
1358 | (create_async_signal_handler): Assign name. | |
1359 | (create_async_event_handler): Assign name. | |
1360 | * event-top.c (async_init_signals): Pass name when creating | |
1361 | handler. | |
1362 | * infrun.c (_initialize_infrun): Likewise. | |
1363 | * record-btrace.c (record_btrace_push_target): Likewise. | |
1364 | * record-full.c (record_full_open): Likewise. | |
1365 | * remote-notif.c (remote_notif_state_allocate): Likewise. | |
1366 | * remote.c (remote_target::open_1): Likewise. | |
1367 | * tui/tui-win.c (tui_initialize_win): Likewise. | |
1368 | ||
2554f6f5 SM |
1369 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> |
1370 | ||
1371 | * async-event.c (initialize_async_signal_handlers): Pass name to | |
1372 | add_file_handler | |
1373 | * event-top.c (ui_register_input_event_handler): Likewise. | |
1374 | * linux-nat.c (linux_nat_target::async): Likewise. | |
1375 | * run-on-main-thread.c (_initialize_run_on_main_thread): | |
1376 | Likewise | |
1377 | * ser-base.c (reschedule): Likewise. | |
1378 | (ser_base_async): Likewise. | |
1379 | * tui/tui-io.c: Likewise. | |
1380 | * top.h (struct ui) <num>: New field. | |
1381 | * top.c (highest_ui_num): New variable. | |
1382 | (ui::ui): Initialize num. | |
1383 | ||
a7aba266 SM |
1384 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> |
1385 | ||
1386 | * observable.h <inferior_created>: Remove parameters. Update all | |
1387 | listeners. | |
1388 | * inferior.h (post_create_inferior): Remove target parameter. | |
1389 | Update all callers. | |
1390 | ||
048fde1e | 1391 | 2020-10-02 Nitika Achra <Nitika.Achra@amd.com> |
1392 | ||
1393 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx | |
1394 | and DW_MACRO_undef_strx. | |
1395 | (dwarf_decode_macros): Likewise | |
1396 | * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters | |
1397 | which is the value of DW_AT_str_offsets_base. | |
1398 | * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include | |
1399 | str_offsets_base. | |
1400 | ||
064280be KR |
1401 | 2020-10-01 Kamil Rytarowski <n54@gmx.com> |
1402 | ||
1403 | * i386-tdep.h (i386nbsd_sc_reg_offset): Remove. | |
1404 | ||
6ff33035 KR |
1405 | 2020-10-01 Kamil Rytarowski <n54@gmx.com> |
1406 | ||
1407 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Update. | |
1408 | * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static. | |
1409 | ||
1eb6eb79 KR |
1410 | 2020-10-01 Kamil Rytarowski <n54@gmx.com> |
1411 | ||
1412 | * i386-bsd-nat.c: Include "x86-bsd-nat.h". | |
1413 | ||
95eb9e54 TV |
1414 | 2020-09-30 Tom de Vries <tdevries@suse.de> |
1415 | ||
1416 | PR symtab/26683 | |
1417 | * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated. | |
1418 | ||
cae21f8e TT |
1419 | 2020-09-30 Tom Tromey <tromey@adacore.com> |
1420 | ||
1421 | * dwarf2/read.c (handle_variant): Use constant_value. | |
1422 | ||
529908cb TT |
1423 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1424 | ||
1425 | * dwarf2/read.c (lookup_dwo_id, get_type_unit_group) | |
1426 | (read_file_scope, dwarf2_get_pc_bounds) | |
1427 | (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment) | |
1428 | (read_structure_type, handle_struct_member_die) | |
1429 | (read_enumeration_type, read_array_type, read_set_type) | |
1430 | (read_tag_pointer_type, read_tag_reference_type) | |
1431 | (read_subroutine_type, read_base_type, read_subrange_type) | |
1432 | (read_full_die_1, partial_die_info::read) | |
1433 | (partial_die_info::read, by, new_symbol) | |
1434 | (dwarf2_const_value_data, dwarf2_const_value_attr) | |
1435 | (dump_die_shallow, dwarf2_fetch_constant_bytes) | |
1436 | (prepare_one_comp_unit): Update. | |
1437 | * dwarf2/attribute.h (DW_UNSND): Remove. | |
1438 | ||
c45bc3f8 TT |
1439 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1440 | ||
1441 | * dwarf2/read.c (read_func_scope, prototyped_function_p) | |
1442 | (read_subroutine_type, partial_die_info::read) | |
1443 | (dwarf2_flag_true_p, new_symbol, dump_die_shallow) | |
1444 | (dwarf2_add_member_fn): Update. | |
1445 | * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare. | |
1446 | * dwarf2/attribute.c (attribute::as_boolean): New method. | |
1447 | ||
23dca5c3 TT |
1448 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1449 | ||
1450 | * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update. | |
1451 | * dwarf2/attribute.h (struct attribute) <as_virtuality>: New | |
1452 | method. | |
1453 | * dwarf2/attribute.c (attribute::as_virtuality): New method. | |
1454 | ||
52c14d11 TT |
1455 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1456 | ||
1457 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check | |
1458 | the attribute's form. | |
1459 | ||
e8e5c158 TT |
1460 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1461 | ||
1462 | * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c. | |
1463 | (dwarf2_add_member_fn): Update. | |
1464 | * dwarf2/attribute.h (struct attribute) <defaulted>: Declare. | |
1465 | * dwarf2/attribute.c (attribute::defaulted): New method, from | |
1466 | is_valid_DW_AT_defaulted. | |
1467 | ||
d4df075e TT |
1468 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1469 | ||
1470 | * dwarf2/read.c (dw2_get_file_names_reader) | |
1471 | (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list) | |
1472 | (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton) | |
1473 | (dwarf2_symbol_mark_computed): Use as_unsigned. | |
1474 | * dwarf2/attribute.h (struct attribute) <as_unsigned>: New | |
1475 | method. | |
1476 | <form_is_section_offset>: Update comment. | |
1477 | ||
bf23a268 TT |
1478 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1479 | ||
1480 | * dwarf2/read.c (dwarf2_access_attribute): Rename from | |
1481 | dwarf2_default_access_attribute. Look up attribute. | |
1482 | (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn): | |
1483 | Update. | |
1484 | ||
7a5f294d TT |
1485 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1486 | ||
1487 | * dwarf2/read.c (skip_one_die): Update. | |
1488 | (read_full_die_1): Change how reprocessing is done. | |
1489 | (partial_die_info::read): Update. | |
1490 | (read_attribute_value): Remove need_reprocess parameter. | |
1491 | (read_attribute): Likewise. | |
1492 | * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>: | |
1493 | New method. | |
1494 | ||
36d378cf TT |
1495 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1496 | ||
1497 | * dwarf2/read.c (read_attribute_reprocess, read_attribute_value) | |
1498 | (dwarf2_const_value_attr, dump_die_shallow) | |
1499 | (dwarf2_fetch_constant_bytes): Update. | |
1500 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update | |
1501 | comment. | |
1502 | <set_address>: New method. | |
1503 | (DW_ADDR): Remove. | |
1504 | * dwarf2/attribute.c (attribute::form_is_ref): Update comment. | |
1505 | (attribute::as_string, attribute::as_address): Add assert. | |
1506 | ||
fe56917a TT |
1507 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1508 | ||
1509 | * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC. | |
1510 | (read_attribute_reprocess, read_attribute_value): Update. | |
1511 | (read_attribute): Clear requires_reprocessing. | |
1512 | * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess, | |
1513 | form_requires_reprocessing>: New methods. | |
1514 | <string_init>: Clear requires_reprocessing. | |
1515 | <set_unsigned_reprocess>: New method. | |
1516 | <name>: Shrink by one bit. | |
1517 | <requires_reprocessing>: New member. | |
1518 | * dwarf2/attribute.c (attribute::form_requires_reprocessing): New | |
1519 | method. | |
1520 | ||
414ad644 TT |
1521 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1522 | ||
1523 | * dwarf2/read.c (read_attribute_value): Update. | |
1524 | * dwarf2/attribute.h (struct attribute) <form_is_unsigned, | |
1525 | set_unsigned>: New methods. | |
1526 | * dwarf2/attribute.c (attribute::form_is_unsigned): New method. | |
1527 | ||
1bc397c5 TT |
1528 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1529 | ||
1530 | * dwarf2/read.c (get_alignment, read_array_order) | |
1531 | (read_attribute_value, dwarf2_const_value_attr) | |
1532 | (dump_die_shallow, dwarf2_fetch_constant_bytes): Update. | |
1533 | * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>: | |
1534 | New methods. | |
1535 | (DW_SND): Remove. | |
1536 | ||
630ed6b9 TT |
1537 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1538 | ||
1539 | * dwarf2/read.c (read_attribute_value, lookup_die_type) | |
1540 | (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type): | |
1541 | Update. | |
1542 | * dwarf2/attribute.h (struct attribute) <as_signature, | |
1543 | set_signature>: New methods. | |
1544 | (DW_SIGNATURE): Remove. | |
1545 | ||
9d2246fc TT |
1546 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1547 | ||
1548 | * dwarf2/read.c (read_call_site_scope) | |
1549 | (handle_data_member_location, dwarf2_add_member_fn) | |
1550 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
1551 | (partial_die_info::read, read_attribute_value) | |
1552 | (var_decode_location, dwarf2_const_value_attr, dump_die_shallow) | |
1553 | (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes) | |
1554 | (dwarf2_symbol_mark_computed): Update. | |
1555 | * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New | |
1556 | methods. | |
1557 | (DW_BLOCK): Remove. | |
1558 | * dwarf2/attribute.c (attribute::form_is_block): Add | |
1559 | DW_FORM_data16. | |
1560 | ||
c6481205 TT |
1561 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1562 | ||
1563 | * dwarf2/read.c (read_cutu_die_from_dwo) | |
1564 | (read_attribute_reprocess, read_attribute_value, read_attribute) | |
1565 | (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow) | |
1566 | (dwarf2_fetch_constant_bytes): Update. | |
1567 | * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare. | |
1568 | <set_string_noncanonical, set_string_canonical>: New methods. | |
1569 | <string_is_canonical>: Update comment. | |
1570 | <canonical_string_p>: Add assert. | |
1571 | (DW_STRING, DW_STRING_IS_CANONICAL): Remove. | |
1572 | * dwarf2/attribute.c (attribute::form_is_string): New method. | |
1573 | (attribute::string): Use it. | |
1574 | ||
3b64bf15 TT |
1575 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1576 | ||
1577 | * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name) | |
1578 | (dump_die_shallow): Use canonical_string_p. | |
1579 | * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New | |
1580 | method. | |
1581 | ||
2c830f54 TT |
1582 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1583 | ||
1584 | * dwarf2/read.c (partial_die_info::read) | |
1585 | (dwarf2_const_value_attr, anonymous_struct_prefix, ) | |
1586 | (dwarf2_name, dwarf2_fetch_constant_bytes): Use | |
1587 | attribute::as_string. | |
1588 | ||
6c412691 TT |
1589 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1590 | ||
1591 | * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or | |
1592 | DW_ADDR. | |
1593 | (attribute::string): Don't use DW_STRING. | |
1594 | (attribute::get_ref_die_offset): Don't use DW_UNSND. | |
1595 | (attribute::constant_value): Don't use DW_UNSND or DW_SND. | |
1596 | ||
95f982e5 TT |
1597 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1598 | ||
1599 | * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope) | |
1600 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
1601 | (partial_die_info::read, dwarf2_string_attr, new_symbol): Update. | |
1602 | * dwarf2/attribute.h (struct attribute): Rename methods. | |
1603 | * dwarf2/attribute.c (attribute::as_address): Rename from | |
1604 | value_as_address. | |
1605 | (attribute::as_string): Rename from value_as_string. | |
1606 | ||
f800b00e TT |
1607 | 2020-09-29 Tom Tromey <tom@tromey.com> |
1608 | ||
1609 | * dwarf2/read.c (partial_die_info::read) <case | |
1610 | DW_AT_linkage_name>: Use value_as_string. | |
1611 | (dwarf2_string_attr): Use value_as_string. | |
1612 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
1613 | method. | |
1614 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
1615 | ||
de38d64a PA |
1616 | 2020-09-29 Pedro Alves <pedro@palves.net> |
1617 | ||
1618 | * unittests/enum-flags-selftests.c: Check whether __GNUC__ is | |
1619 | defined before using '#pragma GCC diagnostic' instead of checking | |
1620 | __clang__. | |
1621 | ||
9aed480c TT |
1622 | 2020-09-28 Tom Tromey <tom@tromey.com> |
1623 | ||
1624 | * infrun.c (displaced_step_fixup, thread_still_needs_step_over) | |
1625 | (handle_signal_stop): Update. | |
1626 | * procfs.c (procfs_target::insert_watchpoint): Update. | |
1627 | * target.h (target_have_steppable_watchpoint): Now a function. | |
1628 | ||
8a3ecb79 TT |
1629 | 2020-09-28 Tom Tromey <tom@tromey.com> |
1630 | ||
1631 | * infrun.c (set_schedlock_func): Update. | |
1632 | * target.h (target_can_lock_scheduler): Now a function. | |
1633 | ||
55f6301a TT |
1634 | 2020-09-28 Tom Tromey <tom@tromey.com> |
1635 | ||
1636 | * inferior.h (class inferior) <has_execution>: Update. | |
1637 | * windows-tdep.c (windows_solib_create_inferior_hook): Update. | |
1638 | * valops.c (find_function_in_inferior) | |
1639 | (value_allocate_space_in_inferior): Update. | |
1640 | * top.c (kill_or_detach): Update. | |
1641 | * target.c (target_preopen, set_target_permissions): Update. | |
1642 | (target_has_execution_current): Remove. | |
1643 | * sparc64-tdep.c (adi_examine_command, adi_assign_command): | |
1644 | Update. | |
1645 | * solib.c (update_solib_list, reload_shared_libraries): Update. | |
1646 | * solib-svr4.c (svr4_solib_create_inferior_hook): Update. | |
1647 | * solib-dsbt.c (enable_break): Update. | |
1648 | * score-tdep.c (score7_fetch_inst): Update. | |
1649 | * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries): | |
1650 | Update. | |
1651 | * remote.c (remote_target::start_remote) | |
1652 | (remote_target::remote_check_symbols, remote_target::open_1) | |
1653 | (remote_target::remote_detach_1, remote_target::verify_memory) | |
1654 | (remote_target::xfer_partial, remote_target::read_description) | |
1655 | (remote_target::get_min_fast_tracepoint_insn_len): Update. | |
1656 | * record-full.c (record_full_open_1): Update. | |
1657 | * record-btrace.c (record_btrace_target_open): Update. | |
1658 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
1659 | (value_nsstring): Update. | |
1660 | * linux-thread-db.c (add_thread_db_info) | |
1661 | (thread_db_find_new_threads_silently, check_thread_db_callback) | |
1662 | (try_thread_db_load_1, record_thread): Update. | |
1663 | * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw): | |
1664 | Update. | |
1665 | * linux-fork.c (checkpoint_command): Update. | |
1666 | * infrun.c (set_non_stop, set_observer_mode) | |
1667 | (check_multi_target_resumption, for_each_just_stopped_thread) | |
1668 | (maybe_remove_breakpoints, normal_stop) | |
1669 | (class infcall_suspend_state): Update. | |
1670 | * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running) | |
1671 | (info_program_command, attach_command): Update. | |
1672 | * infcall.c (call_function_by_hand_dummy): Update. | |
1673 | * inf-loop.c (inferior_event_handler): Update. | |
1674 | * gcore.c (gcore_command, derive_heap_segment): Update. | |
1675 | * exec.c (exec_file_command): Update. | |
1676 | * eval.c (evaluate_subexp): Update. | |
1677 | * compile/compile.c (compile_to_object): Update. | |
1678 | * cli/cli-dump.c (restore_command): Update. | |
1679 | * breakpoint.c (update_watchpoint) | |
1680 | (update_inserted_breakpoint_locations) | |
1681 | (insert_breakpoint_locations, get_bpstat_thread): Update. | |
1682 | * target.h (target_has_execution): Remove macro. | |
1683 | (target_has_execution_current): Don't declare. | |
1684 | (target_has_execution): Rename from target_has_execution_1. Add | |
1685 | argument default. | |
1686 | ||
05374cfd TT |
1687 | 2020-09-28 Tom Tromey <tom@tromey.com> |
1688 | ||
1689 | * mi/mi-main.c (exec_reverse_continue) | |
1690 | (mi_cmd_list_target_features): Update. | |
1691 | * infrun.c (set_exec_direction_func): Update. | |
1692 | * target.c (default_execution_direction): Update. | |
1693 | * reverse.c (exec_reverse_once): Update. | |
1694 | * target.h (target_can_execute_reverse): Now a function. | |
1695 | ||
9dccd06e TT |
1696 | 2020-09-28 Tom Tromey <tom@tromey.com> |
1697 | ||
1698 | * tui/tui-regs.c (tui_get_register) | |
1699 | (tui_data_window::show_registers): Update. | |
1700 | * thread.c (scoped_restore_current_thread::restore) | |
1701 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
1702 | Update. | |
1703 | * regcache-dump.c (regcache_print): Update. | |
1704 | * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb): | |
1705 | Update. | |
1706 | * mi/mi-main.c (mi_cmd_data_write_register_values): Update. | |
1707 | * mep-tdep.c (current_me_module, current_options): Update. | |
1708 | * linux-thread-db.c (thread_db_load): Update. | |
1709 | * infcmd.c (registers_info, info_vector_command) | |
1710 | (info_float_command): Update. | |
1711 | * ia64-tdep.c (ia64_frame_prev_register) | |
1712 | (ia64_sigtramp_frame_prev_register): Update. | |
1713 | * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update. | |
1714 | * gcore.c (derive_stack_segment): Update. | |
1715 | * frame.c (get_current_frame, has_stack_frames): Update. | |
1716 | * findvar.c (language_defn::read_var_value): Update. | |
1717 | * arm-tdep.c (arm_pc_is_thumb): Update. | |
1718 | * target.c (target_has_registers): Rename from | |
1719 | target_has_registers_1. | |
1720 | * target.h (target_has_registers): Remove macro. | |
1721 | (target_has_registers): Rename from target_has_registers_1. | |
1722 | ||
841de120 TT |
1723 | 2020-09-28 Tom Tromey <tom@tromey.com> |
1724 | ||
1725 | * windows-tdep.c (tlb_make_value): Update. | |
1726 | * tui/tui-regs.c (tui_data_window::show_registers): Update. | |
1727 | * thread.c (scoped_restore_current_thread::restore) | |
1728 | (scoped_restore_current_thread::scoped_restore_current_thread) | |
1729 | (thread_command): Update. | |
1730 | * stack.c (backtrace_command_1, frame_apply_level_command) | |
1731 | (frame_apply_all_command, frame_apply_command): Update. | |
1732 | * infrun.c (siginfo_make_value, restore_infcall_control_state): | |
1733 | Update. | |
1734 | * gcore.c (derive_stack_segment): Update. | |
1735 | * frame.c (get_current_frame, has_stack_frames): Update. | |
1736 | * auxv.c (info_auxv_command): Update. | |
1737 | * ada-tasks.c (ada_build_task_list): Update. | |
1738 | * target.c (target_has_stack): Rename from target_has_stack_1. | |
1739 | * target.h (target_has_stack): Remove macro. | |
1740 | (target_has_stack): Rename from target_has_stack_1. | |
1741 | ||
a739972c TT |
1742 | 2020-09-28 Tom Tromey <tom@tromey.com> |
1743 | ||
1744 | * target.c (target_has_memory): Rename from target_has_memory_1. | |
1745 | * tui/tui-regs.c (tui_data_window::show_registers): Update. | |
1746 | * thread.c (scoped_restore_current_thread::restore) | |
1747 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
1748 | Update. | |
1749 | * frame.c (get_current_frame, has_stack_frames): Update. | |
1750 | * target.h (target_has_memory): Remove macro. | |
1751 | (target_has_memory): Rename from target_has_memory_1. | |
1752 | ||
5b8a4776 TT |
1753 | 2020-09-28 Tom Tromey <tom@tromey.com> |
1754 | ||
1755 | * target.c (target_has_all_memory_1): Remove. | |
1756 | * target.h (target_has_all_memory): Remove define. | |
1757 | (target_has_all_memory_1): Don't declare. | |
1758 | ||
bd356ec6 SM |
1759 | 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca> |
1760 | ||
1761 | * ser-base.c: Adjust comments formatting. | |
1762 | ||
2c72d5e5 TT |
1763 | 2020-09-27 Tom Tromey <tom@tromey.com> |
1764 | ||
1765 | PR tui/25342: | |
1766 | * tui/tui-io.c (tui_puts): Rewrite. Move earlier. | |
1767 | ||
35a98237 TT |
1768 | 2020-09-27 Tom Tromey <tom@tromey.com> |
1769 | ||
1770 | PR tui/25342: | |
1771 | * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL. | |
1772 | ||
9e820dec TT |
1773 | 2020-09-27 Tom Tromey <tom@tromey.com> |
1774 | ||
1775 | * unittests/tui-selftests.c: Update. | |
1776 | * tui/tui-winsource.h (struct tui_source_window_base) | |
1777 | <extra_margin, show_line_number, refresh_pad>: New methods. | |
1778 | <m_max_length, m_pad>: New members. | |
1779 | (tui_copy_source_line): Update. | |
1780 | * tui/tui-winsource.c (tui_copy_source_line): Remove line_no, | |
1781 | first_col, line_width, ndigits parameters. Add length. | |
1782 | (tui_source_window_base::show_source_line): Write to pad. Line | |
1783 | number now 0-based. | |
1784 | (tui_source_window_base::refresh_pad): New method. | |
1785 | (tui_source_window_base::show_source_content): Write to pad. Call | |
1786 | refresh_pad. | |
1787 | (tui_source_window_base::do_scroll_horizontal): Call refresh_pad, | |
1788 | not refill. | |
1789 | (tui_source_window_base::update_exec_info): Call | |
1790 | show_line_number. | |
1791 | * tui/tui-source.h (struct tui_source_window) <extra_margin>: New | |
1792 | method. | |
1793 | <m_digits>: New member. | |
1794 | * tui/tui-source.c (tui_source_window::set_contents): Set m_digits | |
1795 | and m_max_length. | |
1796 | (tui_source_window::show_line_number): New method. | |
1797 | * tui/tui-io.h (tui_puts): Fix comment. | |
1798 | * tui/tui-disasm.c (tui_disasm_window::set_contents): Set | |
1799 | m_max_length. | |
1800 | ||
c15c15c8 TT |
1801 | 2020-09-27 Tom Tromey <tom@tromey.com> |
1802 | ||
1803 | * tui/tui-winsource.c | |
1804 | (tui_source_window_base::set_is_exec_point_at): Don't call | |
1805 | show_source_line. | |
1806 | ||
149830c1 TT |
1807 | 2020-09-27 Tom Tromey <tom@tromey.com> |
1808 | ||
1809 | * python/py-tui.c (class tui_py_window) <refresh_window>: New | |
1810 | method. | |
1811 | <erase>: Update. | |
1812 | <cursor_x, cursor_y>: Remove. | |
1813 | <m_inner_window>: New member. | |
1814 | (tui_py_window::rerender): Create inner window. | |
1815 | (tui_py_window::output): Write to inner window. | |
1816 | ||
8f9929bb GR |
1817 | 2020-09-26 Gareth Rees <grees@undo.io> (tiny change) |
1818 | ||
1819 | PR python/26586 | |
1820 | * cli/cli-script.c (execute_control_commands): don't set | |
1821 | instream to nullptr here as this breaks the from_tty argument | |
1822 | to gdb.execute in Python. | |
1823 | (execute_user_command): set instream to nullptr here instead. | |
1824 | ||
956bdb59 SM |
1825 | 2020-09-25 Simon Marchi <simon.marchi@efficios.com> |
1826 | ||
1827 | * infrun.h (infrun_debug_printf): Fix formatting. | |
1828 | * linux-nat.c (linux_nat_debug_printf): Fix formatting. | |
1829 | ||
3b93626b SJ |
1830 | 2020-09-25 Saagar Jha <saagar@saagarjha.com> |
1831 | ||
1832 | * compile/compile-object-load.h (struct munmap_list): Add | |
1833 | explicitly-defined move constructor. | |
1834 | ||
b551a89f TT |
1835 | 2020-09-24 Tom Tromey <tromey@adacore.com> |
1836 | ||
1837 | PR tui/26638: | |
1838 | * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New | |
1839 | method. | |
1840 | * tui/tui-data.h (struct tui_win_info) <can_focus>: New method. | |
1841 | * tui/tui-data.c (tui_next_win): Exclude non-focusable windows. | |
1842 | (tui_prev_win): Rewrite. | |
1843 | ||
99bb393f HD |
1844 | 2020-09-23 Hannes Domani <ssbssa@yahoo.de> |
1845 | ||
1846 | * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints | |
1847 | in WOW64 processes as SIGINT. | |
1848 | * nat/windows-nat.h: Make wow64_process a shared variable. | |
1849 | * windows-nat.c: Remove static wow64_process variable. | |
1850 | ||
20a5fcbd TT |
1851 | 2020-09-23 Tom Tromey <tom@tromey.com> |
1852 | ||
1853 | PR symtab/25470: | |
1854 | * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit | |
1855 | offset and bit size. | |
1856 | * printcmd.c (print_scalar_formatted): Handle zero-length | |
1857 | integer. | |
1858 | (print_scalar_formatted): Use bit_size_differs_p. | |
1859 | * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New | |
1860 | constant. | |
1861 | (union type_specific): <int_stuff>: New member. | |
1862 | (struct type) <bit_size_differs_p, bit_size, bit_offset>: New | |
1863 | methods. | |
1864 | * gdbtypes.c (init_integer_type, init_boolean_type): Initialize | |
1865 | TYPE_SPECIFIC_FIELD. | |
1866 | (recursive_dump_type, copy_type_recursive): Update. | |
1867 | * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and | |
1868 | DW_AT_data_bit_offset. | |
1869 | ||
bac51ab7 TT |
1870 | 2020-09-23 Tom Tromey <tom@tromey.com> |
1871 | ||
1872 | * utils.h (class gdb_argv): Add move operators. | |
1873 | <append>: New methods. | |
1874 | * compile/compile.c (build_argc_argv): Remove. | |
1875 | (compile_args_argc): Remove. | |
1876 | (compile_args_argv): Change type. | |
1877 | (set_compile_args): Simplify. | |
1878 | (append_args): Remove. | |
1879 | (filter_args): Remove argcp parameter. | |
1880 | (get_args): Return gdb_argv. Simplify. | |
1881 | (compile_to_object): Update. | |
1882 | ||
92677124 TT |
1883 | 2020-09-23 Tom Tromey <tom@tromey.com> |
1884 | ||
1885 | * compile/compile-object-run.c (do_module_cleanup) | |
1886 | <~do_module_cleanup> :Remove. | |
1887 | (do_module_cleanup): Update. | |
1888 | * compile/compile-object-load.h (struct munmap_list): Add move | |
1889 | assignment operator. | |
1890 | <source_file>: Now a std::string. | |
1891 | <munmap_list>: Rename. No longer a pointer. | |
1892 | * compile/compile-object-load.c (struct setup_sections_data): Add | |
1893 | constructor. | |
1894 | <setup_one_section>: Declare. | |
1895 | <munmap_list>: Move earlier. | |
1896 | <m_bfd>: New member. | |
1897 | <m_last_size, m_last_section_first, m_last_prot, | |
1898 | m_last_max_alignment>: Rename, add initializers where needed. | |
1899 | (setup_sections_data::setup_one_section): Rename from | |
1900 | setup_sections. Update. | |
1901 | (compile_object_load): Update. Don't use bfd_map_over_sections. | |
1902 | ||
e616f60a TT |
1903 | 2020-09-23 Tom Tromey <tom@tromey.com> |
1904 | ||
1905 | * compile/compile-object-run.c (struct do_module_cleanup): Add | |
1906 | parameters to constructor. Update destructor. | |
1907 | <source_file, scope, scope_data, out_value_type, out_value_addr, | |
1908 | munmap_list_head, objfile_name_string>: Remove. | |
1909 | <module>: New member. | |
1910 | (do_module_cleanup): Update. | |
1911 | (compile_object_run): Update. | |
1912 | ||
e947a848 TT |
1913 | 2020-09-23 Tom Tromey <tom@tromey.com> |
1914 | ||
1915 | * compile/compile.c (eval_compile_command): Update. | |
1916 | * compile/compile-object-run.h (compile_object_run): Take a | |
1917 | compile_module_up. | |
1918 | * compile/compile-object-run.c (compile_object_run): Take a | |
1919 | compile_module_up. | |
1920 | * compile/compile-object-load.h (struct compile_module): Add | |
1921 | constructor, destructor. | |
1922 | (compile_module_up): New typedef. | |
1923 | (compile_object_load): Return compile_object_up. | |
1924 | * compile/compile-object-load.c (compile_object_load): Return | |
1925 | compile_module_up. | |
1926 | ||
0dbf6ee6 TT |
1927 | 2020-09-23 Tom Tromey <tom@tromey.com> |
1928 | ||
1929 | * compile/compile-object-run.c (struct do_module_cleanup): Add | |
1930 | constructor, destructor. | |
1931 | <objfile_name_string>: Don't use struct hack. | |
1932 | (do_module_cleanup): Use delete. | |
1933 | (compile_object_run): Use new. | |
1934 | ||
ebe824f5 TT |
1935 | 2020-09-23 Tom Tromey <tom@tromey.com> |
1936 | ||
1937 | * compile/compile-cplus-types.c | |
1938 | (compile_cplus_convert_struct_or_union): Use std::vector. | |
1939 | (compile_cplus_convert_func): Likewise. | |
1940 | * compile/compile-c-types.c (convert_func): Use std::vector. | |
1941 | ||
5dd918d9 TT |
1942 | 2020-09-21 Tom Tromey <tromey@adacore.com> |
1943 | ||
1944 | * sparc-tdep.c (sparc32_skip_prologue): Use | |
1945 | skip_prologue_using_sal. | |
1946 | ||
5486c517 TT |
1947 | 2020-09-19 Tom Tromey <tom@tromey.com> |
1948 | ||
1949 | * symfile.c (add_section_size_callback): Remove. | |
1950 | (load_one_section): Rename from load_section_callback. Change | |
1951 | parameters. | |
1952 | (generic_load): Use foreach. | |
1953 | ||
8a6bb1d1 TT |
1954 | 2020-09-19 Tom Tromey <tom@tromey.com> |
1955 | ||
1956 | * exec.c (add_to_section_table): Remove. | |
1957 | (build_section_table): Use foreach. | |
1958 | ||
08f93a1a TT |
1959 | 2020-09-19 Tom Tromey <tom@tromey.com> |
1960 | ||
1961 | * elfread.c (elf_locate_sections): Change parameters. | |
1962 | (elf_symfile_read): Use foreach. | |
1963 | ||
03cd72b8 TT |
1964 | 2020-09-19 Tom Tromey <tom@tromey.com> |
1965 | ||
1966 | * cli/cli-dump.c (struct callback_data): Remove. | |
1967 | (restore_one_section): Rename from restore_section_callback. | |
1968 | Change parameters. | |
1969 | (restore_binary_file): Change parameters. | |
1970 | (restore_command): Use foreach. | |
1971 | ||
f4f2b85f TT |
1972 | 2020-09-19 Tom Tromey <tom@tromey.com> |
1973 | ||
1974 | * gcore.c (make_output_phdrs): Remove 'ignored' parameter. | |
1975 | (gcore_copy_callback): Likewise. | |
1976 | (gcore_memory_sections): Use foreach. | |
1977 | ||
b35c1d1c TT |
1978 | 2020-09-19 Tom Tromey <tom@tromey.com> |
1979 | ||
1980 | * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update. | |
1981 | * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change | |
1982 | parameters. | |
1983 | (generic_elf_osabi_sniffer): Use foreach. | |
1984 | * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach. | |
1985 | * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach. | |
1986 | ||
5bb6e9dd TT |
1987 | 2020-09-19 Tom Tromey <tom@tromey.com> |
1988 | ||
1989 | * dwarf2/read.c (locate_dwz_sections): Change parameters. | |
1990 | (dwarf2_get_dwz_file): Use foreach. | |
1991 | (dwarf2_locate_dwo_sections): Change parameters. | |
1992 | (open_and_init_dwo_file): Use foreach. | |
1993 | (dwarf2_locate_common_dwp_sections): Change parameters. | |
1994 | (open_and_init_dwp_file): Use foreach. | |
1995 | ||
ad7277da TT |
1996 | 2020-09-19 Tom Tromey <tom@tromey.com> |
1997 | ||
1998 | * symfile.h: (find_lowest_section): Don't declare. | |
1999 | * symfile.c (find_lowest_section): Now static. Change | |
2000 | parameters. | |
2001 | (struct place_section_arg): Remove. | |
2002 | (place_section): Change parameters. | |
2003 | (addr_info_make_relative): Use foreach. | |
2004 | (symfile_dummy_outputs): Remove. | |
2005 | (default_symfile_relocate): Use foreach. | |
2006 | ||
cb814f2e TT |
2007 | 2020-09-19 Tom Tromey <tom@tromey.com> |
2008 | ||
2009 | * objfiles.c (add_to_objfile_sections): Rename from | |
2010 | add_to_objfile_sections_full. | |
2011 | (add_to_objfile_sections): Remove. | |
2012 | (build_objfile_section_table): Use foreach. | |
2013 | ||
3cabfd26 TT |
2014 | 2020-09-19 Tom Tromey <tom@tromey.com> |
2015 | ||
2016 | * stap-probe.c (get_stap_base_address_1): Remove. | |
2017 | (get_stap_base_address): Use foreach. | |
2018 | ||
1ce51eb5 TT |
2019 | 2020-09-19 Tom Tromey <tom@tromey.com> |
2020 | ||
2021 | * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore' | |
2022 | parameters. | |
2023 | (gdb_bfd_close_or_warn): Use foreach. | |
2024 | ||
a190fabb TT |
2025 | 2020-09-19 Tom Tromey <tom@tromey.com> |
2026 | ||
2027 | * corelow.c (add_to_thread_list): Change parameters. | |
2028 | (core_target_open): Use foreach. | |
2029 | ||
cafb0d81 TT |
2030 | 2020-09-19 Tom Tromey <tom@tromey.com> |
2031 | ||
2032 | * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of | |
2033 | existing function. | |
2034 | ||
c8d5abea AB |
2035 | 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com> |
2036 | ||
2037 | * f-valprint.c (f77_print_array_1): Adjust printing of whitespace | |
2038 | for arrays. | |
2039 | ||
6d816919 AB |
2040 | 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com> |
2041 | ||
2042 | * eval.c: Remove 'f-lang.h' include. | |
2043 | (value_f90_subarray): Moved to f-lang.c. | |
2044 | (eval_call): Renamed to... | |
2045 | (evaluate_subexp_do_call): ...this, is no longer static, header | |
2046 | comment moved into header file. | |
2047 | (evaluate_funcall): Update call to eval_call. | |
2048 | (skip_undetermined_arglist): Moved to f-lang.c. | |
2049 | (fortran_value_subarray): Likewise. | |
2050 | (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling | |
2051 | moved to evaluate_subexp_f. | |
2052 | (calc_f77_array_dims): Moved to f-lang.c | |
2053 | * expprint.c (print_subexp_funcall): New function. | |
2054 | (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling | |
2055 | moved to print_subexp_f, OP_FUNCALL uses new function. | |
2056 | (dump_subexp_body_funcall): New function. | |
2057 | (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling | |
2058 | moved to dump_subexp_f, OP_FUNCALL uses new function. | |
2059 | * expression.h (evaluate_subexp_do_call): Declare. | |
2060 | * f-lang.c (value_f90_subarray): Moved from eval.c. | |
2061 | (skip_undetermined_arglist): Likewise. | |
2062 | (calc_f77_array_dims): Likewise. | |
2063 | (fortran_value_subarray): Likewise. | |
2064 | (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support. | |
2065 | (operator_length_f): Likewise. | |
2066 | (print_subexp_f): Likewise. | |
2067 | (dump_subexp_body_f): Likewise. | |
2068 | * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move | |
2069 | declaration of this operation to here. | |
2070 | * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST | |
2071 | support moved to operator_length_f. | |
2072 | * parser-defs.h (dump_subexp_body_funcall): Declare. | |
2073 | (print_subexp_funcall): Declare. | |
2074 | * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to | |
2075 | fortran-operator.def. | |
2076 | ||
8c37706a AB |
2077 | 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com> |
2078 | ||
2079 | * eval.c (fortran_value_subarray): New function, content is taken | |
2080 | from... | |
2081 | (evaluate_subexp_standard): ...here, in two places. Now arrays | |
2082 | and strings both call the new function. | |
2083 | (calc_f77_array_dims): Add header comment, handle strings. | |
2084 | ||
14f9473c VC |
2085 | 2020-09-18 Victor Collod <vcollod@nvidia.com> |
2086 | ||
2087 | PR gdb/26635 | |
2088 | * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr. | |
2089 | (i386_analyze_prologue): Call i386_skip_endbr. | |
2090 | ||
b60cea74 TT |
2091 | 2020-09-18 Tom Tromey <tromey@adacore.com> |
2092 | ||
2093 | * windows-nat.c (struct windows_nat_target) <wait>: Update. | |
2094 | (windows_nat_target::wait): Update. | |
2095 | * target/wait.h (enum target_wait_flag): New. Use | |
2096 | DEF_ENUM_FLAGS_TYPE. | |
2097 | * target/target.h (target_wait): Change type of options. | |
2098 | * target.h (target_options_to_string, default_target_wait): | |
2099 | Update. | |
2100 | (struct target_ops) <wait>: Change type of options. | |
2101 | * target.c (target_wait, default_target_wait, do_option): Change | |
2102 | type of "options". | |
2103 | (target_options_to_string): Likewise. | |
2104 | * target-delegates.c: Rebuild. | |
2105 | * target-debug.h (target_debug_print_target_wait_flags): Rename | |
2106 | from target_debug_print_options. | |
2107 | * sol-thread.c (class sol_thread_target) <wait>: Update. | |
2108 | (sol_thread_target::wait): Update. | |
2109 | * rs6000-nat.c (class rs6000_nat_target) <wait>: Update. | |
2110 | (rs6000_nat_target::wait): Update. | |
2111 | * remote.c (class remote_target) <wait, wait_ns, wait_as>: | |
2112 | Update. | |
2113 | (remote_target::wait_ns, remote_target::wait_as): Change type of | |
2114 | "options". | |
2115 | (remote_target::wait): Update. | |
2116 | * remote-sim.c (struct gdbsim_target) <wait>: Update. | |
2117 | (gdbsim_target::wait): Update. | |
2118 | * record-full.c (class record_full_base_target) <wait>: Update. | |
2119 | (record_full_wait_1): Change type of "options". | |
2120 | (record_full_base_target::wait): Update. | |
2121 | * record-btrace.c (class record_btrace_target) <wait>: Update. | |
2122 | (record_btrace_target::wait): Update. | |
2123 | * ravenscar-thread.c (struct ravenscar_thread_target) <wait>: | |
2124 | Update. | |
2125 | (ravenscar_thread_target::wait): Update. | |
2126 | * procfs.c (class procfs_target) <wait>: Update. | |
2127 | (procfs_target::wait): Update. | |
2128 | * obsd-nat.h (class obsd_nat_target) <wait>: Update. | |
2129 | * obsd-nat.c (obsd_nat_target::wait): Update. | |
2130 | * nto-procfs.c (struct nto_procfs_target) <wait>: Update. | |
2131 | (nto_procfs_target::wait): Update. | |
2132 | * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update. | |
2133 | * nbsd-nat.c (nbsd_wait): Change type of "options". | |
2134 | (nbsd_nat_target::wait): Update. | |
2135 | * linux-thread-db.c (class thread_db_target) <wait>: Update. | |
2136 | (thread_db_target::wait): Update. | |
2137 | * linux-nat.h (class linux_nat_target) <wait>: Update. | |
2138 | * linux-nat.c (linux_nat_target::wait): Update. | |
2139 | (linux_nat_wait_1): Update. | |
2140 | * infrun.c (do_target_wait_1, do_target_wait): Change type of | |
2141 | "options". | |
2142 | * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update. | |
2143 | * inf-ptrace.c (inf_ptrace_target::wait): Update. | |
2144 | * go32-nat.c (struct go32_nat_target) <wait>: Update. | |
2145 | (go32_nat_target::wait): Update. | |
2146 | * gnu-nat.h (struct gnu_nat_target) <wait>: Update. | |
2147 | * gnu-nat.c (gnu_nat_target::wait): Update. | |
2148 | * fbsd-nat.h (class fbsd_nat_target) <wait>: Update. | |
2149 | * fbsd-nat.c (fbsd_nat_target::wait): Update. | |
2150 | * darwin-nat.h (class darwin_nat_target) <wait>: Update. | |
2151 | * darwin-nat.c (darwin_nat_target::wait): Update. | |
2152 | * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update. | |
2153 | (bsd_uthread_target::wait): Update. | |
2154 | * aix-thread.c (class aix_thread_target) <wait>: Update. | |
2155 | (aix_thread_target::wait): Update. | |
2156 | ||
0295dde6 AB |
2157 | 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com> |
2158 | ||
2159 | * compile/compile-object-run.c (create_copied_type_recursive): New | |
2160 | function. | |
2161 | (compile_object_run): Use new function. | |
2162 | ||
d3483b43 JT |
2163 | 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk> |
2164 | ||
2165 | * NEWS: Mention x86_64 Cygwin core file support. | |
2166 | ||
e7d612ad JT |
2167 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> |
2168 | ||
2169 | * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define. | |
2170 | (core_process_module_section): Handle NOTE_INFO_MODULE64. | |
2171 | ||
aff9d387 JT |
2172 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> |
2173 | ||
62a5151b JT |
2174 | * windows-tdep.h: Add prototypes. |
2175 | * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move. | |
2176 | (i386_windows_core_pid_to_str): Move and rename ... | |
2177 | * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here | |
2178 | (windows_core_pid_to_str): ... and here. | |
2179 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here. | |
2180 | ||
2181 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> | |
aff9d387 JT |
2182 | * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add. |
2183 | (amd64_windows_init_abi_common): ... and register. | |
2184 | ||
7d155da3 JT |
2185 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> |
2186 | ||
2187 | * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New. | |
2188 | (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer. | |
2189 | ||
e8ef12b9 PA |
2190 | 2020-09-18 Pedro Alves <pedro@palves.net> |
2191 | ||
2192 | PR gdb/26631 | |
2193 | * thread.c (thread_find_command): Switch inferior before calling | |
2194 | target methods. | |
2195 | ||
c1e1314d TT |
2196 | 2020-09-17 Tom Tromey <tromey@adacore.com> |
2197 | ||
2198 | * tic6x-tdep.c (tic6x_gdbarch_init): Update. | |
2199 | * target-descriptions.h (struct tdesc_arch_data_deleter): New. | |
2200 | (tdesc_arch_data_up): New typedef. | |
2201 | (tdesc_use_registers, tdesc_data_alloc): Update. | |
2202 | (tdesc_data_cleanup): Don't declare. | |
2203 | * target-descriptions.c (tdesc_data_alloc): Return a | |
2204 | tdesc_arch_data_up. | |
2205 | (tdesc_arch_data_deleter::operator()): Rename from | |
2206 | tdesc_data_cleanup. Change argument type. | |
2207 | (tdesc_use_registers): Change early_data to an rvalue reference. | |
2208 | (tdesc_use_registers): Don't use delete. | |
2209 | * sparc-tdep.c (sparc32_gdbarch_init): Update. | |
2210 | * s390-tdep.c (s390_gdbarch_init): Update. | |
2211 | * rx-tdep.c (rx_gdbarch_init): Update. | |
2212 | * rs6000-tdep.c (rs6000_gdbarch_init): Update. | |
2213 | * riscv-tdep.c (riscv_gdbarch_init): Update. | |
2214 | * or1k-tdep.c (or1k_gdbarch_init): Update. | |
2215 | * nios2-tdep.c (nios2_gdbarch_init): Update. | |
2216 | * nds32-tdep.c (nds32_gdbarch_init): Update. | |
2217 | * mips-tdep.c (mips_gdbarch_init): Update. | |
2218 | * microblaze-tdep.c (microblaze_gdbarch_init): Update. | |
2219 | * m68k-tdep.c (m68k_gdbarch_init): Update. | |
2220 | * i386-tdep.c (i386_gdbarch_init): Update. | |
2221 | * arm-tdep.c (arm_gdbarch_init): Update. | |
2222 | * arc-tdep.c (arc_tdesc_init): Update. | |
2223 | (arc_gdbarch_init): Update. | |
2224 | * aarch64-tdep.c (aarch64_gdbarch_init): Update. | |
2225 | ||
0363df3d HD |
2226 | 2020-09-17 Hannes Domani <ssbssa@yahoo.de> |
2227 | ||
2228 | * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin | |
2229 | for WOW64 processes. | |
2230 | ||
280a9412 TT |
2231 | 2020-09-17 Tom Tromey <tom@tromey.com> |
2232 | ||
2233 | * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up. | |
2234 | ||
6108fd18 TT |
2235 | 2020-09-17 Tom Tromey <tom@tromey.com> |
2236 | ||
2237 | * value.c (preserve_values): Update. | |
2238 | * python/py-type.c (save_objfile_types): Update. | |
2239 | * guile/scm-type.c (save_objfile_types): Update. | |
2240 | * gdbtypes.h (create_copied_types_hash): Return htab_up. | |
2241 | * gdbtypes.c (create_copied_types_hash): Return htab_up. | |
2242 | * compile/compile-object-run.c (compile_object_run): Update. | |
2243 | ||
fa9b1164 TT |
2244 | 2020-09-17 Tom Tromey <tom@tromey.com> |
2245 | ||
2246 | * typeprint.h (class typedef_hash_table) <~typedef_hash_table>: | |
2247 | Remove. | |
2248 | <m_table>: Now htab_up. | |
2249 | * typeprint.c (typedef_hash_table::recursively_update) | |
2250 | (typedef_hash_table::add_template_parameters) | |
2251 | (typedef_hash_table::typedef_hash_table): Update. | |
2252 | (typedef_hash_table::~typedef_hash_table): Remove. | |
2253 | (typedef_hash_table::typedef_hash_table) | |
2254 | (typedef_hash_table::find_global_typedef) | |
2255 | (typedef_hash_table::find_typedef): Update. | |
2256 | ||
eb53f105 TT |
2257 | 2020-09-17 Tom Tromey <tom@tromey.com> |
2258 | ||
2259 | * target-descriptions.c (tdesc_use_registers): Use htab_up. | |
2260 | ||
7a8a5d47 TT |
2261 | 2020-09-17 Tom Tromey <tom@tromey.com> |
2262 | ||
2263 | * linespec.c (class decode_compound_collector) | |
2264 | <~decode_compound_collector>: Remove. | |
2265 | <m_unique_syms>: Now htab_up. | |
2266 | (decode_compound_collector::operator ()): Update. | |
2267 | (class symtab_collector) <~symtab_collector>: Remove. | |
2268 | <m_symtab_table>: Now htab_up. | |
2269 | (symtab_collector::operator ()): Update. | |
2270 | ||
99032cfc TT |
2271 | 2020-09-17 Tom Tromey <tom@tromey.com> |
2272 | ||
2273 | * filename-seen-cache.c (filename_seen_cache::filename_seen_cache) | |
2274 | (filename_seen_cache::clear): Update. | |
2275 | (~filename_seen_cache): Remove. | |
2276 | (filename_seen_cache::seen): Update. | |
2277 | * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now | |
2278 | htab_up. | |
2279 | <~filename_seen_cache>: Remove. | |
2280 | <traverse>: Update. | |
2281 | ||
32580f6d TT |
2282 | 2020-09-17 Tom Tromey <tom@tromey.com> |
2283 | ||
2284 | * completer.c (completion_tracker::discard_completions) | |
2285 | (completion_tracker::~completion_tracker) | |
2286 | (completion_tracker::maybe_add_completion) | |
2287 | (completion_tracker::remove_completion) | |
2288 | (completion_tracker::recompute_lowest_common_denominator) | |
2289 | (completion_tracker::build_completion_result): Update. | |
2290 | * completer.h (class completion_tracker) <have_completions>: | |
2291 | Update. | |
2292 | <m_entries_hash>: Now htab_up. | |
2293 | ||
c1fb9836 TT |
2294 | 2020-09-17 Tom Tromey <tom@tromey.com> |
2295 | ||
2296 | * breakpoint.c (ambiguous_names_p): Use htab_up. | |
2297 | ||
88f07206 TT |
2298 | 2020-09-17 Tom Tromey <tom@tromey.com> |
2299 | ||
2300 | * auto-load.c (struct auto_load_pspace_info) | |
2301 | <~auto_load_pspace_info, auto_load_pspace_info>: Remove. | |
2302 | <loaded_script_files, loaded_script_texts>: Change type to | |
2303 | htab_up. | |
2304 | (~auto_load_pspace_info) Remove. | |
2305 | (init_loaded_scripts_info, maybe_add_script_file) | |
2306 | (maybe_add_script_text, auto_load_info_scripts): Update. | |
2307 | ||
9519b2ee TT |
2308 | 2020-09-17 Tom Tromey <tromey@adacore.com> |
2309 | ||
2310 | * c-exp.y (name_obstack): Now static. | |
2311 | ||
d2cd4113 CC |
2312 | 2020-09-17 Chungyi Chi <demonic@csie.io> |
2313 | ||
2314 | * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type. | |
2315 | ||
b650a282 SM |
2316 | 2020-09-16 Simon Marchi <simon.marchi@efficios.com> |
2317 | ||
2318 | * breakpoint.h (init_catchpoint): Change int parameter to bool. | |
2319 | (add_solib_catchpoint): Likewise. | |
2320 | * breakpoint.c (struct solib_catchpoint) <is_load>: Change type | |
2321 | to bool. | |
2322 | (add_solib_catchpoint): Change int parameter/variable to bool. | |
2323 | (catch_load_or_unload): Likewise. | |
2324 | (init_catchpoint): Likewise. | |
2325 | (create_fork_vfork_event_catchpoint): Likewise. | |
2326 | (catch_fork_command_1): Likewise. | |
2327 | (catch_exec_command_1): Likewise. | |
2328 | ||
4d0bcfcf SM |
2329 | 2020-09-16 Simon Marchi <simon.marchi@efficios.com> |
2330 | ||
2331 | * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>: | |
2332 | Change instance_flags to m_instance_flags. | |
2333 | ||
fe830662 TT |
2334 | 2020-09-16 Tom Tromey <tromey@adacore.com> |
2335 | ||
2336 | PR gdb/26598: | |
2337 | * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym. | |
2338 | ||
fe5ddfc3 JB |
2339 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
2340 | ||
2341 | * fbsd-nat.c (fbsd_nat_target::wait): Always check for | |
2342 | PL_FLAG_EXEC. | |
2343 | (fbsd_nat_target::insert_exec_catchpoint) | |
2344 | (fbsd_nat_target::remove_exec_catchpoint): Always define. | |
2345 | * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint) | |
2346 | (fbsd_nat_target::remove_exec_catchpoint): Always declare. | |
2347 | ||
e911c666 JB |
2348 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
2349 | ||
2350 | * configure.ac: Remove check for kinfo_getvmmap(). | |
2351 | * configure, config.in: Regenerate. | |
2352 | * fbsd-nat.c (fbsd_read_mapping): Remove | |
2353 | (fbsd_nat_target::find_memory_regions): Remove the procfs version. | |
2354 | (fbsd_nat_target::info_proc): Assume kinfo_getfile() and | |
2355 | kinfo_get_vmmap() are always present. | |
2356 | ||
1f17d372 JB |
2357 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
2358 | ||
2359 | * fbsd-nat.c: Always include support for | |
2360 | TARGET_OBJECT_SIGNAL_INFO. | |
2361 | ||
bcb1da7f JB |
2362 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
2363 | ||
2364 | * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use | |
2365 | sysctl and remove procfs fallback. | |
2366 | ||
5515f729 JB |
2367 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
2368 | ||
2369 | * fbsd-nat.c: Assume PT_LWPINFO is always defined. | |
2370 | * fbsd-nat.h: Likewise. | |
2371 | ||
da1df1db TBA |
2372 | 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2373 | ||
2374 | * breakpoint.c (commands_command_1): Make a copy of the 'arg' | |
2375 | argument. | |
2376 | ||
0e25e767 AB |
2377 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2378 | ||
2379 | * ada-lang.c (ada_language_data): Delete. | |
2380 | (ada_language): Remove references to ada_language_data. | |
2381 | * c-lang.c (c_language_data): Delete. | |
2382 | (c_language): Remove references to c_language_data. | |
2383 | (cplus_language_data): Delete. | |
2384 | (cplus_language): Remove references to cplus_language_data. | |
2385 | (asm_language_data): Delete. | |
2386 | (asm_language): Remove references to asm_language_data. | |
2387 | (minimal_language_data): Delete. | |
2388 | (minimal_language): Remove references to minimal_language_data. | |
2389 | * d-lang.c (d_language_data): Delete. | |
2390 | (d_language): Remove references to d_language_data. | |
2391 | * f-lang.c (f_language_data): Delete. | |
2392 | (f_language): Remove references to f_language_data. | |
2393 | * go-lang.c (go_language_data): Delete. | |
2394 | (go_language): Remove references to go_language_data. | |
2395 | * language.c (unknown_language_data): Delete. | |
2396 | (unknown_language): Remove references to unknown_language_data. | |
2397 | (auto_language_data): Delete. | |
2398 | (auto_language): Remove references to auto_language_data. | |
2399 | * language.h (language_data): Delete struct. | |
2400 | (language_defn): No longer inherit from language_data. | |
2401 | * m2-lang.c (m2_language_data): Delete. | |
2402 | (m2_language): Remove references to m2_language_data. | |
2403 | * objc-lang.c (objc_language_data): Delete. | |
2404 | (objc_language): Remove references to objc_language_data. | |
2405 | * opencl-lang.c (opencl_language_data): Delete. | |
2406 | (opencl_language): Remove references to opencl_language_data. | |
2407 | * p-lang.c (pascal_language_data): Delete. | |
2408 | (pascal_language): Remove references to pascal_language_data. | |
2409 | * rust-lang.c (rust_language_data): Delete. | |
2410 | (rust_language): Remove references to rust_language_data. | |
2411 | ||
b7c6e27d AB |
2412 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2413 | ||
2414 | * ada-lang.c (ada_language_data): Remove la_op_print_tab | |
2415 | initializer. | |
2416 | (ada_language::opcode_print_table): New member function. | |
2417 | * c-lang.c (c_language_data): Remove la_op_print_tab initializer. | |
2418 | (c_language::opcode_print_table): New member function. | |
2419 | (cplus_language_data): Remove la_op_print_tab initializer. | |
2420 | (cplus_language::opcode_print_table): New member function. | |
2421 | (asm_language_data): Remove la_op_print_tab initializer. | |
2422 | (asm_language::opcode_print_table): New member function. | |
2423 | (minimal_language_data): Remove la_op_print_tab initializer. | |
2424 | (minimal_language::opcode_print_table): New member function. | |
2425 | * d-lang.c (d_language_data): Remove la_op_print_tab initializer. | |
2426 | (d_language::opcode_print_table): New member function. | |
2427 | * expprint.c (print_subexp_standard): Update call to | |
2428 | opcode_print_table. | |
2429 | (op_string): Likewise. | |
2430 | * f-lang.c (f_language_data): Remove la_op_print_tab initializer. | |
2431 | (f_language::opcode_print_table): New member function. | |
2432 | * go-lang.c (go_language_data): Remove la_op_print_tab | |
2433 | initializer. | |
2434 | (go_language::opcode_print_table): New member function. | |
2435 | * language.c (unknown_language_data): Remove la_op_print_tab | |
2436 | initializer. | |
2437 | (unknown_language::opcode_print_table): New member function. | |
2438 | (auto_language_data): Remove la_op_print_tab initializer. | |
2439 | (auto_language::opcode_print_table): New member function. | |
2440 | * language.h (language_data): Remove la_op_print_tab field. | |
2441 | (language_defn::opcode_print_table): Declare new member function. | |
2442 | * m2-lang.c (m2_language_data): Remove la_op_print_tab | |
2443 | initializer. | |
2444 | (m2_language::opcode_print_table): New member function. | |
2445 | * objc-lang.c (objc_language_data): Remove la_op_print_tab | |
2446 | initializer. | |
2447 | (objc_language::opcode_print_table): New member function. | |
2448 | * opencl-lang.c (opencl_language_data): Remove la_op_print_tab | |
2449 | initializer. | |
2450 | (opencl_language::opcode_print_table): New member function. | |
2451 | * p-lang.c (pascal_language_data): Remove la_op_print_tab | |
2452 | initializer. | |
2453 | (pascal_language::opcode_print_table): New member function. | |
2454 | * rust-lang.c (rust_language_data): Remove la_op_print_tab | |
2455 | initializer. | |
2456 | (rust_language::opcode_print_table): New member function. | |
2457 | ||
5aba6ebe AB |
2458 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2459 | ||
2460 | * ada-lang.c (ada_language_data): Remove la_exp_desc initializer. | |
2461 | (ada_language::expression_ops): New member function. | |
2462 | * c-lang.c (c_language_data): Remove la_exp_desc initializer. | |
2463 | (c_language::expression_ops): New member function. | |
2464 | (cplus_language_data): Remove la_exp_desc initializer. | |
2465 | (cplus_language::expression_ops): New member function. | |
2466 | (asm_language_data): Remove la_exp_desc initializer. | |
2467 | (asm_language::expression_ops): New member function. | |
2468 | (minimal_language_data): Remove la_exp_desc initializer. | |
2469 | (minimal_language::expression_ops): New member function. | |
2470 | * d-lang.c (d_language_data): Remove la_exp_desc initializer. | |
2471 | (d_language::expression_ops): New member function. | |
2472 | * eval.c (evaluate_subexp): Update call to expression_ops. | |
2473 | * expprint.c (print_subexp): Likewise. | |
2474 | (op_name): Likewise. | |
2475 | (dump_subexp_body): Likewise. | |
2476 | * f-lang.c (f_language_data): Remove la_exp_desc initializer. | |
2477 | (f_language::expression_ops): New member function. | |
2478 | * go-lang.c (go_language_data): Remove la_exp_desc initializer. | |
2479 | (go_language::expression_ops): New member function. | |
2480 | * language.c (language_defn::expression_ops): New function. | |
2481 | (unknown_language_data): Remove la_exp_desc initializer. | |
2482 | (auto_language_data): Likewise. | |
2483 | * language.h (language_data): Remove la_exp_desc field. | |
2484 | (language_defn::expression_ops): Declare new member function. | |
2485 | * m2-lang.c (m2_language_data): Remove la_exp_desc initializer. | |
2486 | (m2_language::expression_ops): New member function. | |
2487 | * objc-lang.c (objc_language_data): Remove la_exp_desc | |
2488 | initializer. | |
2489 | * opencl-lang.c (opencl_language_data): Remove la_exp_desc | |
2490 | initializer. | |
2491 | (opencl_language::expression_ops): New member function. | |
2492 | * p-lang.c (pascal_language_data): Remove la_exp_desc initializer. | |
2493 | * parse.c (operator_length): Update call to expression_ops. | |
2494 | (exp_iterate): Likewise. | |
2495 | * rust-lang.c (rust_language_data): Remove la_exp_desc | |
2496 | initializer. | |
2497 | (ruse_language::expression_ops): New member function. | |
2498 | ||
b63a3f3f AB |
2499 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2500 | ||
2501 | * ada-lang.c (ada_language_data): Remove la_varobj_ops | |
2502 | initializer. | |
2503 | (ada_language::varobj_ops): New member function. | |
2504 | * c-lang.c (c_language_data): Remove la_varobj_ops | |
2505 | initializer. | |
2506 | (cplus_language_data): Likewise. | |
2507 | (cplus_language::varobj_ops): New member function. | |
2508 | (asm_language_data): Remove la_varobj_ops initializer. | |
2509 | (minimal_language_data): Likewise. | |
2510 | * d-lang.c (d_language_data): Likewise. | |
2511 | * f-lang.c (f_language_data): Likewise. | |
2512 | * go-lang.c (go_language_data): Likewise. | |
2513 | * language.c (language_defn::varobj_ops): New function. | |
2514 | (unknown_language_data): Remove la_varobj_ops | |
2515 | initializer. | |
2516 | (auto_language_data): Likewise. | |
2517 | * language.h (language_data): Remove la_varobj_ops field. | |
2518 | (language_defn::varobj_ops): Declare new member function. | |
2519 | * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer. | |
2520 | * objc-lang.c (objc_language_data): Likewise. | |
2521 | * opencl-lang.c (opencl_language_data): Likewise. | |
2522 | * p-lang.c (pascal_language_data): Likewise. | |
2523 | * rust-lang.c (rust_language_data): Likewise. | |
2524 | * varobj.c (varobj_create): Update call to varobj_ops. | |
2525 | * varobj.h (default_varobj_ops): Delete define. | |
2526 | ||
1ac14a04 AB |
2527 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2528 | ||
2529 | * ada-lang.c (ada_language_data): Remove la_macro_expansion | |
2530 | initializer. | |
2531 | * c-lang.c (c_language_data): Likewise. | |
2532 | (c_language::macro_expansion): New member function. | |
2533 | (cplus_language_data): Likewise. | |
2534 | (cplus_language::macro_expansion): New member function. | |
2535 | (asm_language_data): Likewise. | |
2536 | (asm_language::macro_expansion): New member function. | |
2537 | (minimal_language_data): Likewise. | |
2538 | (minimal_language::macro_expansion): New member function. | |
2539 | * d-lang.c (d_language_data): Remove la_macro_expansion | |
2540 | initializer. | |
2541 | * f-lang.c (f_language_data): Likewise. | |
2542 | * go-lang.c (go_language_data): Likewise. | |
2543 | * language.c (unknown_language_data): Likewise. | |
2544 | (auto_language_data): Likewise. | |
2545 | * language.h (language_data): Remove la_macro_expansion field. | |
2546 | (language_defn::macro_expansion): New member function. | |
2547 | * m2-lang.c (m2_language_data): Remove la_macro_expansion | |
2548 | initializer. | |
2549 | * objc-lang.c (objc_language_data): Likewise. | |
2550 | (objc_language::macro_expansion): New member function. | |
2551 | * opencl-lang.c (opencl_language_data): Likewise. | |
2552 | (opencl_language::macro_expansion): New member function. | |
2553 | * p-lang.c (pascal_language_data): Remove la_macro_expansion | |
2554 | initializer. | |
2555 | * rust-lang.c (rust_language_data): Likewise. | |
2556 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
2557 | Update call to macro_expansion. | |
2558 | ||
3a3440fb AB |
2559 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2560 | ||
2561 | * ada-lang.c (ada_language_data): Remove la_array_ordering | |
2562 | initializer. | |
2563 | * c-lang.c (c_language_data): Likewise. | |
2564 | (cplus_language_data): Likewise. | |
2565 | (asm_language_data): Likewise. | |
2566 | (minimal_language_data): Likewise. | |
2567 | * d-lang.c (d_language_data): Likewise. | |
2568 | * dwarf2/read.c (read_array_order): Update for call to | |
2569 | array_ordering. | |
2570 | * f-lang.c (f_language_data): Remove la_array_ordering | |
2571 | initializer. | |
2572 | (f_language::array_ordering): New member function. | |
2573 | * go-lang.c (go_language_data): Remove la_array_ordering | |
2574 | initializer. | |
2575 | * language.c (unknown_language_data): Likewise. | |
2576 | (auto_language_data): Likewise. | |
2577 | * language.h (language_data): Delete la_array_ordering field. | |
2578 | (language_defn::array_ordering): New member function. | |
2579 | * m2-lang.c (m2_language_data): Remove la_array_ordering | |
2580 | initializer. | |
2581 | * objc-lang.c (objc_language_data): Likewise. | |
2582 | * opencl-lang.c (opencl_language_data): Likewise. | |
2583 | * p-lang.c (pascal_language_data): Likewise. | |
2584 | * rust-lang.c (rust_language_data): Likewise. | |
2585 | ||
0d201fa4 AB |
2586 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2587 | ||
2588 | * ada-lang.c (ada_language_data): Remove la_case_sensitivity | |
2589 | initializer. | |
2590 | * c-lang.c (c_language_data): Likewise. | |
2591 | (cplus_language_data): Likewise. | |
2592 | (asm_language_data): Likewise. | |
2593 | (minimal_language_data): Likewise. | |
2594 | * d-lang.c (d_language_data): Likewise. | |
2595 | * f-lang.c (f_language_data): Likewise. | |
2596 | (f_language::case_sensitivity): New member function. | |
2597 | * go-lang.c (go_language_data): Remove la_case_sensitivity | |
2598 | initializer. | |
2599 | * language.c (enum case_mode): Moved here from language.h. | |
2600 | (case_mode): Make static. | |
2601 | (show_case_command): Update for case_sensitivity being a method. | |
2602 | (set_case_command): Likewise. | |
2603 | (set_range_case): Likewise. | |
2604 | (unknown_language_data): Remove la_case_sensitivity initializer. | |
2605 | (auto_language_data): Likewise. | |
2606 | * language.h (case_mode): Delete, move enum declaration to | |
2607 | language.c. | |
2608 | (language_data): Delete la_case_sensitivity field. | |
2609 | (language_defn::case_sensitivity): New member function. | |
2610 | * m2-lang.c (m2_language_data): Remove la_case_sensitivity | |
2611 | initializer. | |
2612 | * objc-lang.c (objc_language_data): Likewise. | |
2613 | * opencl-lang.c (opencl_language_data): Likewise. | |
2614 | * p-lang.c (pascal_language_data): Likewise. | |
2615 | * rust-lang.c (rust_language_data): Likewise. | |
2616 | ||
efdf6a73 AB |
2617 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2618 | ||
2619 | * ada-lang.c (ada_language_data): Remove la_range_check | |
2620 | initializer. | |
2621 | * c-lang.c (c_language_data): Likewise. | |
2622 | (cplus_language_data): Likewise. | |
2623 | (asm_language_data): Likewise. | |
2624 | (minimal_language_data): Likewise. | |
2625 | * d-lang.c (d_language_data): Likewise. | |
2626 | * f-lang.c (f_language_data): Likewise. | |
2627 | (f_language::range_checking_on_by_default): New member function. | |
2628 | * go-lang.c (go_language_data): Remove la_range_check initializer. | |
2629 | * language.c (enum range_mode): Moved here from language.h. | |
2630 | (range_mode): Made static. | |
2631 | (show_range_command): Update to use | |
2632 | range_checking_on_by_default. | |
2633 | (set_range_command): Likewise. | |
2634 | (set_range_case): Likewise. | |
2635 | (unknown_language_data): Remove la_range_check initializer. | |
2636 | (auto_language_data): Likewise. | |
2637 | * language.h (range_mode): Delete. Enum definition moved to | |
2638 | language.c. | |
2639 | (language_data): Remove la_range_check field. | |
2640 | (language_defn::range_checking_on_by_default): New member | |
2641 | function. | |
2642 | * m2-lang.c (m2_language_data): Remove la_range_check initializer. | |
2643 | (m2_language::range_checking_on_by_default): New member function. | |
2644 | * objc-lang.c (objc_language_data): Remove la_range_check | |
2645 | initializer. | |
2646 | * opencl-lang.c (opencl_language_data): Likewise. | |
2647 | * p-lang.c (pascal_language_data): Likewise. | |
2648 | (pascal_language::range_checking_on_by_default): New member | |
2649 | function. | |
2650 | * rust-lang.c (rust_language_data): Remove la_range_check | |
2651 | initializer. | |
2652 | (rust_language::range_checking_on_by_default): New member | |
2653 | function. | |
2654 | ||
bf92aec5 AB |
2655 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2656 | ||
2657 | * dwarf2/read.c (dwarf2_physname): Remove special case for | |
2658 | language_go. | |
2659 | * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New | |
2660 | member function. | |
2661 | ||
d3355e4d AB |
2662 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2663 | ||
2664 | * ada-lang.c (ada_language_data): Remove | |
2665 | la_store_sym_names_in_linkage_form_p initializer. | |
2666 | (ada_language::store_sym_names_in_linkage_form_p): New member | |
2667 | function. | |
2668 | * c-lang.c (c_language_data): Remove | |
2669 | la_store_sym_names_in_linkage_form_p initializer. | |
2670 | (c_language::store_sym_names_in_linkage_form_p): New member | |
2671 | function. | |
2672 | (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p | |
2673 | initializer. | |
2674 | (asm_language_data): Likewise. | |
2675 | (asm_language::store_sym_names_in_linkage_form_p): New member | |
2676 | function. | |
2677 | (minimal_language_data): Remove | |
2678 | la_store_sym_names_in_linkage_form_p initializer. | |
2679 | (minimal_language::store_sym_names_in_linkage_form_p): New member | |
2680 | function. | |
2681 | * d-lang.c (d_language_data): Remove | |
2682 | la_store_sym_names_in_linkage_form_p initializer. | |
2683 | * dwarf2/read.c (dwarf2_physname): Update call to | |
2684 | store_sym_names_in_linkage_form_p. | |
2685 | * f-lang.c (f_language_data): Remove | |
2686 | la_store_sym_names_in_linkage_form_p initializer. | |
2687 | * go-lang.c (go_language_data): Remove | |
2688 | la_store_sym_names_in_linkage_form_p initializer. | |
2689 | * language.c (unknown_language_data): Remove | |
2690 | la_store_sym_names_in_linkage_form_p initializer. | |
2691 | (unknown_language::store_sym_names_in_linkage_form_p): New member | |
2692 | function. | |
2693 | (auto_language_data): Remove la_store_sym_names_in_linkage_form_p | |
2694 | initializer. | |
2695 | (auto_language::store_sym_names_in_linkage_form_p): New member | |
2696 | function. | |
2697 | * language.h (language_data): Remove | |
2698 | la_store_sym_names_in_linkage_form_p member variable. | |
2699 | (language_defn::store_sym_names_in_linkage_form_p): New member | |
2700 | function. | |
2701 | * m2-lang.c (m2_language_data): Remove | |
2702 | la_store_sym_names_in_linkage_form_p initializer. | |
2703 | * objc-lang.c (objc_language_data): Likewise. | |
2704 | * opencl-lang.c (opencl_language_data): Likewise. | |
2705 | * p-lang.c (pascal_language_data): Likewise. | |
2706 | * rust-lang.c (rust_language_data): Likewise. | |
2707 | ||
22c12a6c AB |
2708 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2709 | ||
2710 | * ada-lang.c (ada_language_data): Remove string_lower_bound | |
2711 | initializer. | |
2712 | * c-lang.c (c_language_data): Likewise. | |
2713 | (cplus_language_data): Likewise. | |
2714 | (asm_language_data): Likewise. | |
2715 | (minimal_language_data): Likewise. | |
2716 | * d-lang.c (d_language_data): Likewise. | |
2717 | * f-lang.c (f_language_data): Likewise. | |
2718 | * go-lang.c (go_language_data): Likewise. | |
2719 | * language.c (unknown_language_data): Likewise. | |
2720 | (auto_language_data): Likewise. | |
2721 | * language.h (language_data): Remove string_lower_bound field. | |
2722 | (language_defn::string_lower_bound): New member function. | |
2723 | * m2-lang.c (m2_language_data): Remove string_lower_bound | |
2724 | initializer. | |
2725 | (m2_language::string_lower_bound): New member function. | |
2726 | * objc-lang.c (objc_language_data): Remove string_lower_bound | |
2727 | initializer. | |
2728 | * opencl-lang.c (opencl_language_data): Likewise. | |
2729 | * p-lang.c (pascal_language_data): Likewise. | |
2730 | * rust-lang.c (rust_language_data): Likewise. | |
2731 | * valops.c (value_cstring): Update call to string_lower_bound. | |
2732 | (value_string): Likewise. | |
2733 | * value.c (allocate_repeated_value): Likewise. | |
2734 | ||
1c236ddd AB |
2735 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2736 | ||
2737 | * valops.c (value_repeat): Fix incorrect argument name in comment. | |
2738 | ||
67bd3fd5 AB |
2739 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2740 | ||
2741 | * ada-lang.c (ada_language_data): Remove c_style_arrays | |
2742 | initializer. | |
2743 | (ada_language::c_style_arrays_p): New member fuction. | |
2744 | * c-lang.c (c_language_data): Remove c_style_arrays | |
2745 | initializer. | |
2746 | (cplus_language_data): Likewise. | |
2747 | (asm_language_data): Likewise. | |
2748 | (minimal_language_data): Likewise. | |
2749 | * d-lang.c (d_language_data): Likewise. | |
2750 | * eval.c (ptrmath_type_p): Update call to c_style_arrays_p. | |
2751 | * f-lang.c (f_language_data): Remove c_style_arrays initializer. | |
2752 | (f_language::c_style_arrays_p): New member function. | |
2753 | * go-lang.c (go_language_data): Remove c_style_arrays initializer. | |
2754 | * infcall.c (value_arg_coerce): Update call to c_style_arrays_p. | |
2755 | * language.c (unknown_language_data): Remove c_style_arrays | |
2756 | initializer. | |
2757 | (auto_language_data): Likewise. | |
2758 | * language.h (language_data): Remove c_style_arrays field. | |
2759 | (language_defn::c_style_arrays_p): New member function. | |
2760 | * m2-lang.c (m2_language_data): Remove c_style_arrays initializer. | |
2761 | (m2_language::c_style_arrays_p): New member function. | |
2762 | * objc-lang.c (objc_language_data): Remove c_style_arrays | |
2763 | initializer. | |
2764 | * opencl-lang.c (opencl_language_data): Likewise. | |
2765 | * p-lang.c (pascal_language_data): Likewise. | |
2766 | * rust-lang.c (rust_language_data): Likewise. | |
2767 | * valarith.c (value_subscript): Update call to c_style_arrays_p, | |
2768 | and update local variable to a bool. | |
2769 | * valops.c (value_cast): Update call to c_style_arrays_p. | |
2770 | (value_array): Likewise. | |
2771 | * value.c (coerce_array): Likewise. | |
2772 | ||
85967615 AB |
2773 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2774 | ||
2775 | * ada-lang.c (ada_language_data): Remove la_language initializer. | |
2776 | * c-lang.c (c_language_data): Likewise. | |
2777 | (cplus_language_data): Likewise. | |
2778 | (asm_language_data): Likewise. | |
2779 | (minimal_language_data): Likewise. | |
2780 | * d-lang.c (d_language_data): Likewise. | |
2781 | * f-lang.c (f_language_data): Likewise. | |
2782 | * go-lang.c (go_language_data): Likewise. | |
2783 | * language.c (unknown_language_data): Likewise. | |
2784 | (auto_language_data): Likewise. | |
2785 | * language.h (language_data): Remove la_language field. | |
2786 | (language_defn::language_defn): Initialise la_language field. | |
2787 | (language_defn::la_language): New member variable. | |
2788 | * m2-lang.c (m2_language_data): Remove la_language field. | |
2789 | * objc-lang.c (objc_language_data): Likewise. | |
2790 | * opencl-lang.c (opencl_language_data): Likewise. | |
2791 | * p-lang.c (pascal_language_data): Likewise. | |
2792 | * rust-lang.c (rust_language_data): Likewise. | |
2793 | ||
e171d6f1 AB |
2794 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2795 | ||
2796 | * ada-lang.c (ada_extensions): Delete, moved into | |
2797 | ada_language::filename_extensions. | |
2798 | (ada_language_data): Remove la_filename_extensions initializer. | |
2799 | (ada_language::filename_extensions): New member function. | |
2800 | * c-lang.c (c_extensions): Delete, moved into | |
2801 | c_language::filename_extensions. | |
2802 | (c_language_data): Remove la_filename_extensions initializer. | |
2803 | (c_language::filename_extensions): New member function. | |
2804 | (cplus_extensions): Delete, moved into | |
2805 | cplus_language::filename_extensions. | |
2806 | (cplus_language_data): Remove la_filename_extensions initializer. | |
2807 | (cplus_language::filename_extensions): New member function. | |
2808 | (asm_extensions): Delete, moved into | |
2809 | asm_language::filename_extensions. | |
2810 | (asm_language_data): Remove la_filename_extensions initializer. | |
2811 | (asm_language::filename_extensions): New member function. | |
2812 | (minimal_language_data): Remove la_filename_extensions | |
2813 | initializer. | |
2814 | * d-lang.c (d_extensions): Delete, moved into | |
2815 | d_language::filename_extensions. | |
2816 | (d_language_data): Remove la_filename_extensions initializer. | |
2817 | (d_language::filename_extensions): New member function. | |
2818 | * f-lang.c (f_extensions): Delete, moved into | |
2819 | f_language::filename_extensions. | |
2820 | (f_language_data): Remove la_filename_extensions initializer. | |
2821 | (f_language::filename_extensions): New member function. | |
2822 | * go-lang.c (go_language_data): Remove la_filename_extensions | |
2823 | initializer. | |
2824 | * language.c (add_set_language_command): Update now that | |
2825 | filename_extensions returns a vector. | |
2826 | (unknown_language_data): Remove la_filename_extensions | |
2827 | initializer. | |
2828 | (auto_language_data): Likewise. | |
2829 | * language.h (language_data): Remove la_filename_extensions field. | |
2830 | (language_defn::filename_extensions): New member function. | |
2831 | * m2-lang.c (m2_language_data): Remove la_filename_extensions | |
2832 | initializer. | |
2833 | * objc-lang.c (objc_extensions): Delete, moved into | |
2834 | objc_language::filename_extensions. | |
2835 | (objc_language_data): Remove la_filename_extensions initializer. | |
2836 | (objc_language::filename_extensions): New member function. | |
2837 | * opencl-lang.c (opencl_language_data): Remove | |
2838 | la_filename_extensions initializer. | |
2839 | * p-lang.c (pascal_extensions): Delete, moved into | |
2840 | pascal_language::filename_extensions. | |
2841 | (pascal_language_data): Remove la_filename_extensions initializer. | |
2842 | (pascal_language::filename_extensions): New member function. | |
2843 | * rust-lang.c (rust_extensions): Delete, moved into | |
2844 | rust_language::filename_extensions. | |
2845 | (rust_language_data): Remove la_filename_extensions initializer. | |
2846 | (rust_language::filename_extensions): New member function. | |
2847 | * symfile.c (add_filename_language): Add new assert. | |
2848 | ||
6f7664a9 AB |
2849 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2850 | ||
2851 | * ada-lang.c (ada_language_data): Remove la_name and | |
2852 | la_natural_name initializers. | |
2853 | (ada_language::name): New member function. | |
2854 | (ada_language::natural_name): New member function. | |
2855 | * c-lang.c (c_language_data): Remove la_name and | |
2856 | la_natural_name initializers. | |
2857 | (c_language::name): New member function. | |
2858 | (c_language::natural_name): New member function. | |
2859 | (cplus_language_data): Remove la_name and | |
2860 | la_natural_name initializers. | |
2861 | (cplus_language::name): New member function. | |
2862 | (cplus_language::natural_name): New member function. | |
2863 | (asm_language_data): Remove la_name and | |
2864 | la_natural_name initializers. | |
2865 | (asm_language::name): New member function. | |
2866 | (asm_language::natural_name): New member function. | |
2867 | (minimal_language_data): Remove la_name and | |
2868 | la_natural_name initializers. | |
2869 | (minimal_language::name): New member function. | |
2870 | (minimal_language::natural_name): New member function. | |
2871 | * compile/compile.c (compile_to_object): Update call to | |
2872 | lanugage_defn::name. | |
2873 | * d-lang.c (d_language_data): Remove la_name and | |
2874 | la_natural_name initializers. | |
2875 | (d_language::name): New member function. | |
2876 | (d_language::natural_name): New member function. | |
2877 | * expprint.c (print_subexp_standard): Update call to | |
2878 | language_defn::name. | |
2879 | (dump_raw_expression): Likewise | |
2880 | (dump_prefix_expression): Likewise. | |
2881 | * f-lang.c (f_language_data): Remove la_name and | |
2882 | la_natural_name initializers. | |
2883 | (f_language::name): New member function. | |
2884 | (f_language::natural_name): New member function. | |
2885 | * go-lang.c (go_language_data): Remove la_name and | |
2886 | la_natural_name initializers. | |
2887 | (go_language::name): New member function. | |
2888 | (go_language::natural_name): New member function. | |
2889 | * language.c (show_language_command): Update call to | |
2890 | language_defn::name. | |
2891 | (set_language_command): Likewise. | |
2892 | (language_enum): Likewise. | |
2893 | (language_str): Likewise. | |
2894 | (add_set_language_command): Likewise, use | |
2895 | language_defn::natural_name in the doc string. | |
2896 | (unknown_language_data): Remove la_name and | |
2897 | la_natural_name initializers. | |
2898 | (unknown_language::name): New member function. | |
2899 | (unknown_language::natural_name): New member function. | |
2900 | (auto_language_data): Remove la_name and | |
2901 | la_natural_name initializers. | |
2902 | (auto_language::name): New member function. | |
2903 | (auto_language::natural_name): New member function. | |
2904 | (language_lookup_primitive_type_as_symbol): Update call to | |
2905 | language_defn::name. | |
2906 | * language.h (language_data): Remove la_name and la_natural_name | |
2907 | member variables. | |
2908 | (language_defn::name): New member function. | |
2909 | (language_defn::natural_name): New member function. | |
2910 | * m2-lang.c (m2_language_data): Remove la_name and | |
2911 | la_natural_name initializers. | |
2912 | (m2_language::name): New member function. | |
2913 | (m2_language::natural_name): New member function. | |
2914 | * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to | |
2915 | language_defn::natural_name. | |
2916 | * objc-lang.c (objc_language_data): Remove la_name and | |
2917 | la_natural_name initializers. | |
2918 | (objc_language::name): New member function. | |
2919 | (objc_language::natural_name): New member function. | |
2920 | * opencl-lang.c (opencl_language_data): Remove la_name and | |
2921 | la_natural_name initializers. | |
2922 | (opencl_language::name): New member function. | |
2923 | (opencl_language::natural_name): New member function. | |
2924 | * p-lang.c (pascal_language_data): Remove la_name and | |
2925 | la_natural_name initializers. | |
2926 | (pascal_language::name): New member function. | |
2927 | (pascal_language::natural_name): New member function. | |
2928 | * rust-lang.c (rust_language_data): Remove la_name and | |
2929 | la_natural_name initializers. | |
2930 | (rust_language::name): New member function. | |
2931 | (rust_language::natural_name): New member function. | |
2932 | * symtab.c (lookup_language_this): Update call to | |
2933 | language_defn::name. | |
2934 | ||
5bae7c4e AB |
2935 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2936 | ||
2937 | * ada-lang.c (ada_language_data): Remove la_name_of_this | |
2938 | initializer. | |
2939 | * ax-gdb.c (gen_expr): Update call to name_of_this. | |
2940 | * c-exp.y (classify_name): Likewise. | |
2941 | * c-lang.c (c_language_data): Remove la_name_of_this initializer. | |
2942 | (cplus_language_data): Likewise. | |
2943 | (cplus_language::name_of_this): New member function. | |
2944 | (asm_language_data): Remove la_name_of_this initializer. | |
2945 | (minimal_language_data): Likewise. | |
2946 | * d-lang.c (d_language_data): Likewise. | |
2947 | (d_language::name_of_this): New member function. | |
2948 | * expprint.c (print_subexp_standard): Update call to name_of_this. | |
2949 | * f-lang.c (f_language_data): Remove la_name_of_this initializer. | |
2950 | * go-lang.c (go_language_data): Likewise. | |
2951 | * language.c (unknown_language_data): Likewise. | |
2952 | (unknown_language::name_of_this): New member function. | |
2953 | (auto_language_data): Remove la_name_of_this initializer. | |
2954 | (auto_language::name_of_this): New member function. | |
2955 | * language.h (language_data): Delete la_name_of_this member | |
2956 | variable. | |
2957 | (language_defn::name_of_this): New member function. | |
2958 | * m2-lang.c (m2_language_data): Remove la_name_of_this | |
2959 | initializer. | |
2960 | * objc-lang.c (objc_language_data): Likewise. | |
2961 | (objc_language::name_of_this): New member function. | |
2962 | * opencl-lang.c (opencl_language_data): Remove la_name_of_this | |
2963 | initializer. | |
2964 | * p-lang.c (pascal_language_data): Likewise. | |
2965 | (pascal_language::name_of_this): New member function. | |
2966 | * rust-lang.c (rust_language_data): Remove la_name_of_this | |
2967 | initializer. | |
2968 | * symtab.c (lookup_language_this): Update call to name_of_this. | |
2969 | (lookup_symbol_aux): Likewise. | |
2970 | * valops.c (value_of_this): Likewise. | |
2971 | ||
22e3f3ed AB |
2972 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2973 | ||
2974 | * ada-lang.c (ada_language_data): Remove | |
2975 | la_struct_too_deep_ellipsis initializer. | |
2976 | (ada_language::struct_too_deep_ellipsis): New member function. | |
2977 | * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis | |
2978 | initializer. | |
2979 | (cplus_language_data): Likewise. | |
2980 | (asm_language_data): Likewise. | |
2981 | (minimal_language_data): Likewise. | |
2982 | * cp-valprint.c (cp_print_value): Update call to | |
2983 | struct_too_deep_ellipsis. | |
2984 | * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis | |
2985 | initializer. | |
2986 | * f-lang.c (f_language_data): Likewise. | |
2987 | (f_language::struct_too_deep_ellipsis): New member function. | |
2988 | * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis | |
2989 | initializer. | |
2990 | * language.c (unknown_language_data): Likewise. | |
2991 | (auto_language_data): Likewise. | |
2992 | * language.h (language_data): Delete la_struct_too_deep_ellipsis | |
2993 | member variable. | |
2994 | (language_defn::struct_too_deep_ellipsis): New member function. | |
2995 | * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis | |
2996 | initializer.Q | |
2997 | * objc-lang.c (objc_language_data): Likewise. | |
2998 | * opencl-lang.c (opencl_language_data): Likewise. | |
2999 | * p-lang.c (pascal_language_data): Likewise. | |
3000 | * rust-lang.c (rust_language_data): Likewise. | |
3001 | * valprint.c (val_print_check_max_depth): Update call to | |
3002 | struct_too_deep_ellipsis. | |
3003 | ||
ed29e1c7 FW |
3004 | 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com> |
3005 | ||
3006 | * MAINTAINERS (Write After Approval): Add myself. | |
3007 | ||
12d8f940 TT |
3008 | 2020-09-15 Tom Tromey <tom@tromey.com> |
3009 | ||
3010 | * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>: | |
3011 | Remove. | |
3012 | ||
6b5a7bc7 TT |
3013 | 2020-09-15 Tom Tromey <tom@tromey.com> |
3014 | ||
3015 | * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR | |
3016 | and TYPE_CODE_METHODPTR cases. | |
3017 | * c-valprint.c (c_value_print_memberptr): Move to valprint.c. | |
3018 | (c_value_print_inner): Update. | |
3019 | * valprint.c (generic_value_print_memberptr): New function, from | |
3020 | c_value_print_memberptr. | |
3021 | (generic_value_print): Use it. Call cplus_print_method_ptr. | |
3022 | ||
47f0e2ff TT |
3023 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
3024 | ||
3025 | * python/python-internal.h (PyInt_FromLong): Remove define. | |
3026 | * python/py-value.c (convert_value_from_python): Use | |
3027 | gdb_py_object_from_longest. | |
3028 | * python/py-type.c (typy_get_code): Use | |
3029 | gdb_py_object_from_longest. | |
3030 | * python/py-symtab.c (salpy_get_line): Use | |
3031 | gdb_py_object_from_longest. | |
3032 | * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use | |
3033 | gdb_py_object_from_longest. | |
3034 | * python/py-record.c (recpy_gap_reason_code): Use | |
3035 | gdb_py_object_from_longest. | |
3036 | * python/py-record-btrace.c (recpy_bt_insn_size) | |
3037 | (recpy_bt_func_level, btpy_list_count): Use | |
3038 | gdb_py_object_from_longest. | |
3039 | * python/py-infthread.c (gdbpy_create_ptid_object): Use | |
3040 | gdb_py_object_from_longest. Fix error handling. | |
3041 | * python/py-framefilter.c (bootstrap_python_frame_filters): Use | |
3042 | gdb_py_object_from_longest. | |
3043 | * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use | |
3044 | gdb_py_object_from_longest. | |
3045 | * python/py-breakpoint.c (bppy_get_type, bppy_get_number) | |
3046 | (bppy_get_thread, bppy_get_task, bppy_get_hit_count) | |
3047 | (bppy_get_ignore_count): Use gdb_py_object_from_longest. | |
3048 | ||
512116ce TT |
3049 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
3050 | ||
3051 | * python/python.c (gdbpy_parameter_value): Use | |
3052 | gdb_py_object_from_ulongest. | |
3053 | ||
4ab1029c TT |
3054 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
3055 | ||
3056 | * python/py-infevents.c (create_register_changed_event_object): | |
3057 | Use gdb_py_object_from_longest. | |
3058 | * python/py-exitedevent.c (create_exited_event_object): Use | |
3059 | gdb_py_object_from_longest. | |
3060 | ||
062534d4 TT |
3061 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
3062 | ||
3063 | * python/python.c (gdbpy_parameter_value): Use | |
3064 | gdb_py_object_from_longest. | |
3065 | * python/py-type.c (convert_field, typy_range): Use | |
3066 | gdb_py_object_from_longest. | |
3067 | * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use | |
3068 | gdb_py_object_from_longest. | |
3069 | * python/py-lazy-string.c (stpy_get_length): Use | |
3070 | gdb_py_object_from_longest. | |
3071 | * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use | |
3072 | gdb_py_object_from_longest. | |
3073 | * python/py-infevents.c (create_memory_changed_event_object): Use | |
3074 | gdb_py_object_from_longest. | |
3075 | * python/py-inferior.c (infpy_get_num): Use | |
3076 | gdb_py_object_from_longest. | |
3077 | (infpy_get_pid): Likewise. | |
3078 | ||
d1cab987 TT |
3079 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
3080 | ||
3081 | * python/python-internal.h (gdb_py_long_from_ulongest): Remove | |
3082 | defines. | |
3083 | * python/py-value.c (valpy_long): Use | |
3084 | gdb_py_object_from_ulongest. | |
3085 | * python/py-symtab.c (salpy_get_pc): Use | |
3086 | gdb_py_object_from_ulongest. | |
3087 | (salpy_get_last): Likewise. | |
3088 | * python/py-record-btrace.c (recpy_bt_insn_pc): Use | |
3089 | gdb_py_object_from_ulongest. | |
3090 | * python/py-lazy-string.c (stpy_get_address): Use | |
3091 | gdb_py_object_from_ulongest. | |
3092 | * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest. | |
3093 | * python/py-arch.c (archpy_disassemble): Use | |
3094 | gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix | |
3095 | error handling. | |
3096 | ||
4bde49dc TT |
3097 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
3098 | ||
3099 | * python/python-internal.h (gdb_py_long_from_longest): Remove | |
3100 | defines. | |
3101 | * python/py-value.c (valpy_long): Use gdb_py_object_from_longest. | |
3102 | * python/py-type.c (convert_field, typy_get_sizeof): Use | |
3103 | gdb_py_object_from_longest. | |
3104 | * python/py-record-btrace.c (btpy_list_index): Use | |
3105 | gdb_py_object_from_longest. | |
3106 | ||
37431074 TT |
3107 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
3108 | ||
3109 | * python/python-internal.h (PyInt_FromSsize_t): Remove define. | |
3110 | * python/py-record.c (recpy_element_number): Use | |
3111 | gdb_py_object_from_longest. | |
3112 | (recpy_gap_number): Likewise. | |
3113 | ||
cbe25684 TT |
3114 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
3115 | ||
3116 | * top.c (ui::ui): Update. | |
3117 | (highest_ui_num): Remove. | |
3118 | * top.h (struct ui) <num>: Remove. | |
3119 | ||
db92ac45 TT |
3120 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
3121 | ||
3122 | * unittests/memory-map-selftests.c (valid_mem_map): Now array. | |
3123 | * ui-style.c (ansi_regex_text): Now array. | |
3124 | * rust-exp.y (number_regex_text): Now array. | |
3125 | * linespec.c (linespec_quote_characters): Now array. | |
3126 | * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym): | |
3127 | Now arrays. | |
3128 | ||
d2b31b67 SM |
3129 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
3130 | ||
3131 | * debuginfod-support.c (debuginfod_client_deleter): New. | |
3132 | (debuginfod_client_up): New. | |
3133 | (debuginfod_init): Return debuginfod_client_up. | |
3134 | (debuginfod_source_query): Adjust. | |
3135 | (debuginfod_debuginfo_query): Adjust. | |
3136 | ||
3246bd8e SM |
3137 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
3138 | ||
3139 | * debuginfod-support.c (debuginfod_source_query): Use | |
3140 | make_unique_xstrdup. | |
3141 | ||
10242f36 SM |
3142 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3143 | ||
3144 | * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses | |
3145 | with `type::instance_flags`. | |
3146 | ||
e1044e6a MM |
3147 | 2020-09-14 Michael Mullin <masmullin@gmail.com> |
3148 | ||
3149 | * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml): | |
3150 | Remove baton parameter. | |
3151 | ||
04902b09 PA |
3152 | 2020-09-14 Pedro Alves <pedro@palves.net> |
3153 | ||
3154 | * Makefile.in (SELFTESTS_SRCS): Add | |
3155 | unittests/enum-flags-selftests.c. | |
3156 | * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use | |
3157 | btrace_function_flags instead of enum btrace_function_flag. | |
3158 | * compile/compile-c-types.c (convert_qualified): Use | |
3159 | enum_flags::raw. | |
3160 | * compile/compile-cplus-symbols.c (convert_one_symbol) | |
3161 | (convert_symbol_bmsym): | |
3162 | * compile/compile-cplus-types.c (compile_cplus_convert_method) | |
3163 | (compile_cplus_convert_struct_or_union_methods) | |
3164 | (compile_cplus_instance::convert_qualified_base): | |
3165 | * go-exp.y (parse_string_or_char): Add cast to int. | |
3166 | * unittests/enum-flags-selftests.c: New file. | |
3167 | * record-btrace.c (btrace_thread_flag_to_str): Change parameter's | |
3168 | type to btrace_thread_flags from btrace_thread_flag. | |
3169 | (record_btrace_cancel_resume, record_btrace_step_thread): Change | |
3170 | local's type to btrace_thread_flags from btrace_thread_flag. Add | |
3171 | cast in DEBUG call. | |
3172 | ||
69896a2c PA |
3173 | 2020-09-14 Pedro Alves <pedro@palves.net> |
3174 | ||
3175 | * c-typeprint.c (c_type_print_modifier): Adjust to rename. | |
3176 | * gdbtypes.c (address_space_name_to_int): Rename to ... | |
3177 | (address_space_name_to_type_instance_flags): ... this. | |
3178 | (address_space_int_to_name): Rename to ... | |
3179 | (address_space_type_instance_flags_to_name): ... this. | |
3180 | * gdbtypes.h (address_space_name_to_int): Rename to ... | |
3181 | (address_space_name_to_type_instance_flags): ... this. | |
3182 | (address_space_int_to_name): Rename to ... | |
3183 | (address_space_type_instance_flags_to_name): ... this. | |
3184 | * type-stack.c (type_stack::insert): Adjust to rename. | |
3185 | * type-stack.h (type_stack::insert): Likewise. | |
3186 | ||
314ad88d PA |
3187 | 2020-09-14 Pedro Alves <pedro@palves.net> |
3188 | Andrew Burgess <andrew.burgess@embecosm.com> | |
3189 | ||
3190 | * avr-tdep.c (avr_address_class_type_flags): Return | |
3191 | type_instance_flags. | |
3192 | (avr_address_class_type_flags_to_name): Take a | |
3193 | type_instance_flags. | |
3194 | (avr_address_class_name_to_type_flags): Return bool and take a | |
3195 | type_instance_flags. | |
3196 | * d-lang.c (build_d_types): Use type::set_instance_flags. | |
3197 | * ft32-tdep.c (ft32_address_class_type_flags): Return | |
3198 | type_instance_flags. | |
3199 | (ft32_address_class_type_flags_to_name): Take a | |
3200 | type_instance_flags. | |
3201 | (ft32_address_class_name_to_type_flags): Return bool and take a | |
3202 | type_instance_flags. | |
3203 | (ft32_gdbarch_init): Use type::set_instance_flags. | |
3204 | * eval.c (fake_method::fake_method): Use type::set_instance_flags. | |
3205 | * gdbarch.h, gdbarch.c: Regenerate. | |
3206 | * gdbarch.sh (address_class_type_flags): Use type_instance_flags. | |
3207 | (address_class_name_to_type_flags): Use type_instance_flags and | |
3208 | bool. | |
3209 | * gdbtypes.c (address_space_name_to_int) | |
3210 | (address_space_int_to_name, make_qualified_type): Use | |
3211 | type_instance_flags. | |
3212 | (make_qualified_type): Use type_instance_flags and | |
3213 | type::set_instance_flags. | |
3214 | (make_type_with_address_space, make_cv_type, make_vector_type) | |
3215 | (check_typedef): Use type_instance_flags. | |
3216 | (recursive_dump_type): Cast type_instance_flags to unsigned for | |
3217 | printing. | |
3218 | (copy_type_recursive): Use type::set_instance_flags. | |
3219 | (gdbtypes_post_init): Use type::set_instance_flags. | |
3220 | * gdbtypes.h (struct type) <instance_flags>: Rename to ... | |
3221 | <m_instance_flags>: ... this. | |
3222 | <instance_flags, set_instance_flags>: New methods. | |
3223 | (TYPE_INSTANCE_FLAGS): Use the instance_flags method. | |
3224 | (SET_TYPE_INSTANCE_FLAGS): New. | |
3225 | (address_space_name_to_int, address_space_int_to_name) | |
3226 | (make_type_with_address_space): Pass flags using | |
3227 | type_instance_flags instead of int. | |
3228 | * stabsread.c (cleanup_undefined_types_noname): Use | |
3229 | type::set_instance_flags. | |
3230 | * s390-tdep.c (s390_address_class_type_flags): Return | |
3231 | type_instance_flags. | |
3232 | (s390_address_class_type_flags_to_name): Take a | |
3233 | type_instance_flags. | |
3234 | (s390_address_class_name_to_type_flags): Return bool and take a | |
3235 | type_instance_flags. | |
3236 | * type-stack.c (type_stack::follow_types): Use | |
3237 | type_instance_flags. | |
3238 | * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags. | |
3239 | ||
27087b7f TT |
3240 | 2020-09-14 Tom Tromey <tromey@adacore.com> |
3241 | ||
3242 | * x86-tdep.h (x86_in_indirect_branch_thunk): Update. | |
3243 | * x86-tdep.c (x86_is_thunk_register_name) | |
3244 | (x86_in_indirect_branch_thunk): Update. | |
3245 | * sparc64-tdep.c (sparc64_fpu_register_names) | |
3246 | (sparc64_cp0_register_names, sparc64_register_names) | |
3247 | (sparc64_pseudo_register_names): Now const. | |
3248 | * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names, | |
3249 | cp0_registers_num>: Now const. | |
3250 | * sparc-tdep.c (sparc_core_register_names) | |
3251 | (sparc32_fpu_register_names, sparc32_cp0_register_names) | |
3252 | (sparc32_pseudo_register_names): Now const. | |
3253 | (validate_tdesc_registers): Update. | |
3254 | * rust-lang.c (rust_extensions): Now const. | |
3255 | * p-lang.c (p_extensions): Now const. | |
3256 | * objc-lang.c (objc_extensions): Now const. | |
3257 | * nto-tdep.c (nto_thread_state_str): Now const. | |
3258 | * moxie-tdep.c (moxie_register_names): Now const. | |
3259 | * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>: | |
3260 | Now const. | |
3261 | * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names) | |
3262 | (mips_linux_reg_names): Now const. | |
3263 | (mips_gdbarch_init): Update. | |
3264 | * microblaze-tdep.c (microblaze_register_names): Now const. | |
3265 | * m68k-tdep.c (m68k_register_names): Now const. | |
3266 | * m32r-tdep.c (m32r_register_names): Now const. | |
3267 | * ia64-tdep.c (ia64_register_names): Now const. | |
3268 | * i386-tdep.h (struct gdbarch_tdep) <register_names, | |
3269 | ymmh_register_names, ymm16h_regnum, mpx_register_names, | |
3270 | k_register_names, zmmh_register_names, xmm_avx512_register_names, | |
3271 | ymm_avx512_register_names, pkeys_register_names>: Now const. | |
3272 | * i386-tdep.c (i386_register_names, i386_zmm_names) | |
3273 | (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names) | |
3274 | (i386_mpx_names, i386_pkeys_names, i386_bnd_names) | |
3275 | (i386_mmx_names, i386_byte_names, i386_word_names): Now const. | |
3276 | * f-lang.c (f_extensions): Now const. | |
3277 | * d-lang.c (d_extensions): Now const. | |
3278 | * csky-tdep.c (csky_register_names): Now const. | |
3279 | * charset.c (default_charset_names, charset_enum): Now const. | |
3280 | (_initialize_charset): Update. | |
3281 | * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now | |
3282 | const. | |
3283 | * bsd-uthread.c (bsd_uthread_solib_names): Now const. | |
3284 | (bsd_uthread_solib_loaded): Update. | |
3285 | (bsd_uthread_state): Now const. | |
3286 | * amd64-tdep.c (amd64_register_names, amd64_ymm_names) | |
3287 | (amd64_ymm_avx512_names, amd64_ymmh_names) | |
3288 | (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names) | |
3289 | (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names) | |
3290 | (amd64_pkeys_names, amd64_byte_names, amd64_word_names) | |
3291 | (amd64_dword_names): Now const. | |
3292 | * agent.c (can_use_agent_enum): Now const. | |
3293 | * ada-tasks.c (task_states, long_task_states): Now const. | |
3294 | * ada-lang.c (known_runtime_file_name_patterns) | |
3295 | (known_auxiliary_function_name_patterns, attribute_names) | |
3296 | (standard_exc, ada_extensions): Now const. | |
3297 | ||
89806626 SM |
3298 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
3299 | ||
3300 | * bcache.h (struct bcache) <bcache>: Remove constructor. | |
3301 | <m_hash_function, m_compare_function>: Remove. | |
3302 | <~bcache>: Make virtual. | |
3303 | <compare>: Remove static method, introduce virtual method. | |
3304 | <default_hash>: Remove. | |
3305 | <hash>: New virtual method. | |
3306 | * bcache.c (bcache::expand_hash_table): Update. | |
3307 | (bcache::insert): Update. | |
3308 | (bcache::hash): New. | |
3309 | (bcache::compare): Update comment and parameter names. | |
3310 | * gdbtypes.c (types_deeply_equal): Update. | |
3311 | * psymtab.h (struct psymbol_bcache): New struct. | |
3312 | (class psymtab_storage) <psymtab_storage>: Make default. | |
3313 | <psymbol_cache>: Change type to psymbol_bcache. | |
3314 | * psymtab.c (psymtab_storage::psymtab_storage): Remove. | |
3315 | (psymbol_hash): Change to... | |
3316 | (psymbol_bcache::hash): ... this. | |
3317 | (psymbol_compare): Change to... | |
3318 | (psymbol_bcache::compare): ... this. | |
3319 | ||
677c92fe SM |
3320 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
3321 | ||
3322 | * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when | |
3323 | checking for initial lwp. | |
3324 | ||
3eba3a01 TT |
3325 | 2020-09-14 Tom Tromey <tromey@adacore.com> |
3326 | ||
3327 | * m68k-tdep.c (m68k_extract_return_value): Use | |
3328 | pointer_result_regnum. | |
3329 | (m68k_store_return_value): Likewise. | |
3330 | (m68k_reg_struct_return_p): Handle vectors and arrays. | |
3331 | (m68k_return_value): Handle arrays. | |
3332 | (m68k_svr4_return_value): Fix single-element aggregate handling. | |
3333 | Handle long double. Adjust for embedded ABI. | |
3334 | (m68k_svr4_init_abi): Set pointer_result_regnum. | |
3335 | (m68k_embedded_init_abi): New function. | |
3336 | (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP. | |
3337 | (m68k_osabi_sniffer): New function. | |
3338 | (_initialize_m68k_tdep): Register osabi sniffer. | |
3339 | * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New | |
3340 | member. | |
3341 | ||
33f4dd48 SM |
3342 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
3343 | ||
3344 | * xml-support.c (xml_fetch_content_from_file): Replace xfree | |
3345 | with gdb::unique_xmalloc_ptr<char>. | |
3346 | ||
8400a90d SM |
3347 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
3348 | ||
3349 | * xml-support.h (xml_fetch_another): Change type to be a | |
3350 | function_view. | |
3351 | (xml_process_xincludes): Remove baton parameter. | |
3352 | (xml_fetch_content_from_file): Change baton parameter to | |
3353 | dirname. | |
3354 | * xml-support.c (struct xinclude_parsing_data) | |
3355 | <xinclude_parsing_data>: Remove baton parameter. | |
3356 | <fetcher_baton>: Remove. | |
3357 | (xinclude_start_include): Adjust. | |
3358 | (xml_process_xincludes): Adjust. | |
3359 | (xml_fetch_content_from_file): Replace baton parameter with | |
3360 | dirname. | |
3361 | * xml-syscall.c (syscall_parse_xml): Remove baton parameter. | |
3362 | (xml_init_syscalls_info): Use a lambda. | |
3363 | * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter. | |
3364 | (file_read_description_xml): Use a lambda. | |
3365 | (fetch_available_features_from_target): Change baton parameter | |
3366 | to target_ops. | |
3367 | (target_read_description_xml): Use a lambda. | |
3368 | (target_fetch_description_xml): Use a lambda. | |
3369 | (string_read_description_xml): Update. | |
3370 | ||
04f5bab2 SM |
3371 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
3372 | ||
3373 | * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all | |
3374 | uses with type::endianity_is_not_default. | |
3375 | ||
db558e34 SM |
3376 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3377 | ||
3378 | * gdbtypes.h (struct type) <endianity_is_not_default, | |
3379 | set_endianity_is_not_default>: New methods. | |
3380 | (TYPE_ENDIANITY_NOT_DEFAULT): Use | |
3381 | type::endianity_is_not_default, change all write call sites to | |
3382 | use type::set_endianity_is_not_default. | |
3383 | ||
22c4c60c SM |
3384 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3385 | ||
3386 | * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all | |
3387 | uses with type::is_fixed_instance. | |
3388 | ||
9cdd0d12 SM |
3389 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3390 | ||
3391 | * gdbtypes.h (struct type) <is_fixed_instance, | |
3392 | set_is_fixed_instance>: New methods. | |
3393 | (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all | |
3394 | write call sites to use type::set_is_fixed_instance. | |
3395 | ||
0becda7a SM |
3396 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3397 | ||
3398 | * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all | |
3399 | uses with type::is_gnu_ifunc. | |
3400 | ||
03cc7249 SM |
3401 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3402 | ||
3403 | * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods. | |
3404 | (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to | |
3405 | use type::set_is_gnu_ifunc. | |
3406 | ||
3f46044c SM |
3407 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3408 | ||
3409 | * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all | |
3410 | uses with type::stub_is_supported. | |
3411 | ||
9baccff6 SM |
3412 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3413 | ||
3414 | * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods. | |
3415 | (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to | |
3416 | use type::set_stub_is_supported. | |
3417 | ||
bd63c870 SM |
3418 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3419 | ||
3420 | * gdbtypes.h (TYPE_VECTOR): Remove, replace all | |
3421 | uses with type::is_vector. | |
3422 | ||
2062087b SM |
3423 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3424 | ||
3425 | * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods. | |
3426 | (TYPE_VECTOR): Use type::is_vector, change all write call sites to | |
3427 | use type::set_is_vector. | |
3428 | ||
a409645d SM |
3429 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3430 | ||
3431 | * gdbtypes.h (TYPE_VARARGS): Remove, replace all | |
3432 | uses with type::has_varargs. | |
3433 | ||
1d6286ed SM |
3434 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3435 | ||
3436 | * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods. | |
3437 | (TYPE_VARARGS): Use type::has_varargs, change all write call sites to | |
3438 | use type::set_has_varargs. | |
3439 | ||
7f9f399b SM |
3440 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3441 | ||
3442 | * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all | |
3443 | uses with type::is_prototyped. | |
3444 | ||
27e69b7a SM |
3445 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3446 | ||
3447 | * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>: | |
3448 | New methods. | |
3449 | (TYPE_PROTOTYPED): Use type::is_prototyped, change all write | |
3450 | call sites to use type::set_is_prototyped. | |
3451 | ||
d2183968 SM |
3452 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3453 | ||
3454 | * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all | |
3455 | uses with type::target_is_stub. | |
3456 | ||
8f53807e SM |
3457 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3458 | ||
3459 | * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>: | |
3460 | New methods. | |
3461 | (TYPE_TARGET_STUB): Use type::is_stub, change all write call | |
3462 | sites to use type::set_target_is_stub. | |
3463 | ||
e46d3488 SM |
3464 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3465 | ||
3466 | * gdbtypes.h (TYPE_STUB): Remove, replace all | |
3467 | uses with type::is_stub. | |
3468 | ||
b4b73759 SM |
3469 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3470 | ||
3471 | * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods. | |
3472 | (TYPE_STUB): Use type::is_stub, change all write call sites to | |
3473 | use type::set_is_stub. | |
3474 | ||
20ce4123 SM |
3475 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3476 | ||
3477 | * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with | |
3478 | type::has_no_signedness. | |
3479 | ||
15152a54 SM |
3480 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3481 | ||
3482 | * gdbtypes.h (struct type) <has_no_signedness, | |
3483 | set_has_no_signedness>: New methods. | |
3484 | (TYPE_NOSIGN): Use type::has_no_signedness, change all write | |
3485 | call sites to use type::set_has_no_signedness. | |
3486 | ||
c6d940a9 SM |
3487 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3488 | ||
3489 | * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with | |
3490 | type::is_unsigned. | |
3491 | ||
653223d3 SM |
3492 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
3493 | ||
3494 | * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New | |
3495 | methods. | |
3496 | (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call | |
3497 | sites to use type::set_is_unsigned. | |
3498 | ||
55ea94da | 3499 | 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com> |
e851246a | 3500 | Adam Renquinha <arenquinha@cimeq.qc.ca> |
55ea94da | 3501 | |
e851246a SM |
3502 | * arm-tdep.c (arm_m_exception_cache): Try use correct stack |
3503 | pointer and stack frame offset when unwinding. | |
55ea94da | 3504 | |
6791b117 PA |
3505 | 2020-09-13 Pedro Alves <pedro@palves.net> |
3506 | ||
3507 | * NEWS: Document "-break-insert --qualified". | |
3508 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified". | |
3509 | ||
77f2120b PA |
3510 | 2020-09-13 Pedro Alves <pedro@palves.net> |
3511 | ||
3512 | * linespec.c (classify_mtype, compare_msyms): Delete. | |
3513 | (search_minsyms_for_name): Remove classification logic. Instead | |
3514 | filter out trampoline symbols if we also found an external | |
3515 | function of the same name. | |
3516 | ||
ed6a896c JB |
3517 | 2020-09-13 Joel Brobecker <brobecker@adacore.com> |
3518 | ||
3519 | * NEWS: Create a new section for the next release branch. | |
3520 | Rename the section of the current branch, now that it has | |
3521 | been cut. | |
3522 | ||
32aea73e JB |
3523 | 2020-09-13 Joel Brobecker <brobecker@adacore.com> |
3524 | ||
3525 | GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59): | |
3526 | * version.in: Bump version to 11.0.50.DATE-git. | |
3527 | ||
8087c3fa JB |
3528 | 2020-09-12 Joel Brobecker <brobecker@adacore.com> |
3529 | ||
3530 | * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST. | |
3531 | ||
2a67f09d FW |
3532 | 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com> |
3533 | Felix Willgerodt <Felix.Willgerodt@intel.com> | |
3534 | ||
3535 | * gdbarch.sh: Added bfloat16 type. | |
3536 | * gdbarch.c: Regenerated. | |
3537 | * gdbarch.h: Regenerated. | |
3538 | * gdbtypes.c (floatformats_bfloat16): New struct. | |
3539 | (gdbtypes_post_init): Add builtin_bfloat16. | |
3540 | * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member. | |
3541 | (floatformats_bfloat16): New struct. | |
3542 | * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16" | |
3543 | (i386_ymm_type): Add field "v16_bfloat16" | |
3544 | (i386_gdbarch_init): Add set_gdbarch_bfloat16_format. | |
3545 | * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16. | |
3546 | * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16. | |
3547 | * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16. | |
3548 | * features/i386/64bit-avx512.xml: Add bfloat16 type. | |
3549 | * features/i386/64bit-avx512.c: Regenerated. | |
3550 | * features/i386/64bit-sse.xml: Add bfloat16 type. | |
3551 | * features/i386/64bit-sse.c: Regenerated. | |
3552 | ||
1347d111 FW |
3553 | 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com> |
3554 | ||
3555 | * i386-tdep.c (i386_zmm_type): Fix field names. | |
3556 | (i386_ymm_type): Fix field names. | |
3557 | ||
7a4e8e7d TBA |
3558 | 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3559 | ||
3560 | * breakpoint.c: Fix typo in the help message of the | |
3561 | "set breakpoint condition-evaluation" command. | |
3562 | ||
cf4ac4be KR |
3563 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
3564 | ||
3565 | * nbsd-nat.c: Include "nat/netbsd-nat.h". | |
3566 | * (nbsd_nat_target::pid_to_exec_file) | |
3567 | (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name) | |
3568 | (nbsd_nat_target::post_startup_inferior) | |
3569 | (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial) | |
3570 | (nbsd_add_threads): Switch local code to common gdb/nat functions. | |
3571 | * (nbsd_pid_to_cmdline): Call sysctl from the global namespace. | |
3572 | * (nbsd_thread_lister): Remove. | |
3573 | ||
f404573e KR |
3574 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
3575 | ||
3576 | * fork-inferior.c (startup_inferior): Avoid double free. | |
3577 | ||
1ccb2c17 KR |
3578 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
3579 | ||
3580 | * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add. | |
3581 | * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise. | |
3582 | ||
feedfcc7 KR |
3583 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
3584 | ||
3585 | * netbsd-nat.h (netbsd_nat::enable_proc_events): Add. | |
3586 | * netbsd-nat.c: Include <sys/ptrace.h>. | |
3587 | * (netbsd_nat::enable_proc_events): Add. | |
3588 | ||
c489f8c6 KR |
3589 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
3590 | ||
3591 | * netbsd-nat.h: Include "gdbsupport/function-view.h". | |
3592 | * (netbsd_nat::thread_alive, netbsd_nat::thread_name) | |
3593 | (netbsd_nat::for_each_thread): Add. | |
3594 | * netbsd-nat.c: Include "gdbsupport/common-defs.h" and | |
3595 | "gdbsupport/common-debug.h". | |
3596 | * (netbsd_nat::netbsd_thread_lister) | |
3597 | (netbsd_nat::thread_alive, netbsd_nat::thread_name) | |
3598 | (netbsd_nat::for_each_thread): Add. | |
3599 | ||
330662f6 KR |
3600 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
3601 | ||
3602 | * netbsd-nat.h: Include <unistd.h>. | |
3603 | * (netbsd_nat::pid_to_exec_file): Add. | |
3604 | * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>. | |
3605 | * (netbsd_nat::pid_to_exec_file) Add. | |
3606 | ||
70b67307 KR |
3607 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
3608 | ||
3609 | * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed. | |
3610 | ||
99cf6da6 KR |
3611 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
3612 | ||
3613 | * netbsd-nat.h: New file. | |
3614 | * netbsd-nat.c: Likewise. | |
3615 | ||
1b788fb6 TT |
3616 | 2020-09-09 Tom Tromey <tromey@adacore.com> |
3617 | ||
3618 | * ada-lang.c (remove_extra_symbols): Do not increment when | |
3619 | removing an element | |
3620 | ||
03b0a45f TT |
3621 | 2020-09-08 Tom Tromey <tromey@adacore.com> |
3622 | ||
3623 | * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails. | |
3624 | ||
3cae4447 TT |
3625 | 2020-09-08 Tom Tromey <tromey@adacore.com> |
3626 | ||
3627 | PR win32/25302: | |
3628 | * gdb_bfd.c (gdb_bfd_data): Add "st" parameter. | |
3629 | (gdb_bfd_init_data): New function. | |
3630 | (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data. | |
3631 | ||
7f08fd51 TBA |
3632 | 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3633 | ||
3634 | * infrun.c (fetch_inferior_event): Use | |
3635 | `switch_to_target_no_thread` to switch the target. | |
3636 | ||
3e6ff933 TT |
3637 | 2020-09-06 Tom Tromey <tom@tromey.com> |
3638 | ||
3639 | * symfile.h (dwarf2_free_objfile): Don't declare. | |
3640 | ||
e56798df AKS |
3641 | 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
3642 | ||
3643 | * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions | |
3644 | to match 16 byte real/complex type generated by Flang compiler. | |
3645 | ||
8f5c6526 TV |
3646 | 2020-09-03 Tom de Vries <tdevries@suse.de> |
3647 | ||
3648 | PR breakpoint/26546 | |
3649 | * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as | |
3650 | LOC_OPTIMIZED_OUT instead of LOC_LABEL. | |
3651 | ||
c5065df0 SM |
3652 | 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca> |
3653 | ||
3654 | * maint.c (index_digits): New function. | |
3655 | (struct maint_print_section_data): Remove. | |
3656 | (print_bfd_section_info): Remove print_data parameter, add arg | |
3657 | and index_digits. | |
3658 | (print_objfile_section_info): Likewise. | |
3659 | (print_bfd_section_info_maybe_relocated): Likewise (plus | |
3660 | objfile). | |
3661 | (maintenance_info_sections): Adjust calls. | |
3662 | ||
02c6f3f1 TT |
3663 | 2020-09-02 Tom Tromey <tromey@adacore.com> |
3664 | ||
3665 | * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0 | |
3666 | for null pointers. | |
3667 | (ada_varobj_adjust_for_child_access): Special-case null pointers. | |
3668 | ||
ef5e5b0b SM |
3669 | 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca> |
3670 | ||
3671 | * bcache.h (struct bcache) <insert>: Change type of `added` to | |
3672 | pointer to bool. | |
3673 | * bcache.c (bcache::insert): Likewise. | |
3674 | * gdbtypes.c (check_types_worklist): Adjust. | |
3675 | * psymtab.c (add_psymbol_to_bcache): Adjust. | |
3676 | ||
973695d6 KB |
3677 | 2020-08-31 Kevin Buettner <kevinb@redhat.com> |
3678 | ||
3679 | * corelow.c (unordered_set): Include. | |
3680 | (class core_target): Add field 'm_core_unavailable_mappings'. | |
3681 | (core_target::build_file_mappings): Print only one warning | |
3682 | per inaccessible file. Add unavailable/broken mappings | |
3683 | to m_core_unavailable_mappings. | |
3684 | (core_target::xfer_partial): Call... | |
3685 | (core_target::xfer_memory_via_mappings): New method. | |
3686 | ||
264fc0e2 SM |
3687 | 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> |
3688 | ||
3689 | * dwarf2/read.c (struct field_info) <non_public_fields>: Change | |
3690 | type to bool. | |
3691 | ||
2de01bdb SM |
3692 | 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> |
3693 | ||
3694 | * dwarf2/read.c (struct field_info): Fix indentation. | |
3695 | ||
f3bd50f1 SM |
3696 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
3697 | ||
3698 | * frame-unwind.h (frame_prev_register_ftype): Fix adjective | |
3699 | ordering in comment. | |
3700 | * frame.c (frame_id_eq): Fix indentation. | |
3701 | ||
22b9b4b0 SL |
3702 | 2020-08-31 Scott Linder <scott@scottlinder.com> |
3703 | Simon Marchi <simon.marchi@efficios.com> | |
3704 | ||
3705 | * inline-frame.c (inline_frame_this_id): Remove assert that prevents | |
3706 | inline frame ids in outer frame. | |
3707 | ||
84154d16 SM |
3708 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
3709 | ||
3710 | * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New. | |
3711 | * frame.c (fprint_frame_id): Handle FID_STACK_OUTER. | |
3712 | (outer_frame_id): Use FID_STACK_OUTER instead of | |
3713 | FID_STACK_INVALID. | |
3714 | (frame_id_p): Don't check for outer_frame_id. | |
3715 | ||
8efaf6b3 SM |
3716 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
3717 | ||
3718 | * frame-unwind.c (frame_unwind_got_optimized): Don't set | |
3719 | regnum/frame in value. Call allocate_value_lazy. | |
3720 | * frame.c (frame_unwind_register_value): Use | |
3721 | val_print_not_saved. | |
3722 | ||
fe1fe7ea SM |
3723 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
3724 | ||
3725 | * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr. | |
3726 | ||
f7c7700d PA |
3727 | 2020-08-29 Pedro Alves <pedro@palves.net> |
3728 | ||
3729 | * progspace.c (print_program_space): Use all_inferiors. Switch to | |
3730 | the inferior before calling target_pid_to_str. | |
3731 | ||
e0814aae TT |
3732 | 2020-08-28 Tom Tromey <tom@tromey.com> |
3733 | ||
3734 | * xcoffread.c (xcoff_end_psymtab): Update comment. | |
3735 | * dbxread.c (dbx_end_psymtab): Update comment. | |
3736 | ||
626d2320 TV |
3737 | 2020-08-28 Tom de Vries <tdevries@suse.de> |
3738 | ||
3739 | PR breakpoint/26544 | |
3740 | * breakpoint.c (parse_breakpoint_sals): Remove const from struct | |
3741 | event_location. | |
3742 | (create_breakpoint): Same. | |
3743 | (base_breakpoint_decode_location): Same. | |
3744 | (bkpt_create_sals_from_location): Same. | |
3745 | (bkpt_decode_location): Same. | |
3746 | (bkpt_probe_create_sals_from_location): Same. | |
3747 | (bkpt_probe_decode_location): Same. | |
3748 | (tracepoint_create_sals_from_location): Same. | |
3749 | (tracepoint_decode_location): Same. | |
3750 | (tracepoint_probe_decode_location): Same. | |
3751 | (strace_marker_create_sals_from_location): Same. | |
3752 | (strace_marker_decode_location): Same. | |
3753 | (create_sals_from_location_default): Same. | |
3754 | (decode_location_default): Same. | |
3755 | * breakpoint.h (struct breakpoint_ops): Same. | |
3756 | (create_breakpoint): Same. | |
3757 | * linespec.h (decode_line_full): Same. | |
3758 | * linespec.c (decode_line_full): Same. Throw error if | |
3759 | result.size () == 0. | |
3760 | ||
df631783 PA |
3761 | 2020-08-27 Pedro Alves <pedro@palves.net> |
3762 | ||
3763 | PR gdb/26524 | |
3764 | * breakpoint.c (until_break_fsm) <location_breakpoint, | |
3765 | caller_breakpoint>: Delete fields. | |
3766 | <breakpoints>: New field. | |
3767 | <until_break_fsm>: Adjust to save a breakpoint vector instead of | |
3768 | two individual breakpoints. | |
3769 | (until_break_fsm::should_stop): Loop over breakpoints in the | |
3770 | breakpoint vector. | |
3771 | (until_break_fsm::clean_up): Adjust to clear the breakpoints | |
3772 | vector. | |
3773 | (until_break_command): Handle location expanding into multiple | |
3774 | sals. | |
3775 | ||
b2b38aa4 PA |
3776 | 2020-08-27 Pedro Alves <pedro@palves.net> |
3777 | ||
3778 | PR gdb/26523 | |
3779 | * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider | |
3780 | bp_until breakpoints user-specified locations. Update intro | |
3781 | comment. | |
3782 | ||
b886559f SM |
3783 | 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca> |
3784 | ||
3785 | * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range, | |
3786 | gdb_bfd_sections): New. | |
3787 | * maint.c (print_bfd_section_info): Change param type to | |
3788 | maint_print_section_data. | |
3789 | (print_objfile_section_info): Likewise. | |
3790 | (print_bfd_section_info_maybe_relocated): Likewise. | |
3791 | (maintenance_info_sections): Use gdb_bfd_sections. | |
3792 | ||
4c6e63bf SV |
3793 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
3794 | ||
3795 | * MAINTAINERS: Add ARC target and maintainer. | |
3796 | ||
8d7f0635 AK |
3797 | 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com> |
3798 | ||
3799 | * configure.tgt: ARC support for GNU/Linux. | |
3800 | * Makefile.in (ALL_TARGET_OBJS): Likewise. | |
3801 | * arc-linux-tdep.c: New file. | |
3802 | * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare. | |
3803 | * arc-tdep.c (arc_write_pc): Use it. | |
3804 | ||
fdd8731b SV |
3805 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
3806 | ||
3807 | * arc-tdep.c (arc_check_for_hardware_loop): New. | |
3808 | * arc-tdep.h (gdbarch_tdep): New field has_hw_loops. | |
3809 | ||
22459524 SV |
3810 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
3811 | ||
3812 | * arc-tdep.h: Include "gdbarch.h". | |
3813 | ||
995d3a19 SV |
3814 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
3815 | ||
3816 | * arch/arc.h | |
3817 | (arc_gdbarch_features): New class to stir the selection of target XML. | |
3818 | (arc_create_target_description): Use FEATURES to choose XML target. | |
3819 | (arc_lookup_target_description): Use arc_create_target_description | |
3820 | to create _new_ target descriptions or return the already created | |
3821 | ones if the FEATURES is the same. | |
3822 | * arch/arc.c: Implementation of prototypes described above. | |
3823 | * gdb/arc-tdep.h (arc_regnum enum): Add more registers. | |
3824 | (arc_gdbarch_features_init): Initialize the FEATURES struct. | |
3825 | * arc-tdep.c (*_feature_name): Make feature names consistent. | |
3826 | (arc_register_feature): A new struct to hold information about | |
3827 | registers of a particular target/feature. | |
3828 | (arc_check_tdesc_feature): Check if XML provides registers in | |
3829 | compliance with ARC_REGISTER_FEATURE structs. | |
3830 | (arc_update_acc_reg_names): Add aliases for r58 and r59. | |
3831 | (determine_*_reg_feature_set): Which feature name to look for. | |
3832 | (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES. | |
3833 | (mach_type_to_arc_isa): Convert from a set of binutils machine types | |
3834 | to expected ISA enums to be used in arc_gdbarch_features structs. | |
3835 | * features/Makefile (FEATURE_XMLFILES): Add new files. | |
3836 | * gdb/features/arc/v1-aux.c: New file. | |
3837 | * gdb/features/arc/v1-aux.xml: Likewise. | |
3838 | * gdb/features/arc/v1-core.c: Likewise. | |
3839 | * gdb/features/arc/v1-core.xml: Likewise. | |
3840 | * gdb/features/arc/v2-aux.c: Likewise. | |
3841 | * gdb/features/arc/v2-aux.xml: Likewise. | |
3842 | * gdb/features/arc/v2-core.c: Likewise. | |
3843 | * gdb/features/arc/v2-core.xml: Likewise. | |
3844 | * NEWS (Changes since GDB 9): Announce obsolence of old feature names. | |
3845 | ||
3945d2d7 GM |
3846 | 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com> |
3847 | Andrew Burgess <andrew.burgess@embecosm.com> | |
3848 | ||
3849 | PR m2/26372 | |
fc5d6901 | 3850 | * m2-exp.y (exp): Improve comment for non_empty_arglist case, add |
3945d2d7 GM |
3851 | an assert. Remove single element array indexing pattern as the |
3852 | MULTI_SUBSCRIPT support will handle this case too. | |
3853 | ||
2677f2d3 SM |
3854 | 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca> |
3855 | ||
3856 | * value.h (valprint_check_validity): Move declaration from | |
3857 | here... | |
3858 | * valprint.h (valprint_check_validity): ... to here. | |
3859 | ||
c426fddb SM |
3860 | 2020-08-24 Simon Marchi <simon.marchi@efficios.com> |
3861 | ||
3862 | * debug.h: New file. | |
3863 | * debug.c (debug_prefixed_vprintf): New function. | |
3864 | * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf. | |
3865 | * linux-nat.c (linux_nat_debug_printf_1): Likewise. | |
3866 | ||
1eb8556f SM |
3867 | 2020-08-24 Simon Marchi <simon.marchi@efficios.com> |
3868 | ||
3869 | * infrun.h (infrun_debug_printf_1): New function declaration. | |
3870 | (infrun_debug_printf): New macro. | |
3871 | * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf | |
3872 | throughout. | |
3873 | (infrun_debug_printf): New function. | |
3874 | * breakpoint.c (should_be_inserted): Use infrun_debug_printf. | |
3875 | (handle_jit_event): Likewise. | |
3876 | ||
b8fff44e MW |
3877 | 2020-08-21 Mark Wielaard <mark@klomp.org> |
3878 | ||
3879 | * ada-lex.l: Extend register warnings diagnostics comment for g++. | |
3880 | ||
d19c3068 SM |
3881 | 2020-08-22 Simon Marchi <simon.marchi@efficios.com> |
3882 | ||
3883 | * frame.c (enum class frame_id_status): New. | |
3884 | (struct frame_info) <this_id::p>: Change type to frame_id_status. | |
3885 | (fprintf_frame): Update. | |
3886 | (compute_frame_id): Set frame id status to "computing" on entry. | |
3887 | Set it back to "not_computed" on failure and to "computed" on | |
3888 | success. | |
3889 | (get_frame_id): Assert the frame id is not being computed. | |
3890 | (create_sentinel_frame): Use frame_id_status::COMPUTED. | |
3891 | (create_new_frame): Likewise. | |
3892 | (frame_cleanup_after_sniffer): Update assert. | |
3893 | ||
b70e516e SM |
3894 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
3895 | ||
3896 | * regcache.c (pid_ptid_regcache_map): New type. | |
3897 | (target_ptid_regcache_map): Remove. | |
3898 | (target_pid_ptid_regcache_map): New type. | |
3899 | (regcaches): Change type to target_pid_ptid_regcache_map. | |
3900 | (get_thread_arch_aspace_regcache): Update. | |
3901 | (regcache_thread_ptid_changed): Update, handle pid-like ptid | |
3902 | case. | |
3903 | (regcaches_size): Update. | |
3904 | (regcache_count): Update. | |
3905 | (registers_changed_ptid_target_pid_test): New. | |
3906 | (_initialize_regcache): Register new test. | |
3907 | ||
cdd9148a SM |
3908 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
3909 | ||
3910 | * regcache.c (regcache_count): New. | |
3911 | (struct regcache_test_data): New. | |
3912 | (regcache_test_data_up): New. | |
3913 | (populate_regcaches_for_test): New. | |
3914 | (regcaches_test): Remove. | |
3915 | (get_thread_arch_aspace_regcache_test): New. | |
3916 | (registers_changed_ptid_all_test): New. | |
3917 | (registers_changed_ptid_target_test): New. | |
3918 | (registers_changed_ptid_target_ptid_test): New. | |
3919 | (regcache_thread_ptid_changed): Remove regcache_count lambda. | |
3920 | (_initialize_regcache): Register new tests. | |
3921 | ||
dd125343 SM |
3922 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
3923 | ||
3924 | * regcache.c (test_get_thread_arch_aspace_regcache): Rename to... | |
3925 | (get_thread_arch_aspace_regcache_and_check): ... this. Remove | |
3926 | gdbarch and aspace parameter. Use current inferior's aspace. | |
3927 | Validate regcache's arch value. | |
3928 | (regcaches_test): Update. | |
3929 | ||
3ee93972 SM |
3930 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
3931 | ||
3932 | * regcache.c (regcaches_test): Call registers_changed. | |
3933 | ||
33bf4c5c TBA |
3934 | 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3935 | ||
3936 | * infrun.c (process_event_stop_test): Fix typo "breapoint". | |
3937 | ||
c2fd7fae AKS |
3938 | 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
3939 | ||
3940 | * amd64-tdep.c (amd64_skip_prologue): Using symbol table | |
3941 | to find the end of prologue for flang compiled binaries. | |
3942 | * arm-tdep.c (arm_skip_prologue): Likewise. | |
3943 | * i386-tdep.c (i386_skip_prologue): Likewise. | |
3944 | * producer.c (producer_is_llvm): New function. | |
3945 | (producer_parsing_tests): Added new tests for clang/flang. | |
3946 | * producer.h (producer_is_llvm): New declaration. | |
3947 | ||
9327494e SM |
3948 | 2020-08-18 Simon Marchi <simon.marchi@efficios.com> |
3949 | ||
3950 | * linux-nat.c (linux_nat_debug_printf): New function. | |
3951 | (linux_nat_debug_printf_1): New macro. Use throughout the file. | |
3952 | ||
d138725a AM |
3953 | 2020-08-18 Aaron Merey <amerey@redhat.com> |
3954 | ||
3955 | * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables. | |
3956 | (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS. | |
3957 | (CLIBS): Add DEBUGINFOD_LIBS. | |
3958 | ||
f9b11e6b ST |
3959 | 2020-08-17 Sergei Trofimovich <siarheit@google.com> |
3960 | ||
3961 | * ia64-linux-nat.c: Include "gdbarch.h" to declare used | |
3962 | 'gdbarch_num_regs'. | |
3963 | ||
3ae7ab99 TT |
3964 | 2020-08-17 Tom Tromey <tromey@adacore.com> |
3965 | ||
3966 | * ada-varobj.c (ada_varobj_decode_var): Handle case where | |
3967 | ada_get_decoded_value returns NULL. | |
3968 | ||
b017825f TT |
3969 | 2020-08-17 Tom Tromey <tromey@adacore.com> |
3970 | ||
3971 | * python/py-inferior.c (infpy_search_memory): Use | |
3972 | gdb_py_object_from_ulongest. | |
3973 | * python/py-infevents.c (create_inferior_call_event_object) | |
3974 | (create_memory_changed_event_object): Use | |
3975 | gdb_py_object_from_ulongest. | |
3976 | * python/py-linetable.c (ltpy_entry_get_pc): Use | |
3977 | gdb_py_object_from_ulongest. | |
3978 | ||
7635cf79 SM |
3979 | 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca> |
3980 | ||
3981 | * loc.c (class symbol_needs_eval_context): Fix indentation. | |
3982 | ||
f54be24b SM |
3983 | 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca> |
3984 | ||
3985 | * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
3986 | bool. | |
3987 | ||
53d5a2a5 TV |
3988 | 2020-08-17 Tom de Vries <tdevries@suse.de> |
3989 | ||
3990 | PR gdb/26393 | |
3991 | * gdbtypes.c (dump_dynamic_prop): New function. | |
3992 | (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE. | |
3993 | ||
547ce8f0 TV |
3994 | 2020-08-15 Tom de Vries <tdevries@suse.de> |
3995 | ||
3996 | PR backtrace/26390 | |
3997 | * stack.c (print_frame_args): Temporarily set the selected | |
3998 | frame to FRAME while printing the frame's arguments. | |
3999 | ||
6ea815e7 PFC |
4000 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
4001 | ||
4002 | PR breakpoints/26385 | |
4003 | * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume): | |
4004 | Always clear watchpoint with PTRACE_SET_DEBUGREG. | |
4005 | ||
6e562fa3 PFC |
4006 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
4007 | ||
4008 | * ppc-linux-nat.c (ppc_linux_dreg_interface::detect) | |
4009 | (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0 | |
4010 | and >= to check return value instead of == -1 and != -1. | |
4011 | ||
d369b608 SM |
4012 | 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca> |
4013 | ||
4014 | * utils.h (class gdb_argv) <as_array_view>: New method. | |
4015 | * utils.c (gdb_argv_as_array_view_test): New. | |
4016 | (_initialize_utils): Register selftest. | |
4017 | * maint.c (maintenance_selftest): Use the new method. | |
4018 | ||
b31488a3 KR |
4019 | 2020-08-13 Kamil Rytarowski <n54@gmx.com> |
4020 | ||
4021 | * target.h (supports_dumpcore, dumpcore): New | |
4022 | function declarations. | |
4023 | * target.c (supports_dumpcore, dumpcore): New | |
4024 | functions. | |
4025 | * target-delegates.c: Rebuild. | |
4026 | * gcore.c (gcore_command): Use target_supports_dumpcore () | |
4027 | and target_dumpcore (). | |
4028 | ||
002a3166 AM |
4029 | 2020-08-13 Aaron Merey <amerey@redhat.com> |
4030 | ||
4031 | * debuginfod-support.c: Replace global variables with user_data. | |
4032 | ||
ece5bc8a SM |
4033 | 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca> |
4034 | ||
4035 | * maint.c (maintenance_selftest): Split args and pass array_view | |
4036 | to run_tests. | |
4037 | ||
6d8a0a5e LM |
4038 | 2020-08-12 Luis Machado <luis.machado@linaro.org> |
4039 | ||
4040 | * value.c (check_type_length_before_alloc): Use ULONGEST to store a | |
4041 | type's length. | |
4042 | Use %s and pulongest to print the length. | |
4043 | ||
7cf663a9 PA |
4044 | 2020-08-12 Pedro Alves <palves@redhat.com> |
4045 | ||
4046 | * NEWS: Move "Multi-target debugging support" item to the | |
4047 | "Changes since GDB 9" section. | |
4048 | ||
27c7b875 PA |
4049 | 2020-08-12 Pedro Alves <palves@redhat.com> |
4050 | ||
4051 | PR gdb/26336 | |
4052 | * progspace.c (program_space::remove_objfile): Invalidate the | |
4053 | frame cache. | |
4054 | ||
1796a2a1 TV |
4055 | 2020-08-11 Tom de Vries <tdevries@suse.de> |
4056 | ||
4057 | * MAINTAINERS: Mark ms1 as deleted. | |
4058 | ||
f8e3fe0d LM |
4059 | 2020-08-10 Luis Machado <luis.machado@linaro.org> |
4060 | ||
4061 | PR gdb/26310 | |
4062 | ||
4063 | * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and | |
4064 | act accordingly. | |
4065 | (aarch64_analyze_prologue_test): Add more unit tests to exercise | |
4066 | movz/str/stur/stp skipping behavior. | |
4067 | ||
cc308722 LM |
4068 | 2020-08-10 Luis Machado <luis.machado@linaro.org> |
4069 | ||
4070 | * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use | |
4071 | struct user_sve_header instead of struct sve_context. | |
4072 | ||
041d9819 SM |
4073 | 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca> |
4074 | ||
4075 | * read.h (dwarf2_fetch_die_loc_sect_off, | |
4076 | dwarf2_fetch_die_loc_cu_off): Replace function pointer + | |
4077 | `void *` parameter with function_view. | |
4078 | * read.c (dwarf2_fetch_die_loc_sect_off, | |
4079 | dwarf2_fetch_die_loc_cu_off): Likewise. | |
4080 | * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove. | |
4081 | (per_cu_dwarf_call): Adjust. | |
4082 | (get_frame_address_in_block_wrapper): Remove. | |
4083 | (indirect_synthetic_pointer): Adjust. | |
4084 | (get_ax_pc): Remove. | |
4085 | (dwarf2_compile_expr_to_ax): Adjust. | |
4086 | ||
38f8aa06 TV |
4087 | 2020-08-08 Tom de Vries <tdevries@suse.de> |
4088 | ||
4089 | PR build/26344 | |
4090 | * arch/riscv.c (riscv_lookup_target_description): Use an explicit | |
4091 | constructor. | |
4092 | * regcache.c (get_thread_arch_aspace_regcache): Same. | |
4093 | ||
a52b3ae2 TT |
4094 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4095 | ||
4096 | * ravenscar-thread.c | |
4097 | (ravenscar_thread_target::set_base_thread_from_ravenscar_task): | |
4098 | New method. | |
4099 | (ravenscar_thread_target::wait): Check | |
4100 | runtime_initialized. | |
4101 | (ravenscar_thread_target::prepare_to_store) | |
4102 | (ravenscar_thread_target::stopped_by_sw_breakpoint) | |
4103 | (ravenscar_thread_target::stopped_by_hw_breakpoint) | |
4104 | (ravenscar_thread_target::stopped_by_watchpoint) | |
4105 | (ravenscar_thread_target::stopped_data_address) | |
4106 | (ravenscar_thread_target::core_of_thread): Use | |
4107 | scoped_restore_current_thread and | |
4108 | set_base_thread_from_ravenscar_task. | |
4109 | ||
0e29517d TT |
4110 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4111 | ||
4112 | * ravenscar-thread.c (update_thread_list): Set inferior_ptid. | |
4113 | ||
592f9bd7 TT |
4114 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4115 | ||
4116 | * ravenscar-thread.c (ravenscar_thread_target::wait): Call | |
4117 | update_inferior_ptid before update_thread_list. | |
4118 | (temporarily_change_regcache_ptid): New class. | |
4119 | (ravenscar_thread_target::fetch_registers) | |
4120 | (ravenscar_thread_target::store_registers) | |
4121 | (ravenscar_thread_target::prepare_to_store): Use base thread when | |
4122 | forwarding operation. | |
4123 | ||
39e2018a TT |
4124 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4125 | ||
4126 | * ravenscar-thread.c (ravenscar_thread_target::resume): Handle | |
4127 | "is_pid" case. | |
4128 | ||
2080266b TT |
4129 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4130 | ||
4131 | * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread): | |
4132 | New methods. | |
4133 | (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map | |
4134 | first. | |
4135 | (ravenscar_thread_target::add_thread): Rename from | |
4136 | ravenscar_add_thread. | |
4137 | (ravenscar_thread_target::update_thread_list): Use a lambda. | |
4138 | (ravenscar_thread_target::xfer_partial): New method. | |
4139 | ||
78c02f21 TT |
4140 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4141 | ||
4142 | * ada-lang.h (ada_task_list_iterator_ftype): Now a | |
4143 | gdb::function_view. | |
4144 | (iterate_over_live_ada_tasks): Change type of argument. | |
4145 | * ada-tasks.c (iterate_over_live_ada_tasks): Change type | |
4146 | of argument. | |
4147 | ||
d5d833af TT |
4148 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4149 | ||
4150 | * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>: | |
4151 | Remove. | |
4152 | (ravenscar_thread_target::extra_thread_info): Remove. | |
4153 | (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result; | |
4154 | defer to target beneath for non-Ravenscar threads. | |
4155 | ||
a8ac85bb TT |
4156 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4157 | ||
4158 | * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu, | |
4159 | get_base_thread_from_ravenscar_task>: Now methods. | |
4160 | <m_cpu_map>: New member. | |
4161 | (ravenscar_thread_target::get_thread_base_cpu): Rename from | |
4162 | ravenscar_get_thread_base_cpu. Check m_cpu_map. | |
4163 | (ravenscar_thread_target::task_is_currently_active): Update. | |
4164 | (ravenscar_thread_target::get_base_thread_from_ravenscar_task): | |
4165 | Now a method. | |
4166 | (ravenscar_thread_target::add_active_thread): Put initial thread | |
4167 | into the m_cpu_map. | |
4168 | ||
550ab58d TT |
4169 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4170 | ||
4171 | * ravenscar-thread.c (ravenscar_thread_target::wait): Return | |
4172 | event_ptid. | |
4173 | ||
e9546579 TT |
4174 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4175 | ||
4176 | * ravenscar-thread.c (ravenscar_thread_target::wait): Check | |
4177 | runtime_initialized. | |
4178 | ||
3d4470e5 TT |
4179 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
4180 | ||
4181 | * ravenscar-thread.c (ravenscar_thread_target): Don't call | |
4182 | add_active_thread. | |
4183 | (ravenscar_thread_target::add_active_thread): Now public. | |
4184 | (ravenscar_inferior_created): Call add_active_thread after pushing | |
4185 | the target. | |
4186 | ||
888bdb2b SM |
4187 | 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca> |
4188 | ||
4189 | * regcache.c (ptid_regcache_map): New type. | |
4190 | (target_ptid_regcache_map): New type. | |
4191 | (regcaches): Change type to target_ptid_regcache_map. | |
4192 | (get_thread_arch_aspace_regcache): Update to regcaches' new | |
4193 | type. | |
4194 | (regcache_thread_ptid_changed): Likewise. | |
4195 | (registers_changed_ptid): Likewise. | |
4196 | (regcaches_size): Likewise. | |
4197 | (regcaches_test): Update. | |
4198 | (regcache_thread_ptid_changed): Update. | |
4199 | * regcache.h (regcache_up): New type. | |
4200 | * gdbsupport/ptid.h (hash_ptid): New struct. | |
4201 | ||
b161a60d SM |
4202 | 2020-08-07 Simon Marchi <simon.marchi@efficios.com> |
4203 | ||
4204 | * observable.h (thread_ptid_changed): Add parameter | |
4205 | `process_stratum_target *`. | |
4206 | * infrun.c (infrun_thread_ptid_changed): Add parameter | |
4207 | `process_stratum_target *` and use it. | |
4208 | (selftests): New namespace. | |
4209 | (infrun_thread_ptid_changed): New function. | |
4210 | (_initialize_infrun): Register selftest. | |
4211 | * regcache.c (regcache_thread_ptid_changed): Add parameter | |
4212 | `process_stratum_target *` and use it. | |
4213 | (regcache_thread_ptid_changed): New function. | |
4214 | (_initialize_regcache): Register selftest. | |
4215 | * thread.c (thread_change_ptid): Pass target to | |
4216 | thread_ptid_changed observable. | |
4217 | ||
d2854d8d CT |
4218 | 2020-08-06 Caroline Tice <cmtice@google.com> |
4219 | ||
fe4c3d43 SM |
4220 | * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field. |
4221 | (struct dwp_sections): Update field comments. Add loclists and | |
4222 | rnglists fields. | |
4223 | (struct virtual_v2_dwo_sections): Rename struct to | |
4224 | 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add | |
4225 | size & offset fields for loclists and rnglists. | |
4226 | (struct dwp_hash_table): Add a 'v5' struct field to the union section. | |
4227 | (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for | |
4228 | skipping dummy type units. | |
4229 | (create_dwp_hash_table): Update the large comment above the function to | |
4230 | discuss Version 5 DWP files as well, with references. Update all the | |
4231 | version checks in the function to check for version 5 as well. Add new | |
4232 | section at the end to create dwp hash table for version 5. | |
4233 | (create_dwp_v2_section): Rename function to | |
4234 | 'create_dwp_v2_or_v5_section'. Update function comment appropriately. | |
4235 | Add V5 to error message text. | |
4236 | (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section | |
4237 | into calls to create_dwp_v2_or_v5_section. | |
4238 | (create_dwo_unit_in_dwp_v5): New function. | |
4239 | (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly | |
4240 | check for version2; add else clause to handle version 5. | |
4241 | (open_and_init_dwo_file): Add code to check dwarf version & only call | |
4242 | create_debug_types_hash_table (with sections.types) if version is not 5; | |
4243 | else call create_debug_type_hash_table, with sections.info. | |
4244 | (dwarf2_locate_v2_dwp_sections): Update function comment to mention | |
4245 | version 5. | |
4246 | (dwarf2_locate_v5_dwp_sections): New function. | |
4247 | (open_and_init_dwp_file): Add else-if clause for version 5 to call | |
4248 | bfd_map_over_sections with dwarf2_locate_v5_dwp_sections. | |
d2854d8d | 4249 | |
159ed7d9 SM |
4250 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> |
4251 | ||
4252 | * regcache.h (class regcache): Remove friend | |
4253 | registers_changed_ptid. | |
4254 | <regcache_thread_ptid_changed>: Remove. | |
4255 | <regcaches>: Remove. | |
4256 | * regcache.c (regcache::regcaches): Rename to... | |
4257 | (regcaches): ... this. Make static. | |
4258 | (get_thread_arch_aspace_regcache): Update. | |
4259 | (regcache::regcache_thread_ptid_changed): Rename to... | |
4260 | (regcache_thread_ptid_changed): ... this. Update. | |
4261 | (class regcache_access): Remove. | |
4262 | (regcaches_test): Update. | |
4263 | (_initialize_regcache): Update. | |
4264 | * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include | |
4265 | <forward_list>. | |
4266 | ||
174981ae SM |
4267 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> |
4268 | ||
4269 | * regcache.h (class regcache) <current_regcache>: Rename to... | |
4270 | <regcaches>: ... this. Move doc here. | |
4271 | * regcache.c (regcache::current_regcache) Rename to... | |
4272 | (regcache::regcaches): ... this. Move doc to header. | |
4273 | (get_thread_arch_aspace_regcache): Update. | |
4274 | (regcache::regcache_thread_ptid_changed): Update. | |
4275 | (registers_changed_ptid): Update. | |
4276 | (class regcache_access) <current_regcache_size>: Rename to... | |
4277 | <regcaches_size>: ... this. | |
4278 | (current_regcache_test): Rename to... | |
4279 | (regcaches_test): ... this. | |
4280 | (_initialize_regcache): Update. | |
4281 | ||
ed908db6 VC |
4282 | 2020-08-06 Victor Collod <vcollod@nvidia.com> |
4283 | ||
4284 | * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment. | |
4285 | ||
b5582ab7 KB |
4286 | 2020-08-05 Kevin Buettner <kevinb@redhat.com> |
4287 | ||
4288 | * corelow.c (core_target::build_file_mappings): Don't output | |
4289 | null pathname in warning. | |
4290 | ||
ea946b86 SM |
4291 | 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca> |
4292 | ||
4293 | * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp, | |
4294 | gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp, | |
4295 | gdb.dwarf2/dw2-single-line-discriminators.exp, | |
4296 | dw2-undefined-ret-addr.exp: Pass nopie to compilation options. | |
4297 | ||
57d02173 TT |
4298 | 2020-08-05 Tom Tromey <tromey@adacore.com> |
4299 | ||
4300 | PR rust/26197: | |
4301 | * dwarf2/read.c (alloc_rust_variant): Handle univariant case. | |
4302 | (quirk_rust_enum): Call alloc_rust_variant for univariant case. | |
4303 | Fix off-by-one and type size errors in ordinary case. | |
4304 | ||
5555c86d TV |
4305 | 2020-08-05 Tom de Vries <tdevries@suse.de> |
4306 | ||
4307 | * gdbtypes.c (type_not_allocated, type_not_associated): Use | |
4308 | "prop->const_val () == 0" instead of "prop->const_val () != 0". | |
4309 | ||
97916bfe SM |
4310 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> |
4311 | ||
4312 | * frame.h (frame_id_p): Return bool. | |
4313 | (frame_id_artificial_p): Return bool. | |
4314 | (frame_id_eq): Return bool. | |
4315 | (has_stack_frames): Return bool. | |
4316 | (get_selected_frame): Fix typo in comment. | |
4317 | (get_frame_pc_if_available): Return bool. | |
4318 | (get_frame_address_in_block_if_available): Return bool. | |
4319 | (get_frame_func_if_available): Return bool. | |
4320 | (read_frame_register_unsigned): Return bool. | |
4321 | (get_frame_register_bytes): Return bool. | |
4322 | (safe_frame_unwind_memory): Return bool. | |
4323 | (deprecated_frame_register_read): Return bool. | |
4324 | (frame_unwinder_is): Return bool. | |
4325 | * frame.c (struct frame_info) <prev_arch::p>: Change type to | |
4326 | bool. | |
4327 | <this_id::p>: Likewise. | |
4328 | <prev_p>: Likewise. | |
4329 | (frame_stash_add): Return bool. | |
4330 | (get_frame_id): Use bool. | |
4331 | (frame_id_build_special) Use bool. | |
4332 | (frame_id_build_unavailable_stack): Use bool. | |
4333 | (frame_id_build): Use bool. | |
4334 | (frame_id_p): Return bool, use true/false instead of 1/0. | |
4335 | (frame_id_artificial_p): Likewise. | |
4336 | (frame_id_eq): Likewise. | |
4337 | (frame_id_inner): Likewise. | |
4338 | (get_frame_func_if_available): Likewise. | |
4339 | (read_frame_register_unsigned): Likewise. | |
4340 | (deprecated_frame_register_read): Likewise. | |
4341 | (get_frame_register_bytes): Likewise. | |
4342 | (has_stack_frames): Likewise. | |
4343 | (inside_main_func): Likewise. | |
4344 | (inside_entry_func): Likewise. | |
4345 | (get_frame_pc_if_available): Likewise. | |
4346 | (get_frame_address_in_block_if_available): Likewise. | |
4347 | (frame_unwinder_is): Likewise. | |
4348 | (safe_frame_unwind_memory): Likewise. | |
4349 | (frame_unwind_arch): Likewise. | |
4350 | ||
fedfee88 SM |
4351 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> |
4352 | ||
4353 | * frame.c (frame_info) <prev_func> <p>: Rename to status, change | |
4354 | type to cached_copy_status. | |
4355 | (fprintf_frame): Adjust. | |
4356 | (get_frame_func_if_available): Adjust. | |
4357 | (frame_cleanup_after_sniffer): Adjust. | |
4358 | ||
6cfa9b59 MW |
4359 | 2020-08-04 Mark Wielaard <mark@klomp.org> |
4360 | ||
4361 | * MAINTAINERS (Write After Approval): Update email address. | |
4362 | ||
66d6346b SM |
4363 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
4364 | ||
4365 | * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with | |
4366 | dynamic_prop::const_val. | |
4367 | ||
8a6d5e35 SM |
4368 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
4369 | ||
4370 | * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with | |
4371 | dynamic_prop::kind. | |
4372 | ||
51d6067d SM |
4373 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
4374 | ||
4375 | * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove. | |
4376 | ||
b26e2ae7 JM |
4377 | 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com> |
4378 | ||
4379 | * configure.tgt: Set gdb_sim for bpf-*-* targets. | |
4380 | ||
39791af2 JM |
4381 | 2020-08-04 Weimin Pan <weimin.pan@oracle.com> |
4382 | Jose E. Marchesi <jose.marchesi@oracle.com> | |
4383 | ||
4384 | * configure.tgt: Add entry for bpf-*-*. | |
4385 | * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o | |
4386 | (ALLDEPFILES): Add bpf-tdep.c. | |
4387 | * bpf-tdep.c: New file. | |
4388 | * MAINTAINERS: Add bpf target and maintainer. | |
4389 | * NEWS: Mention the support for the new target. | |
4390 | ||
521894aa TV |
4391 | 2020-08-04 Tom de Vries <tdevries@suse.de> |
4392 | ||
4393 | PR symtab/23270 | |
4394 | * dwarf2/read.c (find_partial_die): Change internal error into Dwarf | |
4395 | Error. | |
4396 | ||
5d6356e9 JB |
4397 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> |
4398 | ||
4399 | * syscalls/freebsd.xml: Regenerate. | |
4400 | ||
0cf82b81 JB |
4401 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> |
4402 | ||
4403 | * syscalls/update-freebsd.sh: Fix usage and year range. | |
4404 | ||
8f34b746 TV |
4405 | 2020-08-03 Tom de Vries <tdevries@suse.de> |
4406 | ||
4407 | PR symtab/26333 | |
4408 | * dwarf2/read.c (dwarf_decode_lines_1): Ignore | |
4409 | DW_LNE_lo_user/DW_LNE_hi_user range. | |
4410 | ||
5e500d33 SM |
4411 | 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca> |
4412 | ||
4413 | PR ada/26318 | |
4414 | * ada-lang.c (ada_modulus): Return 0 if property is not of const | |
4415 | kind. | |
4416 | ||
78319c15 TBA |
4417 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4418 | ||
4419 | * breakpoint.c (set_breakpoint_condition): Do minor refactoring. | |
4420 | ||
4c55e970 TBA |
4421 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4422 | ||
4423 | * breakpoint.c (set_breakpoint_condition): Update the condition | |
4424 | expressions after checking that the input condition string parses | |
4425 | successfully and does not contain junk at the end. | |
4426 | ||
1e620590 TBA |
4427 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4428 | ||
4429 | * breakpoint.c (set_breakpoint_condition): Update the | |
4430 | condition string after parsing the new condition successfully. | |
4431 | ||
c8693053 RO |
4432 | 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
4433 | ||
4434 | * proc-api.c (_STRUCTURED_PROC): Don't define. | |
4435 | * proc-events.c: Likewise. | |
4436 | * proc-flags.c: Likewise. | |
4437 | * proc-why.c: Likewise. | |
4438 | * procfs.c: Likewise. | |
4439 | ||
4440 | * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS. | |
4441 | * configure, config.in: Regenerate. | |
4442 | ||
5a99adb8 TV |
4443 | 2020-07-30 Tom de Vries <tdevries@suse.de> |
4444 | ||
4445 | PR build/26320 | |
4446 | * ui-style.h (struct ui_file_style::color): Wrap m_value and | |
4447 | m_red/m_green/m_blue in a union. | |
4448 | ||
8ba83e91 TV |
4449 | 2020-07-29 Tom de Vries <tdevries@suse.de> |
4450 | ||
4451 | PR tdep/26280 | |
4452 | * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized. | |
4453 | ||
f75a0693 AB |
4454 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
4455 | ||
4456 | PR symtab/26270: | |
4457 | * symtab.h (find_pc_partial_function_sym): Declare. | |
4458 | * cli/cli-cmds.c (disassemble_command): Use | |
4459 | find_pc_partial_function_sym. Check asm_demangle. | |
4460 | * blockframe.c (cache_pc_function_sym): New global. | |
4461 | (cache_pc_function_name): Remove. | |
4462 | (clear_pc_function_cache): Update. | |
4463 | (find_pc_partial_function_sym): New function, from | |
4464 | find_pc_partial_function. | |
4465 | (find_pc_partial_function): Rewrite using | |
4466 | find_pc_partial_function_sym. | |
4467 | ||
16f3242c TT |
4468 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
4469 | ||
4470 | * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble" | |
4471 | help. Add usage. | |
4472 | ||
4888741a TT |
4473 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
4474 | ||
4475 | * dwarf2/expr.c (dwarf_expr_context::execute_stack_op) | |
4476 | <DW_OP_GNU_variable_value>: Cast to address type. | |
4477 | ||
4d46f402 KR |
4478 | 2020-07-28 Kamil Rytarowski <n54@gmx.com> |
4479 | ||
4480 | * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration. | |
4481 | * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function. | |
4482 | * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data) | |
4483 | (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data) | |
4484 | (nbsd_get_siginfo_type): New. | |
4485 | (nbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
4486 | (_initialize_nbsd_tdep): New. | |
4487 | ||
d70f978b L |
4488 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> |
4489 | ||
4490 | PR binutils/26301 | |
4491 | * configure: Regenerated. | |
4492 | ||
377170fa L |
4493 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> |
4494 | ||
4495 | PR binutils/26301 | |
4496 | * configure: Regenerated. | |
4497 | ||
43d5901d AB |
4498 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> |
4499 | ||
4500 | * python/py-frame.c: Remove 'user-regs.h' include. | |
4501 | (frapy_read_register): Rewrite to make use of | |
4502 | gdbpy_parse_register_id. | |
4503 | * python/py-registers.c (gdbpy_parse_register_id): New function, | |
4504 | moved here from python/py-unwind.c. Updated the return type, and | |
4505 | also accepts register descriptor objects. | |
4506 | * python/py-unwind.c: Remove 'user-regs.h' include. | |
4507 | (pyuw_parse_register_id): Moved to python/py-registers.c. | |
4508 | (unwind_infopy_add_saved_register): Update to use | |
4509 | gdbpy_parse_register_id. | |
4510 | (pending_framepy_read_register): Likewise. | |
4511 | * python/python-internal.h (gdbpy_parse_register_id): Declare. | |
4512 | ||
14fa8fb3 AB |
4513 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> |
4514 | ||
4515 | * python/py-registers.c: Add 'user-regs.h' include. | |
4516 | (register_descriptor_iter_find): New function. | |
4517 | (register_descriptor_iterator_object_methods): New static global | |
4518 | methods array. | |
4519 | (register_descriptor_iterator_object_type): Add pointer to methods | |
4520 | array. | |
4521 | ||
ddce1758 JB |
4522 | 2020-07-27 John Baldwin <jhb@FreeBSD.org> |
4523 | ||
4524 | * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO | |
4525 | for all architectures on FreeBSD 11.3 and later. | |
4526 | ||
a4089f52 TT |
4527 | 2020-07-27 Tom Tromey <tromey@adacore.com> |
4528 | ||
4529 | * gcore.h (load_corefile): Don't declare. | |
4530 | ||
95420d30 TV |
4531 | 2020-07-27 Tom de Vries <tdevries@suse.de> |
4532 | ||
4533 | * configure.ac: Fix sys/sockets.h -> sys/socket.h typo. | |
4534 | * config.in: Regenerate. | |
4535 | * configure: Regenerate. | |
4536 | ||
05a6b8c2 EZ |
4537 | 2020-07-26 Eli Zaretskii <eliz@gnu.org> |
4538 | ||
4539 | * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and | |
4540 | ws2tcpip.h. When checking whether socklen_t type is defined, use | |
4541 | ws2tcpip.h if it is available and sys/socket.h isn't. | |
4542 | * configure: Regenerate. | |
4543 | * config.in: Regenerate. | |
4544 | ||
e79eb02f AB |
4545 | 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com> |
4546 | ||
4547 | PR fortran/23051 | |
4548 | PR fortran/26139 | |
4549 | * valops.c (value_ind): Pass address to | |
4550 | readjust_indirect_value_type. | |
4551 | * value.c (readjust_indirect_value_type): Make parameter | |
4552 | non-const, and add extra address parameter. Resolve original type | |
4553 | before using it. | |
4554 | * value.h (readjust_indirect_value_type): Update function | |
4555 | signature and comment. | |
4556 | ||
876518dd TV |
4557 | 2020-07-25 Tom de Vries <tdevries@suse.de> |
4558 | ||
4559 | PR symtab/26243 | |
4560 | * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line | |
4561 | entries. | |
4562 | ||
f6720b1c AM |
4563 | 2020-07-24 Aaron Merey <amerey@redhat.com> |
4564 | ||
4565 | * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS. | |
4566 | * configure: Rebuild. | |
4567 | ||
513487e1 KB |
4568 | 2020-07-23 Kevin Buettner <kevinb@redhat.com> |
4569 | ||
4570 | PR corefiles/26294 | |
4571 | * corelow.c (_initialize_corelow): Add period to help text | |
4572 | for "maintenance print core-file-backed-mappings". | |
4573 | ||
e7bc9db8 PA |
4574 | 2020-07-23 Pedro Alves <pedro@palves.net> |
4575 | ||
4576 | * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't | |
4577 | touch THIS_CACHE/THIS_FRAME if the frame cache was cleared | |
4578 | meanwhile. | |
4579 | * frame.c (frame_cache_generation, get_frame_cache_generation): | |
4580 | New. | |
4581 | (reinit_frame_cache): Increment FRAME_CACHE_GENERATION. | |
4582 | (get_prev_frame_if_no_cycle): On exception, don't touch | |
4583 | PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile. | |
4584 | * frame.h (get_frame_cache_generation): Declare. | |
4585 | ||
90fcc466 TV |
4586 | 2020-07-23 Tom de Vries <tdevries@suse.de> |
4587 | ||
4588 | PR tui/26282 | |
4589 | * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows): | |
4590 | New default constructor. | |
4591 | ||
78344df7 AB |
4592 | 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com> |
4593 | ||
4594 | * disasm.c (do_mixed_source_and_assembly_deprecated): Don't | |
4595 | exclude non-statement entries. | |
4596 | ||
b089853a KB |
4597 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
4598 | ||
4599 | * NEWS (New commands): Mention new command | |
4600 | "maintenance print core-file-backed-mappings". | |
4601 | ||
09c2f5d4 KB |
4602 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
4603 | ||
4604 | * corelow.c (gdbcmd.h): Include. | |
4605 | (core_target::info_proc_mappings): New method. | |
4606 | (get_current_core_target): New function. | |
4607 | (maintenance_print_core_file_backed_mappings): New function. | |
4608 | (_initialize_corelow): Add core-file-backed-mappings to | |
4609 | "maint print" commands. | |
4610 | ||
9c5ec5c2 | 4611 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
fe4c3d43 | 4612 | |
9c5ec5c2 KB |
4613 | * linux-tdep.c (dump_note_entry_p): New function. |
4614 | (linux_dump_mapping_p_ftype): New typedef. | |
4615 | (linux_find_memory_regions_full): Add new parameter, | |
4616 | should_dump_mapping_p. | |
4617 | (linux_find_memory_regions): Adjust call to | |
4618 | linux_find_memory_regions_full. | |
4619 | (linux_make_mappings_core_file_notes): Use dump_note_entry_p in | |
4620 | call to linux_find_memory_regions_full. | |
4621 | ||
db082f59 KB |
4622 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
4623 | ||
4624 | * corelow.c (solist.h, unordered_map): Include. | |
4625 | (class core_target): Add field m_core_file_mappings and | |
4626 | method build_file_mappings. | |
4627 | (core_target::core_target): Call build_file_mappings. | |
4628 | (core_target::~core_target): Free memory associated with | |
4629 | m_core_file_mappings. | |
4630 | (core_target::build_file_mappings): New method. | |
4631 | (core_target::xfer_partial): Use m_core_file_mappings | |
4632 | for memory transfers. | |
4633 | * linux-tdep.c (linux_read_core_file_mappings): New | |
4634 | function. | |
4635 | (linux_core_info_proc_mappings): Rewrite to use | |
4636 | linux_read_core_file_mappings. | |
4637 | (linux_init_abi): Register linux_read_core_file_mappings. | |
4638 | ||
7e183d27 KB |
4639 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
4640 | ||
4641 | * arch-utils.c (default_read_core_file_mappings): New function. | |
4642 | * arch-utils.c (default_read_core_file_mappings): Declare. | |
4643 | * gdbarch.sh (read_core_file_mappings): New gdbarch method. | |
4644 | * gdbarch.h, gdbarch.c: Regenerate. | |
4645 | ||
2735d421 KB |
4646 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
4647 | ||
4648 | PR corefiles/25631 | |
4649 | * corelow.c (core_target:xfer_partial): Revise | |
4650 | TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS | |
4651 | case after first checking the stratum beneath the core | |
4652 | target. | |
4653 | (has_all_memory): Return true. | |
4654 | * target.c (raw_memory_xfer_partial): Revise comment | |
4655 | regarding use of has_all_memory. | |
4656 | ||
e56cb451 KB |
4657 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
4658 | ||
4659 | * exec.h (section_table_xfer_memory): Revise declaration, | |
4660 | replacing section name parameter with an optional callback | |
4661 | predicate. | |
4662 | * exec.c (section_table_xfer_memory): Likewise. | |
4663 | * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers | |
4664 | of section_table_xfer_memory. | |
4665 | ||
32fa152e TT |
4666 | 2020-07-22 Tom Tromey <tromey@adacore.com> |
4667 | ||
4668 | * mi/mi-cmd-stack.c (list_args_or_locals): Use | |
4669 | lookup_symbol_search_name. | |
4670 | ||
a67a1c41 AB |
4671 | 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com> |
4672 | ||
4673 | * python/py-registers.c (gdbpy_register_object_data_init): Remove | |
4674 | redundant local variable. | |
4675 | (gdbpy_get_register_descriptor): Extract descriptor vector as a | |
4676 | reference, not pointer, update code accordingly. | |
4677 | ||
a7b4ff4f SM |
4678 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
4679 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
4680 | ||
4681 | * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field. | |
4682 | * jit.c (jit_breakpoint_re_set_internal): Use the | |
4683 | `skip_jit_symbol_lookup` field. | |
4684 | ||
2340e834 SM |
4685 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
4686 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
4687 | ||
4688 | * jit.c (jit_read_descriptor): Define the descriptor address once, | |
4689 | use twice. | |
4690 | (jit_breakpoint_deleted): Move the declaration of the loop variable | |
4691 | `iter` into the loop header. | |
4692 | (jit_breakpoint_re_set_internal): Move the declaration of the local | |
4693 | variable `objf_data` to the first point of definition. | |
4694 | (jit_event_handler): Move the declaration of local variables | |
4695 | `code_entry`, `entry_addr`, and `objf` to their first point of use. | |
4696 | Rename `objf` to `jited`. | |
4697 | ||
c1072906 SM |
4698 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
4699 | ||
4700 | * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>: | |
4701 | Remove. | |
4702 | * jit.c (get_jiter_objfile_data): Update. | |
4703 | ||
c8474dc3 TBA |
4704 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4705 | Simon Marchi <simon.marchi@polymtl.ca> | |
4706 | ||
4707 | * jit.c (struct jit_program_space_data): Remove. | |
4708 | (jit_program_space_key): Remove. | |
4709 | (jiter_objfile_data::~jiter_objfile_data): Remove program space | |
4710 | stuff. | |
4711 | (get_jit_program_space_data): Remove. | |
4712 | (jit_breakpoint_deleted): Iterate on all of the program space's | |
4713 | objfiles. | |
4714 | (jit_inferior_init): Likewise. | |
4715 | (jit_breakpoint_re_set_internal): Likewise. Also change return | |
4716 | type to void. | |
4717 | (jit_breakpoint_re_set): Pass current_program_space to | |
4718 | jit_breakpoint_re_set_internal. | |
4719 | ||
77208eb7 SM |
4720 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
4721 | ||
4722 | * jit.h (struct jiter_objfile_data) <cached_code_address, | |
4723 | jit_breakpoint>: Move to here from ... | |
4724 | * jit.c (jit_program_space_data): ... here. | |
4725 | (jiter_objfile_data::~jiter_objfile_data): Update. | |
4726 | (jit_breakpoint_deleted): Update. | |
4727 | (jit_breakpoint_re_set_internal): Update. | |
4728 | ||
8c1c720f SM |
4729 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
4730 | ||
4731 | * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some | |
4732 | checks. | |
4733 | (jit_read_descriptor): Remove NULL check. | |
4734 | (jit_event_handler): Add an assertion. | |
4735 | ||
0e74a041 SM |
4736 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
4737 | ||
4738 | * jit.h (struct jit_objfile_data): Split into... | |
4739 | (struct jiter_objfile_data): ... this ... | |
4740 | (struct jited_objfile_data): ... and this. | |
4741 | * objfiles.h (struct objfile) <jit_data>: Remove. | |
4742 | <jiter_data, jited_data>: New fields. | |
4743 | * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ... | |
4744 | (jiter_objfile_data::~jiter_objfile_data): ... this. | |
4745 | (get_jit_objfile_data): Rename to ... | |
4746 | (get_jiter_objfile_data): ... this. | |
4747 | (add_objfile_entry): Update. | |
4748 | (jit_read_descriptor): Use get_jiter_objfile_data. | |
4749 | (jit_find_objf_with_entry_addr): Use objfile's jited_data field. | |
4750 | (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data. | |
4751 | (jit_inferior_exit_hook): Use objfile's jited_data field. | |
4752 | ||
238b5c9f SM |
4753 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
4754 | ||
4755 | * jit.h: Forward-declare `struct minimal_symbol`. | |
4756 | (struct jit_objfile_data): Migrate to here from jit.c; also add a | |
4757 | constructor, destructor, and an objfile* field. | |
4758 | * jit.c (jit_objfile_data): Remove. | |
4759 | (struct jit_objfile_data): Migrate from here to jit.h. | |
4760 | (jit_objfile_data::~jit_objfile_data): New destructor | |
4761 | implementation with code moved from free_objfile_data. | |
4762 | (free_objfile_data): Delete. | |
4763 | (get_jit_objfile_data): Update to use the jit_data field of objfile. | |
4764 | (jit_find_objf_with_entry_addr): Ditto. | |
4765 | (jit_inferior_exit_hook): Ditto. | |
4766 | (_initialize_jit): Remove the call to | |
4767 | register_objfile_data_with_cleanup. | |
4768 | * objfiles.h (struct objfile) <jit_data>: New field. | |
4769 | ||
fe053b9e TBA |
4770 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4771 | ||
4772 | * jit.h: Forward-declare `struct objfile`. | |
4773 | (jit_event_handler): Add a second parameter, the JITer objfile. | |
4774 | * jit.c (jit_read_descriptor): Change the signature to take the | |
4775 | JITer objfile as an argument instead of the jit_program_space_data. | |
4776 | (jit_inferior_init): Update the call to jit_read_descriptor. | |
4777 | (jit_event_handler): Use the new JITer objfile argument when calling | |
4778 | jit_read_descriptor. | |
4779 | * breakpoint.c (handle_jit_event): Update the call to | |
4780 | jit_event_handler to pass the JITer objfile. | |
4781 | ||
4cec0c66 JB |
4782 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
4783 | ||
4784 | * gdbarch.c: Regenerate. | |
4785 | * gdbarch.h: Regenerate. | |
4786 | * gdbarch.sh (handle_segmentation_fault): Remove method. | |
4787 | * infrun.c (handle_segmentation_fault): Remove. | |
4788 | (print_signal_received_reason): Remove call to | |
4789 | handle_segmentation_fault. | |
4790 | ||
0e42f66a JB |
4791 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
4792 | ||
4793 | * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault): | |
4794 | Rename to sparc64_linux_report_signal_info and add siggnal | |
4795 | argument. | |
4796 | (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info | |
4797 | instead of sparc64_linux_handle_segmentation_fault. | |
4798 | ||
77bdfeb2 JB |
4799 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
4800 | ||
4801 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use | |
4802 | i386_linux_report_signal_info instead of | |
4803 | i386_linux_handle_segmentation_fault. | |
4804 | * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename | |
4805 | to i386_linux_report_signal_info and add siggnal argument. | |
4806 | (i386_linux_init_abi): Use i386_linux_report_signal_info instead | |
4807 | of i386_linux_handle_segmentation_fault. | |
4808 | * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename | |
4809 | to i386_linux_report_signal_info and add siggnal argument. | |
4810 | ||
ad97bfc5 JB |
4811 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
4812 | ||
4813 | * corelow.c (core_target_open): Invoke gdbarch report_signal_info | |
4814 | hook if present. | |
4815 | ||
272bb05c JB |
4816 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
4817 | ||
4818 | * gdbarch.c: Regenerate. | |
4819 | * gdbarch.h: Regenerate. | |
4820 | * gdbarch.sh (report_signal_info): New method. | |
4821 | * infrun.c (print_signal_received_reason): Invoke gdbarch | |
4822 | report_signal_info hook if present. | |
4823 | ||
baf8791e AB |
4824 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> |
4825 | ||
4826 | * python/py-registers.c : Add 'unordered_map' include. | |
4827 | (gdbpy_new_reggroup): Renamed to... | |
4828 | (gdbpy_get_reggroup): ...this. Update to only create register | |
4829 | group descriptors when needed. | |
4830 | (gdbpy_reggroup_iter_next): Update. | |
4831 | ||
f7306dac AB |
4832 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> |
4833 | ||
4834 | * python/py-registers.c (gdbpy_register_object_data): New static | |
4835 | global. | |
4836 | (gdbpy_register_object_data_init): New function. | |
4837 | (gdbpy_new_register_descriptor): Renamed to... | |
4838 | (gdbpy_get_register_descriptor): ...this, and update to reuse | |
4839 | existing register descriptors where possible. | |
4840 | (gdbpy_register_descriptor_iter_next): Update. | |
4841 | (gdbpy_initialize_registers): Register new gdbarch data. | |
4842 | ||
05c309a8 SM |
4843 | 2020-07-21 Simon Marchi <simon.marchi@efficios.com> |
4844 | ||
4845 | * linux-nat.c (stopped_pids): Make static. | |
4846 | ||
d1fd641e SM |
4847 | 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca> |
4848 | ||
4849 | PR ada/26235 | |
4850 | * gdbtypes.c (ada_discrete_type_low_bound, | |
4851 | ada_discrete_type_high_bound): Handle undefined bounds. | |
4852 | ||
1de14d77 KR |
4853 | 2020-07-21 Kamil Rytarowski <n54@gmx.com> |
4854 | ||
4855 | * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New | |
4856 | declaration. | |
4857 | * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New | |
4858 | function. | |
4859 | ||
ed810cc7 JB |
4860 | 2020-07-20 John Baldwin <jhb@FreeBSD.org> |
4861 | ||
4862 | * fbsd-tdep.c (fbsd_skip_solib_resolver): New function. | |
4863 | (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method. | |
4864 | * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype. | |
4865 | * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function. | |
4866 | (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver" | |
4867 | method. | |
4868 | ||
ae5369e7 LC |
4869 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> |
4870 | ||
4871 | * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t' | |
4872 | and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax', | |
4873 | which are deprecated in Guile 3.0. | |
4874 | * configure.ac (try_guile_versions): Add "guile-3.0". | |
4875 | * configure (try_guile_versions): Regenerate. | |
4876 | * NEWS: Update entry. | |
4877 | ||
68cf161c LC |
4878 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> |
4879 | Doug Evans <dje@google.com> | |
4880 | ||
4881 | PR gdb/21104 | |
4882 | * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro. | |
4883 | (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if | |
4884 | USING_GUILE_BEFORE_2_2. | |
4885 | (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]: | |
4886 | Change type to 'scm_t_port_type *'. | |
4887 | (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable. | |
4888 | (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream' | |
4889 | parameter and honor it. Update callers. | |
4890 | (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function. | |
4891 | (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New | |
4892 | functions. | |
4893 | (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if | |
4894 | USING_GUILE_BEFORE_2_2. | |
4895 | (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use | |
4896 | 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'. | |
4897 | (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function. | |
4898 | (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP' | |
4899 | and 'SCM_PORT_TYPE'. | |
4900 | (gdbscm_memory_port_end_input, gdbscm_memory_port_seek) | |
4901 | (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2. | |
4902 | (gdbscm_memory_port_read, gdbscm_memory_port_write) | |
4903 | (gdbscm_memory_port_seek, gdbscm_memory_port_close) | |
4904 | [!USING_GUILE_BEFORE_2_2]: New functions. | |
4905 | (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'. | |
4906 | (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use | |
4907 | 'gdbscm_memory_port_read'. | |
4908 | Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and | |
4909 | 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2. | |
4910 | (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New | |
4911 | function. | |
4912 | (ioscm_init_memory_port): Remove. | |
4913 | (ioscm_init_memory_port_stream): New function | |
4914 | (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New | |
4915 | function. | |
4916 | (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
4917 | Return scm_from_uint (0). | |
4918 | (gdbscm_set_memory_port_read_buffer_size_x) | |
4919 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
4920 | (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
4921 | Return scm_from_uint (0). | |
4922 | (gdbscm_set_memory_port_write_buffer_size_x) | |
4923 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
4924 | * configure.ac (try_guile_versions): Add "guile-2.2". | |
4925 | * configure: Regenerate. | |
4926 | * NEWS: Add entry. | |
4927 | ||
aee91db3 TT |
4928 | 2020-07-18 Tom Tromey <tom@tromey.com> |
4929 | ||
4930 | * linux-nat.c (linux_multi_process): Remove. | |
4931 | (linux_nat_target::supports_multi_process): Return true. | |
4932 | ||
0e267416 AB |
4933 | 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com> |
4934 | ||
4935 | * arch/riscv.c (riscv_tdesc_cache): Change map type. | |
4936 | (riscv_lookup_target_description): Return pointer out of | |
4937 | unique_ptr. | |
4938 | * target-descriptions.c (allocate_target_description): Add | |
4939 | comment. | |
4940 | (target_desc_deleter::operator()): Likewise. | |
4941 | * target-descriptions.h (struct target_desc_deleter): Moved to | |
4942 | gdbsupport/tdesc.h. | |
4943 | (target_desc_up): Likewise. | |
4944 | ||
f80c8ec4 TT |
4945 | 2020-07-17 Tom Tromey <tromey@adacore.com> |
4946 | ||
4947 | * linux-nat.c (linux_nat_target::supports_non_stop) | |
4948 | (linux_nat_target::always_non_stop_p): Use "true". | |
4949 | (linux_nat_target::supports_disable_randomization): Use "true" and | |
4950 | "false". | |
4951 | ||
d0ce17d8 CT |
4952 | 2020-07-16 Caroline Tice <cmtice@google.com> |
4953 | ||
4954 | * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition. | |
4955 | (RNGLIST_HEADER_SIZE64): New constant definition. | |
4956 | (struct dwop_section_names): Add rnglists_dwo. | |
4957 | (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo. | |
4958 | (struct loclist_header): Rename to 'loclists_rnglists_header'. | |
4959 | (struct dwo_sections): Add rnglists field. | |
4960 | (read_attribut_reprocess): Add tag parameter. | |
4961 | (dwarf2_ranges_read): Add tag parameter & remove forward function decl. | |
4962 | (cu_debug_rnglists_section): New function (decl & definition). | |
4963 | (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section. | |
4964 | (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of | |
4965 | die whose range is being checked; get rnglist section from | |
4966 | cu_debug_rnglists_section, to get from either objfile or dwo file as | |
4967 | appropriate. Add cases for DW_RLE_base_addressx, | |
4968 | DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add | |
4969 | the base address to DW_RLE_offset_pairs (not to all ranges), moving | |
4970 | test inside if-condition and updating complaint message. | |
4971 | (dwarf2_ranges_process): Add dwarf tag parameter and pass it to | |
4972 | dwarf2_rnglists_process. | |
4973 | (dwarf2_ranges_read): Add dwarf tag parameter and pass it to | |
4974 | dwarf2_ranges_process. | |
4975 | (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting | |
4976 | need_ranges_base and update comment appropriately. Also pass die tag | |
4977 | to dwarf2_ranges_read. | |
4978 | (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting | |
4979 | need_ranges_base and update comment appropriately. Also pass die tag | |
4980 | to dwarf2_ranges_process. | |
4981 | (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to | |
4982 | cu->ranges_base. Also pass die tag to read_attribute_reprocess. | |
4983 | (partial_die_info::read): Check for DW_FORM_rnglistx when setting | |
4984 | need_ranges_base and update comment appropriately. Also pass die tag | |
4985 | to read_attribute_reprocess and dwarf2_ranges_read. | |
4986 | (read_loclist_header): Rename function to read_loclists_rnglists_header, | |
4987 | and update function comment appropriately. | |
4988 | (read_loclist_index): Call read_loclists_rnglists_header instead of | |
4989 | read_loclist_header. | |
4990 | (read_rnglist_index): New function. | |
4991 | (read_attribute_reprocess): Add tag parameter. Add code for | |
4992 | DW_FORM_rnglistx, passing tag to read_rnglist_index. | |
4993 | (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess. | |
4994 | ||
3dcc261c AB |
4995 | 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com> |
4996 | ||
4997 | * f-typeprint.c (f_type_print_base): Allow for dynamic types not | |
4998 | being resolved. | |
4999 | ||
ccb9eba6 AB |
5000 | 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com> |
5001 | ||
5002 | * arch-utils.c (show_architecture): Update formatting of messages. | |
5003 | ||
cf88be68 SM |
5004 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
5005 | ||
5006 | * gdbtypes.h (struct type) <bounds>: Handle array and string | |
5007 | types. | |
5008 | * ada-lang.c (assign_aggregate): Use type::bounds on | |
5009 | array/string type. | |
5010 | * c-typeprint.c (c_type_print_varspec_suffix): Likewise. | |
5011 | * c-varobj.c (c_number_of_children): Likewise. | |
5012 | (c_describe_child): Likewise. | |
5013 | * eval.c (evaluate_subexp_for_sizeof): Likewise. | |
5014 | * f-typeprint.c (f_type_print_varspec_suffix): Likewise. | |
5015 | (f_type_print_base): Likewise. | |
5016 | * f-valprint.c (f77_array_offset_tbl): Likewise. | |
5017 | (f77_get_upperbound): Likewise. | |
5018 | (f77_print_array_1): Likewise. | |
5019 | * guile/scm-type.c (gdbscm_type_range): Likewise. | |
5020 | * m2-typeprint.c (m2_array): Likewise. | |
5021 | (m2_is_long_set_of_type): Likewise. | |
5022 | * m2-valprint.c (get_long_set_bounds): Likewise. | |
5023 | * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise. | |
5024 | * python/py-type.c (typy_range): Likewise. | |
5025 | * rust-lang.c (rust_internal_print_type): Likewise. | |
5026 | * type-stack.c (type_stack::follow_types): Likewise. | |
5027 | * valarith.c (value_subscripted_rvalue): Likewise. | |
5028 | * valops.c (value_cast): Likewise. | |
5029 | ||
509971ae SM |
5030 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
5031 | ||
5032 | * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all | |
5033 | callers to use the equivalent accessor methods. | |
5034 | ||
107406b7 SM |
5035 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
5036 | ||
5037 | * gdbtypes.h (struct range_bounds) <bit_stride>: New method. | |
5038 | (struct type) <bit_stride>: New method. | |
5039 | (TYPE_BIT_STRIDE): Remove. | |
5040 | * gdbtypes.c (update_static_array_size): Use type::bit_stride. | |
5041 | ||
bb789949 SM |
5042 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
5043 | ||
5044 | * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE, | |
5045 | TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all | |
5046 | callers to use the equivalent accessor methods instead. | |
5047 | ||
39498edb SM |
5048 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
5049 | ||
5050 | * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, | |
5051 | TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all | |
5052 | callers to use the equivalent accessor methods instead. | |
5053 | ||
3b606f38 SM |
5054 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
5055 | ||
5056 | * gdbtypes.h (TYPE_LOW_BOUND_KIND, | |
5057 | TYPE_HIGH_BOUND_KIND): Remove. Update all callers | |
5058 | to use dynamic_prop::kind. | |
5059 | ||
064d9cb9 SM |
5060 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
5061 | ||
5062 | * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED, | |
5063 | TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers | |
5064 | to get the bound property's kind and check against | |
5065 | PROP_UNDEFINED. | |
5066 | ||
5537ddd0 SM |
5067 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
5068 | ||
5069 | * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update | |
5070 | all callers to use type::range_bounds followed by | |
5071 | dynamic_prop::{low,high}. | |
5072 | ||
8c2e4e06 SM |
5073 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
5074 | ||
5075 | * gdbtypes.h (struct dynamic_prop) <kind, set_undefined, | |
5076 | const_val, set_const_val, baton, set_locexpr, set_loclist, | |
5077 | set_addr_offset, variant_parts, set_variant_parts, | |
5078 | original_type, set_original_type>: New methods. | |
5079 | <kind>: Rename to... | |
5080 | <m_kind>: ... this. Update all users to use the new methods | |
5081 | instead. | |
5082 | <data>: Rename to... | |
5083 | <m_data>: ... this. Update all users to use the new methods | |
5084 | instead. | |
5085 | ||
7c6f2712 SM |
5086 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
5087 | ||
5088 | * gdbtypes.c (get_discrete_bounds): Return failure if | |
5089 | the range type's bounds are not both defined and constant | |
5090 | values. | |
5091 | (get_array_bounds): Update comment. Remove undefined bound check. | |
5092 | ||
599088e3 SM |
5093 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
5094 | ||
5095 | * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use | |
5096 | the type::bounds method directly. | |
5097 | ||
c4dfcb36 SM |
5098 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
5099 | ||
5100 | * gdbtypes.h (struct type) <bounds, set_bounds>: New methods. | |
5101 | (TYPE_RANGE_DATA): Use type::bounds. Change all uses that | |
5102 | are used to set the range type's bounds to use set_bounds. | |
5103 | ||
0a278aa7 PW |
5104 | 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5105 | ||
5106 | * exec.c (_initialize_exec): Update exec-file-mismatch help. | |
5107 | ||
cce20f10 PA |
5108 | 2020-07-10 Pedro Alves <pedro@palves.net> |
5109 | ||
5110 | * gdbthread.h (inferior_ref): Define. | |
5111 | (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref. | |
5112 | (scoped_restore_current_thread) <m_inf>: Now an inferior_ref. | |
5113 | * thread.c | |
5114 | (scoped_restore_current_thread::restore): | |
5115 | Adjust to gdb::ref_ptr. | |
5116 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
5117 | Remove manual decref handling. | |
5118 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
5119 | Adjust to use | |
5120 | inferior_ref::new_reference/thread_info_ref::new_reference. | |
5121 | Incref the thread before calling get_frame_id instead of after. | |
5122 | Let TARGET_CLOSE_ERROR propagate. | |
5123 | ||
6d7aa592 PA |
5124 | 2020-07-10 Pedro Alves <pedro@palves.net> |
5125 | ||
5126 | * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow | |
5127 | NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR / | |
5128 | NOT_AVAILABLE_ERROR. | |
5129 | * value.c (value_optimized_out): Only swallow MEMORY_ERROR / | |
5130 | OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR. | |
5131 | ||
b3e3a4c1 SM |
5132 | 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca> |
5133 | Pedro Alves <pedro@palves.net> | |
5134 | ||
5135 | PR gdb/26199 | |
5136 | * infrun.c (threads_are_resumed_pending_p): Delete. | |
5137 | (do_target_wait): Remove threads_are_executing and | |
5138 | threads_are_resumed_pending_p checks from the inferior_matches | |
5139 | lambda. Update comments. | |
5140 | ||
d6cc5d98 PA |
5141 | 2020-07-10 Pedro Alves <pedro@palves.net> |
5142 | ||
5143 | PR gdb/26199 | |
5144 | * infrun.c (handle_no_resumed): Transfer terminal to inferior with | |
5145 | executing threads. | |
5146 | ||
7d3badc6 PA |
5147 | 2020-07-10 Pedro Alves <pedro@palves.net> |
5148 | ||
5149 | PR gdb/26199 | |
5150 | * infrun.c (handle_no_resumed): Handle multiple targets. | |
5151 | ||
42bd97a6 PA |
5152 | 2020-07-10 Pedro Alves <pedro@palves.net> |
5153 | ||
5154 | PR gdb/26199 | |
5155 | * infrun.c (prepare_to_wait): Check target_can_async_p instead of | |
5156 | target_is_async_p. | |
5157 | ||
43667cc6 PA |
5158 | 2020-07-10 Pedro Alves <pedro@palves.net> |
5159 | ||
5160 | PR gdb/26199 | |
5161 | * target.c (target_pass_ctrlc): Look at the inferior's non-exited | |
5162 | threads, not all threads. | |
5163 | ||
96118d11 PA |
5164 | 2020-07-10 Pedro Alves <pedro@palves.net> |
5165 | ||
5166 | PR gdb/26199 | |
5167 | * remote.c (remote_target::open_1): Pass remote target pointer as | |
5168 | data to create_async_event_handler. | |
5169 | (remote_async_inferior_event_handler): Mark async event handler | |
5170 | before returning if the remote target still has either pending | |
5171 | events or unacknowledged notifications. | |
5172 | ||
54904d81 JB |
5173 | 2020-07-10 John Baldwin <jhb@FreeBSD.org> |
5174 | ||
5175 | * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New | |
5176 | declaration. | |
5177 | * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New | |
5178 | function. | |
5179 | ||
f37e5866 JB |
5180 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
5181 | ||
5182 | * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against | |
5183 | inferior_ptid. | |
5184 | ||
fc238d4a JB |
5185 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
5186 | ||
5187 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC, | |
5188 | AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV, | |
5189 | AT_FREEBSD_PS_STRINGS. | |
5190 | ||
6e2469ff HD |
5191 | 2020-07-08 Hannes Domani <ssbssa@yahoo.de> |
5192 | ||
5193 | * auto-load.c (auto_load_objfile_script_1): Convert drive part | |
5194 | of debugfile path on Windows. | |
5195 | ||
d1076c41 JB |
5196 | 2020-07-08 John Baldwin <jhb@FreeBSD.org> |
5197 | ||
5198 | * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd' | |
5199 | argument to 'data'. | |
5200 | ||
15f3b077 TT |
5201 | 2020-07-08 Tom Tromey <tromey@adacore.com> |
5202 | ||
5203 | * ada-lang.c (ada_exception_message_1): Use read_memory. | |
5204 | ||
9fc501fd AB |
5205 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5206 | ||
5207 | PR python/22748 | |
5208 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove | |
5209 | special handling for inline frames. | |
5210 | * findvar.c (value_of_register_lazy): Skip inline frames when | |
5211 | creating lazy register values. | |
5212 | * frame.c (frame_id_computed_p): Delete definition. | |
5213 | * frame.h (frame_id_computed_p): Delete declaration. | |
5214 | ||
64cb3757 AB |
5215 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5216 | ||
5217 | * NEWS: Mention additions to Python API. | |
5218 | * python/py-arch.c (archpy_register_groups): New function. | |
5219 | (arch_object_methods): Add 'register_groups' method. | |
5220 | * python/py-registers.c (reggroup_iterator_object): New struct. | |
5221 | (reggroup_object): New struct. | |
5222 | (gdbpy_new_reggroup): New function. | |
5223 | (gdbpy_reggroup_to_string): New function. | |
5224 | (gdbpy_reggroup_name): New function. | |
5225 | (gdbpy_reggroup_iter): New function. | |
5226 | (gdbpy_reggroup_iter_next): New function. | |
5227 | (gdbpy_new_reggroup_iterator): New function | |
5228 | (gdbpy_initialize_registers): Register new types. | |
5229 | (reggroup_iterator_object_type): Define new Python type. | |
5230 | (gdbpy_reggroup_getset): New static global. | |
5231 | (reggroup_object_type): Define new Python type. | |
5232 | * python/python-internal.h | |
5233 | ||
0f767f94 AB |
5234 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5235 | ||
5236 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c | |
5237 | * python/py-arch.c (archpy_registers): New function. | |
5238 | (arch_object_methods): Add 'registers' method. | |
5239 | * python/py-registers.c: New file. | |
5240 | * python/python-internal.h | |
5241 | (gdbpy_new_register_descriptor_iterator): Declare. | |
5242 | (gdbpy_initialize_registers): Declare. | |
5243 | * python/python.c (do_start_initialization): Call | |
5244 | gdbpy_initialize_registers. | |
5245 | * NEWS: Mention additions to the Python API. | |
5246 | ||
87dbc774 AB |
5247 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5248 | ||
5249 | * NEWS: Mention new Python API method. | |
5250 | * python/py-unwind.c (pending_framepy_architecture): New function. | |
5251 | (pending_frame_object_methods): Add architecture method. | |
5252 | ||
3bc98c0c AB |
5253 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5254 | ||
5255 | * gdbarch.c: Regenerate. | |
5256 | * gdbarch.h: Regenerate. | |
5257 | * gdbarch.sh (deprecated_set_gdbarch_data): Delete. | |
5258 | (gdbarch_data): Use internal_error for the case where | |
5259 | deprecated_set_gdbarch_data was originally needed. | |
5260 | * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters, | |
5261 | and use passed in obstack. | |
5262 | (libunwind_frame_set_descr): Should no longer get back NULL from | |
5263 | gdbarch_data. | |
5264 | (_initialize_libunwind_frame): Register as a pre-init gdbarch data | |
5265 | type. | |
5266 | * user-regs.c (user_regs_init): Update parameters, and use passed | |
5267 | in obstack. | |
5268 | (user_reg_add): Should no longer get back NULL from gdbarch_data. | |
5269 | (_initialize_user_regs): Register as a pre-init gdbarch data type. | |
5270 | ||
d8cc8af6 TV |
5271 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
5272 | ||
5273 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle | |
5274 | End-Of-Sequence in lte_is_less_than. | |
5275 | * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313 | |
5276 | "gdb: Don't reorder line table entries too much when sorting". | |
5277 | ||
947f7597 TV |
5278 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
5279 | ||
5280 | PR tui/26205 | |
5281 | * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name. | |
5282 | ||
1e7c1b22 TV |
5283 | 2020-07-05 Tom de Vries <tdevries@suse.de> |
5284 | ||
5285 | PR build/26187 | |
5286 | * inferior.h (struct infcall_suspend_state_deleter): If available, use | |
5287 | std::uncaught_exceptions instead of deprecated | |
5288 | std::uncaught_exception. | |
5289 | ||
a36158ec SM |
5290 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
5291 | ||
5292 | * macroexp.h (macro_stringify): Return | |
5293 | gdb::unique_xmalloc_ptr<char>. | |
5294 | * macroexp.c (macro_stringify): Likewise. | |
5295 | * macrotab.c (fixup_definition): Update. | |
5296 | ||
14d960c8 SM |
5297 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
5298 | ||
5299 | * c-exp.y (scan_macro_expansion): Don't free `expansion`. | |
5300 | (lex_one_token): Update. | |
5301 | * macroexp.c (struct macro_buffer) <release>: Return | |
5302 | gdb::unique_xmalloc_ptr<char>. | |
5303 | (macro_stringify): Update. | |
5304 | (macro_expand): Update. | |
5305 | (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>. | |
5306 | * macroexp.h (macro_expand_next): Likewise. | |
5307 | ||
211d5b1c SM |
5308 | 2020-07-02 Simon Marchi <simon.marchi@efficios.com> |
5309 | ||
5310 | * macroexp.h (macro_lookup_ftype): Remove. | |
5311 | (macro_expand, macro_expand_once, macro_expand_next): Remove | |
5312 | lookup function parameters, add scope parameter. | |
5313 | * macroexp.c (scan, substitute_args, expand, maybe_expand, | |
5314 | macro_expand, macro_expand_once, macro_expand_next): Likewise. | |
5315 | * macroscope.h (standard_macro_lookup): Change parameter type | |
5316 | to macro_scope. | |
5317 | * macroscope.c (standard_macro_lookup): Likewise. | |
5318 | * c-exp.y (lex_one_token): Update. | |
5319 | * macrocmd.c (macro_expand_command): Likewise. | |
5320 | (macro_expand_once_command): Likewise. | |
5321 | ||
b1a35af2 SM |
5322 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
5323 | ||
5324 | * inf-loop.c (inferior_event_handler): Remove client_data param. | |
5325 | * inf-loop.h (inferior_event_handler): Likewise. | |
5326 | * infcmd.c (step_1): Adjust. | |
5327 | * infrun.c (proceed): Adjust. | |
5328 | (fetch_inferior_event): Remove client_data param. | |
5329 | (infrun_async_inferior_event_handler): Adjust. | |
5330 | * infrun.h (fetch_inferior_event): Remove `void *` param. | |
5331 | * linux-nat.c (handle_target_event): Adjust. | |
5332 | * record-btrace.c (record_btrace_handle_async_inferior_event): | |
5333 | Adjust. | |
5334 | * record-full.c (record_full_async_inferior_event_handler): | |
5335 | Adjust. | |
5336 | * remote.c (remote_async_inferior_event_handler): Adjust. | |
5337 | ||
1cdf9e33 TT |
5338 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5339 | ||
5340 | * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual. | |
5341 | * tui/tui-stack.h (struct tui_locator_window) <name>: New method. | |
5342 | ||
32c1e210 TT |
5343 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5344 | ||
5345 | * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from | |
5346 | tui_gen_win_info. | |
5347 | (tui_win_info::make_window): Merge with | |
5348 | tui_gen_win_info::make_window. | |
5349 | (tui_win_info::make_visible): Move from tui_gen_win_info. | |
5350 | * tui/tui-win.c (tui_win_info::max_width): Move from | |
5351 | tui_gen_win_info. | |
5352 | * tui/tui-layout.h (class tui_layout_window) <m_window>: Change | |
5353 | type. | |
5354 | <window_factory>: Likewise. | |
5355 | * tui/tui-layout.c (tui_win_info::resize): Move from | |
5356 | tui_gen_win_info. | |
5357 | (make_standard_window): Change return type. | |
5358 | (get_locator_window, tui_get_window_by_name): Likewise. | |
5359 | (tui_layout_window::apply): Remove a cast. | |
5360 | * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier. | |
5361 | (struct tui_win_info): Merge with tui_gen_win_info. | |
5362 | (struct tui_gen_win_info): Remove. | |
5363 | ||
a30cb6da TT |
5364 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5365 | ||
5366 | * tui/tui-stack.h (struct tui_locator_window): Derive from | |
5367 | tui_win_info. | |
5368 | <do_scroll_horizontal, do_scroll_vertical>: New methods. | |
5369 | <can_box>: New method. | |
5370 | ||
1eb2161f TT |
5371 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5372 | ||
5373 | * tui/tui-stack.h (struct tui_locator_window): Remove body. | |
5374 | ||
7134f2eb TT |
5375 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5376 | ||
5377 | * tui/tui-regs.c (tui_data_window::display_registers_from) | |
5378 | (tui_data_window::display_registers_from) | |
5379 | (tui_data_window::first_data_item_displayed) | |
5380 | (tui_data_window::delete_data_content_windows): Update. | |
5381 | (tui_data_window::refresh_window, tui_data_window::no_refresh): | |
5382 | Remove. | |
5383 | (tui_data_window::check_register_values): Update. | |
5384 | (tui_data_item_window::rerender): Add parameters. Update. | |
5385 | (tui_data_item_window::refresh_window): Remove. | |
5386 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer | |
5387 | virtual. | |
5388 | * tui/tui-regs.h (struct tui_data_item_window): Don't derive from | |
5389 | tui_gen_win_info. | |
5390 | <refresh_window, max_height, min_height>: Remove. | |
5391 | <rerender>: Add parameters. | |
5392 | <x, y, visible>: New members. | |
5393 | (struct tui_data_window) <refresh_window, no_refresh>: Remove. | |
5394 | <m_item_width>: New member. | |
5395 | ||
22b7b041 TT |
5396 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5397 | ||
5398 | * tui/tui-regs.c (tui_data_window::show_register_group) | |
5399 | (tui_data_window::check_register_values): Update. | |
5400 | * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename | |
5401 | from item_no. | |
5402 | ||
c9753adb TT |
5403 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5404 | ||
5405 | * tui/tui-regs.c (tui_data_window::show_register_group): Remove | |
5406 | useless "if". | |
5407 | ||
9ab26b4a TT |
5408 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5409 | ||
5410 | * tui/tui-regs.c (tui_data_window::show_register_group): Update. | |
5411 | * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove. | |
5412 | ||
e555083f TT |
5413 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5414 | ||
5415 | * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h | |
5416 | * tui/tui-winsource.h (enum tui_line_or_address_kind) | |
5417 | (struct tui_line_or_address): Move from tui-data.h. | |
5418 | * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h. | |
5419 | * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c. | |
5420 | (tui_cmd_window, tui_source_window_base, tui_source_window) | |
5421 | (tui_disasm_window): Don't declare. | |
5422 | (enum tui_line_or_address_kind, struct tui_line_or_address): Move | |
5423 | to tui-winsource.h. | |
5424 | (SINGLE_KEY): Move to tui-stack.c. | |
5425 | ||
7a02bab7 TT |
5426 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5427 | ||
5428 | * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a | |
5429 | std::string. | |
5430 | * tui/tui-regs.c (class tab_expansion_file): New. | |
5431 | (tab_expansion_file::write): New method. | |
5432 | (tui_register_format): Change return type. Use | |
5433 | tab_expansion_file. | |
5434 | (tui_get_register, tui_data_window::display_registers_from) | |
5435 | (tui_data_item_window::rerender): Update. | |
5436 | * tui/tui-io.h (tui_expand_tabs): Don't declare. | |
5437 | * tui/tui-io.c (tui_expand_tabs): Remove. | |
5438 | ||
ea68593b TT |
5439 | 2020-07-01 Tom Tromey <tom@tromey.com> |
5440 | ||
5441 | * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum. | |
5442 | ||
a8caed5d FS |
5443 | 2020-07-01 Fangrui Song <maskray@google.com> |
5444 | ||
5445 | * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1. | |
5446 | ||
9cdf9820 AKS |
5447 | 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
5448 | ||
5449 | * dwarf2/read.c (set_die_type): Removed conditions to restrict | |
5450 | forms for DW_AT_associated and DW_AT_allocated attributes, | |
5451 | which is already checked in function attr_to_dynamic_prop. | |
5452 | ||
a1520ad8 TT |
5453 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
5454 | ||
5455 | * dwarf2/read.c (quirk_rust_enum): Correctly call | |
5456 | alloc_rust_variant for default-less enum. | |
5457 | ||
5ac58899 TT |
5458 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
5459 | ||
5460 | PR build/26183: | |
5461 | * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use | |
5462 | gdb::to_string. | |
5463 | ||
19b187a9 SM |
5464 | 2020-06-29 Simon Marchi <simon.marchi@efficios.com> |
5465 | ||
5466 | * gdbarch.sh (displaced_step_copy_insn): Update doc. | |
5467 | * gdbarch.h: Re-generate. | |
5468 | ||
cd4c4c07 TT |
5469 | 2020-06-28 Tom Tromey <tom@tromey.com> |
5470 | ||
5471 | * command.h (cmd_types): Remove. | |
5472 | (cmd_type): Don't declare. | |
5473 | * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a | |
5474 | typedef. | |
5475 | * cli/cli-cmds.c (setting_cmd): Use cmd->type directly. | |
5476 | * cli/cli-decode.c (cmd_type): Remove. | |
5477 | ||
05779d57 PA |
5478 | 2020-06-27 Pedro Alves <palves@redhat.com> |
5479 | ||
5480 | * fork-child.c (prefork_hook): Adjust. | |
5481 | * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal): | |
5482 | Delete. | |
5483 | (set_inferior_tty_command, show_inferior_tty_command): Adjust. | |
5484 | * inferior.c (inferior::set_tty, inferior::tty): New methods. | |
5485 | * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal): | |
5486 | Remove declarations. | |
5487 | (struct inferior) <set_tty, tty>: New methods. | |
5488 | (struct inferior) <terminal>: Rename to ... | |
5489 | (struct inferior) <m_terminal>: ... this and make private. | |
5490 | * main.c (captured_main_1): Adjust. | |
5491 | * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust. | |
5492 | (mi_cmd_inferior_tty_show): Adjust. | |
5493 | * nto-procfs.c (nto_procfs_target::create_inferior): Adjust. | |
5494 | * windows-nat.c (windows_nat_target::create_inferior): Adjust. | |
5495 | ||
1776e3e5 NA |
5496 | 2020-06-26 Nick Alcock <nick.alcock@oracle.com> |
5497 | ||
5498 | * configure.ac: Add --enable-libctf: handle --disable-static | |
5499 | properly. | |
5500 | * acinclude.m4: sinclude ../config/enable.m4. | |
5501 | * Makefile.in (aclocal_m4_deps): Adjust accordingly. | |
5502 | (LIBCTF): Substitute in. | |
5503 | (CTF_DEPS): New, likewise. | |
5504 | (CLIBS): libctf needs symbols from libbfd: move earlier. | |
5505 | (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath | |
5506 | flags. | |
5507 | * ctfread.c: Surround in ENABLE_LIBCTF. | |
5508 | (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub. | |
5509 | * configure: Regenerate. | |
5510 | * config.in: Likewise. | |
5511 | ||
58373b80 SM |
5512 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
5513 | ||
5514 | * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup. | |
5515 | ||
277474ee SM |
5516 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
5517 | ||
5518 | * inferior.h (struct inferior) <terminal>: Change type to | |
5519 | gdb::unique_xmalloc_ptr<char>. | |
5520 | * inferior.c (inferior::~inferior): Don't free inf->terminal. | |
5521 | * infcmd.c (set_inferior_io_terminal): Don't free terminal | |
5522 | field, adjust to unique pointer. | |
5523 | (get_inferior_io_terminal): Adjust to unique pointer. | |
5524 | ||
6d74da72 AB |
5525 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5526 | ||
5527 | * riscv-tdep.c (riscv_print_registers_info): Loop over all | |
5528 | registers, not just the known core set of registers. | |
5529 | ||
2e52d038 AB |
5530 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5531 | ||
5532 | * riscv-tdep.c (riscv_register_name): Return NULL for duplicate | |
5533 | fflags, frm, and fcsr registers. | |
5534 | (riscv_register_reggroup_p): Remove unknown CSRs from save and | |
5535 | restore groups. | |
5536 | (riscv_tdesc_unknown_reg): New function. | |
5537 | (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to | |
5538 | tdesc_use_registers. | |
5539 | * riscv-tdep.h (struct gdbarch_tdep): Add | |
5540 | unknown_csrs_first_regnum, unknown_csrs_count, | |
5541 | duplicate_fflags_regnum, duplicate_frm_regnum, and | |
5542 | duplicate_fcsr_regnum fields. | |
5543 | ||
be64fd07 AB |
5544 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5545 | ||
5546 | * target-descriptions.c (tdesc_use_registers): Add new parameter a | |
5547 | callback, use the callback (when not null) to help number unknown | |
5548 | registers. | |
5549 | * target-descriptions.h (tdesc_unknown_register_ftype): New typedef. | |
5550 | (tdesc_use_registers): Add extra parameter to declaration. | |
5551 | ||
3b9fce96 AB |
5552 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5553 | ||
5554 | * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later | |
5555 | in the file. | |
5556 | (class riscv_pending_register_alias): Likewise. | |
5557 | (riscv_register_feature::register_info): Change 'required_p' field | |
5558 | to 'required', and change its type. Add 'check' member function. | |
5559 | (riscv_register_feature::register_info::check): Define new member | |
5560 | function. | |
5561 | (riscv_xreg_feature): Change initialisation of 'required' field. | |
5562 | (riscv_freg_feature): Likewise. | |
5563 | (riscv_virtual_feature): Likewise. | |
5564 | (riscv_csr_feature): Likewise. | |
5565 | (riscv_check_tdesc_feature): Take extra parameter, the csr | |
5566 | tdesc_feature, rewrite the function to use the new | |
5567 | riscv_register_feature::register_info::check function. | |
5568 | (riscv_gdbarch_init): Pass the csr tdesc_feature where needed. | |
5569 | ||
865bad26 AB |
5570 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5571 | ||
5572 | * features/Makefile: Remove all references to the deleted files | |
5573 | below. | |
5574 | * features/riscv/32bit-csr.c: Deleted. | |
5575 | * features/riscv/32bit-csr.xml: Deleted. | |
5576 | * features/riscv/64bit-csr.c: Deleted. | |
5577 | * features/riscv/64bit-csr.xml: Deleted. | |
5578 | * features/riscv/rebuild-csr-xml.sh: Deleted. | |
5579 | ||
ed69cbc8 AB |
5580 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5581 | ||
5582 | * riscv-tdep.c (struct riscv_register_feature::register_info): Fix | |
5583 | whitespace error for declaration of names member variable. | |
5584 | (struct riscv_register_feature): Add new prefer_first_name member | |
5585 | variable, and fix whitespace error in declaration of registers. | |
5586 | (riscv_xreg_feature): Initialize prefer_first_name field. | |
5587 | (riscv_freg_feature): Likewise. | |
5588 | (riscv_virtual_feature): Likewise. | |
5589 | (riscv_csr_feature): Likewise. | |
5590 | (riscv_register_name): Expand on comments. Remove register name | |
5591 | modifications for CSR and virtual registers. | |
5592 | ||
4445e8f5 AB |
5593 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5594 | ||
5595 | * riscv-tdep.c (struct riscv_register_feature): Fix whitespace | |
5596 | errors. | |
5597 | ||
767a879e AB |
5598 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5599 | ||
5600 | * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from | |
5601 | riscv-opc.h. | |
5602 | (class riscv_pending_register_alias): New class. | |
5603 | (riscv_check_tdesc_feature): Take vector of pending aliases and | |
5604 | populate it as appropriate. | |
5605 | (riscv_setup_register_aliases): Delete. | |
5606 | (riscv_gdbarch_init): Create vector of pending aliases and pass it | |
5607 | to riscv_check_tdesc_feature in all cases. Use the vector to | |
5608 | create the register aliases. | |
5609 | ||
bb6e55f3 RO |
5610 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5611 | ||
5612 | * sol2-tdep.c (sol2_static_transform_name): Remove. | |
5613 | (sol2_init_abi): Don't register it. | |
5614 | * gdbarch.sh (static_transform_name): Remove. | |
5615 | * gdbarch.c, gdbarch.h: Regenerate. | |
5616 | ||
5617 | * dbxread.c (read_dbx_symtab) <'S'>: Remove call to | |
5618 | gdbarch_static_transform_name. | |
5619 | * mdebugread.c (parse_partial_symbols) <'S'>: Likewise. | |
5620 | * stabsread.c (define_symbol) <'X'>: Remove. | |
5621 | (define_symbol) <'S'>: Remove gdbarch_static_transform_name | |
5622 | handling. | |
5623 | <'V'>: Likewise. | |
5624 | * xcoffread.c (scan_xcoff_symtab): Remove gdbarch. | |
5625 | <'S'>: Remove call to gdbarch_static_transform_name. | |
5626 | ||
c6d36836 RO |
5627 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5628 | ||
5629 | * procfs.c (procfs_pre_trace): New function. | |
5630 | (procfs_target::create_inferior): Pass it to fork_inferior. | |
5631 | ||
a7e6196b RO |
5632 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5633 | ||
5634 | * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove | |
5635 | sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o. | |
5636 | <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o, | |
5637 | sol2-tdep.o, sparc-sol2-tdep.o. | |
5638 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static. | |
5639 | * sparc-tdep.h (sparc32_sol2_init_abi): Remove. | |
5640 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static. | |
5641 | * sparc64-tdep.h (sparc64_sol2_init_abi): Remove. | |
5642 | ||
d412e696 RO |
5643 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5644 | ||
5645 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove. | |
5646 | (amd64_sol2_init_abi): Use sol2_sigtramp_p. | |
5647 | Call sol2_init_abi. | |
5648 | Remove calls to set_gdbarch_skip_solib_resolver, | |
5649 | set_gdbarch_core_pid_to_str. | |
5650 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove. | |
5651 | (i386_sol2_static_transform_name): Remove. | |
5652 | (i386_sol2_init_abi): Call sol2_init_abi. | |
5653 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
5654 | set_gdbarch_static_transform_name, | |
5655 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
5656 | Use sol2_sigtramp_p. | |
5657 | * sol2-tdep.c (sol2_pc_in_sigtramp): New function. | |
5658 | (sol2_sigtramp_p): New function. | |
5659 | (sol2_static_transform_name): New function. | |
5660 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static. | |
5661 | (sol2_init_abi): New function. | |
5662 | * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare. | |
5663 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove. | |
5664 | * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove. | |
5665 | (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p. | |
5666 | (sparc_sol2_static_transform_name): Remove. | |
5667 | (sparc32_sol2_init_abi): Call sol2_init_abi. | |
5668 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
5669 | set_gdbarch_static_transform_name, | |
5670 | set_gdbarch_skip_solib_resolver, | |
5671 | set_gdbarch_core_pid_to_str. | |
5672 | * sparc-tdep.h (sparc_sol2_pc_in_sigtramp) | |
5673 | (sparc_sol2_static_transform_name): Remove | |
5674 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just | |
5675 | call sol2_sigtramp_p. | |
5676 | (sparc64_sol2_init_abi): Call sol2_init_abi. | |
5677 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
5678 | set_gdbarch_static_transform_name, | |
5679 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
5680 | ||
a8654e7d PW |
5681 | 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5682 | ||
5683 | * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM. | |
5684 | * exec.c (validate_exec_file): If from_tty, set both | |
5685 | SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM. | |
5686 | * symfile.c (symbol_file_add_with_addrs): if always_confirm | |
5687 | and from_tty, unconditionally ask a confirmation. | |
5688 | ||
caa7fd04 AB |
5689 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5690 | ||
5691 | * target-descriptions.c (tdesc_architecture_name): Protect against | |
5692 | NULL pointer dereference. | |
5693 | (maint_print_xml_tdesc_cmd): New function. | |
5694 | (_initialize_target_descriptions): Register new 'maint print | |
5695 | xml-tdesc' command and give it the filename completer. | |
5696 | * NEWS: Mention new 'maint print xml-tdesc' command. | |
5697 | ||
fbf42f4e AB |
5698 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5699 | ||
5700 | * target-descriptions.c (class tdesc_compatible_info): New class. | |
5701 | (struct target_desc): Change type of compatible vector. | |
5702 | (tdesc_compatible_p): Update for change in type of | |
5703 | target_desc::compatible. | |
5704 | (tdesc_compatible_info_list): New function. | |
5705 | (tdesc_compatible_info_arch_name): New function. | |
5706 | (tdesc_add_compatible): Update for change in type of | |
5707 | target_desc::compatible. | |
5708 | (print_c_tdesc::visit_pre): Likewise. | |
5709 | ||
20821f4e AB |
5710 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5711 | ||
5712 | * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change | |
5713 | whitespace to underscore. | |
5714 | (maint_print_c_tdesc_cmd): Use fake filename for target | |
5715 | descriptions that came from the target. | |
5716 | (_initialize_target_descriptions): Add filename command completion | |
5717 | for 'maint print c-tdesc'. | |
5718 | ||
1fb5ee62 SM |
5719 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
5720 | ||
5721 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty | |
5722 | lines. | |
5723 | ||
fc3ecb3e SM |
5724 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
5725 | ||
5726 | * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty | |
5727 | lines. | |
5728 | (dwarf2_find_location_expression): Likewise. | |
5729 | (call_site_parameter_matches): Likewise. | |
5730 | (dwarf2_compile_expr_to_ax): Likewise. | |
5731 | (disassemble_dwarf_expression): Likewise. | |
5732 | (loclist_describe_location): Likewise. | |
5733 | ||
236ef034 PA |
5734 | 2020-06-23 Pedro Alves <palves@redhat.com> |
5735 | ||
5736 | * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or | |
5737 | progspace-and-thread.h. Include scoped-mock-context.h instead. | |
5738 | (register_to_value_test): Use scoped_mock_context. | |
5739 | * regcache.c: Include "scoped-mock-context.h". | |
5740 | (cooked_read_test): Don't error out if a target is already pushed. | |
5741 | Use scoped_mock_context. Adjust. | |
5742 | * scoped-mock-context.h: New file. | |
5743 | ||
39e7ecca AB |
5744 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5745 | ||
5746 | * ada-lang.c (ada_language_data): Delete la_is_string_type_p | |
5747 | initializer. | |
5748 | (ada_language::is_string_type_p): New member function. | |
5749 | * c-lang.c (c_language_data): Delete la_is_string_type_p | |
5750 | initializer. | |
5751 | (cplus_language_data): Likewise. | |
5752 | (asm_language_data): Likewise. | |
5753 | (minimal_language_data): Likewise. | |
5754 | * d-lang.c (d_language_data): Likewise. | |
5755 | * f-lang.c (f_is_string_type_p): Delete function, implementation | |
5756 | moved to f_language::is_string_type_p. | |
5757 | (f_language_data): Delete la_is_string_type_p initializer. | |
5758 | (f_language::is_string_type_p): New member function, | |
5759 | implementation from f_is_string_type_p. | |
5760 | * go-lang.c (go_is_string_type_p): Delete function, implementation | |
5761 | moved to go_language::is_string_type_p. | |
5762 | (go_language_data): Delete la_is_string_type_p initializer. | |
5763 | (go_language::is_string_type_p): New member function, | |
5764 | implementation from go_is_string_type_p. | |
5765 | * language.c (language_defn::is_string_type_p): Define new member | |
5766 | function. | |
5767 | (default_is_string_type_p): Make static, add comment copied from | |
5768 | header file. | |
5769 | (unknown_language_data): Delete la_is_string_type_p initializer. | |
5770 | (unknown_language::is_string_type_p): New member function. | |
5771 | (auto_language_data): Delete la_is_string_type_p initializer. | |
5772 | (auto_language::is_string_type_p): New member function. | |
5773 | * language.h (language_data): Delete la_is_string_type_p field. | |
5774 | (language_defn::is_string_type_p): Declare new function. | |
5775 | (default_is_string_type_p): Delete desclaration, move comment to | |
5776 | definition. | |
5777 | * m2-lang.c (m2_is_string_type_p): Delete function, implementation | |
5778 | moved to m2_language::is_string_type_p. | |
5779 | (m2_language_data): Delete la_is_string_type_p initializer. | |
5780 | (m2_language::is_string_type_p): New member function, | |
5781 | implementation from m2_is_string_type_p. | |
5782 | * objc-lang.c (objc_language_data): Delete la_is_string_type_p | |
5783 | initializer. | |
5784 | * opencl-lang.c (opencl_language_data): Likewise. | |
5785 | * p-lang.c (pascal_is_string_type_p): Delete function, | |
5786 | implementation moved to pascal_language::is_string_type_p. | |
5787 | (pascal_language_data): Delete la_is_string_type_p initializer. | |
5788 | (pascal_language::is_string_type_p): New member function, | |
5789 | implementation from pascal_is_string_type_p. | |
5790 | * rust-lang.c (rust_is_string_type_p): Delete function, | |
5791 | implementation moved to rust_language::is_string_type_p. | |
5792 | (rust_language_data): Delete la_is_string_type_p initializer. | |
5793 | (rust_language::is_string_type_p): New member function, | |
5794 | implementation from rust_is_string_type_p. | |
5795 | * valprint.c (val_print_scalar_or_string_type_p): Update call to | |
5796 | is_string_type_p. | |
5797 | ||
4ffc13fb AB |
5798 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5799 | ||
5800 | * ada-lang.c (ada_language_data): Delete la_print_typedef | |
5801 | initializer. | |
5802 | (ada_language::print_typedef): New member function. | |
5803 | * c-lang.c (c_language_data): Delete la_print_typedef initializer. | |
5804 | (cplus_language_data): Likewise. | |
5805 | (asm_language_data): Likewise. | |
5806 | (minimal_language_data): Likewise. | |
5807 | * d-lang.c (d_language_data): Likewise. | |
5808 | * f-lang.c (f_language_data): Likewise. | |
5809 | (f_language::print_typedef): New member function. | |
5810 | * go-lang.c (go_language_data): Delete la_print_typedef | |
5811 | initializer. | |
5812 | * language.c (language_defn::print_typedef): Define member | |
5813 | function. | |
5814 | (unknown_language_data): Delete la_print_typedef initializer. | |
5815 | (unknown_language::print_typedef): New member function. | |
5816 | (auto_language_data): Delete la_print_typedef initializer. | |
5817 | (auto_language::print_typedef): New member function. | |
5818 | * language.h (language_data): Delete la_print_typedef field. | |
5819 | (language_defn::print_typedef): Declare new member function. | |
5820 | (LA_PRINT_TYPEDEF): Update call to print_typedef. | |
5821 | (default_print_typedef): Delete declaration. | |
5822 | * m2-lang.c (m2_language_data): Delete la_print_typedef | |
5823 | initializer. | |
5824 | (m2_language::print_typedef): New member function. | |
5825 | * objc-lang.c (objc_language_data): Delete la_print_typedef | |
5826 | initializer. | |
5827 | * opencl-lang.c (opencl_language_data): Likewise. | |
5828 | * p-lang.c (pascal_language_data): Likewise. | |
5829 | (pascal_language::print_typedef): New member function. | |
5830 | * rust-lang.c (rust_print_typedef): Delete function, | |
5831 | implementation moved to rust_language::print_typedef. | |
5832 | (rust_language): Delete la_print_typedef initializer. | |
5833 | (rust_language::print_typedef): New member function, | |
5834 | implementation from rust_print_typedef. | |
5835 | * typeprint.c (default_print_typedef): Delete. | |
5836 | ||
d711ee67 AB |
5837 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5838 | ||
5839 | * ada-lang.c (ada_language_data): Delete la_printstr initializer. | |
5840 | (ada_language::printstr): New member function. | |
5841 | * c-lang.c (c_language_data): Delete la_printstr initializer. | |
5842 | (cplus_language_data): Likewise. | |
5843 | (asm_language_data): Likewise. | |
5844 | (minimal_language_data): Likewise. | |
5845 | * d-lang.c (d_language_data): Likewise. | |
5846 | * f-lang.c (f_printstr): Rename to f_language::printstr. | |
5847 | (f_language_data): Delete la_printstr initializer. | |
5848 | (f_language::printstr): New member function, implementation from | |
5849 | f_printstr. | |
5850 | * go-lang.c (go_language_data): Delete la_printstr initializer. | |
5851 | * language.c (language_defn::printstr): Define new member | |
5852 | function. | |
5853 | (unk_lang_printstr): Delete. | |
5854 | (unknown_language_data): Delete la_printstr initializer. | |
5855 | (unknown_language::printstr): New member function. | |
5856 | (auto_language_data): Delete la_printstr initializer. | |
5857 | (auto_language::printstr): New member function. | |
5858 | * language.h (language_data): Delete la_printstr field. | |
5859 | (language_defn::printstr): Declare new member function. | |
5860 | (LA_PRINT_STRING): Update call to printstr. | |
5861 | * m2-lang.c (m2_printstr): Rename to m2_language::printstr. | |
5862 | (m2_language_data): Delete la_printstr initializer. | |
5863 | (m2_language::printstr): New member function, implementation from | |
5864 | m2_printstr. | |
5865 | * objc-lang.c (objc_language_data): Delete la_printstr | |
5866 | initializer. | |
5867 | * opencl-lang.c (opencl_language_data): Likewise. | |
5868 | * p-lang.c (pascal_printstr): Rename to pascal_language::printstr. | |
5869 | (pascal_language_data): Delete la_printstr initializer. | |
5870 | (pascal_language::printstr): New member function, implementation | |
5871 | from pascal_printstr. | |
5872 | * p-lang.h (pascal_printstr): Delete declaration. | |
5873 | * rust-lang.c (rust_printstr): Update header comment. | |
5874 | (rust_language_data): Delete la_printstr initializer. | |
5875 | (rust_language::printstr): New member function. | |
5876 | ||
52b50f2c AB |
5877 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5878 | ||
5879 | * ada-lang.c (ada_language_data): Delete la_printchar initializer. | |
5880 | (ada_language::printchar): New member function. | |
5881 | * c-lang.c (c_language_data): Delete la_printchar initializer. | |
5882 | (cplus_language_data): Likewise. | |
5883 | (asm_language_data): Likewise. | |
5884 | (minimal_language_data): Likewise. | |
5885 | * d-lang.c (d_language_data): Likewise. | |
5886 | * f-lang.c (f_printchar): Rename to f_language::printchar. | |
5887 | (f_language_data): Delete la_printchar initializer. | |
5888 | (f_language::printchar): New member function, implementation from | |
5889 | f_printchar. | |
5890 | * go-lang.c (go_language_data): Delete la_printchar initializer. | |
5891 | * language.c (unk_lang_printchar): Delete. | |
5892 | (language_defn::printchar): Define new member function. | |
5893 | (unknown_language_data): Delete la_printchar initializer. | |
5894 | (unknown_language::printchar): New member function. | |
5895 | (auto_language_data): Delete la_printchar initializer. | |
5896 | (auto_language::printchar): New member function. | |
5897 | * language.h (language_data): Delete la_printchar field. | |
5898 | (language_defn::printchar): Declare new member function. | |
5899 | (LA_PRINT_CHAR): Update call to printchar. | |
5900 | * m2-lang.c (m2_language_data): Delete la_printchar initializer. | |
5901 | (m2_language::printchar): New member function. | |
5902 | * objc-lang.c (objc_language_data): Delete la_printchar | |
5903 | initializer. | |
5904 | * opencl-lang.c (opencl_language_data): Likewise. | |
5905 | * p-lang.c (pascal_language_data): Delete la_printchar | |
5906 | initializer. | |
5907 | (pascal_language::printchar): New member function. | |
5908 | * rust-lang.c (rust_printchar): Rename to | |
5909 | rust_language::printchar. | |
5910 | (rust_language_data): Delete la_printchar initializer. | |
5911 | (rust_language::printchar): New member function, implementation | |
5912 | from rust_printchar. | |
5913 | ||
ec8cec5b AB |
5914 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5915 | ||
5916 | * ada-lang.c (emit_char): Renamed to ada_language::emitchar. | |
5917 | (ada_language_data): Delete la_emitchar initializer. | |
5918 | (ada_language::emitchar): New member function, implementation from | |
5919 | emit_char. | |
5920 | * c-lang.c (c_language_data): Delete la_emitchar initializer. | |
5921 | (cplus_language_data): Likewise. | |
5922 | (asm_language_data): Likewise. | |
5923 | (minimal_language_data): Likewise. | |
5924 | * d-lang.c (d_language_data): Likewise. | |
5925 | * f-lang.c (f_emit_char): Rename to f_language::emitchar. | |
5926 | (f_language_data): Delete la_emitchar initializer. | |
5927 | (f_language::emitchar): New member function, implementation from | |
5928 | f_emit_char. | |
5929 | * go-lang.c (go_language_data): Delete la_emitchar initializer. | |
5930 | * language.c (unk_lang_emit_char): Delete. | |
5931 | (language_defn::emitchar): New member function definition. | |
5932 | (unknown_language_data): Delete la_emitchar initializer. | |
5933 | (unknown_language::emitchar): New member function. | |
5934 | (auto_language_data): Delete la_emitchar initializer. | |
5935 | (auto_language::emitchar): New member function. | |
5936 | * language.h (language_data): Delete la_emitchar field. | |
5937 | (language_defn::emitchar): New member field declaration. | |
5938 | (LA_EMIT_CHAR): Update call to emitchar. | |
5939 | * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar. | |
5940 | (m2_language_data): Delete la_emitchar initializer. | |
5941 | (m2_language::emitchar): New member function, implementation from | |
5942 | m2_emit_char. | |
5943 | * objc-lang.c (objc_language_data): Delete la_emitchar | |
5944 | initializer. | |
5945 | * opencl-lang.c (opencl_language_data): Likewise. | |
5946 | * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar. | |
5947 | (pascal_language_data): Delete la_emitchar initializer. | |
5948 | (pascal_language::emitchar): New member function, implementation | |
5949 | from pascal_emit_char. | |
5950 | * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar. | |
5951 | (rust_language_data): Delete la_emitchar initializer. | |
5952 | (rust_language::emitchar): New member function, implementation | |
5953 | from rust_emitchar. | |
5954 | ||
1bf9c363 AB |
5955 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5956 | ||
5957 | * ada-lang.c (resolve): Rename to ada_language::post_parser. | |
5958 | (ada_language_data): Delete la_post_parser initializer. | |
5959 | (ada_language::post_parser): New member function. | |
5960 | * c-lang.c (c_language_data): Delete la_post_parser initializer. | |
5961 | (cplus_language_data): Likewise. | |
5962 | (asm_language_data): Likewise. | |
5963 | (minimal_language_data): Likewise. | |
5964 | * d-lang.c (d_language_data): Likewise. | |
5965 | * f-lang.c (f_language_data): Likewise. | |
5966 | * go-lang.c (go_language_data): Likewise. | |
5967 | * language.c (unknown_language_data): Likewise. | |
5968 | (auto_language_data): Likewise. | |
5969 | * language.h (language_data): Delete la_post_parser field. | |
5970 | (language_defn::post_parser): New member function. | |
5971 | * m2-lang.c (m2_language_data): Delete la_post_parser initializer. | |
5972 | * objc-lang.c (objc_language_data): Likewise. | |
5973 | * opencl-lang.c (opencl_language_data): Likewise. | |
5974 | * p-lang.c (pascal_language_data): Likewise. | |
5975 | * parse.c (parse_exp_in_context): Update call to post_parser. | |
5976 | (null_post_parser): Delete definition. | |
5977 | * parser-defs.h (null_post_parser): Delete declaration. | |
5978 | * rust-lang.c (rust_language_data): Delete la_post_parser | |
5979 | initializer. | |
5980 | ||
87afa652 AB |
5981 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5982 | ||
5983 | * ada-lang.c (parse): Rename to ada_language::parser. | |
5984 | (ada_language_data): Delete la_parser initializer. | |
5985 | (ada_language::parser): New member function, implementation from | |
5986 | parse. | |
5987 | * c-lang.c (c_language_data): Delete la_parser initializer. | |
5988 | (cplus_language_data): Likewise. | |
5989 | (asm_language_data): Likewise. | |
5990 | (minimal_language_data): Likewise. | |
5991 | * d-lang.c (d_language_data): Likewise. | |
5992 | (d_language::parser): New member function. | |
5993 | * f-lang.c (f_language_data): Delete la_parser initializer. | |
5994 | (f_language::parser): New member function. | |
5995 | * go-lang.c (go_language_data): Delete la_parser initializer. | |
5996 | (go_language::parser): New member function. | |
5997 | * language.c (unk_lang_parser): Delete. | |
5998 | (language_defn::parser): Define new member function. | |
5999 | (unknown_language_data): Delete la_parser initializer. | |
6000 | (unknown_language::parser): New member function. | |
6001 | (auto_language_data): Delete la_parser initializer. | |
6002 | (auto_language::parser): New member function. | |
6003 | * language.h (language_data): Delete la_parser field. | |
6004 | (language_defn::parser): Declare new member function. | |
6005 | * m2-lang.c (m2_language_data): Delete la_parser initializer. | |
6006 | (m2_language::parser): New member function. | |
6007 | * objc-lang.c (objc_language_data): Delete la_parser initializer. | |
6008 | * opencl-lang.c (opencl_language_data): Likewise. | |
6009 | * p-lang.c (pascal_language_data): Likewise. | |
6010 | (pascal_language::parser): New member function. | |
6011 | * parse.c (parse_exp_in_context): Update call to parser. | |
6012 | * rust-lang.c (rust_language_data): Delete la_parser initializer. | |
6013 | (rust_language::parser): New member function. | |
6014 | ||
37825800 AB |
6015 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
6016 | ||
6017 | * top.c (print_gdb_configuration): Print --with-python-libdir | |
6018 | configuration value. | |
6019 | ||
5b860c93 PW |
6020 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6021 | ||
6022 | * NEWS: Mention change to the alias command. | |
6023 | ||
cf00cd6f PW |
6024 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6025 | ||
6026 | * cli/cli-cmds.c (lookup_cmd_for_default_args) | |
6027 | (alias_command_completer) | |
6028 | (make_alias_options_def_group): New functions. | |
6029 | (alias_opts, alias_option_defs): New struct and array. | |
6030 | (alias_usage_error): Update usage. | |
6031 | (alias_command): Handles optional DEFAULT-ARGS... arguments. | |
6032 | Use option framework. | |
6033 | (_initialize_cli_cmds): Update alias command help. | |
6034 | Update aliases command help. | |
6035 | (show_user): | |
6036 | Add NULL for new default_args lookup_cmd argument. | |
6037 | (valid_command_p): Rename to validate_aliased_command. | |
6038 | Add NULL for new default_args lookup_cmd argument. Verify that the | |
6039 | aliased_command has no default args. | |
6040 | * cli/cli-decode.c (help_cmd): Show aliases definitions. | |
6041 | (lookup_cmd_1, lookup_cmd): New argument default_args. | |
6042 | (add_alias_cmd): | |
6043 | Add NULL for new default_args lookup_cmd argument. | |
6044 | (print_help_for_command): Show default args under the layout | |
6045 | alias some_alias = some_aliased_cmd some_alias_default_arg. | |
6046 | * cli/cli-decode.h (struct cmd_list_element): New member default_args. | |
6047 | xfree default_args in destructor. | |
6048 | * cli/cli-script.c (process_next_line, do_define_command): | |
6049 | Add NULL for new default_args lookup_cmd argument. | |
6050 | * command.h: Declare new default_args argument in lookup_cmd | |
6051 | and lookup_cmd_1. | |
6052 | * completer.c (complete_line_internal_1): | |
6053 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
6054 | * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. | |
6055 | * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p): | |
6056 | Likewise. | |
6057 | * infcmd.c (_initialize_infcmd): Likewise. | |
6058 | * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise. | |
6059 | * python/py-cmd.c (gdbpy_parse_command_name): Likewise. | |
6060 | * python/py-param.c (add_setshow_generic): Likewise. | |
6061 | * remote.c (_initialize_remote): Likewise. | |
6062 | * top.c (execute_command): Prepend default_args if command has some. | |
6063 | (set_verbose): | |
6064 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
6065 | * tracepoint.c (validate_actionline, encode_actions_1): | |
6066 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
6067 | ||
bd920864 TBA |
6068 | 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6069 | ||
6070 | * jit.c (jit_read_descriptor): Use bool as the return type. | |
6071 | (jit_breakpoint_re_set_internal): Use bool as the return type. | |
6072 | Invert the return value logic; return true if the jit breakpoint | |
6073 | has been successfully initialized. | |
6074 | (jit_inferior_init): Update the call to | |
6075 | jit_breakpoint_re_set_internal. | |
6076 | ||
f8098322 PA |
6077 | 2020-06-22 Pedro Alves <palves@redhat.com> |
6078 | ||
6079 | PR gdb/25939 | |
6080 | * procfs.c (procfs_target::wait): Don't reference inferior_ptid. | |
6081 | Use the current inferior instead. Don't return | |
6082 | TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and | |
6083 | wait again. | |
6084 | * sol-thread.c (sol_thread_target::wait): Don't reference | |
6085 | inferior_ptid. | |
6086 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs) | |
6087 | (sol_update_thread_list_callback): Use the current inferior's pid | |
6088 | instead of inferior_ptid. | |
6089 | ||
196535a6 RO |
6090 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6091 | ||
6092 | * procfs.c: Cleanup many comments. | |
6093 | ||
6094 | (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG) | |
6095 | (AFTER_WATCHFLAG): Replace by value. | |
6096 | ||
6097 | (MAIN_PROC_NAME_FORMAT): Inline ... | |
6098 | (create_procinfo): ... here. | |
6099 | ||
6100 | (procfs_debug_inferior): Remove SYS_exec handling. | |
6101 | (syscall_is_exec): Likewise. | |
6102 | (procfs_set_exec_trap): Likewise. | |
6103 | ||
6104 | (syscall_is_lwp_exit): Inline in callers. | |
6105 | (syscall_is_exit): Likewise. | |
6106 | (syscall_is_exec): Likewise. | |
6107 | (syscall_is_lwp_create): Likewise. | |
6108 | ||
6109 | (invalidate_cache): Remove #if 0 code. | |
6110 | ||
6111 | (make_signal_thread_runnable): Remove. | |
6112 | (procfs_target::resume): Remove #if 0 code. | |
6113 | ||
cf6f3e86 RO |
6114 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6115 | ||
6116 | PR gdb/25939 | |
6117 | * procfs.c (procfs_target::procfs_init_inferior): Move push_target | |
6118 | call ... | |
6119 | (procfs_target::create_inferior): ... here. | |
6120 | ||
48e9cc84 PW |
6121 | 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6122 | ||
6123 | * exec.c (validate_exec_file): Ensure the build-id is up to | |
6124 | date by calling reopen_exec_file (that checks file timestamp | |
6125 | to decide to re-read the file). | |
6126 | ||
3922b302 PA |
6127 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6128 | ||
6129 | PR gdb/25412 | |
6130 | * gdbthread.h (delete_thread, delete_thread_silent) | |
6131 | (find_thread_ptid): Update comments. | |
6132 | * thread.c (current_thread_): New global. | |
6133 | (is_current_thread): Move higher, and reimplement. | |
6134 | (inferior_thread): Reimplement. | |
6135 | (set_thread_exited): Use bool. Add assertions. | |
6136 | (add_thread_silent): Simplify thread-reuse handling by always | |
6137 | calling delete_thread. | |
6138 | (delete_thread): Remove intro comment. | |
6139 | (find_thread_ptid): Skip exited threads. | |
6140 | (switch_to_thread_no_regs): Write to current_thread_. | |
6141 | (switch_to_no_thread): Check CURRENT_THREAD_ instead of | |
6142 | INFERIOR_PTID. Clear current_thread_. | |
6143 | ||
6dbdab44 PA |
6144 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6145 | ||
6146 | * aix-thread.c (pd_update): Use switch_to_thread. | |
6147 | ||
2da4b788 PA |
6148 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6149 | ||
6150 | * ravenscar-thread.c (ravenscar_thread_target): Update. | |
6151 | (ravenscar_thread_target::update_inferior_ptid): Rename to ... | |
6152 | (ravenscar_thread_target::add_active_thread): ... this. Don't | |
6153 | set m_base_ptid here. Update to avoid referencing inferior_ptid. | |
6154 | (ravenscar_thread_target::wait): Don't write to inferior_ptid. | |
6155 | ||
50838d1b PA |
6156 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6157 | ||
6158 | * nat/windows-nat.c (current_windows_thread): Remove. | |
6159 | * nat/windows-nat.h (current_windows_thread): Remove. | |
6160 | * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint): | |
6161 | Adjust. | |
6162 | (display_selectors): Adjust to fetch the current | |
6163 | windows_thread_info based on inferior_ptid. | |
6164 | (fake_create_process): No longer write to current_windows_thread. | |
6165 | (windows_nat_target::get_windows_debug_event): | |
6166 | Don't set inferior_ptid or current_windows_thread. | |
6167 | (windows_nat_target::wait): Adjust to not rely on | |
6168 | current_windows_thread. | |
6169 | (do_initial_windows_stuff): Now a method of windows_nat_target. | |
6170 | Switch to the last_ptid thread. | |
6171 | (windows_nat_target::attach): Adjust. | |
6172 | (windows_nat_target::detach): Use switch_to_no_thread instead of | |
6173 | writing to inferior_ptid directly. | |
6174 | (windows_nat_target::create_inferior): Adjust. | |
6175 | ||
31ce04e9 PA |
6176 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6177 | ||
6178 | * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid. | |
6179 | ||
1ee1a363 PA |
6180 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6181 | ||
6182 | * go32-nat.c (go32_nat_target::create_inferior): Switch to thread | |
6183 | after creating it, instead of writing to inferior_ptid. Don't | |
6184 | write to inferior_ptid. | |
6185 | ||
6d350754 PA |
6186 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6187 | ||
6188 | * fork-child.c (postfork_hook): Don't write to inferior_ptid. | |
6189 | ||
5d971d48 PA |
6190 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6191 | ||
6192 | * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding | |
6193 | it, instead of writing to inferior_ptid. | |
6194 | ||
86e57d1b PA |
6195 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6196 | ||
6197 | * btrace.c (btrace_fetch): Use switch_to_thread instead of writing | |
6198 | to inferior_ptid. | |
6199 | ||
f2e1c129 PA |
6200 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6201 | ||
6202 | * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread | |
6203 | instead of writing to inferior_ptid directly. | |
6204 | ||
60db1b85 PA |
6205 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6206 | ||
6207 | * corelow.c (core_target::close): Use switch_to_no_thread instead | |
6208 | of writing to inferior_ptid directly. | |
6209 | (add_to_thread_list, core_target_open): Use switch_to_thread | |
6210 | instead of writing to inferior_ptid directly. | |
6211 | ||
fe7d6a8d PA |
6212 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6213 | ||
6214 | * darwin-nat.c (darwin_nat_target::decode_message): Don't write to | |
6215 | inferior_ptid. | |
6216 | (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid | |
6217 | inferior_ptid. | |
6218 | (darwin_attach_pid): Use switch_to_no_thread instead of writing to | |
6219 | inferior_ptid directly. | |
6220 | (darwin_nat_target::init_thread_list): Switch to thread, instead | |
6221 | of writing to inferior_ptid. | |
6222 | (darwin_nat_target::attach): Don't write to inferior_ptid. | |
6223 | (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid. | |
6224 | ||
975f8708 PA |
6225 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6226 | ||
6227 | * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added | |
6228 | thread. | |
6229 | (gnu_nat_target::attach): Don't write to inferior_ptid directly. | |
6230 | Instead use switch_to_thread. | |
6231 | (gnu_nat_target::detach): Use switch_to_no_thread | |
6232 | instead of writing to inferior_ptid directly. Used passed-in | |
6233 | inferior instead of looking up the inferior by pid. | |
6234 | ||
1a204730 PA |
6235 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6236 | ||
6237 | * go32-nat.c (go32_nat_target::create_inferior): Don't write to | |
6238 | inferior_ptid. | |
6239 | ||
ebe84f23 PA |
6240 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6241 | ||
6242 | * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid | |
6243 | inferior_ptid. | |
6244 | (nto_procfs_target::attach): Avoid inferior_ptid. Switch to | |
6245 | thread. | |
6246 | (nto_procfs_target::detach): Avoid referencing | |
6247 | inferior_ptid. Use switch_to_no_thread instead of writing to | |
6248 | inferior_ptid directly. | |
6249 | (nto_procfs_target::mourn_inferior): Use switch_to_no_thread | |
6250 | instead of writing to inferior_ptid directly. | |
6251 | (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch | |
6252 | to thread. | |
6253 | ||
191f02e5 PA |
6254 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6255 | ||
6256 | * remote-sim.c (gdbsim_target::create_inferior): Switch to thread | |
6257 | after creating it, instead of writing to inferior_ptid. | |
6258 | (gdbsim_target_open): Use switch_to_no_thread instead of writing | |
6259 | to inferior_ptid directly. | |
6260 | (gdbsim_target::wait): Don't write to inferior_ptid. | |
6261 | ||
0ac55310 PA |
6262 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6263 | ||
6264 | * remote.c (remote_target::remote_notice_new_inferior): Use | |
6265 | switch_to_thread instead of writing to inferior_ptid directly. | |
6266 | (remote_target::add_current_inferior_and_thread): Use | |
6267 | switch_to_no_thread instead of writing to inferior_ptid directly. | |
6268 | (extended_remote_target::attach): Use switch_to_inferior_no_thread | |
6269 | and switch_to_thread instead of using set_current_inferior or | |
6270 | writing to inferior_ptid directly. | |
6271 | ||
5233f39b PA |
6272 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6273 | ||
6274 | * tracectf.c (ctf_target_open): Switch to added thread instead of | |
6275 | writing to inferior_ptid directly. | |
6276 | (ctf_target::close): Use switch_to_no_thread instead of writing to | |
6277 | inferior_ptid directly. | |
6278 | ||
087e161b PA |
6279 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6280 | ||
6281 | * tracefile-tfile.c (tfile_target_open): Don't write to | |
6282 | inferior_ptid directly, instead switch to added thread. | |
6283 | (tfile_target::close): Use switch_to_no_thread instead of writing | |
6284 | to inferior_ptid directly. | |
6285 | ||
7fb43e53 PA |
6286 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6287 | ||
6288 | * procfs.c (procfs_target::attach): Don't write to inferior_ptid. | |
6289 | (procfs_target::detach): Use switch_to_no_thread | |
6290 | instead of writing to inferior_ptid directly. | |
6291 | (do_attach): Change return type to void. Switch to the added | |
6292 | thread. | |
6293 | (procfs_target::create_inferior): Switch to the added thread. | |
6294 | (procfs_do_thread_registers): Don't write to inferior_ptid. | |
6295 | ||
18493a00 PA |
6296 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6297 | ||
6298 | * infrun.c (generic_mourn_inferior): Use switch_to_thread instead | |
6299 | of writing to inferior_ptid. | |
6300 | (scoped_restore_exited_inferior): Delete. | |
6301 | (handle_vfork_child_exec_or_exit): Simplify using | |
6302 | scoped_restore_current_pspace_and_thread. Use switch_to_thread | |
6303 | instead of writing to inferior_ptid. | |
6304 | (THREAD_STOPPED_BY): Delete. | |
6305 | (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint) | |
6306 | (thread_stopped_by_hw_breakpoint): Delete. | |
6307 | (save_waitstatus): Use | |
6308 | scoped_restore_current_thread+switch_to_thread, and call | |
6309 | target_stopped_by_watchpoint instead of | |
6310 | thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint | |
6311 | instead of thread_stopped_by_sw_breakpoint, and | |
6312 | target_stopped_by_hw_breakpoint instead of | |
6313 | thread_stopped_by_hw_breakpoint. | |
6314 | (handle_inferior_event) | |
6315 | <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to | |
6316 | inferior_ptid directly, nor | |
6317 | set_current_inferior/set_current_program_space. Use | |
6318 | switch_to_thread / switch_to_inferior_no_thread instead. | |
6319 | ||
a0776b13 PA |
6320 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6321 | ||
6322 | * target.c (generic_mourn_inferior): Use switch_to_no_thread | |
6323 | instead of writing to inferior_ptid. | |
6324 | ||
6155c136 PA |
6325 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6326 | ||
6327 | * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the | |
6328 | added thread. | |
6329 | (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch | |
6330 | to the added thread. | |
6331 | (inf_ptrace_target::detach_success): Use switch_to_no_thread | |
6332 | instead of writing to inferior_ptid. | |
6333 | ||
c5316fc6 PA |
6334 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6335 | ||
6336 | * gdbarch-selftests.c: Include "progspace-and-thread.h". | |
6337 | (register_to_value_test): Mock a program_space too. Heap-allocate | |
6338 | the address space. Don't write to inferior_ptid. Use | |
6339 | switch_to_thread instead. | |
6340 | ||
8df01799 PA |
6341 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6342 | ||
6343 | * linux-tdep.c (find_signalled_thread(thread_info *,void *)): | |
6344 | Delete. | |
6345 | (find_signalled_thread()): New, factored out from | |
6346 | linux_make_corefile_notes and adjusted to handle exited threads. | |
6347 | (linux_make_corefile_notes): Adjust to use the new | |
6348 | find_signalled_thread. | |
6349 | ||
41792d68 PA |
6350 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6351 | ||
6352 | * linux-tdep.c (btrace_fetch): Save/restore current thread instead | |
6353 | of saving/restoring inferior_ptid. | |
6354 | ||
612f258a TT |
6355 | 2020-06-17 Tom Tromey <tom@tromey.com> |
6356 | ||
6357 | * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward) | |
6358 | (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't | |
6359 | declare. | |
6360 | * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove. | |
6361 | ||
efb763a5 SM |
6362 | 2020-06-15 Simon Marchi <simon.marchi@efficios.com> |
6363 | ||
6364 | * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence | |
6365 | of partial symtabs. | |
6366 | ||
2951f6c0 SM |
6367 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
6368 | ||
6369 | * regformats/reg-arm.dat: Remove. | |
6370 | * regformats/reg-bfin.dat: Remove. | |
6371 | * regformats/reg-cris.dat: Remove. | |
6372 | * regformats/reg-crisv32.dat: Remove. | |
6373 | * regformats/reg-m32r.dat: Remove. | |
6374 | * regformats/reg-tilegx.dat: Remove. | |
6375 | * regformats/reg-tilegx32.dat: Remove. | |
6376 | ||
7d458ea5 SM |
6377 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
6378 | ||
6379 | * features/Makefile (WHICH): Remove arm files. | |
6380 | * regformats/arm/arm-with-iwmmxt.dat: Remove. | |
6381 | * regformats/arm/arm-with-neon.dat: Remove. | |
6382 | * regformats/arm/arm-with-vfpv2.dat: Remove. | |
6383 | * regformats/arm/arm-with-vfpv3.dat: Remove. | |
6384 | ||
3af96c0d SM |
6385 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
6386 | ||
6387 | * features/Makefile (XMLTOC): Remove rx.xml. | |
6388 | ||
b25e22fd PA |
6389 | 2020-06-17 Pedro Alves <palves@redhat.com> |
6390 | ||
6391 | * gdbthread.h (thread_control_state) <trap_expected> Update | |
6392 | comments. | |
6393 | ||
a78a19b1 AB |
6394 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
6395 | ||
6396 | * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to | |
6397 | ada_language::lookup_symbol_nonlocal. | |
6398 | (ada_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
6399 | (ada_language::lookup_symbol_nonlocal): New member function, | |
6400 | implementation from ada_lookup_symbol_nonlocal. | |
6401 | * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal | |
6402 | initializer. | |
6403 | (cplus_language_data): Delete la_lookup_symbol_nonlocal | |
6404 | initializer. | |
6405 | (cplus_language::lookup_symbol_nonlocal): New member function. | |
6406 | (asm_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
6407 | (minimal_language_data) Likewise. | |
6408 | * cp-namespace.c (cp_lookup_nested_symbol): Update comment. | |
6409 | * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal | |
6410 | initializer. | |
6411 | (d_language::lookup_symbol_nonlocal): New member function. | |
6412 | * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal | |
6413 | initializer. | |
6414 | (f_language::lookup_symbol_nonlocal): New member function. | |
6415 | * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal | |
6416 | initializer. | |
6417 | * language.c (unknown_language_data): Likewise. | |
6418 | (auto_language_data): Likewise. | |
6419 | * language.h (language_data): Delete la_lookup_symbol_nonlocal | |
6420 | field. | |
6421 | (language_defn::lookup_symbol_nonlocal): New member function. | |
6422 | * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal | |
6423 | initializer. | |
6424 | * objc-lang.c (objc_language_data): Likewise. | |
6425 | * opencl-lang.c (opencl_language_data): Likewise. | |
6426 | * p-lang.c (pascal_language_data): Likewise. | |
6427 | * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to | |
6428 | rust_language::lookup_symbol_nonlocal. | |
6429 | (rust_language_data): Delete la_lookup_symbol_nonlocal | |
6430 | initializer. | |
6431 | (rust_language::lookup_symbol_nonlocal): New member function, | |
6432 | implementation from rust_lookup_symbol_nonlocal. | |
6433 | * symtab.c (lookup_symbol_aux): Update call to | |
6434 | lookup_symbol_nonlocal. | |
6435 | (basic_lookup_symbol_nonlocal): Rename to... | |
6436 | (language_defn::lookup_symbol_nonlocal): ...this, and update | |
6437 | header comment. Remove language_defn parameter, and replace with | |
6438 | uses of `this'. | |
6439 | * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration. | |
6440 | ||
ebe2334e AB |
6441 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
6442 | ||
6443 | * ada-lang.c (ada_language_data): Delete la_value_print_inner | |
6444 | initializer. | |
6445 | (ada_language::value_print_inner): New member function. | |
6446 | * c-lang.c (c_language_data): Delete la_value_print_inner | |
6447 | initializer. | |
6448 | (cplus_language_data): Likewise. | |
6449 | (asm_language_data): Likewise. | |
6450 | (minimal_language_data): Likewise. | |
6451 | * d-lang.c (d_language_data): Likewise. | |
6452 | (d_language::value_print_inner): New member function. | |
6453 | * f-lang.c (f_language_data): Delete la_value_print_inner | |
6454 | initializer. | |
6455 | (f_language::value_print_inner): New member function. | |
6456 | * f-lang.h (f_value_print_innner): Rename to... | |
6457 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
6458 | * f-valprint.c (f_value_print_innner): Rename to... | |
6459 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
6460 | * go-lang.c (go_language_data): Delete la_value_print_inner | |
6461 | initializer. | |
6462 | (go_language::value_print_inner): New member function. | |
6463 | * language.c (language_defn::value_print_inner): Define new member | |
6464 | function. | |
6465 | (unk_lang_value_print_inner): Delete. | |
6466 | (unknown_language_data): Delete la_value_print_inner initializer. | |
6467 | (unknown_language::value_print_inner): New member function. | |
6468 | (auto_language_data): Delete la_value_print_inner initializer. | |
6469 | (auto_language::value_print_inner): New member function. | |
6470 | * language.h (language_data): Delete la_value_print_inner field. | |
6471 | (language_defn::value_print_inner): Delcare new member function. | |
6472 | * m2-lang.c (m2_language_data): Delete la_value_print_inner | |
6473 | initializer. | |
6474 | (m2_language::value_print_inner): New member function. | |
6475 | * objc-lang.c (objc_language_data): Delete la_value_print_inner | |
6476 | initializer. | |
6477 | * opencl-lang.c (opencl_language_data): Likewise. | |
6478 | * p-lang.c (pascal_language_data): Likewise. | |
6479 | (pascal_language::value_print_inner): New member function. | |
6480 | * rust-lang.c (rust_language_data): Delete la_value_print_inner | |
6481 | initializer. | |
6482 | (rust_language::value_print_inner): New member function. | |
6483 | * valprint.c (do_val_print): Update call to value_print_inner. | |
6484 | ||
a1d1fa3e AB |
6485 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
6486 | ||
6487 | * ada-lang.c (ada_language_data): Delete la_value_print | |
6488 | initializer. | |
6489 | (ada_language::value_print): New member function. | |
6490 | * c-lang.c (c_language_data): Delete la_value_print initializer. | |
6491 | (cplus_language_data): Likewise. | |
6492 | (asm_language_data): Likewise. | |
6493 | (minimal_language_data): Likewise. | |
6494 | * d-lang.c (d_language_data): Likewise. | |
6495 | * f-lang.c (f_language_data): Likewise. | |
6496 | * go-lang.c (go_language_data): Likewise. | |
6497 | * language.c (unk_lang_value_print): Delete. | |
6498 | (language_defn::value_print): Define new member function. | |
6499 | (unknown_language_data): Delete la_value_print initializer. | |
6500 | (unknown_language::value_print): New member function. | |
6501 | (auto_language_data): Delete la_value_print initializer. | |
6502 | (auto_language::value_print): New member function. | |
6503 | * language.h (language_data): Delete la_value_print field. | |
6504 | (language_defn::value_print): Declare new member function. | |
6505 | (LA_VALUE_PRINT): Update call to value_print. | |
6506 | * m2-lang.c (m2_language_data): Delete la_value_print initializer. | |
6507 | * objc-lang.c (objc_language_data): Likewise. | |
6508 | * opencl-lang.c (opencl_language_data): Likewise. | |
6509 | * p-lang.c (pascal_language_data): Likewise. | |
6510 | (pascal_language::value_print): New member function. | |
6511 | * rust-lang.c (rust_language_data): Delete la_value_print | |
6512 | initializer. | |
6513 | ||
f16a9f57 AB |
6514 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
6515 | ||
6516 | * ada-lang.c (ada_watch_location_expression): Rename to | |
6517 | ada_language::watch_location_expression. | |
6518 | (ada_language_data): Delete la_watch_location_expression | |
6519 | initializer. | |
6520 | (ada_language::watch_location_expression): New member function, | |
6521 | implementation from ada_watch_location_expression. | |
6522 | * breakpoint.c (watch_command_1): Update call to | |
6523 | watch_location_expression. | |
6524 | * c-lang.c (c_watch_location_expression): Rename to | |
6525 | language_defn::watch_location_expression. | |
6526 | (c_language_data): Delete la_watch_location_expression | |
6527 | initializer. | |
6528 | (cplus_language_data): Likewise. | |
6529 | (asm_language_data): Likewise. | |
6530 | (minimal_language_data): Likewise. | |
6531 | * c-lang.h (c_watch_location_expression): Delete declaration. | |
6532 | * d-lang.c (d_language_data): Delete la_watch_location_expression | |
6533 | initializer. | |
6534 | * f-lang.c (f_language_data): Likewise. | |
6535 | * go-lang.c (go_language_data): Likewise. | |
6536 | * language.c (language_defn::watch_location_expression): Member | |
6537 | function implementation from c_watch_location_expression. | |
6538 | (unknown_language_data): Delete la_watch_location_expression | |
6539 | initializer. | |
6540 | (auto_language_data): Likewise. | |
6541 | * language.h (language_data): Delete la_watch_location_expression | |
6542 | field. | |
6543 | (language_defn::watch_location_expression): Declare new member | |
6544 | function. | |
6545 | * m2-lang.c (m2_language_data): Delete | |
6546 | la_watch_location_expression initializer. | |
6547 | * objc-lang.c (objc_language_data): Likewise. | |
6548 | * opencl-lang.c (opencl_language_data): Likewise. | |
6549 | * p-lang.c (pascal_language_data): Likewise. | |
6550 | * rust-lang.c (rust_watch_location_expression): Rename to | |
6551 | rust_language::watch_location_expression. | |
6552 | (rust_language_data): Delete la_watch_location_expression | |
6553 | initializer. | |
6554 | (rust_language::watch_location_expression): New member function, | |
6555 | implementation from rust_watch_location_expression. | |
6556 | ||
7e56227d AB |
6557 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
6558 | ||
6559 | * ada-lang.c (ada_collect_symbol_completion_matches): Rename to | |
6560 | ada_language::collect_symbol_completion_matches. | |
6561 | (ada_language_data): Delete la_collect_symbol_completion_matches | |
6562 | initializer. | |
6563 | (ada_language::collect_symbol_completion_matches): New member | |
6564 | function, implementation from | |
6565 | ada_collect_symbol_completion_matches. | |
6566 | * c-lang.c (c_language_data): Delete | |
6567 | la_collect_symbol_completion_matches initializer. | |
6568 | (cplus_language_data): Likewise. | |
6569 | (asm_language_data): Likewise. | |
6570 | (minimal_language_data): Likewise. | |
6571 | * d-lang.c (d_language_data): Likewise. | |
6572 | * f-lang.c (f_collect_symbol_completion_matches): Rename to | |
6573 | f_language::collect_symbol_completion_matches. | |
6574 | (f_language_data): Delete la_collect_symbol_completion_matches | |
6575 | initializer. | |
6576 | (f_language::collect_symbol_completion_matches) New member | |
6577 | function, implementation from f_collect_symbol_completion_matches. | |
6578 | * go-lang.c (go_language_data): Delete | |
6579 | la_collect_symbol_completion_matches initializer. | |
6580 | * language.c (unknown_language_data): Likewise. | |
6581 | (auto_language_data): Likewise. | |
6582 | * language.h (language_data): Delete | |
6583 | la_collect_symbol_completion_matches field. | |
6584 | (language_defn::collect_symbol_completion_matches): New member | |
6585 | function. | |
6586 | * m2-lang.c (m2_language_data): Delete | |
6587 | la_collect_symbol_completion_matches initializer. | |
6588 | * objc-lang.c (objc_language_data): Likewise. | |
6589 | * opencl-lang.c (opencl_language_data): Likewise. | |
6590 | * p-lang.c (pascal_language_data): Likewise. | |
6591 | * rust-lang.c (rust_language_data): Likewise. | |
6592 | * symtab.c (default_collect_symbol_completion_matches): Delete. | |
6593 | (collect_symbol_completion_matches): Update call to | |
6594 | collect_symbol_completion_matches. | |
6595 | (collect_symbol_completion_matches_type): Likewise. | |
6596 | * symtab.h (default_collect_symbol_completion_matches): Delete | |
6597 | declaration. | |
6598 | ||
53fc67f8 AB |
6599 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
6600 | ||
6601 | * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete. | |
6602 | (ada_language_data): Delete la_word_break_characters initializer. | |
6603 | (ada_language::word_break_characters): New member function. | |
6604 | * c-lang.c (c_language_data): Delete la_word_break_characters | |
6605 | initializer. | |
6606 | (cplus_language_data): Likewise. | |
6607 | (asm_language_data): Likewise. | |
6608 | (minimal_language_data): Likewise. | |
6609 | * completer.c: Update global comment. | |
6610 | (advance_to_expression_complete_word_point): Update call to | |
6611 | word_break_characters. | |
6612 | (complete_files_symbols): Likewise. | |
6613 | (complete_line_internal_1): Likewise. | |
6614 | (default_completer_handle_brkchars): Likewise. | |
6615 | (skip_quoted_chars): Likewise. | |
6616 | * d-lang.c (d_language_data): Delete la_word_break_characters | |
6617 | initializer. | |
6618 | * f-lang.c (f_word_break_characters): Delete. | |
6619 | (f_language_data): Delete la_word_break_characters initializer. | |
6620 | (f_language::word_break_characters): New member function. | |
6621 | * go-lang.c (go_language_data): Delete la_word_break_characters | |
6622 | initializer. | |
6623 | * language.c (unknown_language_data): Likewise. | |
6624 | (auto_language_data): Likewise. | |
6625 | * language.h (default_word_break_characters): Move declaration to | |
6626 | earlier in the file. | |
6627 | (language_data): Delete la_word_break_characters field. | |
6628 | (language_defn::word_break_characters): New member function. | |
6629 | * m2-lang.c (m2_language_data): Delete la_word_break_characters | |
6630 | initializer. | |
6631 | * objc-lang.c (objc_language_data): Likewise. | |
6632 | * opencl-lang.c (opencl_language_data): Likewise. | |
6633 | * p-lang.c (pascal_language_data): Likewise. | |
6634 | * rust-lang.c (rust_language_data): Likewise. | |
6635 | ||
c9debfb9 AB |
6636 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
6637 | ||
6638 | * ada-lang.c (ada_get_symbol_name_matcher): Update header comment. | |
6639 | (ada_language_data): Delete la_get_symbol_name_matcher | |
6640 | initializer. | |
6641 | (language_defn::get_symbol_name_matcher_inner): New member | |
6642 | function. | |
6643 | * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher | |
6644 | initializer. | |
6645 | (cplus_language_data): Likewise. | |
6646 | (cplus_language::get_symbol_name_matcher_inner): New member | |
6647 | function. | |
6648 | (asm_language_data): Delete la_get_symbol_name_matcher initializer. | |
6649 | (minimal_language_data): Likewise. | |
6650 | * cp-support.h (cp_get_symbol_name_matcher): Update header comment. | |
6651 | * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher | |
6652 | initializer. | |
6653 | * dictionary.c (iter_match_first_hashed): Update call to | |
6654 | get_symbol_name_matcher. | |
6655 | (iter_match_next_hashed): Likewise. | |
6656 | (iter_match_next_linear): Likewise. | |
6657 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise. | |
6658 | * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher | |
6659 | initializer. | |
6660 | (f_language::get_symbol_name_matcher_inner): New member function. | |
6661 | * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher | |
6662 | initializer. | |
6663 | * language.c (default_symbol_name_matcher): Update header comment, | |
6664 | make static. | |
6665 | (language_defn::get_symbol_name_matcher): New definition. | |
6666 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
6667 | (get_symbol_name_matcher): Delete. | |
6668 | (unknown_language_data): Delete la_get_symbol_name_matcher | |
6669 | initializer. | |
6670 | (auto_language_data): Likewise. | |
6671 | * language.h (language_data): Delete la_get_symbol_name_matcher | |
6672 | field. | |
6673 | (language_defn::get_symbol_name_matcher): New member function. | |
6674 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
6675 | (default_symbol_name_matcher): Delete declaration. | |
6676 | * linespec.c (find_methods): Update call to | |
6677 | get_symbol_name_matcher. | |
6678 | * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher | |
6679 | initializer. | |
6680 | * minsyms.c (lookup_minimal_symbol): Update call to | |
6681 | get_symbol_name_matcher. | |
6682 | (iterate_over_minimal_symbols): Likewise. | |
6683 | * objc-lang.c (objc_language_data): Delete | |
6684 | la_get_symbol_name_matcher initializer. | |
6685 | * opencl-lang.c (opencl_language_data): Likewise. | |
6686 | * p-lang.c (pascal_language_data): Likewise. | |
6687 | * psymtab.c (psymbol_name_matches): Update call to | |
6688 | get_symbol_name_matcher. | |
6689 | * rust-lang.c (rust_language_data): Delete | |
6690 | la_get_symbol_name_matcher initializer. | |
6691 | * symtab.c (symbol_matches_search_name): Update call to | |
6692 | get_symbol_name_matcher. | |
6693 | (compare_symbol_name): Likewise. | |
6694 | ||
9a49ad8c AB |
6695 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
6696 | ||
6697 | * ada-lang.c (ada_language_data): Delete la_compute_program | |
6698 | initializer. | |
6699 | * c-lang.c (c_language_data): Likewise. | |
6700 | (c_language::compute_program): New member function. | |
6701 | (cplus_language_data): Delete la_compute_program initializer. | |
6702 | (cplus_language::compute_program): New member function. | |
6703 | (asm_language_data): Delete la_compute_program initializer. | |
6704 | (minimal_language_data): Likewise. | |
6705 | * c-lang.h (c_compute_program): Update comment. | |
6706 | (cplus_compute_program): Likewise. | |
6707 | * compile/compile-c-support.c (c_compute_program): Likewise. | |
6708 | (cplus_compute_program): Likewise. | |
6709 | * compile/compile.c (compile_to_object): Update call to | |
6710 | la_compute_program. | |
6711 | * d-lang.c (d_language_data): Delete la_compute_program | |
6712 | initializer. | |
6713 | * f-lang.c (f_language_data): Likewise. | |
6714 | * go-lang.c (go_language_data): Likewise. | |
6715 | * language.c (unknown_language_data): Likewise. | |
6716 | (auto_language_data): Likewise. | |
6717 | * language.h (language_data): Delete la_compute_program field. | |
6718 | (language_defn::compute_program): New member function. | |
6719 | * m2-lang.c (m2_language_data): Delete la_compute_program | |
6720 | initializer. | |
6721 | * objc-lang.c (objc_language_data): Likewise. | |
6722 | * opencl-lang.c (opencl_language_data): Likewise. | |
6723 | * p-lang.c (pascal_language_data): Likewise. | |
6724 | * rust-lang.c (rust_language_data): Likewise. | |
6725 | ||
eff93b4d AB |
6726 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
6727 | ||
6728 | * ada-lang.c (ada_language_data) Delete | |
6729 | la_class_name_from_physname initializer. | |
6730 | * c-lang.c (c_language_data): Likewise. | |
6731 | (cplus_language_data): Likewise. | |
6732 | (cplus_language::class_name_from_physname): New member function. | |
6733 | (asm_language_data): Delete la_class_name_from_physname | |
6734 | initializer. | |
6735 | (minimal_language_data): Likewise. | |
6736 | * d-lang.c (d_language_data): Likewise. | |
6737 | * dwarf2/read.c (guess_partial_die_structure_name): Update to call | |
6738 | method on language_defn class. | |
6739 | (guess_full_die_structure_name): Likewise. | |
6740 | * f-lang.c (f_language_data): Delete la_class_name_from_physname | |
6741 | initializer. | |
6742 | * go-lang.c (go_language_data): Likewise. | |
6743 | * language.c (language_class_name_from_physname): Delete. | |
6744 | (unk_lang_class_name): Delete. | |
6745 | (unknown_language_data): Delete la_class_name_from_physname | |
6746 | initializer. | |
6747 | (auto_language_data): Likewise. | |
6748 | * language.h (language_data): Delete la_class_name_from_physname | |
6749 | field. | |
6750 | (language_defn::class_name_from_physname): New function. | |
6751 | (language_class_name_from_physname): Delete declaration. | |
6752 | * m2-lang.c (m2_language_data): Delete la_class_name_from_physname | |
6753 | initializer. | |
6754 | * objc-lang.c (objc_language_data): Likewise. | |
6755 | * opencl-lang.c (opencl_language_data): Likewise. | |
6756 | * p-lang.c (pascal_language_data): Likewise. | |
6757 | * rust-lang.c (rust_language_data): Likewise. | |
6758 | ||
de543742 TT |
6759 | 2020-06-16 Tom Tromey <tom@tromey.com> |
6760 | ||
6761 | * tui/tui-data.h (STATUS_NAME): New macro. | |
6762 | * tui/tui-layout.c (tui_remove_some_windows) | |
6763 | (initialize_known_windows, tui_register_window) | |
6764 | (tui_layout_split::remove_windows, initialize_layouts) | |
6765 | (tui_new_layout_command): Don't use hard-coded window names. | |
6766 | ||
a350efd4 TT |
6767 | 2020-06-16 Tom Tromey <tom@tromey.com> |
6768 | ||
6769 | PR tui/25348: | |
6770 | * tui/tui.c (tui_ensure_readline_initialized): Rename from | |
6771 | tui_initialize_readline. Only run once. Call rl_initialize. | |
6772 | * tui/tui.h (tui_ensure_readline_initialized): Rename from | |
6773 | tui_initialize_readline. | |
6774 | * tui/tui-io.c (tui_setup_io): Call | |
6775 | tui_ensure_readline_initialized. | |
6776 | * tui/tui-interp.c (tui_interp::init): Update. | |
6777 | ||
39ec0490 TT |
6778 | 2020-06-16 Tom Tromey <tom@tromey.com> |
6779 | ||
6780 | * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic. | |
6781 | Also preserve the status window. | |
6782 | ||
d2d1ea20 TT |
6783 | 2020-06-16 Tom Tromey <tom@tromey.com> |
6784 | ||
6785 | * python/py-tui.c (tui_py_window::~tui_py_window): Handle case | |
6786 | where m_window==nullptr. | |
6787 | ||
66920317 TT |
6788 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
6789 | ||
6790 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
6791 | Update. | |
6792 | (windows_nat::handle_ms_vc_exception): Update. | |
6793 | * target.h (target_read_string): Change API. | |
6794 | * target.c (target_read_string): Change API. | |
6795 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
6796 | Update. | |
6797 | * solib-frv.c (frv_current_sos): Update. | |
6798 | * solib-dsbt.c (dsbt_current_sos): Update. | |
6799 | * solib-darwin.c (darwin_current_sos): Update. | |
6800 | * linux-thread-db.c (inferior_has_bug): Update. | |
6801 | * expprint.c (print_subexp_standard): Update. | |
6802 | * ada-lang.c (ada_main_name, ada_tag_name_from_tsd) | |
6803 | (ada_exception_message_1): Update. | |
6804 | ||
a5d871dd TT |
6805 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
6806 | ||
6807 | * linux-tdep.c (dump_mapping_p): Use target_read_memory. | |
6808 | ||
670e35fa TT |
6809 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
6810 | ||
6811 | * valprint.c (read_string): Update comment. | |
6812 | * target.c (MIN): Remove. | |
6813 | (target_read_string): Rewrite. | |
6814 | ||
f5272a3b TT |
6815 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
6816 | ||
6817 | * corefile.c (read_memory_string): Remove. | |
6818 | * ada-valprint.c (ada_value_print_ptr): Update. | |
6819 | * ada-lang.h (ada_tag_name): Change return type. | |
6820 | * ada-lang.c (type_from_tag): Update. | |
6821 | (ada_tag_name_from_tsd): Change return type. Use | |
6822 | target_read_string. | |
6823 | (ada_tag_name): Likewise. | |
6824 | * gdbcore.h (read_memory_string): Don't declare. | |
6825 | ||
2c074f49 HD |
6826 | 2020-06-14 Hannes Domani <ssbssa@yahoo.de> |
6827 | ||
6828 | * symtab.c (rbreak_command): Ignore Windows drive colon. | |
6829 | ||
6a17d503 SM |
6830 | 2020-06-12 Simon Marchi <simon.marchi@efficios.com> |
6831 | ||
6832 | * NEWS: Mention removed GDBserver host support. | |
6833 | ||
453c733f NC |
6834 | 2020-06-12 Nelson Chu <nelson.chu@sifive.com> |
6835 | ||
6836 | * features/riscv/rebuild-csr-xml.sh: Updated. | |
6837 | ||
2b4e6a3f TT |
6838 | 2020-06-11 Tom Tromey <tom@tromey.com> |
6839 | ||
6840 | PR gdb/18318: | |
6841 | * c-exp.y (lex_one_token): Handle 'p' like 'e'. | |
6842 | ||
4412332f JG |
6843 | 2020-06-09 Jonny Grant <jg@jguk.org> |
6844 | 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca> | |
6845 | ||
6846 | * main.c (captured_main_1): Don't print new line after help. | |
6847 | (print_gdb_help): add mailing list and IRC channel information | |
6848 | to --help. Add new lines between items in the footer. Remove | |
6849 | quotes around bug url. | |
6850 | ||
2f33032a KS |
6851 | 2020-06-11 Keith Seitz <keiths@redhat.com> |
6852 | ||
6853 | PR gdb/21356 | |
6854 | * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct): | |
6855 | Resolve typedefs for type length calculations. | |
6856 | ||
7ab96794 TV |
6857 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
6858 | ||
6859 | PR ada/24713 | |
6860 | * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack. | |
6861 | (write_psymbols): Enable .gdb_index for ada. | |
6862 | * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for | |
6863 | ada. | |
6864 | ||
e5f3ece2 TV |
6865 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
6866 | ||
6867 | * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ... | |
6868 | (dw2_symtab_iter_init): ... here. Add variant with "offset_type | |
6869 | namei" instead of "const char *name" argument. | |
6870 | (dw2_map_matching_symbols): Use "offset_type namei" variant of | |
6871 | dw2_symtab_iter_init. | |
6872 | ||
940da03e SM |
6873 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
6874 | ||
6875 | * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites | |
6876 | to use type::field and field::type instead. | |
6877 | ||
b6cdac4b SM |
6878 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
6879 | ||
6880 | * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites | |
6881 | to use field::type instead. | |
6882 | ||
5d14b6e5 SM |
6883 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
6884 | ||
6885 | * gdbtypes.h (struct field) <type, set_type>: New methods. | |
6886 | Rename `type` field to... | |
6887 | <m_type>: ... this. Change references throughout to use type or | |
6888 | set_type methods. | |
6889 | (FIELD_TYPE): Use field::type. Change call sites that modify | |
6890 | the field's type to use field::set_type instead. | |
6891 | ||
3d967001 SM |
6892 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
6893 | ||
6894 | * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites | |
6895 | to use type::index_type instead. | |
6896 | ||
262abc0d SM |
6897 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
6898 | ||
6899 | * gdbtypes.h (struct type) <index_type, set_index_type>: New | |
6900 | methods. | |
6901 | (TYPE_INDEX_TYPE): Use type::index_type. | |
6902 | * gdbtypes.c (create_array_type_with_stride): Likewise. | |
6903 | ||
82836c92 TT |
6904 | 2020-06-07 Tom Tromey <tom@tromey.com> |
6905 | ||
6906 | * valprint.c (generic_val_print_float): Remove "embedded_offset" | |
6907 | parameter. | |
6908 | (generic_value_print): Update. | |
6909 | ||
940dace9 AB |
6910 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
6911 | ||
6912 | Revert commit 982a38f60b0. | |
6913 | * python/py-tui.c (gdbpy_tui_set_title): Restore use of get. | |
6914 | ||
982a38f6 AB |
6915 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
6916 | ||
6917 | * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to | |
6918 | avoid use after free. | |
6919 | ||
82f06518 TV |
6920 | 2020-06-05 Tom de Vries <tdevries@suse.de> |
6921 | ||
6922 | * NEWS: Fix typos. | |
6923 | ||
f8c41851 SM |
6924 | 2020-06-04 Simon Marchi <simon.marchi@efficios.com> |
6925 | ||
6926 | * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in | |
6927 | the per_bfd object. | |
6928 | (dwarf2_read_debug_names): Likewise. | |
6929 | (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd | |
6930 | object when re-using a per_bfd object with an index. | |
6931 | ||
f9b5d5ea TV |
6932 | 2020-06-03 Tom de Vries <tdevries@suse.de> |
6933 | ||
6934 | PR symtab/26046 | |
6935 | * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram | |
6936 | children for C++. | |
6937 | (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of | |
6938 | DW_TAG_subprogram. | |
6939 | ||
f6eee2d0 AB |
6940 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
6941 | ||
6942 | * ada-lang.c (ada_language_data): Delete skip_trampoline | |
6943 | initializer. | |
6944 | * c-lang.c (c_language_data): Likewise. | |
6945 | (cplus_language_data): Likewise. | |
6946 | (cplus_language::skip_trampoline): New member function. | |
6947 | (asm_language_data): Delete skip_trampoline initializer. | |
6948 | (minimal_language_data): Likewise. | |
6949 | * d-lang.c (d_language_data): Likewise. | |
6950 | * f-lang.c (f_language_data): Likewise. | |
6951 | * go-lang.c (go_language_data): Likewise. | |
6952 | * language.c (unk_lang_trampoline): Delete function. | |
6953 | (skip_language_trampoline): Update. | |
6954 | (unknown_language_data): Delete skip_trampoline initializer. | |
6955 | (auto_language_data): Likewise. | |
6956 | * language.h (language_data): Delete skip_trampoline field. | |
6957 | (language_defn::skip_trampoline): New function. | |
6958 | * m2-lang.c (m2_language_data): Delete skip_trampoline | |
6959 | initializer. | |
6960 | * objc-lang.c (objc_skip_trampoline): Delete function, move | |
6961 | implementation to objc_language::skip_trampoline. | |
6962 | (objc_language_data): Delete skip_trampoline initializer. | |
6963 | (objc_language::skip_trampoline): New member function with | |
6964 | implementation from objc_skip_trampoline. | |
6965 | * opencl-lang.c (opencl_language_data): Delete skip_trampoline | |
6966 | initializer. | |
6967 | * p-lang.c (pascal_language_data): Likewise. | |
6968 | * rust-lang.c (rust_language_data): Likewise. | |
6969 | ||
0a50df5d AB |
6970 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
6971 | ||
6972 | * ada-lang.c (ada_language_data): Delete la_demangle initializer. | |
6973 | (ada_language::demangle): New member function. | |
6974 | * c-lang.c (c_language_data): Delete la_demangle initializer. | |
6975 | (cplus_language_data): Delete la_demangle initializer. | |
6976 | (cplus_language::demangle): New member function. | |
6977 | (asm_language_data): Delete la_demangle initializer. | |
6978 | (minimal_language_data): Delete la_demangle initializer. | |
6979 | * d-lang.c (d_language_data): Delete la_demangle initializer. | |
6980 | (d_language::demangle): New member function. | |
6981 | * f-lang.c (f_language_data): Delete la_demangle initializer. | |
6982 | (f_language::demangle): New member function. | |
6983 | * go-lang.c (go_language_data): Delete la_demangle initializer. | |
6984 | (go_language::demangle): New member function. | |
6985 | * language.c (language_demangle): Update. | |
6986 | (unk_lang_demangle): Delete. | |
6987 | (unknown_language_data): Delete la_demangle initializer. | |
6988 | (unknown_language::demangle): New member function. | |
6989 | (auto_language_data): Delete la_demangle initializer. | |
6990 | (auto_language::demangle): New member function. | |
6991 | * language.h (language_data): Delete la_demangle field. | |
6992 | (language_defn::demangle): New function. | |
6993 | * m2-lang.c (m2_language_data): Delete la_demangle initializer. | |
6994 | * objc-lang.c (objc_language_data): Delete la_demangle | |
6995 | initializer. | |
6996 | (objc_language::demangle): New member function. | |
6997 | * opencl-lang.c (opencl_language_data): Delete la_demangle | |
6998 | initializer. | |
6999 | * p-lang.c (pascal_language_data): Likewise. | |
7000 | * rust-lang.c (rust_language_data): Likewise. | |
7001 | (rust_language::demangle): New member function. | |
7002 | ||
fbfb0a46 AB |
7003 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7004 | ||
7005 | * ada-lang.c (ada_language_data): Delete la_print_type | |
7006 | initializer. | |
7007 | (ada_language::print_type): New member function. | |
7008 | * c-lang.c (c_language_data): Delete la_print_type initializer. | |
7009 | (c_language::print_type): New member function. | |
7010 | (cplus_language_data): Delete la_print_type initializer. | |
7011 | (cplus_language::print_type): New member function. | |
7012 | (asm_language_data): Delete la_print_type initializer. | |
7013 | (asm_language::print_type): New member function. | |
7014 | (minimal_language_data): Delete la_print_type initializer. | |
7015 | (minimal_language::print_type): New member function. | |
7016 | * d-lang.c (d_language_data): Delete la_print_type initializer. | |
7017 | (d_language::print_type): New member function. | |
7018 | * f-lang.c (f_language_data): Delete la_print_type initializer. | |
7019 | (f_language::print_type): New member function. | |
7020 | * go-lang.c (go_language_data): Delete la_print_type initializer. | |
7021 | (go_language::print_type): New member function. | |
7022 | * language.c (unk_lang_print_type): Delete. | |
7023 | (unknown_language_data): Delete la_print_type initializer. | |
7024 | (unknown_language::print_type): New member function. | |
7025 | (auto_language_data): Delete la_print_type initializer. | |
7026 | (auto_language::print_type): New member function. | |
7027 | * language.h (language_data): Delete la_print_type field. | |
7028 | (language_defn::print_type): New function. | |
7029 | (LA_PRINT_TYPE): Update. | |
7030 | * m2-lang.c (m2_language_data): Delete la_print_type initializer. | |
7031 | (m2_language::print_type): New member function. | |
7032 | * objc-lang.c (objc_language_data): Delete la_print_type | |
7033 | initializer. | |
7034 | (objc_language::print_type): New member function. | |
7035 | * opencl-lang.c (opencl_print_type): Delete, implementation moved | |
7036 | to opencl_language::print_type. | |
7037 | (opencl_language_data): Delete la_print_type initializer. | |
7038 | (opencl_language::print_type): New member function, implementation | |
7039 | from opencl_print_type. | |
7040 | * p-lang.c (pascal_language_data): Delete la_print_type | |
7041 | initializer. | |
7042 | (pascal_language::print_type): New member function. | |
7043 | * rust-lang.c (rust_print_type): Delete, implementation moved to | |
7044 | rust_language::print_type. | |
7045 | (rust_language_data): Delete la_print_type initializer. | |
7046 | (rust_language::print_type): New member function, implementation | |
7047 | from rust_print_type. | |
7048 | ||
6f827019 AB |
7049 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7050 | ||
7051 | * ada-lang.c (ada_sniff_from_mangled_name): Delete function, | |
7052 | implementation moves to... | |
7053 | (ada_language::sniff_from_mangled_name): ...here. Update return | |
7054 | type. | |
7055 | (ada_language_data): Delete la_sniff_from_mangled_name | |
7056 | initializer. | |
7057 | * c-lang.c (c_language_data): Likewise. | |
7058 | (cplus_language_data): Likewise. | |
7059 | (cplus_language::sniff_from_mangled_name): New member function, | |
7060 | implementation taken from gdb_sniff_from_mangled_name. | |
7061 | (asm_language_data): Delete la_sniff_from_mangled_name | |
7062 | initializer. | |
7063 | (minimal_language_data): Likewise. | |
7064 | * cp-support.c (gdb_sniff_from_mangled_name): Delete, | |
7065 | implementation moves to cplus_language::sniff_from_mangled_name. | |
7066 | * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration. | |
7067 | * d-lang.c (d_sniff_from_mangled_name): Delete, implementation | |
7068 | moves to... | |
7069 | (d_language::sniff_from_mangled_name): ...here. | |
7070 | (d_language_data): Delete la_sniff_from_mangled_name initializer. | |
7071 | * f-lang.c (f_language_data): Likewise. | |
7072 | * go-lang.c (go_sniff_from_mangled_name): Delete, implementation | |
7073 | moves to... | |
7074 | (go_language::sniff_from_mangled_name): ...here. | |
7075 | (go_language_data): Delete la_sniff_from_mangled_name initializer. | |
7076 | * language.c (language_sniff_from_mangled_name): Delete. | |
7077 | (unknown_language_data): Delete la_sniff_from_mangled_name | |
7078 | initializer. | |
7079 | (auto_language_data): Likewise. | |
7080 | * language.h (language_data): Delete la_sniff_from_mangled_name | |
7081 | field. | |
7082 | (language_defn::sniff_from_mangled_name): New function. | |
7083 | (language_sniff_from_mangled_name): Delete declaration. | |
7084 | * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name | |
7085 | field. | |
7086 | * objc-lang.c (objc_sniff_from_mangled_name): Delete, | |
7087 | implementation moves to... | |
7088 | (objc_language::sniff_from_mangled_name): ...here. | |
7089 | (objc_language_data): Delete la_sniff_from_mangled_name initializer. | |
7090 | * opencl-lang.c (opencl_language_data): Likewise. | |
7091 | * p-lang.c (pascal_language_data): Likewise. | |
7092 | * rust-lang.c (rust_sniff_from_mangled_name): Delete, | |
7093 | implementation moves to... | |
7094 | (rust_language::sniff_from_mangled_name): ...here. | |
7095 | (rust_language_data): Delete la_sniff_from_mangled_name | |
7096 | initializer. | |
7097 | * symtab.c (symbol_find_demangled_name): Call | |
7098 | sniff_from_mangled_name member function. | |
7099 | ||
fb8006fd AB |
7100 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7101 | ||
7102 | * ada-lang.c (ada_language_data): Delete la_search_name_hash | |
7103 | initializer. | |
7104 | * c-lang.c (c_language_data): Likewise. | |
7105 | (cplus_language_data): Likewise. | |
7106 | (cplus_language::search_name_hash): New member function. | |
7107 | (asm_language_data): Delete la_search_name_hash initializer. | |
7108 | (minimal_language_data): Likewise. | |
7109 | * d-lang.c (d_language_data): Likewise. | |
7110 | * dictionary.c (default_search_name_hash): Rename to... | |
7111 | (language_defn::search_name_hash): ...this. | |
7112 | * f-lang.c (f_language_data): Likewise. | |
7113 | (f_language::search_name_hash): New member function. | |
7114 | * go-lang.c (go_language_data): Delete la_search_name_hash | |
7115 | initializer. | |
7116 | * language.c (unknown_language_data): Likewise. | |
7117 | (auto_language_data): Likewise. | |
7118 | * language.h (struct language_data): Delete la_search_name_hash | |
7119 | field. | |
7120 | (language_defn::search_name_hash): Declare new member function. | |
7121 | (default_search_name_hash): Delete declaration. | |
7122 | * m2-lang.c (m2_language_data): Delete la_search_name_hash | |
7123 | initializer. | |
7124 | * objc-lang.c (objc_language_data): Likewise. | |
7125 | * opencl-lang.c (opencl_language_data): Likewise. | |
7126 | * p-lang.c (pascal_language_data): Likewise. | |
7127 | * rust-lang.c (rust_language_data): Likewise. | |
7128 | * symtab.c (search_name_hash): Update call. | |
7129 | ||
8e25bafe AB |
7130 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7131 | ||
7132 | * ada-lang.c (ada_language_data): Delete la_get_compile_instance | |
7133 | initializer. | |
7134 | * c-lang.c (class compile_instance): Declare. | |
7135 | (c_language_data): Delete la_get_compile_instance initializer. | |
7136 | (c_language::get_compile_instance): New member function. | |
7137 | (cplus_language_data): Delete la_get_compile_instance initializer. | |
7138 | (cplus_language::get_compile_instance): New member function. | |
7139 | (asm_language_data): Delete la_get_compile_instance initializer. | |
7140 | (minimal_language_data): Likewise. | |
7141 | * c-lang.h (c_get_compile_context): Update comment. | |
7142 | (cplus_get_compile_context): Update comment. | |
7143 | * compile/compile.c (compile_to_object): Update calls, don't rely | |
7144 | on function pointer being NULL. | |
7145 | * d-lang.c (d_language_data): Delete la_get_compile_instance | |
7146 | initializer. | |
7147 | * f-lang.c (f_language_data): Likewise. | |
7148 | * go-lang.c (go_language_data): Likewise. | |
7149 | * language.c (unknown_language_data): Likewise. | |
7150 | (auto_language_data): Likewise. | |
7151 | * language.h (language_data): Delete la_get_compile_instance field. | |
7152 | (language_defn::get_compile_instance): New member function. | |
7153 | * m2-lang.c (m2_language_data): Delete la_get_compile_instance | |
7154 | initializer. | |
7155 | * objc-lang.c (objc_language_data): Likewise. | |
7156 | * opencl-lang.c (opencl_language_data): Likewise. | |
7157 | * p-lang.c (pascal_language_data): Likewise. | |
7158 | * rust-lang.c (rust_language_data): Likewise. | |
7159 | ||
4009ee92 AB |
7160 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7161 | ||
7162 | * ada-lang.c (ada_add_all_symbols): Update comment. | |
7163 | (ada_iterate_over_symbols): Delete, move implementation to... | |
7164 | (ada_language::iterate_over_symbols): ...here, a new member | |
7165 | function, rewrite to use range based for loop. | |
7166 | (ada_language_data): Delete la_iterate_over_symbols initializer. | |
7167 | * c-lang.c (c_language_data): Likewise. | |
7168 | (cplus_language_data): Likewise. | |
7169 | (asm_language_data): Likewise. | |
7170 | (minimal_language_data): Likewise. | |
7171 | * d-lang.c (d_language_data): Likewise. | |
7172 | * f-lang.c (f_language_data): Likewise. | |
7173 | * go-lang.c (go_language_data): Likewise. | |
7174 | * language.c (unknown_language_data): Likewise. | |
7175 | (auto_language_data): Likewise. | |
7176 | * language.h (language_data): Delete la_iterate_over_symbols field. | |
7177 | (language_defn::iterate_over_symbols): New member function. | |
7178 | (LA_ITERATE_OVER_SYMBOLS): Update. | |
7179 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
7180 | * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols | |
7181 | initializer. | |
7182 | * objc-lang.c (objc_language_data): Likewise. | |
7183 | * opencl-lang.c (opencl_language_data): Likewise. | |
7184 | * p-lang.c (pascal_language_data): Likewise. | |
7185 | * rust-lang.c (rust_language_data): Likewise. | |
7186 | ||
54f4ca46 AB |
7187 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7188 | ||
7189 | * ada-lang.c (ada_language_data): Delete | |
7190 | la_lookup_transparent_type initializer. | |
7191 | * c-lang.c (c_language_data): Likewise. | |
7192 | (cplus_language_data): Likewise. | |
7193 | (cplus_language::lookup_transparent_type): New member function. | |
7194 | (asm_language_data): Delete la_lookup_transparent_type | |
7195 | initializer. | |
7196 | (minimal_language_data): Likewise. | |
7197 | * d-lang.c (d_language_data): Likewise. | |
7198 | * f-lang.c (f_language_data): Likewise. | |
7199 | * go-lang.c (go_language_data): Likewise. | |
7200 | * language.c (unknown_language_data): Likewise. | |
7201 | (auto_language_data): Likewise. | |
7202 | * language.h (struct language_data): Delete | |
7203 | la_lookup_transparent_type field. | |
7204 | (language_defn::lookup_transparent_type): New member function. | |
7205 | * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type | |
7206 | initializer. | |
7207 | * objc-lang.c (objc_language_data): Likewise. | |
7208 | * opencl-lang.c (opencl_language_data): Likewise. | |
7209 | * p-lang.c (pascal_language_data): Likewise. | |
7210 | * rust-lang.c (rust_language_data): Likewise. | |
7211 | * symtab.c (symbol_matches_domain): Update call. | |
7212 | ||
1fb314aa AB |
7213 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7214 | ||
7215 | * ada-lang.c (ada_language_arch_info): Delete function, move | |
7216 | implementation to... | |
7217 | (ada_language::language_arch_info): ...here, a new member | |
7218 | function. | |
7219 | (ada_language_data): Delete la_language_arch_info. | |
7220 | * c-lang.c (c_language_data): Likewise. | |
7221 | (c_language::language_arch_info): New member function. | |
7222 | (cplus_language_arch_info): Delete function, move | |
7223 | implementation to... | |
7224 | (cplus_language::language_arch_info): ...here, a new member | |
7225 | function. | |
7226 | (cplus_language_data): Delete la_language_arch_info. | |
7227 | (asm_language_data): Likewise. | |
7228 | (asm_language::language_arch_info): New member function. | |
7229 | (minimal_language_data): Delete la_language_arch_info. | |
7230 | (minimal_language::language_arch_info): New member function. | |
7231 | * d-lang.c (d_language_arch_info): Delete function, move | |
7232 | implementation to... | |
7233 | (d_language::language_arch_info): ...here, a new member | |
7234 | function. | |
7235 | (d_language_data): Delete la_language_arch_info. | |
7236 | * f-lang.c (f_language_arch_info): Delete function, move | |
7237 | implementation to... | |
7238 | (f_language::language_arch_info): ...here, a new member | |
7239 | function. | |
7240 | (f_language_data): Delete la_language_arch_info. | |
7241 | * go-lang.c (go_language_arch_info): Delete function, move | |
7242 | implementation to... | |
7243 | (go_language::language_arch_info): ...here, a new member | |
7244 | function. | |
7245 | (go_language_data): Delete la_language_arch_info. | |
7246 | * language.c (unknown_language_data): Likewise. | |
7247 | (unknown_language::language_arch_info): New member function. | |
7248 | (auto_language_data): Delete la_language_arch_info. | |
7249 | (auto_language::language_arch_info): New member function. | |
7250 | (language_gdbarch_post_init): Update call to | |
7251 | la_language_arch_info. | |
7252 | * language.h (language_data): Delete la_language_arch_info | |
7253 | function pointer. | |
7254 | (language_defn::language_arch_info): New function. | |
7255 | * m2-lang.c (m2_language_arch_info): Delete function, move | |
7256 | implementation to... | |
7257 | (m2_language::language_arch_info): ...here, a new member | |
7258 | function. | |
7259 | (m2_language_data): Delete la_language_arch_info. | |
7260 | * objc-lang.c (objc_language_arch_info): Delete function, move | |
7261 | implementation to... | |
7262 | (objc_language::language_arch_info): ...here, a new member | |
7263 | function. | |
7264 | (objc_language_data): Delete la_language_arch_info. | |
7265 | * opencl-lang.c (opencl_language_arch_info): Delete function, move | |
7266 | implementation to... | |
7267 | (opencl_language::language_arch_info): ...here, a new member | |
7268 | function. | |
7269 | (opencl_language_data): Delete la_language_arch_info. | |
7270 | * p-lang.c (pascal_language_arch_info): Delete function, move | |
7271 | implementation to... | |
7272 | (pascal_language::language_arch_info): ...here, a new member | |
7273 | function. | |
7274 | (pascal_language_data): Delete la_language_arch_info. | |
7275 | * rust-lang.c (rust_language_arch_info): Delete function, move | |
7276 | implementation to... | |
7277 | (rust_language::language_arch_info): ...here, a new member | |
7278 | function. | |
7279 | (rust_language_data): Delete la_language_arch_info. | |
7280 | ||
48448202 AB |
7281 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7282 | ||
7283 | * ada-lang.c (ada_language_data): Delete la_pass_by_reference | |
7284 | initializer. | |
7285 | * c-lang.c (c_language_data): Likewise. | |
7286 | (cplus_language_data): Likewise. | |
7287 | (cplus_language::pass_by_reference_info): New method. | |
7288 | (asm_language_data): Delete la_pass_by_reference initializer. | |
7289 | (minimal_language_data): Likewise. | |
7290 | * cp-abi.c (cp_pass_by_reference): Remove use of | |
7291 | default_pass_by_reference. | |
7292 | * d-lang.c (d_language_data): Likewise. | |
7293 | * f-lang.c (f_language_data): Likewise. | |
7294 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of | |
7295 | default_pass_by_reference. | |
7296 | * go-lang.c (go_language_data): Likewise. | |
7297 | * language.c (language_pass_by_reference): Update. | |
7298 | (default_pass_by_reference): Delete. | |
7299 | (unknown_language_data): Delete la_pass_by_reference | |
7300 | initializer. | |
7301 | (auto_language_data): Likewise. | |
7302 | * language.h (struct language_data): Delete la_pass_by_reference | |
7303 | field. | |
7304 | (language_defn::pass_by_reference_info): New member function. | |
7305 | (default_pass_by_reference): Delete declaration. | |
7306 | * m2-lang.c (m2_language_data): Delete la_pass_by_reference | |
7307 | initializer. | |
7308 | * objc-lang.c (objc_language_data): Likewise. | |
7309 | * opencl-lang.c (opencl_language_data): Likewise. | |
7310 | * p-lang.c (pascal_language_data): Likewise. | |
7311 | * rust-lang.c (rust_language_data): Likewise. | |
7312 | ||
15e5fd35 AB |
7313 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7314 | ||
7315 | * ada-lang.c (ada_read_var_value): Delete function, move | |
7316 | implementation to... | |
7317 | (ada_language::read_var_value): ...here. | |
7318 | (ada_language_data): Delete la_read_var_value initializer. | |
7319 | * c-lang.c (c_language_data): Likewise. | |
7320 | (cplus_language_data): Likewise. | |
7321 | (minimal_language_data): Likewise. | |
7322 | * d-lang.c (d_language_data): Likewise. | |
7323 | * f-lang.c (f_language_data): Likewise. | |
7324 | * findvar.c (default_read_var_value): Rename to... | |
7325 | (language_defn::read_var_value): ...this. | |
7326 | * findvar.c (read_var_value): Update header comment, and change to | |
7327 | call member function instead of function pointer. | |
7328 | * go-lang.c (go_language_data): Likewise. | |
7329 | * language.c (unknown_language_data): Delete la_read_var_value | |
7330 | initializer. | |
7331 | (auto_language_data): Likewise. | |
7332 | * language.h (struct language_data): Delete la_read_var_value | |
7333 | field. | |
7334 | (language_defn::read_var_value): New member function. | |
7335 | (default_read_var_value): Delete declaration. | |
7336 | * m2-lang.c (m2_language_data): Delete la_read_var_value | |
7337 | initializer. | |
7338 | * objc-lang.c (objc_language_data): Likewise. | |
7339 | * opencl-lang.c (opencl_language_data): Likewise. | |
7340 | * p-lang.c (pascal_language_data): Likewise. | |
7341 | * rust-lang.c (rust_language_data): Likewise. | |
7342 | * value.h (default_read_var_value): Delete declaration. | |
7343 | ||
5bd40f2a AB |
7344 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7345 | ||
7346 | * ada-lang.c (ada_print_array_index): Delete function, move | |
7347 | implementation to... | |
7348 | (ada_language::print_array_index): ...here. | |
7349 | (ada_language_data): Delete la_print_array_index initializer. | |
7350 | * c-lang.c (c_language_data): Likewise. | |
7351 | (cplus_language_data): Likewise. | |
7352 | (minimal_language_data): Likewise. | |
7353 | * d-lang.c (d_language_data): Likewise. | |
7354 | * f-lang.c (f_language_data): Likewise. | |
7355 | * go-lang.c (go_language_data): Likewise. | |
7356 | * language.c (default_print_array_index): Delete function, move | |
7357 | implementation to... | |
7358 | (language_defn::print_array_index): ...here. | |
7359 | (unknown_language_data): Delete la_print_array_index initializer. | |
7360 | (auto_language_data): Likewise. | |
7361 | * language.h (struct language_data): Delete la_print_array_index | |
7362 | field. | |
7363 | (language_defn::print_array_index): New member function. | |
7364 | (LA_PRINT_ARRAY_INDEX): Update. | |
7365 | (default_print_array_index): Delete declaration. | |
7366 | * m2-lang.c (m2_language_data): Delete la_print_array_index | |
7367 | initializer. | |
7368 | * objc-lang.c (objc_language_data): Likewise. | |
7369 | * opencl-lang.c (opencl_language_data): Likewise. | |
7370 | * p-lang.c (pascal_language_data): Likewise. | |
7371 | * rust-lang.c (rust_language_data): Likewise. | |
7372 | ||
0874fd07 AB |
7373 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7374 | ||
7375 | * gdb/ada-lang.c (ada_language_defn): Convert to... | |
7376 | (ada_language_data): ...this. | |
7377 | (class ada_language): New class. | |
7378 | (ada_language_defn): New static global. | |
7379 | * gdb/c-lang.c (c_language_defn): Convert to... | |
7380 | (c_language_data): ...this. | |
7381 | (class c_language): New class. | |
7382 | (c_language_defn): New static global. | |
7383 | (cplus_language_defn): Convert to... | |
7384 | (cplus_language_data): ...this. | |
7385 | (class cplus_language): New class. | |
7386 | (cplus_language_defn): New static global. | |
7387 | (asm_language_defn): Convert to... | |
7388 | (asm_language_data): ...this. | |
7389 | (class asm_language): New class. | |
7390 | (asm_language_defn): New static global. | |
7391 | (minimal_language_defn): Convert to... | |
7392 | (minimal_language_data): ...this. | |
7393 | (class minimal_language): New class. | |
7394 | (minimal_language_defn): New static global. | |
7395 | * gdb/d-lang.c (d_language_defn): Convert to... | |
7396 | (d_language_data): ...this. | |
7397 | (class d_language): New class. | |
7398 | (d_language_defn): New static global. | |
7399 | * gdb/f-lang.c (f_language_defn): Convert to... | |
7400 | (f_language_data): ...this. | |
7401 | (class f_language): New class. | |
7402 | (f_language_defn): New static global. | |
7403 | * gdb/go-lang.c (go_language_defn): Convert to... | |
7404 | (go_language_data): ...this. | |
7405 | (class go_language): New class. | |
7406 | (go_language_defn): New static global. | |
7407 | * gdb/language.c (unknown_language_defn): Remove declaration. | |
7408 | (current_language): Initialize to nullptr, real initialization is | |
7409 | moved to _initialize_language. | |
7410 | (languages): Delete global. | |
7411 | (language_defn::languages): Define. | |
7412 | (set_language_command): Use language_defn::languages. | |
7413 | (set_language): Likewise. | |
7414 | (range_error): Likewise. | |
7415 | (language_enum): Likewise. | |
7416 | (language_def): Likewise. | |
7417 | (add_set_language_command): Use language_def::languages for the | |
7418 | language list, and language_def to lookup language pointers. | |
7419 | (skip_language_trampoline): Use language_defn::languages. | |
7420 | (unknown_language_defn): Convert to... | |
7421 | (unknown_language_data): ...this. | |
7422 | (class unknown_language): New class. | |
7423 | (unknown_language_defn): New static global. | |
7424 | (auto_language_defn): Convert to... | |
7425 | (auto_language_data): ...this. | |
7426 | (class auto_language): New class. | |
7427 | (auto_language_defn): New static global. | |
7428 | (language_gdbarch_post_init): Use language_defn::languages. | |
7429 | (_initialize_language): Initialize current_language. | |
7430 | * gdb/language.h (struct language_defn): Rename to... | |
7431 | (struct language_data): ...this. | |
7432 | (struct language_defn): New. | |
7433 | (auto_language_defn): Delete. | |
7434 | (unknown_language_defn): Delete. | |
7435 | (minimal_language_defn): Delete. | |
7436 | (ada_language_defn): Delete. | |
7437 | (asm_language_defn): Delete. | |
7438 | (c_language_defn): Delete. | |
7439 | (cplus_language_defn): Delete. | |
7440 | (d_language_defn): Delete. | |
7441 | (f_language_defn): Delete. | |
7442 | (go_language_defn): Delete. | |
7443 | (m2_language_defn): Delete. | |
7444 | (objc_language_defn): Delete. | |
7445 | (opencl_language_defn): Delete. | |
7446 | (pascal_language_defn): Delete. | |
7447 | (rust_language_defn): Delete. | |
7448 | * gdb/m2-lang.c (m2_language_defn): Convert to... | |
7449 | (m2_language_data): ...this. | |
7450 | (class m2_language): New class. | |
7451 | (m2_language_defn): New static global. | |
7452 | * gdb/objc-lang.c (objc_language_defn): Convert to... | |
7453 | (objc_language_data): ...this. | |
7454 | (class objc_language): New class. | |
7455 | (objc_language_defn): New static global. | |
7456 | * gdb/opencl-lang.c (opencl_language_defn): Convert to... | |
7457 | (opencl_language_data): ...this. | |
7458 | (class opencl_language): New class. | |
7459 | (opencl_language_defn): New static global. | |
7460 | * gdb/p-lang.c (pascal_language_defn): Convert to... | |
7461 | (pascal_language_data): ...this. | |
7462 | (class pascal_language): New class. | |
7463 | (pascal_language_defn): New static global. | |
7464 | * gdb/rust-exp.y (rust_lex_tests): Use language_def to find | |
7465 | language pointer, update comment format. | |
7466 | * gdb/rust-lang.c (rust_language_defn): Convert to... | |
7467 | (rust_language_data): ...this. | |
7468 | (class rust_language): New class. | |
7469 | (rust_language_defn): New static global. | |
7470 | ||
1313c56e AB |
7471 | 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com> |
7472 | ||
7473 | * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New | |
7474 | member variable. | |
7475 | <m_stmt_at_address>: New member variable. | |
7476 | (lnp_state_machine::record_line): Don't record some lines, update | |
7477 | tracking of is_stmt at the same address. | |
7478 | (lnp_state_machine::lnp_state_machine): Initialise new member | |
7479 | variables. | |
7480 | ||
b7ed9f3d ST |
7481 | 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7482 | ||
7483 | * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add | |
7484 | "-include gnu-nat-mig.h". | |
7485 | * gnu-nat-mig.h: New file. | |
7486 | * gnu-nat.c: Include "gnu-nat-mig.h". | |
7487 | (exc_server, msg_reply_server, notify_server, | |
7488 | process_reply_server): Remove declarations. | |
7489 | ||
14a8ad62 ST |
7490 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7491 | ||
7492 | * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced, | |
7493 | steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup, | |
7494 | inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports, | |
7495 | inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports, | |
7496 | inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread, | |
7497 | inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal, | |
7498 | inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc, | |
7499 | proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port, | |
7500 | proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions | |
7501 | to gnu_nat_target class. | |
7502 | * gnu-nat.c: Likewise. | |
7503 | (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd, | |
7504 | set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd, | |
7505 | set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target | |
7506 | object. | |
7507 | (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this' | |
7508 | instead of `gnu_target'. | |
7509 | ||
0af5e106 ST |
7510 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7511 | ||
7512 | * i386-gnu-tdep.c: Include "gdbcore.h" | |
7513 | (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays. | |
7514 | (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL, | |
7515 | I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros | |
7516 | (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p, | |
7517 | i386_gnu_sigcontext_addr): New functions | |
7518 | (i386gnu_init_abi): Register i386_gnu_sigtramp_p, | |
7519 | i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch | |
7520 | tdep. | |
7521 | ||
078f2fc9 ST |
7522 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7523 | ||
7524 | * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call | |
7525 | before fork_inferior call. Avoid calling it if target_is_pushed returns | |
7526 | true. | |
7527 | ||
53dff92c ST |
7528 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7529 | ||
7530 | * gnu-nat.h (gnu_target): New variable declaration. | |
7531 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize | |
7532 | gnu_target. | |
7533 | * gnu-nat.c (gnu_target): New variable. | |
7534 | (inf_validate_procs): Pass gnu_target to thread_change_ptid, | |
7535 | add_thread_silent, and add_thread calls. | |
7536 | (gnu_nat_target::create_inferior): Pass gnu_target to | |
7537 | add_thread_silent, thread_change_ptid call. | |
7538 | (gnu_nat_target::detach): Pass gnu_target to detach_inferior | |
7539 | call. | |
7540 | ||
5a8b8627 ST |
7541 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7542 | ||
7543 | * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. | |
7544 | (gnu_nat_target::find_memory_regions): Remove unused | |
7545 | `old_address' variable. | |
7546 | ||
366f550a ST |
7547 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7548 | ||
7549 | * gnu-nat.c: Include "gdbarch.h". | |
7550 | ||
f14871bf ST |
7551 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7552 | ||
7553 | * reply_mig_hack.awk (Error return): Cast function through | |
7554 | void *, to bypass compiler function call check. | |
7555 | ||
c6887cfb ST |
7556 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7557 | ||
7558 | * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on | |
7559 | $(srcdir)/reply_mig_hack.awk. | |
7560 | ||
6930bffe ST |
7561 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7562 | ||
7563 | * gnu-nat.h (gnu_debug_flag): Set type to bool. | |
7564 | ||
112c22ed JG |
7565 | 2020-05-30 Jonny Grant <jg@jguk.org> |
7566 | ||
7567 | * configure.ac (ACX_BUGURL): change bug URL to https. | |
7568 | ||
f68f85b5 PA |
7569 | 2020-05-30 Pedro Alves <palves@redhat.com> |
7570 | ||
7571 | * cp-support.c (replace_typedefs_template): New. | |
7572 | (replace_typedefs_qualified_name): Handle | |
7573 | DEMANGLE_COMPONENT_TEMPLATE. | |
7574 | ||
976ca316 SM |
7575 | 2020-05-29 Simon Marchi <simon.marchi@efficios.com> |
7576 | ||
7577 | * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c, | |
7578 | dwarf2/index-cache.h, dwarf2/index-write.c, | |
7579 | dwarf2/index-write.h, dwarf2/line-header.c, | |
7580 | dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h, | |
7581 | dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile | |
7582 | variables and fields from `dwarf2_per_objfile` to just | |
7583 | `per_objfile` throughout. | |
7584 | ||
989ade05 SM |
7585 | 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca> |
7586 | ||
7587 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
7588 | <push_dwarf_reg_entry_value>: Add comment. | |
7589 | ||
c47bae85 KB |
7590 | 2020-05-28 Kevin Buettner <kevinb@redhat.com> |
7591 | Keith Seitz <keiths@redhat.com> | |
7592 | ||
7593 | * python/python.c (do_start_initialization): Call PyEval_SaveThread | |
7594 | instead of PyEval_ReleaseLock. | |
7595 | (class gdbpy_gil): Move to earlier in file. | |
7596 | (finalize_python): Set gdb_python_initialized. | |
7597 | (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early | |
7598 | when not initialized. | |
7599 | ||
44486dcf SM |
7600 | 2020-05-28 Simon Marchi <simon.marchi@efficios.com> |
7601 | ||
7602 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
7603 | <push_dwarf_reg_entry_value>: Remove assert. Override | |
7604 | per_objfile with caller_per_objfile. | |
7605 | ||
f030440d TV |
7606 | 2020-05-28 Tom de Vries <tdevries@suse.de> |
7607 | ||
7608 | * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit | |
7609 | PR gold/15646 workaround to symbol kind "type". | |
7610 | ||
f0fbb768 TT |
7611 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
7612 | ||
7613 | * dwarf2/read.c (load_partial_dies): Use add_partial_symbol. | |
7614 | ||
af0b2a3e TT |
7615 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
7616 | ||
7617 | * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline. | |
7618 | Use htab_find_with_hash. | |
7619 | <add_abbrev>: Remove "abbrev_number" parameter. | |
7620 | * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove | |
7621 | "abbrev_number" parameter. Use htab_find_slot_with_hash. | |
7622 | (hash_abbrev): Add comment. | |
7623 | (abbrev_table::lookup_abbrev): Move to header file. | |
7624 | (abbrev_table::read): Update. | |
7625 | ||
7d00ffec TT |
7626 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
7627 | ||
7628 | * dwarf2/read.c (struct partial_die_info) <name>: Declare new | |
7629 | method. | |
7630 | <canonical_name>: New member. | |
7631 | <raw_name>: Rename from "name". | |
7632 | (partial_die_info): Initialize canonical_name. | |
7633 | (scan_partial_symbols): Check raw_name. | |
7634 | (partial_die_parent_scope, partial_die_full_name) | |
7635 | (add_partial_symbol, add_partial_subprogram) | |
7636 | (add_partial_enumeration, load_partial_dies): Use "name" method. | |
7637 | (partial_die_info::name): New method. | |
7638 | (partial_die_info::read, guess_partial_die_structure_name) | |
7639 | (partial_die_info::fixup): Update. | |
7640 | ||
697bba18 TT |
7641 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
7642 | ||
7643 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline. | |
7644 | <get_ref_die_offset>: Inline. | |
7645 | <get_ref_die_offset_complaint>: New method. | |
7646 | * dwarf2/attribute.c (attribute::form_is_ref): Move to header. | |
7647 | (attribute::get_ref_die_offset_complaint): Rename from | |
7648 | get_ref_die_offset. Just issue complaint. | |
7649 | ||
c17ace43 HD |
7650 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
7651 | ||
7652 | * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars. | |
7653 | ||
96445f0b HD |
7654 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
7655 | ||
7656 | * exec.c (exec_file_attach): Use errno value of first openp failure. | |
7657 | ||
ac637ec3 HD |
7658 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
7659 | ||
7660 | * nat/windows-nat.c (windows_thread_info::~windows_thread_info): | |
7661 | Don't close thread handle. | |
7662 | ||
17ee85fc TT |
7663 | 2020-05-27 Tom Tromey <tom@tromey.com> |
7664 | Simon Marchi <simon.marchi@efficios.com> | |
7665 | ||
7666 | * objfiles.h (struct objfile) <partial_symtabs>: Now a | |
7667 | shared_ptr. | |
7668 | * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New | |
7669 | member. | |
7670 | * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key, | |
7671 | dwarf2_per_bfd_objfile_data_key>: New globals. | |
7672 | (dwarf2_has_info): Use shared dwarf2_per_bfd if possible. | |
7673 | (dwarf2_get_section_info): Use get_dwarf2_per_objfile. | |
7674 | (dwarf2_initialize_objfile): Consider cases where per_bfd can be | |
7675 | shared. | |
7676 | (dwarf2_build_psymtabs): Set objfile::partial_symtabs and | |
7677 | short-circuit when sharing. | |
7678 | (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs. | |
7679 | (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units. | |
7680 | ||
39b16f87 SM |
7681 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7682 | ||
7683 | * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move | |
7684 | to... | |
7685 | (struct dwarf2_per_objfile) <line_header_hash>: ... here. | |
7686 | * dwarf2/read.c (handle_DW_AT_stmt_list): Update. | |
7687 | ||
fcf23d5b SM |
7688 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7689 | ||
7690 | * dwarf2/read.c (struct mapped_index_base) <symbol_name_at, | |
7691 | build_name_components, find_name_components_bounds>: | |
7692 | Add per_objfile parameter. | |
7693 | (struct mapped_index) <symbol_name_at>: Likewise. | |
7694 | (struct mapped_debug_names): Remove constructor. | |
7695 | <dwarf2_per_objfile>: Remove field. | |
7696 | <namei_to_name, symbol_name_at>: Add per_objfile parameter. | |
7697 | (mapped_index_base::find_name_components_bounds, | |
7698 | mapped_index_base::build_name_components, | |
7699 | dw2_expand_symtabs_matching_symbol): Likewise. | |
7700 | (class mock_mapped_index) <symbol_name_at>: Likewise. | |
7701 | (check_match): Likewise. | |
7702 | (check_find_bounds_finds): Likewise. | |
7703 | (test_mapped_index_find_name_component_bounds): Update. | |
7704 | (CHECK_MATCH): Update. | |
7705 | (dw2_expand_symtabs_matching): Update. | |
7706 | (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add | |
7707 | per_objfile parameter. | |
7708 | <find_vec_in_debug_names>: Likewise. | |
7709 | <m_per_objfile>: New field. | |
7710 | (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile | |
7711 | parameter. | |
7712 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
7713 | (dw2_debug_names_iterator::next): Update. | |
7714 | (dw2_debug_names_lookup_symbol): Update. | |
7715 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
7716 | (dw2_debug_names_map_matching_symbols): Update. | |
7717 | (dw2_debug_names_expand_symtabs_matching): Update. | |
7718 | (dwarf2_read_debug_names): Update. | |
7719 | ||
7188ed02 SM |
7720 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7721 | ||
7722 | * dwarf2/read.h (struct dwarf2_cu): Forward-declare. | |
7723 | (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove, | |
7724 | move to dwarf2_per_objfile. | |
7725 | <read_in_chain>: Remove. | |
7726 | (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu, | |
7727 | remove_all_cus, age_comp_units>: New methods. | |
7728 | <m_dwarf2_cus>: New member. | |
7729 | (struct dwarf2_per_cu_data) <cu>: Remove. | |
7730 | * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove. | |
7731 | (age_cached_comp_units, free_one_cached_comp_unit): Remove, | |
7732 | moved to methods of dwarf2_per_objfile. | |
7733 | (dwarf2_clear_marks): Remove. | |
7734 | (dwarf2_queue_item::~dwarf2_queue_item): Update. | |
7735 | (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus. | |
7736 | (dwarf2_per_bfd::free_cached_comp_units): Remove. | |
7737 | (dwarf2_per_objfile::remove_all_cus): New. | |
7738 | (class free_cached_comp_units) <~free_cached_comp_units>: | |
7739 | Update. | |
7740 | (load_cu): Update. | |
7741 | (dw2_do_instantiate_symtab): Adjust. | |
7742 | (fill_in_sig_entry_from_dwo_entry): Adjust. | |
7743 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
7744 | (cutu_reader::cutu_reader): Likewise. | |
7745 | (cutu_reader::keep): Use dwarf2_per_objfile::set_cu. | |
7746 | (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu. | |
7747 | (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu | |
7748 | and dwarf2_per_objfile::age_comp_units. | |
7749 | (load_partial_comp_unit): Update. | |
7750 | (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu. | |
7751 | (process_queue): Likewise. | |
7752 | (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu | |
7753 | backlink. | |
7754 | (dwarf2_read_addr_index): Likewise. | |
7755 | (follow_die_offset): Likewise. | |
7756 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
7757 | (dwarf2_fetch_constant_bytes): Likewise. | |
7758 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
7759 | (follow_die_sig_1): Likewise. | |
7760 | (load_full_type_unit): Likewise. | |
7761 | (read_signatured_type): Likewise. | |
7762 | (dwarf2_cu::dwarf2_cu): Don't set cu field. | |
7763 | (dwarf2_cu::~dwarf2_cu): Remove. | |
7764 | (dwarf2_per_objfile::get_cu): New. | |
7765 | (dwarf2_per_objfile::set_cu): New. | |
7766 | (age_cached_comp_units): Rename to... | |
7767 | (dwarf2_per_objfile::age_comp_units): ... this. Adjust | |
7768 | to std::unordered_map. | |
7769 | (free_one_cached_comp_unit): Rename to... | |
7770 | (dwarf2_per_objfile::remove_cu): ... this. Adjust | |
7771 | to std::unordered_map. | |
7772 | (dwarf2_per_objfile::~dwarf2_per_objfile): New. | |
7773 | (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect | |
7774 | a dwarf2_per_objfile in data. | |
7775 | (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse. | |
7776 | (dwarf2_clear_marks): Remove. | |
7777 | ||
2e671100 SM |
7778 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7779 | ||
7780 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace | |
7781 | `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`. | |
7782 | (init_tu_and_read_dwo_dies): Likewise. | |
7783 | (cutu_reader::init_tu_and_read_dwo_dies): Likewise. | |
7784 | (cutu_reader::cutu_reader): Likewise. | |
7785 | (load_partial_comp_unit): Likewise. | |
7786 | (process_psymtab_comp_unit): Update. | |
7787 | (build_type_psymtabs_1): Update. | |
7788 | (process_skeletonless_type_unit): Update. | |
7789 | (load_full_comp_unit): Update. | |
7790 | (find_partial_die): Update. | |
7791 | (dwarf2_read_addr_index): Update. | |
7792 | (read_signatured_type): Update. | |
7793 | ||
2e6a9f79 SM |
7794 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
7795 | ||
7796 | * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header, | |
7797 | m_header_read_in>: New fields. | |
7798 | <get_header>: New method. | |
7799 | * dwarf2/read.c (per_cu_header_read_in): Remove. | |
7800 | (dwarf2_per_cu_data::get_header): New. | |
7801 | (dwarf2_per_cu_data::addr_size): Update. | |
7802 | (dwarf2_per_cu_data::offset_size): Update. | |
7803 | (dwarf2_per_cu_data::ref_addr_size): Update. | |
7804 | ||
1b555f17 SM |
7805 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
7806 | ||
7807 | * dwarf2/read.c (load_cu): Return dwarf2_cu. | |
7808 | (dw2_do_instantiate_symtab): Update. | |
7809 | (queue_and_load_all_dwo_tus): Change parameter from | |
7810 | dwarf2_per_cu_data to dwarf2_cu. | |
7811 | (dwarf2_fetch_die_loc_sect_off): Update. | |
7812 | (dwarf2_fetch_constant_bytes): Update. | |
7813 | (dwarf2_fetch_die_type_sect_off): Update. | |
7814 | ||
8fc0b21d SM |
7815 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
7816 | ||
7817 | * dwarf2/read.c (process_full_comp_unit, | |
7818 | process_full_type_unit): Remove per_cu, per_objfile paramters. | |
7819 | Add dwarf2_cu parameter. | |
7820 | (process_queue): Update. | |
7821 | ||
168c9250 SM |
7822 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
7823 | ||
7824 | * dwarf2/read.c (create_cu_from_index_list): Replace | |
7825 | dwarf2_per_objfile parameter with dwarf2_per_bfd. | |
7826 | (create_cus_from_index_list): Likewise. | |
7827 | (create_cus_from_index): Likewise. | |
7828 | (create_signatured_type_table_from_index): Likewise. | |
7829 | (create_cus_from_debug_names_list): Likewise. | |
7830 | (create_cus_from_debug_names): Likewise. | |
7831 | (dwarf2_read_gdb_index): Update. | |
7832 | (dwarf2_read_debug_names): Update. | |
7833 | ||
e286671b TT |
7834 | 2020-05-27 Tom Tromey <tom@tromey.com> |
7835 | Simon Marchi <simon.marchi@efficios.com> | |
7836 | ||
7837 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
7838 | <get_type_for_signatured_type, set_type_for_signatured_type>: | |
7839 | New methods. | |
7840 | <m_type_map>: New member. | |
7841 | (struct signatured_type) <type>: Remove. | |
7842 | * dwarf2/read.c | |
7843 | (dwarf2_per_objfile::get_type_for_signatured_type, | |
7844 | dwarf2_per_objfile::set_type_for_signatured_type): New. | |
7845 | (get_signatured_type): Use new methods. | |
7846 | ||
8adb8487 TT |
7847 | 2020-05-27 Tom Tromey <tom@tromey.com> |
7848 | Simon Marchi <simon.marchi@efficios.com> | |
7849 | ||
7850 | * dwarf2/read.h (struct type_unit_group_unshareable): New. | |
7851 | (struct dwarf2_per_objfile) <type_units>: New member. | |
7852 | <get_type_unit_group_unshareable>: New method. | |
7853 | * dwarf2/read.c (struct type_unit_group) <compunit_symtab, | |
7854 | num_symtabs, symtabs>: Remove; move to | |
7855 | type_unit_group_unshareable. | |
7856 | (dwarf2_per_objfile::get_type_unit_group_unshareable): New. | |
7857 | (process_full_type_unit, dwarf2_cu::setup_type_unit_groups) | |
7858 | (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable. | |
7859 | ||
127bbf4b SM |
7860 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7861 | ||
7862 | * dwarf2/read.h (struct dwarf2_per_cu_data): | |
7863 | <dwarf2_per_objfile>: Remove. | |
7864 | * dwarf2/read.c (create_cu_from_index_list): Don't assign | |
7865 | dwarf2_per_objfile. | |
7866 | (create_signatured_type_table_from_index): Likewise. | |
7867 | (create_signatured_type_table_from_debug_names): Likewise. | |
7868 | (create_debug_type_hash_table): Likewise. | |
7869 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
7870 | (create_type_unit_group): Likewise. | |
7871 | (read_comp_units_from_section): Likewise. | |
7872 | (create_cus_hash_table): Likewise. | |
7873 | ||
f6e649dd SM |
7874 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7875 | ||
7876 | * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to | |
7877 | dwarf2_per_cu_data::dwarf2_per_objfile. | |
7878 | (compute_compunit_symtab_includes): Likewise. | |
7879 | (dwarf2_cu::start_symtab): Likewise. | |
7880 | ||
aa66c379 SM |
7881 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
7882 | ||
7883 | * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile | |
7884 | parameter. | |
7885 | * dwarf2/read.c (get_die_type_at_offset): Likewise. | |
7886 | (read_namespace_alias): Update. | |
7887 | (lookup_die_type): Update. | |
7888 | (dwarf2_get_die_type): Add dwarf2_per_objfile parameter. | |
7889 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>: | |
7890 | Update. | |
7891 | (disassemble_dwarf_expression): Update. | |
7892 | ||
120ce1b5 SM |
7893 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7894 | ||
7895 | * dwarf2/read.h (struct dwarf2_queue_item): Add | |
7896 | dwarf2_per_objfile parameter, assign new parameter. | |
7897 | <per_objfile>: New field. | |
7898 | * dwarf2/read.c (free_one_cached_comp_unit): Add | |
7899 | dwarf2_per_objfile parameter. | |
7900 | (queue_comp_unit): Likewise. | |
7901 | (dw2_do_instantiate_symtab): Update. | |
7902 | (process_psymtab_comp_unit): Update. | |
7903 | (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter. | |
7904 | (process_imported_unit_die): Update. | |
7905 | (queue_and_load_dwo_tu): Update. | |
7906 | (follow_die_offset): Update. | |
7907 | (follow_die_sig_1): Update. | |
7908 | ||
9f47c707 SM |
7909 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7910 | ||
7911 | * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove. | |
7912 | * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down. | |
7913 | (read_call_site_scope): Assign per_objfile. | |
7914 | (dwarf2_per_cu_data::objfile): Remove. | |
7915 | * gdbtypes.h (struct call_site) <per_objfile>: New member. | |
7916 | * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add | |
7917 | dwarf2_per_objfile parameter. | |
7918 | * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add | |
7919 | dwarf2_per_objfile parameter. | |
7920 | (dwarf_expr_reg_to_entry_parameter): Add output | |
7921 | dwarf2_per_objfile parameter. | |
7922 | (locexpr_get_frame_base): Update. | |
7923 | (class dwarf_evaluate_loc_desc) <get_tls_address>: Update. | |
7924 | <push_dwarf_reg_entry_value>: Update. | |
7925 | <call_site_to_target_addr>: Update. | |
7926 | (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile | |
7927 | parameter. | |
7928 | (value_of_dwarf_reg_entry): Update. | |
7929 | (rw_pieced_value): Update. | |
7930 | (indirect_synthetic_pointer): Update. | |
7931 | (dwarf2_evaluate_property): Update. | |
7932 | (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile | |
7933 | parameter. | |
7934 | (locexpr_read_variable): Update. | |
7935 | (locexpr_get_symbol_read_needs): Update. | |
7936 | (loclist_read_variable): Update. | |
7937 | ||
14095eb3 SM |
7938 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7939 | ||
7940 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
7941 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
7942 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
7943 | parameter. | |
7944 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
7945 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
7946 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
7947 | parameter. | |
7948 | * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call, | |
7949 | sect_variable_value): Add dwarf2_per_objfile parameter. | |
7950 | (class dwarf_evaluate_loc_desc) <dwarf_call, | |
7951 | dwarf_variable_value>: Update. | |
7952 | (fetch_const_value_from_synthetic_pointer): Add | |
7953 | dwarf2_per_objfile parameter. | |
7954 | (fetch_const_value_from_synthetic_pointer): Update. | |
7955 | (coerced_pieced_ref): Update. | |
7956 | (class symbol_needs_eval_context) <dwarf_call, | |
7957 | dwarf_variable_value>: Update. | |
7958 | (dwarf2_compile_expr_to_ax): Update. | |
7959 | ||
3c3cd3d4 SM |
7960 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7961 | ||
7962 | * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile | |
7963 | parameter. | |
7964 | (dwarf2_evaluate_loc_desc_full): Update. | |
7965 | ||
82ca3f51 SM |
7966 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7967 | ||
7968 | * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile | |
7969 | parameter. | |
7970 | * dwarf2/read.c (dwarf2_read_addr_index): Likewise. | |
7971 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add | |
7972 | dwarf2_per_objfile parameter. | |
7973 | (decode_debug_loc_dwo_addresses): Likewise. | |
7974 | (dwarf2_find_location_expression): Update. | |
7975 | (class dwarf_evaluate_loc_desc) <get_addr_index>: Update. | |
7976 | (locexpr_describe_location_piece): Add dwarf2_per_objfile | |
7977 | parameter. | |
7978 | (disassemble_dwarf_expression): Add dwarf2_per_objfile | |
7979 | parameter. | |
7980 | (locexpr_describe_location_1): Likewise. | |
7981 | (locexpr_describe_location): Update. | |
7982 | ||
4b167ea1 SM |
7983 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
7984 | ||
7985 | * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>: | |
7986 | Remove. | |
7987 | * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove. | |
7988 | * dwarf2/loc.c (dwarf2_find_location_expression): Update. | |
7989 | (dwarf2_compile_property_to_c): Update. | |
7990 | (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter, | |
7991 | use text offset from objfile. | |
7992 | (locexpr_tracepoint_var_ref): Update. | |
7993 | (locexpr_generate_c_location): Update. | |
7994 | (loclist_describe_location): Update. | |
7995 | (loclist_tracepoint_var_ref): Update. | |
7996 | * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add | |
7997 | dwarf2_per_objfile parameter. | |
7998 | * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise, | |
7999 | use text offset from objfile. | |
8000 | (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter. | |
8001 | ||
89b07335 SM |
8002 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8003 | ||
8004 | * dwarf2/expr.h (struct dwarf_expr_context) | |
8005 | <dwarf_expr_context>: Add dwarf2_per_objfile parameter. | |
8006 | <offset>: Remove. | |
8007 | <per_objfile>: New member. | |
8008 | * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add | |
8009 | dwarf2_per_objfile parameter. Don't set offset, set | |
8010 | per_objfile. | |
8011 | (dwarf_expr_context::execute_stack_op): Use offset from objfile. | |
8012 | * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter) | |
8013 | a dwarf2_per_objfile object instead of an offset. | |
8014 | (class dwarf_expr_executor) <dwarf_expr_executor>: Add | |
8015 | constructor. | |
8016 | (execute_stack_op): Add dwarf2_per_objfile parameter, pass it | |
8017 | to dwarf2_expr_executor constructor. Don't set offset. | |
8018 | (dwarf2_fetch_cfa_info): Update. | |
8019 | (struct dwarf2_frame_cache) <text_offset>: Remove. | |
8020 | <per_objfile>: New field. | |
8021 | (dwarf2_frame_cache): Update. | |
8022 | (dwarf2_frame_prev_register): Update. | |
8023 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
8024 | <dwarf_evaluate_loc_desc>: Add constructor. | |
8025 | (dwarf2_evaluate_loc_desc_full): Update. | |
8026 | (dwarf2_locexpr_baton_eval): Update. | |
8027 | (class symbol_needs_eval_context) <symbol_needs_eval_context>: | |
8028 | Add constructor. | |
8029 | (dwarf2_loc_desc_get_symbol_read_needs): Update. | |
8030 | ||
293e7e51 SM |
8031 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8032 | ||
8033 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type, | |
8034 | addr_sized_int_type>: Move to dwarf2_cu. | |
8035 | <int_type>: Move to dwarf2_per_objfile. | |
8036 | (struct dwarf2_per_objfile) <int_type>: Move here. | |
8037 | * dwarf2/read.c (struct dwarf2_cu) <addr_type, | |
8038 | addr_sized_int_type>: Move here. | |
8039 | (read_func_scope): Update. | |
8040 | (read_array_type): Update. | |
8041 | (read_tag_string_type): Update. | |
8042 | (attr_to_dynamic_prop): Update. | |
8043 | (dwarf2_per_cu_data::int_type): Rename to... | |
8044 | (dwarf2_per_objfile::int_type): ... this. | |
8045 | (dwarf2_per_cu_data::addr_sized_int_type): Rename to... | |
8046 | (dwarf2_cu::addr_sized_int_type): ... this. | |
8047 | (read_subrange_type): Update. | |
8048 | (dwarf2_per_cu_data::addr_type): Rename to... | |
8049 | (dwarf2_cu::addr_type): ... this. | |
8050 | (set_die_type): Update. | |
8051 | ||
64874a40 SM |
8052 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8053 | ||
8054 | * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile | |
8055 | data through per_cu->cu. | |
8056 | ||
4ab09049 SM |
8057 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8058 | ||
8059 | * dwarf2/read.c (lookup_dwo_comp_unit): Change | |
8060 | dwarf2_per_cu_data parameter fo dwarf2_cu. | |
8061 | (lookup_dwo_type_unit): Likewise. | |
8062 | (read_cutu_die_from_dwo): Likewise. | |
8063 | (lookup_dwo_unit): Likewise. | |
8064 | (open_and_init_dwo_file): Likewise. | |
8065 | (lookup_dwo_cutu): Likewise. | |
8066 | (lookup_dwo_comp_unit): Likewise. | |
8067 | (lookup_dwo_type_unit): Likewise. | |
8068 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
8069 | (cutu_reader::cutu_reader): Update. | |
8070 | ||
47b14e86 SM |
8071 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8072 | ||
8073 | * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile | |
8074 | parameter. | |
8075 | (process_full_type_unit): Likewise. | |
8076 | (process_queue): Update. | |
8077 | ||
43182c09 SM |
8078 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8079 | ||
8080 | * dwarf2/read.c (recursively_compute_inclusions): Add | |
8081 | dwarf2_per_objfile parameter. | |
8082 | (compute_compunit_symtab_includes): Likewise. | |
8083 | (process_cu_includes): Update. | |
8084 | ||
7aa104c4 SM |
8085 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8086 | ||
8087 | * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile | |
8088 | parameter. | |
8089 | (create_type_unit_group): Update. | |
8090 | (process_psymtab_comp_unit_reader): Update. | |
8091 | (build_type_psymtabs_reader): Update. | |
8092 | ||
e3beb21d SM |
8093 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8094 | ||
8095 | * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile | |
8096 | object through m_this_cu->cu. | |
8097 | ||
d460f660 SM |
8098 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
8099 | ||
8100 | * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as | |
8101 | the info parameter. | |
8102 | (queue_and_load_all_dwo_tus): Pass per_cu->cu. | |
8103 | ||
ab432490 SM |
8104 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
8105 | ||
8106 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add | |
8107 | per_objfile parameter. | |
8108 | (load_full_type_unit): Add per_objfile parameter. | |
8109 | (read_signatured_type): Likewise. | |
8110 | (load_full_comp_unit): Likewise. | |
8111 | (load_cu): Likewise. | |
8112 | (dw2_do_instantiate_symtab): Likewise. | |
8113 | (dw2_get_file_names): Likewise. | |
8114 | (dw2_map_symtabs_matching_filename): Update. | |
8115 | (dw_expand_symtabs_matching_file_matcher): Update. | |
8116 | (dw2_map_symbol_filenames): Update. | |
8117 | (process_psymtab_comp_unit): Add per_objfile parameter. | |
8118 | (build_type_psymtabs_1): Update. | |
8119 | (process_skeletonless_type_unit): Update. | |
8120 | (dwarf2_build_psymtabs_hard): Update. | |
8121 | (load_partial_comp_unit): Add per_objfile parameter. | |
8122 | (scan_partial_symbols): Update. | |
8123 | (load_full_comp_unit): Add per_objfile parameter. | |
8124 | (process_imported_unit_die): Update. | |
8125 | (create_cus_hash_table): Update. | |
8126 | (find_partial_die): Update. | |
8127 | (dwarf2_read_addr_index): Update. | |
8128 | (follow_die_offset): Update. | |
8129 | (dwarf2_fetch_die_loc_sect_off): Update. | |
8130 | (dwarf2_fetch_constant_bytes): Update. | |
8131 | (dwarf2_fetch_die_type_sect_off): Update. | |
8132 | (follow_die_sig_1): Update. | |
8133 | (load_full_type_unit): Add per_objfile parameter. | |
8134 | (read_signatured_type): Likewise. | |
8135 | ||
313bad1b SM |
8136 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8137 | ||
8138 | * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead | |
8139 | of objfile_name. | |
8140 | ||
c3699833 SM |
8141 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
8142 | ||
8143 | * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member. | |
8144 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
8145 | * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd | |
8146 | field. | |
8147 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
8148 | (create_cus_from_index): Update. | |
8149 | (dwarf2_read_gdb_index): Update. | |
8150 | (create_cus_from_debug_names): Update. | |
8151 | (dwarf2_read_debug_names): Update. | |
8152 | (get_abbrev_section_for_cu): Update. | |
8153 | (create_all_comp_units): Update. | |
8154 | (read_attribute_value): Update. | |
8155 | (get_debug_line_section): Update. | |
8156 | * dwarf2/index-cache.c (index_cache::store): Update. | |
8157 | * dwarf2/index-write.c (save_gdb_index_command): Update. | |
8158 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. | |
8159 | ||
1859c670 SM |
8160 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
8161 | ||
8162 | * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New | |
8163 | member. | |
8164 | * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize | |
8165 | dwarf2_per_cu_data::per_bfd. | |
8166 | (dwarf2_per_bfd::allocate_signatured_type): Likewise. | |
8167 | (create_type_unit_group): Likewise. | |
8168 | (queue_comp_unit): Remove reference to | |
8169 | per_cu->dwarf2_per_objfile. | |
8170 | (maybe_queue_comp_unit): Likewise. | |
8171 | (fill_in_sig_entry_from_dwo_entry): Assign new field. | |
8172 | (create_cus_hash_table): Assign new field. | |
8173 | ||
5e22e966 SM |
8174 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8175 | ||
8176 | * dwarf2/read.c: Replace | |
8177 | dwarf2_cu->per_cu->dwarf2_per_objfile references with | |
8178 | dwarf2_cu->per_objfile throughout. | |
8179 | ||
97a1449a SM |
8180 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8181 | ||
8182 | * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile | |
8183 | parameter, don't use per_cu->dwarf2_per_objfile. | |
8184 | (dw2_instantiate_symtab): Likewise. | |
8185 | (dw2_find_last_source_symtab): Update. | |
8186 | (dw2_map_expand_apply): Update. | |
8187 | (dw2_lookup_symbol): Update. | |
8188 | (dw2_expand_symtabs_for_function): Update. | |
8189 | (dw2_expand_all_symtabs): Update. | |
8190 | (dw2_expand_symtabs_with_fullname): Update. | |
8191 | (dw2_expand_symtabs_matching_one): Add per_objfile parameter, | |
8192 | don't use per_cu->dwarf2_per_objfile. | |
8193 | (dw2_expand_marked_cus): Update. | |
8194 | (dw2_find_pc_sect_compunit_symtab): Update. | |
8195 | (dw2_debug_names_lookup_symbol): Update. | |
8196 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
8197 | (dw2_debug_names_map_matching_symbols): Update. | |
8198 | (dwarf2_psymtab::expand_psymtab): Update. | |
8199 | ||
9e021579 SM |
8200 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8201 | ||
8202 | * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter. | |
8203 | <per_objfile>: New member. | |
8204 | (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter. | |
8205 | (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update | |
8206 | call to dwarf2_cu. | |
8207 | (cutu_reader::cutu_reader): Update. | |
8208 | (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile. | |
8209 | ||
ae090bdb SM |
8210 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8211 | ||
8212 | * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to | |
8213 | struct dwarf2_per_objfile. | |
8214 | (struct dwarf2_per_objfile) <die_type_hash>: Move from struct | |
8215 | dwarf2_per_bfd. | |
8216 | * dwarf2/read.c (set_die_type): Update. | |
8217 | (get_die_type_at_offset): Update. | |
8218 | ||
af758d11 SM |
8219 | 2020-05-27 Tom Tromey <tom@tromey.com> |
8220 | Simon Marchi <simon.marchi@efficios.com> | |
8221 | ||
8222 | * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New | |
8223 | method. | |
8224 | (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p, | |
8225 | get_symtab, set_symtab>: New methods. | |
8226 | <m_symtabs>: New field. | |
8227 | (struct dwarf2_psymtab): Derive from partial_symtab. | |
8228 | <readin_p, get_compunit_symtab>: Declare methods. | |
8229 | * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p, | |
8230 | dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab): | |
8231 | New methods. | |
8232 | (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove. | |
8233 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab) | |
8234 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
8235 | (dw2_symtab_iter_next, dw2_print_stats) | |
8236 | (dw2_expand_symtabs_with_fullname) | |
8237 | (dw2_expand_symtabs_matching_one) | |
8238 | (dw_expand_symtabs_matching_file_matcher) | |
8239 | (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames) | |
8240 | (dw2_debug_names_iterator::next) | |
8241 | (dw2_debug_names_map_matching_symbols) | |
8242 | (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab) | |
8243 | (process_queue, dwarf2_psymtab::expand_psymtab): Update. | |
8244 | (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab): | |
8245 | New methods. | |
8246 | (get_compunit_symtab, process_full_comp_unit) | |
8247 | (process_full_type_unit): Update. | |
8248 | (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call | |
8249 | ||
5989a64e SM |
8250 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
8251 | ||
8252 | * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd, | |
8253 | then introduce a new dwarf2_per_objfile type. | |
8254 | <read_line_string>: Move to the new dwarf2_per_objfile type. | |
8255 | <objfile>: Likewise. | |
8256 | (dwarf2_per_bfd): Rename dwarf2_per_objfile to this. | |
8257 | * dwarf2/read.c: Replace references to dwarf2_per_objfile with | |
8258 | dwarf2_per_objfile->per_bfd. | |
8259 | (dwarf2_per_objfile::dwarf2_per_objfile): Rename to... | |
8260 | (dwarf2_per_bfd::dwarf2_per_bfd): ... this. | |
8261 | (dwarf2_per_objfile::free_cached_comp_units): Rename to... | |
8262 | (dwarf2_per_bfd::free_cached_comp_units): ... this. | |
8263 | (dwarf2_has_info): Allocate dwarf2_per_bfd. | |
8264 | (dwarf2_per_objfile::locate_sections): Rename to... | |
8265 | (dwarf2_per_bfd::locate_sections): ... this. | |
8266 | (dwarf2_per_objfile::get_cutu): Rename to... | |
8267 | (dwarf2_per_bfd::get_cutu): ... this. | |
8268 | (dwarf2_per_objfile::get_cu): Rename to... | |
8269 | (dwarf2_per_bfd::get_cu): ... this. | |
8270 | (dwarf2_per_objfile::get_tu): Rename to... | |
8271 | (dwarf2_per_bfd::get_tu): ... this. | |
8272 | (dwarf2_per_objfile::allocate_per_cu): Rename to... | |
8273 | (dwarf2_per_bfd::allocate_per_cu): ... this. | |
8274 | (dwarf2_per_objfile::allocate_signatured_type): Rename to... | |
8275 | (dwarf2_per_bfd::allocate_signatured_type): ... this. | |
8276 | (get_gdb_index_contents_ftype): Change parameter from | |
8277 | dwarf2_per_objfile to dwarf2_per_bfd. | |
8278 | * dwarf2/macro.c, dwarf2/index-write.c: Replace references to | |
8279 | dwarf2_per_objfile with dwarf2_per_objfile->per_bfd. | |
8280 | ||
a50264ba TT |
8281 | 2020-05-27 Tom Tromey <tom@tromey.com> |
8282 | Simon Marchi <simon.marchi@efficios.com> | |
8283 | ||
8284 | * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member. | |
8285 | (allocate_piece_closure): Set "per_objfile" member. | |
8286 | (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval) | |
8287 | (locexpr_describe_location, loclist_describe_location): Use new | |
8288 | member. | |
8289 | * dwarf2/read.c (read_call_site_scope) | |
8290 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
8291 | (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off) | |
8292 | (fill_in_loclist_baton, dwarf2_symbol_mark_computed, | |
8293 | handle_data_member_location): Set per_objfile member. | |
8294 | * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New | |
8295 | member. | |
8296 | (struct dwarf2_loclist_baton) <per_objfile>: New member. | |
8297 | ||
d3473f0c TT |
8298 | 2020-05-27 Tom Tromey <tom@tromey.com> |
8299 | ||
8300 | * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu, | |
8301 | allocate_signatured_type>: Declare new methods. | |
8302 | <m_num_psymtabs>: New member. | |
8303 | (struct dwarf2_per_cu_data) <index>: New member. | |
8304 | * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu) | |
8305 | (dwarf2_per_objfile::allocate_signatured_type): New methods. | |
8306 | (create_cu_from_index_list): Use allocate_per_cu. | |
8307 | (create_signatured_type_table_from_index) | |
8308 | (create_signatured_type_table_from_debug_names) | |
8309 | (create_debug_type_hash_table, add_type_unit) | |
8310 | (read_comp_units_from_section): Use allocate_signatured_type. | |
8311 | ||
5717c425 TT |
8312 | 2020-05-27 Tom Tromey <tom@tromey.com> |
8313 | ||
8314 | * psymtab.c (partial_map_expand_apply) | |
8315 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
8316 | (psym_lookup_global_symbol_language) | |
8317 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
8318 | (psym_print_stats, psym_expand_symtabs_for_function) | |
8319 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
8320 | (psym_expand_symtabs_matching) | |
8321 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
8322 | (maintenance_check_psymtabs): Update. | |
8323 | * psympriv.h (struct partial_symtab) <readin_p, | |
8324 | get_compunit_symtab>: Add objfile parameter. | |
8325 | (struct standard_psymtab) <readin_p, get_compunit_symtab>: | |
8326 | Likewise. | |
8327 | * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p, | |
8328 | get_compunit_symtab>: Likewise. | |
8329 | (dwarf2_psymtab::expand_psymtab): Pass objfile argument. | |
8330 | ||
45940949 TT |
8331 | 2020-05-27 Tom Tromey <tom@tromey.com> |
8332 | ||
8333 | * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New | |
8334 | member. | |
8335 | * dwarf2/read.c (delete_file_name_entry): Fix comment. | |
8336 | (create_cu_from_index_list) | |
8337 | (create_signatured_type_table_from_index) | |
8338 | (create_signatured_type_table_from_debug_names) | |
8339 | (dw2_get_file_names_reader, dwarf2_initialize_objfile) | |
8340 | (dwarf2_create_include_psymtab) | |
8341 | (create_debug_type_hash_table, add_type_unit) | |
8342 | (create_type_unit_group, read_comp_units_from_section) | |
8343 | (dwarf2_compute_name, create_cus_hash_table) | |
8344 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
8345 | (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new | |
8346 | obstack. | |
8347 | (dw2_get_real_path): Likewise. Change argument to | |
8348 | dwarf2_per_objfile. | |
8349 | ||
f8c6d152 LM |
8350 | 2020-05-27 Luis Machado <luis.machado@linaro.org> |
8351 | ||
8352 | PR tdep/26000 | |
8353 | * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching | |
8354 | for ldrd (immediate). | |
8355 | ||
e98d2e6d PW |
8356 | 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8357 | ||
8358 | * command.h: Add comment giving the name of class_tui. | |
8359 | * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined, | |
8360 | create the fake command for the help for class_tui. | |
8361 | ||
53a47a3e TT |
8362 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
8363 | ||
8364 | * ada-lang.c (ada_print_array_index): Change type. Call val_atr. | |
8365 | (ada_value_ptr_subscript): Don't call pos_atr on the lower bound. | |
8366 | (val_atr): New function. | |
8367 | (value_val_atr): Use it. | |
8368 | * ada-valprint.c (print_optional_low_bound): Change low bound | |
8369 | handling for enums. | |
8370 | (val_print_packed_array_elements): Don't call discrete_position. | |
8371 | * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call | |
8372 | discrete_position for enum types. | |
8373 | * language.c (default_print_array_index): Change type. | |
8374 | * language.h (struct language_defn) <la_print_array_index>: Add | |
8375 | index_type parameter, change type of index_value. | |
8376 | (LA_PRINT_ARRAY_INDEX): Add index_type parameter. | |
8377 | (default_print_array_index): Update. | |
8378 | * valprint.c (maybe_print_array_index): Don't call | |
8379 | value_from_longest. Update. | |
8380 | (value_print_array_elements): Don't call discrete_position. | |
8381 | ||
0bc2354b TT |
8382 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
8383 | ||
8384 | * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE. | |
8385 | * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE. | |
8386 | ||
1218a4bf CDA |
8387 | 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com> |
8388 | ||
8389 | PR gdb/13519 | |
8390 | * avr-tdep.c (avr_integer_to_address): Return data or code | |
8391 | address accordingly to the second 'type' argument of the | |
8392 | function. | |
8393 | ||
92651b1d MW |
8394 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> |
8395 | ||
8396 | * infcmd.c, inferior.h: (construct_inferior_arguments): | |
8397 | Moved function from here to gdbsupport/common-inferior.{h,cc} | |
8398 | ||
0a4f5f8c TT |
8399 | 2020-05-23 Tom Tromey <tom@tromey.com> |
8400 | ||
8401 | Revert commit eca1f90c: | |
8402 | * NEWS: Remove entry for completion styling. | |
8403 | * completer.c (_rl_completion_prefix_display_length): Move | |
8404 | declaration later. | |
8405 | (gdb_fnprint): Revert. | |
8406 | (gdb_display_match_list_1): Likewise. | |
8407 | * cli/cli-style.c (completion_prefix_style) | |
8408 | (completion_difference_style, completion_suffix_style): Remove. | |
8409 | (_initialize_cli_style): Revert. | |
8410 | * cli/cli-style.h (completion_prefix_style) | |
8411 | (completion_difference_style, completion_suffix_style): Don't | |
8412 | declare. | |
8413 | ||
e08bd6c5 PA |
8414 | 2020-05-24 Pedro Alves <palves@redhat.com> |
8415 | ||
8416 | * symtab.c (completion_list_add_name): Return boolean indication | |
8417 | of whether the symbol matched. | |
8418 | (completion_list_add_symbol): Don't try to remove C++ aliases if | |
8419 | the symbol didn't match in the first place. | |
8420 | * symtab.h (completion_list_add_name): Return bool. | |
8421 | ||
ceacbf6e SM |
8422 | 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca> |
8423 | ||
8424 | * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with | |
8425 | type::field. | |
8426 | ||
26f16254 JB |
8427 | 2020-05-23 Joel Brobecker <brobecker@adacore.com> |
8428 | ||
8429 | GDB 9.2 released. | |
8430 | ||
eca1f90c TT |
8431 | 2020-05-23 Tom Tromey <tom@tromey.com> |
8432 | ||
8433 | * NEWS: Add entry for completion styling. | |
8434 | * completer.c (_rl_completion_prefix_display_length): Move | |
8435 | declaration earlier. | |
8436 | (gdb_fnprint): Use completion_style. | |
8437 | (gdb_display_match_list_1): Likewise. | |
8438 | * cli/cli-style.c (completion_prefix_style) | |
8439 | (completion_difference_style, completion_suffix_style): New | |
8440 | globals. | |
8441 | (_initialize_cli_style): Register new globals. | |
8442 | * cli/cli-style.h (completion_prefix_style) | |
8443 | (completion_difference_style, completion_suffix_style): Declare. | |
8444 | ||
51e2cfa2 PA |
8445 | 2020-05-23 Pedro Alves <palves@redhat.com> |
8446 | ||
8447 | * utils.c: Include "gdbsupport/gdb-safe-ctype.h". | |
8448 | (parse_escape): Use ISDIGIT instead of isdigit. | |
8449 | (puts_debug): Use gdb_isprint instead of isprint. | |
8450 | (fprintf_symbol_filtered): Use ISALNUM instead of isalnum. | |
8451 | (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use | |
8452 | ISSPACE instead of isspace. | |
8453 | (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE | |
8454 | instead of isspace. | |
8455 | (strcmp_iw_ordered): Use ISSPACE instead of isspace. | |
8456 | (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT | |
8457 | instead of isxdigit and ISDIGIT instead of isdigit. | |
8458 | ||
80fc5e77 SM |
8459 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
8460 | ||
8461 | * gdbtypes.h (struct type) <field>: New method. | |
8462 | (TYPE_FIELDS): Remove, replace all uses with either type::fields | |
8463 | or type::field. | |
8464 | ||
3cabb6b0 SM |
8465 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
8466 | ||
8467 | * gdbtypes.h (struct type) <fields, set_fields>: New methods. | |
8468 | (TYPE_FIELDS): Use type::fields. Change all call sites that | |
8469 | modify the propery to use type::set_fields instead. | |
8470 | ||
1f704f76 SM |
8471 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
8472 | ||
8473 | * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use | |
8474 | type::num_fields instead. | |
8475 | ||
5e33d5f4 SM |
8476 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
8477 | ||
8478 | * gdbtypes.h (struct type) <num_fields, set_num_fields>: New | |
8479 | methods. | |
8480 | (TYPE_NFIELDS): Use type::num_fields. Change all call sites | |
8481 | that modify the number of fields to use type::set_num_fields | |
8482 | instead. | |
8483 | ||
9392ebb3 TT |
8484 | 2020-05-22 Tom Tromey <tromey@adacore.com> |
8485 | ||
8486 | * compile/compile-object-load.h (munmap_list_free): Don't | |
8487 | declare. | |
8488 | ||
7c13f4e8 AB |
8489 | 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com> |
8490 | ||
8491 | * annotate.c (annotate_source_line): Update return type, add call | |
8492 | to update current symtab and line. | |
8493 | * annotate.h (annotate_source_line): Update return type, and | |
8494 | extend header comment. | |
8495 | * source.c (info_line_command): Check annotation_level before | |
8496 | calling annotate_source_line. | |
8497 | * stack.c (print_frame_info): If calling annotate_source_line | |
8498 | returns true, then don't print any other source line information. | |
8499 | ||
aa370940 SM |
8500 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
8501 | ||
8502 | * lm32-tdep.c (lm32_register_reggroup_p): Fix condition. | |
8503 | ||
84d53fa9 SM |
8504 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
8505 | ||
8506 | * coffread.c (patch_type): Remove NULL check before xfree. | |
8507 | * corefile.c (set_gnutarget): Likewise. | |
8508 | * cp-abi.c (set_cp_abi_as_auto_default): Likewise. | |
8509 | * exec.c (build_section_table): Likewise. | |
8510 | * remote.c (remote_target::pass_signals): Likewise. | |
8511 | * utils.c (n_spaces): Likewise. | |
8512 | * cli/cli-script.c (document_command): Likewise. | |
8513 | * i386-windows-tdep.c (core_process_module_section): Likewise. | |
8514 | * linux-fork.c (struct fork_info) <~fork_info>: Likewise. | |
8515 | ||
9d428aae SM |
8516 | 2020-05-20 Simon Marchi <simon.marchi@efficios.com> |
8517 | ||
8518 | * symfile.c (reread_symbols): Clear objfile's section_offsets | |
8519 | vector and section indices, re-compute them by calling | |
8520 | sym_offsets. | |
8521 | ||
250106a7 TT |
8522 | 2020-05-20 Tom Tromey <tromey@adacore.com> |
8523 | ||
8524 | * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove. | |
ec16513e | 8525 | (desc_one_bound, desc_index_type): Compute field name. |
250106a7 | 8526 | |
9a0bacfb TV |
8527 | 2020-05-20 Tom de Vries <tdevries@suse.de> |
8528 | ||
8529 | PR symtab/25833 | |
8530 | * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index. | |
8531 | ||
7b958a48 AM |
8532 | 2020-05-20 Alan Modra <amodra@gmail.com> |
8533 | ||
8534 | PR 25993 | |
8535 | * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for | |
8536 | bfd_set_filename. | |
8537 | * solib-aix.c (solib_aix_bfd_open): Use std::string for name | |
8538 | passed to bfd_set_filename. | |
8539 | * symfile-mem.c (add_vsyscall_page): Likewise for string | |
8540 | passed to symbol_file_add_from_memory. | |
8541 | (symbol_file_add_from_memory): Make name param a const char* and | |
8542 | don't strdup. | |
8543 | ||
c7e97679 AM |
8544 | 2020-05-20 Alan Modra <amodra@gmail.com> |
8545 | ||
8546 | * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename | |
8547 | rather than accessing bfd->filename directly. | |
8548 | * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise, | |
8549 | and use bfd_section_name. | |
8550 | * dwarf2/frame.c (decode_frame_entry): Likewise. | |
8551 | * exec.c (exec_set_section_address): Likewise. | |
8552 | * solib-aix.c (solib_aix_bfd_open): Likewise. | |
8553 | * stap-probe.c (get_stap_base_address): Likewise. | |
8554 | * symfile.c (reread_symbols): Likewise. | |
8555 | ||
563c591b TT |
8556 | 2020-05-19 Tom Tromey <tromey@adacore.com> |
8557 | ||
8558 | * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open. | |
8559 | ||
f408d82c SM |
8560 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
8561 | ||
8562 | * dwarf2/read.c (quirk_rust_enum): Allocate enough fields. | |
8563 | ||
98c59b52 PA |
8564 | 2020-05-19 Pedro Alves <palves@redhat.com> |
8565 | ||
8566 | * NEWS (set exec-file-mismatch): Adjust entry. | |
8567 | * exec.c: Include "build-id.h". | |
8568 | (validate_exec_file): Try to match build IDs instead of filenames. | |
8569 | * gdb_bfd.c (struct gdb_bfd_open_closure): New. | |
8570 | (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure | |
8571 | and pass down 'warn_if_slow'. | |
8572 | (gdb_bfd_open): Add 'warn_if_slow' parameter. Use | |
8573 | gdb_bfd_open_closure to pass it down. | |
8574 | * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter. | |
8575 | ||
4111f652 PA |
8576 | 2020-05-19 Pedro Alves <palves@redhat.com> |
8577 | ||
8578 | * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. | |
8579 | * target.c (target_fileio_open_1): Rename to target_fileio_open | |
8580 | and make extern. Use bool. | |
8581 | (target_fileio_open, target_fileio_open_warn_if_slow): Delete. | |
8582 | (target_fileio_read_alloc_1): Adjust. | |
8583 | * target.h (target_fileio_open): Add 'warn_if_slow' parameter. | |
8584 | (target_fileio_open_warn_if_slow): Delete declaration. | |
8585 | ||
ad80db5b PA |
8586 | 2020-05-19 Pedro Alves <palves@redhat.com> |
8587 | ||
8588 | * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1. | |
8589 | Adjust all callers. | |
8590 | ||
1d6ce4d3 YS |
8591 | 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp> |
8592 | ||
8593 | * h8300-tdep.c (h8300_is_argument_spill): Change how we check | |
8594 | whether disp is negative. | |
8595 | ||
9005fbbb SM |
8596 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
8597 | ||
8598 | * symfile.h (struct symfile_segment_data) | |
8599 | <~symfile_segment_data>: Remove. | |
8600 | <segment_info>: Change to std::vector. | |
8601 | * symfile.c (default_symfile_segments): Update. | |
8602 | * elfread.c (elf_symfile_segments): Update. | |
8603 | ||
68b888ff SM |
8604 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
8605 | ||
8606 | * symfile.h (struct symfile_segment_data) <struct segment>: New. | |
8607 | <segments>: New. | |
8608 | <segment_bases, segment_sizes>: Remove. | |
8609 | * symfile.c (default_symfile_segments): Update. | |
8610 | * elfread.c (elf_symfile_segments): Update. | |
8611 | * remote.c (remote_target::get_offsets): Update. | |
8612 | * solib-target.c (solib_target_relocate_section_addresses): | |
8613 | Update. | |
8614 | ||
62982abd SM |
8615 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
8616 | ||
8617 | * symfile.h (struct symfile_segment_data): Initialize fields. | |
8618 | <~symfile_segment_data>: Add. | |
8619 | (symfile_segment_data_up): New. | |
8620 | (struct sym_fns) <sym_segments>: Return a | |
8621 | symfile_segment_data_up. | |
8622 | (default_symfile_segments): Return a symfile_segment_data_up. | |
8623 | (free_symfile_segment_data): Remove. | |
8624 | (get_symfile_segment_data): Return a symfile_segment_data_up. | |
8625 | * symfile.c (default_symfile_segments): Likewise. | |
8626 | (get_symfile_segment_data): Likewise. | |
8627 | (free_symfile_segment_data): Remove. | |
8628 | (symfile_find_segment_sections): Update. | |
8629 | * elfread.c (elf_symfile_segments): Return a | |
8630 | symfile_segment_data_up. | |
8631 | * remote.c (remote_target::get_offsets): Update. | |
8632 | * solib-target.c (solib_target_relocate_section_addresses): | |
8633 | Update. | |
8634 | * symfile-debug.c (debug_sym_segments): Return a | |
8635 | symfile_segment_data_up. | |
8636 | ||
7f204339 RO |
8637 | 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
8638 | ||
e52a0f1b RO |
8639 | PR build/25981 |
8640 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap): | |
8641 | Hardcode register numbers. | |
8642 | ||
7f204339 RO |
8643 | PR build/25981 |
8644 | * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry, | |
8645 | procfs_find_LDT_entry): Remove. | |
8646 | * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd, | |
8647 | procfs_find_LDT_entry): Remove. | |
8648 | * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT): | |
8649 | Remove. | |
8650 | ||
7f32a4d5 PA |
8651 | 2020-05-17 Pedro Alves <palves@redhat.com> |
8652 | Andrew Burgess <andrew.burgess@embecosm.com> | |
8653 | Keno Fischer <keno@juliacomputing.com> | |
8654 | ||
8655 | PR gdb/25741 | |
8656 | * breakpoint.c (build_target_condition_list): Update comments. | |
8657 | (build_target_command_list): Update comments and skip matching | |
8658 | locations. | |
8659 | (insert_bp_location): Move "set breakpoint auto-hw on" handling to | |
8660 | a separate function. Simplify "set breakpoint auto-hw off" | |
8661 | handling. | |
8662 | (insert_breakpoints): Update comment. | |
8663 | (tracepoint_locations_match): New parameter. For breakpoints, | |
8664 | compare location types too, if the caller wants to. | |
8665 | (handle_automatic_hardware_breakpoints): New functions. | |
8666 | (bp_location_is_less_than): Also sort by location type and | |
8667 | hardware breakpoint length. | |
8668 | (update_global_location_list): Handle "set breakpoint auto-hw on" | |
8669 | here. | |
8670 | (update_breakpoint_locations): Ask breakpoint_locations_match to | |
8671 | ignore location types. | |
8672 | ||
7d93a1e0 SM |
8673 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
8674 | ||
8675 | * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use | |
8676 | type::name instead. | |
8677 | ||
d0e39ea2 SM |
8678 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
8679 | ||
8680 | * gdbtypes.h (struct type) <name, set_name>: New methods. | |
8681 | (TYPE_CODE): Use type::name. Change all call sites used to set | |
8682 | the name to use type::set_name instead. | |
8683 | ||
2dab0c7b TT |
8684 | 2020-05-16 Tom Tromey <tom@tromey.com> |
8685 | ||
8686 | * top.c (quit_force): Update. | |
8687 | * infrun.c (handle_no_resumed): Update. | |
8688 | * top.h (all_uis): New function. | |
8689 | (ALL_UIS): Remove. | |
8690 | ||
59f7bd8d SM |
8691 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
8692 | ||
8693 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition. | |
8694 | ||
9bf058f0 PA |
8695 | 2020-05-16 Pedro Alves <palves@redhat.com> |
8696 | ||
8697 | * ia64-linux-nat.c | |
8698 | (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>: | |
8699 | Declare method. | |
8700 | (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target. | |
8701 | ||
8f86ae1a SM |
8702 | 2020-05-15 Simon Marchi <simon.marchi@efficios.com> |
8703 | ||
8704 | * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct). | |
8705 | (sparc64_adi_info): Likewise. | |
8706 | ||
d6bc0792 TT |
8707 | 2020-05-15 Tom Tromey <tom@tromey.com> |
8708 | ||
8709 | * symtab.c (lookup_language_this, lookup_symbol_aux): Use | |
8710 | block_objfile. | |
8711 | (lookup_objfile_from_block): Remove. | |
8712 | (lookup_symbol_in_block, lookup_symbol_in_static_block) | |
8713 | (lookup_global_symbol): Use block_objfile. | |
8714 | * symtab.h (lookup_objfile_from_block): Don't declare. | |
8715 | * printcmd.c (clear_dangling_display_expressions): Use | |
8716 | block_objfile. | |
8717 | * parse.c (operator_check_standard): Use block_objfile. | |
8718 | ||
8c14c3a3 TT |
8719 | 2020-05-15 Tom Tromey <tom@tromey.com> |
8720 | ||
8721 | * language.c (language_alloc_type_symbol): Set | |
8722 | SYMBOL_SECTION. | |
8723 | * symtab.c (initialize_objfile_symbol): Remove. | |
8724 | (allocate_symbol): Remove. | |
8725 | (allocate_template_symbol): Remove. | |
8726 | * dwarf2/read.c (fixup_go_packaging): Use "new". | |
8727 | (new_symbol): Use "new". | |
8728 | (read_variable): Don't call initialize_objfile_symbol. Use | |
8729 | "new". | |
8730 | (read_func_scope): Use "new". | |
8731 | * xcoffread.c (process_xcoff_symbol): Don't call | |
8732 | initialize_objfile_symbol. | |
8733 | (SYMBOL_DUP): Remove. | |
8734 | * coffread.c (process_coff_symbol, coff_read_enum_type): Use | |
8735 | "new". | |
8736 | * symtab.h (allocate_symbol, initialize_objfile_symbol) | |
8737 | (allocate_template_symbol): Don't declare. | |
8738 | (struct symbol): Add copy constructor. Change defaults. | |
8739 | * jit.c (finalize_symtab): Use "new". | |
8740 | * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb): | |
8741 | Use "new". | |
8742 | * stabsread.c (patch_block_stabs, define_symbol, read_enum_type) | |
8743 | (common_block_end): Use "new". | |
8744 | * mdebugread.c (parse_symbol): Use "new". | |
8745 | (new_symbol): Likewise. | |
8746 | ||
5b4a1a8d PW |
8747 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8748 | ||
8749 | * NEWS: Mention changes to help and apropos. | |
8750 | ||
57b4f16e PW |
8751 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8752 | ||
8753 | * command.h (enum command_class): Improve comments, document | |
8754 | that class_alias is for user-defined aliases, give the class | |
8755 | name for each class, remove unused class_xdb. | |
8756 | * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage. | |
8757 | * breakpoint.c (_initialize_breakpoint): Replace class_alias | |
8758 | by a precise class. | |
8759 | * infcmd.c (_initialize_infcmd): Likewise. | |
8760 | * reverse.c (_initialize_reverse): Likewise. | |
8761 | * stack.c (_initialize_stack): Likewise. | |
8762 | * symfile.c (_initialize_symfile): Likewise. | |
8763 | * tracepoint.c (_initialize_tracepoint): Likewise. | |
8764 | ||
7c05caf7 PW |
8765 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8766 | ||
8767 | * cli/cli-decode.c (apropos_cmd): Produce output for aliases | |
8768 | when their aliased command is traversed. | |
8769 | (help_cmd): Add fput_command_names_styled call to | |
8770 | output command name and aliases when command has an alias. | |
8771 | ||
3b3aaacb PW |
8772 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8773 | ||
8774 | * cli/cli-decode.h (help_cmd_list): Remove declaration. | |
8775 | * cli/cli-decode.c (help_cmd_list): Declare as static, | |
8776 | remove prefix argument, use bool for recurse arg, rework to show the aliases of | |
8777 | a command together with the command. | |
8778 | (fput_command_name_styled, fput_command_names_styled): New functions. | |
8779 | (print_help_for_command): Remove prefix arg, use bool for recurse arg, use | |
8780 | fput_command_name_styled. | |
8781 | (help_list, help_all): Update callers to remove prefix arg and use bool recurse. | |
8782 | * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc. | |
8783 | ||
7aa1b46f PW |
8784 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8785 | ||
8786 | * cli/cli-setshow.h (cmd_show_list): Remove prefix argument. | |
8787 | * cli/cli-decode.c (do_show_prefix_cmd): Likewise. | |
8788 | * command.h (cmd_show_list): Likewise. | |
8789 | * dwarf2/index-cache.c (show_index_cache_command): Likewise. | |
8790 | * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases. | |
8791 | ||
89bcba74 PW |
8792 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8793 | ||
8794 | * unittests/command-def-selftests.c (traverse_command_structure): | |
8795 | Verify all commands of a list have the same prefix command and | |
8796 | that only the top cmdlist commands have a null prefix. | |
8797 | ||
3f4d92eb PW |
8798 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8799 | ||
8800 | * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command | |
8801 | as prefix, not one of its aliases. | |
8802 | (set_cmd_prefix): Remove. | |
8803 | (do_add_cmd): Centralize the setting of the prefix of a command, when | |
8804 | command is defined after its full chain of prefix commands. | |
8805 | (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it. | |
8806 | (add_setshow_cmd_full): Likewise. | |
8807 | (update_prefix_field_of_prefixed_commands): New function. | |
8808 | (add_prefix_cmd): Replace non working call to set_cmd_prefix by | |
8809 | update_prefix_field_of_prefixed_commands. | |
8810 | * gdb/remote-fileio.c (initialize_remote_fileio): Use the real | |
8811 | addresses of remote_set_cmdlist and remote_show_cmdlist given | |
8812 | as argument, not the address of an argument. | |
8813 | * gdb/remote-fileio.h (initialize_remote_fileio): Likewise. | |
8814 | * gdb/remote.c (_initialize_remote): Likewise. | |
8815 | ||
0605465f PW |
8816 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8817 | ||
8818 | * cli/cli-cmds.c (alias_command): Check for an existing alias | |
8819 | using lookup_cmd_composition, as valid_command_p is too strict | |
8820 | and forbids aliases that are the prefix of an existing alias | |
8821 | or command. | |
8822 | * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix | |
8823 | command is properly recognised as a valid command. | |
8824 | ||
58e6ac70 PW |
8825 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8826 | ||
8827 | * unittests/help-doc-selftests.c: Rename to | |
8828 | unittests/command-def-selftests.c | |
8829 | * unittests/command-def-selftests.c (help_doc_tests): Update some | |
8830 | comments. | |
8831 | (command_structure_tests, traverse_command_structure): New namespace | |
8832 | and function. | |
8833 | (command_structure_invariants_tests): New function. | |
8834 | (_initialize_command_def_selftests) Renamed from | |
8835 | _initialize_help_doc_selftests, register command_structure_invariants | |
8836 | selftest. | |
8837 | ||
a7b9ceb8 PW |
8838 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8839 | ||
8840 | * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as | |
8841 | an alias of 'show'. | |
8842 | ||
b2188a06 JB |
8843 | 2020-05-15 Joel Brobecker <brobecker@adacore.com> |
8844 | ||
8845 | * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames | |
8846 | ada_is_fixed_point_type. Update all callers. | |
8847 | (gnat_encoded_fixed_point_delta): Renames ada_delta. Update | |
8848 | all callers. | |
8849 | * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info. | |
8850 | Update all callers. | |
8851 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames | |
8852 | print_fixed_point_type. Update all callers. | |
8853 | * ada-valprint.c (ada_value_print_num): Replace call to | |
8854 | ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type. | |
8855 | ||
a51951c2 KB |
8856 | 2020-05-14 Kevin Buettner <kevinb@redhat.com> |
8857 | ||
8858 | * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD | |
8859 | processors. | |
8860 | (cpu_supports_bts): Add CV_AMD case. | |
8861 | ||
29d6859f LM |
8862 | 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com> |
8863 | Simon Marchi <simon.marchi@efficios.com> | |
8864 | ||
8865 | * infrun.c (stop_all_threads): Collect multiple wait events at | |
8866 | each pass. | |
8867 | ||
78134374 SM |
8868 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
8869 | ||
8870 | * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use | |
8871 | type::code instead. | |
8872 | ||
67607e24 SM |
8873 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
8874 | ||
8875 | * gdbtypes.h (struct type) <code, set_code>: New methods. | |
8876 | (TYPE_CODE): Use type::code. Change all call sites used to set | |
8877 | the code to use type::set_code instead. | |
8878 | ||
a05575d3 TBA |
8879 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8880 | Tom de Vries <tdevries@suse.de> | |
8881 | Pedro Alves <palves@redhat.com> | |
8882 | ||
8883 | PR threads/25478 | |
8884 | * infrun.c (stop_all_threads): Do NOT ignore | |
8885 | TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED, | |
8886 | TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses | |
8887 | received. | |
8888 | (handle_no_resumed): Remove code handling a live inferior with no | |
8889 | threads. | |
8890 | * remote.c (has_single_non_exited_thread): New. | |
8891 | (remote_target::update_thread_list): Do not delete a thread if is | |
8892 | the last thread of the process. | |
8893 | * thread.c (thread_select): Call delete_exited_threads instead of | |
8894 | prune_threads. | |
8895 | ||
6ad82919 TBA |
8896 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8897 | ||
8898 | * infrun.c (stop_all_threads): Enable/disable thread events of all | |
8899 | targets. Move a debug message denoting the end of the function | |
8900 | into the SCOPED_EXIT block. | |
8901 | ||
d890404b TBA |
8902 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8903 | ||
8904 | * process-stratum-target.h: Include <set>. | |
8905 | (all_non_exited_process_targets, switch_to_target_no_thread): New | |
8906 | function declarations. | |
8907 | * process-stratum-target.c (all_non_exited_process_targets) | |
8908 | (switch_to_target_no_thread): New function implementations. | |
8909 | ||
293b3ebc TBA |
8910 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8911 | ||
8912 | * infrun.c (handle_inferior_event): Extract out a piece of code | |
8913 | into... | |
8914 | (mark_non_executing_threads): ...this new function. | |
8915 | ||
7ca9b62a TBA |
8916 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8917 | ||
8918 | * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first | |
8919 | use. | |
8920 | ||
fc75c28b TBA |
8921 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8922 | ||
8923 | * regcache.c (regcache_read_pc_protected): New function | |
8924 | implementation that returns 0 if the PC cannot read via | |
8925 | 'regcache_read_pc'. | |
8926 | * infrun.c (proceed): Call 'regcache_read_pc_protected' | |
8927 | instead of 'regcache_read_pc'. | |
8928 | (keep_going_pass_signal): Ditto. | |
8929 | ||
a89febbd TT |
8930 | 2020-05-13 Tom Tromey <tromey@adacore.com> |
8931 | ||
8932 | * ada-lang.c (align_value): Remove. | |
8933 | (ada_template_to_fixed_record_type_1): Use align_up. | |
8934 | ||
f7e23710 TBA |
8935 | 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8936 | ||
8937 | * async-event.c: Update the copyright year. | |
8938 | * async-event.h: Update the copyright year. | |
8939 | ||
02ff80c2 SM |
8940 | 2020-05-12 Simon Marchi <simon.marchi@efficios.com> |
8941 | ||
8942 | * objfiles.h (is_addr_in_objfile, | |
8943 | shared_objfile_contains_address_p): Return bool. | |
8944 | * objfile.c (is_addr_in_objfile, | |
8945 | shared_objfile_contains_address_p): Return bool. | |
8946 | ||
4fd6c7e8 TT |
8947 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
8948 | ||
8949 | * cli/cli-cmds.c (info_command): Restore. | |
8950 | (_initialize_cli_cmds): Use add_prefix_command for "info". | |
8951 | * gdb-gdb.gdb.in: Restore breakpoint on info_command. | |
8952 | ||
5eb68a39 TT |
8953 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
8954 | ||
8955 | * ada-lang.c (ada_value_primitive_field): Now public. | |
8956 | * ada-lang.h (ada_value_primitive_field): Declare. | |
8957 | * ada-valprint.c (print_field_values): Use | |
8958 | ada_value_primitive_field for wrapper fields. | |
8959 | ||
7666722f TV |
8960 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
8961 | ||
8962 | * dwarf2/index-write.c (debug_names::psymbol_tag): Handle | |
8963 | MODULE_DOMAIN. | |
8964 | ||
3ee6bb11 TV |
8965 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
8966 | ||
8967 | PR symtab/25941 | |
8968 | * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs | |
8969 | with length 0, if not gdb-produced. | |
8970 | (cutu_reader::cutu_reader): Set CU length to actual length if 0. | |
8971 | ||
43434996 TV |
8972 | 2020-05-09 Tom de Vries <tdevries@suse.de> |
8973 | ||
8974 | PR gdb/25955 | |
8975 | * break-catch-throw.c (check_status_exception_catchpoint): Fix name | |
8976 | calculation. | |
8977 | ||
2f78cffc TT |
8978 | 2020-05-09 Tom Tromey <tom@tromey.com> |
8979 | ||
8980 | * top.c (server_command): Now bool. | |
8981 | * top.h (server_command): Now bool. | |
8982 | ||
4f7bc5ed TT |
8983 | 2020-05-08 Tom Tromey <tromey@adacore.com> |
8984 | ||
8985 | * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE | |
8986 | already being processed. | |
8987 | ||
8be4b118 TT |
8988 | 2020-05-08 Tom Tromey <tom@tromey.com> |
8989 | ||
8990 | * printcmd.c (struct display) <next>: Remove. | |
8991 | <display>: New constructor. | |
8992 | <exp_string>: Now a std::string. | |
8993 | <enabled_p>: Now a bool. | |
8994 | (display_number): Move definition earlier. | |
8995 | (displays): Rename from display_chain. Now a std::vector. | |
8996 | (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove. | |
8997 | (display_command): Update. | |
8998 | (do_one_display, disable_display) | |
8999 | (enable_disable_display_command, do_enable_disable_display): | |
9000 | Update. | |
9001 | (free_display): Remove. | |
9002 | (clear_displays): Rewrite. | |
9003 | (delete_display): Update. | |
9004 | (map_display_numbers): Use function_view. Remove "data" | |
9005 | parameter. Update. | |
9006 | (do_delete_display): Remove. | |
9007 | (undisplay_command): Update. | |
9008 | (do_one_display, do_displays, disable_display) | |
9009 | (info_display_command): Update. | |
9010 | (do_enable_disable_display): Remove. | |
9011 | (enable_disable_display_command) | |
9012 | (clear_dangling_display_expressions): Update. | |
9013 | ||
94c93c35 TT |
9014 | 2020-05-08 Tom Tromey <tom@tromey.com> |
9015 | ||
9016 | * symtab.c (set_symbol_cache_size) | |
9017 | (maintenance_print_symbol_cache, maintenance_flush_symbol_cache) | |
9018 | (maintenance_print_symbol_cache_statistics): Update. | |
9019 | * symmisc.c (print_symbol_bcache_statistics) | |
9020 | (print_objfile_statistics, maintenance_print_objfiles) | |
9021 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
9022 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
9023 | Update. | |
9024 | * symfile-debug.c (set_debug_symfile): Update. | |
9025 | * source.c (forget_cached_source_info): Update. | |
9026 | * python/python.c (gdbpy_progspaces): Update. | |
9027 | * psymtab.c (maintenance_info_psymtabs): Update. | |
9028 | * probe.c (parse_probes): Update. | |
9029 | * linespec.c (iterate_over_all_matching_symtabs) | |
9030 | (collect_symtabs_from_filename, search_minsyms_for_name): Update. | |
9031 | * guile/scm-progspace.c (gdbscm_progspaces): Update. | |
9032 | * exec.c (exec_target::close): Update. | |
9033 | * ada-tasks.c (ada_tasks_new_objfile_observer): Update. | |
9034 | * breakpoint.c (print_one_breakpoint_location) | |
9035 | (create_longjmp_master_breakpoint) | |
9036 | (create_std_terminate_master_breakpoint): Update. | |
9037 | * progspace.c (program_spaces): Now a std::vector. | |
9038 | (maybe_new_address_space): Update. | |
9039 | (add_program_space): Remove. | |
9040 | (program_space::program_space): Update. | |
9041 | (remove_program_space): Update. | |
9042 | (number_of_program_spaces): Remove. | |
9043 | (print_program_space, update_address_spaces): Update. | |
9044 | * progspace.h (program_spaces): Change type. | |
9045 | (ALL_PSPACES): Remove. | |
9046 | (number_of_program_spaces): Don't declare. | |
9047 | (struct program_space) <next>: Remove. | |
9048 | ||
a1fd1ac9 TT |
9049 | 2020-05-08 Tom Tromey <tom@tromey.com> |
9050 | ||
9051 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update. | |
9052 | * solib-svr4.c (svr4_fetch_objfile_link_map): Update. | |
9053 | (enable_break): Update. | |
9054 | * solib-frv.c (frv_fdpic_find_global_pointer): Update. | |
9055 | (frv_fdpic_find_canonical_descriptor): Update. | |
9056 | (frv_fetch_objfile_link_map): Update. | |
9057 | * progspace.c (program_space::free_all_objfiles): Update. | |
9058 | (program_space::solibs): New method. | |
9059 | * progspace.h (struct program_space) <solibs>: New method. | |
9060 | * solist.h (master_so_list): Don't declare. | |
9061 | (ALL_SO_LIBS): Remove. | |
9062 | * solib.h (so_list_head): Remove. | |
9063 | (update_solib_list): Update comment. | |
9064 | * solib.c (master_so_list): Remove. | |
9065 | (solib_used, update_solib_list, solib_add) | |
9066 | (info_sharedlibrary_command, clear_solib) | |
9067 | (reload_shared_libraries_1, remove_user_added_objfile): Update. | |
9068 | ||
38eae084 TT |
9069 | 2020-05-08 Tom Tromey <tom@tromey.com> |
9070 | ||
9071 | * extension.c (extension_languages): Now a std::array. | |
9072 | (ALL_EXTENSION_LANGUAGES): Remove. | |
9073 | (get_ext_lang_defn, get_ext_lang_of_file) | |
9074 | (eval_ext_lang_from_control_command): Update. | |
9075 | (finish_ext_lang_initialization) | |
9076 | (auto_load_ext_lang_scripts_for_objfile) | |
9077 | (ext_lang_type_printers::ext_lang_type_printers) | |
9078 | (apply_ext_lang_type_printers) | |
9079 | (ext_lang_type_printers::~ext_lang_type_printers) | |
9080 | (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter) | |
9081 | (preserve_ext_lang_values, get_breakpoint_cond_ext_lang) | |
9082 | (breakpoint_ext_lang_cond_says_stop, check_quit_flag) | |
9083 | (get_matching_xmethod_workers, ext_lang_colorize) | |
9084 | (ext_lang_before_prompt): Update. | |
9085 | (ALL_ENABLED_EXTENSION_LANGUAGES): Remove. | |
9086 | ||
596dc4ad TT |
9087 | 2020-05-08 Tom Tromey <tom@tromey.com> |
9088 | ||
9089 | * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New | |
9090 | overload. | |
9091 | <swap_string, m_string>: Remove. | |
9092 | * symtab.c (demangle_for_lookup, completion_list_add_symbol): | |
9093 | Update. | |
9094 | * stabsread.c (define_symbol, read_type): Update. | |
9095 | * linespec.c (find_linespec_symbols): Update. | |
9096 | * gnu-v3-abi.c (gnuv3_get_typeid): Update. | |
9097 | * dwarf2/read.c (dwarf2_canonicalize_name): Update. | |
9098 | * dbxread.c (read_dbx_symtab): Update. | |
9099 | * cp-support.h (cp_canonicalize_string_full) | |
9100 | (cp_canonicalize_string, cp_canonicalize_string_no_typedefs): | |
9101 | Return unique_xmalloc_ptr. | |
9102 | * cp-support.c (inspect_type): Update. | |
9103 | (cp_canonicalize_string_full): Return unique_xmalloc_ptr. | |
9104 | (cp_canonicalize_string_no_typedefs, cp_canonicalize_string): | |
9105 | Likewise. | |
9106 | * c-typeprint.c (print_name_maybe_canonical): Update. | |
9107 | * break-catch-throw.c (check_status_exception_catchpoint): | |
9108 | Update. | |
9109 | ||
bf4cb9be TV |
9110 | 2020-05-08 Tom de Vries <tdevries@suse.de> |
9111 | ||
9112 | * infrun.c (follow_fork): Copy current_line and current_symtab to | |
9113 | child thread. | |
9114 | ||
a1b68f28 SM |
9115 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
9116 | ||
9117 | * async-event.c (struct async_signal_handler, struct | |
9118 | async_event_handler): Reformat, remove typedef. | |
9119 | ||
98d48915 SM |
9120 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
9121 | ||
9122 | * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users | |
9123 | access thistype->main_type->dyn_prop_list directly. | |
9124 | ||
7aa91313 SM |
9125 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
9126 | ||
9127 | * gdbtypes.h (struct type) <remove_dyn_prop>: New method. | |
9128 | (remove_dyn_prop): Remove. Update all users to use | |
9129 | type::remove_dyn_prop. | |
9130 | * gdbtypes.c (remove_dyn_prop): Rename to... | |
9131 | (type::remove_dyn_prop): ... this. | |
9132 | ||
5c54719c SM |
9133 | 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> |
9134 | ||
9135 | * gdbtypes.h (struct type) <add_dyn_prop>: New method. | |
9136 | (add_dyn_prop): Remove. Update all users to use | |
9137 | type::add_dyn_prop. | |
9138 | * gdbtypes.c (add_dyn_prop): Rename to... | |
9139 | (type::add_dyn_prop): ... this. | |
9140 | ||
24e99c6c SM |
9141 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
9142 | ||
9143 | * gdbtypes.h (struct type) <get_dyn_prop>: New method. | |
9144 | (get_dyn_prop): Remove. Update all users to use | |
9145 | type::dyn_prop. | |
9146 | * gdbtypes.c (get_dyn_prop): Rename to... | |
9147 | (type::dyn_prop): ... this. | |
9148 | ||
0d4bf016 SM |
9149 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
9150 | ||
9151 | * gdbtypes.h (struct main_type) <flag_static>: Remove. | |
9152 | ||
ac4a4f1c SM |
9153 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
9154 | ||
9155 | * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64` | |
9156 | instruction, skip it if it's there. | |
9157 | ||
a3bbacc1 SM |
9158 | 2020-05-05 Simon Marchi <simon.marchi@efficios.com> |
9159 | ||
9160 | * gdbtypes.h (struct main_type) <flag_incomplete>: Remove. | |
9161 | ||
c3236f84 SM |
9162 | 2020-05-04 Simon Marchi <simon.marchi@efficios.com> |
9163 | ||
9164 | * gdbtypes.h (TYPE_INCOMPLETE): Remove. | |
9165 | * gdbtypes.c (recursive_dump_type): Remove use of | |
9166 | TYPE_INCOMPLETE. | |
9167 | ||
3b6acaee TT |
9168 | 2020-05-03 Tom Tromey <tom@tromey.com> |
9169 | ||
9170 | * breakpoint.c (catch_command, tcatch_command): Remove. | |
9171 | (_initialize_breakpoint): Use add_basic_prefix_cmd, | |
9172 | add_show_prefix_cmd. | |
9173 | (set_breakpoint_cmd, show_breakpoint_cmd): Remove | |
9174 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
9175 | Remove. | |
9176 | (add_internal_problem_command): Use add_basic_prefix_cmd, | |
9177 | add_show_prefix_cmd. | |
9178 | * mips-tdep.c (set_mipsfpu_command): Remove. | |
9179 | (_initialize_mips_tdep): Use add_basic_prefix_cmd. | |
9180 | * dwarf2/index-cache.c (set_index_cache_command): Remove. | |
9181 | (_initialize_index_cache): Use add_basic_prefix_cmd. | |
9182 | * memattr.c (dummy_cmd): Remove. | |
9183 | (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd. | |
9184 | * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove. | |
9185 | (_initialize_tui_win): Use add_basic_prefix_cmd, | |
9186 | add_show_prefix_cmd. | |
9187 | * cli/cli-logging.c (set_logging_command): Remove. | |
9188 | (_initialize_cli_logging): Use add_basic_prefix_cmd, | |
9189 | add_show_prefix_cmd. | |
9190 | (show_logging_command): Remove. | |
9191 | * target.c (target_command): Remove. | |
9192 | (add_target): Use add_basic_prefix_cmd. | |
9193 | ||
a51119cd HD |
9194 | 2020-05-02 Hannes Domani <ssbssa@yahoo.de> |
9195 | ||
9196 | * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo. | |
9197 | ||
652fc23a | 9198 | 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 9199 | |
652fc23a PW |
9200 | * gdb-gdb.gdb-in: Remove breakpoint on disappeared function |
9201 | info_command. | |
9202 | ||
117539e6 KR |
9203 | 2020-04-30 Kamil Rytarowski <n54@gmx.com> |
9204 | ||
9205 | * nbsd-nat.c (nbsd_enable_proc_events) | |
9206 | (nbsd_nat_target::post_startup_inferior): Add. | |
9207 | (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'. | |
9208 | (nbsd_nat_target::update_thread_list): Rewrite. | |
9209 | (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and | |
9210 | "PTRACE_LWP_CREATE". | |
9211 | * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add. | |
9212 | ||
102e38eb | 9213 | 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 9214 | |
102e38eb PW |
9215 | * stack.c (_initialize_stack): Remove duplicated creation |
9216 | of "frame" command and "f" alias. | |
9217 | ||
ee9d1e5f HD |
9218 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
9219 | ||
9220 | PR gdb/18706 | |
9221 | * gdbtypes.c (check_typedef): Calculate size of array of | |
9222 | stubbed type. | |
9223 | ||
627c7fb8 HD |
9224 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
9225 | ||
9226 | PR gdb/15559 | |
9227 | * i386-tdep.c (i386_push_dummy_call): Call | |
9228 | i386_thiscall_push_dummy_call. | |
9229 | (i386_thiscall_push_dummy_call): New function. | |
9230 | * i386-tdep.h (i386_thiscall_push_dummy_call): Declare. | |
9231 | * i386-windows-tdep.c (i386_windows_push_dummy_call): New function. | |
9232 | (i386_windows_init_abi): Call set_gdbarch_push_dummy_call. | |
9233 | ||
ffc2844e SM |
9234 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
9235 | ||
9236 | * gdbarch.sh (do_read): Add shellcheck disable directive for | |
9237 | warning SC2162. | |
9238 | ||
1207375d SM |
9239 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
9240 | ||
9241 | * gdbarch.sh: Use ${foo:-} where shellcheck would report a | |
9242 | "referenced but not assigned" warning. | |
9243 | ||
9fdb2916 SM |
9244 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
9245 | ||
9246 | * gdbarch.sh: Remove code that sets fallbackdefault. | |
9247 | ||
759cea5e SM |
9248 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
9249 | ||
9250 | * gdbarch.sh: Use shell operators && and || instead of | |
9251 | -a and -o. | |
9252 | ||
cb02ab24 SM |
9253 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
9254 | ||
9255 | * gdbarch.sh: Use $(...) instead of `...`. | |
9256 | ||
a6fc5ffc SM |
9257 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
9258 | ||
9259 | * gdbarch.sh: Use double quotes around variables. | |
9260 | ||
8d113d13 SM |
9261 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
9262 | ||
9263 | * gdbarch.sh: Use %s with printf, instead of variables in the | |
9264 | format string. | |
9265 | ||
ed6acedd TT |
9266 | 2020-04-29 Tom Tromey <tromey@adacore.com> |
9267 | ||
9268 | PR ada/25875: | |
9269 | * dwarf2/read.c (update_enumeration_type_from_children): Compute | |
9270 | type fields here. | |
9271 | (read_enumeration_type): Call | |
9272 | update_enumeration_type_from_children later. Update comments. | |
9273 | (process_enumeration_scope): Don't create type fields. | |
9274 | ||
b68b1b58 KR |
9275 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
9276 | ||
9277 | * nbsd-tdep.c: Include "xml-syscall.h". | |
9278 | (nbsd_init_abi): Call `set_xml_syscall_file_name'. | |
9279 | ||
f94b2e03 KR |
9280 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
9281 | ||
9282 | * nbsd-nat.c: Include "sys/wait.h". | |
9283 | (nbsd_resume, nbsd_nat_target::resume, nbsd_wait) | |
9284 | (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint) | |
9285 | (nbsd_nat_target::remove_exec_catchpoint) | |
9286 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
9287 | * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait) | |
9288 | (nbsd_nat_target::insert_exec_catchpoint) | |
9289 | (nbsd_nat_target::remove_exec_catchpoint) | |
9290 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
9291 | * nbsd-tdep.c (nbsd_get_syscall_number): Add. | |
9292 | (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass | |
9293 | `nbsd_get_syscall_number'. | |
9294 | ||
fc49bc72 TT |
9295 | 2020-04-29 Tom Tromey <tom@tromey.com> |
9296 | ||
9297 | * stack.c (print_block_frame_labels): Remove. | |
9298 | ||
d642b692 HD |
9299 | 2020-04-29 Hannes Domani <ssbssa@yahoo.de> |
9300 | ||
9301 | PR gdb/17320 | |
9302 | * ada-valprint.c (val_print_packed_array_elements): Move array | |
9303 | end bracket to new line. | |
9304 | (ada_val_print_string): Remove extra spaces before first array | |
9305 | element. | |
9306 | * c-valprint.c (c_value_print_array): Likewise. | |
9307 | * m2-valprint.c (m2_print_array_contents): Likewise. | |
9308 | (m2_value_print_inner): Likewise. | |
9309 | * p-valprint.c (pascal_value_print_inner): Likewise. | |
9310 | * valprint.c (generic_val_print_array): Likewise. | |
9311 | (value_print_array_elements): Move first array element and array | |
9312 | end bracket to new line. | |
9313 | ||
ea90f227 TV |
9314 | 2020-04-29 Tom de Vries <tdevries@suse.de> |
9315 | ||
9316 | PR symtab/25889 | |
9317 | * linespec.c (find_method): Fix ix calculation. | |
9318 | ||
4498ef4f KR |
9319 | 2020-04-28 Kamil Rytarowski <n54@gmx.com> |
9320 | ||
9321 | * syscalls/update-netbsd.sh: New file. | |
9322 | * syscalls/netbsd.xml: Regenerate. | |
9323 | * data-directory/Makefile.in: Register `netbsd.xml' in | |
9324 | `SYSCALLS_FILES'. | |
9325 | ||
a55e30b5 SM |
9326 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
9327 | ||
9328 | * syscalls/update-freebsd.sh: Add double quotes. | |
9329 | ||
2b2fbab8 TT |
9330 | 2020-04-28 Tom Tromey <tom@tromey.com> |
9331 | ||
9332 | * NEWS: Update. | |
9333 | * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI. | |
9334 | (cmdpy_init): Allow class_tui. | |
9335 | ||
a65189c9 TV |
9336 | 2020-04-28 Mark Williams <mark@myosotissp.com> |
9337 | ||
9338 | PR gdb/24480 | |
9339 | * dwarf2read.c: Add missing assingments to list_in_scope when | |
9340 | start_symtab was already called. | |
9341 | ||
1b95cdb7 SM |
9342 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
9343 | ||
9344 | PR gdb/25881 | |
9345 | * dwarf2/read.c (offset_map_type): Use | |
9346 | gdb:hash_enum<sect_offset> as hash function. | |
9347 | ||
15cd93d0 TV |
9348 | 2020-04-28 Tom de Vries <tdevries@suse.de> |
9349 | ||
9350 | * dwarf2/read.c (process_structure_scope): Add symbol for struct decl | |
9351 | with DW_AT_signature. | |
9352 | ||
1eb39914 SM |
9353 | 2020-04-27 Simon Marchi <simon.marchi@efficios.com> |
9354 | ||
9355 | * configure.ac: Remove check for fs_base/gs_base in | |
9356 | user_regs_struct. | |
9357 | * configure: Re-generate. | |
9358 | * config.in: Re-generate. | |
9359 | * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust. | |
9360 | * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers, | |
9361 | amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust. | |
9362 | ||
991a3e2e LM |
9363 | 2020-04-27 Luis Machado <luis.machado@linaro.org> |
9364 | ||
9365 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle | |
9366 | problematic inline frame unwinding situation. | |
9367 | * frame.c (frame_id_computed_p): New function. | |
9368 | * frame.h (frame_id_computed_p): New prototype. | |
9369 | ||
361ba0e8 TT |
9370 | 2020-04-26 Tom Tromey <tom@tromey.com> |
9371 | ||
9372 | * command.h (enum command_class) <class_pseudo>: Remove. | |
9373 | ||
bc3609fd PW |
9374 | 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9375 | ||
9376 | * cli/cli-decode.c (lookup_cmd_composition): Fix comments | |
9377 | and whitespace. | |
9378 | ||
b9771db7 KR |
9379 | 2020-04-25 Kamil Rytarowski <n54@gmx.com> |
9380 | ||
ec16513e SM |
9381 | * inf-ptrace.c (inf_ptrace_target::wait): Remove |
9382 | `PT_GET_PROCESS_STATE' block. | |
b9771db7 | 9383 | |
7151c1af TT |
9384 | 2020-04-24 Tom Tromey <tom@tromey.com> |
9385 | ||
9386 | * symtab.h (symbol_get_demangled_name): Don't declare. | |
9387 | * symtab.c (symbol_get_demangled_name): Remove. | |
9388 | (general_symbol_info::natural_name) | |
9389 | (general_symbol_info::demangled_name): Update. | |
9390 | ||
906bb4c5 TT |
9391 | 2020-04-24 Tom Tromey <tom@tromey.com> |
9392 | ||
9393 | PR rust/25025: | |
9394 | * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust. | |
9395 | ||
bcfe6157 TT |
9396 | 2020-04-24 Tom Tromey <tom@tromey.com> |
9397 | ||
9398 | PR symtab/12707: | |
9399 | * dwarf2/read.c (add_partial_symbol): Use the linkage name if it | |
9400 | exists. | |
9401 | (new_symbol): Likewise. | |
9402 | * compile/compile-object-load.c (get_out_value_type): Use | |
9403 | symbol_matches_search_name. | |
9404 | ||
f049a313 TT |
9405 | 2020-04-24 Tom Tromey <tom@tromey.com> |
9406 | ||
9407 | * dwarf2/read.c (add_partial_symbol): Do not call | |
9408 | compute_and_set_names. | |
9409 | ||
76e288d1 TT |
9410 | 2020-04-24 Tom Tromey <tom@tromey.com> |
9411 | ||
9412 | * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list | |
9413 | overload. | |
9414 | ||
2467f4f6 TT |
9415 | 2020-04-24 Tom Tromey <tom@tromey.com> |
9416 | ||
9417 | * psymtab.c (add_psymbol_to_bcache): Simplify calling convention. | |
9418 | (add_psymbol_to_list): New overload. Make old overload call new | |
9419 | one. | |
9420 | * psympriv.h (add_psymbol_to_list): New overload. | |
9421 | ||
e61108c9 TT |
9422 | 2020-04-24 Tom Tromey <tom@tromey.com> |
9423 | ||
9424 | * dwarf2/read.c (partial_die_info::read) <case | |
9425 | DW_AT_linkage_name>: Use value_as_string. | |
9426 | (dwarf2_string_attr): Use value_as_string. | |
9427 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
9428 | method. | |
9429 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
9430 | ||
8c87a452 TT |
9431 | 2020-04-24 Tom Tromey <tom@tromey.com> |
9432 | ||
9433 | * symtab.c (general_symbol_info::natural_name) | |
9434 | (general_symbol_info::demangled_name): Check for language_rust. | |
9435 | ||
787de330 TT |
9436 | 2020-04-24 Tom Tromey <tom@tromey.com> |
9437 | ||
9438 | * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here... | |
9439 | (dwarf2_physname): ... from here. | |
9440 | (partial_die_info::read): Add Rust "{" hack. | |
9441 | ||
ff985671 TT |
9442 | 2020-04-24 Tom Tromey <tom@tromey.com> |
9443 | ||
9444 | * symtab.h (struct general_symbol_info) <set_demangled_name>: New | |
9445 | method. | |
9446 | (symbol_set_demangled_name): Don't declare. | |
9447 | * symtab.c (general_symbol_info::set_demangled_name): Rename from | |
9448 | symbol_set_demangled_name. | |
9449 | (general_symbol_info::set_language) | |
9450 | (general_symbol_info::compute_and_set_names): Update. | |
9451 | * minsyms.c (minimal_symbol_reader::install): Update. | |
9452 | * dwarf2/read.c (new_symbol): Update. | |
9453 | ||
1acda803 TT |
9454 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
9455 | ||
9456 | PR python/23662: | |
9457 | * python/py-type.c (convert_field): Handle | |
9458 | FIELD_LOC_KIND_DWARF_BLOCK. | |
9459 | (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH. | |
9460 | (typy_get_dynamic): Nw function. | |
9461 | (type_object_getset): Add "dynamic". | |
9462 | * NEWS: Add entry. | |
9463 | ||
d656f129 TT |
9464 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
9465 | ||
9466 | * ada-typeprint.c (print_choices, print_variant_part) | |
9467 | (print_record_field_types_dynamic): New functions. | |
9468 | (print_record_field_types): Use print_record_field_types_dynamic. | |
9469 | ||
7d79de9a TT |
9470 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
9471 | ||
9472 | * dwarf2/read.c (handle_data_member_location): New overload. | |
9473 | (dwarf2_add_field): Use it. | |
9474 | (decode_locdesc): Add "computed" parameter. Update comment. | |
9475 | * gdbtypes.c (is_dynamic_type_internal): Also look for | |
9476 | FIELD_LOC_KIND_DWARF_BLOCK. | |
9477 | (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK. | |
9478 | * gdbtypes.c (is_dynamic_type_internal): Add special case for C++ | |
9479 | virtual base classes. | |
9480 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle | |
9481 | FIELD_LOC_KIND_DWARF_BLOCK. | |
9482 | ||
f8e89861 TT |
9483 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
9484 | ||
9485 | * dwarf2/read.c (read_structure_type): Handle dynamic length. | |
9486 | * gdbtypes.c (is_dynamic_type_internal): Check | |
9487 | TYPE_HAS_DYNAMIC_LENGTH. | |
9488 | (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH. | |
9489 | * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH): | |
9490 | New macros. | |
9491 | (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New | |
9492 | constant. | |
9493 | ||
9c6a1327 TT |
9494 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
9495 | ||
9496 | * dwarf2/read.c (struct variant_field): Rewrite. | |
9497 | (struct variant_part_builder): New. | |
9498 | (struct nextfield): Remove "variant" field. Add "offset". | |
9499 | (struct field_info): Add "current_variant_part" and | |
9500 | "variant_parts". | |
9501 | (alloc_discriminant_info): Remove. | |
9502 | (alloc_rust_variant): New function. | |
9503 | (quirk_rust_enum): Update. | |
9504 | (dwarf2_add_field): Set "offset" member. Don't handle | |
9505 | DW_TAG_variant_part. | |
9506 | (offset_map_type): New typedef. | |
9507 | (convert_variant_range, create_one_variant) | |
9508 | (create_one_variant_part, create_variant_parts) | |
9509 | (add_variant_property): New functions. | |
9510 | (dwarf2_attach_fields_to_type): Call add_variant_property. | |
9511 | (read_structure_type): Don't handle DW_TAG_variant_part. | |
9512 | (handle_variant_part, handle_variant): New functions. | |
9513 | (handle_struct_member_die): Use them. | |
9514 | (process_structure_scope): Don't handle variant parts. | |
9515 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove. | |
9516 | (struct discriminant_info): Remove. | |
9517 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove. | |
9518 | (struct main_type) <flag_discriminated_union>: Remove. | |
9519 | * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite. | |
9520 | (rust_enum_variant): Return int. Remove "contents". Rewrite. | |
9521 | (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp): | |
9522 | Update. | |
9523 | * valops.c (value_union_variant): Remove. | |
9524 | * value.h (value_union_variant): Don't declare. | |
9525 | ||
b249d2c2 TT |
9526 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
9527 | ||
9528 | * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low) | |
9529 | (ada_value_primitive_packed_val): Update. | |
9530 | * ada-valprint.c (ada_value_print_1): Update. | |
9531 | * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct. | |
9532 | (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than | |
9533 | just an address. Use evaluate_for_locexpr_baton. | |
9534 | (dwarf2_evaluate_property): Update. | |
9535 | * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an | |
9536 | array_view. | |
9537 | * findvar.c (default_read_var_value): Update. | |
9538 | * gdbtypes.c (compute_variant_fields_inner) | |
9539 | (resolve_dynamic_type_internal): Update. | |
9540 | (resolve_dynamic_type): Change type of valaddr parameter. | |
9541 | * gdbtypes.h (resolve_dynamic_type): Update. | |
9542 | * valarith.c (value_subscripted_rvalue): Update. | |
9543 | * value.c (value_from_contents_and_address): Update. | |
9544 | ||
61122aa9 TT |
9545 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
9546 | ||
9547 | * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add | |
9548 | "push_initial_value" parameter. | |
9549 | (dwarf2_evaluate_property): Likewise. | |
9550 | * dwarf2/loc.h (dwarf2_evaluate_property): Update. | |
9551 | ||
ef83a141 TT |
9552 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
9553 | ||
9554 | * gdbtypes.c (is_dynamic_type_internal): Check for variant parts. | |
9555 | (variant::matches, compute_variant_fields_recurse) | |
9556 | (compute_variant_fields_inner, compute_variant_fields): New | |
9557 | functions. | |
9558 | (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS. | |
9559 | Use resolved_type after type is made. | |
9560 | (operator==): Add new cases. | |
9561 | * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro. | |
9562 | (struct discriminant_range, struct variant, struct variant_part): | |
9563 | New. | |
9564 | (union dynamic_prop_data) <variant_parts, original_type>: New | |
9565 | members. | |
9566 | (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant. | |
9567 | (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New | |
9568 | constants. | |
9569 | * value.c (unpack_bits_as_long): Now public. | |
9570 | * value.h (unpack_bits_as_long): Declare. | |
9571 | ||
675127ec TT |
9572 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
9573 | ||
9574 | * rs6000-tdep.c (struct ppc_variant): Rename from "variant". | |
9575 | (variants, find_variant_by_arch, rs6000_gdbarch_init): Update. | |
9576 | ||
9852ceef HD |
9577 | 2020-04-24 Hannes Domani <ssbssa@yahoo.de> |
9578 | ||
9579 | * windows-tdep.c (exception_values): Add WOW64 exception numbers. | |
9580 | ||
7632c6ce KR |
9581 | 2020-04-24 Kamil Rytarowski <n54@gmx.com> |
9582 | ||
9583 | * inf-ptrace.h (follow_fork, insert_fork_catchpoint) | |
9584 | (remove_fork_catchpoint, post_startup_inferior) | |
9585 | (post_attach): Move... | |
9586 | * obsd-nat.h (follow_fork, insert_fork_catchpoint) | |
9587 | (remove_fork_catchpoint, post_startup_inferior) | |
9588 | (post_attach): ...here. | |
9589 | * inf-ptrace.c (follow_fork, insert_fork_catchpoint) | |
9590 | (remove_fork_catchpoint, post_startup_inferior) | |
9591 | (post_attach): Move... | |
9592 | * obsd-nat.c (follow_fork, insert_fork_catchpoint) | |
9593 | (remove_fork_catchpoint, post_startup_inferior) | |
9594 | (post_attach): ...here. | |
9595 | ||
7be2bb4f TT |
9596 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
9597 | ||
9598 | * nat/windows-nat.h (struct windows_thread_info) | |
9599 | <pc_adjusted>: New member. | |
9600 | * windows-nat.c (windows_fetch_one_register): Check | |
9601 | pc_adjusted. | |
9602 | (windows_nat_target::get_windows_debug_event) | |
9603 | (windows_nat_target::wait): Set pc_adjusted. | |
9604 | ||
f80cb3b4 TV |
9605 | 2020-04-24 Tom de Vries <tdevries@suse.de> |
9606 | ||
9607 | * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling. | |
9608 | Run gdb-add-index inside temp dir. | |
9609 | ||
29514b87 TT |
9610 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
9611 | ||
9612 | * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter" | |
9613 | in loop. | |
9614 | ||
5939967b LM |
9615 | 2020-04-23 Luis Machado <luis.machado@linaro.org> |
9616 | ||
9617 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use | |
9618 | get_frame_register instead of gdbarch_unwind_pc. | |
9619 | ||
70bc38f5 TV |
9620 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
9621 | ||
9622 | * symtab.c (lookup_global_symbol): Prefer def over decl. | |
9623 | ||
de82891c TV |
9624 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
9625 | ||
9626 | PR symtab/25807 | |
9627 | * block.c (best_symbol, better_symbol): Promote to external. | |
9628 | * block.h (best_symbol, better_symbol): Declare. | |
9629 | * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over | |
9630 | decl. | |
9631 | ||
ecc6c606 TT |
9632 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
9633 | ||
9634 | PR ada/25837: | |
9635 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a | |
9636 | "const char *", not a "const std::string &". | |
9637 | <name_and_matcher::operator==>: Update. | |
9638 | * unittests/lookup_name_info-selftests.c: Change type of | |
9639 | "result". | |
9640 | ||
740480b8 TT |
9641 | 2020-04-23 Tom Tromey <tom@tromey.com> |
9642 | ||
9643 | * inferior.h (iterate_over_inferiors): Don't declare. | |
9644 | * inferior.c (iterate_over_inferiors): Remove. | |
9645 | * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it): | |
9646 | Remove. | |
9647 | (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't | |
9648 | use iterate_over_inferiors. | |
9649 | (darwin_resume_inferior_it) | |
9650 | (struct resume_inferior_threads_param) | |
9651 | (darwin_resume_inferior_threads_it): Remove. | |
9652 | (darwin_nat_target::resume): Don't use iterate_over_inferiors. | |
9653 | ||
ae3ab1f0 TV |
9654 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
9655 | ||
9656 | * blockframe.c (find_pc_partial_function): Use | |
9657 | find_pc_sect_compunit_symtab rather than | |
9658 | objfile->sf->qf->find_pc_sect_compunit_symtab. | |
9659 | ||
317d2668 TV |
9660 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
9661 | ||
9662 | PR symtab/25764 | |
9663 | * dwarf2/read.c (scan_partial_symbols): Allow external variable decls | |
9664 | in psymtabs. | |
9665 | ||
eea9e357 TV |
9666 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
9667 | ||
9668 | PR symtab/25801 | |
9669 | * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared | |
9670 | symtabs. | |
9671 | ||
3d5afab3 TV |
9672 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
9673 | ||
9674 | PR symtab/25700 | |
9675 | * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for | |
9676 | CU if already created. | |
9677 | ||
d43b7a2d TBA |
9678 | 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
9679 | ||
9680 | * infrun.c (displaced_step_fixup): Switch to the event_thread | |
9681 | before calling displaced_step_restore, not after. | |
9682 | ||
d89edf9b MM |
9683 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
9684 | ||
9685 | * record-btrace.c (record_btrace_enable_warn): Ignore thread if | |
9686 | its inferior is not recorded by us. | |
9687 | (record_btrace_target_open): Replace call to | |
9688 | all_non_exited_threads () with call to current_inferior | |
9689 | ()->non_exited_threads (). | |
9690 | (record_btrace_target::stop_recording): Likewise. | |
9691 | (record_btrace_target::close): Likewise. | |
9692 | (record_btrace_target::wait): Likewise. | |
9693 | (record_btrace_target::record_stop_replaying): Likewise. | |
9694 | ||
5897fd49 MM |
9695 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
9696 | ||
9697 | * btrace.c (btrace_enable): Throw an error on double enables and | |
9698 | when enabling recording fails. | |
9699 | (btrace_disable): Throw an error if the thread is not recorded. | |
9700 | ||
1a476b6d MM |
9701 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
9702 | ||
9703 | * record-btrace.c (record_btrace_target::fetch_registers): Forward | |
9704 | request if we do not have a thread_info. | |
9705 | ||
4778a5f8 TV |
9706 | 2020-04-21 Tom de Vries <tdevries@suse.de> |
9707 | ||
9708 | PR gdb/25471 | |
9709 | * thread.c | |
9710 | (scoped_restore_current_thread::scoped_restore_current_thread): Catch | |
9711 | exception in get_frame_id. | |
9712 | ||
0fa7617d TT |
9713 | 2020-04-20 Tom Tromey <tromey@adacore.com> |
9714 | ||
9715 | * python/python.c (struct gdbpy_event): Mark move constructor as | |
9716 | noexcept. | |
9717 | * python/py-tui.c (class gdbpy_tui_window_maker): Mark move | |
9718 | constructor as noexcept. | |
9719 | * completer.h (struct completion_result): Mark move constructor as | |
9720 | noexcept. | |
9721 | * completer.c (completion_result::completion_result): Use | |
9722 | initialization style. Don't call reset_match_list. | |
9723 | ||
ad23bda0 MS |
9724 | 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com> |
9725 | ||
9726 | * MAINTAINERS (Write After Approval): Add myself. | |
9727 | ||
45e1f031 TT |
9728 | 2020-04-18 Tom Tromey <tom@tromey.com> |
9729 | ||
9730 | * windows-tdep.c (init_w32_command_list) | |
9731 | (w32_prefix_command_valid): Restore. | |
9732 | (_initialize_windows_tdep): Call init_w32_command_list. | |
9733 | ||
08feed99 TT |
9734 | 2020-04-18 Tom Tromey <tom@tromey.com> |
9735 | ||
9736 | * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update. | |
9737 | * value.c (value_fn_field): Update. | |
9738 | * valops.c (find_function_in_inferior) | |
9739 | (value_allocate_space_in_inferior): Update. | |
9740 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
9741 | Update. | |
9742 | * tui/tui-source.c (tui_source_window::set_contents): Update. | |
9743 | * symtab.c (lookup_global_or_static_symbol) | |
9744 | (find_function_start_sal_1, skip_prologue_sal) | |
9745 | (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update. | |
9746 | * symmisc.c (dump_msymbols, dump_symtab_1) | |
9747 | (maintenance_print_one_line_table): Update. | |
9748 | * symfile.c (init_entry_point_info, section_is_mapped) | |
9749 | (list_overlays_command, simple_read_overlay_table) | |
9750 | (simple_overlay_update_1): Update. | |
9751 | * stap-probe.c (handle_stap_probe): Update. | |
9752 | * stabsread.c (dbx_init_float_type, define_symbol) | |
9753 | (read_one_struct_field, read_enum_type, read_range_type): Update. | |
9754 | * source.c (info_line_command): Update. | |
9755 | * python/python.c (gdbpy_source_objfile_script) | |
9756 | (gdbpy_execute_objfile_script): Update. | |
9757 | * python/py-type.c (save_objfile_types): Update. | |
9758 | * python/py-objfile.c (py_free_objfile): Update. | |
9759 | * python/py-inferior.c (python_new_objfile): Update. | |
9760 | * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab) | |
9761 | (dump_psymtab_addrmap_1, maintenance_info_psymtabs) | |
9762 | (maintenance_check_psymtabs): Update. | |
9763 | * printcmd.c (info_address_command): Update. | |
9764 | * objfiles.h (struct objfile) <arch>: New method, from | |
9765 | get_objfile_arch. | |
9766 | (get_objfile_arch): Don't declare. | |
9767 | * objfiles.c (get_objfile_arch): Remove. | |
9768 | (filter_overlapping_sections): Update. | |
9769 | * minsyms.c (msymbol_is_function): Update. | |
9770 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines) | |
9771 | (output_nondebug_symbol): Update. | |
9772 | * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols) | |
9773 | (mdebug_expand_psymtab): Update. | |
9774 | * machoread.c (macho_add_oso_symfile): Update. | |
9775 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): | |
9776 | Update. | |
9777 | * linux-fork.c (checkpoint_command): Update. | |
9778 | * linespec.c (convert_linespec_to_sals): Update. | |
9779 | * jit.c (finalize_symtab): Update. | |
9780 | * infrun.c (insert_exception_resume_from_probe): Update. | |
9781 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
9782 | * hppa-tdep.c (internalize_unwinds): Update. | |
9783 | * gdbtypes.c (get_type_arch, init_float_type, objfile_type): | |
9784 | Update. | |
9785 | * gcore.c (call_target_sbrk): Update. | |
9786 | * elfread.c (record_minimal_symbol, elf_symtab_read) | |
9787 | (elf_rel_plt_read, elf_gnu_ifunc_record_cache) | |
9788 | (elf_gnu_ifunc_resolve_by_got): Update. | |
9789 | * dwarf2/read.c (create_addrmap_from_index) | |
9790 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
9791 | (read_debug_names_from_section) | |
9792 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
9793 | (add_partial_subprogram, process_full_comp_unit) | |
9794 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
9795 | (read_call_site_scope, dwarf2_ranges_read) | |
9796 | (dwarf2_record_block_ranges, dwarf2_add_field) | |
9797 | (mark_common_block_symbol_computed, read_tag_pointer_type) | |
9798 | (read_tag_string_type, dwarf2_init_float_type) | |
9799 | (dwarf2_init_complex_target_type, read_base_type) | |
9800 | (partial_die_info::read, partial_die_info::read) | |
9801 | (read_attribute_value, dwarf_decode_lines_1, new_symbol) | |
9802 | (dwarf2_fetch_die_loc_sect_off): Update. | |
9803 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
9804 | (class dwarf_evaluate_loc_desc, rw_pieced_value) | |
9805 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval) | |
9806 | (dwarf2_loc_desc_get_symbol_read_needs) | |
9807 | (locexpr_describe_location_piece, locexpr_describe_location_1) | |
9808 | (loclist_describe_location): Update. | |
9809 | * dwarf2/index-write.c (write_debug_names): Update. | |
9810 | * dwarf2/frame.c (dwarf2_build_frame_info): Update. | |
9811 | * dtrace-probe.c (dtrace_process_dof): Update. | |
9812 | * dbxread.c (read_dbx_symtab, dbx_end_psymtab) | |
9813 | (process_one_symbol): Update. | |
9814 | * ctfread.c (ctf_init_float_type, read_base_type): Update. | |
9815 | * coffread.c (coff_symtab_read, enter_linenos, decode_base_type) | |
9816 | (coff_read_enum_type): Update. | |
9817 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
9818 | * buildsym.c (buildsym_compunit::finish_block_internal): Update. | |
9819 | * breakpoint.c (create_overlay_event_breakpoint) | |
9820 | (create_longjmp_master_breakpoint) | |
9821 | (create_std_terminate_master_breakpoint) | |
9822 | (create_exception_master_breakpoint, get_sal_arch): Update. | |
9823 | * block.c (block_gdbarch): Update. | |
9824 | * annotate.c (annotate_source_line): Update. | |
9825 | ||
0743fc83 TT |
9826 | 2020-04-17 Tom Tromey <tromey@adacore.com> |
9827 | ||
9828 | * auto-load.c (show_auto_load_cmd): Remove. | |
9829 | (auto_load_show_cmdlist_get): Use add_show_prefix_cmd. | |
9830 | * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd. | |
9831 | (maintenance_print_arc_command): Remove. | |
9832 | * tui/tui-win.c (tui_command): Remove. | |
9833 | (tui_get_cmd_list): Use add_basic_prefix_cmd. | |
9834 | * tui/tui-layout.c (tui_layout_command): Remove. | |
9835 | (_initialize_tui_layout): Use add_basic_prefix_cmd. | |
9836 | * python/python.c (user_set_python, user_show_python): Remove. | |
9837 | (_initialize_python): Use add_basic_prefix_cmd, | |
9838 | add_show_prefix_cmd. | |
9839 | * guile/guile.c (set_guile_command, show_guile_command): Remove. | |
9840 | (install_gdb_commands): Use add_basic_prefix_cmd, | |
9841 | add_show_prefix_cmd. | |
9842 | (info_guile_command): Remove. | |
9843 | * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove. | |
9844 | (_initialize_dwarf2_read): Use add_basic_prefix_cmd, | |
9845 | add_show_prefix_cmd. | |
9846 | * cli/cli-style.h (class cli_style_option) <add_setshow_commands>: | |
9847 | Remove do_set and do_show parameters. | |
9848 | * cli/cli-style.c (set_style, show_style): Remove. | |
9849 | (_initialize_cli_style): Use add_basic_prefix_cmd, | |
9850 | add_show_prefix_cmd. | |
9851 | (cli_style_option::add_setshow_commands): Remove do_set and | |
9852 | do_show parameters. | |
9853 | (cli_style_option::add_setshow_commands): Use | |
9854 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
9855 | (STYLE_ADD_SETSHOW_COMMANDS): Remove macro. | |
9856 | (set_style_name): Remove. | |
9857 | * cli/cli-dump.c (dump_command, append_command): Remove. | |
9858 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
9859 | (tekhex_dump_command, binary_dump_command) | |
9860 | (binary_append_command): Remove. | |
9861 | (_initialize_cli_dump): Use add_basic_prefix_cmd. | |
9862 | * windows-tdep.c (w32_prefix_command_valid): Remove global. | |
9863 | (init_w32_command_list): Remove; move into ... | |
9864 | (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd. | |
9865 | * valprint.c (set_print, show_print, set_print_raw) | |
9866 | (show_print_raw): Remove. | |
9867 | (_initialize_valprint): Use add_basic_prefix_cmd, | |
9868 | add_show_prefix_cmd. | |
9869 | * typeprint.c (set_print_type, show_print_type): Remove. | |
9870 | (_initialize_typeprint): Use add_basic_prefix_cmd, | |
9871 | add_show_prefix_cmd. | |
9872 | * record.c (set_record_command, show_record_command): Remove. | |
9873 | (_initialize_record): Use add_basic_prefix_cmd, | |
9874 | add_show_prefix_cmd. | |
9875 | * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd, | |
9876 | add_show_prefix_cmd. | |
9877 | (info_command, show_command, set_debug, show_debug): Remove. | |
9878 | * top.h (set_history, show_history): Don't declare. | |
9879 | * top.c (set_history, show_history): Remove. | |
9880 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
9881 | (unset_tdesc_cmd): Remove. | |
9882 | (_initialize_target_descriptions): Use add_basic_prefix_cmd, | |
9883 | add_show_prefix_cmd. | |
9884 | * symtab.c (info_module_command): Remove. | |
9885 | (_initialize_symtab): Use add_basic_prefix_cmd. | |
9886 | * symfile.c (overlay_command): Remove. | |
9887 | (_initialize_symfile): Use add_basic_prefix_cmd. | |
9888 | * sparc64-tdep.c (info_adi_command): Remove. | |
9889 | (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd. | |
9890 | * sh-tdep.c (show_sh_command, set_sh_command): Remove. | |
9891 | (_initialize_sh_tdep): Use add_basic_prefix_cmd, | |
9892 | add_show_prefix_cmd. | |
9893 | * serial.c (serial_set_cmd, serial_show_cmd): Remove. | |
9894 | (_initialize_serial): Use add_basic_prefix_cmd, | |
9895 | add_show_prefix_cmd. | |
9896 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove. | |
9897 | (_initialize_ser_tcp): Use add_basic_prefix_cmd, | |
9898 | add_show_prefix_cmd. | |
9899 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command) | |
9900 | (_initialize_rs6000_tdep): Use add_basic_prefix_cmd, | |
9901 | add_show_prefix_cmd. | |
9902 | * riscv-tdep.c (show_riscv_command, set_riscv_command) | |
9903 | (show_debug_riscv_command, set_debug_riscv_command): Remove. | |
9904 | (_initialize_riscv_tdep): Use add_basic_prefix_cmd, | |
9905 | add_show_prefix_cmd. | |
9906 | * remote.c (remote_command, set_remote_cmd): Remove. | |
9907 | (_initialize_remote): Use add_basic_prefix_cmd. | |
9908 | * record-full.c (set_record_full_command) | |
9909 | (show_record_full_command): Remove. | |
9910 | (_initialize_record_full): Use add_basic_prefix_cmd, | |
9911 | add_show_prefix_cmd. | |
9912 | * record-btrace.c (cmd_set_record_btrace) | |
9913 | (cmd_show_record_btrace, cmd_set_record_btrace_bts) | |
9914 | (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt) | |
9915 | (cmd_show_record_btrace_pt): Remove. | |
9916 | (_initialize_record_btrace): Use add_basic_prefix_cmd, | |
9917 | add_show_prefix_cmd. | |
9918 | * ravenscar-thread.c (set_ravenscar_command) | |
9919 | (show_ravenscar_command): Remove. | |
9920 | (_initialize_ravenscar): Use add_basic_prefix_cmd, | |
9921 | add_show_prefix_cmd. | |
9922 | * mips-tdep.c (show_mips_command, set_mips_command) | |
9923 | (_initialize_mips_tdep): Use add_basic_prefix_cmd, | |
9924 | add_show_prefix_cmd. | |
9925 | * maint.c (maintenance_command, maintenance_info_command) | |
9926 | (maintenance_check_command, maintenance_print_command) | |
9927 | (maintenance_set_cmd, maintenance_show_cmd): Remove. | |
9928 | (_initialize_maint_cmds): Use add_basic_prefix_cmd, | |
9929 | add_show_prefix_cmd. | |
9930 | (show_per_command_cmd): Remove. | |
9931 | * maint-test-settings.c (maintenance_set_test_settings_cmd): | |
9932 | Remove. | |
9933 | (maintenance_show_test_settings_cmd): Remove. | |
9934 | (_initialize_maint_test_settings): Use add_basic_prefix_cmd, | |
9935 | add_show_prefix_cmd. | |
9936 | * maint-test-options.c (maintenance_test_options_command): | |
9937 | Remove. | |
9938 | (_initialize_maint_test_options): Use add_basic_prefix_cmd. | |
9939 | * macrocmd.c (macro_command): Remove | |
9940 | (_initialize_macrocmd): Use add_basic_prefix_cmd. | |
9941 | * language.c (set_check, show_check): Remove. | |
9942 | (_initialize_language): Use add_basic_prefix_cmd, | |
9943 | add_show_prefix_cmd. | |
9944 | * infcmd.c (unset_command): Remove. | |
9945 | (_initialize_infcmd): Use add_basic_prefix_cmd. | |
9946 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove. | |
9947 | (_initialize_i386_tdep): Use add_basic_prefix_cmd, | |
9948 | add_show_prefix_cmd. | |
9949 | * go32-nat.c (go32_info_dos_command): Remove. | |
9950 | (_initialize_go32_nat): Use add_basic_prefix_cmd. | |
9951 | * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd) | |
9952 | (do_show_prefix_cmd, add_show_prefix_cmd): New functions. | |
9953 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove. | |
9954 | (_initialize_frame): Use add_basic_prefix_cmd, | |
9955 | add_show_prefix_cmd. | |
9956 | * dcache.c (set_dcache_command, show_dcache_command): Remove. | |
9957 | (_initialize_dcache): Use add_basic_prefix_cmd, | |
9958 | add_show_prefix_cmd. | |
9959 | * cp-support.c (maint_cplus_command): Remove. | |
9960 | (_initialize_cp_support): Use add_basic_prefix_cmd. | |
9961 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
9962 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
9963 | (maint_btrace_pt_show_cmd, _initialize_btrace): Use | |
9964 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
9965 | * breakpoint.c (save_command): Remove. | |
9966 | (_initialize_breakpoint): Use add_basic_prefix_cmd. | |
9967 | * arm-tdep.c (set_arm_command, show_arm_command): Remove. | |
9968 | (_initialize_arm_tdep): Use add_basic_prefix_cmd, | |
9969 | add_show_prefix_cmd. | |
9970 | * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd) | |
9971 | (set_ada_command, show_ada_command): Remove. | |
9972 | (_initialize_ada_language): Use add_basic_prefix_cmd, | |
9973 | add_show_prefix_cmd. | |
9974 | * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare. | |
9975 | ||
3557f442 KR |
9976 | 2020-04-16 Kamil Rytarowski <n54@gmx.com> |
9977 | ||
9978 | * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove. | |
9979 | * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise. | |
9980 | ||
16197208 SM |
9981 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
9982 | ||
9983 | * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to | |
9984 | warning messages. | |
9985 | ||
00ac85d3 SM |
9986 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
9987 | ||
9988 | * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where | |
9989 | import table is not at beginning of .idata section. | |
9990 | ||
381ce63f PA |
9991 | 2020-04-16 Pedro Alves <palves@redhat.com> |
9992 | ||
9993 | * inferior.c (delete_inferior): Use delete operator directly | |
9994 | instead of delete_program_space. | |
9995 | * progspace.c (add_program_space): New, factored out from | |
9996 | program_space::program_space. | |
9997 | (remove_program_space): New, factored out from | |
9998 | delete_program_space. | |
9999 | (program_space::program_space): Remove intro comment. Rewrite. | |
10000 | (program_space::~program_space): Remove intro comment. Call | |
10001 | remove_program_space. | |
10002 | (delete_program_space): Delete. | |
10003 | * progspace.h (program_space::program_space): Make explicit. Move | |
10004 | intro comment here, adjusted. | |
10005 | (program_space::~program_space): Move intro comment here, | |
10006 | adjusted. | |
10007 | (delete_program_space): Remove. | |
10008 | ||
a010605f TT |
10009 | 2020-04-16 Tom Tromey <tromey@adacore.com> |
10010 | ||
10011 | * windows-nat.c (windows_nat::handle_access_violation): New | |
10012 | function. | |
10013 | * nat/windows-nat.h (handle_access_violation): Declare. | |
10014 | * nat/windows-nat.c (handle_exception): Move Cygwin code to | |
10015 | windows-nat.c. Call handle_access_violation. | |
10016 | ||
efba5c23 TV |
10017 | 2020-04-16 Tom de Vries <tdevries@suse.de> |
10018 | ||
10019 | PR symtab/25791 | |
10020 | * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for | |
10021 | CUs without psymtab. | |
10022 | ||
97ed802d KB |
10023 | 2020-04-16 Kevin Buettner <kevinb@redhat.com> |
10024 | ||
10025 | * python/python.c (do_start_initialization): Don't call | |
10026 | PyEval_InitThreads for Python 3.9 and beyond. | |
10027 | ||
c7d64809 KR |
10028 | 2020-04-15 Kamil Rytarowski <n54@gmx.com> |
10029 | ||
10030 | * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to | |
10031 | thread functions. | |
10032 | (obsd_nat_target::wait): Likewise. | |
10033 | ||
ce127a96 TT |
10034 | 2020-04-15 Tom Tromey <tromey@adacore.com> |
10035 | ||
10036 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) | |
10037 | (DEBUG_EXCEPT): Use debug_printf. | |
10038 | ||
99f1bc6a AB |
10039 | 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
10040 | ||
10041 | * completer.c (class completion_tracker::completion_hash_entry) | |
10042 | <hash_name>: New member function. | |
10043 | (completion_tracker::discard_completions): New callback to hash a | |
10044 | completion_hash_entry, pass this to htab_create_alloc. | |
10045 | ||
a0e9b532 JT |
10046 | 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk> |
10047 | ||
10048 | * windows-nat.c (windows_make_so): Warn rather than stopping with | |
10049 | an error if realpath() fails. | |
10050 | ||
06ca5dd4 KR |
10051 | 2020-04-14 Kamil Rytarowski <n54@gmx.com> |
10052 | ||
10053 | * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New. | |
10054 | (nbsd_nat_target::info_proc): Add do_status. | |
10055 | ||
194d088f TV |
10056 | 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca> |
10057 | Tom de Vries <tdevries@suse.de> | |
10058 | ||
10059 | PR symtab/25718 | |
10060 | * psympriv.h (struct partial_symtab::read_symtab) | |
10061 | (struct partial_symtab::expand_psymtab) | |
10062 | (struct partial_symtab::read_dependencies): Update comments. | |
10063 | * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call | |
10064 | read_symtab for includer. | |
10065 | (struct dwarf2_include_psymtab::expand_psymtab): Assert false. | |
10066 | (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer. | |
10067 | (struct dwarf2_include_psymtab::m_readin): Remove. | |
10068 | (struct dwarf2_include_psymtab::includer): New member function. | |
10069 | (dwarf2_psymtab::expand_psymtab): Assert !readin. | |
10070 | ||
c1a66c06 TV |
10071 | 2020-04-14 Tom de Vries <tdevries@suse.de> |
10072 | ||
10073 | PR symtab/25720 | |
10074 | * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching | |
10075 | with NULL symbol_matcher and lookup_name. | |
10076 | * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher | |
10077 | and lookup_name. | |
10078 | * dwarf2/read.c (dw2_expand_symtabs_matching) | |
10079 | (dw2_debug_names_expand_symtabs_matching): Same. | |
10080 | * symfile.h (struct quick_symbol_functions::expand_symtabs_matching): | |
10081 | Make lookup_name a pointer. Update comment. | |
10082 | * symtab.c (global_symbol_searcher::expand_symtabs): Handle | |
10083 | lookup_name being a pointer. | |
10084 | * symfile.c (expand_symtabs_matching): Same. | |
10085 | * symfile-debug.c (debug_qf_expand_symtabs_matching): Same. | |
10086 | * linespec.c (iterate_over_all_matching_symtabs): Same. | |
10087 | ||
400b5eca TT |
10088 | 2020-04-13 Tom Tromey <tom@tromey.com> |
10089 | ||
10090 | * run-on-main-thread.c: Update include. | |
10091 | * unittests/main-thread-selftests.c: Update include. | |
10092 | * tui/tui-win.c: Update include. | |
10093 | * tui/tui-io.c: Update include. | |
10094 | * tui/tui-interp.c: Update include. | |
10095 | * tui/tui-hooks.c: Update include. | |
10096 | * top.h: Update include. | |
10097 | * top.c: Update include. | |
10098 | * ser-base.c: Update include. | |
10099 | * remote.c: Update include. | |
10100 | * remote-notif.c: Update include. | |
10101 | * remote-fileio.c: Update include. | |
10102 | * record-full.c: Update include. | |
10103 | * record-btrace.c: Update include. | |
10104 | * python/python.c: Update include. | |
10105 | * posix-hdep.c: Update include. | |
10106 | * mingw-hdep.c: Update include. | |
10107 | * mi/mi-main.c: Update include. | |
10108 | * mi/mi-interp.c: Update include. | |
10109 | * main.c: Update include. | |
10110 | * linux-nat.c: Update include. | |
10111 | * interps.c: Update include. | |
10112 | * infrun.c: Update include. | |
10113 | * inf-loop.c: Update include. | |
10114 | * event-top.c: Update include. | |
10115 | * event-loop.c: Move to ../gdbsupport/. | |
10116 | * event-loop.h: Move to ../gdbsupport/. | |
10117 | * async-event.h: Update include. | |
10118 | * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update. | |
10119 | ||
93b54c8e TT |
10120 | 2020-04-13 Tom Tromey <tom@tromey.com> |
10121 | ||
10122 | * tui/tui-win.c: Include async-event.h. | |
10123 | * remote.c: Include async-event.h. | |
10124 | * remote-notif.c: Include async-event.h. | |
10125 | * record-full.c: Include async-event.h. | |
10126 | * record-btrace.c: Include async-event.h. | |
10127 | * infrun.c: Include async-event.h. | |
10128 | * event-top.c: Include async-event.h. | |
10129 | * event-loop.h: Move some declarations to async-event.h. | |
10130 | * event-loop.c: Don't include ser-event.h or top.h. Move some | |
10131 | code to async-event.c. | |
10132 | * async-event.h: New file. | |
10133 | * async-event.c: New file. | |
10134 | * Makefile.in (COMMON_SFILES): Add async-event.c. | |
10135 | (HFILES_NO_SRCDIR): Add async-event.h. | |
10136 | ||
c1cd3163 TT |
10137 | 2020-04-13 Tom Tromey <tom@tromey.com> |
10138 | ||
10139 | * utils.c (flush_streams): New function. | |
10140 | * event-loop.c (gdb_wait_for_event): Call flush_streams. | |
10141 | ||
29f2bf4f TT |
10142 | 2020-04-13 Tom Tromey <tom@tromey.com> |
10143 | ||
10144 | * event-loop.c (handle_file_event): Use warning, not | |
10145 | printf_unfiltered. | |
10146 | ||
98029d02 TT |
10147 | 2020-04-13 Tom Tromey <tom@tromey.com> |
10148 | ||
10149 | * event-loop.c: Include <chrono>. | |
10150 | ||
06cc9596 TT |
10151 | 2020-04-13 Tom Tromey <tom@tromey.com> |
10152 | ||
10153 | * gdb_select.h: Move to ../gdbsupport/. | |
10154 | * event-loop.c: Update include path. | |
10155 | * top.c: Update include path. | |
10156 | * ser-base.c: Update include path. | |
10157 | * ui-file.c: Update include path. | |
10158 | * ser-tcp.c: Update include path. | |
10159 | * guile/scm-ports.c: Update include path. | |
10160 | * posix-hdep.c: Update include path. | |
10161 | * ser-unix.c: Update include path. | |
10162 | * gdb_usleep.c: Update include path. | |
10163 | * mingw-hdep.c: Update include path. | |
10164 | * inflow.c: Update include path. | |
10165 | * infrun.c: Update include path. | |
10166 | * event-top.c: Update include path. | |
10167 | ||
8ae8e197 TT |
10168 | 2020-04-13 Tom Tromey <tom@tromey.com> |
10169 | ||
10170 | * configure: Rebuild. | |
10171 | * configure.ac: Remove checks that are now in GDB_AC_COMMON. | |
10172 | ||
58cf28e8 TT |
10173 | 2020-04-13 Tom Tromey <tom@tromey.com> |
10174 | ||
10175 | * event-loop.h (start_event_loop): Don't declare. | |
10176 | * event-loop.c (start_event_loop): Move... | |
10177 | * main.c (start_event_loop): ...here. Now static. | |
10178 | ||
b7f999ae SDJ |
10179 | 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net> |
10180 | ||
10181 | * MAINTAINERS: Update my email address. | |
10182 | ||
1085dfd4 KR |
10183 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
10184 | ||
10185 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and | |
10186 | IP_ALL. | |
10187 | ||
49d1d1f5 KR |
10188 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
10189 | ||
10190 | * nbsd-nat.c (nbsd_pid_to_cmdline): Add. | |
aac66a4c | 10191 | (nbsd_nat_target::info_proc): Add do_cmdline. |
49d1d1f5 | 10192 | |
b4848d2a KR |
10193 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
10194 | ||
10195 | * nbsd-nat.c (nbsd_pid_to_cwd): Add. | |
aac66a4c | 10196 | (nbsd_nat_target::info_proc): Add do_cwd. |
b4848d2a | 10197 | |
51c133d5 KR |
10198 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
10199 | ||
10200 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe. | |
10201 | ||
54b8cbd0 KR |
10202 | 2020-04-11 Kamil Rytarowski <n54@gmx.com> |
10203 | ||
10204 | * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h". | |
10205 | * nbsd-nat.c (nbsd_nat_target::find_memory_regions) | |
10206 | (nbsd_nat_target::info_proc): New functions. | |
10207 | * nbsd-nat.c (kinfo_get_vmmap): New function. | |
10208 | * nbsd-nat.c (nbsd_nat_target::info_proc) Use | |
10209 | nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry. | |
10210 | * nbsd-tdep.c (nbsd_info_proc_mappings_header) | |
10211 | (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New | |
10212 | functions. | |
10213 | * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE) | |
10214 | (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
10215 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
10216 | (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP) | |
10217 | (KINFO_VME_FLAG_GROWS_DOWN): New. | |
10218 | ||
cf83625d AS |
10219 | 2020-04-10 Artur Shepilko <nomadbyte@gmail.com> |
10220 | ||
10221 | * utils.c (copy_bitwise): Use unsigned 0 constant as operand of | |
10222 | bit shift. | |
10223 | ||
0c4311ab TT |
10224 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
10225 | ||
10226 | * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE. | |
10227 | ||
3e65b3e9 TT |
10228 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
10229 | ||
10230 | * symtab.c (get_symbol_address, get_msymbol_address): Skip | |
10231 | separate debug files. | |
10232 | ||
13302e95 HD |
10233 | 2020-04-10 Hannes Domani <ssbssa@yahoo.de> |
10234 | ||
10235 | * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
10236 | Move to... | |
10237 | * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
10238 | ... here. | |
10239 | * windows-nat.c (windows_nat_target::get_windows_debug_event): | |
10240 | Check for STATUS_WX86_BREAKPOINT. | |
10241 | (windows_nat_target::wait): Same. | |
10242 | ||
bdfc1e8a TV |
10243 | 2020-04-10 Tom de Vries <tdevries@suse.de> |
10244 | ||
10245 | PR cli/25808 | |
10246 | * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False. | |
10247 | ||
f4460aec SM |
10248 | 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10249 | ||
10250 | * MAINTAINERS (Global Maintainers): Add Tom de Vries. | |
10251 | (Write After Approval): Remove Tom de Vries. | |
10252 | ||
a25198bb BE |
10253 | 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de> |
10254 | ||
10255 | revert partially: | |
10256 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
10257 | ||
aac66a4c SM |
10258 | * buildsym.c (record_line): Fix undefined behavior and preserve |
10259 | lines at eof. | |
a25198bb | 10260 | |
206c98a6 KR |
10261 | 2020-04-09 Kamil Rytarowski <n54@gmx.com> |
10262 | ||
10263 | * auxv.h (svr4_auxv_parse): New. | |
10264 | * auxv.c (default_auxv_parse): Split into default_auxv_parse | |
10265 | and generic_auxv_parse. | |
10266 | (svr4_auxv_parse): Add. | |
10267 | * obsd-tdep.c: Include "auxv.h". | |
10268 | (obsd_auxv_parse): Remove. | |
10269 | (obsd_init_abi): Remove comment. | |
10270 | (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument | |
10271 | from `obsd_auxv_parse' to `svr4_auxv_parse'. | |
10272 | * nbsd-tdep.c: Include "auxv.h". | |
10273 | (nbsd_init_abi): Call set_gdbarch_auxv_parse. | |
10274 | ||
71fbdbaf TT |
10275 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10276 | ||
10277 | * nat/windows-nat.h (last_wait_event): Don't declare. | |
10278 | (wait_for_debug_event): Update comment. | |
10279 | * nat/windows-nat.c (last_wait_event): Now static. | |
10280 | ||
2c1d95e8 TT |
10281 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10282 | ||
10283 | * windows-nat.c (wait_for_debug_event): Move to | |
10284 | nat/windows-nat.c. | |
10285 | * nat/windows-nat.h (wait_for_debug_event): Declare. | |
10286 | * nat/windows-nat.c (wait_for_debug_event): Move from | |
10287 | windows-nat.c. No longer static. | |
10288 | ||
d2977bc4 TT |
10289 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10290 | ||
10291 | * windows-nat.c (get_windows_debug_event): Use | |
10292 | fetch_pending_stop. | |
10293 | * nat/windows-nat.h (fetch_pending_stop): Declare. | |
10294 | * nat/windows-nat.c (fetch_pending_stop): New function. | |
10295 | ||
e758e19c TT |
10296 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10297 | ||
10298 | * windows-nat.c (windows_continue): Use matching_pending_stop and | |
10299 | continue_last_debug_event. | |
10300 | * nat/windows-nat.h (matching_pending_stop) | |
10301 | (continue_last_debug_event): Declare. | |
10302 | * nat/windows-nat.c (DEBUG_EVENTS): New define. | |
10303 | (matching_pending_stop, continue_last_debug_event): New | |
10304 | functions. | |
10305 | ||
8d30e395 TT |
10306 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10307 | ||
10308 | * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c. | |
10309 | (handle_exception_result): Move to nat/windows-nat.h. | |
10310 | (DEBUG_EXCEPTION_SIMPLE): Remove. | |
10311 | (windows_nat::handle_ms_vc_exception): New function. | |
10312 | (handle_exception): Move to nat/windows-nat.c. | |
10313 | (get_windows_debug_event): Update. | |
10314 | (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to | |
10315 | nat/windows-nat.c. | |
10316 | * nat/windows-nat.h (handle_ms_vc_exception): Declare. | |
10317 | (handle_exception_result): Move from windows-nat.c. | |
10318 | (handle_exception): Declare. | |
10319 | * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception) | |
10320 | (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from | |
10321 | windows-nat.c. | |
10322 | ||
29de418d TT |
10323 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10324 | ||
10325 | * windows-nat.c (exception_count, event_count): Remove. | |
10326 | (handle_exception, get_windows_debug_event) | |
10327 | (do_initial_windows_stuff): Update. | |
10328 | ||
a816ba18 TT |
10329 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10330 | ||
10331 | * windows-nat.c (windows_nat::handle_load_dll) | |
10332 | (windows_nat::handle_unload_dll): Rename. No longer static. | |
10333 | * nat/windows-nat.h (handle_load_dll, handle_unload_dll): | |
10334 | Declare. | |
10335 | ||
a00caa12 TT |
10336 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10337 | ||
10338 | * complaints.h (stop_whining): Declare at top-level. | |
10339 | (complaint): Don't declare stop_whining. | |
10340 | ||
d41b524f TT |
10341 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10342 | ||
10343 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
10344 | Rename. No longer static. | |
10345 | * nat/windows-nat.h (handle_output_debug_string): Declare. | |
10346 | ||
3c76026d TT |
10347 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10348 | ||
10349 | * windows-nat.c (current_process_handle, current_process_id) | |
10350 | (main_thread_id, last_sig, current_event, last_wait_event) | |
10351 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
10352 | (struct pending_stop, siginfo_er): Move to nat/windows-nat.c. | |
10353 | (display_selectors, fake_create_process) | |
10354 | (get_windows_debug_event): Update. | |
10355 | * nat/windows-nat.h (current_process_handle, current_process_id) | |
10356 | (main_thread_id, last_sig, current_event, last_wait_event) | |
10357 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
10358 | (struct pending_stop, siginfo_er): Move from windows-nat.c. | |
10359 | * nat/windows-nat.c (current_process_handle, current_process_id) | |
10360 | (main_thread_id, last_sig, current_event, last_wait_event) | |
10361 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
10362 | (siginfo_er): New globals. Move from windows-nat.c. | |
10363 | ||
9d8679cc TT |
10364 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10365 | ||
10366 | * windows-nat.c (get_image_name): Move to nat/windows-nat.c. | |
10367 | (handle_load_dll): Update. | |
10368 | * nat/windows-nat.c (get_image_name): Move from windows-nat.c. | |
10369 | ||
28688adf TT |
10370 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10371 | ||
10372 | * windows-nat.c (enum thread_disposition_type): Move to | |
10373 | nat/windows-nat.h. | |
10374 | (windows_nat::thread_rec): Rename from thread_rec. No longer | |
10375 | static. | |
10376 | (windows_add_thread, windows_nat_target::fetch_registers) | |
10377 | (windows_nat_target::store_registers, handle_exception) | |
10378 | (windows_nat_target::resume, get_windows_debug_event) | |
10379 | (windows_nat_target::get_tib_address) | |
10380 | (windows_nat_target::thread_name) | |
10381 | (windows_nat_target::thread_alive): Update. | |
10382 | * nat/windows-nat.h (enum thread_disposition_type): Move from | |
10383 | windows-nat.c. | |
10384 | (thread_rec): Declare. | |
10385 | ||
4834dad0 TT |
10386 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10387 | ||
10388 | * windows-nat.c: Add "using namespace". | |
10389 | * nat/windows-nat.h: Wrap contents in windows_nat namespace. | |
10390 | * nat/windows-nat.c: Wrap contents in windows_nat namespace. | |
10391 | ||
65bafd5b TT |
10392 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10393 | ||
10394 | * nat/windows-nat.h (struct windows_thread_info): Declare | |
10395 | destructor. | |
10396 | * nat/windows-nat.c (~windows_thread_info): New. | |
10397 | ||
0a4afda3 TT |
10398 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10399 | ||
10400 | PR gdb/22992 | |
10401 | * windows-nat.c (current_event): Update comment. | |
10402 | (last_wait_event, desired_stop_thread_id): New globals. | |
10403 | (struct pending_stop): New. | |
10404 | (pending_stops): New global. | |
10405 | (windows_nat_target) <stopped_by_sw_breakpoint> | |
10406 | <supports_stopped_by_sw_breakpoint>: New methods. | |
10407 | (windows_fetch_one_register): Add assertions. Adjust PC. | |
10408 | (windows_continue): Handle pending stops. Suspend other threads | |
10409 | when stepping. Use last_wait_event | |
10410 | (wait_for_debug_event): New function. | |
10411 | (get_windows_debug_event): Use wait_for_debug_event. Handle | |
10412 | pending stops. Queue spurious stops. | |
10413 | (windows_nat_target::wait): Set stopped_at_software_breakpoint. | |
10414 | (windows_nat_target::kill): Use wait_for_debug_event. | |
10415 | * nat/windows-nat.h (struct windows_thread_info) | |
10416 | <stopped_at_software_breakpoint>: New field. | |
10417 | * nat/windows-nat.c (windows_thread_info::resume): Clear | |
10418 | stopped_at_software_breakpoint. | |
10419 | ||
8e61ebec TT |
10420 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10421 | ||
10422 | * windows-nat.c (enum thread_disposition_type): New. | |
10423 | (thread_rec): Replace "get_context" parameter with "disposition"; | |
10424 | change type. | |
10425 | (windows_add_thread, windows_nat_target::fetch_registers) | |
10426 | (windows_nat_target::store_registers, handle_exception) | |
10427 | (windows_nat_target::resume, get_windows_debug_event) | |
10428 | (windows_nat_target::get_tib_address) | |
10429 | (windows_nat_target::thread_name) | |
10430 | (windows_nat_target::thread_alive): Update. | |
10431 | ||
98a03287 TT |
10432 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10433 | ||
10434 | * windows-nat.c (thread_rec): Use windows_thread_info::suspend. | |
10435 | (windows_continue): Use windows_continue::resume. | |
10436 | * nat/windows-nat.h (struct windows_thread_info) <suspend, | |
10437 | resume>: Declare new methods. | |
10438 | * nat/windows-nat.c: New file. | |
10439 | * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed. | |
10440 | ||
7c7411bc TT |
10441 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10442 | ||
10443 | * windows-nat.c (windows_add_thread, windows_delete_thread) | |
10444 | (windows_nat_target::fetch_registers) | |
10445 | (windows_nat_target::store_registers, fake_create_process) | |
10446 | (windows_nat_target::resume, windows_nat_target::resume) | |
10447 | (get_windows_debug_event, windows_nat_target::wait) | |
10448 | (windows_nat_target::pid_to_str) | |
10449 | (windows_nat_target::get_tib_address) | |
10450 | (windows_nat_target::get_ada_task_ptid) | |
10451 | (windows_nat_target::thread_name) | |
10452 | (windows_nat_target::thread_alive): Use lwp, not tid. | |
10453 | ||
2950fdf7 TT |
10454 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10455 | ||
10456 | * windows-nat.c (handle_exception) | |
10457 | (windows_nat_target::thread_name): Update. | |
10458 | * nat/windows-nat.h (windows_thread_info): Remove destructor. | |
10459 | <name>: Now unique_xmalloc_ptr. | |
10460 | ||
62fe396b TT |
10461 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10462 | ||
10463 | * windows-nat.c (thread_rec) | |
10464 | (windows_nat_target::fetch_registers): Update. | |
10465 | * nat/windows-nat.h (struct windows_thread_info) <suspended>: | |
10466 | Update comment. | |
10467 | <debug_registers_changed, reload_context>: Now bool. | |
10468 | ||
e9534bd2 TT |
10469 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10470 | ||
10471 | * windows-nat.c (windows_add_thread): Use new. | |
10472 | (windows_init_thread_list, windows_delete_thread): Use delete. | |
10473 | (get_windows_debug_event): Update. | |
10474 | * nat/windows-nat.h (struct windows_thread_info): Add constructor, | |
10475 | destructor, and initializers. | |
10476 | ||
ae1f8880 TT |
10477 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10478 | ||
10479 | * windows-nat.c (struct windows_thread_info): Remove. | |
10480 | * nat/windows-nat.h: New file. | |
10481 | ||
55a1e039 TT |
10482 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10483 | ||
10484 | * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id". | |
10485 | (thread_rec, windows_add_thread, windows_delete_thread) | |
10486 | (windows_continue): Update. | |
10487 | ||
93366324 TT |
10488 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
10489 | ||
10490 | * windows-nat.c (struct windows_thread_info): Remove typedef. | |
10491 | (thread_head): Remove. | |
10492 | (thread_list): New global. | |
10493 | (thread_rec, windows_add_thread, windows_init_thread_list) | |
10494 | (windows_delete_thread, windows_continue): Update. | |
10495 | ||
0f2265e2 SM |
10496 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
10497 | ||
10498 | * windows-tdep.h (windows_init_abi): Add comment. | |
10499 | (cygwin_init_abi): New declaration. | |
10500 | * windows-tdep.c: Split signal enumeration in two, one for | |
10501 | Windows and one for Cygwin. | |
10502 | (windows_gdb_signal_to_target): Only deal with signal of the | |
10503 | Windows OS ABI. | |
10504 | (cygwin_gdb_signal_to_target): New function. | |
10505 | (windows_init_abi): Rename to windows_init_abi_common, don't set | |
10506 | gdb_signal_to_target gdbarch method. Add new new function with | |
10507 | this name. | |
10508 | (cygwin_init_abi): New function. | |
10509 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add | |
10510 | comment. Don't call windows_init_abi. | |
10511 | (amd64_windows_init_abi): Add comment, call windows_init_abi. | |
10512 | (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi. | |
10513 | * i386-windows-tdep.c (i386_windows_init_abi): Rename to | |
10514 | i386_windows_init_abi_common, don't call windows_init_abi. Add | |
10515 | a new function of this name. | |
10516 | (i386_cygwin_init_abi): New function. | |
10517 | (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to | |
10518 | OS ABI Cygwin. | |
10519 | ||
3810f182 SM |
10520 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
10521 | ||
10522 | * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile | |
10523 | parameter.c. | |
10524 | (dwarf2_read_gdb_index): Update. | |
10525 | ||
063f8e80 KR |
10526 | 2020-04-07 Kamil Rytarowski <n54@gmx.com> |
10527 | ||
10528 | * nbsd-tdep.c: Include "objfiles.h". | |
10529 | (nbsd_skip_solib_resolver): New. | |
10530 | (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver(). | |
10531 | ||
85a9510c | 10532 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
10533 | ||
10534 | * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_ | |
10535 | addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair | |
10536 | with DW_LLE_base_addressx are being emitted in DWARFv5. | |
10537 | Add the newly added kind DW_LOC_OFFSET_PAIR also. | |
10538 | The length of location description is an unsigned ULEB integer in DWARFv5 instead of | |
10539 | unsigned integer. | |
10540 | ||
9fc3eaae | 10541 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
10542 | ||
10543 | * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR. | |
10544 | (dwarf2_find_location_expression): Call the function decode_debug_loclists_ | |
10545 | addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair | |
10546 | with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*. | |
10547 | Add applicable base address if the entry is DW_LLE_offset_pair from DWO. | |
10548 | (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of | |
10549 | DEBUG_LOC_START_END in case of DW_LLE_offset_pair. | |
10550 | ||
10551 | ||
41144253 | 10552 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
10553 | ||
10554 | * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function. | |
10555 | (read_loclist_index): New function definition. | |
10556 | (lookup_loclist_base): New function definition. | |
10557 | (read_loclist_header): New function definition. | |
10558 | (dwarf2_cu): Add loclist_base and loclist_header field. | |
10559 | (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section. | |
10560 | (read_full_die_1): Read the value of DW_AT_loclists_base. | |
10561 | (read_attribute_reprocess): Handle DW_FORM_loclistx. | |
10562 | (read_attribute_value): Handle DW_FORM_loclistx. | |
10563 | (skip_one_die): Handle DW_FORM_loclistx. | |
10564 | (loclist_header): New structure declaration. | |
10565 | * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx. | |
10566 | ||
9f4e76a4 SM |
10567 | 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10568 | ||
10569 | * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters | |
10570 | constructor. Remove `addr` parameter from other constructor and | |
10571 | add `per_cu` parameter. | |
10572 | * dwarf2/read.c (create_partial_symtab): Update. | |
10573 | ||
25c11aca TV |
10574 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
10575 | ||
10576 | PR symtab/25796 | |
10577 | * dwarf2/read.c (can_have_DW_AT_const_value_p): New function. | |
10578 | (partial_die_info::fixup): Inherit has_const_value. | |
10579 | ||
5707e24b TV |
10580 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
10581 | ||
10582 | * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK | |
10583 | symbols without address. | |
10584 | ||
05f00e22 KR |
10585 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
10586 | ||
10587 | * nbsd-nat.h (struct thread_info): Add forward declaration. | |
10588 | (nbsd_nat_target::thread_alive): Add. | |
10589 | (nbsd_nat_target::thread_name): Likewise. | |
10590 | (nbsd_nat_target::update_thread_list): Likewise. | |
10591 | (update_thread_list::post_attach): Likewise. | |
10592 | (post_attach::pid_to_str): Likewise. | |
10593 | * nbsd-nat.c: Include "gdbthread.h" and "inferior.h". | |
10594 | (nbsd_thread_lister): Add. | |
10595 | (nbsd_nat_target::thread_alive): Likewise. | |
10596 | (nbsd_nat_target::thread_name): Likewise. | |
10597 | (nbsd_add_threads): Likewise. | |
10598 | (update_thread_list::post_attach): Likewise. | |
10599 | (nbsd_nat_target::update_thread_list): Likewise. | |
10600 | (post_attach::pid_to_str): Likewise. | |
10601 | ||
6ee448cc TT |
10602 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
10603 | ||
10604 | * ada-valprint.c (print_variant_part): Extract the variant field. | |
10605 | (print_field_values): Use the field as the outer value when | |
10606 | recursing. | |
10607 | ||
dea34e8c TT |
10608 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
10609 | ||
10610 | * sh-nbsd-tdep.c: Include nbsd-tdep.h. | |
10611 | * ppc-nbsd-tdep.c: Include nbsd-tdep.h. | |
10612 | * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";". | |
10613 | * arm-nbsd-tdep.c: Include nbsd-tdep.h. | |
10614 | * hppa-nbsd-tdep.c: Include nbsd-tdep.h. | |
10615 | ||
93689ce9 TT |
10616 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
10617 | ||
10618 | * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle | |
10619 | TYPE_CODE_ERROR. | |
10620 | ||
79743962 KR |
10621 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
10622 | ||
10623 | * nbsd-tdep.c: Include "gdbarch.h". | |
10624 | Define enum with NetBSD signal numbers. | |
10625 | (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New. | |
10626 | * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi(). | |
10627 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
10628 | * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise. | |
10629 | * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise. | |
10630 | * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise. | |
10631 | * mips-nbsd-tdep.c (nbsd_init_abi): Likewise. | |
10632 | * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise. | |
10633 | * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise. | |
10634 | * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise. | |
10635 | * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise. | |
10636 | * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise. | |
10637 | ||
9e7c9a03 HD |
10638 | 2020-04-03 Hannes Domani <ssbssa@yahoo.de> |
10639 | ||
10640 | PR gdb/25325 | |
10641 | * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. | |
10642 | ||
d9e49b61 TT |
10643 | 2020-04-03 Tom Tromey <tromey@adacore.com> |
10644 | ||
10645 | * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>: | |
10646 | Read constant block. | |
10647 | ||
e0fc5c3f SM |
10648 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
10649 | ||
10650 | * gdb_bfd.h: Include gdbsupport/byte-vector.h. | |
10651 | (gdb_bfd_get_full_section_contents): New declaration. | |
10652 | * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function. | |
10653 | * windows-tdep.c (is_linked_with_cygwin_dll): Use | |
10654 | gdb_bfd_get_full_section_contents. | |
10655 | ||
e2ff18a0 SM |
10656 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
10657 | ||
10658 | * exec.c (build_section_table): Replace internal_error with | |
10659 | gdb_assert. | |
10660 | (section_table_xfer_memory_partial): Likewise. | |
10661 | * mdebugread.c (parse_partial_symbols): Likewise. | |
10662 | * psymtab.c (lookup_partial_symbol): Likewise. | |
10663 | * utils.c (wrap_here): Likewise. | |
10664 | ||
0830d301 TT |
10665 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
10666 | ||
10667 | * f-lang.c (build_fortran_types): Use arch_type to initialize | |
10668 | builtin_complex_s32 in the TYPE_CODE_ERROR case. | |
10669 | ||
e7da7f8f TT |
10670 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
10671 | ||
10672 | * dwarf2/read.c (partial_die_info::read): Do not create a vector | |
10673 | of attributes. | |
10674 | ||
c90d28ac AB |
10675 | 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com> |
10676 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
10677 | Tom Tromey <tromey@adacore.com> | |
10678 | ||
10679 | * buildsym.c (buildsym_compunit::record_line): Remove | |
10680 | deduplication code. | |
10681 | ||
1aa98955 TV |
10682 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
10683 | ||
10684 | PR ada/24671 | |
10685 | * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow. | |
10686 | ||
d3214198 TV |
10687 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
10688 | ||
10689 | * dwarf2/read.c (dwarf2_gdb_index_functions, | |
10690 | dwarf2_debug_names_functions): Init lookup_global_symbol_language with | |
10691 | NULL. | |
10692 | * psymtab.c (psym_lookup_global_symbol_language): New function. | |
10693 | (psym_functions): Init psym_lookup_global_symbol_language with | |
10694 | psym_lookup_global_symbol_language. | |
10695 | * symfile-debug.c (debug_sym_quick_functions): Init | |
10696 | lookup_global_symbol_language with NULL. | |
10697 | * symfile.c (set_initial_language): Remove fixme comment. | |
10698 | * symfile.h (struct quick_symbol_functions): Add | |
10699 | lookup_global_symbol_language. | |
10700 | * symtab.c (find_quick_global_symbol_language): New function. | |
10701 | (find_main_name): Use find_quick_global_symbol_language. | |
10702 | ||
2836752f SM |
10703 | 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
10704 | ||
10705 | * windows-tdep.c (is_linked_with_cygwin_dll): Fix style. | |
10706 | ||
64dc2d4b BE |
10707 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
10708 | ||
10709 | * buildsym.c (record_line): Fix undefined behavior and preserve | |
10710 | lines at eof. | |
10711 | ||
bbe3dc41 BE |
10712 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
10713 | ||
10714 | * buildsym.c (record_line): Fix the resizing condition. | |
10715 | ||
6b4a335b TT |
10716 | 2020-04-01 Tom Tromey <tom@tromey.com> |
10717 | ||
10718 | * value.h (value_literal_complex): Add comment. | |
10719 | * valops.c (value_literal_complex): Refer to value.h. | |
10720 | ||
3638a098 TT |
10721 | 2020-04-01 Tom Tromey <tom@tromey.com> |
10722 | ||
10723 | * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens. | |
10724 | (scalar_type): New rule, from typebase. | |
10725 | (typebase): Use scalar_type. Recognize complex types. | |
10726 | (field_name): Handle FLOAT_KEYWORD. | |
10727 | (ident_tokens): Add _Complex and __complex__. | |
10728 | ||
c34e8714 TT |
10729 | 2020-04-01 Tom Tromey <tom@tromey.com> |
10730 | ||
10731 | PR exp/25299: | |
10732 | * valarith.c (promotion_type, complex_binop): New functions. | |
10733 | (scalar_binop): Handle complex numbers. Use promotion_type. | |
10734 | (value_pos, value_neg, value_complement): Handle complex numbers. | |
10735 | ||
fa649bb7 TT |
10736 | 2020-04-01 Tom Tromey <tom@tromey.com> |
10737 | ||
10738 | * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. | |
10739 | (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules. | |
10740 | (parse_number): Handle complex numbers. | |
10741 | ||
981c08ce TT |
10742 | 2020-04-01 Tom Tromey <tom@tromey.com> |
10743 | ||
10744 | * c-valprint.c (c_decorations): Change complex suffix to "i". | |
10745 | ||
4c99290d TT |
10746 | 2020-04-01 Tom Tromey <tom@tromey.com> |
10747 | ||
10748 | * valprint.c (generic_value_print_complex): Use accessors. | |
10749 | * value.h (value_real_part, value_imaginary_part): Declare. | |
10750 | * valops.c (value_real_part, value_imaginary_part): New | |
10751 | functions. | |
10752 | * value.c (creal_internal_fn, cimag_internal_fn): Use accessors. | |
10753 | ||
5b930b45 TT |
10754 | 2020-04-01 Tom Tromey <tom@tromey.com> |
10755 | ||
10756 | * stabsread.c (rs6000_builtin_type, read_sun_floating_type) | |
10757 | (read_range_type): Update. | |
10758 | * mdebugread.c (basic_type): Update. | |
10759 | * go-lang.c (build_go_types): Use init_complex_type. | |
10760 | * gdbtypes.h (struct main_type) <complex_type>: New member. | |
10761 | (init_complex_type): Update. | |
10762 | (arch_complex_type): Don't declare. | |
10763 | * gdbtypes.c (init_complex_type): Remove "objfile" parameter. | |
10764 | Make name if none given. Use alloc_type_copy. Look for cached | |
10765 | complex type. | |
10766 | (arch_complex_type): Remove. | |
10767 | (gdbtypes_post_init): Use init_complex_type. | |
10768 | * f-lang.c (build_fortran_types): Use init_complex_type. | |
10769 | * dwarf2/read.c (read_base_type): Update. | |
10770 | * d-lang.c (build_d_types): Use init_complex_type. | |
10771 | * ctfread.c (read_base_type): Update. | |
10772 | ||
53cccef1 TBA |
10773 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10774 | ||
10775 | * infrun.c (stop_all_threads): Update assertion, plus when | |
10776 | stopping threads, take into account that we might be trying | |
10777 | to stop an all-stop target. | |
10778 | (stop_waiting): Call 'stop_all_threads' if there exists a | |
10779 | non-stop target. | |
10780 | ||
a0714d30 TBA |
10781 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10782 | ||
10783 | * target.h (exists_non_stop_target): New function declaration. | |
10784 | * target.c (exists_non_stop_target): New function. | |
10785 | ||
60e22c1e HD |
10786 | 2020-04-01 Hannes Domani <ssbssa@yahoo.de> |
10787 | ||
10788 | PR gdb/24789 | |
10789 | * eval.c (is_integral_or_integral_reference): New function. | |
10790 | (evaluate_subexp_standard): Allow integer references in | |
10791 | pointer arithmetic. | |
10792 | ||
e139a727 TBA |
10793 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10794 | ||
10795 | * remote.c (remote_target::remote_parse_stop_reply): Remove the | |
10796 | check for no ptid in the stop reply when the target is non-stop. | |
10797 | ||
e0802d59 TT |
10798 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
10799 | ||
10800 | * symtab.h (class lookup_name_info) <lookup_name_info>: Change | |
10801 | "name" parameter to rvalue reference. Initialize m_name_holder. | |
10802 | <lookup_name_info>: New overloads. | |
10803 | <name>: Return gdb::string_view. | |
10804 | <c_str>: New method. | |
10805 | <make_ignore_params>: Update. | |
10806 | <search_name_hash>: Update. | |
10807 | <language_lookup_name>: Return const char *. | |
10808 | <m_name>: Change type. | |
10809 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info) | |
10810 | (demangle_for_lookup_info::demangle_for_lookup_info): Update. | |
10811 | (lookup_name_info::match_any): Update. | |
10812 | * psymtab.c (match_partial_symbol, lookup_partial_symbol): | |
10813 | Update. | |
10814 | * minsyms.c (linkage_name_str): Update. | |
10815 | * language.c (default_symbol_name_matcher): Update. | |
10816 | * dwarf2/read.c (mapped_index_base::find_name_components_bounds): | |
10817 | Update. | |
10818 | * ada-lang.c (ada_fold_name): Change parameter to string_view. | |
10819 | (ada_lookup_name_info::ada_lookup_name_info): Update. | |
10820 | (literal_symbol_name_matcher): Update. | |
10821 | ||
8c072cb6 TT |
10822 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
10823 | ||
10824 | * psymtab.c (psymtab_search_name): Remove function. | |
10825 | (psym_lookup_symbol): Create search name and lookup name here. | |
10826 | (lookup_partial_symbol): Remove "name" parameter; add | |
10827 | lookup_name. | |
10828 | (psym_expand_symtabs_for_function): Update. | |
10829 | ||
6f29a534 TT |
10830 | 2020-03-31 Joel Jones <joelkevinjones@gmail.com> |
10831 | ||
10832 | PR tui/25597: | |
10833 | * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. | |
10834 | ||
af62665e TT |
10835 | 2020-03-31 Tom Tromey <tromey@adacore.com> |
10836 | ||
10837 | * dwarf2/abbrev.c (abbrev_table::read): Conditionally call | |
10838 | memcpy. | |
10839 | ||
d1a89da5 NC |
10840 | 2020-03-30 Nelson Chu <nelson.chu@sifive.com> |
10841 | ||
10842 | * features/riscv/32bit-csr.xml: Regenerated. | |
10843 | * features/riscv/64bit-csr.xml: Regenerated. | |
10844 | ||
d8af9068 TT |
10845 | 2020-03-30 Tom Tromey <tromey@adacore.com> |
10846 | ||
10847 | * ada-valprint.c (print_variant_part): Update. | |
10848 | * ada-lang.h (ada_which_variant_applies): Update. | |
10849 | * ada-lang.c (ada_which_variant_applies): Remove outer_type and | |
10850 | outer_valaddr parameters; replace with "outer" value parameter. | |
10851 | (to_fixed_variant_branch_type): Update. | |
10852 | ||
227c0bf4 PFC |
10853 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
10854 | ||
10855 | * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and | |
10856 | <list>. Remove inclusion of observable.h. | |
10857 | (PPC_DEBUG_CURRENT_VERSION): Move up define. | |
10858 | (struct arch_lwp_info): New struct. | |
10859 | (class ppc_linux_dreg_interface): New class. | |
10860 | (struct ppc_linux_process_info): New struct. | |
10861 | (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork> | |
10862 | <low_new_clone, low_forget_process, low_prepare_to_resume> | |
10863 | <copy_thread_dreg_state, mark_thread_stale> | |
10864 | <mark_debug_registers_changed, register_hw_breakpoint> | |
10865 | <clear_hw_breakpoint, register_wp, clear_wp> | |
10866 | <can_use_watchpoint_cond_accel, calculate_dvc, check_condition> | |
10867 | <num_memory_accesses, get_trigger_type> | |
10868 | <create_watchpoint_request, hwdebug_point_cmp> | |
10869 | <init_arch_lwp_info, get_arch_lwp_info> | |
10870 | <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as | |
10871 | methods. | |
10872 | <struct ptid_hash>: New inner struct. | |
10873 | <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare | |
10874 | members. | |
10875 | (saved_dabr_value, hwdebug_info, max_slots_number) | |
10876 | (struct hw_break_tuple, struct thread_points, ppc_threads) | |
10877 | (have_ptrace_hwdebug_interface) | |
10878 | (hwdebug_find_thread_points_by_tid) | |
10879 | (hwdebug_insert_point, hwdebug_remove_point): Remove. | |
10880 | (ppc_linux_nat_target::can_use_hw_breakpoint): Use | |
10881 | m_dreg_interface, remove call to PTRACE_SET_DEBUGREG. | |
10882 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment, | |
10883 | use m_dreg_interface. | |
10884 | (hwdebug_point_cmp): Change to... | |
10885 | (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use | |
10886 | reference arguments instead of pointers. | |
10887 | (ppc_linux_nat_target::ranged_break_num_registers): Use | |
10888 | m_dreg_interface. | |
10889 | (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use | |
10890 | m_dreg_interface. Call register_hw_breakpoint. | |
10891 | (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use | |
10892 | m_dreg_interface. Call clear_hw_breakpoint. | |
10893 | (get_trigger_type): Change to... | |
10894 | (ppc_linux_nat_target::get_trigger_type): ...this method. Add | |
10895 | comment. | |
10896 | (ppc_linux_nat_target::insert_mask_watchpoint): Update comment, | |
10897 | use m_dreg_interface. Call register_hw_breakpoint. | |
10898 | (ppc_linux_nat_target::remove_mask_watchpoint): Update comment, | |
10899 | use m_dreg_interface. Call clear_hw_breakpoint. | |
10900 | (can_use_watchpoint_cond_accel): Change to... | |
10901 | (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this | |
10902 | method. Update comment, use m_dreg_interface and | |
10903 | m_process_info. | |
10904 | (calculate_dvc): Change to... | |
10905 | (ppc_linux_nat_target::calculate_dvc): ...this method. Use | |
10906 | m_dreg_interface. | |
10907 | (num_memory_accesses): Change to... | |
10908 | (ppc_linux_nat_target::num_memory_accesses): ...this method. | |
10909 | (check_condition): Change to... | |
10910 | (ppc_linux_nat_target::check_condition): ...this method. | |
10911 | (ppc_linux_nat_target::can_accel_watchpoint_condition): Update | |
10912 | comment, use m_dreg_interface. | |
10913 | (create_watchpoint_request): Change to... | |
10914 | (ppc_linux_nat_target::create_watchpoint_request): ...this | |
10915 | method. Use m_dreg_interface. | |
10916 | (ppc_linux_nat_target::insert_watchpoint): Add comment, use | |
10917 | m_dreg_interface. Call register_hw_breakpoint or register_wp. | |
10918 | (ppc_linux_nat_target::remove_watchpoint): Add comment, use | |
10919 | m_dreg_interface. Call clear_hw_breakpoint or clear_wp. | |
10920 | (ppc_linux_nat_target::low_forget_process) | |
10921 | (ppc_linux_nat_target::low_new_fork) | |
10922 | (ppc_linux_nat_target::low_new_clone) | |
10923 | (ppc_linux_nat_target::low_delete_thread) | |
10924 | (ppc_linux_nat_target::low_prepare_to_resume): New methods. | |
10925 | (ppc_linux_nat_target::low_new_thread): Remove previous logic, | |
10926 | only call mark_thread_stale. | |
10927 | (ppc_linux_thread_exit): Remove. | |
10928 | (ppc_linux_nat_target::stopped_data_address): Change to... | |
10929 | (ppc_linux_nat_target::low_stopped_data_address): This. Add | |
10930 | comment, use m_dreg_interface and m_thread_hw_breakpoints. | |
10931 | (ppc_linux_nat_target::stopped_by_watchpoint): Change to... | |
10932 | (ppc_linux_nat_target::stopped_by_watchpoint): This. Add | |
10933 | comment. Call low_stopped_data_address. | |
10934 | (ppc_linux_nat_target::watchpoint_addr_within_range): Use | |
10935 | m_dreg_interface. | |
10936 | (ppc_linux_nat_target::masked_watch_num_registers): Use | |
10937 | m_dreg_interface. | |
10938 | (ppc_linux_nat_target::copy_thread_dreg_state) | |
10939 | (ppc_linux_nat_target::mark_thread_stale) | |
10940 | (ppc_linux_nat_target::mark_debug_registers_changed) | |
10941 | (ppc_linux_nat_target::register_hw_breakpoint) | |
10942 | (ppc_linux_nat_target::clear_hw_breakpoint) | |
10943 | (ppc_linux_nat_target::register_wp) | |
10944 | (ppc_linux_nat_target::clear_wp) | |
10945 | (ppc_linux_nat_target::init_arch_lwp_info) | |
10946 | (ppc_linux_nat_target::get_arch_lwp_info): New methods. | |
10947 | (_initialize_ppc_linux_nat): Remove observer callback. | |
10948 | ||
4db10d8f PFC |
10949 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
10950 | ||
10951 | * ppc-linux-nat.c (ppc_linux_nat_target::store_registers) | |
10952 | (ppc_linux_nat_target::auxv_parse) | |
10953 | (ppc_linux_nat_target::read_description) | |
10954 | (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): | |
10955 | Move up. | |
10956 | ||
1310c1b0 PFC |
10957 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
10958 | ||
10959 | * linux-nat.h (low_new_clone): New method. | |
10960 | * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. | |
10961 | ||
69b037c3 SM |
10962 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
10963 | ||
10964 | * dbxread.c (dbx_psymtab_to_symtab_1): Rename to... | |
10965 | (dbx_expand_psymtab): ... this. | |
10966 | (start_psymtab): Update. | |
10967 | * mdebugread.c (psymtab_to_symtab_1): Rename to... | |
10968 | (mdebug_expand_psymtab): ... this. | |
10969 | (parse_partial_symbols): Update. | |
10970 | (new_psymtab): Update. | |
10971 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to... | |
10972 | (xcoff_expand_psymtab): ... this. | |
10973 | (xcoff_start_psymtab): Update. | |
10974 | ||
48993951 SM |
10975 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
10976 | ||
10977 | * psympriv.h (partial_symtab) <read_dependencies>: Rename to... | |
10978 | <expand_dependencies>: ... this. | |
10979 | * psymtab.c (partial_symtab::read_dependencies): Rename to... | |
10980 | (partial_symtab::expand_dependencies): ... this. | |
10981 | * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>: | |
10982 | Update. | |
10983 | (dwarf2_psymtab::expand_psymtab): Update. | |
10984 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
10985 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
10986 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
10987 | ||
3ad83046 SM |
10988 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
10989 | ||
10990 | * psympriv.h (discard_psymtab): Remove. | |
10991 | * dbxread.c (dbx_end_psymtab): Update. | |
10992 | * xcoffread.c (xcoff_end_psymtab): Update. | |
10993 | ||
4d1b9ab6 TT |
10994 | 2020-03-28 Tom Tromey <tom@tromey.com> |
10995 | ||
10996 | * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update | |
10997 | comment. | |
10998 | ||
f1749218 TT |
10999 | 2020-03-28 Tom Tromey <tom@tromey.com> |
11000 | ||
11001 | * dwarf2/read.c (read_attribute_reprocess): Fix formatting. | |
11002 | ||
ebea7626 HD |
11003 | 2020-03-27 Hannes Domani <ssbssa@yahoo.de> |
11004 | ||
11005 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
11006 | ||
a879b4d5 JB |
11007 | 2020-03-26 John Baldwin <jhb@FreeBSD.org> |
11008 | ||
11009 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. | |
11010 | ||
0826b30a TT |
11011 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11012 | ||
11013 | * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) | |
11014 | (mark_common_block_symbol_computed, read_tag_string_type) | |
11015 | (attr_to_dynamic_prop, read_subrange_type): Update. | |
11016 | (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move | |
11017 | to be methods on struct attribute. | |
11018 | (skip_one_die, process_imported_unit_die, read_namespace_alias) | |
11019 | (read_call_site_scope, partial_die_info::read) | |
11020 | (partial_die_info::read, lookup_die_type, follow_die_ref): | |
11021 | Update. | |
11022 | * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, | |
11023 | from dwarf2_get_ref_die_offset. | |
11024 | (attribute::constant_value): New method, from | |
11025 | dwarf2_get_attr_constant_value. | |
11026 | * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>: | |
11027 | Declare method. | |
11028 | <constant_value>: New method. | |
11029 | ||
2b2558bf TT |
11030 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11031 | ||
11032 | * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) | |
11033 | (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) | |
11034 | (dwarf_type_encoding_name): Move to stringify.c. | |
11035 | * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. | |
11036 | * dwarf2/stringify.c: New file. | |
11037 | * dwarf2/stringify.h: New file. | |
11038 | ||
eeb64781 TT |
11039 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11040 | ||
11041 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: | |
11042 | Rewrite. | |
11043 | ||
a39fdb41 TT |
11044 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11045 | ||
11046 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New | |
11047 | methods. | |
11048 | * dwarf2/read.c (lookup_addr_base): Move to die.h. | |
11049 | (lookup_ranges_base): Likewise. | |
11050 | (read_cutu_die_from_dwo, read_full_die_1): Update. | |
11051 | ||
436c571c TT |
11052 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11053 | ||
11054 | * dwarf2/read.c (read_import_statement, read_file_scope) | |
11055 | (read_type_unit_scope, inherit_abstract_dies, read_func_scope) | |
11056 | (read_lexical_block_scope, read_call_site_scope) | |
11057 | (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) | |
11058 | (handle_struct_member_die, process_structure_scope) | |
11059 | (update_enumeration_type_from_children) | |
11060 | (process_enumeration_scope, read_array_type, read_common_block) | |
11061 | (read_namespace, read_module, read_subroutine_type): Update. | |
11062 | (sibling_die): Remove. | |
11063 | ||
052c8bb8 TT |
11064 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11065 | ||
11066 | * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) | |
11067 | (build_type_psymtabs_reader, read_structure_type) | |
11068 | (read_enumeration_type, read_full_die_1): Update. | |
11069 | (dwarf2_attr_no_follow): Move to die.h. | |
11070 | * dwarf2/die.h (struct die_info) <attr>: New method. | |
11071 | ||
2b24b6e4 TT |
11072 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11073 | ||
11074 | * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove. | |
11075 | <base_address>: Now an optional. | |
11076 | (dwarf2_find_base_address, dwarf2_rnglists_process) | |
11077 | (dwarf2_ranges_process, fill_in_loclist_baton) | |
11078 | (dwarf2_symbol_mark_computed): Update. | |
11079 | ||
c2d50fd0 TT |
11080 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11081 | ||
11082 | * dwarf2/read.c (struct die_info): Move to die.h. | |
11083 | * dwarf2/die.h: New file. | |
11084 | ||
0df7ad3a TT |
11085 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11086 | ||
11087 | * dwarf2/line-header.h (dwarf_decode_line_header): Declare. | |
11088 | * dwarf2/read.c | |
11089 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
11090 | Move to line-header.c. | |
11091 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
11092 | Likewise. | |
11093 | (dwarf_decode_line_header): Split into two. | |
11094 | * dwarf2/line-header.c | |
11095 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
11096 | Move from read.c. | |
11097 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
11098 | Likewise. | |
11099 | (dwarf_decode_line_header): New function, split from read.c. | |
11100 | ||
86c0bb4c TT |
11101 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11102 | ||
11103 | * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>: | |
11104 | Declare method. | |
11105 | * dwarf2/read.c (read_attribute_value): Update. | |
11106 | (dwarf2_per_objfile::read_line_string): Rename from | |
11107 | read_indirect_line_string. | |
11108 | (read_formatted_entries): Update. | |
11109 | ||
2ef46c2f TT |
11110 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11111 | ||
11112 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local | |
11113 | variable. | |
11114 | ||
4f9c1eda TT |
11115 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11116 | ||
11117 | * dwarf2/macro.h (dwarf_decode_macros): Make section parameter | |
11118 | const. | |
11119 | * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) | |
11120 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section | |
11121 | parameter const. | |
11122 | ||
5a0e026f TT |
11123 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11124 | ||
11125 | * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. | |
11126 | * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. | |
11127 | * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. | |
11128 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. | |
11129 | ||
8844c11b TT |
11130 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11131 | ||
11132 | * dwarf2/line-header.h (struct line_header) <is_valid_file_index, | |
11133 | file_names_size, file_full_name, file_file_name>: Use const. | |
11134 | <file_name_at, file_names>: Add const overload. | |
11135 | * dwarf2/line-header.c (line_header::file_file_name) | |
11136 | (line_header::file_full_name): Update. | |
11137 | ||
c90ec28a TT |
11138 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11139 | ||
11140 | * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) | |
11141 | (macro_start_file, consume_improper_spaces) | |
11142 | (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) | |
11143 | (dwarf_parse_macro_header, dwarf_decode_macro_bytes) | |
11144 | (dwarf_decode_macros): Move to macro.c. | |
11145 | * dwarf2/macro.c: New file. | |
11146 | * dwarf2/macro.h: New file. | |
11147 | * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. | |
11148 | ||
4f44ae6c TT |
11149 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11150 | ||
11151 | * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New | |
11152 | method. | |
11153 | * dwarf2/section.c: New method. From | |
11154 | read_indirect_string_at_offset_from. | |
11155 | * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. | |
11156 | (read_indirect_string_at_offset_from): Move to section.c. | |
11157 | (read_indirect_string_at_offset): Rewrite. | |
11158 | (read_indirect_line_string_at_offset): Remove. | |
11159 | (read_indirect_string, read_indirect_line_string) | |
11160 | (dwarf_decode_macro_bytes): Update. | |
11161 | ||
a0194fa8 TT |
11162 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11163 | ||
11164 | * dwarf2/section.h (struct dwarf2_section_info) | |
11165 | <overload_complaint>: Declare. | |
11166 | (dwarf2_section_buffer_overflow_complaint): Don't declare. | |
11167 | * dwarf2/section.c (dwarf2_section_info::overflow_complaint): | |
11168 | Rename from dwarf2_section_buffer_overflow_complaint. | |
11169 | * dwarf2/read.c (skip_one_die, partial_die_info::read) | |
11170 | (skip_form_bytes, dwarf_decode_macro_bytes): Update. | |
11171 | ||
3d27bbdb TT |
11172 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11173 | ||
11174 | * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): | |
11175 | Declare. | |
11176 | * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): | |
11177 | Move from read.c. | |
11178 | * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move | |
11179 | to section.c. | |
11180 | ||
9eac9650 TT |
11181 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11182 | ||
11183 | * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. | |
11184 | ||
bf80d710 TT |
11185 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11186 | ||
11187 | * dwarf2/read.c (macro_start_file): Change "cu" parameter to | |
11188 | "builder". | |
11189 | (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile | |
11190 | parameter. | |
11191 | (dwarf_decode_macros): Update. | |
11192 | ||
0314b390 TT |
11193 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11194 | ||
11195 | * dwarf2/read.c (read_attribute_value): Update. | |
11196 | (read_indirect_string_from_dwz): Move to dwz.c; change into | |
11197 | method. | |
11198 | (dwarf_decode_macro_bytes): Update. | |
11199 | * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method. | |
11200 | * dwarf2/dwz.c: New file. | |
11201 | * Makefile.in (COMMON_SFILES): Add dwz.c. | |
11202 | ||
9fda78b6 TT |
11203 | 2020-03-26 Tom Tromey <tom@tromey.com> |
11204 | ||
11205 | * dwarf2/read.h (struct dwz_file): Move to dwz.h. | |
11206 | * dwarf2/read.c: Add include. | |
11207 | * dwarf2/index-write.c: Add include. | |
11208 | * dwarf2/index-cache.c: Add include. | |
11209 | * dwarf2/dwz.h: New file. | |
11210 | ||
33aa3c10 TT |
11211 | 2020-03-25 Tom Tromey <tom@tromey.com> |
11212 | ||
11213 | * compile/compile-object-load.c (get_out_value_type): Mention | |
11214 | correct symbol name in error message. | |
11215 | ||
d503b685 HD |
11216 | 2020-03-25 Hannes Domani <ssbssa@yahoo.de> |
11217 | ||
11218 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
11219 | ||
7b1eff95 TV |
11220 | 2020-03-25 Tom de Vries <tdevries@suse.de> |
11221 | ||
11222 | * symtab.h (is_main_symtab_of_compunit_symtab): New function. | |
11223 | * symmisc.c (dump_symtab_1): Print user and includes fields. | |
11224 | (maintenance_info_symtabs): Same. | |
11225 | ||
dd895392 AB |
11226 | 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com> |
11227 | ||
11228 | PR gdb/25534 | |
11229 | * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. | |
11230 | (riscv_regcache_cooked_write): New function. | |
11231 | (riscv_push_dummy_call): Use new function. | |
11232 | (riscv_return_value): Likewise. | |
11233 | ||
5ab2fbf1 SM |
11234 | 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
11235 | ||
11236 | * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. | |
11237 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise. | |
11238 | * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. | |
11239 | * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise. | |
11240 | * infrun.c (follow_fork): Likewise. | |
11241 | (follow_fork_inferior): Likewise. | |
11242 | * linux-nat.c (linux_nat_target::follow_fork): Likewise. | |
11243 | * linux-nat.h (class linux_nat_target): Likewise. | |
11244 | * remote.c (class remote_target) <follow_fork>: Likewise. | |
11245 | (remote_target::follow_fork): Likewise. | |
11246 | * target-delegates.c: Re-generate. | |
11247 | * target.c (default_follow_fork): Likewise. | |
11248 | (target_follow_fork): Likewise. | |
11249 | * target.h (struct target_ops) <follow_fork>: Likewise. | |
11250 | (target_follow_fork): Likewise. | |
11251 | ||
a64fafb5 TV |
11252 | 2020-03-24 Tom de Vries <tdevries@suse.de> |
11253 | ||
11254 | * psymtab.c (maintenance_info_psymtabs): Print user field. | |
11255 | ||
fe26d3a3 TT |
11256 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
11257 | ||
11258 | * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" | |
11259 | const. | |
11260 | * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" | |
11261 | const. | |
11262 | ||
c884cc46 SM |
11263 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> |
11264 | ||
11265 | * ptrace.m4: Don't check for ptrace declaration. | |
11266 | * config.in: Re-generate. | |
11267 | * configure: Re-generate. | |
11268 | * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is | |
11269 | not defined. | |
11270 | ||
1ff700c2 KR |
11271 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
11272 | ||
11273 | * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to | |
11274 | `PTRACE_TYPE_RET'. | |
11275 | * i386-bsd-nat.c (gdb_ptrace): Likewise. | |
11276 | * sparc-nat.c (gdb_ptrace): Likewise. | |
11277 | * x86-bsd-nat.c (gdb_ptrace): Likewise. | |
11278 | ||
f7d4f0b1 TT |
11279 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
11280 | ||
11281 | * c-exp.y (lex_one_token): Fix assert. | |
11282 | ||
f67210ff TT |
11283 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
11284 | ||
11285 | * ada-tasks.c (read_atcb): Use smaller length in strncpy call. | |
11286 | * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in | |
11287 | strncpy call. | |
11288 | ||
1773be9e TT |
11289 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
11290 | ||
11291 | * symmisc.c (maintenance_print_one_line_table): Use ui_out. | |
11292 | ||
70304be9 TT |
11293 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
11294 | ||
11295 | * ada-valprint.c (print_variant_part): Remove parameters; switch | |
11296 | to value-based API. | |
11297 | (print_field_values): Likewise. | |
11298 | (ada_val_print_struct_union): Likewise. | |
11299 | (ada_value_print_1): Update. | |
11300 | ||
9faa006d KR |
11301 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
11302 | ||
11303 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from | |
11304 | nbsd_nat_target instead of inf_ptrace_target. | |
11305 | * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
11306 | nbsd_nat_target. | |
11307 | ||
4a90f062 KR |
11308 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
11309 | ||
11310 | * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
11311 | it to the ptrace call. | |
11312 | * (store_registers): Likewise. | |
11313 | ||
11314 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
c7da12c7 KR |
11315 | |
11316 | * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
11317 | it to the ptrace call. | |
11318 | * (store_registers): Likewise. | |
11319 | ||
2d07da27 LM |
11320 | 2020-03-19 Luis Machado <luis.machado@linaro.org> |
11321 | ||
11322 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not | |
11323 | valid, fetch vg value from ptrace. | |
11324 | ||
f09db380 KR |
11325 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
11326 | * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. | |
11327 | * inf-ptrace.c: Likewise. | |
11328 | * (gdb_ptrace): Add. | |
11329 | * (inf_ptrace_target::resume): Update. | |
11330 | * (inf_ptrace_target::xfer_partial): Likewise. | |
11331 | * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. | |
11332 | * (inf_ptrace_peek_poke): Update. | |
11333 | ||
fcc7376e KR |
11334 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
11335 | ||
11336 | * x86-bsd-nat.c (gdb_ptrace): New. | |
11337 | * (x86bsd_dr_set): Add new argument `ptid'. | |
11338 | * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, | |
11339 | x86bsd_dr_set_addr): Update. | |
11340 | ||
cada5fc9 AB |
11341 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
11342 | ||
11343 | * remote.c (remote_target::process_stop_reply): Handle events for | |
11344 | all threads differently. | |
11345 | ||
19a2740f AB |
11346 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
11347 | ||
11348 | * completer.c (completion_tracker::remove_completion): Define new | |
11349 | function. | |
11350 | * completer.h (completion_tracker::remove_completion): Declare new | |
11351 | function. | |
11352 | * symtab.c (completion_list_add_symbol): Remove aliasing msymbols | |
11353 | when adding a C++ function symbol. | |
11354 | ||
724fd9ba AB |
11355 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
11356 | ||
11357 | * completer.c (completion_tracker::completion_hash_entry): Define | |
11358 | new class. | |
11359 | (advance_to_filename_complete_word_point): Call | |
11360 | recompute_lowest_common_denominator. | |
11361 | (completion_tracker::completion_tracker): Call discard_completions | |
11362 | to setup the hash table. | |
11363 | (completion_tracker::discard_completions): Allow for being called | |
11364 | from the constructor, pass new equal function, and element deleter | |
11365 | when constructing the hash table. Initialise new class member | |
11366 | variables. | |
11367 | (completion_tracker::maybe_add_completion): Remove use of | |
11368 | m_entries_vec, and store more information into m_entries_hash. | |
11369 | (completion_tracker::recompute_lcd_visitor): New function, most | |
11370 | content taken from... | |
11371 | (completion_tracker::recompute_lowest_common_denominator): | |
11372 | ...here, this now just visits each item in the hash calling the | |
11373 | above visitor. | |
11374 | (completion_tracker::build_completion_result): Remove use of | |
11375 | m_entries_vec, call recompute_lowest_common_denominator. | |
11376 | * completer.h (completion_tracker::have_completions): Remove use | |
11377 | of m_entries_vec. | |
11378 | (completion_tracker::completion_hash_entry): Declare new class. | |
11379 | (completion_tracker::recompute_lowest_common_denominator): Change | |
11380 | function signature. | |
11381 | (completion_tracker::recompute_lcd_visitor): Declare new function. | |
11382 | (completion_tracker::m_entries_vec): Delete. | |
11383 | (completion_tracker::m_entries_hash): Initialize to NULL. | |
11384 | (completion_tracker::m_lowest_common_denominator_valid): New | |
11385 | member variable. | |
11386 | (completion_tracker::m_lowest_common_denominator_max_length): New | |
11387 | member variable. | |
11388 | ||
5a82b8a1 KR |
11389 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
11390 | ||
11391 | * regformats/regdef.h: Put reg in gdb namespace. | |
11392 | ||
fb516a69 KR |
11393 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
11394 | ||
11395 | * i386-bsd-nat.c (gdb_ptrace): New. | |
11396 | * (i386bsd_fetch_inferior_registers, | |
11397 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
11398 | * (i386bsd_fetch_inferior_registers, | |
11399 | i386bsd_store_inferior_registers) Use gdb_ptrace. | |
11400 | ||
1c0aa1fb KR |
11401 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
11402 | ||
11403 | * amd64-bsd-nat.c (gdb_ptrace): New. | |
11404 | * (amd64bsd_fetch_inferior_registers, | |
11405 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
11406 | * (amd64bsd_fetch_inferior_registers, | |
11407 | amd64bsd_store_inferior_registers) Use gdb_ptrace. | |
11408 | ||
5ccd2fb7 KR |
11409 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
11410 | ||
11411 | * user-regs.c (user_reg::read): Rename to... | |
11412 | (user_reg::xread): ...this. | |
11413 | * (append_user_reg): Rename argument `read' to `xread'. | |
11414 | * (user_reg_add_builtin): Likewise. | |
11415 | * (user_reg_add): Likewise. | |
11416 | * (value_of_user_reg): Likewise. | |
11417 | ||
2108a63a KR |
11418 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
11419 | ||
11420 | * sparc-nat.c (gdb_ptrace): New. | |
11421 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
11422 | (sparc_store_inferior_registers) Remove obsolete comment. | |
11423 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
11424 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. | |
11425 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
11426 | (sparc_store_inferior_registers) Use gdb_ptrace. | |
11427 | ||
a225c9a8 KR |
11428 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
11429 | ||
11430 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
11431 | it to the ptrace call. | |
11432 | * sh-nbsd-nat.c (store_registers): Likewise. | |
11433 | ||
98097623 KR |
11434 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
11435 | ||
11436 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from | |
11437 | nbsd_nat_target instead of inf_ptrace_target. | |
11438 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
11439 | nbsd_nat_target. | |
11440 | ||
9e38d619 KR |
11441 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
11442 | ||
11443 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". | |
11444 | ||
a2ecbe9f KR |
11445 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
11446 | ||
11447 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and | |
11448 | <sys/sysctl.h>. | |
11449 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. | |
11450 | ||
58990295 TV |
11451 | 2020-03-17 Tom de Vries <tdevries@suse.de> |
11452 | ||
11453 | PR gdb/23710 | |
11454 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang | |
11455 | fields. | |
11456 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang | |
11457 | fields. | |
11458 | (process_imported_unit_die): Skip import of c++ CUs. | |
11459 | ||
771dd3a8 TT |
11460 | 2020-03-16 Tom Tromey <tom@tromey.com> |
11461 | ||
11462 | * p-valprint.c (pascal_object_print_value): Initialize | |
11463 | base_value. | |
11464 | ||
817a7585 AK |
11465 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> |
11466 | Shahab Vahedi <shahab@synopsys.com> | |
11467 | ||
11468 | * Makefile.in: Add arch/arc.o | |
11469 | * configure.tgt: Likewise. | |
11470 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. | |
11471 | (_initialize_arc_tdep): Don't initialize old target descriptions. | |
aac66a4c | 11472 | (arc_read_description): New function to cache target descriptions. |
817a7585 AK |
11473 | * arc-tdep.h (arc_read_description): Add proto type. |
11474 | * arch/arc.c: New file. | |
11475 | * arch/arc.h: Likewise. | |
11476 | * features/Makefile: Replace old target descriptions with new. | |
11477 | * features/arc-arcompact.c: Remove. | |
11478 | * features/arc-arcompact.xml: Likewise. | |
11479 | * features/arc-v2.c: Likewise | |
11480 | * features/arc-v2.xml: Likewise | |
11481 | * features/arc/aux-arcompact.xml: New file. | |
11482 | * features/arc/aux-v2.xml: Likewise. | |
11483 | * features/arc/core-arcompact.xml: Likewise. | |
11484 | * features/arc/core-v2.xml: Likewise. | |
11485 | * features/arc/aux-arcompact.c: Generate. | |
11486 | * features/arc/aux-v2.c: Likewise. | |
11487 | * features/arc/core-arcompact.c: Likewise. | |
11488 | * features/arc/core-v2.c: Likewise. | |
11489 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. | |
11490 | ||
67430cd0 TT |
11491 | 2020-03-16 Tom Tromey <tromey@adacore.com> |
11492 | ||
11493 | PR gdb/25663: | |
11494 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after | |
11495 | putting value into bcache. | |
11496 | ||
30efb6c7 SM |
11497 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
11498 | ||
11499 | PR gdb/21500 | |
11500 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename | |
11501 | to... | |
11502 | (amd64_windows_init_abi_common): ... this. Don't set size of | |
11503 | long type. | |
11504 | (amd64_windows_init_abi): New function. | |
11505 | (amd64_cygwin_init_abi): New function. | |
11506 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for | |
11507 | the Cygwin OS ABI. | |
11508 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify | |
11509 | comment. | |
11510 | ||
8db52437 SM |
11511 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
11512 | ||
11513 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. | |
11514 | * windows-tdep.c (CYGWIN_DLL_NAME): New. | |
11515 | (pe_import_directory_entry): New struct type. | |
11516 | (is_linked_with_cygwin_dll): New function. | |
11517 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select | |
11518 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. | |
11519 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. | |
11520 | ||
5982a56a SM |
11521 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
11522 | ||
11523 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except | |
11524 | i386_cygwin_core_osabi_sniffer. | |
11525 | ||
7a1998df SM |
11526 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
11527 | ||
11528 | * i386-cygwin-tdep.c: Rename to... | |
11529 | * i386-windows-tdep.c: ... this. | |
11530 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to | |
11531 | i386-windows-tdep.c. | |
11532 | * configure.tgt: Likewise. | |
11533 | ||
053205cc SM |
11534 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
11535 | ||
11536 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. | |
11537 | * osabi.c (gdb_osabi_names): Add "Windows". | |
11538 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return | |
11539 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". | |
11540 | (i386_cygwin_core_osabi_sniffer): New function, extracted from | |
11541 | i386_cygwin_osabi_sniffer. | |
11542 | (_initialize_i386_cygwin_tdep): Register OS ABI | |
11543 | GDB_OSABI_WINDOWS for i386. | |
11544 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return | |
11545 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". | |
11546 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS | |
11547 | for x86-64. | |
11548 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI | |
11549 | when the target matches '*-*-mingw*'. | |
11550 | ||
fe4b2ee6 SM |
11551 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
11552 | ||
11553 | * defs.h (enum gdb_osabi): Move to... | |
11554 | * osabi.h (enum gdb_osabi): ... here. | |
11555 | * gdbarch.sh: Include osabi.h in gdbarch.h. | |
11556 | * gdbarch.h: Re-generate. | |
11557 | ||
cb9b645d SM |
11558 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
11559 | ||
11560 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New | |
11561 | function. | |
11562 | (_initialize_amd64_windows_tdep): Register osabi sniffer. | |
11563 | ||
3293bbaf TT |
11564 | 2020-03-14 Tom Tromey <tom@tromey.com> |
11565 | ||
11566 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" | |
11567 | for C++. | |
11568 | (c_type_print_modifier): Likewise. Add "language" parameter. | |
11569 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) | |
11570 | (c_type_print_base_1): Update. | |
11571 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New | |
11572 | constants. | |
11573 | * type-stack.c (type_stack::insert): Handle tp_atomic and | |
11574 | tp_restrict. | |
11575 | (type_stack::follow_type_instance_flags): Likewise. | |
11576 | (type_stack::follow_types): Likewise. Merge type-following code. | |
11577 | * c-exp.y (RESTRICT, ATOMIC): New tokens. | |
11578 | (space_identifier, cv_with_space_id) | |
11579 | (const_or_volatile_or_space_identifier_noopt) | |
11580 | (const_or_volatile_or_space_identifier): Remove. | |
11581 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New | |
11582 | rules. | |
11583 | (ptr_operator, typebase): Update. | |
11584 | (enum token_flag) <FLAG_C>: New constant. | |
11585 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and | |
11586 | "_Atomic". | |
11587 | (lex_one_token): Handle FLAG_C. | |
11588 | ||
154151a6 KR |
11589 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11590 | ||
11591 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass | |
11592 | it to the ptrace call. | |
11593 | * m68k-bsd-nat.c (store_registers): Likewise. | |
11594 | ||
bc107784 KR |
11595 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11596 | ||
11597 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to | |
11598 | gdb_byte *. | |
11599 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
11600 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. | |
11601 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. | |
11602 | ||
01a80117 KR |
11603 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11604 | ||
11605 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from | |
11606 | nbsd_nat_target instead of inf_ptrace_target. | |
11607 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
11608 | nbsd_nat_target. | |
11609 | ||
f90280ca KR |
11610 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11611 | ||
11612 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
11613 | register_t. | |
11614 | ||
6def66f1 KR |
11615 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11616 | ||
11617 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass | |
11618 | it to the ptrace call. | |
11619 | * alpha-bsd-nat.c (store_registers): Likewise. | |
11620 | ||
66eaca97 KR |
11621 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11622 | ||
11623 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from | |
11624 | includes. | |
11625 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. | |
11626 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, | |
11627 | fill_fpregset): Likewise. | |
11628 | ||
4fed520b KR |
11629 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11630 | ||
11631 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from | |
11632 | nbsd_nat_target instead of inf_ptrace_target. | |
11633 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
11634 | nbsd_nat_target. | |
11635 | ||
2190cf06 KR |
11636 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11637 | ||
11638 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
11639 | register_t. | |
11640 | ||
75c56d3d KR |
11641 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11642 | ||
11643 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass | |
11644 | it to the ptrace call. | |
11645 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. | |
11646 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. | |
11647 | * arm-nbsd-nat.c (store_register): Likewise. | |
11648 | * arm-nbsd-nat.c (store_regs): Likewise. | |
11649 | * arm-nbsd-nat.c (store_fp_register): Likewise. | |
11650 | * arm-nbsd-nat.c (store_fp_regs): Likewise. | |
11651 | ||
6018d381 KR |
11652 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11653 | ||
11654 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from | |
11655 | nbsd_nat_target instead of inf_ptrace_target. | |
11656 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
11657 | nbsd_nat_target. | |
11658 | ||
013f99f0 KR |
11659 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11660 | ||
11661 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass | |
11662 | it to the ptrace call. | |
11663 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. | |
11664 | ||
12753073 KR |
11665 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11666 | ||
6227b330 KR |
11667 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass |
11668 | it to the ptrace call. | |
11669 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. | |
11670 | ||
11671 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
11672 | ||
11673 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const | |
11674 | gdb_byte *. | |
12753073 KR |
11675 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. |
11676 | ||
d5be5fa4 KR |
11677 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11678 | ||
11679 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target | |
11680 | instead of inf_ptrace_target. | |
11681 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
11682 | nbsd_nat_target. | |
11683 | ||
8110f842 KR |
11684 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11685 | ||
11686 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
11687 | register_t. | |
11688 | ||
52feded7 KR |
11689 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11690 | ||
11691 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
11692 | register_t. | |
11693 | ||
25567eee KR |
11694 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
11695 | ||
11696 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
11697 | register_t. | |
11698 | ||
426a9c18 TT |
11699 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11700 | ||
11701 | * value.h (val_print): Don't declare. | |
11702 | * valprint.h (val_print_array_elements) | |
11703 | (val_print_scalar_formatted, generic_val_print): Don't declare. | |
11704 | * valprint.c (generic_val_print_array): Take a struct value. | |
11705 | (generic_val_print_ptr, generic_val_print_memberptr) | |
11706 | (generic_val_print_bool, generic_val_print_int) | |
11707 | (generic_val_print_char, generic_val_print_complex) | |
11708 | (generic_val_print): Remove. | |
11709 | (generic_value_print): Update. | |
11710 | (do_val_print): Remove unused parameters. Don't call | |
11711 | la_val_print. | |
11712 | (val_print): Remove. | |
11713 | (common_val_print): Update. Don't call value_check_printable. | |
11714 | (val_print_scalar_formatted, val_print_array_elements): Remove. | |
11715 | * rust-lang.c (rust_val_print): Remove. | |
11716 | (rust_language_defn): Update. | |
11717 | * p-valprint.c (pascal_val_print): Remove. | |
11718 | (pascal_value_print_inner): Update. | |
11719 | (pascal_object_print_val_fields, pascal_object_print_val): | |
11720 | Remove. | |
11721 | (pascal_object_print_static_field): Update. | |
11722 | * p-lang.h (pascal_val_print): Don't declare. | |
11723 | * p-lang.c (pascal_language_defn): Update. | |
11724 | * opencl-lang.c (opencl_language_defn): Update. | |
11725 | * objc-lang.c (objc_language_defn): Update. | |
11726 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. | |
11727 | * m2-lang.h (m2_val_print): Don't declare. | |
11728 | * m2-lang.c (m2_language_defn): Update. | |
11729 | * language.h (struct language_defn) <la_val_print>: Remove. | |
11730 | * language.c (unk_lang_value_print_inner): Rename. Change | |
11731 | argument types. | |
11732 | (unknown_language_defn, auto_language_defn): Update. | |
11733 | * go-valprint.c (go_val_print): Remove. | |
11734 | * go-lang.h (go_val_print): Don't declare. | |
11735 | * go-lang.c (go_language_defn): Update. | |
11736 | * f-valprint.c (f_val_print): Remove. | |
11737 | * f-lang.h (f_value_print): Don't declare. | |
11738 | * f-lang.c (f_language_defn): Update. | |
11739 | * d-valprint.c (d_val_print): Remove. | |
11740 | * d-lang.h (d_value_print): Don't declare. | |
11741 | * d-lang.c (d_language_defn): Update. | |
11742 | * cp-valprint.c (cp_print_value_fields) | |
11743 | (cp_print_value_fields_rtti, cp_print_value): Remove. | |
11744 | (cp_print_static_field): Update. | |
11745 | * c-valprint.c (c_val_print_array, c_val_print_ptr) | |
11746 | (c_val_print_struct, c_val_print_union, c_val_print_int) | |
11747 | (c_val_print_memberptr, c_val_print): Remove. | |
11748 | * c-lang.h (c_val_print_array, cp_print_value_fields) | |
11749 | (cp_print_value_fields_rtti): Don't declare. | |
11750 | * c-lang.c (c_language_defn, cplus_language_defn) | |
11751 | (asm_language_defn, minimal_language_defn): Update. | |
11752 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. | |
11753 | (ada_val_print_enum): Take a struct value. | |
11754 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) | |
11755 | (ada_val_print): Remove. | |
11756 | (ada_value_print_1): Update. | |
11757 | (printable_val_type): Remove. | |
11758 | * ada-lang.h (ada_val_print): Don't declare. | |
11759 | * ada-lang.c (ada_language_defn): Update. | |
11760 | ||
42331a1e TT |
11761 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11762 | ||
11763 | * valprint.c (do_val_print): Update. | |
11764 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take | |
11765 | a struct value. | |
11766 | (value_to_value_object_no_release): Declare. | |
11767 | * python/py-value.c (value_to_value_object_no_release): New | |
11768 | function. | |
11769 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a | |
11770 | struct value. | |
11771 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New | |
11772 | function. | |
11773 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take | |
11774 | a struct value. | |
11775 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): | |
11776 | Declare. | |
11777 | (gdbscm_apply_val_pretty_printer): Take a struct value. | |
11778 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct | |
11779 | value. | |
11780 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct | |
11781 | value. | |
11782 | * extension-priv.h (struct extension_language_ops) | |
11783 | <apply_val_pretty_printer>: Take a struct value. | |
11784 | * cp-valprint.c (cp_print_value): Create a struct value. | |
11785 | (cp_print_value): Update. | |
11786 | ||
3a916a97 TT |
11787 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11788 | ||
11789 | * ada-valprint.c (print_field_values): Call common_val_print. | |
11790 | ||
b59eac37 TT |
11791 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11792 | ||
11793 | * ada-valprint.c (val_print_packed_array_elements): Remove | |
11794 | bitoffset and val parameters. Call common_val_print. | |
11795 | (ada_val_print_string): Remove offset, address, and original_value | |
11796 | parameters. | |
11797 | (ada_val_print_array): Update. | |
11798 | (ada_value_print_array): New function. | |
11799 | (ada_value_print_1): Call it. | |
11800 | ||
03371129 TT |
11801 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11802 | ||
11803 | * ada-valprint.c (ada_value_print): Use common_val_print. | |
11804 | ||
2e088f8b TT |
11805 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11806 | ||
11807 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. | |
11808 | ||
39ef85a8 TT |
11809 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11810 | ||
11811 | * ada-valprint.c (ada_value_print_num): New function. | |
11812 | (ada_value_print_1): Use it. | |
11813 | ||
b9fa6e07 TT |
11814 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11815 | ||
11816 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. | |
11817 | ||
416595d6 TT |
11818 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11819 | ||
11820 | * ada-valprint.c (ada_value_print_ptr): New function. | |
11821 | (ada_value_print_1): Use it. | |
11822 | ||
5b5e15ec TT |
11823 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11824 | ||
11825 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; | |
11826 | call common_val_print. | |
11827 | (ada_val_print_1): Update. | |
11828 | (ada_value_print_1): New function. | |
11829 | (ada_value_print_inner): Rewrite. | |
11830 | ||
fbf54e75 TT |
11831 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11832 | ||
11833 | * cp-valprint.c (cp_print_value_fields): Update. | |
11834 | (cp_print_value): New function. | |
11835 | ||
64b653ca TT |
11836 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11837 | ||
11838 | * m2-valprint.c (m2_value_print_inner): Use | |
11839 | cp_print_value_fields. | |
11840 | * cp-valprint.c (cp_print_value_fields): New function. | |
11841 | * c-valprint.c (c_value_print_struct): New function. | |
11842 | (c_value_print_inner): Use c_value_print_struct. | |
11843 | * c-lang.h (cp_print_value_fields): Declare. | |
11844 | ||
6999f067 TT |
11845 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11846 | ||
11847 | * c-valprint.c (c_value_print_array): New function. | |
11848 | (c_value_print_inner): Use it. | |
11849 | ||
ce80b8bd TT |
11850 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11851 | ||
11852 | * c-valprint.c (c_value_print_memberptr): New function. | |
11853 | (c_value_print_inner): Use it. | |
11854 | ||
2faac269 TT |
11855 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11856 | ||
11857 | * c-valprint.c (c_value_print_int): New function. | |
11858 | (c_value_print_inner): Use it. | |
11859 | ||
da3e2c29 TT |
11860 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11861 | ||
11862 | * c-valprint.c (c_value_print_ptr): New function. | |
11863 | (c_value_print_inner): Use it. | |
11864 | ||
50836231 TT |
11865 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11866 | ||
11867 | * c-valprint.c (c_value_print_inner): Rewrite. | |
11868 | ||
4f412b6e TT |
11869 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11870 | ||
11871 | * valprint.c (generic_value_print_complex): New function. | |
11872 | (generic_value_print): Use it. | |
11873 | ||
f5354008 TT |
11874 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11875 | ||
11876 | * valprint.c (generic_val_print_float): Don't call | |
11877 | val_print_scalar_formatted. | |
11878 | (generic_val_print, generic_value_print): Update. | |
11879 | ||
3eec3b05 TT |
11880 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11881 | ||
11882 | * valprint.c (generic_value_print_char): New function | |
11883 | (generic_value_print): Use it. | |
11884 | ||
fdddfccb TT |
11885 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11886 | ||
11887 | * valprint.c (generic_value_print_int): New function. | |
11888 | (generic_value_print): Use it. | |
11889 | ||
6dde7521 TT |
11890 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11891 | ||
11892 | * valprint.c (generic_value_print_bool): New function. | |
11893 | (generic_value_print): Use it. | |
11894 | ||
4112d2e6 TT |
11895 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11896 | ||
11897 | * valprint.c (generic_val_print_func): Simplify. | |
11898 | (generic_val_print, generic_value_print): Update. | |
11899 | ||
65786af6 TT |
11900 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11901 | ||
11902 | * valprint.c (generic_val_print_flags): Remove. | |
11903 | (generic_val_print, generic_value_print): Update. | |
11904 | (val_print_type_code_flags): Add original_value parameter. | |
11905 | ||
40f3ce18 TT |
11906 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11907 | ||
11908 | * valprint.c (generic_val_print): Update. | |
11909 | (generic_value_print): Update. | |
11910 | * valprint.c (generic_val_print_enum): Don't call | |
11911 | val_print_scalar_formatted. | |
11912 | ||
2a5b130b TT |
11913 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11914 | ||
11915 | * valprint.c (generic_value_print): Call generic_value_print_ptr. | |
11916 | * valprint.c (generic_value_print_ptr): New function. | |
11917 | ||
abc66ce9 TT |
11918 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11919 | ||
11920 | * valprint.c (generic_value_print): Rewrite. | |
11921 | ||
07a32858 TT |
11922 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11923 | ||
11924 | * p-valprint.c (pascal_object_print_value_fields) | |
11925 | (pascal_object_print_value): New functions. | |
11926 | ||
64d64d3a TT |
11927 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11928 | ||
11929 | * p-valprint.c (pascal_value_print_inner): Rewrite. | |
11930 | ||
6a95a1f5 TT |
11931 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11932 | ||
11933 | * f-valprint.c (f_value_print_innner): Rewrite. | |
11934 | ||
59fcdac6 TT |
11935 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11936 | ||
11937 | * m2-valprint.c (m2_print_unbounded_array): New overload. | |
11938 | (m2_print_unbounded_array): Update. | |
11939 | (m2_print_array_contents): Take a struct value. | |
11940 | (m2_value_print_inner): Rewrite. | |
11941 | ||
d133c3e1 TT |
11942 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11943 | ||
11944 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. | |
11945 | (d_value_print_inner): New function. | |
11946 | * d-lang.h (d_value_print_inner): Declare. | |
11947 | * d-lang.c (d_language_defn): Use d_value_print_inner. | |
11948 | ||
23b0f06b TT |
11949 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11950 | ||
11951 | * go-valprint.c (go_value_print_inner): New function. | |
11952 | * go-lang.h (go_value_print_inner): Declare. | |
11953 | * go-lang.c (go_language_defn): Use go_value_print_inner. | |
11954 | ||
5f56f7cb TT |
11955 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11956 | ||
11957 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value | |
11958 | API. | |
11959 | (rust_val_print): Rewrite. | |
11960 | (rust_value_print_inner): New function, from rust_val_print. | |
11961 | (rust_language_defn): Use rust_value_print_inner. | |
11962 | ||
26792ee0 TT |
11963 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11964 | ||
11965 | * ada-valprint.c (ada_value_print_inner): New function. | |
11966 | * ada-lang.h (ada_value_print_inner): Declare. | |
11967 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. | |
11968 | ||
24051bbe TT |
11969 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11970 | ||
11971 | * f-valprint.c (f_value_print_innner): New function. | |
11972 | * f-lang.h (f_value_print_innner): Declare. | |
11973 | * f-lang.c (f_language_defn): Use f_value_print_innner. | |
11974 | ||
c0941be6 TT |
11975 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11976 | ||
11977 | * p-valprint.c (pascal_value_print_inner): New function. | |
11978 | * p-lang.h (pascal_value_print_inner): Declare. | |
11979 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. | |
11980 | ||
62c4663d TT |
11981 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11982 | ||
11983 | * m2-valprint.c (m2_value_print_inner): New function. | |
11984 | * m2-lang.h (m2_value_print_inner): Declare. | |
11985 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. | |
11986 | ||
62182190 TT |
11987 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11988 | ||
11989 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. | |
11990 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. | |
11991 | * c-valprint.c (c_value_print_inner): New function. | |
11992 | * c-lang.h (c_value_print_inner): Declare. | |
11993 | * c-lang.c (c_language_defn, cplus_language_defn) | |
11994 | (asm_language_defn, minimal_language_defn): Use | |
11995 | c_value_print_inner. | |
11996 | ||
1e592a8a TT |
11997 | 2020-03-13 Tom Tromey <tom@tromey.com> |
11998 | ||
11999 | * p-valprint.c (pascal_object_print_value_fields): Now static. | |
12000 | * p-lang.h (pascal_object_print_value_fields): Don't declare. | |
12001 | ||
7fe471e9 TT |
12002 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12003 | ||
12004 | * c-valprint.c (c_val_print_array): Simplify. | |
12005 | ||
d121c6ce TT |
12006 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12007 | ||
12008 | * valprint.c (value_print_array_elements): New function. | |
12009 | * valprint.h (value_print_array_elements): Declare. | |
12010 | ||
4dba70ee TT |
12011 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12012 | ||
12013 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. | |
12014 | * mips-tdep.c (mips_print_register): Use | |
12015 | value_print_scalar_formatted. | |
12016 | ||
4f9ae810 TT |
12017 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12018 | ||
12019 | * valprint.h (value_print_scalar_formatted): Declare. | |
12020 | * valprint.c (value_print_scalar_formatted): New function. | |
12021 | ||
156bfec9 TT |
12022 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12023 | ||
12024 | * valprint.h (generic_value_print): Declare. | |
12025 | * valprint.c (generic_value_print): New function. | |
12026 | ||
2b4e573d TT |
12027 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12028 | ||
12029 | * valprint.c (do_val_print): Call la_value_print_inner, if | |
12030 | available. | |
12031 | * rust-lang.c (rust_language_defn): Update. | |
12032 | * p-lang.c (pascal_language_defn): Update. | |
12033 | * opencl-lang.c (opencl_language_defn): Update. | |
12034 | * objc-lang.c (objc_language_defn): Update. | |
12035 | * m2-lang.c (m2_language_defn): Update. | |
12036 | * language.h (struct language_defn) <la_value_print_inner>: New | |
12037 | member. | |
12038 | * language.c (unknown_language_defn, auto_language_defn): Update. | |
12039 | * go-lang.c (go_language_defn): Update. | |
12040 | * f-lang.c (f_language_defn): Update. | |
12041 | * d-lang.c (d_language_defn): Update. | |
12042 | * c-lang.c (c_language_defn, cplus_language_defn) | |
12043 | (asm_language_defn, minimal_language_defn): Update. | |
12044 | * ada-lang.c (ada_language_defn): Update. | |
12045 | ||
a1f6a07c TT |
12046 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12047 | ||
12048 | * c-valprint.c (c_value_print): Use common_val_print. | |
12049 | ||
410cf315 TT |
12050 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12051 | ||
12052 | * cp-valprint.c (cp_print_static_field): Use common_val_print. | |
12053 | ||
72a45c93 TT |
12054 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12055 | ||
12056 | * f-valprint.c (f77_print_array_1, f_val_print): Use | |
12057 | common_val_print. | |
12058 | ||
040f66bd TT |
12059 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12060 | ||
12061 | * riscv-tdep.c (riscv_print_one_register_info): Use | |
12062 | common_val_print. | |
12063 | ||
a6e05a6c TT |
12064 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12065 | ||
12066 | * mi/mi-main.c (output_register): Use common_val_print. | |
12067 | ||
3444c526 TT |
12068 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12069 | ||
12070 | * infcmd.c (default_print_one_register_info): Use | |
12071 | common_val_print. | |
12072 | ||
c2a44efe TT |
12073 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12074 | ||
12075 | * valprint.h (common_val_print_checked): Declare. | |
12076 | * valprint.c (common_val_print_checked): New function. | |
12077 | * stack.c (print_frame_arg): Use common_val_print_checked. | |
12078 | ||
b0c26e99 TT |
12079 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12080 | ||
12081 | * valprint.c (do_val_print): New function, from val_print. | |
12082 | (val_print): Use do_val_print. | |
12083 | (common_val_print): Use do_val_print. | |
12084 | ||
ce3acbe9 TT |
12085 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12086 | ||
12087 | * valprint.c (value_print): Use scoped_value_mark. | |
12088 | ||
96c7f873 TV |
12089 | 2020-03-13 Tom de Vries <tdevries@suse.de> |
12090 | ||
12091 | PR symtab/25646 | |
12092 | * psymtab.c (partial_symtab::partial_symtab): Don't set | |
12093 | globals_offset and statics_offset. Push element onto | |
12094 | current_global_psymbols and current_static_psymbols stacks. | |
12095 | (concat): New function. | |
12096 | (end_psymtab_common): Set globals_offset and statics_offset. Pop | |
12097 | element from current_global_psymbols and current_static_psymbols | |
12098 | stacks. Concat popped elements to global_psymbols and | |
12099 | static_symbols. | |
12100 | (add_psymbol_to_list): Use current_global_psymbols and | |
12101 | current_static_psymbols stacks. | |
12102 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and | |
12103 | current_static_psymbols fields. | |
12104 | ||
6ba0a321 CB |
12105 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
12106 | ||
12107 | * corelow.c (sniff_core_bfd): Remove. | |
12108 | (class core_target) <m_core_vec>: Remove. | |
12109 | (core_target::core_target): Update. | |
12110 | (core_file_fns): Remove. | |
12111 | (deprecated_add_core_fns): Remove. | |
12112 | (default_core_sniffer): Remove. | |
12113 | (sniff_core_bfd): Remove. | |
12114 | (default_check_format): Remove. | |
12115 | (gdb_check_format): Remove. | |
12116 | (core_target_open): Update. | |
12117 | (core_target::get_core_register_section): Update. | |
12118 | (get_core_registers_cb): Update. | |
12119 | (core_target::fetch_registers): Update. | |
12120 | * gdbcore.h (struct core_fns): Remove. | |
12121 | (deprecated_add_core_fns): Remove. | |
12122 | (default_core_sniffer): Remove. | |
12123 | (default_check_format): Remove. | |
12124 | ||
227031b2 TT |
12125 | 2020-03-12 Tom Tromey <tom@tromey.com> |
12126 | ||
12127 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a | |
12128 | CORE_ADDR. | |
12129 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. | |
12130 | ||
53807e9f TT |
12131 | 2020-03-12 Tom Tromey <tom@tromey.com> |
12132 | ||
12133 | * remote.c (remote_target::download_tracepoint) | |
12134 | (remote_target::enable_tracepoint) | |
12135 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. | |
12136 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not | |
12137 | sprintf_vma. | |
12138 | ||
64f25102 TT |
12139 | 2020-03-12 Tom Tromey <tom@tromey.com> |
12140 | ||
12141 | * symfile-mem.c: Update CORE_ADDR size assert. | |
12142 | ||
272cd5a3 SM |
12143 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
12144 | ||
12145 | * selftest.m4: Move to gdbsupport/. | |
12146 | * acinclude.m4: Update path to selftest.m4. | |
12147 | ||
74cd3f9d SM |
12148 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
12149 | ||
12150 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... | |
12151 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, | |
12152 | gdbarch-selfselftests.c and selftest-arch.c. | |
12153 | (SUBDIR_UNITTESTS_OBS): Rename to... | |
12154 | (SELFTESTS_OBS): ... this. | |
12155 | (COMMON_SFILES): Remove disasm-selftests.c and | |
12156 | gdbarch-selftests.c. | |
12157 | * configure.ac: Don't add selftest-arch.{c,o} to | |
12158 | CONFIG_{SRCS,OBS}. | |
12159 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST | |
12160 | preprocessor conditions. | |
12161 | ||
db6878ac SM |
12162 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
12163 | ||
12164 | * configure.ac: Don't source bfd/development.sh. | |
12165 | * selftest.m4: Modify comment. | |
12166 | * configure: Re-generate. | |
12167 | ||
4d696a5c SM |
12168 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
12169 | ||
12170 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is | |
12171 | not "true" or "false". | |
12172 | * configure: Re-generate. | |
12173 | ||
8dd8e1c7 CB |
12174 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
12175 | ||
12176 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. | |
12177 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and | |
12178 | renamed to arm_nbsd_supply_gregset. | |
12179 | (fetch_register): Update to call arm_nbsd_supply_gregset. | |
12180 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. | |
12181 | (arm_netbsd_nat_target::fetch_registers): Update. | |
12182 | (fetch_elfcore_registers): Removed. | |
12183 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. | |
12184 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. | |
12185 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to | |
12186 | not require NetBSD system headers. | |
12187 | (arm_nbsd_regset): New struct. | |
12188 | (arm_nbsd_iterate_over_regset_sections): New function. | |
12189 | (arm_netbsd_init_abi_common): Updated to call | |
12190 | set_gdbarch_iterate_over_regset_sections. | |
12191 | * arm-nbsd-tdep.h: New file. | |
12192 | ||
dd69bf7a KB |
12193 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> |
12194 | ||
12195 | * symtab.c (find_pc_sect_line): Add check which prevents infinite | |
12196 | recursion. | |
12197 | ||
a0761e34 SM |
12198 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
12199 | ||
12200 | * configure: Re-generate. | |
12201 | ||
e7a82140 TT |
12202 | 2020-03-11 Tom Tromey <tromey@adacore.com> |
12203 | ||
12204 | * ada-typeprint.c (print_choices): Fix comment. | |
12205 | ||
dcc050c8 AB |
12206 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
12207 | ||
12208 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing | |
12209 | previous item in the list, when the list has no items. | |
12210 | ||
1c33af77 TV |
12211 | 2020-03-11 Tom de Vries <tdevries@suse.de> |
12212 | ||
12213 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in | |
12214 | PROP_LOCLIST handling code. | |
12215 | ||
8c95582d AB |
12216 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> |
12217 | ||
12218 | * buildsym-legacy.c (record_line): Pass extra parameter to | |
12219 | record_line. | |
12220 | * buildsym.c (buildsym_compunit::record_line): Take an extra | |
12221 | parameter, reduce duplication in the line table, and record the | |
12222 | is_stmt flag in the line table. | |
12223 | * buildsym.h (buildsym_compunit::record_line): Add extra | |
12224 | parameter. | |
12225 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore | |
12226 | non-statement lines. | |
12227 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass | |
12228 | this to the symtab builder. | |
12229 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. | |
12230 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag | |
12231 | through to dwarf_record_line_1. | |
12232 | * infrun.c (process_event_stop_test): When stepping, don't stop at | |
12233 | a non-statement instruction, and only refresh the step info when | |
12234 | we land in the middle of a line's range. Also add an extra | |
12235 | comment. | |
12236 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt | |
12237 | field. | |
12238 | * record-btrace.c (btrace_find_line_range): Only record lines | |
12239 | marked as is-statement. | |
12240 | * stack.c (frame_show_address): Show the frame address if we are | |
12241 | in a non-statement sal. | |
12242 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. | |
12243 | (maintenance_print_one_line_table): Print a header for the is_stmt | |
12244 | column, and include is_stmt information in the output. | |
12245 | * symtab.c (find_pc_sect_line): Find lines marked as statements in | |
12246 | preference to non-statements. | |
12247 | (find_pcs_for_symtab_line): Prefer is-statement entries. | |
12248 | (find_line_common): Likewise. | |
12249 | * symtab.h (struct linetable_entry): Add is_stmt field. | |
12250 | (struct symtab_and_line): Likewise. | |
12251 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when | |
12252 | arranging the line table. | |
12253 | ||
e4003a34 TV |
12254 | 2020-03-07 Tom de Vries <tdevries@suse.de> |
12255 | ||
12256 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder | |
12257 | DIE. | |
12258 | ||
e8932576 TT |
12259 | 2020-03-07 Tom Tromey <tom@tromey.com> |
12260 | ||
12261 | * valops.c (value_literal_complex): Remove obsolete comment. | |
12262 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete | |
12263 | comment. | |
12264 | ||
29734269 SM |
12265 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
12266 | ||
12267 | * infrun.h: Forward-declare thread_info. | |
12268 | (set_step_info): Add thread_info parameter, add doc. | |
12269 | * infrun.c (set_step_info): Add thread_info parameter, move doc | |
12270 | to header. | |
12271 | * infrun.c (process_event_stop_test): Pass thread to | |
12272 | set_step_info call. | |
12273 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to | |
12274 | set_step_info. | |
12275 | (prepare_one_step): Add thread_info parameter, pass it to | |
12276 | set_step_frame and prepare_one_step (recursive) call. | |
12277 | (step_1): Pass thread to prepare_one_step call. | |
12278 | (step_command_fsm::should_stop): Pass thread to | |
12279 | prepare_one_step. | |
12280 | (until_next_fsm): Pass thread to set_step_frame call. | |
12281 | (finish_command): Pass thread to set_step_info call. | |
12282 | ||
b7d64b29 HD |
12283 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> |
12284 | ||
12285 | * windows-tdep.c (windows_solib_create_inferior_hook): | |
12286 | Check if inferior is running. | |
12287 | ||
09f2921c TV |
12288 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
12289 | ||
12290 | * NEWS: Fix "the the". | |
12291 | * ctfread.c: Same. | |
12292 | ||
fd760e79 TV |
12293 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
12294 | ||
12295 | * psymtab.c (psymtab_to_symtab): Don't print "done.". | |
12296 | ||
20ea4a60 AB |
12297 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
12298 | ||
12299 | * .dir-locals.el: Add a comment referencing the other copies of | |
12300 | this file. | |
12301 | ||
0afbabf0 JB |
12302 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> |
12303 | ||
12304 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for | |
12305 | psargs. | |
12306 | ||
842806cb TBA |
12307 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
12308 | ||
12309 | * .gitattributes: New file. | |
12310 | ||
be1e3d3e TT |
12311 | 2020-03-04 Tom Tromey <tom@tromey.com> |
12312 | ||
12313 | * symmisc.c (print_symbol_bcache_statistics) | |
12314 | (print_objfile_statistics): Update. | |
12315 | * symfile.c (allocate_symtab): Use intern. | |
12316 | * psymtab.c (partial_symtab::partial_symtab): Use intern. | |
12317 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
12318 | macro_cache>: Remove. | |
12319 | <string_cache>: New member. | |
12320 | (struct objfile) <intern>: New methods. | |
12321 | * elfread.c (elf_symtab_read): Use intern. | |
12322 | * dwarf2/read.c (fixup_go_packaging): Intern package name. | |
12323 | (dwarf2_compute_name, dwarf2_physname) | |
12324 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern | |
12325 | names. | |
12326 | (guess_partial_die_structure_name): Update. | |
12327 | (partial_die_info::fixup): Intern name. | |
12328 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern | |
12329 | name. | |
12330 | (dwarf2_name): Intern name. Update. | |
12331 | * buildsym.c (buildsym_compunit::get_macro_table): Use | |
12332 | string_cache. | |
12333 | ||
4e7625fd TT |
12334 | 2020-03-04 Tom Tromey <tom@tromey.com> |
12335 | ||
12336 | * jit.c (bfd_open_from_target_memory): Make "target" const. | |
12337 | * corefile.c (gnutarget): Now const. | |
12338 | * gdbcore.h (gnutarget): Now const. | |
12339 | ||
46f9f931 HD |
12340 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> |
12341 | ||
12342 | * NEWS: Mention support for WOW64 processes. | |
12343 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. | |
12344 | (amd64_windows_segment_register_p): Remove static. | |
12345 | (_initialize_amd64_windows_nat): Update. | |
12346 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. | |
12347 | * i386-windows-nat.c (context_offset): Update. | |
12348 | (i386_mappings): Rename and remove static. | |
12349 | (i386_windows_segment_register_p): Remove static. | |
12350 | (_initialize_i386_windows_nat): Update. | |
12351 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. | |
12352 | (STATUS_WX86_SINGLE_STEP): New macro. | |
12353 | (EnumProcessModulesEx): New macro. | |
12354 | (Wow64SuspendThread): New macro. | |
12355 | (Wow64GetThreadContext): New macro. | |
12356 | (Wow64SetThreadContext): New macro. | |
12357 | (Wow64GetThreadSelectorEntry): New macro. | |
12358 | (windows_set_context_register_offsets): Add static. | |
12359 | (windows_set_segment_register_p): Likewise. | |
12360 | (windows_add_thread): Adapt for WOW64 processes. | |
12361 | (windows_fetch_one_register): Likewise. | |
12362 | (windows_nat_target::fetch_registers): Likewise. | |
12363 | (windows_store_one_register): Likewise. | |
12364 | (display_selector): Likewise. | |
12365 | (display_selectors): Likewise. | |
12366 | (handle_exception): Likewise. | |
12367 | (windows_continue): Likewise. | |
12368 | (windows_nat_target::resume): Likewise. | |
12369 | (windows_add_all_dlls): Likewise. | |
12370 | (do_initial_windows_stuff): Likewise. | |
12371 | (windows_nat_target::attach): Likewise. | |
12372 | (windows_get_exec_module_filename): Likewise. | |
12373 | (windows_nat_target::create_inferior): Likewise. | |
12374 | (windows_xfer_siginfo): Likewise. | |
12375 | (_initialize_loadable): Initialize Wow64SuspendThread, | |
12376 | Wow64GetThreadContext, Wow64SetThreadContext, | |
12377 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. | |
12378 | * windows-nat.h (windows_set_context_register_offsets): | |
12379 | Remove declaration. | |
12380 | (windows_set_segment_register_p): Likewise. | |
12381 | (i386_windows_segment_register_p): Add declaration. | |
12382 | (amd64_windows_segment_register_p): Likewise. | |
12383 | ||
440cf44e LM |
12384 | 2020-03-04 Luis Machado <luis.machado@linaro.org> |
12385 | ||
12386 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions | |
12387 | in "info registers" for AArch64/ARM. | |
12388 | ||
12389 | The change caused "info registers" to not print GPR's. | |
12390 | ||
12391 | gdb/ChangeLog: | |
12392 | ||
12393 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
12394 | ||
12395 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
12396 | when reg->group is empty and reggroup is not. | |
12397 | ||
1009d92f TT |
12398 | 2020-03-03 Tom Tromey <tromey@adacore.com> |
12399 | ||
12400 | * dwarf2/frame.c (struct dwarf2_frame_cache) | |
12401 | <checked_tailcall_bottom, entry_cfa_sp_offset, | |
12402 | entry_cfa_sp_offset_p>: Remove members. | |
12403 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. | |
12404 | (dwarf2_frame_prev_register): Don't call | |
12405 | dwarf2_tailcall_sniffer_first. | |
12406 | (dwarf2_append_unwinders): Don't append tailcall unwinder. | |
12407 | * frame-unwind.c (add_unwinder): New fuction. | |
12408 | (frame_unwind_init): Use it. Add tailcall unwinder. | |
12409 | ||
5e5d66b6 AB |
12410 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> |
12411 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
12412 | ||
12413 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero | |
12414 | value should be printed as true. | |
12415 | ||
584cf46d HD |
12416 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> |
12417 | ||
12418 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. | |
12419 | (windows_init_abi): Set and use windows_so_ops. | |
12420 | ||
7b973adc SDJ |
12421 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> |
12422 | ||
12423 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR | |
12424 | when verifying if dealing with a convenience variable. | |
12425 | ||
bb7b70ab LM |
12426 | 2020-03-03 Luis Machado <luis.machado@linaro.org> |
12427 | ||
12428 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. | |
12429 | ||
9822cb57 SM |
12430 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
12431 | ||
12432 | * infrun.c (gdbarch_supports_displaced_stepping): New. | |
12433 | (use_displaced_stepping): Break up conditions in smaller pieces. | |
12434 | Use gdbarch_supports_displaced_stepping. | |
12435 | (displaced_step_prepare_throw): Use | |
12436 | gdbarch_supports_displaced_stepping. | |
12437 | ||
63e163f2 AB |
12438 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
12439 | ||
12440 | * NEWS: Mention new behaviour of the history filename. | |
12441 | * top.c (write_history_p): Add comment. | |
12442 | (show_write_history_p): Add header comment, give a different | |
12443 | message when history writing is on, but the history filename is | |
12444 | empty. | |
12445 | (history_filename): Add comment. | |
12446 | (history_filename_empty): New function. | |
12447 | (show_history_filename): Add header comment, give a different | |
12448 | message when the filename is empty. | |
12449 | (init_history): Compare history_filename against nullptr, and only | |
12450 | read history if the filename is not empty. | |
12451 | (set_history_filename): Add header comment, and only make | |
12452 | non-empty filenames absolute. | |
12453 | (init_main): Make the filename argument to 'set history filename' | |
12454 | optional. | |
12455 | ||
81b86b97 CB |
12456 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> |
12457 | ||
12458 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... | |
12459 | (arm_supply_vfpregset): ...this, and update to use VFP registers. | |
12460 | (fetch_fp_register): Update. | |
12461 | (fetch_fp_regs): Update. | |
12462 | (store_fp_register): Update. | |
12463 | (store_fp_regs): Update. | |
12464 | (arm_netbsd_nat_target::read_description): New function. | |
12465 | (fetch_elfcore_registers): Update. | |
12466 | ||
24ed6739 AB |
12467 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
12468 | ||
12469 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the | |
12470 | general_thread if the stop reply is missing a thread-id. | |
12471 | (remote_target::process_stop_reply): Use the first non-exited | |
12472 | thread if the target didn't pass a thread-id. | |
12473 | * infrun.c (do_target_wait): Move call to | |
12474 | switch_to_inferior_no_thread to .... | |
12475 | (do_target_wait_1): ... here. | |
12476 | ||
a84bb2a0 JT |
12477 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> |
12478 | ||
12479 | * debuginfod-support.c: Include defs.h first. | |
12480 | ||
658dadf0 TV |
12481 | 2020-02-28 Tom de Vries <tdevries@suse.de> |
12482 | ||
12483 | * symfile.c (set_initial_language): Use default language for lookup. | |
12484 | ||
4ebe4877 SM |
12485 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> |
12486 | ||
12487 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove | |
12488 | reader variable, pass `this` to read_cutu_die_from_dwo. | |
12489 | ||
e5da1139 AM |
12490 | 2020-02-27 Aaron Merey <amerey@redhat.com> |
12491 | ||
12492 | * source.c (open_source_file): Check for nullptr when computing | |
12493 | srcpath. | |
12494 | ||
317f7127 TT |
12495 | 2020-02-27 Tom Tromey <tromey@adacore.com> |
12496 | ||
12497 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a | |
12498 | member. | |
12499 | (dwarf2_add_field): Don't update nfields. | |
12500 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. | |
12501 | ||
3104d9ee AB |
12502 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
12503 | ||
12504 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not | |
12505 | abs. | |
12506 | ||
b83470bf TT |
12507 | 2020-02-26 Tom Tromey <tom@tromey.com> |
12508 | ||
12509 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. | |
12510 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. | |
12511 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) | |
12512 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for | |
12513 | per_cu_data. | |
12514 | ||
edfe0a0c TT |
12515 | 2020-02-26 Tom Tromey <tom@tromey.com> |
12516 | ||
12517 | * dwarf2/index-write.c (psym_index_map): Change type. | |
12518 | (add_address_entry_worker, write_one_signatured_type) | |
12519 | (recursively_count_psymbols, recursively_write_psymbols) | |
12520 | (class debug_names, psyms_seen_size, write_gdbindex) | |
12521 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. | |
12522 | ||
0d79cdc4 AM |
12523 | 2020-02-26 Aaron Merey <amerey@redhat.com> |
12524 | ||
12525 | * Makefile.in: Handle optional debuginfod support. | |
12526 | * NEWS: Update. | |
12527 | * README: Add --with-debuginfod summary. | |
12528 | * config.in: Regenerate. | |
12529 | * configure: Regenerate. | |
12530 | * configure.ac: Handle optional debuginfod support. | |
12531 | * debuginfod-support.c: debuginfod helper functions. | |
12532 | * debuginfod-support.h: Ditto. | |
12533 | * doc/gdb.texinfo: Add --with-debuginfod to configure options | |
12534 | summary. | |
12535 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers | |
12536 | when a dwz file cannot be found. | |
12537 | * elfread.c (elf_symfile_read): Query debuginfod servers when a | |
12538 | debuginfo file cannot be found. | |
12539 | * source.c (open_source_file): Query debuginfod servers when a | |
12540 | source file cannot be found. | |
12541 | * top.c (print_gdb_configuration): Include | |
12542 | --{with,without}-debuginfod in the output. | |
12543 | ||
b65ce565 JG |
12544 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
12545 | ||
12546 | * thread.c (thr_try_catch_cmd): Print thread name. | |
12547 | ||
d4c9a4f8 SM |
12548 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> |
12549 | ||
12550 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, | |
12551 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
12552 | dwarf2_fetch_die_type_sect_off): Move to... | |
12553 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
12554 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
12555 | dwarf2_fetch_die_type_sect_off): ... here. | |
12556 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
12557 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
12558 | dwarf2_fetch_die_type_sect_off): Move doc to header file. | |
12559 | ||
0dce4280 TV |
12560 | 2020-02-26 Tom de Vries <tdevries@suse.de> |
12561 | ||
12562 | PR gdb/25603 | |
12563 | * symfile.c (set_initial_language): Exit-early if | |
12564 | language_mode == language_mode_manual. | |
12565 | ||
450a1bfc SM |
12566 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
12567 | ||
12568 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... | |
12569 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. | |
12570 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. | |
12571 | ||
9e80cfa1 AB |
12572 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
12573 | ||
12574 | * gdbtypes.c (create_array_type_with_stride): Handle negative | |
12575 | array strides. | |
12576 | * valarith.c (value_subscripted_rvalue): Likewise. | |
12577 | ||
09624f1f LM |
12578 | 2020-02-25 Luis Machado <luis.machado@linaro.org> |
12579 | ||
12580 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. | |
12581 | ||
8cb5117c SM |
12582 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
12583 | ||
12584 | * loc.h (dwarf2_get_die_type): Move to... | |
12585 | * read.h (dwarf2_get_die_type): ... here. | |
12586 | * read.c (dwarf2_get_die_type): Move doc to header. | |
12587 | ||
c325c44e JB |
12588 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> |
12589 | ||
12590 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and | |
12591 | 'gnulib/Makefile.in' to the list. | |
12592 | ||
4ac93832 TT |
12593 | 2020-02-24 Tom Tromey <tom@tromey.com> |
12594 | ||
12595 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: | |
12596 | Remove. | |
12597 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use | |
12598 | XOBNEWVEC. | |
12599 | ||
197400e8 TT |
12600 | 2020-02-24 Tom Tromey <tom@tromey.com> |
12601 | ||
12602 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: | |
12603 | New method. | |
12604 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. | |
12605 | (dw2_do_instantiate_symtab, dw2_get_file_names) | |
12606 | (build_type_psymtab_dependencies, load_full_type_unit): Update. | |
12607 | ||
76935768 TT |
12608 | 2020-02-24 Tom Tromey <tom@tromey.com> |
12609 | ||
12610 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use | |
12611 | make_scoped_restore. | |
12612 | (dwarf2_psymtab::read_symtab): Don't clear | |
12613 | reading_partial_symbols. | |
12614 | ||
a88ef40d TV |
12615 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
12616 | ||
12617 | PR gdb/25592 | |
12618 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. | |
12619 | ||
c9af6521 TV |
12620 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
12621 | ||
12622 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for | |
12623 | commands layout next/prev/regs. | |
12624 | ||
5707a07a TT |
12625 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12626 | ||
12627 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
12628 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
12629 | ||
3b0fb49e TT |
12630 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12631 | ||
12632 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
12633 | ||
283be8bf TT |
12634 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12635 | ||
12636 | * tui/tui-win.c (_initialize_tui_win): Add usage text. | |
12637 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. | |
12638 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. | |
12639 | * tui/tui.c (_initialize_tui): Add usage text. | |
12640 | ||
ca793b96 TT |
12641 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12642 | ||
12643 | * tui/tui-win.c (tui_set_focus_command) | |
12644 | (tui_set_win_height_command): Use error_no_arg. | |
12645 | (_initialize_tui_win): Update help text. | |
12646 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. | |
12647 | ||
432b5c40 TT |
12648 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12649 | ||
12650 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. | |
12651 | * tui/tui-disasm.h (struct tui_disasm_window) | |
12652 | <display_start_addr>: Declare. | |
12653 | * tui/tui-source.h (struct tui_source_window) | |
12654 | <display_start_addr>: Declare. | |
12655 | * tui/tui-winsource.h (struct tui_source_window_base) | |
12656 | <show_source_line, display_start_addr>: New methods. | |
12657 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: | |
12658 | Rename and move to protected section. | |
12659 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) | |
12660 | (tui_source_window_base::do_erase_source_content): Update. | |
12661 | (tui_source_window_base::show_source_line): Now a method. | |
12662 | (tui_source_window_base::show_source_content) | |
12663 | (tui_source_window_base::tui_source_window_base) | |
12664 | (tui_source_window_base::rerender) | |
12665 | (tui_source_window_base::refill) | |
12666 | (tui_source_window_base::do_scroll_horizontal) | |
12667 | (tui_source_window_base::set_is_exec_point_at) | |
12668 | (tui_source_window_base::update_breakpoint_info) | |
12669 | (tui_source_window_base::update_exec_info): Update. | |
12670 | * tui/tui-source.c (tui_source_window::set_contents) | |
12671 | (tui_source_window::showing_source_p) | |
12672 | (tui_source_window::do_scroll_vertical) | |
12673 | (tui_source_window::location_matches_p) | |
12674 | (tui_source_window::line_is_displayed): Update. | |
12675 | (tui_source_window::display_start_addr): New method. | |
12676 | * tui/tui-disasm.c (tui_disasm_window::set_contents) | |
12677 | (tui_disasm_window::do_scroll_vertical) | |
12678 | (tui_disasm_window::location_matches_p): Update. | |
12679 | (tui_disasm_window::display_start_addr): New method. | |
12680 | ||
01b1af32 TT |
12681 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12682 | ||
12683 | * NEWS: Add entry for gdb.register_window_type. | |
12684 | * tui/tui-layout.h (window_factory): New typedef. | |
12685 | (tui_register_window): Declare. | |
12686 | * tui/tui-layout.c (saved_tui_windows): New global. | |
12687 | (tui_apply_current_layout): Use it. | |
12688 | (tui_register_window): New function. | |
12689 | * python/python.c (do_start_initialization): Call | |
12690 | gdbpy_initialize_tui. | |
12691 | (python_GdbMethods): Add "register_window_type" function. | |
12692 | * python/python-internal.h (gdbpy_register_tui_window) | |
12693 | (gdbpy_initialize_tui): Declare. | |
12694 | * python/py-tui.c: New file. | |
12695 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. | |
12696 | ||
fc96d20b TT |
12697 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12698 | ||
12699 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. | |
12700 | ||
935c78c0 TT |
12701 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12702 | ||
12703 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. | |
12704 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. | |
12705 | * tui/tui-data.c (tui_set_win_with_focus): Remove. | |
12706 | (tui_set_win_focus_to): Move from tui-win.c. | |
12707 | ||
0240c8f1 TT |
12708 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12709 | ||
12710 | * tui/tui-layout.c (make_standard_window, get_locator_window): New | |
12711 | functions. | |
12712 | (known_window_types): New global. | |
12713 | (tui_get_window_by_name): Reimplement. | |
12714 | (initialize_known_windows): New function. | |
12715 | (validate_window_name): Rewrite. | |
12716 | (_initialize_tui_layout): Call initialize_known_windows. | |
12717 | ||
fdb01f0c TT |
12718 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12719 | ||
12720 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: | |
12721 | Remove constants. | |
12722 | * tui/tui-winsource.h (struct tui_source_window_base) | |
12723 | <tui_source_window_base>: Remove parameter. | |
12724 | * tui/tui-winsource.c | |
12725 | (tui_source_window_base::tui_source_window_base): Remove | |
12726 | parameter. | |
12727 | (tui_source_window_base::refill): Update. | |
12728 | * tui/tui-stack.h (struct tui_locator_window) | |
12729 | <tui_locator_window>: Update. | |
12730 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: | |
12731 | Default the constructor. | |
12732 | * tui/tui-regs.h (struct tui_data_item_window) | |
12733 | <tui_data_item_window>: Default the constructor. | |
12734 | (struct tui_data_window) <tui_data_window>: Likewise. | |
12735 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: | |
12736 | Default the constructor. | |
12737 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: | |
12738 | Default the constructor. | |
12739 | <type>: Remove. | |
12740 | (struct tui_win_info) <tui_win_info>: Default the constructor. | |
12741 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. | |
12742 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: | |
12743 | Default the constructor. | |
12744 | ||
865a5aec TT |
12745 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12746 | ||
12747 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. | |
12748 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. | |
12749 | * tui/tui-win.c (tui_resize_all): Don't call | |
12750 | tui_delete_invisible_windows. | |
12751 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when | |
12752 | done. | |
12753 | (tui_set_layout): Update. | |
12754 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. | |
12755 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. | |
12756 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. | |
12757 | ||
e098d18c TT |
12758 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12759 | ||
12760 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity | |
12761 | correctly. | |
12762 | ||
eb9c8874 TT |
12763 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12764 | ||
12765 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. | |
12766 | ||
7eed1a8e TT |
12767 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12768 | ||
12769 | * tui/tui-winsource.h (struct tui_source_window_iterator) | |
12770 | <inner_iterator>: New etytypedef. | |
12771 | <tui_source_window_iterator>: Take "end" parameter. | |
12772 | <tui_source_window_iterator>: Take iterator. | |
12773 | <operator*, advance>: Update. | |
12774 | <m_iter>: Change type. | |
12775 | <m_end>: New field. | |
12776 | (struct tui_source_windows) <begin, end>: Update. | |
12777 | * tui/tui-layout.c (tui_windows): New global. | |
12778 | (tui_apply_current_layout): Clear tui_windows. | |
12779 | (tui_layout_window::apply): Update tui_windows. | |
12780 | * tui/tui-data.h (tui_windows): Declare. | |
12781 | (all_tui_windows): Now inline function. | |
12782 | (class tui_window_iterator, struct all_tui_windows): Remove. | |
12783 | ||
7c043ba6 TT |
12784 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12785 | ||
12786 | PR tui/17850: | |
12787 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. | |
12788 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add | |
12789 | "height" argument. | |
12790 | (class tui_layout_window) <get_sizes>: Likewise. | |
12791 | (class tui_layout_split) <tui_layout_split>: Add "vertical" | |
12792 | argument. | |
12793 | <get_sizes>: Add "height" argument. | |
12794 | <m_vertical>: New field. | |
12795 | * tui/tui-layout.c (tui_layout_split::clone): Update. | |
12796 | (tui_layout_split::get_sizes): Add "height" argument. | |
12797 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. | |
12798 | (tui_new_layout_command): Parse "-horizontal". | |
12799 | (_initialize_tui_layout): Update help string. | |
12800 | (tui_layout_split::specification): Add "-horizontal" when needed. | |
12801 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" | |
12802 | argument. | |
12803 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: | |
12804 | New methods. | |
12805 | ||
6bc56648 TT |
12806 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12807 | ||
12808 | * tui/tui-layout.h (enum tui_adjust_result): New. | |
12809 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. | |
12810 | (class tui_layout_window) <adjust_size>: Return | |
12811 | tui_adjust_result. Rewrite. | |
12812 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. | |
12813 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. | |
12814 | ||
c22fef7e TT |
12815 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12816 | ||
12817 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change | |
12818 | parameter and return types. | |
12819 | (class tui_layout_base) <specification>: Add "depth". | |
12820 | (class tui_layout_window) <specification>: Add "depth". | |
12821 | (class tui_layout_split) <specification>: Add "depth". | |
12822 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter | |
12823 | and return types. | |
12824 | (tui_new_layout_command): Parse sub-layouts. | |
12825 | (_initialize_tui_layout): Update help string. | |
12826 | (tui_layout_window::specification): Add "depth". | |
12827 | (add_layout_command): Update. | |
12828 | ||
ee325b61 TT |
12829 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12830 | ||
12831 | * NEWS: Add "tui new-layout" item. | |
12832 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. | |
12833 | Add new-layout command to help text. | |
12834 | (validate_window_name): New function. | |
12835 | (tui_new_layout_command): New function. | |
12836 | (_initialize_tui_layout): Register "new-layout". | |
12837 | (tui_layout_window::specification): New method. | |
12838 | (tui_layout_window::specification): New method. | |
12839 | * tui/tui-layout.h (class tui_layout_base) <specification>: New | |
12840 | method. | |
12841 | (class tui_layout_window) <specification>: New method. | |
12842 | (class tui_layout_split) <specification>: New method. | |
12843 | ||
416eb92d TT |
12844 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12845 | ||
12846 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. | |
12847 | * tui/tui-win.c (window_name_completer): Update comment. | |
12848 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: | |
12849 | Declare method. | |
12850 | (class tui_layout_window) <replace_window>: Likewise. | |
12851 | (class tui_layout_split) <replace_window>: Likewise. | |
12852 | (tui_set_layout): Don't declare. | |
12853 | (tui_set_initial_layout): Declare function. | |
12854 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) | |
12855 | (asm_regs_layout): New globals. | |
12856 | (tui_current_layout, show_layout): Remove. | |
12857 | (tui_set_layout, tui_add_win_to_layout): Rewrite. | |
12858 | (find_layout, tui_apply_layout): New function. | |
12859 | (layout_completer): Remove. | |
12860 | (tui_next_layout): Reimplement. | |
12861 | (tui_next_layout_command): New function. | |
12862 | (tui_set_initial_layout, tui_prev_layout_command): New functions. | |
12863 | (tui_regs_layout): Reimplement. | |
12864 | (tui_regs_layout_command): New function. | |
12865 | (extract_display_start_addr): Rewrite. | |
12866 | (next_layout, prev_layout): Remove. | |
12867 | (tui_layout_window::replace_window): New method. | |
12868 | (tui_layout_split::replace_window): New method. | |
12869 | (destroy_layout): New function. | |
12870 | (layout_list): New global. | |
12871 | (add_layout_command): New function. | |
12872 | (initialize_layouts): Update. | |
12873 | (tui_layout_command): New function. | |
12874 | (_initialize_tui_layout): Install "layout" commands. | |
12875 | * tui/tui-data.h (enum tui_layout_type): Remove. | |
12876 | (tui_current_layout): Don't declare. | |
12877 | ||
0dbc2fc7 TT |
12878 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12879 | ||
12880 | * tui/tui-regs.c (tui_reg_layout): Remove. | |
12881 | (tui_reg_command): Use tui_regs_layout. | |
12882 | * tui/tui-layout.h (tui_reg_command): Declare. | |
12883 | * tui/tui-layout.c (tui_reg_command): New function. | |
12884 | ||
5afe342e TT |
12885 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12886 | ||
12887 | * tui/tui.c (tui_rl_delete_other_windows): Call | |
12888 | tui_remove_some_windows. | |
12889 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: | |
12890 | Declare method. | |
12891 | (class tui_layout_window) <remove_windows>: New method. | |
12892 | (class tui_layout_split) <remove_windows>: Declare. | |
12893 | (tui_remove_some_windows): Declare. | |
12894 | * tui/tui-layout.c (tui_remove_some_windows): New function. | |
12895 | (tui_layout_split::remove_windows): New method. | |
12896 | ||
427326a8 TT |
12897 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12898 | ||
12899 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. | |
12900 | * tui/tui-layout.h (tui_next_layout): Declare. | |
12901 | * tui/tui-layout.c (tui_next_layout): New function. | |
12902 | ||
3fe12b6d TT |
12903 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12904 | ||
12905 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use | |
12906 | correct coordinates. | |
12907 | ||
59b8b5d2 TT |
12908 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12909 | ||
12910 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. | |
12911 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove | |
12912 | DATA_WIN case. | |
12913 | ||
2a3d458b TT |
12914 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12915 | ||
12916 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use | |
12917 | TUI_DISASM_WIN, not tui_win_list. | |
12918 | ||
3f0cbb04 TT |
12919 | 2020-02-22 Tom Tromey <tom@tromey.com> |
12920 | ||
12921 | * valprint.c (generic_val_print_enum_1) | |
12922 | (val_print_type_code_flags): Style member names. | |
12923 | * rust-lang.c (val_print_struct, rust_print_enum) | |
12924 | (rust_print_struct_def, rust_internal_print_type): Style member | |
12925 | names. | |
12926 | * p-valprint.c (pascal_object_print_value_fields): Style member | |
12927 | names. Only call fprintf_symbol_filtered for static members. | |
12928 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. | |
12929 | * f-valprint.c (f_val_print): Style member names. | |
12930 | * f-typeprint.c (f_type_print_base): Style member names. | |
12931 | * cp-valprint.c (cp_print_value_fields): Style member names. Only | |
12932 | call fprintf_symbol_filtered for static members. | |
12933 | (cp_print_class_member): Style member names. | |
12934 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style | |
12935 | member names. | |
12936 | * ada-valprint.c (ada_print_scalar): Style enum names. | |
12937 | (ada_val_print_enum): Likewise. | |
12938 | * ada-typeprint.c (print_enum_type): Style enum names. | |
12939 | ||
d4d947ae TT |
12940 | 2020-02-21 Tom Tromey <tom@tromey.com> |
12941 | ||
12942 | * psympriv.h (struct partial_symtab): Update comment. | |
12943 | ||
e94e944b TT |
12944 | 2020-02-21 Tom Tromey <tromey@adacore.com> |
12945 | ||
12946 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter | |
12947 | type is CORE_ADDR. | |
12948 | ||
1eb73179 TV |
12949 | 2020-02-21 Tom de Vries <tdevries@suse.de> |
12950 | ||
12951 | PR gdb/25534 | |
12952 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency | |
12953 | if dependencies[i]->user != NULL. | |
12954 | ||
4f180d53 AT |
12955 | 2020-02-21 Ali Tamur <tamur@google.com> |
12956 | ||
12957 | * dwarf2/read.c (dwarf2_name): Add null check. | |
12958 | ||
22b6cd70 TT |
12959 | 2020-02-20 Tom Tromey <tom@tromey.com> |
12960 | ||
12961 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not | |
12962 | ">=", in binary search. | |
12963 | (dwarf2_find_containing_comp_unit): New overload. | |
12964 | (run_test): New self-test. | |
12965 | (_initialize_dwarf2_read): Register new test. | |
12966 | ||
bd0cf5a6 NC |
12967 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
12968 | ||
12969 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. | |
12970 | * riscv-tdep.h: Likewise. | |
12971 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without | |
12972 | rv32-only CSR. | |
12973 | * features/riscv/64bit-csr.xml: Regenerated. | |
12974 | ||
3f702acd SDJ |
12975 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
12976 | Tom Tromey <tom@tromey.com> | |
12977 | ||
12978 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead | |
12979 | of 'fputc_unfiltered'. | |
12980 | (putchar_unfiltered): Call 'fputc_unfiltered'. | |
12981 | (fputc_unfiltered): Call 'fputs_unfiltered'. | |
12982 | ||
d13c7322 AB |
12983 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> |
12984 | ||
12985 | * config.in: Regenerate. | |
12986 | * configure: Regenerate. | |
12987 | * configure.ac: Add --with-python-libdir option. | |
12988 | * main.c: Use WITH_PYTHON_LIBDIR. | |
12989 | ||
869d8950 TT |
12990 | 2020-02-19 Tom Tromey <tom@tromey.com> |
12991 | ||
12992 | * symtab.c (general_symbol_info::compute_and_set_names): Use | |
12993 | obstack_strndup. Simplify call to symbol_set_demangled_name. | |
12994 | ||
298e9637 SM |
12995 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> |
12996 | ||
12997 | * dwarf2/read.c (allocate_signatured_type_table, | |
12998 | allocate_dwo_unit_table, allocate_type_unit_groups_table, | |
12999 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): | |
13000 | Remove objfile parameter, update all callers. | |
13001 | ||
08410482 DE |
13002 | 2020-02-19 Doug Evans <dje@google.com> |
13003 | ||
13004 | PR rust/25535 | |
13005 | * rust-lang.c (rust_print_enum): Apply embedded_offset to | |
13006 | rust_enum_variant calculation. | |
13007 | ||
dfdeeca1 TT |
13008 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
13009 | ||
13010 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. | |
13011 | ||
2ef5453b TT |
13012 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
13013 | ||
13014 | * ada-lang.c (cache_symbol): Use obstack_strdup. | |
13015 | ||
9f1528a1 AB |
13016 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
13017 | ||
13018 | * configure: Regenerate. | |
13019 | ||
d3c22fa8 TT |
13020 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
13021 | ||
13022 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove | |
13023 | NULL check. | |
13024 | ||
bf84f706 MR |
13025 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
13026 | ||
13027 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. | |
13028 | ||
d1c9b20f AB |
13029 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
13030 | ||
13031 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define | |
13032 | if GDBSERVER is not defined. | |
13033 | (riscv_tdesc_cache): Likewise, also store const target_desc. | |
13034 | (STATIC_IN_GDB): Define. | |
13035 | (riscv_create_target_description): Update declaration with | |
13036 | STATIC_IN_GDB. | |
13037 | (riscv_lookup_target_description): New function, only define if | |
13038 | GDBSERVER is not defined. | |
13039 | * arch/riscv.h (riscv_create_target_description): Declare only | |
13040 | when GDBSERVER is defined. | |
13041 | (riscv_lookup_target_description): New declaration when GDBSERVER | |
13042 | is not defined. | |
13043 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... | |
13044 | (riscv_linux_read_features): ...this, and return | |
13045 | riscv_gdbarch_features instead of target_desc. | |
13046 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. | |
13047 | (riscv_linux_read_description): Rename to... | |
13048 | (riscv_linux_read_features): ...this. | |
13049 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
13050 | Update to use riscv_gdbarch_features and | |
13051 | riscv_lookup_target_description. | |
13052 | * riscv-tdep.c (riscv_find_default_target_description): Use | |
13053 | riscv_lookup_target_description instead of | |
13054 | riscv_create_target_description. | |
13055 | ||
373d7ac0 SM |
13056 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
13057 | ||
13058 | * valprint.c (generic_val_print_enum_1): When printing a flag | |
13059 | enum with value 0 and there is no enumerator with value 0, print | |
13060 | just "0" instead of "(unknown: 0x0)". | |
13061 | ||
b29a2df0 SM |
13062 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
13063 | ||
13064 | * valprint.c (generic_val_print_enum_1): Print unknown part of | |
13065 | flag enum in hex. | |
13066 | ||
6740f0cc SM |
13067 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
13068 | ||
13069 | * dwarf2/read.c (update_enumeration_type_from_children): Allow | |
13070 | flag enums to contain duplicate enumerators. | |
13071 | * valprint.c (generic_val_print_enum_1): Update comment. | |
13072 | ||
edd45eb0 SM |
13073 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
13074 | ||
13075 | * dwarf2/read.c: Include "count-one-bits.h". | |
13076 | (update_enumeration_type_from_children): If an enumerator has | |
13077 | multiple bits set, don't treat the enumeration as a "flag enum". | |
13078 | * valprint.c (generic_val_print_enum_1): Assert that enumerators | |
13079 | of flag enums have 0 or 1 bit set. | |
13080 | ||
6d0cf446 BE |
13081 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
13082 | ||
13083 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit | |
13084 | conversion. | |
13085 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
13086 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
13087 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
13088 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
13089 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
13090 | ||
7001c1b7 SM |
13091 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
13092 | ||
13093 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. | |
13094 | ||
fdb61c6c SM |
13095 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
13096 | ||
13097 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use | |
13098 | displaced_step_closure_up. | |
13099 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
13100 | (struct displaced_step_closure_up): | |
13101 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
13102 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
13103 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): | |
13104 | Likewise. | |
13105 | * gdbarch.sh (displaced_step_copy_insn): Likewise. | |
13106 | * gdbarch.c, gdbarch.h: Re-generate. | |
13107 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use | |
13108 | displaced_step_closure_up. | |
13109 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
13110 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
13111 | * infrun.h (displaced_step_closure_up): New type alias. | |
13112 | (struct displaced_step_inferior_state) <step_closure>: Change | |
13113 | type to displaced_step_closure_up. | |
13114 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use | |
13115 | displaced_step_closure_up. | |
13116 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
13117 | ||
a4a38eb4 TT |
13118 | 2020-02-14 Tom Tromey <tom@tromey.com> |
13119 | ||
13120 | * minidebug.c (gnu_debug_key): New global. | |
13121 | (find_separate_debug_file_in_section): Use it. | |
13122 | ||
e8217e61 SM |
13123 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
13124 | ||
13125 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an | |
13126 | std::unique_ptr. | |
13127 | * gdbarch.c: Re-generate. | |
13128 | * gdbarch.h: Re-generate. | |
13129 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr | |
13130 | change. | |
13131 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return | |
13132 | type to std::unique_ptr. | |
13133 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
13134 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
13135 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
13136 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
13137 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. | |
13138 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
13139 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
13140 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
13141 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
13142 | ||
d8d83535 SM |
13143 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
13144 | ||
13145 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to | |
13146 | std::unique_ptr. | |
13147 | (displaced_step_clear): Rename to... | |
13148 | (displaced_step_reset): ... this. Just call displaced->reset (). | |
13149 | (displaced_step_clear_cleanup): Rename to... | |
13150 | (displaced_step_reset_cleanup): ... this. | |
13151 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. | |
13152 | (displaced_step_fixup): Likewise. | |
13153 | (resume_1): Likewise. | |
13154 | (handle_inferior_event): Restore child's memory before calling | |
13155 | displaced_step_fixup on the parent. | |
13156 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust | |
13157 | to std::unique_ptr. | |
13158 | <step_closure>: Change type to std::unique_ptr. | |
13159 | ||
5f661e03 SM |
13160 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
13161 | ||
13162 | * arm-tdep.c: Include count-one-bits.h. | |
13163 | (cleanup_block_store_pc): Use count_one_bits. | |
13164 | (cleanup_block_load_pc): Use count_one_bits. | |
13165 | (arm_copy_block_xfer): Use count_one_bits. | |
13166 | (thumb2_copy_block_xfer): Use count_one_bits. | |
13167 | (thumb_copy_pop_pc_16bit): Use count_one_bits. | |
13168 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. | |
13169 | (thumb_get_next_pcs_raw): Use count_one_bits. | |
13170 | (arm_get_next_pcs_raw): Use count_one_bits_l. | |
13171 | * arch/arm.c (bitcount): Remove. | |
13172 | * arch/arm.h (bitcount): Remove. | |
13173 | ||
8084e579 TT |
13174 | 2020-02-14 Tom Tromey <tromey@adacore.com> |
13175 | ||
13176 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): | |
13177 | Update. | |
13178 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. | |
13179 | * dwarf2/loc.c (call_site_find_chain_1): Return | |
13180 | unique_xmalloc_ptr. | |
13181 | (call_site_find_chain): Likewise. | |
13182 | ||
258bf0ee RB |
13183 | 2020-02-14 Richard Biener <rguenther@suse.de> |
13184 | ||
13185 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE | |
13186 | on expression with division operators. | |
13187 | ||
f98a8458 AKS |
13188 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
13189 | ||
13190 | * MAINTAINERS (Write After Approval): Adding myself. | |
13191 | ||
d1437c0e TT |
13192 | 2020-02-12 Tom Tromey <tom@tromey.com> |
13193 | ||
13194 | * event-loop.c (event_data, gdb_event, event_handler_func): | |
13195 | Remove. | |
13196 | ||
3d4560f7 TT |
13197 | 2020-02-12 Tom Tromey <tom@tromey.com> |
13198 | ||
13199 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. | |
13200 | (dwarf2_frame_objfile_data): Add comment. | |
13201 | (find_comp_unit, set_comp_unit): New functions. | |
13202 | (dwarf2_frame_find_fde): Use find_comp_unit. | |
13203 | (dwarf2_build_frame_info): Use set_comp_unit. | |
13204 | ||
21982304 TT |
13205 | 2020-02-12 Tom Tromey <tom@tromey.com> |
13206 | ||
13207 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. | |
13208 | (comp_unit): Don't initialize objfile. | |
13209 | (execute_cfa_program): Add text_offset parameter. | |
13210 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) | |
13211 | (dwarf2_frame_cache): Update. | |
13212 | (dwarf2_build_frame_info): Don't set "objfile" member. | |
13213 | ||
4debb237 TT |
13214 | 2020-02-12 Tom Tromey <tom@tromey.com> |
13215 | ||
13216 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. | |
13217 | (decode_frame_entry): Likewise. | |
13218 | (dwarf2_build_frame_info): Update. | |
13219 | ||
0d404d44 TT |
13220 | 2020-02-12 Tom Tromey <tom@tromey.com> |
13221 | ||
13222 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. | |
13223 | (decode_frame_entry_1): Use the comp_unit obstack. | |
13224 | ||
a7a3ae5c TT |
13225 | 2020-02-12 Tom Tromey <tom@tromey.com> |
13226 | ||
13227 | * dwarf2/frame.c (struct comp_unit): Add initializers and | |
13228 | constructor. | |
13229 | (dwarf2_frame_objfile_data): Store a comp_unit. | |
13230 | (dwarf2_frame_find_fde): Update. | |
13231 | (dwarf2_build_frame_info): Use "new". | |
13232 | ||
a9d65418 TT |
13233 | 2020-02-12 Tom Tromey <tom@tromey.com> |
13234 | ||
13235 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. | |
13236 | (dwarf2_fde_table): Typedef for std::vector. | |
13237 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. | |
13238 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) | |
13239 | (decode_frame_entry): Update. | |
13240 | (dwarf2_build_frame_info): Use "new". | |
13241 | ||
7559c217 CB |
13242 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
13243 | ||
13244 | * arm-tdep.c (arm_gdbarch_init): Update. | |
13245 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, | |
13246 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, | |
13247 | have_neon, is_m>: Change to bool. | |
13248 | ||
aeefc73c CB |
13249 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
13250 | ||
13251 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. | |
13252 | ||
d27b8e5f TT |
13253 | 2020-02-12 Tom Tromey <tom@tromey.com> |
13254 | ||
13255 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. | |
13256 | ||
cd5900f3 HD |
13257 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
13258 | ||
13259 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. | |
13260 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. | |
13261 | ||
f056b22b TT |
13262 | 2020-02-11 Tom Tromey <tom@tromey.com> |
13263 | ||
13264 | * psymtab.h: Update comment. | |
13265 | ||
f92ff6b5 TT |
13266 | 2020-02-11 Tom Tromey <tom@tromey.com> |
13267 | ||
13268 | * gdb_obstack.h (struct auto_obstack): Use | |
13269 | DISABLE_COPY_AND_ASSIGN. | |
13270 | ||
3fd6912b TT |
13271 | 2020-02-11 Tom Tromey <tom@tromey.com> |
13272 | ||
13273 | * dwarf2/frame.h (struct objfile): Don't forward declare. | |
13274 | ||
69ed9b74 CB |
13275 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
13276 | ||
13277 | * cris-tdep.c (cris_supply_gregset): Change signature to match | |
13278 | what struct regset expects. | |
13279 | (cris_regset): New struct. | |
13280 | (fetch_core_registers): Remove. | |
13281 | (cris_iterate_over_regset_sections): New function. | |
13282 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. | |
13283 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. | |
13284 | ||
bda874f6 CB |
13285 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
13286 | ||
13287 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 | |
13288 | registers. | |
13289 | ||
754e1564 CB |
13290 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
13291 | ||
13292 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. | |
13293 | ||
8ddd8e0e SM |
13294 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
13295 | ||
13296 | * configure: Re-generate. | |
13297 | ||
898e7f60 SM |
13298 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
13299 | ||
13300 | * configure: Re-generate. | |
13301 | ||
58df732b SM |
13302 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
13303 | ||
13304 | * acinclude: Update warning.m4 path. | |
13305 | * warning.m4: Move to gdbsupport. | |
13306 | ||
da5bd37e TT |
13307 | 2020-02-11 Tom Tromey <tromey@adacore.com> |
13308 | ||
13309 | * remote.c (remote_console_output): Update. | |
13310 | * printcmd.c (printf_command): Update. | |
13311 | * event-loop.c (gdb_wait_for_event): Update. | |
13312 | * linux-nat.c (sigchld_handler): Update. | |
13313 | * remote-sim.c (gdb_os_write_stdout): Update. | |
13314 | (gdb_os_flush_stdout): Update. | |
13315 | (gdb_os_flush_stderr): Update. | |
13316 | (gdb_os_write_stderr): Update. | |
13317 | * exceptions.c (print_exception): Update. | |
13318 | * remote-fileio.c (remote_fileio_func_read): Update. | |
13319 | (remote_fileio_func_write): Update. | |
13320 | * tui/tui.c (tui_enable): Update. | |
13321 | * tui/tui-interp.c (tui_interp::init): Update. | |
13322 | * utils.c (init_page_info): Update. | |
13323 | (putchar_unfiltered, fputc_unfiltered): Update. | |
13324 | (gdb_flush): Update. | |
13325 | (emit_style_escape): Update. | |
13326 | (flush_wrap_buffer, fputs_maybe_filtered): Update. | |
13327 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) | |
13328 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. | |
13329 | (stderr_file::write): Update. | |
13330 | (stderr_file::puts): Update. | |
13331 | * ui-file.h (ui_file_isatty, ui_file_write) | |
13332 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) | |
13333 | (ui_file_puts): Don't declare. | |
13334 | ||
85f0dd3c TV |
13335 | 2020-02-10 Tom de Vries <tdevries@suse.de> |
13336 | ||
13337 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL | |
13338 | sentinel to char *. | |
13339 | ||
2e927613 TV |
13340 | 2020-02-09 Tom de Vries <tdevries@suse.de> |
13341 | ||
13342 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to | |
13343 | filename if it matches "<artificial>". | |
13344 | ||
6bafc845 HD |
13345 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
13346 | ||
13347 | * windows-tdep.c (struct enum_value_name): New struct. | |
13348 | (create_enum): New function. | |
13349 | (windows_get_siginfo_type): Create and use enum types. | |
13350 | ||
7928d571 HD |
13351 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
13352 | ||
13353 | * NEWS: Mention $_siginfo support for Windows. | |
13354 | * windows-nat.c (handle_exception): Set siginfo_er. | |
13355 | (windows_nat_target::mourn_inferior): Reset siginfo_er. | |
13356 | (windows_xfer_siginfo): New function. | |
13357 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. | |
13358 | * windows-tdep.c (struct windows_gdbarch_data): New struct. | |
13359 | (init_windows_gdbarch_data): New function. | |
13360 | (get_windows_gdbarch_data): New function. | |
13361 | (windows_get_siginfo_type): New function. | |
13362 | (windows_init_abi): Register windows_get_siginfo_type. | |
13363 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. | |
13364 | ||
6751ebae TT |
13365 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13366 | ||
13367 | * dwarf2/read.c (class cutu_reader) <cutu_reader, | |
13368 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. | |
13369 | <keep>: Declare method. | |
13370 | <m_keep>: Remove member. | |
13371 | <~cutu_reader>: Remove. | |
13372 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
13373 | (cutu_reader::cutu_reader): Update. | |
13374 | (cutu_reader::keep): Rename from ~cutu_reader. | |
13375 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
13376 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
13377 | (load_full_comp_unit, dwarf2_read_addr_index) | |
13378 | (read_signatured_type): Update. | |
13379 | ||
135f5437 TT |
13380 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13381 | ||
13382 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove | |
13383 | "want_partial_unit" parameter. | |
13384 | (process_psymtab_comp_unit): Change want_partial_unit to bool. | |
13385 | Inline check for DW_TAG_partial_unit. | |
13386 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. | |
13387 | ||
9f66ff1c TT |
13388 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13389 | ||
13390 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to | |
13391 | read.c. | |
13392 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from | |
13393 | read.c. | |
13394 | ||
c8a7a66f TT |
13395 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13396 | ||
13397 | * dwarf2/read.c (read_address): Move to comp-unit.c. | |
13398 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
13399 | (read_attribute_value, dwarf_decode_lines_1) | |
13400 | (var_decode_location, decode_locdesc): Update. | |
13401 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from | |
13402 | read.c. Remove "cu" parameter. | |
13403 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New | |
13404 | method. | |
13405 | ||
8266302d TT |
13406 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13407 | ||
13408 | * dwarf2/read.c (read_attribute_value, read_indirect_string) | |
13409 | (read_indirect_line_string): Update. | |
13410 | * dwarf2/comp-unit.c (read_offset): Remove. | |
13411 | (read_comp_unit_head): Update. | |
13412 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New | |
13413 | method. | |
13414 | (read_offset): Don't declare. | |
13415 | ||
4057dfde TT |
13416 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13417 | ||
13418 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. | |
13419 | * dwarf2/read.c (struct comp_unit_head): Move to | |
13420 | dwarf2/comp-unit.h. | |
13421 | (enum class rcuh_kind): Move to comp-unit.h. | |
13422 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. | |
13423 | (read_comp_unit_head, error_check_comp_unit_head) | |
13424 | (read_and_check_comp_unit_head): Move to comp-unit.c. | |
13425 | (read_offset, dwarf_unit_type_name): Likewise. | |
13426 | (create_debug_type_hash_table, read_cutu_die_from_dwo) | |
13427 | (cutu_reader::cutu_reader, read_call_site_scope) | |
13428 | (find_partial_die, follow_die_offset): Update. | |
13429 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. | |
13430 | ||
24aa364d TT |
13431 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13432 | ||
13433 | * dwarf2/read.c (read_offset_1): Move to leb.c. | |
13434 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) | |
13435 | (dwarf_decode_macro_bytes): Update. | |
13436 | * dwarf2/leb.c (read_offset): Rename; move from read.c. | |
13437 | * dwarf2/leb.h (read_offset): Declare. | |
13438 | ||
2c7d5afc TT |
13439 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13440 | ||
13441 | * dwarf2/read.c (dwarf2_section_size): Remove. | |
13442 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): | |
13443 | Update. | |
13444 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. | |
13445 | ||
4075cb26 TT |
13446 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13447 | ||
13448 | * dwarf2/read.c (read_initial_length): Move to leb.c. | |
13449 | * dwarf2/leb.h (read_initial_length): Declare. | |
13450 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add | |
13451 | handle_nonstd parameter. | |
13452 | * dwarf2/frame.c (read_initial_length): Remove. | |
13453 | (decode_frame_entry_1): Update. | |
13454 | ||
09ba997f TT |
13455 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13456 | ||
13457 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
13458 | (dwarf_evaluate_loc_desc::get_tls_address) | |
13459 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
13460 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) | |
13461 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) | |
13462 | (dwarf2_compile_property_to_c) | |
13463 | (dwarf2_loc_desc_get_symbol_read_needs) | |
13464 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) | |
13465 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) | |
13466 | (loclist_describe_location, loclist_tracepoint_var_ref) | |
13467 | (loclist_generate_c_location): Update. | |
13468 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. | |
13469 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) | |
13470 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) | |
13471 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. | |
13472 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) | |
13473 | (dwarf2_per_cu_data::addr_size) | |
13474 | (dwarf2_per_cu_data::ref_addr_size) | |
13475 | (dwarf2_per_cu_data::text_offset) | |
13476 | (dwarf2_per_cu_data::addr_type): Now methods. | |
13477 | (per_cu_header_read_in): Make per_cu "const". | |
13478 | (dwarf2_version): Remove. | |
13479 | (dwarf2_per_cu_data::int_type): Now a method. | |
13480 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. | |
13481 | (set_die_type, read_array_type, read_subrange_index_type) | |
13482 | (read_tag_string_type, read_subrange_type): Update. | |
13483 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, | |
13484 | offset_size, ref_addr_size, text_offset, addr_type, version, | |
13485 | objfile, int_type, addr_sized_int_type>: Declare methods. | |
13486 | ||
96c738c0 TT |
13487 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13488 | ||
13489 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: | |
13490 | Move earlier. | |
13491 | ||
8fdd972c TT |
13492 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13493 | ||
13494 | * dwarf2/read.h (dwarf_line_debug): Declare. | |
13495 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. | |
13496 | * dwarf2/read.c: Move line_header code to new files. | |
13497 | (dwarf_line_debug): No longer static. | |
13498 | * dwarf2/line-header.c: New file. | |
13499 | * dwarf2/line-header.h: New file. | |
13500 | ||
03075812 TT |
13501 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13502 | ||
13503 | * dwarf2/read.c (struct line_header) <file_full_name, | |
13504 | file_file_name>: Return unique_xmalloc_ptr. | |
13505 | (line_header::file_file_name): Update. | |
13506 | (line_header::file_full_name): Update. | |
13507 | (dw2_get_file_names_reader): Update. | |
13508 | (macro_start_file): Update. | |
13509 | ||
bb822404 TT |
13510 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13511 | ||
13512 | * dwarf2/read.c (struct line_header) <file_full_name, | |
13513 | file_file_name>: Declare methods. | |
13514 | (dw2_get_file_names_reader): Update. | |
13515 | (file_file_name): Now a method. | |
13516 | (file_full_name): Likewise. | |
13517 | (macro_start_file): Update. | |
13518 | ||
009b64fc TT |
13519 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13520 | ||
13521 | * dwarf2/read.c (dwarf_always_disassemble) | |
13522 | (show_dwarf_always_disassemble): Move to loc.c. | |
13523 | (_initialize_dwarf2_read): Move "always-disassemble" registration | |
13524 | to loc.c. | |
13525 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. | |
13526 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now | |
13527 | static. | |
13528 | (show_dwarf_always_disassemble): Move from read.c. | |
13529 | (_initialize_dwarf2loc): Move always-disassemble from read.c. | |
13530 | ||
5895093f TT |
13531 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13532 | ||
13533 | * dwarf2/read.c (~dwarf2_per_objfile): Update. | |
13534 | (create_quick_file_names_table): Return htab_up. | |
13535 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): | |
13536 | Update. | |
13537 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
13538 | <quick_file_names_table>: Now htab_up. | |
13539 | ||
b3b32279 TT |
13540 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13541 | ||
13542 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. | |
13543 | ||
1d33d811 TT |
13544 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13545 | ||
13546 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. | |
13547 | Rewrite. | |
13548 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. | |
13549 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. | |
13550 | (abbrev_table::abbrev_table): No longer inline. | |
13551 | (ABBREV_HASH_SIZE): Remove. | |
13552 | (abbrev_table::m_abbrevs): Now an htab_up. | |
13553 | ||
86de1d91 TT |
13554 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13555 | ||
13556 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. | |
13557 | (cutu_reader): Update. | |
13558 | (build_type_psymtabs_1): Update. | |
13559 | * dwarf2/abbrev.c (abbrev_table::read): Rename. | |
13560 | (abbrev_table::alloc_abbrev): Update. | |
13561 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. | |
13562 | (abbrev_table::read): New static method, renamed from | |
13563 | abbrev_table_read_table. | |
13564 | (abbrev_table::alloc_abbrev) | |
13565 | (abbrev_table::add_abbrev): Now private. | |
13566 | (abbrev_table::abbrev_table): Now private. | |
13567 | (abbrev_table::m_abbrev_obstack): Now private. Rename. | |
13568 | ||
0335378b TT |
13569 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13570 | ||
13571 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. | |
13572 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now | |
13573 | htab_up. | |
13574 | ||
48b490f2 TT |
13575 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13576 | ||
13577 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now | |
13578 | htab_up. | |
13579 | (lookup_dwo_unit_in_dwp): Update. | |
13580 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate | |
13581 | on obstack. | |
13582 | ||
bc68fb19 TT |
13583 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13584 | ||
13585 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on | |
13586 | obstack. | |
13587 | ||
d15acc42 TT |
13588 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13589 | ||
13590 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete | |
13591 | line_header_hash. | |
13592 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. | |
13593 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: | |
13594 | Change type to htab_up. | |
13595 | ||
eaa5fa8b TT |
13596 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13597 | ||
13598 | * dwarf2/read.c (allocate_type_unit_groups_table): Return | |
13599 | htab_up. Don't allocate on obstack. | |
13600 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. | |
13601 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: | |
13602 | Change type to htab_up. | |
13603 | ||
b0b6a987 TT |
13604 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13605 | ||
13606 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: | |
13607 | Change type to htab_up. | |
13608 | * dwarf2/read.c (create_signatured_type_table_from_index) | |
13609 | (create_signatured_type_table_from_debug_names) | |
13610 | (create_all_type_units, add_type_unit) | |
13611 | (lookup_dwo_signatured_type, lookup_signatured_type) | |
13612 | (process_skeletonless_type_unit): Update. | |
13613 | (create_debug_type_hash_table, create_debug_types_hash_table): | |
13614 | Change type of types_htab. | |
13615 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return | |
13616 | htab_up. Don't allocate on obstack. | |
13617 | (create_cus_hash_table): Change type of cus_htab parameter. | |
13618 | (struct dwo_file) <cus, tus>: Now htab_up. | |
13619 | (lookup_dwo_signatured_type, lookup_dwo_cutu) | |
13620 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) | |
13621 | (queue_and_load_all_dwo_tus): Update. | |
13622 | * dwarf2/index-write.c (write_gdbindex): Update. | |
13623 | (write_debug_names): Update. | |
13624 | ||
39856def TT |
13625 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13626 | ||
13627 | * dwarf2/read.h (struct dwarf2_queue_item): Move from | |
13628 | dwarf2/read.c. Remove "next" member. Add constructor ntad | |
13629 | destructor. | |
13630 | (struct dwarf2_per_objfile) <queue>: New member. | |
13631 | * dwarf2/read.c (struct dwarf2_queue_item): Move to | |
13632 | dwarf2/read.h. | |
13633 | (dwarf2_queue, dwarf2_queue_tail): Remove. | |
13634 | (class dwarf2_queue_guard): Add parameter to constructor. Use | |
13635 | DISABLE_COPY_AND_ASSIGN. | |
13636 | <m_per_objfile>: New member. | |
13637 | <~dwarf2_queue_guard>: Rewrite. | |
13638 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): | |
13639 | Update. | |
13640 | (~dwarf2_queue_item): New. | |
13641 | ||
3e225074 TT |
13642 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13643 | ||
13644 | * dwarf2/read.c (struct die_info) <has_children>: New member. | |
13645 | (dw2_get_file_names_reader): Remove has_children. | |
13646 | (dw2_get_file_names): Update. | |
13647 | (read_cutu_die_from_dwo): Remove has_children. | |
13648 | (cutu_reader::init_tu_and_read_dwo_dies) | |
13649 | (cutu_reader::cutu_reader): Update. | |
13650 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): | |
13651 | Remove has_children. | |
13652 | (build_type_psymtabs_1, process_skeletonless_type_unit) | |
13653 | (load_partial_comp_unit, load_full_comp_unit): Update. | |
13654 | (create_dwo_cu_reader): Remove has_children. | |
13655 | (create_cus_hash_table, read_die_and_children): Update. | |
13656 | (read_full_die_1,read_full_die): Remove has_children. | |
13657 | (read_signatured_type): Update. | |
13658 | (class cutu_reader) <has_children>: Remove. | |
13659 | ||
82ca8957 TT |
13660 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13661 | ||
13662 | * dwarf2/expr.c: Rename from dwarf2expr.c. | |
13663 | * dwarf2/expr.h: Rename from dwarf2expr.h. | |
13664 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. | |
13665 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. | |
13666 | * dwarf2/frame.c: Rename from dwarf2-frame.c. | |
13667 | * dwarf2/frame.h: Rename from dwarf2-frame.h. | |
13668 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. | |
13669 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. | |
13670 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. | |
13671 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. | |
13672 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. | |
13673 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. | |
13674 | * dwarf2/loc.c: Rename from dwarf2loc.c. | |
13675 | * dwarf2/loc.h: Rename from dwarf2loc.h. | |
13676 | * dwarf2/read.c: Rename from dwarf2read.c. | |
13677 | * dwarf2/read.h: Rename from dwarf2read.h. | |
13678 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, | |
13679 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, | |
13680 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, | |
13681 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, | |
13682 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, | |
13683 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, | |
13684 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, | |
13685 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, | |
13686 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, | |
13687 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, | |
13688 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, | |
13689 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, | |
13690 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: | |
13691 | Update. | |
13692 | * Makefile.in (COMMON_SFILES): Update. | |
13693 | (HFILES_NO_SRCDIR): Update. | |
13694 | ||
9e35d499 TT |
13695 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13696 | ||
13697 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. | |
13698 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. | |
13699 | ||
1eba2311 TT |
13700 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13701 | ||
13702 | * dwarf2read.h (struct die_info): Don't declare. | |
13703 | ||
e41c2da2 TT |
13704 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13705 | ||
13706 | * dwarf2read.h (die_info_ptr): Remove typedef. | |
13707 | ||
4fc6c0d5 TT |
13708 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13709 | ||
13710 | * dwarf2read.c (read_call_site_scope) | |
13711 | (handle_data_member_location, dwarf2_add_member_fn) | |
13712 | (mark_common_block_symbol_computed, read_common_block) | |
13713 | (attr_to_dynamic_prop, partial_die_info::read) | |
13714 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) | |
13715 | (dwarf2_symbol_mark_computed, set_die_type): Update. | |
13716 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare | |
13717 | method. | |
13718 | (attr_form_is_block): Don't declare. | |
13719 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. | |
13720 | ||
cd6c91b4 TT |
13721 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13722 | ||
13723 | * dwarf2read.c (dwarf2_find_base_address, ) | |
13724 | (read_call_site_scope, rust_containing_type) | |
13725 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
13726 | (handle_data_member_location, dwarf2_add_member_fn) | |
13727 | (get_alignment, read_structure_type, process_structure_scope) | |
13728 | (mark_common_block_symbol_computed, read_common_block) | |
13729 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) | |
13730 | (partial_die_info::read, read_attribute_value, new_symbol) | |
13731 | (lookup_die_type, dwarf2_get_ref_die_offset) | |
13732 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) | |
13733 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) | |
13734 | (dwarf2_symbol_mark_computed): Update. | |
13735 | * dwarf2/attribute.h (struct attribute) <value_as_address, | |
13736 | form_is_section_offset, form_is_constant, form_is_ref>: Declare | |
13737 | methods. | |
13738 | (value_as_address, attr_form_is_section_offset) | |
13739 | (attr_form_is_constant, attr_form_is_ref): Don't declare. | |
13740 | * dwarf2/attribute.c (attribute::value_as_address) | |
13741 | (attribute::form_is_section_offset, attribute::form_is_constant) | |
13742 | (attribute::form_is_ref): Now methods. | |
13743 | ||
162dce55 TT |
13744 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13745 | ||
13746 | * dwarf2read.c (struct attribute, DW_STRING) | |
13747 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) | |
13748 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) | |
13749 | (attr_form_is_block, attr_form_is_section_offset) | |
13750 | (attr_form_is_constant, attr_form_is_ref): Move. | |
13751 | * dwarf2/attribute.h: New file. | |
13752 | * dwarf2/attribute.c: New file, from dwarf2read.c. | |
13753 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. | |
13754 | ||
3054dd54 TT |
13755 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13756 | ||
13757 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) | |
13758 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): | |
13759 | Move. | |
13760 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. | |
13761 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) | |
13762 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to | |
13763 | abbrev.c. | |
13764 | * dwarf2/abbrev.h: New file. | |
13765 | * dwarf2/abbrev.c: New file, from dwarf2read.c. | |
13766 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. | |
13767 | ||
96b79293 TT |
13768 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13769 | ||
13770 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) | |
13771 | (dwarf2_section_size, dwarf2_get_section_info) | |
13772 | (create_signatured_type_table_from_debug_names) | |
13773 | (create_addrmap_from_aranges, read_debug_names_from_section) | |
13774 | (get_gdb_index_contents_from_section, read_comp_unit_head) | |
13775 | (error_check_comp_unit_head, read_abbrev_offset) | |
13776 | (create_debug_type_hash_table, init_cu_die_reader) | |
13777 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) | |
13778 | (read_comp_units_from_section, create_cus_hash_table) | |
13779 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
13780 | (create_dwp_v2_section, dwarf2_rnglists_process) | |
13781 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) | |
13782 | (abbrev_table_read_table, read_indirect_string_at_offset_from) | |
13783 | (read_indirect_string_from_dwz, read_addr_index_1) | |
13784 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) | |
13785 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
13786 | (fill_in_loclist_baton): Update. | |
13787 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, | |
13788 | get_containing_section, get_bfd_owner, get_bfd_section, | |
13789 | get_file_name, get_id, get_flags, empty, read>: Declare methods. | |
13790 | (dwarf2_read_section, get_section_name, get_section_file_name) | |
13791 | (get_containing_section, get_section_bfd_owner) | |
13792 | (get_section_bfd_section, get_section_name, get_section_file_name) | |
13793 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't | |
13794 | declare. | |
13795 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) | |
13796 | (dwarf2_section_info::get_bfd_owner) | |
13797 | (dwarf2_section_info::get_bfd_section) | |
13798 | (dwarf2_section_info::get_name) | |
13799 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) | |
13800 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) | |
13801 | (dwarf2_section_info::read): Now methods. | |
13802 | * dwarf-index-write.c (class debug_names): Update. | |
13803 | ||
2c86cff9 TT |
13804 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13805 | ||
13806 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): | |
13807 | Move to dwarf2/section.h. | |
13808 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) | |
13809 | (get_section_bfd_section, get_section_name) | |
13810 | (get_section_file_name, get_section_id, get_section_flags) | |
13811 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to | |
13812 | dwarf2/section.c. | |
13813 | * dwarf2/section.h: New file. | |
13814 | * dwarf2/section.c: New file, from dwarf2read.c. | |
13815 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. | |
13816 | ||
f4382c45 TT |
13817 | 2020-02-08 Tom Tromey <tom@tromey.com> |
13818 | ||
13819 | * dwarf2read.h (read_unsigned_leb128): Don't declare. | |
13820 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
13821 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) | |
13822 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. | |
13823 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. | |
13824 | * dwarf2/leb.h: New file, from dwarf2read.c. | |
13825 | * dwarf2/leb.c: New file, from dwarf2read.c. | |
13826 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): | |
13827 | Remove. | |
13828 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. | |
13829 | (COMMON_SFILES): Add dwarf2/leb.c. | |
13830 | ||
01840b7a JB |
13831 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> |
13832 | ||
13833 | GDB 9.1 released. | |
13834 | ||
dfcb27e4 IB |
13835 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
13836 | ||
13837 | PR gdb/25190: | |
aac66a4c SM |
13838 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. |
13839 | * gdb/remote.c (remote_console_output): Update. | |
13840 | * gdb/ui-file.c (fputs_unfiltered): Rename to... | |
13841 | (ui_file_puts): ...this. | |
13842 | * gdb/ui-file.h (ui_file_puts): Add declaration. | |
13843 | * gdb/utils.c (emit_style_escape): Update. | |
13844 | (flush_wrap_buffer): Update. | |
13845 | (fputs_maybe_filtered): Update. | |
13846 | (fputs_unfiltered): Add function. | |
dfcb27e4 | 13847 | |
faa17681 IB |
13848 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
13849 | ||
aac66a4c SM |
13850 | * gdb/event-loop.c (gdb_wait_for_event): Update. |
13851 | * gdb/printcmd.c (printf_command): Update. | |
13852 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. | |
13853 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. | |
13854 | (gdb_os_flush_stderr): Update. | |
13855 | * gdb/remote.c (remote_console_output): Update. | |
13856 | * gdb/ui-file.c (gdb_flush): Rename to... | |
13857 | (ui_file_flush): ...this. | |
13858 | (stderr_file::write): Update. | |
13859 | (stderr_file::puts): Update. | |
13860 | * gdb/ui-file.h (gdb_flush): Rename to... | |
13861 | (ui_file_flush): ...this. | |
13862 | * gdb/utils.c (gdb_flush): Add function. | |
13863 | * gdb/utils.h (gdb_flush): Add declaration. | |
faa17681 | 13864 | |
5abbbe1d TT |
13865 | 2020-02-07 Tom Tromey <tromey@adacore.com> |
13866 | ||
13867 | PR breakpoints/24915: | |
13868 | * source.c (find_and_open_source): Do not check basenames_may_differ. | |
13869 | ||
919adfe8 TT |
13870 | 2020-02-07 Tom Tromey <tom@tromey.com> |
13871 | ||
13872 | * README: Update gdbserver documentation. | |
13873 | * gdbserver: Move to top level. | |
13874 | * configure.tgt (build_gdbserver): Remove. | |
13875 | * configure.ac: Remove --enable-gdbserver. | |
13876 | * configure: Rebuild. | |
13877 | * Makefile.in (distclean): Don't mention gdbserver. | |
13878 | ||
1d5d29e7 SV |
13879 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
13880 | ||
13881 | * source-cache.c (source_cache::ensure): Surround | |
13882 | get_plain_source_lines with a try/catch. | |
13883 | (source_cache::get_line_charpos): Get rid of try/catch | |
13884 | and only check for the return value of "ensure". | |
13885 | * tui/tui-source.c (tui_source_window::set_contents): | |
13886 | Simplify "nlines" calculation. | |
13887 | ||
6eb1129c SV |
13888 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
13889 | ||
13890 | * MAINTAINERS (Write After Approval): Add myself. | |
13891 | ||
c6a42d11 CB |
13892 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
13893 | ||
13894 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class | |
13895 | function call. | |
13896 | ||
c8ecdda6 CB |
13897 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
13898 | ||
13899 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. | |
13900 | ||
f6480e70 MR |
13901 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> |
13902 | ||
13903 | * nat/riscv-linux-tdesc.h: New file. | |
13904 | * nat/riscv-linux-tdesc.c: New file, taking code from... | |
13905 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
13906 | ... here. | |
13907 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to | |
13908 | NATDEPFILES. | |
13909 | ||
dcc9fbc6 AB |
13910 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> |
13911 | ||
13912 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that | |
13913 | we don't set the fake simulator ptid to the null_ptid. | |
13914 | ||
719546c4 SM |
13915 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> |
13916 | ||
13917 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. | |
13918 | * gdbthread.h (class thread_info) <resumed>: Likewise. | |
13919 | * infrun.c (resume_1): Likewise. | |
13920 | (proceed): Likewise. | |
13921 | (infrun_thread_stop_requested): Likewise. | |
13922 | (stop_all_threads): Likewise. | |
13923 | (handle_inferior_event): Likewise. | |
13924 | (restart_threads): Likewise. | |
13925 | (finish_step_over): Likewise. | |
13926 | (keep_going_stepped_thread): Likewise. | |
13927 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. | |
13928 | (linux_handle_extended_wait): Likewise. | |
13929 | * record-btrace.c (get_thread_current_frame_id): Likewise. | |
13930 | * record-full.c (record_full_wait_1): Likewise. | |
13931 | * remote.c (remote_target::process_initial_stop_replies): Likewise. | |
13932 | * target.c (target_resume): Likewise. | |
13933 | * thread.c (set_running_thread): Likewise. | |
13934 | ||
e409c542 AKS |
13935 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
13936 | ||
13937 | * f-valprint.c (f77_print_array_1): Changed datatype of index | |
13938 | variable to LONGEST from int to enable it to contain bound | |
13939 | values correctly. | |
13940 | ||
ee98c0da MR |
13941 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> |
13942 | ||
13943 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. | |
13944 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer | |
13945 | offsets according to FLEN determined. | |
13946 | (riscv_linux_nat_target::read_description): Determine FLEN | |
13947 | dynamically. | |
13948 | (riscv_linux_nat_target::fetch_registers): Size regset buffer | |
13949 | according to FLEN determined. | |
13950 | (riscv_linux_nat_target::store_registers): Likewise. | |
13951 | ||
aa66aac4 SV |
13952 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
13953 | ||
13954 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
13955 | when reg->group is empty and reggroup is not. | |
13956 | ||
fd9faca8 TT |
13957 | 2020-01-31 Tom Tromey <tromey@adacore.com> |
13958 | ||
13959 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): | |
13960 | Call beneath target's mourn_inferior after unpushing. | |
13961 | ||
42330a68 AB |
13962 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
13963 | ||
13964 | PR tui/9765 | |
13965 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't | |
13966 | have enough lines to fill the screen, still return the lowest | |
13967 | address we found. | |
13968 | ||
7a27a45b AB |
13969 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
13970 | ||
13971 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', | |
13972 | '-', '<', and '>' commands. | |
13973 | ||
c47f70e2 PA |
13974 | 2020-01-29 Pedro Alves <palves@redhat.com> |
13975 | Sergio Durigan Junior <sergiodj@redhat.com> | |
13976 | ||
13977 | * infcmd.c (construct_inferior_arguments): Assert that | |
13978 | 'argc' is greater than 0. | |
13979 | ||
5133a315 LM |
13980 | 2020-01-29 Luis Machado <luis.machado@linaro.org> |
13981 | ||
13982 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. | |
13983 | (BRK_INSN_MASK): Define to 0xd4200000. | |
13984 | (aarch64_program_breakpoint_here_p): New function. | |
13985 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. | |
13986 | * arch-utils.c (default_program_breakpoint_here_p): Moved from | |
13987 | breakpoint.c. | |
13988 | * arch-utils.h (default_program_breakpoint_here_p): Moved from | |
13989 | breakpoint.h | |
13990 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and | |
13991 | call gdbarch_program_breakpoint_here_p. | |
13992 | (program_breakpoint_here): Moved to arch-utils.c, renamed to | |
13993 | default_program_breakpoint_here_p, changed return type to bool and | |
13994 | simplified. | |
13995 | * breakpoint.h (program_breakpoint_here): Moved prototype to | |
13996 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed | |
13997 | return type to bool. | |
13998 | * gdbarch.c: Regenerate. | |
13999 | * gdbarch.h: Regenerate. | |
14000 | * gdbarch.sh (program_breakpoint_here_p): New method. | |
14001 | * infrun.c (handle_signal_stop): Call | |
14002 | gdbarch_program_breakpoint_here_p. | |
14003 | ||
168f8c6b TT |
14004 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14005 | ||
14006 | * ctfread.c (struct ctf_fp_info): Reindent. | |
14007 | (_initialize_ctfread): Remove. | |
14008 | ||
128a391f TT |
14009 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14010 | ||
14011 | * psymtab.c (partial_map_expand_apply) | |
14012 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
14013 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
14014 | (psym_print_stats, psym_expand_symtabs_for_function) | |
14015 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
14016 | (psym_expand_symtabs_matching) | |
14017 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
14018 | (maintenance_check_psymtabs): Use new methods. | |
14019 | * psympriv.h (struct partial_symtab) <readin_p, | |
14020 | get_compunit_symtab>: New methods. | |
14021 | <readin, compunit_symtab>: Remove members. | |
14022 | (struct standard_psymtab): New. | |
14023 | (struct legacy_psymtab): Derive from standard_psymtab. | |
14024 | * dwarf2read.h (struct dwarf2_psymtab): Derive from | |
14025 | standard_psymtab. | |
14026 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. | |
14027 | ||
0494dbec TT |
14028 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14029 | ||
14030 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call | |
14031 | read_dependencies. Add assert. | |
14032 | * psymtab.c (partial_symtab::read_dependencies): New method. | |
14033 | * psympriv.h (struct partial_symtab) <read_dependencies>: New | |
14034 | method. | |
14035 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. | |
14036 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call | |
14037 | read_dependencies. | |
14038 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. | |
14039 | Add assert. | |
14040 | ||
8566b89b TT |
14041 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14042 | ||
14043 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. | |
14044 | Call expand_psymtab. | |
14045 | (xcoff_read_symtab): Call expand_psymtab. | |
14046 | (xcoff_start_psymtab, xcoff_end_psymtab): Set | |
14047 | legacy_expand_psymtab. | |
14048 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New | |
14049 | method. | |
14050 | (struct legacy_psymtab) <expand_psymtab>: Implement. | |
14051 | <legacy_expand_psymtab>: New member. | |
14052 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. | |
14053 | (parse_partial_symbols): Set legacy_expand_psymtab. | |
14054 | (psymtab_to_symtab_1): Change argument order. Call | |
14055 | expand_psymtab. | |
14056 | (new_psymtab): Set legacy_expand_psymtab. | |
14057 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. | |
14058 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call | |
14059 | expand_psymtab. | |
14060 | (dwarf2_psymtab::expand_psymtab): Rename from | |
14061 | psymtab_to_symtab_1. Call expand_psymtab. | |
14062 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. | |
14063 | (dbx_end_psymtab): Likewise. | |
14064 | (dbx_psymtab_to_symtab_1): Change argument order. Call | |
14065 | expand_psymtab. | |
14066 | (dbx_read_symtab): Call expand_psymtab. | |
14067 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. | |
14068 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. | |
14069 | (ctf_psymtab::read_symtab): Call expand_psymtab. | |
14070 | ||
077cbab2 TT |
14071 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14072 | ||
14073 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. | |
14074 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" | |
14075 | messages. | |
14076 | * mdebugread.c (mdebug_read_symtab): Remove prints. | |
14077 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add | |
14078 | assert. | |
14079 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. | |
14080 | ||
891813be TT |
14081 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14082 | ||
14083 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) | |
14084 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) | |
14085 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use | |
14086 | legacy_symtab. | |
14087 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. | |
14088 | * psymtab.c (psymtab_to_symtab): Call method. | |
14089 | (dump_psymtab): Update. | |
14090 | * psympriv.h (struct partial_symtab): Add virtual destructor. | |
14091 | <read_symtab>: New method. | |
14092 | (struct legacy_symtab): New. | |
14093 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. | |
14094 | (struct pst_map) <pst>: Now a legacy_psymtab. | |
14095 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) | |
14096 | (new_psymtab): Use legacy_psymtab. | |
14097 | * dwarf2read.h (struct dwarf2_psymtab): New. | |
14098 | (struct dwarf2_per_cu_data) <psymtab>: Use it. | |
14099 | * dwarf2read.c (dwarf2_create_include_psymtab) | |
14100 | (dwarf2_build_include_psymtabs, create_type_unit_group) | |
14101 | (create_partial_symtab, process_psymtab_comp_unit_reader) | |
14102 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) | |
14103 | (set_partial_user): Use dwarf2_psymtab. | |
14104 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. | |
14105 | (psymtab_to_symtab_1, process_full_comp_unit) | |
14106 | (process_full_type_unit, dwarf2_ranges_read) | |
14107 | (dwarf2_get_pc_bounds, psymtab_include_file_name) | |
14108 | (dwarf_decode_lines): Use dwarf2_psymtab. | |
14109 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. | |
14110 | (add_address_entry_worker, write_one_signatured_type) | |
14111 | (recursively_count_psymbols, recursively_write_psymbols) | |
14112 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) | |
14113 | (write_debug_names): Likewise. | |
14114 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. | |
14115 | <pst>: Now a legacy_psymtab. | |
14116 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. | |
14117 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) | |
14118 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. | |
14119 | * ctfread.c (struct ctf_psymtab): New. | |
14120 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a | |
14121 | ctf_psymtab. | |
14122 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. | |
14123 | (create_partial_symtab): Return a ctf_psymtab. | |
14124 | (scan_partial_symbols): Update. | |
14125 | ||
c3693a1d TT |
14126 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14127 | ||
14128 | * xcoffread.c (xcoff_start_psymtab): Use new. | |
14129 | * psymtab.c (partial_symtab::partial_symtab): New constructor, | |
14130 | renamed from start_psymtab_common. | |
14131 | * psympriv.h (struct partial_symtab): Add new constructor. | |
14132 | (start_psymtab_common): Don't declare. | |
14133 | * mdebugread.c (parse_partial_symbols): Use new. | |
14134 | * dwarf2read.c (create_partial_symtab): Use new. | |
14135 | * dbxread.c (start_psymtab): Use new. | |
14136 | * ctfread.c (create_partial_symtab): Use new. | |
14137 | ||
32caafd0 TT |
14138 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14139 | ||
14140 | * xcoffread.c (xcoff_end_psymtab): Use new. | |
14141 | * psymtab.c (start_psymtab_common): Use new. | |
14142 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. | |
14143 | Update. | |
14144 | * psympriv.h (struct partial_symtab): Add parameters to | |
14145 | constructor. Don't inline. | |
14146 | (allocate_psymtab): Don't declare. | |
14147 | * mdebugread.c (new_psymtab): Use new. | |
14148 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. | |
14149 | * dbxread.c (dbx_end_psymtab): Use new. | |
14150 | ||
abaa2f23 TT |
14151 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14152 | ||
14153 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from | |
14154 | allocate_psymtab. Update documentation. | |
14155 | * psymtab.c (psymtab_storage::install_psymtab): Rename from | |
14156 | allocate_psymtab. Do not use new. | |
14157 | (allocate_psymtab): Use new. Update. | |
14158 | ||
6d94535f TT |
14159 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14160 | ||
14161 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
14162 | * psymtab.c (psym_print_stats): Update. | |
14163 | * psympriv.h (struct partial_symtab) <readin, | |
14164 | psymtabs_addrmap_supported, anonymous>: Now bool. | |
14165 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
14166 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) | |
14167 | (build_type_psymtabs_reader, psymtab_to_symtab_1) | |
14168 | (process_full_comp_unit, process_full_type_unit): Update. | |
14169 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
14170 | * ctfread.c (psymtab_to_symtab): Update. | |
14171 | ||
6f17252b TT |
14172 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14173 | ||
14174 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. | |
14175 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. | |
14176 | * psymtab.c (psymtab_storage): Delete psymtabs. | |
14177 | (psymtab_storage::allocate_psymtab): Use new. | |
14178 | (psymtab_storage::discard_psymtab): Use delete. | |
14179 | * psympriv.h (struct partial_symtab): Add constructor and | |
14180 | initializers. | |
14181 | ||
f6f1cebc TT |
14182 | 2020-01-26 Tom Tromey <tom@tromey.com> |
14183 | ||
14184 | * machoread.c: Do not include psympriv.h. | |
14185 | ||
e47e48f6 PW |
14186 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
14187 | ||
14188 | * NEWS: Mention the new option and the set/show commands. | |
14189 | ||
a2fedca9 PW |
14190 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
14191 | ||
14192 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) | |
14193 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) | |
14194 | (validate_exec_file): New variables, enums, functions. | |
14195 | (exec_file_locate_attach, print_section_info): Style the filenames. | |
14196 | (_initialize_exec): Install show_exec_file_mismatch_command and | |
14197 | set_exec_file_mismatch_command. | |
14198 | * gdbcore.h (validate_exec_file): Declare. | |
14199 | * infcmd.c (attach_command): Call validate_exec_file. | |
14200 | * remote.c ( remote_target::remote_add_inferior): Likewise. | |
14201 | ||
7ffa82e1 AB |
14202 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
14203 | ||
14204 | * frame.c (find_frame_sal): Move call to get_next_frame into more | |
14205 | inner scope. | |
14206 | * inline-frame.c (inilne_state) <inline_state>: Update argument | |
14207 | types. | |
14208 | (inilne_state) <skipped_symbol>: Rename to... | |
14209 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. | |
14210 | (skip_inline_frames): Build vector of skipped symbols and use this | |
14211 | to reate the inline_state. | |
14212 | (inline_skipped_symbol): Add a comment and some assertions, fetch | |
14213 | skipped symbol from the list. | |
14214 | ||
3d92a3e3 AB |
14215 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
14216 | ||
14217 | * buildsym.c (lte_is_less_than): Delete. | |
14218 | (buildsym_compunit::end_symtab_with_blockvector): Create local | |
14219 | lambda function to sort line table entries, and use | |
14220 | std::stable_sort instead of std::sort. | |
14221 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence | |
14222 | markers when looking for a previous line. | |
14223 | ||
94a72be7 AB |
14224 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
14225 | ||
14226 | * dwarf2read.c (lnp_state_machine::record_line): Include | |
14227 | end_sequence parameter in debug print out. Record the line if we | |
14228 | are at an end_sequence marker even if it's not the start of a | |
14229 | statement. | |
14230 | * symmisc.c (maintenance_print_one_line_table): Print end of | |
14231 | sequence markers with 'END' not '0'. | |
14232 | ||
53af73bf PA |
14233 | 2020-01-24 Pedro Alves <palves@redhat.com> |
14234 | ||
14235 | PR gdb/25410 | |
14236 | * thread.c (scoped_restore_current_thread::restore): Use | |
14237 | switch_to_inferior_no_thread. | |
14238 | * exec.c: Include "progspace-and-thread.h". | |
14239 | (add_target_sections, remove_target_sections): | |
14240 | scoped_restore_current_pspace_and_thread instead of | |
14241 | scoped_restore_current_thread. | |
14242 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace | |
14243 | and aspace to the inferior before calling clone_program_space. | |
14244 | Remove stale comment. | |
14245 | ||
3050c6f4 CB |
14246 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
14247 | ||
14248 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... | |
14249 | (arm_netbsd_nat_target::fetch_registers): ...this. | |
14250 | (arm_nbsd_nat_target::store_registers): Rename to... | |
14251 | (arm_netbsd_nat_target::store_registers): ...this. | |
14252 | ||
73685c7e CB |
14253 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
14254 | ||
14255 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
14256 | register_t. | |
14257 | ||
89203d40 CB |
14258 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
14259 | ||
14260 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): | |
14261 | Update comment. | |
14262 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): | |
14263 | Likewise. | |
14264 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. | |
14265 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to | |
14266 | the correct replacement (iterate_over_regset_sections). | |
14267 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): | |
14268 | Update comment. | |
14269 | ||
1ba1ac88 AB |
14270 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> |
14271 | ||
14272 | PR gdb/23718 | |
14273 | * gdb/python/python.c (execute_gdb_command): Call | |
14274 | async_enable_stdin in catch block. | |
14275 | ||
f3364a6d AB |
14276 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
14277 | ||
14278 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with | |
14279 | SWITCH_THRU_ALL_UIS. | |
14280 | ||
733d0a67 AB |
14281 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
14282 | ||
14283 | PR tui/9765 | |
14284 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header | |
14285 | comment, add extra parameter, and update to store previous symbol | |
14286 | when appropriate. | |
14287 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, | |
14288 | add extra parameter. | |
14289 | * tui/tui-disasm.c (tui_disassemble): Update header comment, | |
14290 | remove unneeded parameter, add try/catch around gdb_print_insn, | |
14291 | rewrite to add items to asm_lines vector. | |
14292 | (tui_find_backward_disassembly_start_address): New function. | |
14293 | (tui_find_disassembly_address): Updated throughout. | |
14294 | (tui_disasm_window::set_contents): Update for changes to | |
14295 | tui_disassemble. | |
14296 | (tui_disasm_window::do_scroll_vertical): No need to adjust the | |
14297 | number of lines to scroll. | |
14298 | ||
b3b3bada SM |
14299 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
14300 | ||
14301 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. | |
14302 | (SECT_OFF_DATA): Likewise. | |
14303 | (SECT_OFF_RODATA): Likewise. | |
14304 | (SECT_OFF_TEXT): Likewise. | |
14305 | (SECT_OFF_BSS): Likewise. | |
14306 | (struct objfile) <text_section_offset, data_section_offset>: New | |
14307 | methods. | |
14308 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use | |
14309 | objfile::text_section_offset. | |
14310 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. | |
14311 | * coffread.c (coff_symtab_read): Likewise. | |
14312 | (enter_linenos): Likewise. | |
14313 | (process_coff_symbol): Likewise. | |
14314 | * ctfread.c (get_objfile_text_range): Likewise. | |
14315 | * dtrace-probe.c (dtrace_probe::get_relocated_address): | |
14316 | Use objfile::data_section_offset. | |
14317 | * dwarf2-frame.c (execute_cfa_program): Use | |
14318 | objfile::text_section_offset. | |
14319 | (dwarf2_frame_find_fde): Likewise. | |
14320 | * dwarf2read.c (create_addrmap_from_index): Likewise. | |
14321 | (create_addrmap_from_aranges): Likewise. | |
14322 | (dw2_find_pc_sect_compunit_symtab): Likewise. | |
14323 | (process_psymtab_comp_unit_reader): Likewise. | |
14324 | (add_partial_symbol): Likewise. | |
14325 | (add_partial_subprogram): Likewise. | |
14326 | (process_full_comp_unit): Likewise. | |
14327 | (read_file_scope): Likewise. | |
14328 | (read_func_scope): Likewise. | |
14329 | (read_lexical_block_scope): Likewise. | |
14330 | (read_call_site_scope): Likewise. | |
14331 | (dwarf2_rnglists_process): Likewise. | |
14332 | (dwarf2_ranges_process): Likewise. | |
14333 | (dwarf2_ranges_read): Likewise. | |
14334 | (dwarf_decode_lines_1): Likewise. | |
14335 | (new_symbol): Likewise. | |
14336 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
14337 | (dwarf2_per_cu_text_offset): Likewise. | |
14338 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
14339 | * hppa-tdep.c (read_unwind_info): Likewise. | |
14340 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. | |
14341 | * psympriv.h (struct partial_symtab): Likewise. | |
14342 | * psymtab.c (find_pc_sect_psymtab): Likewise. | |
14343 | * solib-svr4.c (enable_break): Likewise. | |
14344 | * stap-probe.c (relocate_address): Use | |
14345 | objfile::data_section_offset. | |
14346 | * xcoffread.c (enter_line_range): Use | |
14347 | objfile::text_section_offset. | |
14348 | (read_xcoff_symtab): Likewise. | |
14349 | ||
ab53f382 SM |
14350 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
14351 | ||
14352 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` | |
14353 | declaration to narrower scopes. | |
14354 | ||
e7eee665 SM |
14355 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
14356 | ||
14357 | * darwin-nat.h (struct darwin_exception_msg, enum | |
14358 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): | |
14359 | Move up. | |
14360 | (class darwin_nat_target) <wait_1, check_new_threads, | |
14361 | decode_exception_message, decode_message, stop_inferior, | |
14362 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. | |
14363 | * darwin-nat.c (darwin_check_new_threads): Rename to... | |
14364 | (darwin_nat_target::check_new_threads): ... this. | |
14365 | (darwin_suspend_inferior_it): Remove. | |
14366 | (darwin_decode_exception_message): Rename to... | |
14367 | (darwin_nat_target::decode_exception_message): ... this. | |
14368 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. | |
14369 | (darwin_decode_message): Rename to... | |
14370 | (darwin_nat_target::decode_message): ... this. | |
14371 | (cancel_breakpoint): Rename to... | |
14372 | (darwin_nat_target::cancel_breakpoint): ... this. | |
14373 | (darwin_wait): Rename to... | |
14374 | (darwin_nat_target::wait_1): ... this. Use range-based for loop | |
14375 | instead of iterate_over_inferiors. | |
14376 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. | |
14377 | (darwin_stop_inferior): Rename to... | |
14378 | (darwin_nat_target::stop_inferior): ... this. | |
14379 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. | |
14380 | (darwin_init_thread_list): Rename to... | |
14381 | (darwin_nat_target::init_thread_list): ... this. | |
14382 | (darwin_ptrace_him): Rename to... | |
14383 | (darwin_nat_target::ptrace_him): ... this. | |
14384 | (darwin_nat_target::create_inferior): Pass lambda function to | |
14385 | fork_inferior. | |
14386 | (darwin_nat_target::detach): Call stop_inferior instead of | |
14387 | darwin_stop_inferior. | |
14388 | * fork-inferior.h (fork_inferior): Change init_trace_fun | |
14389 | parameter to gdb::function_view. | |
14390 | * fork-inferior.c (fork_inferior): Likewise. | |
14391 | ||
c162ed3e HD |
14392 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> |
14393 | ||
14394 | * i386-cygwin-tdep.c (core_process_module_section): Update. | |
14395 | * windows-nat.c (struct lm_info_windows): Add text_offset. | |
14396 | (windows_xfer_shared_libraries): Update. | |
14397 | * windows-tdep.c (windows_xfer_shared_library): | |
14398 | Add text_offset_cached argument. | |
14399 | * windows-tdep.h (windows_xfer_shared_library): Update. | |
14400 | ||
a1237872 SM |
14401 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
14402 | ||
14403 | * gdbarch.sh: Add declaration for _initialize_gdbarch. | |
14404 | ||
b3ee6dd9 SM |
14405 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
14406 | ||
14407 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. | |
14408 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, | |
14409 | replace with range-based for. | |
14410 | (gdbsim_interrupt_inferior): Remove. | |
14411 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use | |
14412 | with a range-based for. Inline code from | |
14413 | gdbsim_interrupt_inferior. | |
14414 | ||
f9fac3c8 SM |
14415 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
14416 | ||
14417 | * infrun.c (proceed): Fix indentation. | |
14418 | ||
f6474de9 TT |
14419 | 2020-01-21 Tom Tromey <tromey@adacore.com> |
14420 | ||
14421 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. | |
14422 | * python/python.c (python_extension_ops): Update. | |
14423 | (gdbpy_colorize): New function. | |
14424 | * python/lib/gdb/__init__.py (colorize): New function. | |
14425 | * extension.h (ext_lang_colorize): Declare. | |
14426 | * extension.c (ext_lang_colorize): New function. | |
14427 | * extension-priv.h (struct extension_language_ops) <colorize>: New | |
14428 | member. | |
14429 | * cli/cli-style.c (_initialize_cli_style): Update help text. | |
14430 | ||
f0c702d4 LM |
14431 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
14432 | ||
14433 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) | |
14434 | <cond>: Change type to bool. | |
14435 | (aarch64_displaced_step_b_cond): Update cond to use bool type. | |
14436 | (aarch64_displaced_step_cb): Likewise. | |
14437 | (aarch64_displaced_step_tb): Likewise. | |
14438 | ||
1ab139e5 LM |
14439 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
14440 | ||
14441 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging | |
14442 | output. | |
14443 | ||
0c271889 LM |
14444 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
14445 | ||
14446 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) | |
14447 | <pc_adjust>: Adjust the documentation. | |
14448 | (aarch64_displaced_step_fixup): Check if PC really moved before | |
14449 | adjusting it. | |
14450 | ||
4d89c1c7 TT |
14451 | 2020-01-19 Tom Tromey <tom@tromey.com> |
14452 | ||
14453 | * disasm.c (~gdb_disassembler): New destructor. | |
14454 | (gdb_buffered_insn_length): Call disassemble_free_target. | |
14455 | * disasm.h (class gdb_disassembler): Declare destructor. Use | |
14456 | DISABLE_COPY_AND_ASSIGN. | |
14457 | ||
c0ab21c2 TT |
14458 | 2020-01-19 Tom Tromey <tom@tromey.com> |
14459 | ||
14460 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. | |
14461 | (die_reader_func_ftype): Remove. | |
14462 | (cutu_reader): New class. | |
14463 | (dw2_get_file_names_reader): Remove "data" parameter. | |
14464 | (dw2_get_file_names): Use cutu_reader. | |
14465 | (create_debug_type_hash_table): Update. | |
14466 | (read_cutu_die_from_dwo): Update comment. | |
14467 | (lookup_dwo_unit): Add dwo_name parameter. | |
14468 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove | |
14469 | die_reader_func_ftype and data parameters. | |
14470 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. | |
14471 | Remove die_reader_func_ftype and data parameters. | |
14472 | (~cutu_reader): New; from init_cutu_and_read_dies. | |
14473 | (cutu_reader::cutu_reader): Rename from | |
14474 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype | |
14475 | and data parameters. | |
14476 | (init_cutu_and_read_dies_simple): Remove. | |
14477 | (struct process_psymtab_comp_unit_data): Remove. | |
14478 | (process_psymtab_comp_unit_reader): Remove data parameter; add | |
14479 | want_partial_unit and pretend_language parameters. | |
14480 | (process_psymtab_comp_unit): Use cutu_reader. | |
14481 | (build_type_psymtabs_reader): Remove data parameter. | |
14482 | (build_type_psymtabs_1): Use cutu_reader. | |
14483 | (process_skeletonless_type_unit): Likewise. | |
14484 | (load_partial_comp_unit_reader): Remove. | |
14485 | (load_partial_comp_unit): Use cutu_reader. | |
14486 | (load_full_comp_unit_reader): Remove. | |
14487 | (load_full_comp_unit): Use cutu_reader. | |
14488 | (struct create_dwo_cu_data): Remove. | |
14489 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and | |
14490 | dwo_unit parameters. | |
14491 | (create_cus_hash_table): Use cutu_reader. | |
14492 | (struct dwarf2_read_addr_index_data): Remove. | |
14493 | (dwarf2_read_addr_index_reader): Remove. | |
14494 | (dwarf2_read_addr_index): Use cutu_reader. | |
14495 | (read_signatured_type_reader): Remove. | |
14496 | (read_signatured_type): Use cutu_reader. | |
14497 | ||
45bbae5c TT |
14498 | 2020-01-19 Tom Tromey <tom@tromey.com> |
14499 | ||
14500 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. | |
14501 | * tui/tui-wingeneral.h (class tui_suppress_output): New. | |
14502 | (tui_wrefresh): Declare. | |
14503 | * tui/tui-wingeneral.c (suppress_output): New global. | |
14504 | (tui_suppress_output, ~tui_suppress_output): New constructor and | |
14505 | destructor. | |
14506 | (tui_wrefresh): New function. | |
14507 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. | |
14508 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. | |
14509 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare | |
14510 | method. | |
14511 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call | |
14512 | tui_wrefresh. | |
14513 | (tui_data_window::no_refresh): New method. | |
14514 | (tui_data_item_window::refresh_window): Call tui_wrefresh. | |
14515 | (tui_reg_command): Use tui_suppress_output | |
14516 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. | |
14517 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New | |
14518 | method. | |
14519 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. | |
14520 | ||
4f13c1c0 TT |
14521 | 2020-01-19 Tom Tromey <tom@tromey.com> |
14522 | ||
14523 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
14524 | Handle case where symtab is null. | |
14525 | ||
fa47e446 SM |
14526 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
14527 | ||
14528 | * linux-fork.c (one_fork_p): Simplify. | |
14529 | ||
26f42329 SM |
14530 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
14531 | ||
14532 | * top.c (struct qt_args): Remove. | |
14533 | (kill_or_detach): Change return type to void, replace `void *` | |
14534 | parameter with a proper one. | |
14535 | (print_inferior_quit_action): Likewise. | |
14536 | (quit_confirm): Use range-based for loop to iterate over inferiors. | |
14537 | (quit_force): Likewise. | |
14538 | ||
a9ac81b1 SM |
14539 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
14540 | ||
14541 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace | |
14542 | `void *` parameter with proper parameters. | |
14543 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. | |
14544 | (print_one_inferior): Change return type to void, replace `void *` | |
14545 | parameter with proper parameters. | |
14546 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over | |
14547 | inferiors. | |
14548 | (get_other_inferior): Remove. | |
14549 | (mi_cmd_remove_inferior): Use range-based loop to iterate over | |
14550 | inferiors. | |
14551 | ||
788eca49 SM |
14552 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
14553 | ||
14554 | * mi/mi-interp.c (report_initial_inferior): Remove. | |
14555 | (mi_interp::init): Use range-based for to iterate over inferiors. | |
14556 | ||
d9bc85b6 SM |
14557 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
14558 | ||
14559 | * python/py-inferior.c (build_inferior_list): Remove. | |
14560 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. | |
14561 | ||
40c94099 CB |
14562 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> |
14563 | ||
14564 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). | |
14565 | (btrace_stitch_trace): Likewise. | |
14566 | * charset.c (intermediate_encoding): Likewise (vaild). | |
14567 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). | |
14568 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). | |
14569 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). | |
14570 | ||
e0cdfe3c HD |
14571 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> |
14572 | ||
14573 | * windows-tdep.c (windows_get_tlb_type): | |
14574 | Add rtl_user_process_parameters type. | |
14575 | ||
790f1718 | 14576 | 2020-01-16 Pedro Alves <palves@redhat.com> |
aac66a4c | 14577 | Norbert Lange <nolange79@gmail.com> |
790f1718 PA |
14578 | |
14579 | PR build/24805 | |
14580 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. | |
14581 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) | |
14582 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) | |
14583 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) | |
14584 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) | |
14585 | (ps_plog): Redeclare exported functions with default visibility. | |
14586 | ||
3112ed97 NA |
14587 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> |
14588 | ||
14589 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle | |
14590 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. | |
14591 | ||
8dc3273e SM |
14592 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> |
14593 | ||
14594 | * infcmd.c (post_create_inferior): Use get_thread_regcache | |
14595 | instead of get_current_regcache. | |
14596 | ||
ff47f4f0 TT |
14597 | 2020-01-14 Tom Tromey <tom@tromey.com> |
14598 | ||
14599 | PR symtab/12535: | |
14600 | * python/python.c (gdbpy_decode_line): Treat empty string the same | |
14601 | as no argument. | |
14602 | ||
975f45b7 TT |
14603 | 2020-01-14 Tom Tromey <tom@tromey.com> |
14604 | ||
14605 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). | |
14606 | ||
25e57356 TT |
14607 | 2020-01-14 Tom Tromey <tom@tromey.com> |
14608 | ||
14609 | * nat/linux-btrace.c: Don't include <config.h>. | |
14610 | * nat/linux-ptrace.c: Don't include <config.h>. | |
14611 | * nat/x86-linux-dregs.c: Don't include <config.h>. | |
14612 | ||
05ea2a05 TT |
14613 | 2020-01-14 Tom Tromey <tom@tromey.com> |
14614 | ||
14615 | * configure: Rebuild. | |
14616 | * configure.ac: Move many checks to ../gdbsupport/common.m4. | |
14617 | ||
01027315 TT |
14618 | 2020-01-14 Tom Tromey <tom@tromey.com> |
14619 | ||
14620 | * nat/x86-linux-dregs.c: Include configh.h. | |
14621 | * nat/linux-ptrace.c: Include configh.h. | |
14622 | * nat/linux-btrace.c: Include configh.h. | |
14623 | * defs.h: Include config.h, bfd.h. | |
14624 | * configure.ac: Don't source common.host. | |
14625 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. | |
14626 | * configure: Rebuild. | |
14627 | * acinclude.m4: Update path. | |
14628 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. | |
14629 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. | |
14630 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. | |
14631 | (CLIBS): Add LIBSUPPORT. | |
14632 | (CDEPS): Likewise. | |
14633 | (COMMON_SFILES): Remove gdbsupport files. | |
14634 | (HFILES_NO_SRCDIR): Likewise. | |
14635 | (stamp-version): Update path to create-version.sh. | |
14636 | (ALLDEPFILES): Remove gdbsupport files. | |
14637 | ||
b2ceabe8 TT |
14638 | 2020-01-14 Tom Tromey <tom@tromey.com> |
14639 | ||
14640 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and | |
14641 | USE_WIN32API when needed. | |
14642 | * configure.ac (USE_WIN32API): Don't define. | |
14643 | (WIN32LIBS): Use WIN32APILIBS. | |
14644 | * configure: Rebuild. | |
14645 | ||
25c51f71 TT |
14646 | 2020-01-14 Tom Tromey <tom@tromey.com> |
14647 | ||
14648 | * configure: Rebuild. | |
14649 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. | |
14650 | ||
717c684d BE |
14651 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
14652 | ||
14653 | * skip.c (skip_function_command): Make skip w/o arguments use the | |
14654 | name of the inlined function if pc is inside any inlined function. | |
14655 | ||
7da6a5b9 LM |
14656 | 2020-01-14 Luis Machado <luis.machado@linaro.org> |
14657 | ||
14658 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. | |
14659 | * infrun.c (resume_1): Likewise. | |
14660 | (handle_inferior_event): Remove stale comment. | |
14661 | * linux-nat.c (linux_nat_target::resume): Update comments. | |
14662 | (save_stop_reason): Likewise. | |
14663 | (linux_nat_filter_event): Likewise. | |
14664 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. | |
14665 | ||
44e4c775 AB |
14666 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
14667 | ||
14668 | * elfread.c (record_minimal_symbol): Set section index to 0 for | |
14669 | non-allocatable sections. | |
14670 | ||
18a8505e AT |
14671 | |
14672 | 2020-01-13 Ali Tamur <tamur@google.com> | |
14673 | ||
14674 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. | |
14675 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base | |
14676 | to gdb::optional. Update comments. | |
14677 | (dwo_file): Update comments. | |
14678 | (read_attribute): Update API to take an additional out parameter, | |
14679 | need_reprocess. This is used to mark attributes that need other | |
14680 | attributes (e.g. str_offsets_base) for correct computation which may not | |
14681 | have been read yet. | |
14682 | (read_attribute_reprocess): New function declaration. | |
14683 | (read_addr_index): Likewise. | |
14684 | (read_dwo_str_index): Likewise. | |
14685 | (read_stub_str_index): Likewise. | |
14686 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. | |
14687 | (lookup_addr_base): New function definition. | |
14688 | (lookup_ranges_base): Likewise. | |
14689 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, | |
14690 | lookup_ranges_base. | |
14691 | (init_cutu_and_read_dies): Update comments. | |
14692 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile | |
14693 | unit. This is used to inherit parent's str_offsets_base and addr_base. | |
14694 | Update comments. | |
14695 | (init_cutu_and_read_dies_simple): Reflect API changes. | |
14696 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. | |
14697 | (create_cus_hash_table): Change API to take parent compile unit. | |
14698 | Reflect API changes. | |
14699 | (open_and_init_dwo_file): Reflect API changes. | |
14700 | (dwarf2_get_pc_bounds): Update comments. | |
14701 | (dwarf2_record_block_ranges): Likewise. | |
14702 | (read_full_die_1): Change implementation to reprocess attributes that | |
14703 | need str_offsets_base and addr_base. | |
14704 | (partial_die_info::read): Likewise. | |
14705 | (read_attribute_reprocess): New function definition. | |
14706 | (read_attribute_value): Change API to take an additional out parameter, | |
14707 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error | |
14708 | when a non-dwo compile unit has index based attributes. | |
14709 | (read_attribute): Reflect API changes. | |
14710 | (read_addr_index_1): Reflect API changes. Update comments. | |
14711 | (dwarf2_read_addr_index_data): Reflect API changes. | |
14712 | (dwarf2_read_addr_index): Likewise. | |
14713 | (read_str_index): Change API and implementation. This becomes a helper | |
14714 | to be used by the new string index related methods. Update error | |
14715 | message and comments. | |
14716 | (read_dwo_str_index): New function definition. | |
14717 | (read_stub_str_index): Likewise. | |
14718 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. | |
14719 | * symfile.h (dwarf2_debug_sections): Likewise. | |
14720 | * xcoffread.c (dwarf2_debug_sections): Likewise. | |
14721 | ||
0cac9354 SM |
14722 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
14723 | ||
14724 | * gdbcore.h (struct core_fns) <core_read_registers>: Change | |
14725 | core_reg_sect type to gdb_byte *. | |
14726 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. | |
14727 | * cris-tdep.c (fetch_core_registers): Likewise. | |
14728 | * corelow.c (core_target::get_core_register_section): Change | |
14729 | type of `contents` to gdb::byte_vector. | |
14730 | ||
9a6d629c AB |
14731 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
14732 | ||
14733 | * tui/tui-wingeneral.c (box_win): Position the title in the center | |
14734 | of the border. | |
14735 | ||
d8b2f9e3 SM |
14736 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
14737 | ||
14738 | * corelow.c (core_target::get_core_register_section): Use | |
14739 | std::vector instead of alloca. | |
14740 | ||
bb564c58 SM |
14741 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
14742 | ||
14743 | * warning.m4: Add -Wmissing-declarations to build_warnings. | |
14744 | * configure: Re-generate. | |
14745 | ||
6b366111 SM |
14746 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
14747 | ||
14748 | * python/python.c (init__gdb_module): Add declaration. | |
14749 | ||
6c265988 SM |
14750 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
14751 | ||
14752 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. | |
14753 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. | |
14754 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. | |
14755 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. | |
14756 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. | |
14757 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. | |
14758 | * ada-exp.y (_initialize_ada_exp): Add declaration. | |
14759 | * ada-lang.c (_initialize_ada_language): Add declaration. | |
14760 | * ada-tasks.c (_initialize_tasks): Add declaration. | |
14761 | * agent.c (_initialize_agent): Add declaration. | |
14762 | * aix-thread.c (_initialize_aix_thread): Add declaration. | |
14763 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. | |
14764 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. | |
14765 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. | |
14766 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. | |
14767 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. | |
14768 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. | |
14769 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. | |
14770 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. | |
14771 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. | |
14772 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. | |
14773 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. | |
14774 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. | |
14775 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. | |
14776 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. | |
14777 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. | |
14778 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. | |
14779 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. | |
14780 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. | |
14781 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. | |
14782 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. | |
14783 | * annotate.c (_initialize_annotate): Add declaration. | |
14784 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. | |
14785 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. | |
14786 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. | |
14787 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. | |
14788 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. | |
14789 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. | |
14790 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. | |
14791 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. | |
14792 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. | |
14793 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. | |
14794 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. | |
14795 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. | |
14796 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. | |
14797 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. | |
14798 | * auto-load.c (_initialize_auto_load): Add declaration. | |
14799 | * auxv.c (_initialize_auxv): Add declaration. | |
14800 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. | |
14801 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. | |
14802 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. | |
14803 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. | |
14804 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. | |
14805 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. | |
14806 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. | |
14807 | * breakpoint.c (_initialize_breakpoint): Add declaration. | |
14808 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. | |
14809 | * btrace.c (_initialize_btrace): Add declaration. | |
14810 | * charset.c (_initialize_charset): Add declaration. | |
14811 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. | |
14812 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. | |
14813 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. | |
14814 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. | |
14815 | * cli/cli-script.c (_initialize_cli_script): Add declaration. | |
14816 | * cli/cli-style.c (_initialize_cli_style): Add declaration. | |
14817 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. | |
14818 | * coffread.c (_initialize_coffread): Add declaration. | |
14819 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. | |
14820 | * compile/compile.c (_initialize_compile): Add declaration. | |
14821 | * complaints.c (_initialize_complaints): Add declaration. | |
14822 | * completer.c (_initialize_completer): Add declaration. | |
14823 | * copying.c (_initialize_copying): Add declaration. | |
14824 | * corefile.c (_initialize_core): Add declaration. | |
14825 | * corelow.c (_initialize_corelow): Add declaration. | |
14826 | * cp-abi.c (_initialize_cp_abi): Add declaration. | |
14827 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. | |
14828 | * cp-support.c (_initialize_cp_support): Add declaration. | |
14829 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. | |
14830 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. | |
14831 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. | |
14832 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. | |
14833 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. | |
14834 | * ctfread.c (_initialize_ctfread): Add declaration. | |
14835 | * d-lang.c (_initialize_d_language): Add declaration. | |
14836 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. | |
14837 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. | |
14838 | * dbxread.c (_initialize_dbxread): Add declaration. | |
14839 | * dcache.c (_initialize_dcache): Add declaration. | |
14840 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. | |
14841 | * disasm.c (_initialize_disasm): Add declaration. | |
14842 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. | |
14843 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. | |
14844 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. | |
14845 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. | |
14846 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. | |
14847 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. | |
14848 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. | |
14849 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. | |
14850 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. | |
14851 | * elfread.c (_initialize_elfread): Add declaration. | |
14852 | * exec.c (_initialize_exec): Add declaration. | |
14853 | * extension.c (_initialize_extension): Add declaration. | |
14854 | * f-lang.c (_initialize_f_language): Add declaration. | |
14855 | * f-valprint.c (_initialize_f_valprint): Add declaration. | |
14856 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. | |
14857 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. | |
14858 | * filesystem.c (_initialize_filesystem): Add declaration. | |
14859 | * findcmd.c (_initialize_mem_search): Add declaration. | |
14860 | * findvar.c (_initialize_findvar): Add declaration. | |
14861 | * fork-child.c (_initialize_fork_child): Add declaration. | |
14862 | * frame-base.c (_initialize_frame_base): Add declaration. | |
14863 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. | |
14864 | * frame.c (_initialize_frame): Add declaration. | |
14865 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. | |
14866 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. | |
14867 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. | |
14868 | * gcore.c (_initialize_gcore): Add declaration. | |
14869 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. | |
14870 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. | |
14871 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. | |
14872 | * gdbarch.c (_initialize_gdbarch): Add declaration. | |
14873 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. | |
14874 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. | |
14875 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. | |
14876 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. | |
14877 | * go-lang.c (_initialize_go_language): Add declaration. | |
14878 | * go32-nat.c (_initialize_go32_nat): Add declaration. | |
14879 | * guile/guile.c (_initialize_guile): Add declaration. | |
14880 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. | |
14881 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. | |
14882 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. | |
14883 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. | |
14884 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. | |
14885 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. | |
14886 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. | |
14887 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. | |
14888 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. | |
14889 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. | |
14890 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. | |
14891 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. | |
14892 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. | |
14893 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. | |
14894 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. | |
14895 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. | |
14896 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. | |
14897 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. | |
14898 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. | |
14899 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. | |
14900 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. | |
14901 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. | |
14902 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. | |
14903 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. | |
14904 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. | |
14905 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. | |
14906 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. | |
14907 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. | |
14908 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. | |
14909 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. | |
14910 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. | |
14911 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. | |
14912 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. | |
14913 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. | |
14914 | * infcall.c (_initialize_infcall): Add declaration. | |
14915 | * infcmd.c (_initialize_infcmd): Add declaration. | |
14916 | * inflow.c (_initialize_inflow): Add declaration. | |
14917 | * infrun.c (_initialize_infrun): Add declaration. | |
14918 | * interps.c (_initialize_interpreter): Add declaration. | |
14919 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. | |
14920 | * jit.c (_initialize_jit): Add declaration. | |
14921 | * language.c (_initialize_language): Add declaration. | |
14922 | * linux-fork.c (_initialize_linux_fork): Add declaration. | |
14923 | * linux-nat.c (_initialize_linux_nat): Add declaration. | |
14924 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. | |
14925 | * linux-thread-db.c (_initialize_thread_db): Add declaration. | |
14926 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. | |
14927 | * m2-lang.c (_initialize_m2_language): Add declaration. | |
14928 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. | |
14929 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. | |
14930 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. | |
14931 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. | |
14932 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. | |
14933 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. | |
14934 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. | |
14935 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. | |
14936 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. | |
14937 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. | |
14938 | * machoread.c (_initialize_machoread): Add declaration. | |
14939 | * macrocmd.c (_initialize_macrocmd): Add declaration. | |
14940 | * macroscope.c (_initialize_macroscope): Add declaration. | |
14941 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. | |
14942 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. | |
14943 | * maint.c (_initialize_maint_cmds): Add declaration. | |
14944 | * mdebugread.c (_initialize_mdebugread): Add declaration. | |
14945 | * memattr.c (_initialize_mem): Add declaration. | |
14946 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. | |
14947 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. | |
14948 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. | |
14949 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. | |
14950 | * mi/mi-main.c (_initialize_mi_main): Add declaration. | |
14951 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. | |
14952 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. | |
14953 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. | |
14954 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. | |
14955 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. | |
14956 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. | |
14957 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. | |
14958 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. | |
14959 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. | |
14960 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. | |
14961 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. | |
14962 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. | |
14963 | * mipsread.c (_initialize_mipsread): Add declaration. | |
14964 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. | |
14965 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. | |
14966 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. | |
14967 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. | |
14968 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. | |
14969 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. | |
14970 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. | |
14971 | * nto-procfs.c (_initialize_procfs): Add declaration. | |
14972 | * objc-lang.c (_initialize_objc_language): Add declaration. | |
14973 | * observable.c (_initialize_observer): Add declaration. | |
14974 | * opencl-lang.c (_initialize_opencl_language): Add declaration. | |
14975 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. | |
14976 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. | |
14977 | * osabi.c (_initialize_gdb_osabi): Add declaration. | |
14978 | * osdata.c (_initialize_osdata): Add declaration. | |
14979 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. | |
14980 | * parse.c (_initialize_parse): Add declaration. | |
14981 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. | |
14982 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. | |
14983 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. | |
14984 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. | |
14985 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. | |
14986 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. | |
14987 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. | |
14988 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. | |
14989 | * printcmd.c (_initialize_printcmd): Add declaration. | |
14990 | * probe.c (_initialize_probe): Add declaration. | |
14991 | * proc-api.c (_initialize_proc_api): Add declaration. | |
14992 | * proc-events.c (_initialize_proc_events): Add declaration. | |
14993 | * proc-service.c (_initialize_proc_service): Add declaration. | |
14994 | * procfs.c (_initialize_procfs): Add declaration. | |
14995 | * producer.c (_initialize_producer): Add declaration. | |
14996 | * psymtab.c (_initialize_psymtab): Add declaration. | |
14997 | * python/python.c (_initialize_python): Add declaration. | |
14998 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. | |
14999 | * record-btrace.c (_initialize_record_btrace): Add declaration. | |
15000 | * record-full.c (_initialize_record_full): Add declaration. | |
15001 | * record.c (_initialize_record): Add declaration. | |
15002 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. | |
15003 | * regcache.c (_initialize_regcache): Add declaration. | |
15004 | * reggroups.c (_initialize_reggroup): Add declaration. | |
15005 | * remote-notif.c (_initialize_notif): Add declaration. | |
15006 | * remote-sim.c (_initialize_remote_sim): Add declaration. | |
15007 | * remote.c (_initialize_remote): Add declaration. | |
15008 | * reverse.c (_initialize_reverse): Add declaration. | |
15009 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. | |
15010 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. | |
15011 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. | |
15012 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. | |
15013 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. | |
15014 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. | |
15015 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. | |
15016 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): | |
15017 | Add declaration. | |
15018 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. | |
15019 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. | |
15020 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. | |
15021 | * rust-exp.y (_initialize_rust_exp): Add declaration. | |
15022 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. | |
15023 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. | |
15024 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. | |
15025 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. | |
15026 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. | |
15027 | * score-tdep.c (_initialize_score_tdep): Add declaration. | |
15028 | * ser-go32.c (_initialize_ser_dos): Add declaration. | |
15029 | * ser-mingw.c (_initialize_ser_windows): Add declaration. | |
15030 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. | |
15031 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. | |
15032 | * ser-uds.c (_initialize_ser_socket): Add declaration. | |
15033 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. | |
15034 | * serial.c (_initialize_serial): Add declaration. | |
15035 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. | |
15036 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. | |
15037 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. | |
15038 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. | |
15039 | * skip.c (_initialize_step_skip): Add declaration. | |
15040 | * sol-thread.c (_initialize_sol_thread): Add declaration. | |
15041 | * solib-aix.c (_initialize_solib_aix): Add declaration. | |
15042 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. | |
15043 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. | |
15044 | * solib-frv.c (_initialize_frv_solib): Add declaration. | |
15045 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. | |
15046 | * solib-target.c (_initialize_solib_target): Add declaration. | |
15047 | * solib.c (_initialize_solib): Add declaration. | |
15048 | * source-cache.c (_initialize_source_cache): Add declaration. | |
15049 | * source.c (_initialize_source): Add declaration. | |
15050 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. | |
15051 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. | |
15052 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. | |
15053 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. | |
15054 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. | |
15055 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. | |
15056 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. | |
15057 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. | |
15058 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. | |
15059 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. | |
15060 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. | |
15061 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. | |
15062 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. | |
15063 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. | |
15064 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. | |
15065 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. | |
15066 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. | |
15067 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. | |
15068 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. | |
15069 | * stabsread.c (_initialize_stabsread): Add declaration. | |
15070 | * stack.c (_initialize_stack): Add declaration. | |
15071 | * stap-probe.c (_initialize_stap_probe): Add declaration. | |
15072 | * std-regs.c (_initialize_frame_reg): Add declaration. | |
15073 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. | |
15074 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. | |
15075 | * symfile.c (_initialize_symfile): Add declaration. | |
15076 | * symmisc.c (_initialize_symmisc): Add declaration. | |
15077 | * symtab.c (_initialize_symtab): Add declaration. | |
15078 | * target.c (_initialize_target): Add declaration. | |
15079 | * target-connection.c (_initialize_target_connection): Add | |
15080 | declaration. | |
15081 | * target-dcache.c (_initialize_target_dcache): Add declaration. | |
15082 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. | |
15083 | * thread.c (_initialize_thread): Add declaration. | |
15084 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. | |
15085 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. | |
15086 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. | |
15087 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. | |
15088 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. | |
15089 | * tracectf.c (_initialize_ctf): Add declaration. | |
15090 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. | |
15091 | * tracefile.c (_initialize_tracefile): Add declaration. | |
15092 | * tracepoint.c (_initialize_tracepoint): Add declaration. | |
15093 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. | |
15094 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. | |
15095 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. | |
15096 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. | |
15097 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. | |
15098 | * tui/tui-win.c (_initialize_tui_win): Add declaration. | |
15099 | * tui/tui.c (_initialize_tui): Add declaration. | |
15100 | * typeprint.c (_initialize_typeprint): Add declaration. | |
15101 | * ui-style.c (_initialize_ui_style): Add declaration. | |
15102 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. | |
15103 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. | |
15104 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. | |
15105 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. | |
15106 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. | |
15107 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. | |
15108 | * unittests/filtered_iterator-selftests.c | |
15109 | (_initialize_filtered_iterator_selftests): Add declaration. | |
15110 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. | |
15111 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. | |
15112 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. | |
15113 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. | |
15114 | * unittests/main-thread-selftests.c | |
15115 | (_initialize_main_thread_selftests): Add declaration. | |
15116 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. | |
15117 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. | |
15118 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. | |
15119 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. | |
15120 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. | |
15121 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. | |
15122 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. | |
15123 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. | |
15124 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. | |
15125 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. | |
15126 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. | |
15127 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. | |
15128 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. | |
15129 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. | |
15130 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add | |
15131 | declaration. | |
15132 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. | |
15133 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. | |
15134 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. | |
15135 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. | |
15136 | * user-regs.c (_initialize_user_regs): Add declaration. | |
15137 | * utils.c (_initialize_utils): Add declaration. | |
15138 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. | |
15139 | * valops.c (_initialize_valops): Add declaration. | |
15140 | * valprint.c (_initialize_valprint): Add declaration. | |
15141 | * value.c (_initialize_values): Add declaration. | |
15142 | * varobj.c (_initialize_varobj): Add declaration. | |
15143 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. | |
15144 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. | |
15145 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. | |
15146 | * windows-nat.c (_initialize_windows_nat): Add declaration. | |
15147 | (_initialize_check_for_gdb_ini): Add declaration. | |
15148 | (_initialize_loadable): Add declaration. | |
15149 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. | |
15150 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. | |
15151 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. | |
15152 | * xcoffread.c (_initialize_xcoffread): Add declaration. | |
15153 | * xml-support.c (_initialize_xml_support): Add declaration. | |
15154 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. | |
15155 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. | |
15156 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. | |
15157 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. | |
15158 | ||
e2de1eec SM |
15159 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
15160 | ||
15161 | * regformats/regdat.sh: Generate declaration for init function. | |
15162 | ||
e0037b4c SM |
15163 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
15164 | ||
15165 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move | |
15166 | up. | |
15167 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, | |
15168 | close_one_inferior>: New methods. | |
15169 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, | |
15170 | pass down target to find_inferior_pid. | |
15171 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): | |
15172 | Pass down target to find_inferior_ptid. | |
15173 | (gdbsim_target::create_inferior): Pass down target to | |
15174 | add_thread_silent. | |
15175 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass | |
15176 | target down to find_inferior_ptid and switch_to_thread. | |
15177 | (gdbsim_target::close): Update to call close_one_inferior. | |
15178 | (struct resume_data): Remove. | |
15179 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments | |
15180 | directly, rather than through a void pointer. | |
15181 | (gdbsim_target::resume): Update to call resume_one_inferior. | |
15182 | ||
58920b5b SM |
15183 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
15184 | ||
15185 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. | |
15186 | ||
4ec89149 PA |
15187 | 2020-01-12 Pedro Alves <palves@redhat.com> |
15188 | ||
15189 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent | |
15190 | directly for the current inferior instead of | |
15191 | discard_all_inferiors. | |
15192 | (discard_all_inferiors): Delete. | |
15193 | ||
7c392d1d TT |
15194 | 2020-01-11 Tom Tromey <tom@tromey.com> |
15195 | ||
15196 | * tui/tui-wingeneral.c (box_win): Check cli_styling. | |
15197 | * tui/tui-winsource.c (tui_source_window_base::refill): Use | |
15198 | deprecated_safe_get_selected_frame. | |
15199 | ||
d9ebdab7 TBA |
15200 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
15201 | ||
15202 | * inferior.c (print_inferior): Switch inferior before printing it. | |
15203 | ||
f3c469b9 PA |
15204 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> |
15205 | Pedro Alves <palves@redhat.com> | |
15206 | ||
15207 | * progspace-and-thread.c (switch_to_program_space_and_thread): | |
15208 | Assert there's an inferior for PSPACE. Use | |
15209 | switch_to_inferior_no_thread to switch the inferior too. | |
15210 | * progspace.c (program_space::~program_space): Call | |
15211 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. | |
15212 | (program_space::free_all_objfiles): Don't call clear_symtab_users | |
15213 | here. | |
15214 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. | |
15215 | ||
65c574f6 PA |
15216 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15217 | ||
15218 | * NEWS: Mention multi-target debugging, "info connections", and | |
15219 | "add-inferior -no-connection". | |
15220 | ||
2f4fcf00 PA |
15221 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15222 | ||
15223 | * infrun.c: Include "target-connection.h". | |
15224 | (check_multi_target_resumption): New. | |
15225 | (proceed): Call it. | |
15226 | * target-connection.c (make_target_connection_string): Make | |
15227 | extern. | |
15228 | * target-connection.h (make_target_connection_string): Declare. | |
15229 | ||
121b3efd PA |
15230 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15231 | ||
15232 | * Makefile.in (COMMON_SFILES): Add target-connection.c. | |
15233 | * inferior.c (uiout_field_connection): New function. | |
15234 | (print_inferior): Add new "connection-id" column. | |
15235 | (add_inferior_command): Show connection number/string of added | |
15236 | inferior. | |
15237 | * process-stratum-target.h | |
15238 | (process_stratum_target::connection_string): New virtual method. | |
15239 | (process_stratum_target::connection_number): New field. | |
15240 | * remote.c (remote_target::connection_string): New override. | |
15241 | * target-connection.c: New file. | |
15242 | * target-connection.h: New file. | |
15243 | * target.c (decref_target): Remove process_stratum targets from | |
15244 | the connection list. | |
15245 | (target_stack::push): Add process_stratum targets to the | |
15246 | connection list. | |
15247 | ||
4f837581 PA |
15248 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15249 | ||
15250 | Revert: | |
15251 | 2016-04-12 Pedro Alves <palves@redhat.com> | |
15252 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
15253 | Remove references to name. | |
15254 | * serial.h (struct serial) <name>: Delete. | |
15255 | ||
f4ec508e PA |
15256 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15257 | ||
15258 | * gdbarch-selftests.c (register_to_value_test): Remove "target | |
15259 | already pushed" check. | |
15260 | ||
5b6d1e4f PA |
15261 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15262 | John Baldwin <jhb@FreeBSD.org> | |
15263 | ||
15264 | * aarch64-linux-nat.c | |
15265 | (aarch64_linux_nat_target::thread_architecture): Adjust. | |
15266 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. | |
15267 | (task_command_1): Likewise. | |
15268 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) | |
15269 | (aix_thread_target::wait, aix_thread_target::fetch_registers) | |
15270 | (aix_thread_target::store_registers) | |
15271 | (aix_thread_target::thread_alive): Adjust. | |
15272 | * amd64-fbsd-tdep.c: Include "inferior.h". | |
15273 | (amd64fbsd_get_thread_local_address): Pass down target. | |
15274 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle | |
15275 | thread's gdbarch instead of target_gdbarch. | |
15276 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to | |
15277 | get_last_target_status. | |
15278 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
15279 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all | |
15280 | inferiors. | |
15281 | (update_inserted_breakpoint_locations): Skip if inferiors with no | |
15282 | execution. | |
15283 | (update_global_location_list): When handling moribund locations, | |
15284 | find representative inferior for location's pspace, and use thread | |
15285 | count of its process_stratum target. | |
15286 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. | |
15287 | * bsd-uthread.c (bsd_uthread_target::wait): Use | |
15288 | as_process_stratum_target and adjust thread_change_ptid and | |
15289 | add_thread calls. | |
15290 | (bsd_uthread_target::update_thread_list): Use | |
15291 | as_process_stratum_target and adjust find_thread_ptid, | |
15292 | thread_change_ptid and add_thread calls. | |
15293 | * btrace.c (maint_btrace_packet_history_cmd): Adjust | |
15294 | find_thread_ptid call. | |
15295 | * corelow.c (add_to_thread_list): Adjust add_thread call. | |
15296 | (core_target_open): Adjust add_thread_silent and thread_count | |
15297 | calls. | |
15298 | (core_target::pid_to_str): Adjust find_inferior_ptid call. | |
15299 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. | |
15300 | * event-top.c (async_disconnect): Pop targets from all inferiors. | |
15301 | * exec.c (add_target_sections): Push exec target on all inferiors | |
15302 | sharing the program space. | |
15303 | (remove_target_sections): Remove the exec target from all | |
15304 | inferiors sharing the program space. | |
15305 | (exec_on_vfork): New. | |
15306 | * exec.h (exec_on_vfork): Declare. | |
15307 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. | |
15308 | Pass it down. | |
15309 | (fbsd_nat_target::update_thread_list): Adjust. | |
15310 | (fbsd_nat_target::resume): Adjust. | |
15311 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it | |
15312 | down. | |
15313 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. | |
15314 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust | |
15315 | get_thread_arch_regcache call. | |
15316 | * fork-child.c (gdb_startup_inferior): Pass target down to | |
15317 | startup_inferior and set_executing. | |
15318 | * gdbthread.h (struct process_stratum_target): Forward declare. | |
15319 | (add_thread, add_thread_silent, add_thread_with_info) | |
15320 | (in_thread_list): Add process_stratum_target parameter. | |
15321 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
15322 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target | |
15323 | parameter. | |
15324 | (all_threads()): Delete overload. | |
15325 | (all_threads, all_non_exited_threads): Add process_stratum_target | |
15326 | parameter. | |
15327 | (all_threads_safe): Use brace initialization. | |
15328 | (thread_count): Add process_stratum_target parameter. | |
15329 | (set_resumed, set_running, set_stop_requested, set_executing) | |
15330 | (threads_are_executing, finish_thread_state): Add | |
15331 | process_stratum_target parameter. | |
15332 | (switch_to_thread): Use is_current_thread. | |
15333 | * i386-fbsd-tdep.c: Include "inferior.h". | |
15334 | (i386fbsd_get_thread_local_address): Pass down target. | |
15335 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. | |
15336 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove | |
15337 | have_inferiors check. | |
15338 | * inf-ptrace.c (inf_ptrace_target::create_inferior) | |
15339 | (inf_ptrace_target::attach): Adjust. | |
15340 | * infcall.c (run_inferior_call): Adjust. | |
15341 | * infcmd.c (run_command_1): Pass target to | |
15342 | scoped_finish_thread_state. | |
15343 | (proceed_thread_callback): Skip inferiors with no execution. | |
15344 | (continue_command): Rename 'all_threads' local to avoid hiding | |
15345 | 'all_threads' function. Adjust get_last_target_status call. | |
15346 | (prepare_one_step): Adjust set_running call. | |
15347 | (signal_command): Use user_visible_resume_target. Compare thread | |
15348 | pointers instead of inferior_ptid. | |
15349 | (info_program_command): Adjust to pass down target. | |
15350 | (attach_command): Mark target's 'thread_executing' flag. | |
15351 | (stop_current_target_threads_ns): New, factored out from ... | |
15352 | (interrupt_target_1): ... this. Switch inferior before making | |
15353 | target calls. | |
15354 | * inferior-iter.h | |
15355 | (struct all_inferiors_iterator, struct all_inferiors_range) | |
15356 | (struct all_inferiors_safe_range) | |
15357 | (struct all_non_exited_inferiors_range): Filter on | |
15358 | process_stratum_target too. Remove explicit. | |
15359 | * inferior.c (inferior::inferior): Push dummy target on target | |
15360 | stack. | |
15361 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): | |
15362 | Add process_stratum_target parameter, and pass it down. | |
15363 | (have_live_inferiors): Adjust. | |
15364 | (switch_to_inferior_and_push_target): New. | |
15365 | (add_inferior_command, clone_inferior_command): Handle | |
15366 | "-no-connection" parameter. Use | |
15367 | switch_to_inferior_and_push_target. | |
15368 | (_initialize_inferior): Mention "-no-connection" option in | |
15369 | the help of "add-inferior" and "clone-inferior" commands. | |
15370 | * inferior.h: Include "process-stratum-target.h". | |
15371 | (interrupt_target_1): Use bool. | |
15372 | (struct inferior) <push_target, unpush_target, target_is_pushed, | |
15373 | find_target_beneath, top_target, process_target, target_at, | |
15374 | m_stack>: New. | |
15375 | (discard_all_inferiors): Delete. | |
15376 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) | |
15377 | (all_inferiors, all_non_exited_inferiors): Add | |
15378 | process_stratum_target parameter. | |
15379 | * infrun.c: Include "gdb_select.h" and <unordered_map>. | |
15380 | (target_last_proc_target): New global. | |
15381 | (follow_fork_inferior): Push target on new inferior. Pass target | |
15382 | to add_thread_silent. Call exec_on_vfork. Handle target's | |
15383 | reference count. | |
15384 | (follow_fork): Adjust get_last_target_status call. Also consider | |
15385 | target. | |
15386 | (follow_exec): Push target on new inferior. | |
15387 | (struct execution_control_state) <target>: New field. | |
15388 | (user_visible_resume_target): New. | |
15389 | (do_target_resume): Call target_async. | |
15390 | (resume_1): Set target's threads_executing flag. Consider resume | |
15391 | target. | |
15392 | (commit_resume_all_targets): New. | |
15393 | (proceed): Also consider resume target. Skip threads of inferiors | |
15394 | with no execution. Commit resumtion in all targets. | |
15395 | (start_remote): Pass current inferior to wait_for_inferior. | |
15396 | (infrun_thread_stop_requested): Consider target as well. Pass | |
15397 | thread_info pointer to clear_inline_frame_state instead of ptid. | |
15398 | (infrun_thread_thread_exit): Consider target as well. | |
15399 | (random_pending_event_thread): New inferior parameter. Use it. | |
15400 | (do_target_wait): Rename to ... | |
15401 | (do_target_wait_1): ... this. Add inferior parameter, and pass it | |
15402 | down. | |
15403 | (threads_are_resumed_pending_p, do_target_wait): New. | |
15404 | (prepare_for_detach): Adjust calls. | |
15405 | (wait_for_inferior): New inferior parameter. Handle it. Use | |
15406 | do_target_wait_1 instead of do_target_wait. | |
15407 | (fetch_inferior_event): Adjust. Switch to representative | |
15408 | inferior. Pass target down. | |
15409 | (set_last_target_status): Add process_stratum_target parameter. | |
15410 | Save target in global. | |
15411 | (get_last_target_status): Add process_stratum_target parameter and | |
15412 | handle it. | |
15413 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. | |
15414 | (context_switch): Check inferior_ptid == null_ptid before calling | |
15415 | inferior_thread(). | |
15416 | (get_inferior_stop_soon): Pass down target. | |
15417 | (wait_one): Rename to ... | |
15418 | (poll_one_curr_target): ... this. | |
15419 | (struct wait_one_event): New. | |
15420 | (wait_one): New. | |
15421 | (stop_all_threads): Adjust. | |
15422 | (handle_no_resumed, handle_inferior_event): Adjust to consider the | |
15423 | event's target. | |
15424 | (switch_back_to_stepped_thread): Also consider target. | |
15425 | (print_stop_event): Update. | |
15426 | (normal_stop): Update. Also consider the resume target. | |
15427 | * infrun.h (wait_for_inferior): Remove declaration. | |
15428 | (user_visible_resume_target): New declaration. | |
15429 | (get_last_target_status, set_last_target_status): New | |
15430 | process_stratum_target parameter. | |
15431 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
15432 | process_stratum_target parameter, and use it. | |
15433 | (clear_inline_frame_state (thread_info*)): New. | |
15434 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
15435 | process_stratum_target parameter. | |
15436 | (clear_inline_frame_state (thread_info*)): Declare. | |
15437 | * linux-fork.c (delete_checkpoint_command): Pass target down to | |
15438 | find_thread_ptid. | |
15439 | (checkpoint_command): Adjust. | |
15440 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread | |
15441 | instead of just tweaking inferior_ptid. | |
15442 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. | |
15443 | (exit_lwp): Pass target down to find_thread_ptid. | |
15444 | (attach_proc_task_lwp_callback): Pass target down to | |
15445 | add_thread/set_running/set_executing. | |
15446 | (linux_nat_target::attach): Pass target down to | |
15447 | thread_change_ptid. | |
15448 | (get_detach_signal): Pass target down to find_thread_ptid. | |
15449 | Consider last target status's target. | |
15450 | (linux_resume_one_lwp_throw, resume_lwp) | |
15451 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) | |
15452 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) | |
15453 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. | |
15454 | (linux_nat_target::async_wait_fd): New. | |
15455 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass | |
15456 | target down. | |
15457 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. | |
15458 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. | |
15459 | * linux-thread-db.c (struct thread_db_info::process_target): New | |
15460 | field. | |
15461 | (add_thread_db_info): Save target. | |
15462 | (get_thread_db_info): New process_stratum_target parameter. Also | |
15463 | match target. | |
15464 | (delete_thread_db_info): New process_stratum_target parameter. | |
15465 | Also match target. | |
15466 | (thread_from_lwp): Adjust to pass down target. | |
15467 | (thread_db_notice_clone): Pass down target. | |
15468 | (check_thread_db_callback): Pass down target. | |
15469 | (try_thread_db_load_1): Always push the thread_db target. | |
15470 | (try_thread_db_load, record_thread): Pass target down. | |
15471 | (thread_db_target::detach): Pass target down. Always unpush the | |
15472 | thread_db target. | |
15473 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass | |
15474 | target down. Always unpush the thread_db target. | |
15475 | (find_new_threads_callback, thread_db_find_new_threads_2) | |
15476 | (thread_db_target::update_thread_list): Pass target down. | |
15477 | (thread_db_target::pid_to_str): Pass current inferior down. | |
15478 | (thread_db_target::get_thread_local_address): Pass target down. | |
15479 | (thread_db_target::resume, maintenance_check_libthread_db): Pass | |
15480 | target down. | |
15481 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. | |
15482 | * procfs.c (procfs_target::procfs_init_inferior): Declare. | |
15483 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. | |
15484 | (procfs_init_inferior): Rename to ... | |
15485 | (procfs_target::procfs_init_inferior): ... this and adjust. | |
15486 | (procfs_target::create_inferior, procfs_notice_thread) | |
15487 | (procfs_do_thread_registers): Adjust. | |
15488 | * ppc-fbsd-tdep.c: Include "inferior.h". | |
15489 | (ppcfbsd_get_thread_local_address): Pass down target. | |
15490 | * proc-service.c (ps_xfer_memory): Switch current inferior and | |
15491 | program space as well. | |
15492 | (get_ps_regcache): Pass target down. | |
15493 | * process-stratum-target.c | |
15494 | (process_stratum_target::thread_address_space) | |
15495 | (process_stratum_target::thread_architecture): Pass target down. | |
15496 | * process-stratum-target.h | |
15497 | (process_stratum_target::threads_executing): New field. | |
15498 | (as_process_stratum_target): New. | |
15499 | * ravenscar-thread.c | |
15500 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. | |
15501 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target | |
15502 | down. | |
15503 | * record-btrace.c (record_btrace_target::info_record): Adjust. | |
15504 | (record_btrace_target::record_method) | |
15505 | (record_btrace_target::record_is_replaying) | |
15506 | (record_btrace_target::fetch_registers) | |
15507 | (get_thread_current_frame_id, record_btrace_target::resume) | |
15508 | (record_btrace_target::wait, record_btrace_target::stop): Pass | |
15509 | target down. | |
15510 | * record-full.c (record_full_wait_1): Switch to event thread. | |
15511 | Pass target down. | |
15512 | * regcache.c (regcache::regcache) | |
15513 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add | |
15514 | process_stratum_target parameter and handle it. | |
15515 | (current_thread_target): New global. | |
15516 | (get_thread_regcache): Add process_stratum_target parameter and | |
15517 | handle it. Switch inferior before calling target method. | |
15518 | (get_thread_regcache): Pass target down. | |
15519 | (get_thread_regcache_for_ptid): Pass target down. | |
15520 | (registers_changed_ptid): Add process_stratum_target parameter and | |
15521 | handle it. | |
15522 | (registers_changed_thread, registers_changed): Pass target down. | |
15523 | (test_get_thread_arch_aspace_regcache): New. | |
15524 | (current_regcache_test): Define a couple local test_target_ops | |
15525 | instances and use them for testing. | |
15526 | (readwrite_regcache): Pass process_stratum_target parameter. | |
15527 | (cooked_read_test, cooked_write_test): Pass mock_target down. | |
15528 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) | |
15529 | (get_thread_arch_aspace_regcache): Add process_stratum_target | |
15530 | parameter. | |
15531 | (regcache::target): New method. | |
15532 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) | |
15533 | (regcache::registers_changed_ptid): Add process_stratum_target | |
15534 | parameter. | |
15535 | (regcache::m_target): New field. | |
15536 | (registers_changed_ptid): Add process_stratum_target parameter. | |
15537 | * remote.c (remote_state::supports_vCont_probed): New field. | |
15538 | (remote_target::async_wait_fd): New method. | |
15539 | (remote_unpush_and_throw): Add remote_target parameter. | |
15540 | (get_current_remote_target): Adjust. | |
15541 | (remote_target::remote_add_inferior): Push target. | |
15542 | (remote_target::remote_add_thread) | |
15543 | (remote_target::remote_notice_new_inferior) | |
15544 | (get_remote_thread_info): Pass target down. | |
15545 | (remote_target::update_thread_list): Skip threads of inferiors | |
15546 | bound to other targets. (remote_target::close): Don't discard | |
15547 | inferiors. (remote_target::add_current_inferior_and_thread) | |
15548 | (remote_target::process_initial_stop_replies) | |
15549 | (remote_target::start_remote) | |
15550 | (remote_target::remote_serial_quit_handler): Pass down target. | |
15551 | (remote_target::remote_unpush_target): New remote_target | |
15552 | parameter. Unpush the target from all inferiors. | |
15553 | (remote_target::remote_unpush_and_throw): New remote_target | |
15554 | parameter. Pass it down. | |
15555 | (remote_target::open_1): Check whether the current inferior has | |
15556 | execution instead of checking whether any inferior is live. Pass | |
15557 | target down. | |
15558 | (remote_target::remote_detach_1): Pass down target. Use | |
15559 | remote_unpush_target. | |
15560 | (extended_remote_target::attach): Pass down target. | |
15561 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. | |
15562 | (remote_target::append_resumption): Pass down target. | |
15563 | (remote_target::append_pending_thread_resumptions) | |
15564 | (remote_target::remote_resume_with_hc, remote_target::resume) | |
15565 | (remote_target::commit_resume): Pass down target. | |
15566 | (remote_target::remote_stop_ns): Check supports_vCont_probed. | |
15567 | (remote_target::interrupt_query) | |
15568 | (remote_target::remove_new_fork_children) | |
15569 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
15570 | (remote_target::remote_parse_stop_reply) | |
15571 | (remote_target::process_stop_reply): Pass down target. | |
15572 | (first_remote_resumed_thread): New remote_target parameter. Pass | |
15573 | it down. | |
15574 | (remote_target::wait_as): Pass down target. | |
15575 | (unpush_and_perror): New remote_target parameter. Pass it down. | |
15576 | (remote_target::readchar, remote_target::remote_serial_write) | |
15577 | (remote_target::getpkt_or_notif_sane_1) | |
15578 | (remote_target::kill_new_fork_children, remote_target::kill): Pass | |
15579 | down target. | |
15580 | (remote_target::mourn_inferior): Pass down target. Use | |
15581 | remote_unpush_target. | |
15582 | (remote_target::core_of_thread) | |
15583 | (remote_target::remote_btrace_maybe_reopen): Pass down target. | |
15584 | (remote_target::pid_to_exec_file) | |
15585 | (remote_target::thread_handle_to_thread_info): Pass down target. | |
15586 | (remote_target::async_wait_fd): New. | |
15587 | * riscv-fbsd-tdep.c: Include "inferior.h". | |
15588 | (riscv_fbsd_get_thread_local_address): Pass down target. | |
15589 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. | |
15590 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) | |
15591 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): | |
15592 | Adjust. | |
15593 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. | |
15594 | * solib-svr4.c (enable_break): Pass down target. | |
15595 | * spu-multiarch.c (parse_spufs_run): Pass down target. | |
15596 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. | |
15597 | * target-delegates.c: Regenerate. | |
15598 | * target.c (g_target_stack): Delete. | |
15599 | (current_top_target): Return the current inferior's top target. | |
15600 | (target_has_execution_1): Refer to the passed-in inferior's top | |
15601 | target. | |
15602 | (target_supports_terminal_ours): Check whether the initial | |
15603 | inferior was already created. | |
15604 | (decref_target): New. | |
15605 | (target_stack::push): Incref/decref the target. | |
15606 | (push_target, push_target, unpush_target): Adjust. | |
15607 | (target_stack::unpush): Defref target. | |
15608 | (target_is_pushed): Return bool. Adjust to refer to the current | |
15609 | inferior's target stack. | |
15610 | (dispose_inferior): Delete, and inline parts ... | |
15611 | (target_preopen): ... here. Only dispose of the current inferior. | |
15612 | (target_detach): Hold strong target reference while detaching. | |
15613 | Pass target down. | |
15614 | (target_thread_name): Add assertion. | |
15615 | (target_resume): Pass down target. | |
15616 | (target_ops::beneath, find_target_at): Adjust to refer to the | |
15617 | current inferior's target stack. | |
15618 | (get_dummy_target): New. | |
15619 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that | |
15620 | has a thread running. | |
15621 | (initialize_targets): Rename to ... | |
15622 | (_initialize_target): ... this. | |
15623 | * target.h: Include "gdbsupport/refcounted-object.h". | |
15624 | (struct target_ops): Inherit refcounted_object. | |
15625 | (target_ops::shortname, target_ops::longname): Make const. | |
15626 | (target_ops::async_wait_fd): New method. | |
15627 | (decref_target): Declare. | |
15628 | (struct target_ops_ref_policy): New. | |
15629 | (target_ops_ref): New typedef. | |
15630 | (get_dummy_target): Declare function. | |
15631 | (target_is_pushed): Return bool. | |
15632 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) | |
15633 | (all_matching_threads_iterator::all_matching_threads_iterator): | |
15634 | Handle filter target. | |
15635 | * thread-iter.h (struct all_matching_threads_iterator, struct | |
15636 | all_matching_threads_range, class all_non_exited_threads_range): | |
15637 | Filter by target too. Remove explicit. | |
15638 | * thread.c (threads_executing): Delete. | |
15639 | (inferior_thread): Pass down current inferior. | |
15640 | (clear_thread_inferior_resources): Pass down thread pointer | |
15641 | instead of ptid_t. | |
15642 | (add_thread_silent, add_thread_with_info, add_thread): Add | |
15643 | process_stratum_target parameter. Use it for thread and inferior | |
15644 | searches. | |
15645 | (is_current_thread): New. | |
15646 | (thread_info::deletable): Use it. | |
15647 | (find_thread_ptid, thread_count, in_thread_list) | |
15648 | (thread_change_ptid, set_resumed, set_running): New | |
15649 | process_stratum_target parameter. Pass it down. | |
15650 | (set_executing): New process_stratum_target parameter. Pass it | |
15651 | down. Adjust reference to 'threads_executing'. | |
15652 | (threads_are_executing): New process_stratum_target parameter. | |
15653 | Adjust reference to 'threads_executing'. | |
15654 | (set_stop_requested, finish_thread_state): New | |
15655 | process_stratum_target parameter. Pass it down. | |
15656 | (switch_to_thread): Also match inferior. | |
15657 | (switch_to_thread): New process_stratum_target parameter. Pass it | |
15658 | down. | |
15659 | (update_threads_executing): Reimplement. | |
15660 | * top.c (quit_force): Pop targets from all inferior. | |
15661 | (gdb_init): Don't call initialize_targets. | |
15662 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: | |
15663 | Declare. | |
15664 | (windows_add_thread, windows_delete_thread): Adjust. | |
15665 | (get_windows_debug_event): Rename to ... | |
15666 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. | |
15667 | * tracefile-tfile.c (tfile_target_open): Pass down target. | |
15668 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): | |
15669 | Forward declare. | |
15670 | (switch_to_thread): Add process_stratum_target parameter. | |
15671 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target | |
15672 | parameter. Use it. | |
15673 | (mi_on_resume): Pass target down. | |
15674 | * nat/fork-inferior.c (startup_inferior): Add | |
15675 | process_stratum_target parameter. Pass it down. | |
15676 | * nat/fork-inferior.h (startup_inferior): Add | |
15677 | process_stratum_target parameter. | |
15678 | * python/py-threadevent.c (py_get_event_thread): Pass target down. | |
15679 | ||
75c6c844 PA |
15680 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15681 | ||
15682 | * remote.c (remote_target::start_remote): Don't set inferior_ptid | |
15683 | directly. Instead find the first thread in the thread list and | |
15684 | use switch_to_thread. | |
15685 | ||
78f2c40a PA |
15686 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15687 | ||
15688 | * remote.c (remote_target::remote_add_inferior): Don't bind a | |
15689 | process to the current inferior if the current inferior is already | |
15690 | bound to a process. | |
15691 | ||
e7af6c70 TBA |
15692 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
15693 | Pedro Alves <palves@redhat.com> | |
15694 | ||
15695 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: | |
15696 | If no process is specified, return null_ptid instead of | |
15697 | inferior_ptid. | |
15698 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / | |
15699 | TARGET_WAITKIND_SIGNALLED with no pid. | |
15700 | ||
31ba933e PA |
15701 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15702 | ||
15703 | * remote.c (first_remote_resumed_thread): New. | |
15704 | (remote_target::wait_as): Use it as default event_ptid instead of | |
15705 | inferior_ptid. | |
15706 | ||
735fc2ca PA |
15707 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15708 | ||
15709 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. | |
15710 | ||
c17e02e1 PA |
15711 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15712 | ||
15713 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is | |
15714 | not -1. | |
15715 | ||
ab1ddbcf PA |
15716 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15717 | ||
15718 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a | |
15719 | ptid to get_last_target_status. | |
15720 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a | |
15721 | ptid to get_last_target_status. | |
15722 | * infcmd.c (continue_command): Don't pass a target_waitstatus to | |
15723 | get_last_target_status. | |
15724 | (info_program_command): Don't pass a target_waitstatus to | |
15725 | get_last_target_status. | |
15726 | * infrun.c (init_wait_for_inferior): Use | |
15727 | nullify_last_target_wait_ptid. | |
15728 | (get_last_target_status): Handle nullptr arguments. | |
15729 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. | |
15730 | (print_stop_event): Don't pass a ptid to get_last_target_status. | |
15731 | (normal_stop): Don't pass a ptid to get_last_target_status. | |
15732 | * infrun.h (get_last_target_status, set_last_target_status): Move | |
15733 | comments here and update. | |
15734 | (nullify_last_target_wait_ptid): Declare. | |
15735 | * linux-fork.c (fork_load_infrun_state): Remove local extern | |
15736 | declaration of nullify_last_target_wait_ptid. | |
15737 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus | |
15738 | to get_last_target_status. | |
15739 | ||
f3f8ece4 PA |
15740 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15741 | ||
15742 | * gdbthread.h (scoped_restore_current_thread) | |
15743 | <dont_restore, restore, m_dont_restore>: Declare. | |
15744 | * thread.c (thread_alive): Add assertion. Return bool. | |
15745 | (switch_to_thread_if_alive): New. | |
15746 | (prune_threads): Switch inferior/thread. | |
15747 | (print_thread_info_1): Switch thread before calling target methods. | |
15748 | (scoped_restore_current_thread::restore): New, factored out from | |
15749 | ... | |
15750 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
15751 | ... this. | |
15752 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
15753 | Add assertion. | |
15754 | (thread_apply_all_command, thread_select): Use | |
15755 | switch_to_thread_if_alive. | |
15756 | * infrun.c (proceed, restart_threads, handle_signal_stop) | |
15757 | (switch_back_to_stepped_thread): Switch current thread before | |
15758 | calling target methods. | |
15759 | ||
db2d40f7 PA |
15760 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15761 | ||
15762 | * inferior.c (switch_to_inferior_no_thread): New function, | |
15763 | factored out from ... | |
15764 | (inferior_command): ... here. | |
15765 | * inferior.h (switch_to_inferior_no_thread): Declare. | |
15766 | * mi/mi-main.c (run_one_inferior): Use | |
15767 | switch_to_inferior_no_thread. | |
15768 | ||
bd420a2d PA |
15769 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15770 | ||
15771 | * infcmd.c (kill_command): Remove dead code. | |
15772 | ||
ddf5db90 PA |
15773 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15774 | ||
15775 | * remote.c (remote_target::mourn_inferior): No longer check | |
15776 | whether the target is running. | |
15777 | ||
5018ce90 PA |
15778 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15779 | ||
15780 | * corelow.c (core_target::has_execution): Change parameter type to | |
15781 | inferior pointer. | |
15782 | * inferior.c (number_of_live_inferiors): Use | |
15783 | inferior::has_execution instead of target_has_execution_1. | |
15784 | * inferior.h (inferior::has_execution): New. | |
15785 | * linux-thread-db.c (thread_db_target::update_thread_list): Use | |
15786 | inferior::has_execution instead of target_has_execution_1. | |
15787 | * process-stratum-target.c | |
15788 | (process_stratum_target::has_execution): Change parameter type to | |
15789 | inferior pointer. Check the inferior's PID instead of | |
15790 | inferior_ptid. | |
15791 | * process-stratum-target.h | |
15792 | (process_stratum_target::has_execution): Change parameter type to | |
15793 | inferior pointer. | |
15794 | * record-full.c (record_full_core_target::has_execution): Change | |
15795 | parameter type to inferior pointer. | |
15796 | * target.c (target_has_execution_1): Change parameter type to | |
15797 | inferior pointer. | |
15798 | (target_has_execution_current): Adjust. | |
15799 | * target.h (target_ops::has_execution): Change parameter type to | |
15800 | inferior pointer. | |
15801 | (target_has_execution_1): Change parameter type to inferior | |
15802 | pointer. Change return type to bool. | |
15803 | * tracefile.h (tracefile_target::has_execution): Change parameter | |
15804 | type to inferior pointer. | |
15805 | ||
74375d18 PA |
15806 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15807 | ||
15808 | * exceptions.c (print_flush): Remove current_top_target() check. | |
15809 | ||
acdf84a6 PA |
15810 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15811 | ||
15812 | * remote.c (show_remote_exec_file): Show the current inferior's | |
15813 | exec-file instead of the command variable's value. | |
15814 | ||
ec506636 PA |
15815 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15816 | ||
15817 | * record-full.c (record_full_resume_ptid): New global. | |
15818 | (record_full_target::resume): Set it. | |
15819 | (record_full_wait_1): Use record_full_resume_ptid instead of | |
15820 | inferior_ptid. | |
15821 | ||
873657b9 PA |
15822 | 2020-01-10 Pedro Alves <palves@redhat.com> |
15823 | ||
15824 | * gdbthread.h (scoped_restore_current_thread) | |
15825 | <dont_restore, restore, m_dont_restore>: Declare. | |
15826 | * thread.c (thread_alive): Add assertion. Return bool. | |
15827 | (switch_to_thread_if_alive): New. | |
15828 | (prune_threads): Switch inferior/thread. | |
15829 | (print_thread_info_1): Switch thread before calling target methods. | |
15830 | (scoped_restore_current_thread::restore): New, factored out from | |
15831 | ... | |
15832 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
15833 | ... this. | |
15834 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
15835 | Add assertion. | |
15836 | (thread_apply_all_command, thread_select): Use | |
15837 | switch_to_thread_if_alive. | |
15838 | ||
7f0ae84c GB |
15839 | 2020-01-10 George Barrett <bob@bob131.so> |
15840 | ||
15841 | * stap-probe.c (stap_modify_semaphore): Don't check for null | |
15842 | semaphores. | |
15843 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check | |
15844 | for null semaphores. | |
15845 | ||
f5a7c406 AB |
15846 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
15847 | ||
15848 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update | |
15849 | all source windows, and maintain horizontal scroll status while | |
15850 | doing so. | |
15851 | ||
9ae6bf64 TT |
15852 | 2020-01-09 Tom Tromey <tom@tromey.com> |
15853 | ||
15854 | PR tui/18932: | |
15855 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call | |
15856 | update_source_window, not print_source_lines. | |
15857 | ||
b2efe70c AB |
15858 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
15859 | ||
15860 | * tui/tui.c (tui_enable): Register tui hooks after calling | |
15861 | tui_display_main. | |
15862 | ||
5f23a082 CB |
15863 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
15864 | ||
15865 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. | |
15866 | ||
3061113b SM |
15867 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> |
15868 | ||
15869 | * thread.c (print_thread_info_1): Fix indentation. | |
15870 | ||
57d75002 CB |
15871 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
15872 | ||
15873 | * symtab.c (general_symbol_info::compute_and_set_names): Move the | |
15874 | unique_xmalloc_ptr outside the if to always free the demangled name. | |
15875 | ||
6a053cb1 TT |
15876 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
15877 | ||
15878 | * xcoffread.c (enter_line_range, read_xcoff_symtab) | |
15879 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. | |
15880 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. | |
15881 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): | |
15882 | Remove. | |
15883 | (section_offsets): New typedef. | |
15884 | * symtab.c (fixup_section, get_msymbol_address): Update. | |
15885 | * symmisc.c (dump_msymbols): Update. | |
15886 | * symfile.h (relative_addr_info_to_section_offsets) | |
15887 | (symfile_map_offsets_to_segments): Update. | |
15888 | * symfile.c (build_section_addr_info_from_objfile) | |
15889 | (init_objfile_sect_indices): Update. | |
15890 | (struct place_section_arg): Change type of "offsets". | |
15891 | (place_section): Update. | |
15892 | (relative_addr_info_to_section_offsets): Change type of | |
15893 | "section_offsets". Remove "num_sections" parameter. | |
15894 | (default_symfile_offsets, syms_from_objfile_1) | |
15895 | (set_objfile_default_section_offset): Update. | |
15896 | (reread_symbols): No need to preserve section offsets by hand. | |
15897 | (symfile_map_offsets_to_segments): Change type of "offsets". | |
15898 | * stap-probe.c (relocate_address): Update. | |
15899 | * stabsread.h (process_one_symbol): Update. | |
15900 | * solib-target.c (struct lm_info_target) <offsets>: Change type. | |
15901 | (solib_target_relocate_section_addresses): Update. | |
15902 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): | |
15903 | Update. | |
15904 | * solib-frv.c (frv_relocate_main_executable): Update. | |
15905 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. | |
15906 | * solib-aix.c (solib_aix_get_section_offsets): Change return | |
15907 | type. | |
15908 | (solib_aix_solib_create_inferior_hook): Update. | |
15909 | * remote.c (remote_target::get_offsets): Update. | |
15910 | * psymtab.c (find_pc_sect_psymtab): Update. | |
15911 | * psympriv.h (struct partial_symbol) <address, text_low, | |
15912 | text_high>: Update. | |
15913 | * objfiles.h (obj_section_offset): Update. | |
15914 | (struct objfile) <section_offsets>: Change type. | |
15915 | <num_sections>: Remove. | |
15916 | (objfile_relocate): Update. | |
15917 | * objfiles.c (entry_point_address_query): Update | |
15918 | (relocate_one_symbol): Change type of "section_offsets". | |
15919 | (objfile_relocate1, objfile_relocate1): Change type of | |
15920 | "new_offsets". | |
15921 | (objfile_rebase1): Update. | |
15922 | * mipsread.c (mipscoff_symfile_read): Update. | |
15923 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" | |
15924 | parameter. | |
15925 | * mdebugread.c (parse_symbol): Change type of "section_offsets". | |
15926 | (parse_external, psymtab_to_symtab_1): Update. | |
15927 | * machoread.c (macho_symfile_offsets): Update. | |
15928 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
15929 | * hppa-tdep.c (read_unwind_info): Update. | |
15930 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. | |
15931 | * dwarf2read.c (create_addrmap_from_index) | |
15932 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
15933 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
15934 | (add_partial_subprogram, process_full_comp_unit) | |
15935 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
15936 | (read_call_site_scope, dwarf2_rnglists_process) | |
15937 | (dwarf2_ranges_process, dwarf2_ranges_read) | |
15938 | (dwarf_decode_lines_1, var_decode_location, new_symbol) | |
15939 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): | |
15940 | Update. | |
15941 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): | |
15942 | Update. | |
15943 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. | |
15944 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. | |
15945 | (process_one_symbol): Change type of "section_offsets". | |
15946 | * ctfread.c (get_objfile_text_range): Update. | |
15947 | * coffread.c (coff_symtab_read, enter_linenos) | |
15948 | (process_coff_symbol): Update. | |
15949 | * coff-pe-read.c (add_pe_forwarded_sym): Update. | |
15950 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. | |
15951 | ||
456e800a TT |
15952 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
15953 | ||
15954 | * dwarf2read.c (parse_macro_definition): Use std::string. | |
15955 | (parse_macro_definition): Likewise. | |
15956 | ||
6dfa2fc2 TT |
15957 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
15958 | ||
15959 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. | |
15960 | (ATTR_ALLOC_CHUNK): Remove. | |
15961 | ||
421d1616 TT |
15962 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
15963 | ||
15964 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. | |
15965 | ||
43816ebc TT |
15966 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
15967 | ||
15968 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. | |
15969 | (dwarf2_compute_name, open_dwo_file): Likewise. | |
15970 | (process_enumeration_scope): Use std::vector. | |
15971 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. | |
15972 | (partial_die_info::fixup, dwarf2_start_subfile) | |
15973 | (guess_full_die_structure_name, dwarf2_name): Likewise. | |
15974 | (determine_prefix): Update. | |
15975 | (guess_full_die_structure_name): Make return type const. | |
15976 | (partial_die_full_name): Return unique_xmalloc_ptr. | |
15977 | (DW_FIELD_ALLOC_CHUNK): Remove. | |
15978 | ||
4212d509 TT |
15979 | 2020-01-07 Tom Tromey <tromey@adacore.com> |
15980 | ||
15981 | PR build/24937: | |
15982 | * stap-probe.c (class stap_static_probe_ops): Add constructor. | |
15983 | ||
06a6207a JT |
15984 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
15985 | ||
15986 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. | |
15987 | ||
153d79c4 AB |
15988 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
15989 | ||
15990 | * stack.c (print_frame_info): Move disassemble_next_line code | |
15991 | inside source_print block. | |
15992 | ||
66182876 EZ |
15993 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
15994 | ||
15995 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of | |
15996 | gdb/signals.h, as we are now using native signal symbols. | |
15997 | ||
cbfa8581 SV |
15998 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
15999 | ||
16000 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid | |
16001 | overflow by an early check of content vs threshold. | |
aac66a4c | 16002 | * tui/tui-source.c (tui_source_window::line_is_displayed): |
cbfa8581 SV |
16003 | Likewise. |
16004 | ||
3f602821 EZ |
16005 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
16006 | ||
16007 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. | |
16008 | ||
a08c904d JT |
16009 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
16010 | ||
16011 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the | |
16012 | export table if no section contains it's RVA. | |
16013 | ||
89a65580 EZ |
16014 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
16015 | ||
16016 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. | |
16017 | ||
8b7fcda2 HD |
16018 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> |
16019 | ||
16020 | * source.c (print_source_lines_base): Set last_line_listed. | |
16021 | ||
a61b4f69 SV |
16022 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
16023 | ||
16024 | * tui/tui-disasm.c: Remove trailing spaces. | |
16025 | ||
559e7e50 EZ |
16026 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
16027 | Pedro Alves <palves@redhat.com> | |
16028 | ||
16029 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. | |
16030 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. | |
16031 | (windows_gdb_signal_to_target): New function, uses the above | |
16032 | enumeration to convert GDB internal signal codes to equivalent | |
16033 | Windows codes. | |
16034 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. | |
16035 | * windows-nat.c: Include "gdb_wait.h". | |
16036 | (get_windows_debug_event): Extract the fatal exception from the | |
16037 | exit status and convert to the equivalent Posix signal number. | |
16038 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the | |
16039 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. | |
16040 | * gdbsupport/gdb_wait.c: New file, implements | |
16041 | windows_status_to_termsig. | |
16042 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) | |
16043 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. | |
16044 | ||
f2302a34 AB |
16045 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> |
16046 | ||
16047 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not | |
16048 | show_layout. | |
16049 | ||
6a5206eb LM |
16050 | 2020-01-05 Luis Machado <luis.machado@linaro.org> |
16051 | ||
16052 | * aarch64-linux-nat.c | |
16053 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 | |
16054 | and bfd_mach_aarch64. | |
16055 | ||
6ec1d75e PW |
16056 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
16057 | ||
16058 | * ui-file.c (stdio_file::can_emit_style_escape) | |
16059 | (tee_file::can_emit_style_escape): Ensure style is used also on | |
16060 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly | |
16061 | to gdb_stdout. | |
16062 | * main.c (set_gdb_data_directory): Use file style to output the | |
16063 | warning that the given pathname is not a directory. | |
16064 | * top.c (show_history_filename, gdb_safe_append_history) | |
16065 | (show_gdb_datadir): Use file style. | |
16066 | ||
44f81a76 HD |
16067 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
16068 | ||
16069 | * solib-target.c (struct lm_info_target): | |
16070 | Change offsets to be a unique_xmalloc_ptr. | |
16071 | (solib_target_relocate_section_addresses): Update. | |
16072 | ||
25057eb0 HD |
16073 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
16074 | ||
16075 | * windows-nat.c (windows_clear_solib): Free so_list linked list. | |
16076 | ||
6e2118f5 BE |
16077 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
16078 | ||
16079 | * MAINTAINERS (Write After Approval): Add myself. | |
16080 | ||
8133c7dc LM |
16081 | 2020-01-02 Luis Machado <luis.machado@linaro.org> |
16082 | ||
16083 | * proc-service.c (get_ps_regcache): Remove reference to obsolete | |
16084 | Cell BE architecture. | |
16085 | * target.h (struct target_ops) <thread_architecture>: Likewise. | |
16086 | ||
48189bec HD |
16087 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
16088 | ||
16089 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
16090 | ||
ead1063b HD |
16091 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
16092 | ||
16093 | * MAINTAINERS (Write After Approval): Add myself. | |
16094 | ||
e5d78223 JB |
16095 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
16096 | ||
16097 | * gdbarch.sh: Update copyright year range of generated files. | |
16098 | ||
b811d2c2 JB |
16099 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
16100 | ||
16101 | Update copyright year range in all GDB files. | |
16102 | ||
5f4def5c JB |
16103 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
16104 | ||
16105 | * copyright.py: Convert to Python 3. | |
16106 | ||
51fd4002 JB |
16107 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
16108 | ||
16109 | * copyright.py: Adapt after move of gnulib directory from gdb | |
16110 | directory to toplevel directory. | |
16111 | ||
5fb651f2 JB |
16112 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
16113 | ||
16114 | * copyright.py (main): Exit if run from the wrong directory. | |
16115 | ||
5dd8bf88 JB |
16116 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
16117 | ||
16118 | * top.c (print_gdb_version): Change copyright year to 2020. | |
16119 | ||
9f71dacb | 16120 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
3d34df0a | 16121 | |
9f71dacb | 16122 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. |
3d34df0a | 16123 | |
9f71dacb | 16124 | For older changes see ChangeLog-2019. |
c906108c SS |
16125 | \f |
16126 | Local Variables: | |
16127 | mode: change-log | |
16128 | left-margin: 8 | |
16129 | fill-column: 74 | |
16130 | version-control: never | |
57da7796 | 16131 | coding: utf-8 |
c906108c | 16132 | End: |