Commit | Line | Data |
---|---|---|
3ca58cde SDJ |
1 | 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com> |
2 | ||
3 | * stap-probe.c (stap_get_opcode): Update comment. | |
4 | (stap_get_expected_argument_type): Likewise. | |
5 | (handle_stap_probe): Likewise. | |
6 | ||
af2d9bee SDJ |
7 | 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com> |
8 | ||
9 | * i386-tdep.c (i386_stap_parse_special_token_triplet): Change | |
10 | return type to 'bool'. Adjust comment. Use 'bool' when | |
11 | appropriate. | |
12 | (i386_stap_parse_special_token_three_arg_disp): Likewise. | |
13 | * stap-probe.c (stap_parse_argument_1): Likewise. | |
14 | (stap_is_operator): Likewise. | |
15 | (stap_is_generic_prefix): Likewise. | |
16 | (stap_is_register_prefix): Likewise. | |
17 | (stap_is_register_indirection_prefix): Likewise. | |
18 | (stap_is_integer_prefix): Likewise. | |
19 | (stap_generic_check_suffix): Likewise. | |
20 | (stap_check_integer_suffix): Likewise. | |
21 | (stap_check_register_suffix): Likewise. | |
22 | (stap_check_register_indirection_suffix): Likewise. | |
23 | (stap_parse_register_operand): Likewise. | |
24 | (stap_parse_single_operand): Likewise. | |
25 | (stap_parse_argument_1): Likewise. | |
26 | (stap_probe::get_argument_count): Likewise. | |
27 | (stap_is_operator): Likewise. | |
28 | ||
61c9c421 TT |
29 | 2019-05-16 Tom Tromey <tromey@adacore.com> |
30 | ||
31 | * darwin-nat.c (thread_info_from_private_thread_info): Add struct | |
32 | keyword to foreach. | |
33 | ||
9ddc1af1 SM |
34 | 2019-05-15 Simon Marchi <simon.marchi@efficios.com> |
35 | ||
36 | * linux-thread-db.c (try_thread_db_load_1): Change return type | |
37 | to bool. | |
38 | (try_thread_db_load): Likewise. | |
39 | (try_thread_db_load_from_pdir_1): Likewise. | |
40 | (try_thread_db_load_from_pdir): Likewise. | |
41 | (try_thread_db_load_from_sdir): Likewise. | |
42 | (try_thread_db_load_from_dir): Likewise. | |
43 | (thread_db_load_search): Likewise. | |
44 | (has_libpthread): Likewise. | |
45 | (thread_db_load): Likewise. | |
46 | ||
7bede828 SDJ |
47 | 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com> |
48 | ||
49 | Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192 | |
50 | * dwarf2read.c (parse_macro_definition): Check whether 'body' is | |
51 | NULL, and complain/return if that's the case. | |
52 | ||
c5358db4 JD |
53 | 2019-05-15 John Darrington <john@darrington.wattle.id.au> |
54 | ||
55 | * s12z-tdep.c (push_pull_get_stack_adjustment): New function. | |
56 | (advance, posn, abstract_read_memory): New functions. | |
57 | [struct mem_read_abstraction]: New struct. | |
58 | (s12z_frame_cache): Use opcodes API to interpret stack frame code. | |
59 | ||
c408a94f TT |
60 | 2019-05-14 Tom Tromey <tromey@adacore.com> |
61 | ||
62 | * ada-lang.c (coerce_unspec_val_to_type): Only set address when | |
63 | value is not lval_memory. | |
64 | ||
e7bd7fba TT |
65 | 2019-05-14 Tom Tromey <tromey@adacore.com> |
66 | ||
67 | * solib.c (info_sharedlibrary_command): Style the file name. | |
68 | ||
a6d0f249 AH |
69 | 2019-05-14 Alan Hayward <alan.hayward@arm.com> |
70 | ||
71 | * aarch64-tdep.c (aarch64_vnh_type): Add half view. | |
72 | (aarch64_vnv_type): Likewise. | |
73 | * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF. | |
74 | * common/tdesc.c: Likewise. | |
75 | * common/tdesc.h (enum tdesc_type_kind): Likewise. | |
76 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate. | |
77 | * features/aarch64-fpu.xml: Add ieee half view. | |
78 | * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise. | |
79 | * gdbtypes.c (gdbtypes_post_init): Add builtin_half | |
80 | * gdbtypes.h (struct builtin_type): Likewise. | |
81 | (struct objfile_type): Likewise. | |
82 | ||
66b8bb74 SM |
83 | 2019-05-12 Paul Naert <paul.naert@polymtl.ca> |
84 | ||
85 | * language.c (language_sniff_from_mangled_name): Fix "langauge" | |
86 | typo. | |
87 | * location.h (string_to_event_location): Likewise. | |
88 | ||
21c219fd JB |
89 | 2019-05-11 Joel Brobecker <brobecker@adacore.com> |
90 | ||
91 | GDB 8.3 released. | |
92 | ||
13674803 SM |
93 | 2019-05-10 Simon Marchi <simon.marchi@efficios.com> |
94 | ||
95 | * breakpoint.h (fix_multi_location_breakpoint_output_globally): | |
96 | New variable declaration. | |
97 | * breakpoint.c (fix_multi_location_breakpoint_output_globally): | |
98 | New variable. | |
99 | (print_one_breakpoint): Use ui_out::test_flags and new global | |
100 | variable to compute use_fixed_output. | |
101 | * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed): | |
102 | Remove. | |
103 | * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove. | |
104 | (mi_multi_location_breakpoint_output_fixed): Remove. | |
105 | (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the | |
106 | new variable. | |
107 | * mi/mi-out.c (mi_ui_out::mi_ui_out): Set | |
108 | fix_multi_location_breakpoint_output flag if version >= 3. | |
109 | * ui-out.h (enum ui_out_flag) | |
110 | <fix_multi_location_breakpoint_output>: New enumerator. | |
111 | ||
a9eac7f9 SM |
112 | 2019-05-10 Simon Marchi <simon.marchi@efficios.com> |
113 | ||
114 | * contrib/cc-with-tweaks.sh: Validate dwz's work. | |
115 | ||
71bed2db TT |
116 | 2019-05-10 Tom Tromey <tromey@adacore.com> |
117 | ||
118 | * ada-lang.c (catch_ada_completer): New function. | |
119 | (_initialize_ada_language): Use it. | |
120 | ||
24c54127 TT |
121 | 2019-05-10 Tom Tromey <tromey@adacore.com> |
122 | ||
123 | * thread.c (print_thread_info): Make "requested_threads" const. | |
124 | * gdbthread.h (print_thread_info): Make "requested_threads" | |
125 | const. | |
126 | * ada-tasks.c (print_ada_task_info): Make "taskno_str" const. | |
127 | * ada-lang.h (print_ada_task_info): Make "taskno_str" const. | |
128 | ||
7a102139 TT |
129 | 2019-05-08 Tom Tromey <tom@tromey.com> |
130 | ||
131 | * gdbtypes.c (objfile_type_data): Change type. | |
132 | (objfile_type, _initialize_gdbtypes): Update. | |
133 | ||
924d79e2 TT |
134 | 2019-05-08 Tom Tromey <tom@tromey.com> |
135 | ||
136 | * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type. | |
137 | (dwarf2_frame_find_fde, dwarf2_build_frame_info) | |
138 | (_initialize_dwarf2_frame): Update. | |
139 | ||
4c58e337 TT |
140 | 2019-05-08 Tom Tromey <tom@tromey.com> |
141 | ||
142 | * objc-lang.c (objc_objfile_data): Change type. | |
143 | (find_methods): Update. | |
144 | (_initialize_objc_lang): Remove. | |
145 | ||
d772d2ab TT |
146 | 2019-05-08 Tom Tromey <tom@tromey.com> |
147 | ||
148 | * stabsread.c (rs6000_builtin_type_data): Change type. | |
149 | (rs6000_builtin_type, _initialize_stabsread): Update. | |
150 | ||
d11d83f4 TT |
151 | 2019-05-08 Tom Tromey <tom@tromey.com> |
152 | ||
153 | * mips-tdep.c (mips_pdr_data): Remove. | |
154 | (_initialize_mips_tdep): Update. | |
155 | ||
9a73f0ad TT |
156 | 2019-05-08 Tom Tromey <tom@tromey.com> |
157 | ||
158 | * hppa-tdep.c (hppa_objfile_priv_data): Change type. | |
159 | (hppa_init_objfile_priv_data, read_unwind_info) | |
160 | (find_unwind_entry, _initialize_hppa_tdep): Update. | |
161 | ||
8127a2fa TT |
162 | 2019-05-08 Tom Tromey <tom@tromey.com> |
163 | ||
164 | * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type. | |
165 | (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table | |
166 | on obstack. | |
167 | (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update. | |
168 | ||
91d3055d TT |
169 | 2019-05-08 Tom Tromey <tom@tromey.com> |
170 | ||
171 | * mdebugread.c (basic_type_data): Change type. | |
172 | (basic_type, _initialize_mdebugread): Update. | |
173 | ||
31930bd3 TT |
174 | 2019-05-08 Tom Tromey <tom@tromey.com> |
175 | ||
176 | * common/gdb_unique_ptr.h (struct noop_deleter): New. | |
177 | ||
bdb3ed9e TT |
178 | 2019-05-08 Tom Tromey <tom@tromey.com> |
179 | ||
180 | * nto-tdep.c (nto_inferior_data_reg): Change type. | |
181 | (nto_inferior_data): Update. | |
182 | (nto_inferior_data_cleanup, nto_new_inferior_data) | |
183 | (_initialize_nto_tdep): Remove. | |
184 | * nto-tdep.h (struct nto_inferior_data): Add initializers. | |
185 | ||
f37b313d TT |
186 | 2019-05-08 Tom Tromey <tom@tromey.com> |
187 | ||
188 | * ada-lang.c (struct ada_inferior_data): Add initializers. | |
189 | (ada_inferior_data): Change type. | |
190 | (ada_inferior_data_cleanup): Remove. | |
191 | (get_ada_inferior_data, ada_inferior_exit) | |
192 | (struct ada_pspace_data): Add initializers, destructor. | |
193 | (ada_pspace_data_handle): Change type. | |
194 | (get_ada_pspace_data): Update. | |
195 | (ada_pspace_data_cleanup): Remove. | |
196 | ||
24699405 TT |
197 | 2019-05-08 Tom Tromey <tom@tromey.com> |
198 | ||
199 | * coffread.c (struct coff_symfile_info): Add initializers. | |
200 | (coff_objfile_data_key): Move lower. Change type. | |
201 | (coff_symfile_init, coff_symfile_read, _initialize_coffread): | |
202 | Update. | |
203 | (coff_free_info): Remove. | |
204 | ||
d4e05d2f TT |
205 | 2019-05-08 Tom Tromey <tom@tromey.com> |
206 | ||
207 | * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers. | |
208 | (fbsd_pspace_data_handle): Move lower. Change type. | |
209 | (get_fbsd_pspace_data): Update. | |
210 | (fbsd_pspace_data_cleanup): Remove. | |
211 | (_initialize_fbsd_tdep): Update. | |
212 | ||
14ef6690 TT |
213 | 2019-05-08 Tom Tromey <tom@tromey.com> |
214 | ||
215 | * ada-tasks.c (ada_tasks_pspace_data_handle): Change type. | |
216 | (get_ada_tasks_pspace_data): Update. | |
217 | (ada_tasks_pspace_data_cleanup): Remove. | |
218 | (_initialize_tasks): Update. | |
219 | (ada_tasks_inferior_data_handle): Change type. | |
220 | (get_ada_tasks_inferior_data): Update. | |
221 | (ada_tasks_inferior_data_cleanup): Remove. | |
222 | (struct ada_tasks_pspace_data): Add initializers. | |
223 | ||
814cf43a TT |
224 | 2019-05-08 Tom Tromey <tom@tromey.com> |
225 | ||
226 | * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type. | |
227 | * symfile-debug.c (debug_sym_get_probes): Change type. | |
228 | * stap-probe.c (handle_stap_probe): | |
229 | (stap_static_probe_ops::get_probes): Change type. | |
230 | * probe.h (class static_probe_ops) <get_probes>: Change type. | |
231 | * probe.c (class any_static_probe_ops) <get_probes>: Change type. | |
232 | (parse_probes_in_pspace): Update. | |
233 | (find_probes_in_objfile, find_probe_by_pc, collect_probes): | |
234 | Update. | |
235 | (any_static_probe_ops::get_probes): Change type. | |
236 | * elfread.c (elfread_data): New typedef. | |
237 | (probe_key): Change type. | |
238 | (elf_get_probes): Likewise. Update. | |
239 | (probe_key_free): Remove. | |
240 | (_initialize_elfread): Update. | |
241 | * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>: | |
242 | Change type. | |
243 | (dtrace_process_dof_probe, dtrace_process_dof) | |
244 | (dtrace_static_probe_ops::get_probe): Change type. | |
245 | ||
02dc647e TT |
246 | 2019-05-08 Tom Tromey <tom@tromey.com> |
247 | ||
248 | * xcoffread.c (struct xcoff_symfile_info): Rename from | |
249 | coff_symfile_info. Add initializers. | |
250 | (xcoff_objfile_data_key): Move lower. Change type. | |
251 | (XCOFF_DATA): Rewrite. | |
252 | (xcoff_free_info): Remove. | |
253 | (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab) | |
254 | (read_symbol, read_symbol_lineno, find_linenos, init_stringtab) | |
255 | (xcoff_initial_scan): Update. | |
256 | ||
09232438 TT |
257 | 2019-05-08 Tom Tromey <tom@tromey.com> |
258 | ||
259 | * solib-svr4.c (struct svr4_info): Add initializers and | |
260 | destructor. | |
261 | <probes_table>: Now an htab_up. | |
262 | (solib_svr4_pspace_data): Change type. | |
263 | (free_probes_table): Simplify. | |
264 | (~svr4_info): Rename from svr4_pspace_data_cleanup. | |
265 | (get_svr4_info, probes_table_htab_remove_objfile_probes) | |
266 | (probes_table_remove_objfile_probes, register_solib_event_probe) | |
267 | (solib_event_probe_at, svr4_update_solib_event_breakpoint) | |
268 | (_initialize_svr4_solib): Update. | |
269 | ||
7b4a314f TT |
270 | 2019-05-08 Tom Tromey <tom@tromey.com> |
271 | ||
272 | * remote.c (remote_pspace_data): Change type. | |
273 | (remote_pspace_data_cleanup): Remove. | |
274 | (get_remote_exec_file, set_pspace_remote_exec_file) | |
275 | (_initialize_remote): Update. | |
276 | ||
51d3063a TT |
277 | 2019-05-08 Tom Tromey <tom@tromey.com> |
278 | ||
279 | * breakpoint.c (breakpoint_objfile_key): Change type. | |
280 | (get_breakpoint_objfile_data): Update. | |
281 | (free_breakpoint_objfile_data): Remove. | |
282 | (_initialize_breakpoint): Update. | |
283 | ||
89fb8848 TT |
284 | 2019-05-08 Tom Tromey <tom@tromey.com> |
285 | ||
286 | * linux-tdep.c (struct linux_info): Add initializers. | |
287 | (linux_inferior_data): Move. Change type. | |
288 | (invalidate_linux_cache_inf): Update. | |
289 | (linux_inferior_data_cleanup): Remove. | |
290 | (get_linux_inferior_data, _initialize_linux_tdep): Update. | |
291 | ||
e9b89e2d TT |
292 | 2019-05-08 Tom Tromey <tom@tromey.com> |
293 | ||
294 | * auxv.c (auxv_inferior_data): Move. Change type. | |
295 | (auxv_inferior_data_cleanup): Remove. | |
296 | (invalidate_auxv_cache_inf): Rewrite. | |
297 | (get_auxv_inferior_data, _initialize_auxv): Update. | |
298 | ||
8c42777c TT |
299 | 2019-05-08 Tom Tromey <tom@tromey.com> |
300 | ||
301 | * symfile-debug.c (struct debug_sym_fns_data): Add initializers. | |
302 | (symfile_debug_objfile_data_key): Change type. | |
303 | (symfile_debug_installed, debug_qf_has_symbols) | |
304 | (debug_qf_find_last_source_symtab) | |
305 | (debug_qf_forget_cached_source_info) | |
306 | (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol) | |
307 | (debug_qf_print_stats, debug_qf_dump) | |
308 | (debug_qf_expand_symtabs_for_function) | |
309 | (debug_qf_expand_all_symtabs) | |
310 | (debug_qf_expand_symtabs_with_fullname) | |
311 | (debug_qf_map_matching_symbols) | |
312 | (debug_qf_expand_symtabs_matching) | |
313 | (debug_qf_find_pc_sect_compunit_symtab) | |
314 | (debug_qf_map_symbol_filenames) | |
315 | (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes) | |
316 | (debug_sym_new_init, debug_sym_init, debug_sym_read) | |
317 | (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets) | |
318 | (debug_sym_read_linetable, debug_sym_relocate): Update. | |
319 | (symfile_debug_free_objfile): Remove. | |
320 | (install_symfile_debug_logging, _initialize_symfile_debug): | |
321 | Update. | |
322 | ||
5bfd760d TT |
323 | 2019-05-08 Tom Tromey <tom@tromey.com> |
324 | ||
325 | * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from | |
326 | allocate_on_obstack. | |
327 | * dwarf2read.c (dwarf2_objfile_data_key): Change type. | |
328 | (get_dwarf2_per_objfile): Update. | |
329 | (set_dwarf2_per_objfile): Remove. | |
330 | (dwarf2_has_info, dwarf2_get_section_info): Update. | |
331 | (dwarf2_free_objfile): Remove. | |
332 | (_initialize_dwarf2_read): Update. | |
333 | ||
e85e19b4 TT |
334 | 2019-05-08 Tom Tromey <tom@tromey.com> |
335 | ||
336 | * auto-load.c (struct auto_load_pspace_info): Add destructor and | |
337 | initializers. | |
338 | <unsupported_script_warning_printed, | |
339 | script_not_found_warning_printed>: Now bool. | |
340 | (auto_load_pspace_data): Change type. | |
341 | (~auto_load_pspace_info): Rename from | |
342 | auto_load_pspace_data_cleanup. | |
343 | (get_auto_load_pspace_data, init_loaded_scripts_info) | |
344 | (clear_section_scripts, maybe_print_unsupported_script_warning) | |
345 | (maybe_print_script_not_found_warning, _initialize_auto_load): | |
346 | Update. | |
347 | ||
f6aa7436 TT |
348 | 2019-05-08 Tom Tromey <tom@tromey.com> |
349 | ||
350 | * objfiles.c (objfile_pspace_info): Add destructor and | |
351 | initializers. | |
352 | (objfiles_pspace_data): Change type. | |
353 | (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup. | |
354 | (get_objfile_pspace_data): Update. | |
355 | (objfiles_bfd_data): Change type. | |
356 | (get_objfile_bfd_data): Update. | |
357 | (objfile_bfd_data_free, _initialize_objfiles): Remove. | |
358 | ||
6ae614f6 TT |
359 | 2019-05-08 Tom Tromey <tom@tromey.com> |
360 | ||
361 | * break-catch-syscall.c (catch_syscall_inferior_data): Move. | |
362 | Change type. | |
363 | (get_catch_syscall_inferior_data): Update. | |
364 | (catch_syscall_inferior_data_cleanup): Remove. | |
365 | (_initialize_break_catch_syscall): Update. | |
366 | ||
6509b8eb TT |
367 | 2019-05-08 Tom Tromey <tom@tromey.com> |
368 | ||
369 | * inflow.c (struct terminal_info): Add destructor and | |
370 | initializers. | |
371 | (inflow_inferior_data): Change type. | |
372 | (~terminal_info): Rename from inflow_inferior_data_cleanup. | |
373 | (get_inflow_inferior_data, inflow_inferior_exit) | |
374 | (swap_terminal_info, _initialize_inflow): Update. | |
375 | ||
35632941 TT |
376 | 2019-05-08 Tom Tromey <tom@tromey.com> |
377 | ||
378 | * target-dcache.c (target_dcache_cleanup): Remove. | |
379 | (target_dcache_aspace_key): Change type. | |
380 | (target_dcache_init_p, target_dcache_invalidate) | |
381 | (target_dcache_get, target_dcache_get_or_init) | |
382 | (_initialize_target_dcache): Update. | |
383 | * dcache.h (struct dcache_deleter): New. | |
384 | ||
3017b94d TT |
385 | 2019-05-08 Tom Tromey <tom@tromey.com> |
386 | ||
387 | * symtab.c (struct symbol_cache): Add destructor and | |
388 | initializers. | |
389 | (symbol_cache_key): Move. Change type. | |
390 | (make_symbol_cache, free_symbol_cache): Remove. | |
391 | (get_symbol_cache): Update. | |
392 | (symbol_cache_cleanup): Remove. | |
393 | (ALL_PSPACES, symbol_cache_flush) | |
394 | (maintenance_print_symbol_cache) | |
395 | (maintenance_print_symbol_cache_statistics, _initialize_symtab): | |
396 | Update. | |
397 | ||
a32ad8c5 TT |
398 | 2019-05-08 Tom Tromey <tom@tromey.com> |
399 | ||
400 | * symtab.c (struct main_info): Add destructor and initializers. | |
401 | (main_progspace_key): Move. Change type. | |
402 | (get_main_info): Update. | |
403 | (main_info_cleanup): Remove. | |
404 | (_initialize_symtab): Update. | |
405 | ||
5f6e90a0 TT |
406 | 2019-05-08 Tom Tromey <tom@tromey.com> |
407 | ||
408 | * registry.h (DECLARE_REGISTRY): Define the _key class. | |
409 | ||
1bd0c6e4 AB |
410 | 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com> |
411 | ||
412 | * NEWS: Merge two 'New commands' sections. | |
413 | ||
2228ef77 XR |
414 | 2019-05-08 Joel Brobecker <brobecker@adacore.com> |
415 | ||
416 | * ada-valprint.c (ada_val_print_gnat_array): Remove language | |
417 | parameter and use Ada language definition instead. | |
418 | (ada_val_print_ptr): Remove unused language parameter. | |
419 | (ada_val_print_num): Remove language parameter and use Ada language | |
420 | definition instead. | |
421 | (ada_val_print_enum, ada_val_print_flt): Remove unused language | |
422 | parameter. | |
423 | (ada_val_print_struct_union, ada_val_print_ref): Remove language | |
424 | parameter and use Ada language definition instead. | |
425 | (ada_val_print_1): Update all ada_val_print_xxx calls. | |
426 | Remove language parameter. | |
427 | (ada_val_print): Update ada_val_print_1 call. | |
428 | ||
60fcc1c3 TT |
429 | 2019-05-08 Tom Tromey <tromey@adacore.com> |
430 | ||
431 | * remote.c (remote_hw_watchpoint_limit) | |
432 | (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit): | |
433 | Now static. | |
434 | ||
ed2b7c17 TT |
435 | 2019-05-08 Tom Tromey <tromey@adacore.com> |
436 | ||
437 | * maint.c (_initialize_maint_cmds): Move initialization code to | |
438 | remote.c. | |
439 | (watchdog, show_watchdog): Move to remote.c. | |
440 | * remote.c (watchdog, show_watchdog): Move from maint.c. Make | |
441 | "watchdog" static. | |
442 | (_initialize_remote): Move initialization code from maint.c. | |
443 | * defs.h (watchdog): Don't declare. | |
444 | ||
b0be6c91 TT |
445 | 2019-05-08 Tom Tromey <tromey@adacore.com> |
446 | ||
447 | * tui/tui-interp.c: Include main.h. | |
448 | * interps.c: Include main.h. | |
449 | * main.h (interpreter_p): Declare. | |
450 | * defs.h (interpreter_p): Don't declare. | |
451 | ||
587ee17b TT |
452 | 2019-05-08 Tom Tromey <tromey@adacore.com> |
453 | ||
454 | * dwarf2loc.c: Include dwarf2read.h. | |
455 | * defs.h (read_unsigned_leb128): Don't declare. | |
456 | * dwarf2read.h (read_unsigned_leb128): Declare. | |
457 | ||
ca1df239 TT |
458 | 2019-05-08 Tom Tromey <tromey@adacore.com> |
459 | ||
460 | * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a | |
461 | method. | |
462 | ||
99f20f08 TT |
463 | 2019-05-08 Tom Tromey <tromey@adacore.com> |
464 | ||
465 | * utils.c (fputs_maybe_filtered): Reset style after paging, even | |
466 | when no wrap column is set. | |
467 | ||
80e55b13 TT |
468 | 2019-05-08 Tom Tromey <tromey@adacore.com> |
469 | ||
470 | * c-lang.c (c_get_string): Handle non-C-style arrays. | |
471 | ||
9d3421af TT |
472 | 2019-05-08 Tom Tromey <tromey@adacore.com> |
473 | ||
474 | * typeprint.c (print_offset_data::update): Print the bit offset, | |
475 | not the number of bits remaining. | |
476 | ||
844333e2 TT |
477 | 2019-05-08 Tom Tromey <tromey@adacore.com> |
478 | ||
479 | * typeprint.c (print_offset_data::maybe_print_hole): Add extra | |
480 | padding at end of comment. | |
481 | ||
988915ee TT |
482 | 2019-05-08 Tom Tromey <tromey@adacore.com> |
483 | ||
484 | * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>: | |
485 | Compare main types. | |
486 | ||
26bfd823 TT |
487 | 2019-05-06 Tom Tromey <tom@tromey.com> |
488 | ||
489 | * common/scoped_mmap.c: Include common-defs.h. | |
490 | * common/scoped_mmap.h: Don't include config.h. | |
491 | ||
89055eaa TT |
492 | 2019-05-04 Tom Tromey <tom@tromey.com> |
493 | ||
494 | * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC. | |
495 | (struct aarch64_call_info): Add initializers. | |
496 | <si>: Now a std::vector. | |
497 | (pass_on_stack, aarch64_push_dummy_call): Update. | |
498 | ||
5da01df5 TT |
499 | 2019-05-04 Simon Marchi <simon.marchi@efficios.com> |
500 | Tom Tromey <tom@tromey.com> | |
501 | ||
502 | * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC. | |
503 | (ppc_threads): Now a std::vector. Now static. | |
504 | (hwdebug_find_thread_points_by_tid) | |
505 | (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit): | |
506 | Update. | |
507 | ||
fbdf05a1 TT |
508 | 2019-05-04 Tom Tromey <tom@tromey.com> |
509 | ||
510 | * arc-tdep.c (arc_tdesc_init): Return bool. | |
511 | ||
06d16ec9 TT |
512 | 2019-05-04 Tom Tromey <tom@tromey.com> |
513 | ||
514 | * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint): | |
515 | Use gdb_assert_not_reached. | |
516 | ||
9c056022 TT |
517 | 2019-05-04 Tom Tromey <tom@tromey.com> |
518 | ||
519 | * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use | |
520 | "false". | |
521 | ||
fa9c2a59 TT |
522 | 2019-05-04 Tom Tromey <tom@tromey.com> |
523 | ||
524 | * arc-tdep.c (arc_tdesc_init): Use bool. | |
525 | ||
e2eb806a TT |
526 | 2019-05-04 Tom Tromey <tom@tromey.com> |
527 | ||
528 | * stack.c (select_frame_for_mi): Use "false", not "FALSE". | |
529 | ||
6fe87677 TT |
530 | 2019-05-04 Tom Tromey <tom@tromey.com> |
531 | ||
532 | * cli/cli-cmds.c (valid_command_p): Return bool. | |
533 | ||
7f008c9e TT |
534 | 2019-05-04 Tom Tromey <tom@tromey.com> |
535 | ||
536 | * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool. | |
537 | * command.h (valid_user_defined_cmd_name_p): Channge return type. | |
538 | ||
b6484282 RT |
539 | 2019-05-04 Raul Tambre <raul@tambre.ee> |
540 | ||
541 | * python/lib/gdb/prompt.py (_ExtendedPrompt) | |
542 | <before_prompt_hook, get_show_string>: Fix incorrect use of 'is' | |
543 | operator for comparison. | |
544 | ||
af97b416 TT |
545 | 2019-05-04 Tom Tromey <tom@tromey.com> |
546 | ||
547 | * psymtab.c (psymbol_name_matches, match_partial_symbol) | |
548 | (lookup_partial_symbol, print_partial_symbols) | |
549 | (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash) | |
550 | (psymbol_compare): Update. | |
551 | (add_psymbol_to_bcache): Clear the entire psymbol. | |
552 | (maintenance_check_psymtabs): Update. | |
553 | * psympriv.h (struct partial_symbol): Don't derive from | |
554 | general_symbol_info. | |
555 | <obj_section, unrelocated_address, address, | |
556 | set_unrelocated_address>: Update. | |
557 | <ginfo>: New member. | |
558 | * dwarf-index-write.c (write_psymbols, debug_names::insert) | |
559 | (debug_names::write_psymbols): Update. | |
560 | ||
9d6d4be8 TV |
561 | 2019-05-04 Tom de Vries <tdevries@suse.de> |
562 | ||
563 | * contrib/cc-with-tweaks.sh: Support -n arg. | |
564 | ||
66452beb PW |
565 | 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
566 | ||
567 | * corelow.c (core_target::detach): Ensure frame cache and | |
568 | register caches are cleared. | |
569 | inferior.c (exit_inferior_1): Likewise. | |
570 | ||
bde09ab7 TT |
571 | 2019-05-03 Sandra Loosemore <sandra@codesourcery.com> |
572 | Tom Tromey <tom@tromey.com> | |
573 | ||
574 | * dictionary.c (collate_pending_symbols_by_language): Remove | |
575 | "struct" from foreach. | |
576 | * symtab.c (lookup_global_symbol_from_objfile) | |
577 | (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from | |
578 | foreach. | |
579 | * ser-tcp.c (net_open): Remove "struct" from foreach. | |
580 | * objfiles.c (objfile_relocate, objfile_rebase) | |
581 | (objfile_has_symbols): Remove "struct" from foreach. | |
582 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct" | |
583 | from foreach. | |
584 | * dwarf2read.c (handle_struct_member_die): Remove "struct" from | |
585 | foreach. | |
586 | * darwin-nat.c (thread_info_from_private_thread_info): Remove | |
587 | "struct" from foreach. | |
588 | * ada-lang.c (create_excep_cond_exprs) | |
589 | (ada_exception_catchpoint_cond_string): Remove "struct" from | |
590 | foreach. | |
591 | ||
222a8d25 TT |
592 | 2019-05-03 Tom Tromey <tromey@adacore.com> |
593 | ||
594 | * ada-exp.y (convert_char_literal): Check suffix of each | |
595 | enumerator. | |
596 | ||
fcd60b84 DP |
597 | 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org> |
598 | ||
599 | PR ada/21406: | |
600 | * ada-exp.y (yywrap): Don't define. | |
601 | * ada-lex.l (%option): Add noyywrap | |
602 | (yywrap): Remove. | |
603 | ||
5f2459c2 EZ |
604 | 2019-05-03 Eli Zaretskii <eliz@gnu.org> |
605 | ||
353ea2d1 EZ |
606 | * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define |
607 | _WIN32_WINNT to the XP level, unless already defined to a higher | |
608 | level. | |
609 | ||
610 | * unittests/parse-connection-spec-selftests.c: | |
611 | * ser-tcp.c: | |
612 | * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT | |
613 | override. | |
614 | ||
5f2459c2 EZ |
615 | * symfile.c (find_separate_debug_file): Remove colon from the |
616 | drive spec of DOS/Windows file names of the target, so that the | |
617 | file name produced from DEBUGDIR and the target's directory will | |
618 | be valid on DOS/Windows systems. | |
619 | ||
80062eb9 AB |
620 | 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com> |
621 | ||
622 | * rust-lang.c (val_print_struct): Handle printing structures | |
623 | containing strings. | |
624 | ||
b8c05e85 TT |
625 | 2019-05-02 Tom Tromey <tromey@adacore.com> |
626 | ||
627 | * valarith.c (_initialize_valarith): Remove. | |
628 | ||
4504bbde TT |
629 | 2019-05-01 Tom Tromey <tromey@adacore.com> |
630 | ||
631 | * ada-lang.c (ada_value_primitive_field): Treat more fields as | |
632 | bitfields. | |
633 | ||
d48e62f4 TT |
634 | 2019-05-01 Tom Tromey <tromey@adacore.com> |
635 | ||
636 | * ada-lang.c (ada_value_assign): Correctly compute starting offset | |
637 | for big-endian copies. | |
638 | ||
15f18d14 AT |
639 | 2019-04-30 Ali Tamur <tamur@google.com> |
640 | * gdb/dwarf2read.c (read_3_bytes): New declaration. | |
641 | (read_attribute_value): Added DW_FORM_strx1-4 cases. | |
642 | (read_3_bytes): New function. | |
643 | ||
ab4ee614 JB |
644 | 2019-04-30 Joel Brobecker <brobecker@adacore.com> |
645 | ||
646 | * windows-nat.c (main_thread_id): Delete. | |
647 | (handle_output_debug_string): Replace main_thread_id by | |
648 | current_event.dwThreadId. | |
649 | (fake_create_process): Likewise. | |
650 | (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>: | |
651 | Do not set main_thread_id. | |
652 | <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by | |
653 | current_event.dwThreadId. | |
654 | <UNLOAD_DLL_DEBUG_EVENT>: Likewise. | |
655 | ||
8ed5b76e JB |
656 | 2019-04-30 Joel Brobecker <brobecker@adacore.com> |
657 | ||
658 | * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>: | |
659 | Use current_event.dwThreadId instead of main_thread_id. | |
660 | ||
2ff0a947 TT |
661 | 2019-04-30 Tom Tromey <tromey@adacore.com> |
662 | ||
663 | * ada-lang.c (ada_lookup_simple_minsyms): New function. | |
664 | (create_excep_cond_exprs): Iterate over program spaces. | |
665 | (ada_exception_catchpoint_cond_string): Examine all minimal | |
666 | symbols for exception types. | |
667 | ||
a776957c TT |
668 | 2019-04-30 Tom Tromey <tromey@adacore.com> |
669 | ||
670 | PR c++/24470: | |
671 | * dwarf2read.c (process_structure_scope): Handle case where type | |
672 | has template parameters but no symbol was created. | |
673 | ||
bc68014d AB |
674 | 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com> |
675 | Chris January <chris.january@arm.com> | |
676 | ||
677 | * f-typeprint.c (f_type_print_base): Print 'allocatable' type | |
678 | qualifier. | |
679 | * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define. | |
680 | ||
f1fdc960 AB |
681 | 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com> |
682 | ||
683 | * f-typeprint.c (f_print_type): Update rules for printing | |
684 | whitespace. | |
685 | (f_type_print_varspec_suffix): Likewise. | |
686 | ||
bf7a4de1 AB |
687 | 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com> |
688 | Chris January <chris.january@arm.com> | |
689 | ||
690 | * f-typeprint.c (f_type_print_varspec_suffix): Handle printing | |
691 | function arguments. | |
692 | ||
bbe75b9d AB |
693 | 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com> |
694 | ||
695 | * f-lang.c (build_fortran_types): Change name of void type to | |
696 | lower case. | |
697 | * f-typeprint.c (f_type_print_base): Print the name of the void | |
698 | type, rather than a fixed string. | |
699 | * f-valprint.c (f_decorations): Use lower case void string. | |
700 | ||
1db455a7 AB |
701 | 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com> |
702 | Chris January <chris.january@arm.com> | |
703 | ||
704 | * dwarf2read.c (dwarf2_init_complex_target_type): Use different | |
705 | types for Fortran. | |
706 | ||
b6d03bb2 AB |
707 | 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com> |
708 | Chris January <chris.january@arm.com> | |
709 | David Lecomber <david.lecomber@arm.com> | |
710 | ||
711 | * f-exp.y (BINOP_INTRINSIC): New token. | |
712 | (exp): New parser rule handling BINOP_INTRINSIC. | |
713 | (f77_keywords): Add new builtin procedures. | |
714 | * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING, | |
715 | UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX. | |
716 | (operator_length_f): Handle UNOP_FORTRAN_CEILING, | |
717 | UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX. | |
718 | (print_unop_subexp_f): New function. | |
719 | (print_binop_subexp_f): New function. | |
720 | (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR, | |
721 | BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX. | |
722 | (dump_subexp_body_f): Likewise. | |
723 | (operator_check_f): Likewise. | |
724 | * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR, | |
725 | BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX | |
726 | ||
83228e93 AB |
727 | 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com> |
728 | ||
729 | * gdb/expprint.c (dump_subexp_body_standard): Remove use of | |
730 | UNOP_KIND. | |
731 | * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'. | |
732 | * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND. | |
733 | * gdb/f-lang.c (evaluate_subexp_f): Likewise. | |
734 | (operator_length_f): New fuction. | |
735 | (print_subexp_f): New function. | |
736 | (op_name_f): New function. | |
737 | (dump_subexp_body_f): New function. | |
738 | (operator_check_f): New function. | |
739 | (exp_descriptor_f): Replace standard expression handling functions | |
740 | with new functions. | |
741 | * gdb/fortran-operator.def: New file. | |
742 | * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND. | |
743 | * gdb/std-operator.def: Remove UNOP_KIND. | |
744 | ||
6fdcd7cc AB |
745 | 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com> |
746 | ||
747 | * std-operator.def: Remove unbalanced, stray double quote | |
748 | character. | |
749 | ||
2e62ab40 AB |
750 | 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com> |
751 | Chris January <chris.january@arm.com> | |
752 | Daniel Everett <daniel.everett@arm.com> | |
753 | Nick Forrington <nick.forrington@arm.com> | |
754 | Richard Bunt <richard.bunt@arm.com> | |
755 | ||
756 | * cp-valprint.c (cp_print_value_fields): Allow an additional level | |
757 | of depth when printing anonymous structs or unions. | |
758 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): | |
759 | Don't print either the top-level value, or the children if the | |
760 | max-depth is exceeded. | |
761 | (ppscm_print_children): When printing the key of a map, allow one | |
762 | extra level of depth. | |
763 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't | |
764 | print either the top-level value, or the children if the max-depth | |
765 | is exceeded. | |
766 | (print_children): When printing the key of a map, allow one extra | |
767 | level of depth. | |
768 | * python/py-value.c (valpy_format_string): Add max_depth keyword. | |
769 | * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define. | |
770 | (user_print_options): Initialise max_depth field. | |
771 | (val_print_scalar_or_string_type_p): New function. | |
772 | (val_print): Check to see if the max depth has been reached. | |
773 | (val_print_check_max_depth): Define new function. | |
774 | (show_print_max_depth): New function. | |
775 | (_initialize_valprint): Add 'print max-depth' option. | |
776 | * valprint.h (struct value_print_options) <max_depth>: New field. | |
777 | (val_print_check_max_depth): Declare new function. | |
778 | * NEWS: Document new feature. | |
779 | ||
4be290b2 AB |
780 | 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com> |
781 | ||
782 | * ada-lang.c (ada_language_defn): Initialise new field. | |
783 | * c-lang.c (c_is_string_type_p): New function. | |
784 | (c_language_defn): Initialise new field. | |
785 | (cplus_language_defn): Initialise new field. | |
786 | (asm_language_defn): Initialise new field. | |
787 | (minimal_language_defn): Initialise new field. | |
788 | * c-lang.h (c_is_string_type_p): Declare new function. | |
789 | * d-lang.c (d_language_defn): Initialise new field. | |
790 | * f-lang.c (f_is_string_type_p): New function. | |
791 | (f_language_defn): Initialise new field. | |
792 | * go-lang.c (go_is_string_type_p): New function. | |
793 | (go_language_defn): Initialise new field. | |
794 | * language.c (default_is_string_type_p): New function. | |
795 | (unknown_language_defn): Initialise new field. | |
796 | (auto_language_defn): Initialise new field. | |
797 | * language.h (struct language_defn) <la_is_string_type_p>: New | |
798 | member variable. | |
799 | (default_is_string_type_p): Declare new function. | |
800 | * m2-lang.c (m2_language_defn): Initialise new field. | |
801 | * objc-lang.c (objc_language_defn): Initialise new field. | |
802 | * opencl-lang.c (opencl_language_defn): Initialise new field. | |
803 | * p-lang.c (pascal_is_string_type_p): New function. | |
804 | (pascal_language_defn): Initialise new field. | |
805 | * rust-lang.c (rust_is_string_type_p): New function. | |
806 | (rust_language_defn): Initialise new field. | |
807 | ||
721b08c6 AB |
808 | 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com> |
809 | ||
810 | * language.h (struct language_defn) <la_struct_too_deep_ellipsis>: | |
811 | New field. | |
812 | * ada-lang.c (ada_language_defn): Initialise new field. | |
813 | * c-lang.c (c_language_defn): Likewise. | |
814 | (cplus_language_defn): Likewise. | |
815 | (asm_language_defn): Likewise. | |
816 | (minimal_language_defn): Likewise. | |
817 | * d-lang.c (d_language_defn): Likewise. | |
818 | * f-lang.c (f_language_defn): Likewise. | |
819 | * go-lang.c (go_language_defn): Likewise. | |
820 | * language.c (unknown_language_defn): Likewise. | |
821 | (auto_language_defn): Likewise. | |
822 | * m2-lang.c (m2_language_defn): Likewise. | |
823 | * objc-lang.c (objc_language_defn): Likewise. | |
824 | * opencl-lang.c (opencl_language_defn): Likewise. | |
825 | * p-lang.c (pascal_language_defn): Likewise. | |
826 | * rust-lang.c (rust_language_defn): Likewise. | |
827 | ||
fc913e53 AB |
828 | 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com> |
829 | ||
830 | * ada-lang.c (ada_is_character_type): Change return type to bool. | |
831 | (ada_is_string_type): Likewise. | |
832 | * ada-lang.h (ada_is_character_type): Update declaration | |
833 | (ada_is_string_type): Likewise. | |
834 | ||
fa731fa0 PW |
835 | 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
836 | ||
837 | Support style in 'frame|thread apply' | |
838 | ||
839 | * gdbcmd.h (execute_command_to_string): New term_out parameter. | |
840 | * record.c (record_start, record_stop): Update callers of | |
841 | execute_command_to_string with false. | |
842 | * guile/guile.c (gdbscm_execute_gdb_command): Likewise. | |
843 | * ui-file.h (class ui_file): New term_out and can_emit_style_escape | |
844 | methods. | |
845 | (class string_file): New constructor with term_out parameter. | |
846 | Override methods term_out and can_emit_style_escape. New member | |
847 | term_out. | |
848 | (class stdio_file): Override can_emit_style_escape. | |
849 | (class tee_file): Override term_out and can_emit_style_escape. | |
850 | * utils.h (can_emit_style_escape): Remove. | |
851 | * utils.c (can_emit_style_escape): Likewise. | |
852 | Update all callers of can_emit_style_escape (SOMESTREAM) to | |
853 | SOMESTREAM->can_emit_style_escape. | |
854 | * source-cache.c (source_cache::get_source_lines): Likewise. | |
855 | * stack.c (frame_apply_command_count): Call execute_command_to_string | |
856 | passing the term_out characteristic of the current gdb_stdout. | |
857 | * thread.c (thr_try_catch_cmd): Likewise. | |
858 | * top.c (execute_command_to_string): pass term_out parameter | |
859 | to construct the string_file for the command output. | |
860 | * ui-file.c (term_cli_styling): New function (most code moved | |
861 | from utils.c can_emit_style_escape). | |
862 | (string_file::string_file, string_file::can_emit_style_escape, | |
863 | stdio_file::can_emit_style_escape, tee_file::term_out, | |
864 | tee_file::can_emit_style_escape): New functions. | |
865 | ||
136afab8 PW |
866 | 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
867 | ||
868 | * NEWS: Mention the new set|show may-call-functions. | |
869 | * infcall.c (may_call_functions_p): New variable. | |
870 | (show_may_call_functions_p): New function. | |
871 | (call_function_by_hand_dummy): Throws an error if not | |
872 | may-call-functions. | |
873 | (_initialize_infcall): Call add_setshow_boolean_cmd for | |
874 | may-call-functions. | |
875 | ||
725cbb63 KS |
876 | 2019-04-25 Keith Seitz <keiths@redhat.com> |
877 | ||
878 | PR c++/24367 | |
879 | * cp-support.c (inspect_type): Don't attempt substitutions | |
880 | of symbol with the same name. | |
881 | ||
3d1cbb78 TT |
882 | 2019-04-25 Tom Tromey <tromey@adacore.com> |
883 | ||
884 | PR gdb/24475: | |
885 | * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt" | |
886 | static. | |
887 | ||
94aeb44b TT |
888 | 2019-04-25 Tom Tromey <tromey@adacore.com> |
889 | ||
890 | * xml-support.c (struct gdb_xml_parser) <set_error>: Take an | |
891 | rvalue reference. | |
892 | (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper) | |
893 | (gdb_xml_parser::parse): Use std::move. | |
894 | * python/python-internal.h (gdbpy_convert_exception): Take a const | |
895 | reference. | |
896 | * python/py-value.c (valpy_getitem, valpy_nonzero): Use | |
897 | std::move. | |
898 | * python/py-utils.c (gdbpy_convert_exception): Take a const | |
899 | reference. | |
900 | * python/py-inferior.c (infpy_write_memory, infpy_search_memory): | |
901 | Use std::move. | |
902 | * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands): | |
903 | Use std::move. | |
904 | * mi/mi-main.c (mi_print_exception): Take a const reference. | |
905 | * main.c (handle_command_errors): Take a const reference. | |
906 | * linespec.c (parse_linespec): Use std::move. | |
907 | * infcall.c (run_inferior_call): Use std::move. | |
908 | (call_function_by_hand_dummy): Use std::move. | |
909 | * exec.c (try_open_exec_file): Use std::move. | |
910 | * exceptions.h (exception_print, exception_fprintf) | |
911 | (exception_print_same): Update. | |
912 | * exceptions.c (print_exception, exception_print) | |
913 | (exception_fprintf, exception_print_same): Change parameters to | |
914 | const reference. | |
915 | * event-top.c (gdb_rl_callback_read_char_wrapper): Update. | |
916 | * common/new-op.c: Use std::move. | |
917 | * common/common-exceptions.h (struct gdb_exception): Add move | |
918 | constructor. | |
919 | (struct gdb_exception_error, struct gdb_exception_quit, struct | |
920 | gdb_quit_bad_alloc): Change constructor to move constructor. | |
921 | (throw_exception): Change parameter to rvalue reference. | |
922 | * common/common-exceptions.c (throw_exception): Take rvalue | |
923 | reference. | |
924 | * cli/cli-interp.c (safe_execute_command): Use std::move. | |
925 | * breakpoint.c (insert_bp_location, location_to_sals): Use | |
926 | std::move. | |
927 | ||
680d7fd5 TT |
928 | 2019-04-25 Tom Tromey <tromey@adacore.com> |
929 | ||
930 | * guile/scm-exception.c (gdbscm_scm_from_gdb_exception) | |
931 | (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception. | |
932 | * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c, | |
933 | guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c, | |
934 | guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c, | |
935 | guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c, | |
936 | guile/scm-value.c: Use unpack. | |
937 | * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a | |
938 | gdbscm_gdb_exception. | |
939 | (gdbscm_throw_gdb_exception): Likewise. | |
940 | (struct gdbscm_gdb_exception): New. | |
941 | (unpack): New function. | |
942 | (gdbscm_wrap): Use unpack. | |
943 | ||
c6fdd8b2 TT |
944 | 2019-04-25 Tom Tromey <tromey@adacore.com> |
945 | ||
946 | * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept) | |
947 | (gdb_rl_callback_handler): Use std::move. | |
948 | * common/common-exceptions.h (struct gdb_exception): Add move | |
949 | assignment operator. | |
950 | (throw_exception_sjlj): Change "exception" to const reference. | |
951 | * common/common-exceptions.c (exceptions_state_mc_catch): Update. | |
952 | (throw_exception_sjlj): Change "exception" to const reference. | |
953 | ||
cc06b668 TT |
954 | 2019-04-25 Tom Tromey <tromey@adacore.com> |
955 | ||
956 | * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update. | |
957 | * python/py-value.c (valpy_getitem, valpy_nonzero): Update. | |
958 | * python/py-inferior.c (infpy_write_memory, infpy_search_memory): | |
959 | Update. | |
960 | * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands): | |
961 | Update. | |
962 | * mi/mi-interp.c (mi_interp::exec): Update. | |
963 | * linespec.c (parse_linespec): Update. | |
964 | * infcall.c (run_inferior_call): Update. | |
965 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Update. | |
966 | * guile/scm-symbol.c (gdbscm_lookup_symbol) | |
967 | (gdbscm_lookup_global_symbol): Update. | |
968 | * guile/scm-param.c (gdbscm_parameter_value): Update. | |
969 | * guile/scm-frame.c (gdbscm_frame_read_register) | |
970 | (gdbscm_frame_read_var): Update. | |
971 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update. | |
972 | * exec.c (try_open_exec_file): Update. | |
973 | * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept) | |
974 | (gdb_rl_callback_handler): Update. | |
975 | * common/common-exceptions.h (exception_none): Don't declare. | |
976 | * common/common-exceptions.c (exception_none): Don't define. | |
977 | (struct catcher) <exception>: Update. | |
978 | * cli/cli-interp.c (safe_execute_command): Update. | |
979 | * breakpoint.c (insert_bp_location, location_to_sals): Update. | |
980 | ||
cf532bd1 AT |
981 | 2019-04-25 Ali Tamur <tamur@google.com> |
982 | ||
983 | * dwarf2read.c (skip_one_die): Add DW_FORM_strx. | |
984 | (read_attribute_value): Likewise. | |
985 | (dwarf2_read_addr_index): Update comment. | |
986 | (read_str_index): Add DW_FORM_strx. | |
987 | (dwarf2_string_attr): Likewise. | |
988 | (dwarf2_const_value_attr): Likewise. | |
989 | (dump_die_shallow): Likewise. | |
990 | (dwarf2_fetch_constant_bytes): Likewise. | |
991 | (skip_form_bytes): Likewise. | |
992 | * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx. | |
993 | ||
82433e3e SDJ |
994 | 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com> |
995 | ||
996 | PR corefiles/11608 | |
997 | PR corefiles/18187 | |
998 | * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and | |
999 | OFFSET. Verify if current mapping contains an ELF header. | |
1000 | (linux_find_memory_regions_full): Adjust call to | |
1001 | dump_mapping_p. | |
1002 | ||
723adb65 SL |
1003 | 2019-04-25 Sandra Loosemore <sandra@codesourcery.com> |
1004 | Kang Li <kanglictf@gmail.com> | |
1005 | ||
1006 | PR gdb/21600 | |
1007 | ||
1008 | * dwarf2-frame.c (read_initial_length): Be consistent about using | |
1009 | unsigned representation of length. | |
1010 | (decode_frame_entry_1): Likewise. Check for wraparound of | |
1011 | end pointer as well as buffer overflow. | |
1012 | ||
596179f7 SDJ |
1013 | 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com> |
1014 | ||
1015 | * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print | |
1016 | "vq". | |
1017 | ||
a59240a4 TT |
1018 | 2019-04-24 Tom Tromey <tromey@adacore.com> |
1019 | ||
1020 | * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields. | |
1021 | ||
f872fdbb AB |
1022 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1023 | ||
1024 | * s12z-tdep.c (s12z_unwind_pc): Delete. | |
1025 | (s12z_unwind_sp): Delete. | |
1026 | (s12z_gdbarch_init): Don't register deleted functions with | |
1027 | gdbarch. | |
1028 | ||
b614e6f3 AB |
1029 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1030 | ||
1031 | * rl78-tdep.c (rl78_unwind_sp): Delete. | |
1032 | (rl78_gdbarch_init): Don't register deleted function with gdbarch. | |
1033 | ||
14faed38 AB |
1034 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1035 | ||
1036 | * xstormy16-tdep.c (xstormy16_unwind_sp): Delete. | |
1037 | (xstormy16_unwind_pc): Delete. | |
1038 | (xstormy16_dummy_id): Delete. | |
1039 | (xstormy16_gdbarch_init): Don't register deleted functions with | |
1040 | gdbarch. | |
1041 | ||
541aad8a AB |
1042 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1043 | ||
1044 | * vax-tdep.c (vax_unwind_pc): Delete. | |
1045 | (vax_gdbarch_init): Don't register deleted function with gdbarch. | |
1046 | ||
29222070 AB |
1047 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1048 | ||
1049 | * v850-tdep.c (v850_unwind_sp): Delete. | |
1050 | (v850_unwind_pc): Delete. | |
1051 | (v850_dummy_id): Delete. | |
1052 | (v850_gdbarch_init): Don't register deleted functions with | |
1053 | gdbarch. | |
1054 | ||
0f534d76 AB |
1055 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1056 | ||
1057 | * tilegx-tdep.c (tilegx_unwind_sp): Delete. | |
1058 | (tilegx_unwind_pc): Delete. | |
1059 | (tilegx_unwind_dummy_id): Delete. | |
1060 | (tilegx_gdbarch_init): Don't register deleted functions with | |
1061 | gdbarch. | |
1062 | ||
1ba7b7f9 AB |
1063 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1064 | ||
1065 | * tic6x-tdep.c (tic6x_unwind_sp): Delete. | |
1066 | (tic6x_dummy_id): Delete. | |
1067 | (tic6x_gdbarch_init): Don't register deleted functions with | |
1068 | gdbarch. | |
1069 | ||
d31f262c AB |
1070 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1071 | ||
1072 | * sparc-tdep.c (sparc_unwind_pc): Delete. | |
1073 | (sparc32_gdbarch_init): Don't register deleted function with | |
1074 | gdbarch. | |
1075 | ||
6d14d64d AB |
1076 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1077 | ||
1078 | * sh-tdep.c (sh_unwind_sp): Delete. | |
1079 | (sh_unwind_pc): Delete. | |
1080 | (sh_dummy_id): Delete. | |
1081 | (sh_gdbarch_init): Don't register deleted functions with | |
1082 | gdbarch. | |
1083 | ||
a40dde9d AB |
1084 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1085 | ||
1086 | * score-tdep.c (score_unwind_sp): Delete. | |
1087 | (score_unwind_pc): Delete. | |
1088 | (score_dummy_id): Delete. | |
1089 | (score_gdbarch_init): Don't register deleted functions with | |
1090 | gdbarch. | |
1091 | ||
47c47d69 AB |
1092 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1093 | ||
1094 | * rx-tdep.c (rx_unwind_pc): Delete. | |
1095 | (rx_unwind_sp): Delete. | |
1096 | (rx_dummy_id): Delete. | |
1097 | (rx_gdbarch_init): Don't register deleted functions with | |
1098 | gdbarch. Update comment. | |
1099 | ||
833a4480 AB |
1100 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1101 | ||
1102 | * rs6000-tdep.c (rs6000_unwind_pc): Delete. | |
1103 | (rs6000_dummy_id): Delete. | |
1104 | (rs6000_gdbarch_init): Don't register deleted functions with | |
1105 | gdbarch. | |
1106 | ||
3f2cef49 AB |
1107 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1108 | ||
1109 | * or1k-tdep.c (or1k_dummy_id): Delete. | |
1110 | (or1k_gdbarch_init): Don't register deleted function with gdbarch. | |
1111 | ||
96acf884 AB |
1112 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1113 | ||
1114 | * nios2-tdep.c (nios2_dummy_id): Delete. | |
1115 | (nios2_unwind_sp): Delete. | |
1116 | (nios2_gdbarch_init): Don't register deleted functions with | |
1117 | gdbarch. | |
1118 | ||
ca0ab0aa AB |
1119 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1120 | ||
1121 | * nds32-tdep.c (nds32_dummy_id): Delete. | |
1122 | (nds32_unwind_pc): Delete. | |
1123 | (nds32_unwind_sp): Delete. | |
1124 | (nds32_gdbarch_init): Don't register deleted functions with | |
1125 | gdbarch. | |
1126 | ||
c8259044 AB |
1127 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1128 | ||
1129 | * msp430-tdep.c (msp430_unwind_pc): Delete. | |
1130 | (msp430_unwind_sp): Delete. | |
1131 | (msp430_dummy_id): Delete. | |
1132 | (msp430_gdbarch_init): Don't register deleted functions with | |
1133 | gdbarch. | |
1134 | ||
27f113c8 AB |
1135 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1136 | ||
1137 | * moxie-tdep.c (moxie_unwind_sp): Delete. | |
1138 | (moxie_unwind_pc): Delete. | |
1139 | (moxie_dummy_id): Delete. | |
1140 | (moxie_gdbarch_init): Don't register deleted functions with | |
1141 | gdbarch. | |
1142 | ||
aee6c3cd AB |
1143 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1144 | ||
1145 | * mn10300-tdep.c (mn10300_dummy_id): Delete. | |
1146 | (mn10300_unwind_pc): Delete. | |
1147 | (mn10300_unwind_sp): Delete. | |
1148 | (mn10300_push_dummy_call): Use gdbarch_unwind_sp not | |
1149 | mn10300_unwind_sp. | |
1150 | (mn10300_frame_unwind_init): Don't register deleted functions with | |
1151 | gdbarch. | |
1152 | ||
8e2b5aea AB |
1153 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1154 | ||
1155 | * mep-tdep.c (mep_unwind_pc): Delete. | |
1156 | (mep_unwind_sp): Delete. | |
1157 | (mep_dummy_id): Delete. | |
1158 | (mep_gdbarch_init): Don't register deleted functions with | |
1159 | gdbarch. | |
1160 | ||
43cf3ede AB |
1161 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1162 | ||
1163 | * m68hc11-tdep.c (m68hc11_unwind_pc): Delete. | |
1164 | (m68hc11_unwind_sp): Delete. | |
1165 | (m68hc11_gdbarch_init): Don't register deleted functions with | |
1166 | gdbarch. | |
1167 | ||
5e79b7bb AB |
1168 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1169 | ||
1170 | * m32r-tdep.c (m32r_unwind_sp): Delete. | |
1171 | (m32r_unwind_pc): Delete. | |
1172 | (m32r_dummy_id): Delete. | |
1173 | (m32r_gdbarch_init): Don't register deleted functions with | |
1174 | gdbarch. | |
1175 | ||
89b268d8 AB |
1176 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1177 | ||
1178 | * m32c-tdep.c (m32c_unwind_pc): Delete. | |
1179 | (m32c_unwind_sp): Delete. | |
1180 | (m32c_dummy_id): Delete. | |
1181 | (m32c_gdbarch_init): Don't register deleted functions with | |
1182 | gdbarch. | |
1183 | ||
946c28d2 AB |
1184 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1185 | ||
1186 | * gdb/lm32-tdep.c (lm32_unwind_sp): Delete. | |
1187 | (lm32_unwind_pc): Delete. | |
1188 | (lm32_dummy_id): Delete. | |
1189 | (lm32_gdbarch_init): Don't register deleted functions with | |
1190 | gdbarch. | |
1191 | ||
bf12844a AB |
1192 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1193 | ||
1194 | * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete. | |
1195 | (iq2000_unwind_pc): Delete. | |
1196 | (iq2000_dummy_id): Delete. | |
1197 | (iq2000_gdbarch_init): Don't register deleted functions with | |
1198 | gdbarch. | |
1199 | ||
ecbc06d2 AB |
1200 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1201 | ||
1202 | * nds32-tdep.c (nds32_type_align): Delete. | |
1203 | (nds32_push_dummy_call): Use type_align instead. | |
1204 | ||
030197b4 AB |
1205 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1206 | ||
1207 | * arm-tdep.c (arm_type_align): Only handle vector override case. | |
1208 | (arm_push_dummy_call): Use type_align. | |
1209 | (arm_gdbarch_init): Register arm_type_align gdbarch function. | |
1210 | ||
b907456c AB |
1211 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1212 | ||
1213 | * aarch64-tdep.c (aarch64_type_align): Only handle vector override | |
1214 | case. | |
1215 | (pass_on_stack): Use type_align. | |
1216 | (aarch64_gdbarch_init): Register aarch64_type_align gdbarch | |
1217 | function. | |
1218 | ||
9e97ba43 TT |
1219 | 2019-04-23 Tom Tromey <tromey@adacore.com> |
1220 | ||
1221 | * dwarf2read.c (line_header::file_name_at): Remove unused | |
1222 | overload. | |
1223 | ||
6892f601 TV |
1224 | 2019-04-23 Tom de Vries <tdevries@suse.de> |
1225 | ||
1226 | PR gdb/24438 | |
1227 | * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz | |
1228 | invocation. | |
1229 | ||
336d760d AT |
1230 | |
1231 | 2019-03-27 Ali Tamur <tamur@google.com> | |
1232 | ||
1233 | * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment | |
1234 | * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx | |
1235 | * dwarf2expr.h(dwarf_expr_context::offset): Update comment | |
1236 | (dwarf_expr_context::get_addr_index): Likewise | |
1237 | * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise | |
1238 | (symbol_needs_eval_context::get_addr_index): Likewise | |
1239 | (disassemble_dwarf_expression): Add DW_OP_addrx | |
1240 | * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx | |
1241 | (read_cutu_die_from_dwo): Update comment | |
1242 | (skip_one_die): Add DW_FORM_addrx | |
1243 | (read_attribute_value): Likewise | |
1244 | (var_decode_location): Add DW_OP_addrx | |
1245 | (dwarf2_const_value_attr): Add DW_FORM_addrx | |
1246 | (dump_die_shallow): Likewise | |
1247 | (dwarf2_fetch_constant_bytes): Likewise | |
1248 | (decode_locdesc): Add DW_OP_addrx | |
1249 | (skip_form_bytes): Add DW_FORM_addrx | |
1250 | ||
ad9d13f8 AT |
1251 | 2019-04-22 Ali Tamur <tamur@google.com> |
1252 | ||
1253 | * MAINTAINERS (Write After Approval): Add self. | |
1254 | ||
d70cc3ba SM |
1255 | 2019-04-22 Simon Marchi <simon.marchi@efficios.com> |
1256 | ||
1257 | * solib-svr4.c (get_svr4_info): Add pspace parameter. | |
1258 | (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info. | |
1259 | (open_symbol_file_object): Likewise. | |
1260 | (svr4_default_sos): Add info parameter. | |
1261 | (svr4_read_so_list): Likewise. | |
1262 | (svr4_current_sos_direct): Adjust functions calls to pass down | |
1263 | info. | |
1264 | (svr4_current_sos_1): Add info parameter. | |
1265 | (svr4_current_sos): Call get_svr4_info, pass info down to | |
1266 | svr4_current_sos_1. | |
1267 | (svr4_fetch_objfile_link_map): Pass objfile->pspace to | |
1268 | get_svr4_info. | |
1269 | (svr4_in_dynsym_resolve_code): Pass current_program_space to | |
1270 | get_svr4_info. | |
1271 | (probes_table_htab_remove_objfile_probes): Pass objfile->pspace | |
1272 | to get_svr4_info. | |
1273 | (probes_table_remove_objfile_probes): Likewise. | |
1274 | (register_solib_event_probe): Add info parameter. | |
1275 | (solist_update_incremental): Pass info parameter down to | |
1276 | svr4_read_so_list. | |
1277 | (disable_probes_interface): Add info parameter. | |
1278 | (svr4_handle_solib_event): Pass current_program_space to | |
1279 | get_svr4_info. Adjust disable_probes_interface cleanup. | |
1280 | (svr4_create_probe_breakpoints): Add info parameter, pass it | |
1281 | down to register_solib_event_probe. | |
1282 | (svr4_create_solib_event_breakpoints): Add info parameter, | |
1283 | pass it down to svr4_create_probe_breakpoints. | |
1284 | (enable_break): Pass info down to | |
1285 | svr4_create_solib_event_breakpoints. | |
1286 | (svr4_solib_create_inferior_hook): Pass current_program_space to | |
1287 | get_svr4_info. | |
1288 | (svr4_clear_solib): Likewise. | |
1289 | ||
7905fc35 PA |
1290 | 2019-04-22 Pedro Alves <palves@redhat.com> |
1291 | ||
1292 | * solib-svr4.c (svr4_free_objfile_observer): New. | |
1293 | (probe_and_action::objfile): New field. | |
1294 | (probes_table_htab_remove_objfile_probes) | |
1295 | (probes_table_remove_objfile_probes): New functions. | |
1296 | (register_solib_event_probe): Add 'objfile' parameter. Store it | |
1297 | in the new probe_and_action. Don't store the probe in 'lookup'. | |
1298 | (svr4_create_probe_breakpoints): Pass objfile to | |
1299 | register_solib_event_probe. | |
1300 | (_initialize_svr4_solib): Register a free_objfile observer. | |
1301 | ||
fb881986 TT |
1302 | 2019-04-19 Tom Tromey <tom@tromey.com> |
1303 | ||
1304 | * common/queue.h: Remove. | |
1305 | ||
8732db6c TT |
1306 | 2019-04-19 Tom Tromey <tom@tromey.com> |
1307 | ||
1308 | * event-loop.c: Don't include "common/queue.h". | |
1309 | ||
97dfbadd TT |
1310 | 2019-04-19 Tom Tromey <tom@tromey.com> |
1311 | ||
1312 | * remote.c (remote_target): Use delete. | |
1313 | * remote-notif.h: Include <list>, not "common/queue.h". | |
1314 | (notif_client_p): Remove typedef. | |
1315 | (remote_notif_state): Add constructor, destructor, initializer. | |
1316 | <notif_queue>: Now a std::list. | |
1317 | (remote_notif_state_xfree): Don't declare. | |
1318 | * remote-notif.c (remote_notif_process, handle_notification) | |
1319 | (remote_notif_state_allocate): Update. | |
1320 | (~remote_notif_state): Rename from remote_notif_state_xfree. | |
1321 | ||
cf250e36 TT |
1322 | 2019-04-19 Tom Tromey <tom@tromey.com> |
1323 | ||
1324 | * symfile.c (reread_symbols): Update. | |
1325 | * objfiles.c (objfile_register_static_link) | |
1326 | (objfile_lookup_static_link): Update | |
1327 | (~objfile) Don't delete static_links. | |
1328 | * objfiles.h (struct objfile) <static_links>: Now an htab_up. | |
1329 | ||
61f4b350 TT |
1330 | 2019-04-19 Tom Tromey <tom@tromey.com> |
1331 | ||
1332 | * type-stack.h (struct type_stack) <insert>: Constify string. | |
1333 | * type-stack.c (type_stack::insert): Constify string. | |
1334 | * gdbtypes.h (lookup_template_type): Update. | |
1335 | (address_space_name_to_int): Update. | |
1336 | * gdbtypes.c (address_space_name_to_int): Make space_identifier | |
1337 | const. | |
1338 | (lookup_template_type): Make name const. | |
1339 | * c-exp.y: Update rules. | |
1340 | (lex_one_token, classify_name, classify_inner_name) | |
1341 | (c_print_token): Update. | |
1342 | * p-exp.y: Update rules. | |
1343 | (yylex): Update. | |
1344 | * f-exp.y: Update rules. | |
1345 | (yylex): Update. | |
1346 | * d-exp.y: Update rules. | |
1347 | (lex_one_token, classify_name, classify_inner_name): Update. | |
1348 | * parse.c (write_dollar_variable, copy_name): Return std::string. | |
1349 | * parser-defs.h (copy_name): Change return type. | |
1350 | * m2-exp.y: Update rules. | |
1351 | (yylex): Update. | |
1352 | * go-exp.y (lex_one_token): Update. | |
1353 | Update rules. | |
1354 | (classify_unsafe_function, classify_packaged_name) | |
1355 | (classify_name, yylex): Update. | |
1356 | ||
189b8c2e ST |
1357 | 2019-04-19 Sergei Trofimovich <siarheit@google.com> |
1358 | ||
1359 | * configure.ac: add --enable-source-highlight switch. | |
1360 | * configure: Regenerate. | |
1361 | * top.c (print_gdb_version): plumb --enable-source-highlight | |
1362 | status to "show configuration". | |
1363 | ||
8ecb59f8 TT |
1364 | 2019-04-19 Tom Tromey <tromey@adacore.com> |
1365 | ||
1366 | * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1): | |
1367 | Check ADA_TYPE_P. | |
1368 | (empty_record, ada_template_to_fixed_record_type_1) | |
1369 | (template_to_static_fixed_type) | |
1370 | (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC. | |
1371 | * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT. | |
1372 | * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New | |
1373 | macros. | |
1374 | ||
62160ec9 TT |
1375 | 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru> |
1376 | ||
1377 | PR symtab/24423: | |
1378 | * source.c (print_source_lines_base): Advance "iter" when a | |
1379 | control character is seen. | |
1380 | ||
f2ae8bc8 PW |
1381 | 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1382 | ||
1383 | * inferior.h (struct infcall_suspend_state_deleter): | |
1384 | Catch exception in destructor to avoid crash. | |
1385 | ||
d563b953 PW |
1386 | 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1387 | ||
1388 | * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias | |
1389 | close to the add_com "shell". | |
1390 | ||
dc34c897 TT |
1391 | 2019-04-18 Tom Tromey <tromey@adacore.com> |
1392 | ||
1393 | * process-stratum-target.h (class process_stratum_target) | |
1394 | <stratum>: Add "final". | |
1395 | ||
a12e5744 TT |
1396 | 2019-04-17 Tom Tromey <tromey@adacore.com> |
1397 | ||
1398 | * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt" | |
1399 | against nullptr before use. | |
1400 | ||
a7e559cc AH |
1401 | 2019-04-17 Alan Hayward <alan.hayward@arm.com> |
1402 | ||
1403 | * nat/linux-waitpid.c (linux_debug): Call debug_vprintf. | |
1404 | ||
c01660c6 AB |
1405 | 2019-04-17 Jim Wilson <jimw@sifive.com> |
1406 | Andrew Burgess <andrew.burgess@embecosm.com> | |
1407 | ||
1408 | * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where | |
1409 | code read might fail, assume 4-byte breakpoint in that case. | |
1410 | ||
4aa866af LS |
1411 | 2019-04-15 Leszek Swirski <leszeks@google.com> |
1412 | ||
1413 | * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference | |
1414 | rather than a hand-rolled POD check when checking for forced MEMORY | |
1415 | classification. | |
1416 | ||
48574d91 AH |
1417 | 2019-04-15 Alan Hayward <alan.hayward@arm.com> |
1418 | ||
1419 | * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length. | |
1420 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New | |
1421 | function. | |
1422 | (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks. | |
1423 | (aarch64_sve_regs_copy_from_reg_buf): Likewise. | |
1424 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New | |
1425 | declaration. | |
1426 | ||
4da037ef AH |
1427 | 2019-04-15 Alan Hayward <alan.hayward@arm.com> |
1428 | ||
1429 | * aarch64-linux-nat.c | |
1430 | (aarch64_linux_nat_target::thread_architecture): Add override. | |
1431 | * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for | |
1432 | each VQ. | |
1433 | ||
ccb8d7e8 AH |
1434 | 2019-04-15 Alan Hayward <alan.hayward@arm.com> |
1435 | ||
1436 | * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup. | |
1437 | ||
35add35e AB |
1438 | 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com> |
1439 | ||
1440 | * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex | |
1441 | target types of size 96-bits, add some additional comments, and | |
1442 | check that the builtin type we found was the correct size. | |
1443 | ||
51196bbc EZ |
1444 | 2019-04-12 Eli Zaretskii <eliz@gnu.org> |
1445 | ||
1446 | * utils.c (prompt_for_continue): Don't restore the styling at the | |
1447 | end, as applied_style has the wrong value. This fixes styling in | |
1448 | long lists of file names that are interrupted by the "Continue?" | |
1449 | prompt. | |
1450 | ||
62253a61 AB |
1451 | 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com> |
1452 | ||
1453 | * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC. | |
1454 | * c-lang.c (c_language_defn): Likewise. | |
1455 | (cplus_language_defn): Likewise. | |
1456 | (asm_language_defn): Likewise. | |
1457 | (minimal_language_defn): Likewise. | |
1458 | * d-lang.c (d_language_defn): Likewise. | |
1459 | * f-lang.c (f_language_defn): Likewise. | |
1460 | * go-lang.c (go_language_defn): Likewise. | |
1461 | * language.c (unknown_language_defn): Likewise. | |
1462 | (auto_language_defn): Likewise. | |
1463 | * language.h (struct language_defn): Remove la_magic field. | |
1464 | (LANG_MAGIC): Delete. | |
1465 | * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC. | |
1466 | * objc-lang.c (objc_language_defn): Likewise. | |
1467 | * opencl-lang.c (opencl_language_defn): Likewise. | |
1468 | * p-lang.c (pascal_language_defn): Likewise. | |
1469 | * rust-lang.c (rust_language_defn): Likewise. | |
1470 | ||
a9158a86 AB |
1471 | 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com> |
1472 | ||
1473 | * riscv-tdep.c (riscv_type_align): New function. | |
1474 | (riscv_type_alignment): Delete. | |
1475 | (riscv_arg_location): Use 'type_align'. | |
1476 | (riscv_gdbarch_init): Register riscv_type_align gdbarch function. | |
1477 | ||
41077b66 AB |
1478 | 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com> |
1479 | ||
1480 | * gdbtypes.c (type_align): A struct with no non-static fields also | |
1481 | has alignment of 1. | |
1482 | ||
9f0272f8 AB |
1483 | 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com> |
1484 | ||
1485 | * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first | |
1486 | component to 0. | |
1487 | (riscv_struct_info::riscv_struct_info): Initialise m_offsets | |
1488 | member. | |
1489 | (riscv_struct_info::analyse): New implementation using new | |
1490 | analyse_inner member function. | |
1491 | (riscv_struct_info::field_offset): New member function. | |
1492 | (riscv_struct_info::m_offsets): New member variable. | |
1493 | (riscv_struct_info::analyse_inner): New private member function, | |
1494 | takes the old implementation of riscv_struct_info::analyse but | |
1495 | extended to track field offsets. | |
1496 | (riscv_call_arg_struct): Update the struct folding special cases | |
1497 | to handle cases where empty C++ structs, which are non-zero | |
1498 | length, are found. | |
1499 | (riscv_arg_location): Initialise the length of each location, a | |
1500 | non-zero length now indicates the location is in use. | |
1501 | (riscv_push_dummy_call): Allow for the first location having a | |
1502 | non-zero offset when setting up arguments. | |
1503 | (riscv_return_value): Likewise, but for return values. | |
1504 | ||
02cf60c7 TT |
1505 | 2019-04-11 Tom Tromey <tromey@adacore.com> |
1506 | ||
1507 | * utils.c (internal_vproblem): Make "msg" const. | |
1508 | ||
68811f8f AH |
1509 | 2019-04-11 Alan Hayward <alan.hayward@arm.com> |
1510 | ||
1511 | * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs. | |
1512 | * trad-frame.c (trad_frame_reset_saved_regs): New function. | |
1513 | (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs. | |
1514 | * trad-frame.h (trad_frame_reset_saved_regs): New declaration. | |
1515 | ||
3f52fdbc KB |
1516 | 2019-04-10 Kevin Buettner <kevinb@redhat.com> |
1517 | ||
1518 | * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New | |
1519 | function. | |
1520 | (fill_gregset): Call amd64_linux_collect_native_gregset instead | |
1521 | of amd64_collect_native_gregset. | |
1522 | (amd64_linux_nat_target::store_registers): Likewise. | |
1523 | ||
e9ad22ee TT |
1524 | 2019-04-10 Tom Tromey <tom@tromey.com> |
1525 | ||
1526 | * symtab.c (lookup_global_symbol_from_objfile) | |
1527 | (lookup_symbol_in_objfile_from_linkage_name): Use the iterator. | |
1528 | * objfiles.h (class separate_debug_iterator): New. | |
1529 | (class separate_debug_range): New. | |
1530 | (struct objfile) <separate_debug_objfiles>: New method. | |
1531 | (objfile_separate_debug_iterate): Don't declare. | |
1532 | * objfiles.c (separate_debug_iterator::operator++): Rename from | |
1533 | objfile_separate_debug_iterate. | |
1534 | (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the | |
1535 | iterator. | |
1536 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the | |
1537 | iterator. | |
1538 | ||
ee371134 TT |
1539 | 2019-04-10 Tom Tromey <tom@tromey.com> |
1540 | ||
1541 | * symfile.c (reread_symbols): Remove old comment. | |
1542 | * objfiles.c (free_all_objfiles): Fix a typo. | |
1543 | ||
bf227d61 TT |
1544 | 2019-04-10 Tom Tromey <tom@tromey.com> |
1545 | ||
1546 | * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach. | |
1547 | * minsyms.c (lookup_minimal_symbol): Use foreach. | |
1548 | (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name) | |
1549 | (lookup_minimal_symbol_solib_trampoline): Likewise. | |
1550 | * symfile.c (reread_symbols): Use foreach. | |
1551 | ||
8dc433a0 TT |
1552 | 2019-04-09 Ivan Begert <ivanbegert@gmail.com> |
1553 | Tom Tromey <tromey@adacore.com> | |
1554 | ||
1555 | PR rust/24414: | |
1556 | * rust-exp.y (rust_parser::lex_number): Use strtoulst. | |
1557 | (rust_lex_int_test): Change "value" to be LONGEST. | |
1558 | (rust_lex_tests): Add test for long integer literal. | |
1559 | ||
9ab8741a TT |
1560 | 2019-04-09 Tom Tromey <tromey@adacore.com> |
1561 | ||
1562 | * remote.c (remote_target::remote_add_inferior): Change fake_pid_p | |
1563 | to bool. | |
1564 | (extended_remote_target::attach): Update. | |
1565 | (remote_target::remote_notice_new_inferior): Update. | |
1566 | (remote_target::add_current_inferior_and_thread): Update. | |
1567 | * inferior.c (exit_inferior_1): Use "false". | |
1568 | * corelow.c (add_to_thread_list): Make fake_pid_p bool. | |
1569 | ||
e242fd12 SM |
1570 | 2019-04-09 Simon Marchi <simon.marchi@efficios.com> |
1571 | ||
9ca1957f | 1572 | * infcmd.c (run_command_1): Pass -qualified to tbreak when using |
e242fd12 SM |
1573 | the "start" command. |
1574 | ||
2b0c8b01 KB |
1575 | 2019-04-08 Kevin Buettner <kevinb@redhat.com> |
1576 | ||
1577 | * python/py-inferior.c (infpy_thread_from_thread_handle): | |
1578 | Adjust comments to reflect renaming of thread_from_thread_handle | |
1579 | to thread_from_handle. Adjust keywords. Fix type error message. | |
1580 | (inferior_object_methods): Add thread_from_handle. Retain | |
1581 | thread_from_thread_handle, but mark it as deprecated. | |
1582 | ||
50a82723 KB |
1583 | 2019-04-08 Kevin Buettner <kevinb@redhat.com> |
1584 | ||
1585 | * gdbthread.h (find_thread_by_handle): Revise declaration. | |
1586 | * thread.c (find_thread_by_handle): Likewise. Adjust | |
1587 | implementation too. | |
1588 | * python/py-inferior.c (infpy_thread_from_thread_handle): Add | |
1589 | support for buffer objects as handles. | |
1590 | ||
cf63b016 KB |
1591 | 2019-04-08 Kevin Buettner <kevinb@redhat.com> |
1592 | ||
1593 | * python/py-infthread.c (thpy_thread_handle): New function. | |
1594 | (thread_object_methods): Register thpy_thread_handle. | |
1595 | ||
3d6c6204 KB |
1596 | 2019-04-08 Kevin Buettner <kevinb@redhat.com> |
1597 | ||
1598 | * gdbthread.h (thread_to_thread_handle): Declare. | |
1599 | * thread.c (gdbtypes.h): Include. | |
1600 | (thread_to_thread_handle): New function. | |
1601 | ||
1602 | * target.h (struct target_ops): Add thread_info_to_thread_handle. | |
1603 | (target_thread_info_to_thread_handle): Declare. | |
1604 | * target.c (target_thread_info_to_thread_handle): New function. | |
1605 | * target-debug.h (target_debug_print_gdb_byte_vector): Define. | |
1606 | * target-delegates.c: Regenerate. | |
1607 | ||
1608 | * linux-thread-db.c (class thread_db_target): Add method | |
1609 | thread_info_to_thread_handle. | |
1610 | (thread_db_target::thread_info_to_thread_handle): Define. | |
1611 | * remote.c (class remote_target): Add new method | |
1612 | thread_info_to_thread_handle. | |
1613 | (remote_target::thread_info_to_thread_handle): Define. | |
1614 | ||
56be6ea8 PA |
1615 | 2019-04-08 Pedro Alves <palves@redhat.com> |
1616 | ||
1617 | * common/common-exceptions.c (throw_exception): Don't create | |
1618 | named object to throw; throw directly. | |
1619 | (throw_it): Likewise. Don't initialize gdb_exception::message | |
1620 | here, with new; pass FMT and AP to the ctor instead. | |
1621 | * common/common-exceptions.h: Include <string>. | |
1622 | (gdb_exception::gdb_exception(enum return_reason, enum errors, | |
1623 | const char *, va_list)): New ctor. Use std::make_shared. | |
1624 | (gdb_exception_error::gdb_exception_error(enum return_reason, enum | |
1625 | errors)): Delete. | |
1626 | (gdb_exception_error::gdb_exception_error(enum errors, const char | |
1627 | *, va_list)): New. | |
1628 | (gdb_exception_error::gdb_exception_error(const gdb_exception &)): | |
1629 | Add assertion. | |
1630 | (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum | |
1631 | errors)): Delete. | |
1632 | (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New. | |
1633 | (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)): | |
1634 | Add assertion. | |
1635 | ||
eedc3f4f TT |
1636 | 2019-04-08 Tom Tromey <tom@tromey.com> |
1637 | ||
1638 | * valops.c (value_rtti_indirect_type): Replace throw_exception | |
1639 | with throw. | |
1640 | * tracefile-tfile.c (tfile_target_open): Replace throw_exception | |
1641 | with throw. | |
1642 | * thread.c (thr_try_catch_cmd): Replace throw_exception with | |
1643 | throw. | |
1644 | * target.c (target_translate_tls_address): Replace throw_exception | |
1645 | with throw. | |
1646 | * stack.c (frame_apply_command_count): Replace throw_exception | |
1647 | with throw. | |
1648 | * solib-spu.c (append_ocl_sos): Replace throw_exception with | |
1649 | throw. | |
1650 | * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception | |
1651 | with throw. | |
1652 | * rs6000-tdep.c (rs6000_frame_cache) | |
1653 | (rs6000_epilogue_frame_cache): Replace throw_exception with throw. | |
1654 | * remote.c: Replace throw_exception with throw. | |
1655 | * record-full.c (record_full_message, record_full_wait_1) | |
1656 | (record_full_restore): Replace throw_exception with throw. | |
1657 | * record-btrace.c: | |
1658 | (get_thread_current_frame_id, record_btrace_start_replaying) | |
1659 | (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start) | |
1660 | (cmd_record_btrace_start): Replace throw_exception with throw. | |
1661 | * parse.c (parse_exp_in_context_1): Replace throw_exception with | |
1662 | throw. | |
1663 | * linux-nat.c (detach_one_lwp, linux_resume_one_lwp) | |
1664 | (resume_stopped_resumed_lwps): Replace throw_exception with throw. | |
1665 | * linespec.c: | |
1666 | (find_linespec_symbols): Replace throw_exception with throw. | |
1667 | * infrun.c (displaced_step_prepare, resume): Replace | |
1668 | throw_exception with throw. | |
1669 | * infcmd.c (post_create_inferior): Replace throw_exception with | |
1670 | throw. | |
1671 | * inf-loop.c (inferior_event_handler): Replace throw_exception | |
1672 | with throw. | |
1673 | * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache) | |
1674 | (i386_sigtramp_frame_cache): Replace throw_exception with throw. | |
1675 | * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle) | |
1676 | (get_prev_frame_always, get_frame_pc_if_available) | |
1677 | (get_frame_address_in_block_if_available, get_frame_language): | |
1678 | Replace throw_exception with throw. | |
1679 | * frame-unwind.c (frame_unwind_try_unwinder): Replace | |
1680 | throw_exception with throw. | |
1681 | * eval.c (fetch_subexp_value, evaluate_var_value) | |
1682 | (evaluate_funcall, evaluate_subexp_standard): Replace | |
1683 | throw_exception with throw. | |
1684 | * dwarf2loc.c (call_site_find_chain) | |
1685 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval): | |
1686 | Replace throw_exception with throw. | |
1687 | * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception | |
1688 | with throw. | |
1689 | * darwin-nat.c (darwin_attach_pid): Replace throw_exception with | |
1690 | throw. | |
1691 | * cp-abi.c (baseclass_offset): Replace throw_exception with throw. | |
1692 | * completer.c (complete_line_internal): Replace throw_exception | |
1693 | with throw. | |
1694 | * compile/compile-object-run.c (compile_object_run): Replace | |
1695 | throw_exception with throw. | |
1696 | * cli/cli-script.c (process_next_line): Replace throw_exception | |
1697 | with throw. | |
1698 | * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace) | |
1699 | (btrace_enable, btrace_maint_update_pt_packets): Replace | |
1700 | throw_exception with throw. | |
1701 | * breakpoint.c (create_breakpoint, save_breakpoints): Replace | |
1702 | throw_exception with throw. | |
1703 | * break-catch-throw.c (re_set_exception_catchpoint): Replace | |
1704 | throw_exception with throw. | |
1705 | * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache) | |
1706 | (amd64_epilogue_frame_cache): Replace throw_exception with throw. | |
1707 | * aarch64-tdep.c (aarch64_make_prologue_cache) | |
1708 | (aarch64_make_stub_cache): Replace throw_exception with throw. | |
1709 | ||
26003a20 TT |
1710 | 2019-04-08 Tom Tromey <tom@tromey.com> |
1711 | ||
1712 | * common/common-exceptions.c (throw_exception): Rename from | |
1713 | throw_exception_cxx. Remove old copy. Make argument const. | |
1714 | (throw_it): Create and throw exception objects directly. | |
1715 | * common/common-exceptions.h (throw_exception): Make argument | |
1716 | const. | |
1717 | (struct gdb_exception_error): Add constructor. | |
1718 | (struct gdb_exception_quit): Add constructor. | |
1719 | ||
d272eb37 TT |
1720 | 2019-04-08 Tom Tromey <tom@tromey.com> |
1721 | ||
1722 | * common/common-exceptions.h (exception_rethrow): Don't declare. | |
1723 | (TRY_SJLJ): Update comment. | |
1724 | (TRY, CATCH, END_CATCH): Remove. | |
1725 | * common/common-exceptions.c (exception_rethrow): Remove. | |
1726 | ||
230d2906 TT |
1727 | 2019-04-08 Tom Tromey <tom@tromey.com> |
1728 | ||
1729 | * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL): | |
1730 | Remove. | |
1731 | (gdb_exception_error): Rename from | |
1732 | gdb_exception_RETURN_MASK_ERROR. | |
1733 | (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT. | |
1734 | (gdb_quit_bad_alloc): Update. | |
1735 | * aarch64-tdep.c: Update. | |
1736 | * ada-lang.c: Update. | |
1737 | * ada-typeprint.c: Update. | |
1738 | * ada-valprint.c: Update. | |
1739 | * amd64-tdep.c: Update. | |
1740 | * arch-utils.c: Update. | |
1741 | * break-catch-throw.c: Update. | |
1742 | * breakpoint.c: Update. | |
1743 | * btrace.c: Update. | |
1744 | * c-varobj.c: Update. | |
1745 | * cli/cli-cmds.c: Update. | |
1746 | * cli/cli-interp.c: Update. | |
1747 | * cli/cli-script.c: Update. | |
1748 | * common/common-exceptions.c: Update. | |
1749 | * common/new-op.c: Update. | |
1750 | * common/selftest.c: Update. | |
1751 | * compile/compile-c-symbols.c: Update. | |
1752 | * compile/compile-cplus-symbols.c: Update. | |
1753 | * compile/compile-object-load.c: Update. | |
1754 | * compile/compile-object-run.c: Update. | |
1755 | * completer.c: Update. | |
1756 | * corelow.c: Update. | |
1757 | * cp-abi.c: Update. | |
1758 | * cp-support.c: Update. | |
1759 | * cp-valprint.c: Update. | |
1760 | * darwin-nat.c: Update. | |
1761 | * disasm-selftests.c: Update. | |
1762 | * dtrace-probe.c: Update. | |
1763 | * dwarf-index-cache.c: Update. | |
1764 | * dwarf-index-write.c: Update. | |
1765 | * dwarf2-frame-tailcall.c: Update. | |
1766 | * dwarf2-frame.c: Update. | |
1767 | * dwarf2loc.c: Update. | |
1768 | * dwarf2read.c: Update. | |
1769 | * eval.c: Update. | |
1770 | * event-loop.c: Update. | |
1771 | * event-top.c: Update. | |
1772 | * exec.c: Update. | |
1773 | * f-valprint.c: Update. | |
1774 | * fbsd-tdep.c: Update. | |
1775 | * frame-unwind.c: Update. | |
1776 | * frame.c: Update. | |
1777 | * gdbtypes.c: Update. | |
1778 | * gnu-v3-abi.c: Update. | |
1779 | * guile/guile-internal.h: Update. | |
1780 | * guile/scm-block.c: Update. | |
1781 | * guile/scm-breakpoint.c: Update. | |
1782 | * guile/scm-cmd.c: Update. | |
1783 | * guile/scm-disasm.c: Update. | |
1784 | * guile/scm-frame.c: Update. | |
1785 | * guile/scm-lazy-string.c: Update. | |
1786 | * guile/scm-math.c: Update. | |
1787 | * guile/scm-param.c: Update. | |
1788 | * guile/scm-ports.c: Update. | |
1789 | * guile/scm-pretty-print.c: Update. | |
1790 | * guile/scm-symbol.c: Update. | |
1791 | * guile/scm-symtab.c: Update. | |
1792 | * guile/scm-type.c: Update. | |
1793 | * guile/scm-value.c: Update. | |
1794 | * i386-linux-tdep.c: Update. | |
1795 | * i386-tdep.c: Update. | |
1796 | * inf-loop.c: Update. | |
1797 | * infcall.c: Update. | |
1798 | * infcmd.c: Update. | |
1799 | * infrun.c: Update. | |
1800 | * jit.c: Update. | |
1801 | * language.c: Update. | |
1802 | * linespec.c: Update. | |
1803 | * linux-fork.c: Update. | |
1804 | * linux-nat.c: Update. | |
1805 | * linux-tdep.c: Update. | |
1806 | * linux-thread-db.c: Update. | |
1807 | * main.c: Update. | |
1808 | * mi/mi-cmd-break.c: Update. | |
1809 | * mi/mi-cmd-stack.c: Update. | |
1810 | * mi/mi-interp.c: Update. | |
1811 | * mi/mi-main.c: Update. | |
1812 | * objc-lang.c: Update. | |
1813 | * p-valprint.c: Update. | |
1814 | * parse.c: Update. | |
1815 | * ppc-linux-tdep.c: Update. | |
1816 | * printcmd.c: Update. | |
1817 | * python/py-arch.c: Update. | |
1818 | * python/py-breakpoint.c: Update. | |
1819 | * python/py-cmd.c: Update. | |
1820 | * python/py-finishbreakpoint.c: Update. | |
1821 | * python/py-frame.c: Update. | |
1822 | * python/py-framefilter.c: Update. | |
1823 | * python/py-gdb-readline.c: Update. | |
1824 | * python/py-inferior.c: Update. | |
1825 | * python/py-infthread.c: Update. | |
1826 | * python/py-lazy-string.c: Update. | |
1827 | * python/py-linetable.c: Update. | |
1828 | * python/py-objfile.c: Update. | |
1829 | * python/py-param.c: Update. | |
1830 | * python/py-prettyprint.c: Update. | |
1831 | * python/py-progspace.c: Update. | |
1832 | * python/py-record-btrace.c: Update. | |
1833 | * python/py-record.c: Update. | |
1834 | * python/py-symbol.c: Update. | |
1835 | * python/py-type.c: Update. | |
1836 | * python/py-unwind.c: Update. | |
1837 | * python/py-utils.c: Update. | |
1838 | * python/py-value.c: Update. | |
1839 | * python/python.c: Update. | |
1840 | * record-btrace.c: Update. | |
1841 | * record-full.c: Update. | |
1842 | * remote-fileio.c: Update. | |
1843 | * remote.c: Update. | |
1844 | * riscv-tdep.c: Update. | |
1845 | * rs6000-aix-tdep.c: Update. | |
1846 | * rs6000-tdep.c: Update. | |
1847 | * rust-exp.y: Update. | |
1848 | * rust-lang.c: Update. | |
1849 | * s390-tdep.c: Update. | |
1850 | * selftest-arch.c: Update. | |
1851 | * solib-dsbt.c: Update. | |
1852 | * solib-frv.c: Update. | |
1853 | * solib-spu.c: Update. | |
1854 | * solib-svr4.c: Update. | |
1855 | * solib.c: Update. | |
1856 | * sparc64-linux-tdep.c: Update. | |
1857 | * stack.c: Update. | |
1858 | * symfile-mem.c: Update. | |
1859 | * symmisc.c: Update. | |
1860 | * target.c: Update. | |
1861 | * thread.c: Update. | |
1862 | * top.c: Update. | |
1863 | * tracefile-tfile.c: Update. | |
1864 | * tui/tui.c: Update. | |
1865 | * typeprint.c: Update. | |
1866 | * unittests/cli-utils-selftests.c: Update. | |
1867 | * unittests/parse-connection-spec-selftests.c: Update. | |
1868 | * valops.c: Update. | |
1869 | * valprint.c: Update. | |
1870 | * value.c: Update. | |
1871 | * varobj.c: Update. | |
1872 | * windows-nat.c: Update. | |
1873 | * x86-linux-nat.c: Update. | |
1874 | * xml-support.c: Update. | |
1875 | ||
a70b8144 TT |
1876 | 2019-04-08 Tom Tromey <tom@tromey.com> |
1877 | ||
1878 | * xml-support.c: Use C++ exception handling. | |
1879 | * x86-linux-nat.c: Use C++ exception handling. | |
1880 | * windows-nat.c: Use C++ exception handling. | |
1881 | * varobj.c: Use C++ exception handling. | |
1882 | * value.c: Use C++ exception handling. | |
1883 | * valprint.c: Use C++ exception handling. | |
1884 | * valops.c: Use C++ exception handling. | |
1885 | * unittests/parse-connection-spec-selftests.c: Use C++ exception | |
1886 | handling. | |
1887 | * unittests/cli-utils-selftests.c: Use C++ exception handling. | |
1888 | * typeprint.c: Use C++ exception handling. | |
1889 | * tui/tui.c: Use C++ exception handling. | |
1890 | * tracefile-tfile.c: Use C++ exception handling. | |
1891 | * top.c: Use C++ exception handling. | |
1892 | * thread.c: Use C++ exception handling. | |
1893 | * target.c: Use C++ exception handling. | |
1894 | * symmisc.c: Use C++ exception handling. | |
1895 | * symfile-mem.c: Use C++ exception handling. | |
1896 | * stack.c: Use C++ exception handling. | |
1897 | * sparc64-linux-tdep.c: Use C++ exception handling. | |
1898 | * solib.c: Use C++ exception handling. | |
1899 | * solib-svr4.c: Use C++ exception handling. | |
1900 | * solib-spu.c: Use C++ exception handling. | |
1901 | * solib-frv.c: Use C++ exception handling. | |
1902 | * solib-dsbt.c: Use C++ exception handling. | |
1903 | * selftest-arch.c: Use C++ exception handling. | |
1904 | * s390-tdep.c: Use C++ exception handling. | |
1905 | * rust-lang.c: Use C++ exception handling. | |
1906 | * rust-exp.y: Use C++ exception handling. | |
1907 | * rs6000-tdep.c: Use C++ exception handling. | |
1908 | * rs6000-aix-tdep.c: Use C++ exception handling. | |
1909 | * riscv-tdep.c: Use C++ exception handling. | |
1910 | * remote.c: Use C++ exception handling. | |
1911 | * remote-fileio.c: Use C++ exception handling. | |
1912 | * record-full.c: Use C++ exception handling. | |
1913 | * record-btrace.c: Use C++ exception handling. | |
1914 | * python/python.c: Use C++ exception handling. | |
1915 | * python/py-value.c: Use C++ exception handling. | |
1916 | * python/py-utils.c: Use C++ exception handling. | |
1917 | * python/py-unwind.c: Use C++ exception handling. | |
1918 | * python/py-type.c: Use C++ exception handling. | |
1919 | * python/py-symbol.c: Use C++ exception handling. | |
1920 | * python/py-record.c: Use C++ exception handling. | |
1921 | * python/py-record-btrace.c: Use C++ exception handling. | |
1922 | * python/py-progspace.c: Use C++ exception handling. | |
1923 | * python/py-prettyprint.c: Use C++ exception handling. | |
1924 | * python/py-param.c: Use C++ exception handling. | |
1925 | * python/py-objfile.c: Use C++ exception handling. | |
1926 | * python/py-linetable.c: Use C++ exception handling. | |
1927 | * python/py-lazy-string.c: Use C++ exception handling. | |
1928 | * python/py-infthread.c: Use C++ exception handling. | |
1929 | * python/py-inferior.c: Use C++ exception handling. | |
1930 | * python/py-gdb-readline.c: Use C++ exception handling. | |
1931 | * python/py-framefilter.c: Use C++ exception handling. | |
1932 | * python/py-frame.c: Use C++ exception handling. | |
1933 | * python/py-finishbreakpoint.c: Use C++ exception handling. | |
1934 | * python/py-cmd.c: Use C++ exception handling. | |
1935 | * python/py-breakpoint.c: Use C++ exception handling. | |
1936 | * python/py-arch.c: Use C++ exception handling. | |
1937 | * printcmd.c: Use C++ exception handling. | |
1938 | * ppc-linux-tdep.c: Use C++ exception handling. | |
1939 | * parse.c: Use C++ exception handling. | |
1940 | * p-valprint.c: Use C++ exception handling. | |
1941 | * objc-lang.c: Use C++ exception handling. | |
1942 | * mi/mi-main.c: Use C++ exception handling. | |
1943 | * mi/mi-interp.c: Use C++ exception handling. | |
1944 | * mi/mi-cmd-stack.c: Use C++ exception handling. | |
1945 | * mi/mi-cmd-break.c: Use C++ exception handling. | |
1946 | * main.c: Use C++ exception handling. | |
1947 | * linux-thread-db.c: Use C++ exception handling. | |
1948 | * linux-tdep.c: Use C++ exception handling. | |
1949 | * linux-nat.c: Use C++ exception handling. | |
1950 | * linux-fork.c: Use C++ exception handling. | |
1951 | * linespec.c: Use C++ exception handling. | |
1952 | * language.c: Use C++ exception handling. | |
1953 | * jit.c: Use C++ exception handling. | |
1954 | * infrun.c: Use C++ exception handling. | |
1955 | * infcmd.c: Use C++ exception handling. | |
1956 | * infcall.c: Use C++ exception handling. | |
1957 | * inf-loop.c: Use C++ exception handling. | |
1958 | * i386-tdep.c: Use C++ exception handling. | |
1959 | * i386-linux-tdep.c: Use C++ exception handling. | |
1960 | * guile/scm-value.c: Use C++ exception handling. | |
1961 | * guile/scm-type.c: Use C++ exception handling. | |
1962 | * guile/scm-symtab.c: Use C++ exception handling. | |
1963 | * guile/scm-symbol.c: Use C++ exception handling. | |
1964 | * guile/scm-pretty-print.c: Use C++ exception handling. | |
1965 | * guile/scm-ports.c: Use C++ exception handling. | |
1966 | * guile/scm-param.c: Use C++ exception handling. | |
1967 | * guile/scm-math.c: Use C++ exception handling. | |
1968 | * guile/scm-lazy-string.c: Use C++ exception handling. | |
1969 | * guile/scm-frame.c: Use C++ exception handling. | |
1970 | * guile/scm-disasm.c: Use C++ exception handling. | |
1971 | * guile/scm-cmd.c: Use C++ exception handling. | |
1972 | * guile/scm-breakpoint.c: Use C++ exception handling. | |
1973 | * guile/scm-block.c: Use C++ exception handling. | |
1974 | * guile/guile-internal.h: Use C++ exception handling. | |
1975 | * gnu-v3-abi.c: Use C++ exception handling. | |
1976 | * gdbtypes.c: Use C++ exception handling. | |
1977 | * frame.c: Use C++ exception handling. | |
1978 | * frame-unwind.c: Use C++ exception handling. | |
1979 | * fbsd-tdep.c: Use C++ exception handling. | |
1980 | * f-valprint.c: Use C++ exception handling. | |
1981 | * exec.c: Use C++ exception handling. | |
1982 | * event-top.c: Use C++ exception handling. | |
1983 | * event-loop.c: Use C++ exception handling. | |
1984 | * eval.c: Use C++ exception handling. | |
1985 | * dwarf2read.c: Use C++ exception handling. | |
1986 | * dwarf2loc.c: Use C++ exception handling. | |
1987 | * dwarf2-frame.c: Use C++ exception handling. | |
1988 | * dwarf2-frame-tailcall.c: Use C++ exception handling. | |
1989 | * dwarf-index-write.c: Use C++ exception handling. | |
1990 | * dwarf-index-cache.c: Use C++ exception handling. | |
1991 | * dtrace-probe.c: Use C++ exception handling. | |
1992 | * disasm-selftests.c: Use C++ exception handling. | |
1993 | * darwin-nat.c: Use C++ exception handling. | |
1994 | * cp-valprint.c: Use C++ exception handling. | |
1995 | * cp-support.c: Use C++ exception handling. | |
1996 | * cp-abi.c: Use C++ exception handling. | |
1997 | * corelow.c: Use C++ exception handling. | |
1998 | * completer.c: Use C++ exception handling. | |
1999 | * compile/compile-object-run.c: Use C++ exception handling. | |
2000 | * compile/compile-object-load.c: Use C++ exception handling. | |
2001 | * compile/compile-cplus-symbols.c: Use C++ exception handling. | |
2002 | * compile/compile-c-symbols.c: Use C++ exception handling. | |
2003 | * common/selftest.c: Use C++ exception handling. | |
2004 | * common/new-op.c: Use C++ exception handling. | |
2005 | * cli/cli-script.c: Use C++ exception handling. | |
2006 | * cli/cli-interp.c: Use C++ exception handling. | |
2007 | * cli/cli-cmds.c: Use C++ exception handling. | |
2008 | * c-varobj.c: Use C++ exception handling. | |
2009 | * btrace.c: Use C++ exception handling. | |
2010 | * breakpoint.c: Use C++ exception handling. | |
2011 | * break-catch-throw.c: Use C++ exception handling. | |
2012 | * arch-utils.c: Use C++ exception handling. | |
2013 | * amd64-tdep.c: Use C++ exception handling. | |
2014 | * ada-valprint.c: Use C++ exception handling. | |
2015 | * ada-typeprint.c: Use C++ exception handling. | |
2016 | * ada-lang.c: Use C++ exception handling. | |
2017 | * aarch64-tdep.c: Use C++ exception handling. | |
2018 | ||
3d6e9d23 TT |
2019 | 2019-04-08 Tom Tromey <tom@tromey.com> |
2020 | ||
2021 | * xml-support.c (gdb_xml_parser::parse): Update. | |
2022 | * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update. | |
2023 | * value.c (show_convenience): Update. | |
2024 | * unittests/cli-utils-selftests.c (test_number_or_range_parser) | |
2025 | (test_parse_flags_qcs): Update. | |
2026 | * thread.c (thr_try_catch_cmd): Update. | |
2027 | * target.c (target_translate_tls_address): Update. | |
2028 | * stack.c (print_frame_arg, read_frame_local, read_frame_arg) | |
2029 | (info_frame_command_core, frame_apply_command_count): Update. | |
2030 | * rust-exp.y (rust_lex_exception_test): Update. | |
2031 | * riscv-tdep.c (riscv_print_one_register_info): Update. | |
2032 | * remote.c (remote_target::enable_btrace): Update. | |
2033 | * record-btrace.c (record_btrace_enable_warn): Update. | |
2034 | * python/py-utils.c (gdbpy_convert_exception): Update. | |
2035 | * printcmd.c (do_one_display, print_variable_and_value): Update. | |
2036 | * mi/mi-main.c (mi_print_exception): Update. | |
2037 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT. | |
2038 | * mi/mi-cmd-stack.c (list_arg_or_local): Update. | |
2039 | * linux-nat.c (linux_nat_target::attach): Update. | |
2040 | * linux-fork.c (class scoped_switch_fork_info): Update. | |
2041 | * infrun.c (displaced_step_prepare): Update. | |
2042 | * infcall.c (call_function_by_hand_dummy): Update. | |
2043 | * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update. | |
2044 | * gnu-v3-abi.c (print_one_vtable): Update. | |
2045 | * frame.c (get_prev_frame_always): Update. | |
2046 | * f-valprint.c (info_common_command_for_block): Update. | |
2047 | * exec.c (try_open_exec_file): Update. | |
2048 | * exceptions.c (print_exception, exception_print) | |
2049 | (exception_fprintf, exception_print_same): Update. | |
2050 | * dwarf2-frame.c (dwarf2_build_frame_info): Update. | |
2051 | * dwarf-index-cache.c (index_cache::store) | |
2052 | (index_cache::lookup_gdb_index): Update. | |
2053 | * darwin-nat.c (maybe_cache_shell): Update. | |
2054 | * cp-valprint.c (cp_print_value_fields): Update. | |
2055 | * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol) | |
2056 | (gcc_cplus_symbol_address): Update. | |
2057 | * compile/compile-c-symbols.c (gcc_convert_symbol) | |
2058 | (gcc_symbol_address, generate_c_for_for_one_variable): Update. | |
2059 | * common/selftest.c: Update. | |
2060 | * common/common-exceptions.h (struct gdb_exception) <message>: Now | |
2061 | a std::string. | |
2062 | (exception_try_scope_entry, exception_try_scope_exit): Don't | |
2063 | declare. | |
2064 | (struct exception_try_scope): Remove. | |
2065 | (TRY): Don't use exception_try_scope. | |
2066 | (struct gdb_exception): Add constructor, operator=. | |
2067 | <what>: New method. | |
2068 | (struct gdb_exception_RETURN_MASK_ALL) | |
2069 | (struct gdb_exception_RETURN_MASK_ERROR) | |
2070 | (struct gdb_exception_RETURN_MASK_QUIT): Add constructor. | |
2071 | (struct gdb_quit_bad_alloc): Update. | |
2072 | * common/common-exceptions.c (exception_none): Change | |
2073 | initializer. | |
2074 | (struct catcher) <state, exception>: Initialize inline. | |
2075 | <prev>: Remove member. | |
2076 | (current_catcher): Remove. | |
2077 | (catchers): New global. | |
2078 | (exceptions_state_mc_init): Simplify. | |
2079 | (catcher_pop): Remove. | |
2080 | (exceptions_state_mc, exceptions_state_mc_catch): Update. | |
2081 | (try_scope_depth, exception_try_scope_entry) | |
2082 | (exception_try_scope_exit): Remove. | |
2083 | (throw_exception_sjlj): Update. | |
2084 | (exception_messages, exception_messages_size): Remove. | |
2085 | (throw_it): Simplify. | |
2086 | (gdb_exception_sliced_copy): Remove. | |
2087 | (throw_exception_cxx): Update. | |
2088 | * cli/cli-script.c (script_from_file): Update. | |
2089 | * breakpoint.c (insert_bp_location, update_breakpoint_locations): | |
2090 | Update. | |
2091 | * ada-valprint.c (ada_val_print): Update. | |
2092 | * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr) | |
2093 | (create_excep_cond_exprs): Update. | |
2094 | ||
c5c10118 TT |
2095 | 2019-04-08 Tom Tromey <tom@tromey.com> |
2096 | ||
2097 | * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY) | |
2098 | (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove. | |
2099 | (TRY, CATCH, END_CATCH): Remove some definitions. | |
2100 | * common/common-exceptions.c: Don't use GDB_XCPT. | |
2101 | (catcher_list_size): Remove. | |
2102 | (throw_exception, throw_it): Simplify. | |
2103 | ||
4de283e4 TT |
2104 | 2019-04-05 Tom Tromey <tom@tromey.com> |
2105 | ||
2106 | Revert the header-sorting patch. | |
2107 | * ft32-tdep.c: Revert. | |
2108 | * frv-tdep.c: Revert. | |
2109 | * frv-linux-tdep.c: Revert. | |
2110 | * frame.c: Revert. | |
2111 | * frame-unwind.c: Revert. | |
2112 | * frame-base.c: Revert. | |
2113 | * fork-child.c: Revert. | |
2114 | * findvar.c: Revert. | |
2115 | * findcmd.c: Revert. | |
2116 | * filesystem.c: Revert. | |
2117 | * filename-seen-cache.h: Revert. | |
2118 | * filename-seen-cache.c: Revert. | |
2119 | * fbsd-tdep.c: Revert. | |
2120 | * fbsd-nat.h: Revert. | |
2121 | * fbsd-nat.c: Revert. | |
2122 | * f-valprint.c: Revert. | |
2123 | * f-typeprint.c: Revert. | |
2124 | * f-lang.c: Revert. | |
2125 | * extension.h: Revert. | |
2126 | * extension.c: Revert. | |
2127 | * extension-priv.h: Revert. | |
2128 | * expprint.c: Revert. | |
2129 | * exec.h: Revert. | |
2130 | * exec.c: Revert. | |
2131 | * exceptions.c: Revert. | |
2132 | * event-top.c: Revert. | |
2133 | * event-loop.c: Revert. | |
2134 | * eval.c: Revert. | |
2135 | * elfread.c: Revert. | |
2136 | * dwarf2read.h: Revert. | |
2137 | * dwarf2read.c: Revert. | |
2138 | * dwarf2loc.c: Revert. | |
2139 | * dwarf2expr.h: Revert. | |
2140 | * dwarf2expr.c: Revert. | |
2141 | * dwarf2-frame.c: Revert. | |
2142 | * dwarf2-frame-tailcall.c: Revert. | |
2143 | * dwarf-index-write.h: Revert. | |
2144 | * dwarf-index-write.c: Revert. | |
2145 | * dwarf-index-common.c: Revert. | |
2146 | * dwarf-index-cache.h: Revert. | |
2147 | * dwarf-index-cache.c: Revert. | |
2148 | * dummy-frame.c: Revert. | |
2149 | * dtrace-probe.c: Revert. | |
2150 | * disasm.h: Revert. | |
2151 | * disasm.c: Revert. | |
2152 | * disasm-selftests.c: Revert. | |
2153 | * dictionary.c: Revert. | |
2154 | * dicos-tdep.c: Revert. | |
2155 | * demangle.c: Revert. | |
2156 | * dcache.h: Revert. | |
2157 | * dcache.c: Revert. | |
2158 | * darwin-nat.h: Revert. | |
2159 | * darwin-nat.c: Revert. | |
2160 | * darwin-nat-info.c: Revert. | |
2161 | * d-valprint.c: Revert. | |
2162 | * d-namespace.c: Revert. | |
2163 | * d-lang.c: Revert. | |
2164 | * ctf.c: Revert. | |
2165 | * csky-tdep.c: Revert. | |
2166 | * csky-linux-tdep.c: Revert. | |
2167 | * cris-tdep.c: Revert. | |
2168 | * cris-linux-tdep.c: Revert. | |
2169 | * cp-valprint.c: Revert. | |
2170 | * cp-support.c: Revert. | |
2171 | * cp-namespace.c: Revert. | |
2172 | * cp-abi.c: Revert. | |
2173 | * corelow.c: Revert. | |
2174 | * corefile.c: Revert. | |
2175 | * continuations.c: Revert. | |
2176 | * completer.h: Revert. | |
2177 | * completer.c: Revert. | |
2178 | * complaints.c: Revert. | |
2179 | * coffread.c: Revert. | |
2180 | * coff-pe-read.c: Revert. | |
2181 | * cli-out.h: Revert. | |
2182 | * cli-out.c: Revert. | |
2183 | * charset.c: Revert. | |
2184 | * c-varobj.c: Revert. | |
2185 | * c-valprint.c: Revert. | |
2186 | * c-typeprint.c: Revert. | |
2187 | * c-lang.c: Revert. | |
2188 | * buildsym.c: Revert. | |
2189 | * buildsym-legacy.c: Revert. | |
2190 | * build-id.h: Revert. | |
2191 | * build-id.c: Revert. | |
2192 | * btrace.c: Revert. | |
2193 | * bsd-uthread.c: Revert. | |
2194 | * breakpoint.h: Revert. | |
2195 | * breakpoint.c: Revert. | |
2196 | * break-catch-throw.c: Revert. | |
2197 | * break-catch-syscall.c: Revert. | |
2198 | * break-catch-sig.c: Revert. | |
2199 | * blockframe.c: Revert. | |
2200 | * block.c: Revert. | |
2201 | * bfin-tdep.c: Revert. | |
2202 | * bfin-linux-tdep.c: Revert. | |
2203 | * bfd-target.c: Revert. | |
2204 | * bcache.c: Revert. | |
2205 | * ax-general.c: Revert. | |
2206 | * ax-gdb.h: Revert. | |
2207 | * ax-gdb.c: Revert. | |
2208 | * avr-tdep.c: Revert. | |
2209 | * auxv.c: Revert. | |
2210 | * auto-load.c: Revert. | |
2211 | * arm-wince-tdep.c: Revert. | |
2212 | * arm-tdep.c: Revert. | |
2213 | * arm-symbian-tdep.c: Revert. | |
2214 | * arm-pikeos-tdep.c: Revert. | |
2215 | * arm-obsd-tdep.c: Revert. | |
2216 | * arm-nbsd-tdep.c: Revert. | |
2217 | * arm-nbsd-nat.c: Revert. | |
2218 | * arm-linux-tdep.c: Revert. | |
2219 | * arm-linux-nat.c: Revert. | |
2220 | * arm-fbsd-tdep.c: Revert. | |
2221 | * arm-fbsd-nat.c: Revert. | |
2222 | * arm-bsd-tdep.c: Revert. | |
2223 | * arch-utils.c: Revert. | |
2224 | * arc-tdep.c: Revert. | |
2225 | * arc-newlib-tdep.c: Revert. | |
2226 | * annotate.h: Revert. | |
2227 | * annotate.c: Revert. | |
2228 | * amd64-windows-tdep.c: Revert. | |
2229 | * amd64-windows-nat.c: Revert. | |
2230 | * amd64-tdep.c: Revert. | |
2231 | * amd64-sol2-tdep.c: Revert. | |
2232 | * amd64-obsd-tdep.c: Revert. | |
2233 | * amd64-obsd-nat.c: Revert. | |
2234 | * amd64-nbsd-tdep.c: Revert. | |
2235 | * amd64-nbsd-nat.c: Revert. | |
2236 | * amd64-nat.c: Revert. | |
2237 | * amd64-linux-tdep.c: Revert. | |
2238 | * amd64-linux-nat.c: Revert. | |
2239 | * amd64-fbsd-tdep.c: Revert. | |
2240 | * amd64-fbsd-nat.c: Revert. | |
2241 | * amd64-dicos-tdep.c: Revert. | |
2242 | * amd64-darwin-tdep.c: Revert. | |
2243 | * amd64-bsd-nat.c: Revert. | |
2244 | * alpha-tdep.c: Revert. | |
2245 | * alpha-obsd-tdep.c: Revert. | |
2246 | * alpha-nbsd-tdep.c: Revert. | |
2247 | * alpha-mdebug-tdep.c: Revert. | |
2248 | * alpha-linux-tdep.c: Revert. | |
2249 | * alpha-linux-nat.c: Revert. | |
2250 | * alpha-bsd-tdep.c: Revert. | |
2251 | * alpha-bsd-nat.c: Revert. | |
2252 | * aix-thread.c: Revert. | |
2253 | * agent.c: Revert. | |
2254 | * addrmap.c: Revert. | |
2255 | * ada-varobj.c: Revert. | |
2256 | * ada-valprint.c: Revert. | |
2257 | * ada-typeprint.c: Revert. | |
2258 | * ada-tasks.c: Revert. | |
2259 | * ada-lang.c: Revert. | |
2260 | * aarch64-tdep.c: Revert. | |
2261 | * aarch64-ravenscar-thread.c: Revert. | |
2262 | * aarch64-newlib-tdep.c: Revert. | |
2263 | * aarch64-linux-tdep.c: Revert. | |
2264 | * aarch64-linux-nat.c: Revert. | |
2265 | * aarch64-fbsd-tdep.c: Revert. | |
2266 | * aarch64-fbsd-nat.c: Revert. | |
2267 | * aarch32-linux-nat.c: Revert. | |
2268 | ||
d55e5aa6 TT |
2269 | 2019-04-05 Tom Tromey <tom@tromey.com> |
2270 | ||
2271 | * ft32-tdep.c: Sort headers. | |
2272 | * frv-tdep.c: Sort headers. | |
2273 | * frv-linux-tdep.c: Sort headers. | |
2274 | * frame.c: Sort headers. | |
2275 | * frame-unwind.c: Sort headers. | |
2276 | * frame-base.c: Sort headers. | |
2277 | * fork-child.c: Sort headers. | |
2278 | * findvar.c: Sort headers. | |
2279 | * findcmd.c: Sort headers. | |
2280 | * filesystem.c: Sort headers. | |
2281 | * filename-seen-cache.h: Sort headers. | |
2282 | * filename-seen-cache.c: Sort headers. | |
2283 | * fbsd-tdep.c: Sort headers. | |
2284 | * fbsd-nat.h: Sort headers. | |
2285 | * fbsd-nat.c: Sort headers. | |
2286 | * f-valprint.c: Sort headers. | |
2287 | * f-typeprint.c: Sort headers. | |
2288 | * f-lang.c: Sort headers. | |
2289 | * extension.h: Sort headers. | |
2290 | * extension.c: Sort headers. | |
2291 | * extension-priv.h: Sort headers. | |
2292 | * expprint.c: Sort headers. | |
2293 | * exec.h: Sort headers. | |
2294 | * exec.c: Sort headers. | |
2295 | * exceptions.c: Sort headers. | |
2296 | * event-top.c: Sort headers. | |
2297 | * event-loop.c: Sort headers. | |
2298 | * eval.c: Sort headers. | |
2299 | * elfread.c: Sort headers. | |
2300 | * dwarf2read.h: Sort headers. | |
2301 | * dwarf2read.c: Sort headers. | |
2302 | * dwarf2loc.c: Sort headers. | |
2303 | * dwarf2expr.h: Sort headers. | |
2304 | * dwarf2expr.c: Sort headers. | |
2305 | * dwarf2-frame.c: Sort headers. | |
2306 | * dwarf2-frame-tailcall.c: Sort headers. | |
2307 | * dwarf-index-write.h: Sort headers. | |
2308 | * dwarf-index-write.c: Sort headers. | |
2309 | * dwarf-index-common.c: Sort headers. | |
2310 | * dwarf-index-cache.h: Sort headers. | |
2311 | * dwarf-index-cache.c: Sort headers. | |
2312 | * dummy-frame.c: Sort headers. | |
2313 | * dtrace-probe.c: Sort headers. | |
2314 | * disasm.h: Sort headers. | |
2315 | * disasm.c: Sort headers. | |
2316 | * disasm-selftests.c: Sort headers. | |
2317 | * dictionary.c: Sort headers. | |
2318 | * dicos-tdep.c: Sort headers. | |
2319 | * demangle.c: Sort headers. | |
2320 | * dcache.h: Sort headers. | |
2321 | * dcache.c: Sort headers. | |
2322 | * darwin-nat.h: Sort headers. | |
2323 | * darwin-nat.c: Sort headers. | |
2324 | * darwin-nat-info.c: Sort headers. | |
2325 | * d-valprint.c: Sort headers. | |
2326 | * d-namespace.c: Sort headers. | |
2327 | * d-lang.c: Sort headers. | |
2328 | * ctf.c: Sort headers. | |
2329 | * csky-tdep.c: Sort headers. | |
2330 | * csky-linux-tdep.c: Sort headers. | |
2331 | * cris-tdep.c: Sort headers. | |
2332 | * cris-linux-tdep.c: Sort headers. | |
2333 | * cp-valprint.c: Sort headers. | |
2334 | * cp-support.c: Sort headers. | |
2335 | * cp-namespace.c: Sort headers. | |
2336 | * cp-abi.c: Sort headers. | |
2337 | * corelow.c: Sort headers. | |
2338 | * corefile.c: Sort headers. | |
2339 | * continuations.c: Sort headers. | |
2340 | * completer.h: Sort headers. | |
2341 | * completer.c: Sort headers. | |
2342 | * complaints.c: Sort headers. | |
2343 | * coffread.c: Sort headers. | |
2344 | * coff-pe-read.c: Sort headers. | |
2345 | * cli-out.h: Sort headers. | |
2346 | * cli-out.c: Sort headers. | |
2347 | * charset.c: Sort headers. | |
2348 | * c-varobj.c: Sort headers. | |
2349 | * c-valprint.c: Sort headers. | |
2350 | * c-typeprint.c: Sort headers. | |
2351 | * c-lang.c: Sort headers. | |
2352 | * buildsym.c: Sort headers. | |
2353 | * buildsym-legacy.c: Sort headers. | |
2354 | * build-id.h: Sort headers. | |
2355 | * build-id.c: Sort headers. | |
2356 | * btrace.c: Sort headers. | |
2357 | * bsd-uthread.c: Sort headers. | |
2358 | * breakpoint.h: Sort headers. | |
2359 | * breakpoint.c: Sort headers. | |
2360 | * break-catch-throw.c: Sort headers. | |
2361 | * break-catch-syscall.c: Sort headers. | |
2362 | * break-catch-sig.c: Sort headers. | |
2363 | * blockframe.c: Sort headers. | |
2364 | * block.c: Sort headers. | |
2365 | * bfin-tdep.c: Sort headers. | |
2366 | * bfin-linux-tdep.c: Sort headers. | |
2367 | * bfd-target.c: Sort headers. | |
2368 | * bcache.c: Sort headers. | |
2369 | * ax-general.c: Sort headers. | |
2370 | * ax-gdb.h: Sort headers. | |
2371 | * ax-gdb.c: Sort headers. | |
2372 | * avr-tdep.c: Sort headers. | |
2373 | * auxv.c: Sort headers. | |
2374 | * auto-load.c: Sort headers. | |
2375 | * arm-wince-tdep.c: Sort headers. | |
2376 | * arm-tdep.c: Sort headers. | |
2377 | * arm-symbian-tdep.c: Sort headers. | |
2378 | * arm-pikeos-tdep.c: Sort headers. | |
2379 | * arm-obsd-tdep.c: Sort headers. | |
2380 | * arm-nbsd-tdep.c: Sort headers. | |
2381 | * arm-nbsd-nat.c: Sort headers. | |
2382 | * arm-linux-tdep.c: Sort headers. | |
2383 | * arm-linux-nat.c: Sort headers. | |
2384 | * arm-fbsd-tdep.c: Sort headers. | |
2385 | * arm-fbsd-nat.c: Sort headers. | |
2386 | * arm-bsd-tdep.c: Sort headers. | |
2387 | * arch-utils.c: Sort headers. | |
2388 | * arc-tdep.c: Sort headers. | |
2389 | * arc-newlib-tdep.c: Sort headers. | |
2390 | * annotate.h: Sort headers. | |
2391 | * annotate.c: Sort headers. | |
2392 | * amd64-windows-tdep.c: Sort headers. | |
2393 | * amd64-windows-nat.c: Sort headers. | |
2394 | * amd64-tdep.c: Sort headers. | |
2395 | * amd64-sol2-tdep.c: Sort headers. | |
2396 | * amd64-obsd-tdep.c: Sort headers. | |
2397 | * amd64-obsd-nat.c: Sort headers. | |
2398 | * amd64-nbsd-tdep.c: Sort headers. | |
2399 | * amd64-nbsd-nat.c: Sort headers. | |
2400 | * amd64-nat.c: Sort headers. | |
2401 | * amd64-linux-tdep.c: Sort headers. | |
2402 | * amd64-linux-nat.c: Sort headers. | |
2403 | * amd64-fbsd-tdep.c: Sort headers. | |
2404 | * amd64-fbsd-nat.c: Sort headers. | |
2405 | * amd64-dicos-tdep.c: Sort headers. | |
2406 | * amd64-darwin-tdep.c: Sort headers. | |
2407 | * amd64-bsd-nat.c: Sort headers. | |
2408 | * alpha-tdep.c: Sort headers. | |
2409 | * alpha-obsd-tdep.c: Sort headers. | |
2410 | * alpha-nbsd-tdep.c: Sort headers. | |
2411 | * alpha-mdebug-tdep.c: Sort headers. | |
2412 | * alpha-linux-tdep.c: Sort headers. | |
2413 | * alpha-linux-nat.c: Sort headers. | |
2414 | * alpha-bsd-tdep.c: Sort headers. | |
2415 | * alpha-bsd-nat.c: Sort headers. | |
2416 | * aix-thread.c: Sort headers. | |
2417 | * agent.c: Sort headers. | |
2418 | * addrmap.c: Sort headers. | |
2419 | * ada-varobj.c: Sort headers. | |
2420 | * ada-valprint.c: Sort headers. | |
2421 | * ada-typeprint.c: Sort headers. | |
2422 | * ada-tasks.c: Sort headers. | |
2423 | * ada-lang.c: Sort headers. | |
2424 | * aarch64-tdep.c: Sort headers. | |
2425 | * aarch64-ravenscar-thread.c: Sort headers. | |
2426 | * aarch64-newlib-tdep.c: Sort headers. | |
2427 | * aarch64-linux-tdep.c: Sort headers. | |
2428 | * aarch64-linux-nat.c: Sort headers. | |
2429 | * aarch64-fbsd-tdep.c: Sort headers. | |
2430 | * aarch64-fbsd-nat.c: Sort headers. | |
2431 | * aarch32-linux-nat.c: Sort headers. | |
2432 | ||
699bd4cf TT |
2433 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2434 | ||
2435 | * varobj.c (varobj_create): Update. | |
2436 | * rust-exp.y (struct rust_parser) <update_innermost_block, | |
2437 | lookup_symbol>: New methods. | |
2438 | (rust_parser::update_innermost_block, rust_parser::lookup_symbol): | |
2439 | Rename. | |
2440 | (rust_parser::rust_lookup_type) | |
2441 | (rust_parser::convert_ast_to_expression, rust_lex_tests): Update. | |
2442 | * printcmd.c (display_command, do_one_display): Update. | |
2443 | * parser-defs.h (struct parser_state) <parser_state>: Add | |
2444 | "tracker" parameter. | |
2445 | (block_tracker): New member. | |
2446 | (class innermost_block_tracker) <innermost_block_tracker>: Add | |
2447 | "types" parameter. | |
2448 | <reset>: Remove method. | |
2449 | (innermost_block): Don't declare. | |
2450 | (null_post_parser): Update. | |
2451 | * parse.c (innermost_block): Remove global. | |
2452 | (write_dollar_variable): Update. | |
2453 | (parse_exp_1, parse_exp_in_context): Add "tracker" parameter. | |
2454 | Remove "tracker_types" parameter. | |
2455 | (parse_expression): Add "tracker" parameter. | |
2456 | (parse_expression_for_completion): Update. | |
2457 | (null_post_parser): Add "tracker" parameter. | |
2458 | * p-exp.y: Update rules. | |
2459 | * m2-exp.y: Update rules. | |
2460 | * language.h (struct language_defn) <la_post_parser>: Add | |
2461 | "tracker" parameter. | |
2462 | * go-exp.y: Update rules. | |
2463 | * f-exp.y: Update rules. | |
2464 | * expression.h (parse_expression, parse_exp_1): Add "tracker" | |
2465 | parameter. | |
2466 | * d-exp.y: Update rules. | |
2467 | * c-exp.y: Update rules. | |
2468 | * breakpoint.c (set_breakpoint_condition): Create an | |
2469 | innermost_block_tracker. | |
2470 | (watch_command_1): Likewise. | |
2471 | * ada-lang.c (resolve): Add "tracker" parameter. | |
2472 | (resolve_subexp): Likewise. | |
2473 | * ada-exp.y (write_var_from_sym): Update. | |
2474 | ||
dac43e32 TT |
2475 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2476 | ||
2477 | * type-stack.h: New file. | |
2478 | * type-stack.c: New file. | |
2479 | * parser-defs.h (enum type_pieces, union type_stack_elt): Move to | |
2480 | type-stack.h. | |
2481 | (insert_into_type_stack, insert_type, push_type, push_type_int) | |
2482 | (insert_type_address_space, pop_type, pop_type_int) | |
2483 | (pop_typelist, pop_type_stack, append_type_stack) | |
2484 | (push_type_stack, get_type_stack, push_typelist) | |
2485 | (follow_type_instance_flags, follow_types): Don't declare. | |
2486 | * parse.c (type_stack): Remove global. | |
2487 | (parse_exp_in_context): Update. | |
2488 | (insert_into_type_stack, insert_type, push_type, push_type_int) | |
2489 | (insert_type_address_space, pop_type, pop_type_int) | |
2490 | (pop_typelist, pop_type_stack, append_type_stack) | |
2491 | (push_type_stack, get_type_stack, push_typelist) | |
2492 | (follow_type_instance_flags, follow_types): Remove (moved to | |
2493 | type-stack.c). | |
2494 | * f-exp.y (type_stack): New global. | |
2495 | Update rules. | |
2496 | (push_kind_type, f_parse): Update. | |
2497 | * d-exp.y (type_stack): New global. | |
2498 | Update rules. | |
2499 | (d_parse): Update. | |
2500 | * c-exp.y (struct c_parse_state) <type_stack>: New member. | |
2501 | Update rules. | |
2502 | * Makefile.in (COMMON_SFILES): Add type-stack.c. | |
2503 | (HFILES_NO_SRCDIR): Add type-stack.h. | |
2504 | ||
2a612529 TT |
2505 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2506 | ||
2507 | * rust-exp.y (rust_parser::lex_identifier, rustyylex) | |
2508 | (rust_parser::convert_ast_to_expression, rust_parse) | |
2509 | (rust_lex_test_completion, rust_lex_tests): Update. | |
2510 | * parser-defs.h (struct expr_completion_state): New. | |
2511 | (struct parser_state) <parser_state>: Add completion parameter. | |
2512 | <mark_struct_expression, mark_completion_tag>: New methods. | |
2513 | <parse_completion, m_completion_state>: New members. | |
2514 | (prefixify_expression, null_post_parser): Update. | |
2515 | (mark_struct_expression, mark_completion_tag): Don't declare. | |
2516 | * parse.c (parse_completion, expout_last_struct) | |
2517 | (expout_tag_completion_type, expout_completion_name): Remove | |
2518 | globals. | |
2519 | (parser_state::mark_struct_expression) | |
2520 | (parser_state::mark_completion_tag): Now methods. | |
2521 | (prefixify_expression): Add last_struct parameter. | |
2522 | (prefixify_subexp): Likewise. | |
2523 | (parse_exp_1): Update. | |
2524 | (parse_exp_in_context): Add cstate parameter. Update. | |
2525 | (parse_expression_for_completion): Create an | |
2526 | expr_completion_state. | |
2527 | (null_post_parser): Add "completion" parameter. | |
2528 | * p-exp.y: Update rules. | |
2529 | (yylex): Update. | |
2530 | * language.h (struct language_defn) <la_post_parser>: Add | |
2531 | "completing" parameter. | |
2532 | * go-exp.y: Update rules. | |
2533 | (lex_one_token): Update. | |
2534 | * expression.h (parse_completion): Don't declare. | |
2535 | * d-exp.y: Update rules. | |
2536 | (lex_one_token): Update rules. | |
2537 | * c-exp.y: Update rules. | |
2538 | (lex_one_token): Update. | |
2539 | * ada-lang.c (resolve): Add "parse_completion" parameter. | |
2540 | (resolve_subexp): Likewise. | |
2541 | (ada_resolve_function): Likewise. | |
2542 | ||
43476f0b TT |
2543 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2544 | ||
2545 | * parser-defs.h (struct parser_state) <start_arglist, | |
2546 | end_arglist>: New methods. | |
2547 | <arglist_len, m_funcall_chain>: New members. | |
2548 | (arglist_len, start_arglist, end_arglist): Don't declare. | |
2549 | * parse.c (arglist_len, funcall_chain): Remove global. | |
2550 | (start_arglist, end_arglist): Remove functions. | |
2551 | (parse_exp_in_context): Update. | |
2552 | * p-exp.y: Update rules. | |
2553 | * m2-exp.y: Update rules. | |
2554 | * go-exp.y: Update rules. | |
2555 | * f-exp.y: Update rules. | |
2556 | * d-exp.y: Update rules. | |
2557 | * c-exp.y: Update rules. | |
2558 | ||
5776fca3 TT |
2559 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2560 | ||
2561 | * rust-exp.y (struct rust_parser) <lex_hex, lex_escape, | |
2562 | lex_operator, push_back>: New methods. | |
2563 | Update all rules. | |
2564 | (rust_parser::lex_hex, lex_escape): Rename and update. | |
2565 | (rust_parser::lex_string, rust_parser::lex_identifier): Update. | |
2566 | (rust_parser::lex_operator): Rename and update. | |
2567 | (rust_parser::lex_number, rustyylex, rustyyerror) | |
2568 | (rust_lex_test_init, rust_lex_test_sequence) | |
2569 | (rust_lex_test_push_back, rust_lex_tests): Update. | |
2570 | * parser-defs.h (struct parser_state) <parser_state>: Add "input" | |
2571 | parameter. | |
2572 | <lexptr, prev_lexptr>: New members. | |
2573 | (lexptr, prev_lexptr): Don't declare. | |
2574 | * parse.c (lexptr, prev_lexptr): Remove globals. | |
2575 | (parse_exp_in_context): Update. | |
2576 | * p-exp.y (yylex, yyerror): Update. | |
2577 | * m2-exp.y (parse_number, yylex, yyerror): Update. | |
2578 | * go-exp.y (lex_one_token, yyerror): Update. | |
2579 | * f-exp.y (match_string_literal, yylex, yyerror): Update. | |
2580 | * d-exp.y (lex_one_token, yyerror): Update. | |
2581 | * c-exp.y (scan_macro_expansion, finished_macro_expansion) | |
2582 | (lex_one_token, yyerror): Update. | |
2583 | * ada-lex.l (YY_INPUT): Update. | |
2584 | (rewind_to_char): Update. | |
2585 | * ada-exp.y (yyerror): Update. | |
2586 | ||
8621b685 TT |
2587 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2588 | ||
2589 | * rust-exp.y (rustyylex, rust_lex_tests): Update. | |
2590 | * parser-defs.h (struct parser_state) <parser_state>: Add new | |
2591 | parameter. | |
2592 | <comma_terminates>: New member. | |
2593 | (comma_terminates): Don't declare global. | |
2594 | * parse.c (comma_terminates): Remove global. | |
2595 | (parse_exp_in_context): Update. | |
2596 | * p-exp.y (yylex): Update. | |
2597 | * m2-exp.y (yylex): Update. | |
2598 | * go-exp.y (lex_one_token): Update. | |
2599 | * f-exp.y (yylex): Update. | |
2600 | * d-exp.y (lex_one_token): Update. | |
2601 | * c-exp.y (lex_one_token): Update. | |
2602 | * ada-lex.l: Update. | |
2603 | ||
28aaf3fd TT |
2604 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2605 | ||
2606 | * rust-exp.y (struct rust_parser) <paren_depth>: New member. | |
2607 | (rustyylex, rust_lex_test_init, rust_lex_test_one) | |
2608 | (rust_lex_test_sequence, rust_lex_test_push_back): Update. | |
2609 | * parser-defs.h (paren_depth): Don't declare. | |
2610 | * parse.c (paren_depth): Remove global. | |
2611 | (parse_exp_in_context): Update. | |
2612 | * p-exp.y (paren_depth): New global. | |
2613 | (pascal_parse): Initialize it. | |
2614 | * m2-exp.y (paren_depth): New global. | |
2615 | (m2_parse): Initialize it. | |
2616 | * go-exp.y (paren_depth): New global. | |
2617 | (go_parse): Initialize it. | |
2618 | * f-exp.y (paren_depth): New global. | |
2619 | (f_parse): Initialize it. | |
2620 | * d-exp.y (paren_depth): New global. | |
2621 | (d_parse): Initialize it. | |
2622 | * c-exp.y (paren_depth): New global. | |
2623 | (c_parse): Initialize it. | |
2624 | * ada-lex.l (paren_depth): New global. | |
2625 | (lexer_init): Initialize it. | |
2626 | ||
1e58a4a4 TT |
2627 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2628 | ||
2629 | * rust-exp.y (rust_parser::crate_name, rust_parser::super_name) | |
2630 | (rust_parser::convert_ast_to_type) | |
2631 | (rust_parser::convert_ast_to_expression, rust_lex_tests): Update. | |
2632 | * parser-defs.h (struct parser_state) <parser_state>: Add | |
2633 | parameters. Initialize new members. | |
2634 | <expression_context_block, expression_context_pc>: New members. | |
2635 | * parse.c (expression_context_block, expression_context_pc): | |
2636 | Remove globals. | |
2637 | (parse_exp_in_context): Update. | |
2638 | * p-exp.y: Update all rules. | |
2639 | (yylex): Update. | |
2640 | * m2-exp.y: Update all rules. | |
2641 | (yylex): Update. | |
2642 | * go-exp.y (yylex): Update. | |
2643 | * f-exp.y (yylex): Update. | |
2644 | * d-exp.y: Update all rules. | |
2645 | (yylex): Update. | |
2646 | * c-exp.y: Update all rules. | |
2647 | (lex_one_token, classify_name, yylex, c_parse): Update. | |
2648 | * ada-exp.y (write_var_or_type, write_name_assoc): Update. | |
2649 | ||
37eedb39 TT |
2650 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2651 | ||
2652 | * gdbarch.h, gdbarch.c: Rebuild. | |
2653 | * gdbarch.sh (dtrace_parse_probe_argument): Change type. | |
2654 | * stap-probe.h: | |
2655 | (struct stap_parse_info): Replace "parser_state" with | |
2656 | "expr_builder". | |
2657 | * parser-defs.h (struct expr_builder): Rename from "parser_state". | |
2658 | (parser_state): New class. | |
2659 | * parse.c (expr_builder): Rename. | |
2660 | (expr_builder::release): Rename. | |
2661 | (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym) | |
2662 | (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile) | |
2663 | (write_exp_elt_longcst, write_exp_elt_floatcst) | |
2664 | (write_exp_elt_type, write_exp_elt_intern, write_exp_string) | |
2665 | (write_exp_string_vector, write_exp_bitstring) | |
2666 | (write_exp_msymbol, mark_struct_expression) | |
2667 | (write_dollar_variable) | |
2668 | (insert_type_address_space, increase_expout_size): Replace | |
2669 | "parser_state" with "expr_builder". | |
2670 | * dtrace-probe.c: Replace "parser_state" with "expr_builder". | |
2671 | * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace | |
2672 | "parser_state" with "expr_builder". | |
2673 | ||
73923d7e TT |
2674 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2675 | ||
2676 | * rust-exp.y: Replace "parse_language" with method call. | |
2677 | * p-exp.y: | |
2678 | (yylex): Replace "parse_language" with method call. | |
2679 | * m2-exp.y: | |
2680 | (yylex): Replace "parse_language" with method call. | |
2681 | * go-exp.y (classify_name): Replace "parse_language" with method | |
2682 | call. | |
2683 | * f-exp.y (yylex): Replace "parse_language" with method call. | |
2684 | * d-exp.y (lex_one_token): Replace "parse_language" with method | |
2685 | call. | |
2686 | * c-exp.y: | |
2687 | (lex_one_token, classify_name, yylex): Replace "parse_language" | |
2688 | with method call. | |
2689 | * ada-exp.y (find_primitive_type, type_char) | |
2690 | (type_system_address): Replace "parse_language" with method call. | |
2691 | ||
fa9f5be6 TT |
2692 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2693 | ||
2694 | * rust-exp.y: Replace "parse_gdbarch" with method call. | |
2695 | * parse.c (write_dollar_variable, insert_type_address_space): | |
2696 | Replace "parse_gdbarch" with method call. | |
2697 | * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method | |
2698 | call. | |
2699 | * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method | |
2700 | call. | |
2701 | * m2-exp.y (parse_type, parse_m2_type, yylex): Replace | |
2702 | "parse_gdbarch" with method call. | |
2703 | * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch" | |
2704 | with method call. | |
2705 | * f-exp.y (parse_type, parse_f_type, yylex): Replace | |
2706 | "parse_gdbarch" with method call. | |
2707 | * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace | |
2708 | "parse_gdbarch" with method call. | |
2709 | * c-exp.y (parse_type, parse_number, classify_name): Replace | |
2710 | "parse_gdbarch" with method call. | |
2711 | * ada-lex.l: Replace "parse_gdbarch" with method call. | |
2712 | * ada-exp.y (parse_type, find_primitive_type, type_char) | |
2713 | (type_system_address): Replace "parse_gdbarch" with method call. | |
2714 | ||
1201a264 TT |
2715 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2716 | ||
2717 | * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update. | |
2718 | * stap-probe.c (stap_parse_argument): Update. | |
2719 | * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove | |
2720 | initial_size parameter. | |
2721 | * rust-exp.y (rust_lex_tests): Update. | |
2722 | * parse.c (parser_state): Update. | |
2723 | (parse_exp_in_context): Update. | |
2724 | * parser-defs.h (struct parser_state) <parser_state>: Remove | |
2725 | "initial_size" parameter. | |
2726 | ||
e3980ce2 TT |
2727 | 2019-04-04 Tom Tromey <tom@tromey.com> |
2728 | ||
2729 | * parser-defs.h (increase_expout_size): Don't declare. | |
2730 | * parse.c (increase_expout_size): Now static. | |
2731 | ||
e9f8e3f1 TS |
2732 | 2019-04-04 Thomas Schwinge <thomas@codesourcery.com> |
2733 | ||
2734 | * gnu-nat.c (gnu_nat_target::wait): Fix | |
2735 | target_waitstatus_to_string call. | |
2736 | ||
d7df6549 AB |
2737 | 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com> |
2738 | ||
2739 | * eval.c (evaluate_subexp_standard): Handle internal functions | |
2740 | during Fortran function call handling. | |
2741 | ||
8bdc1658 AB |
2742 | 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com> |
2743 | ||
2744 | * NEWS: Mention new internal functions. | |
2745 | * dwarf2read.c (dwarf2_init_complex_target_type): New function. | |
2746 | (read_base_type): Use dwarf2_init_complex_target_type. | |
2747 | * value.c (creal_internal_fn): New function. | |
2748 | (cimag_internal_fn): New function. | |
2749 | (_initialize_values): Register new internal functions. | |
2750 | ||
c29705b7 PW |
2751 | 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2752 | ||
2753 | * infrun.c (stop_all_threads): If debug_infrun, always | |
2754 | trace the wait status after wait_one, using | |
2755 | target_waitstatus_to_string and target_pid_to_str. | |
2756 | (handle_inferior_event): Replace various trace of | |
2757 | wait status kind by a single trace. | |
2758 | * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local | |
2759 | wait status kind image by target_waitstatus_to_string. | |
2760 | * target/waitstatus.c (target_waitstatus_to_string): Fix | |
2761 | obsolete comment. | |
2762 | ||
05caa1d2 TT |
2763 | 2019-04-01 Tom Tromey <tromey@adacore.com> |
2764 | ||
2765 | PR symtab/23331: | |
2766 | * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges. | |
2767 | ||
9d1447e0 SDJ |
2768 | 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com> |
2769 | Pedro Alves <palves@redhat.com> | |
2770 | ||
2771 | * top.c (quit_force): Call 'finalize_values'. | |
2772 | * value.c (finalize_values): New function. | |
2773 | * value.h (finalize_values): Declare. | |
2774 | ||
7734102d EZ |
2775 | 2019-03-30 Eli Zaretskii <eliz@gnu.org> |
2776 | ||
2777 | * NEWS: Announce $_gdb_major and $_gdb_minor. | |
2778 | ||
2779 | * top.c (init_gdb_version_vars): New function. | |
2780 | (gdb_init): Call init_gdb_version_vars. | |
2781 | ||
188e1fa9 TT |
2782 | 2019-03-29 Tom Tromey <tromey@adacore.com> |
2783 | ||
2784 | * printcmd.c (_initialize_printcmd): Add usage lines. Update some | |
2785 | help text. Remove dead code. | |
2786 | ||
2880242d KS |
2787 | 2019-03-29 Keith Seitz <keiths@redhat.com> |
2788 | ||
2789 | From Siddhesh Poyarekar: | |
2790 | * f-lang.h (f77_get_upperbound): Return LONGEST. | |
2791 | (f77_get_lowerbound): Likewise. | |
2792 | * f-typeprint.c (f_type_print_varspec_suffix): Expand | |
2793 | UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format | |
2794 | print them. | |
2795 | (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use | |
2796 | plongest to format print it. | |
2797 | * f-valprint.c (f77_get_lowerbound): Return LONGEST. | |
2798 | (f77_get_upperbound): Likewise. | |
2799 | (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND, | |
2800 | LOWER_BOUND to LONGEST. | |
2801 | (f77_create_arrayprint_offset_tbl): Likewise. | |
2802 | ||
cc1defb1 KS |
2803 | 2019-03-29 Keith Seitz <keiths@redhat.com> |
2804 | ||
2805 | * ada-lang.c (ada_template_to_fixed_record_type_1): Use | |
2806 | %s/pulongest for TYPE_LENGTH instead of %d in format | |
2807 | strings. | |
2808 | * ada-typerint.c (ada_print_type): Likewise. | |
2809 | * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise. | |
2810 | * compile/compile-c-support.c (generate_register_struct): Likewise. | |
2811 | * gdbtypes.c (recursive_dump_type): Likewise. | |
2812 | * gdbtypes.h (struct type) <length>: Change type to ULONGEST. | |
2813 | * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH | |
2814 | instead of %d in format strings. | |
2815 | * riscv-tdep.c (riscv_type_alignment): Cast second argument | |
2816 | to std::min to ULONGEST. | |
2817 | * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH | |
2818 | instead of %d in format strings. | |
2819 | * tracepoint.c (info_scope_command): Likewise. | |
2820 | * typeprint.c (print_offset_data::update) | |
2821 | (print_offset_data::finish): Likewise. | |
2822 | * xtensa-tdep.c (xtensa_store_return_value) | |
2823 | (xtensa_push_dummy_call): Likewise. | |
2824 | ||
e432ccf1 JT |
2825 | 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk> |
2826 | ||
2827 | * windows-nat.c (display_selector): Fixed format specifications | |
2828 | for 64-bit Cygwin. | |
2829 | ||
65d2b333 PW |
2830 | 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2831 | ||
2832 | * infrun.c (follow_exec): Call target_terminal::ours_for_output. | |
2833 | ||
f489207e SL |
2834 | 2019-03-28 Sandra Loosemore <sandra@codesourcery.com> |
2835 | ||
2836 | * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper. | |
2837 | * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers. | |
2838 | * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New. | |
2839 | (nios2_linux_init_abi): Install it. | |
2840 | ||
bffa1015 AH |
2841 | 2019-03-28 Alan Hayward <alan.hayward@arm.com> |
2842 | ||
2843 | * aarch64-tdep.c (aarch64_vnv_type): Use vector types. | |
2844 | ||
fc96163a AH |
2845 | 2019-03-28 Alan Hayward <alan.hayward@arm.com> |
2846 | ||
2847 | * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view. | |
2848 | ||
20dc7e9b PW |
2849 | 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2850 | Tom Tromey <tromey@adacore.com> | |
2851 | ||
2852 | * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow. | |
2853 | ||
7f5331a8 JB |
2854 | 2019-03-26 Joel Brobecker <brobecker@adacore.com> |
2855 | ||
2856 | * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method. | |
2857 | (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img" | |
2858 | method to compute the bounds of range types. Also print "[evaluated]" | |
2859 | if the bounds' values come from a dynamic evaluation. | |
2860 | ||
18c77628 AB |
2861 | 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com> |
2862 | ||
2863 | * cp-valprint.c (cp_print_value_fields): Don't print trailing | |
2864 | whitespace when pretty printing is on. | |
2865 | ||
53c973f2 AH |
2866 | 2019-03-26 Alan Hayward <alan.hayward@arm.com> |
2867 | ||
2868 | * ppc-linux-nat.c: Add include. | |
2869 | ||
d851aa71 AH |
2870 | 2019-03-26 Alan Hayward <alan.hayward@arm.com> |
2871 | ||
2872 | * NEWS: Mention AArch64 Pointer Authentication. | |
2873 | ||
2fe7bab7 AH |
2874 | 2019-03-26 Alan Hayward <alan.hayward@arm.com> |
2875 | ||
2876 | * arm-linux-nat.c: Add include. | |
2877 | ||
068ef30e SM |
2878 | 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca> |
2879 | ||
2880 | * source-cache.c (source_cache::get_source_lines): Re-read | |
2881 | fullname after calling open_source_file. | |
2882 | ||
81a24d04 JB |
2883 | 2019-03-25 John Baldwin <jhb@FreeBSD.org> |
2884 | ||
2885 | * NEWS: Mention TLS support for FreeBSD. | |
2886 | ||
79e7ae11 TT |
2887 | 2019-03-25 Tom Tromey <tromey@adacore.com> |
2888 | ||
2889 | * minsyms.c (BUNCH_SIZE): Update comment. | |
2890 | (~minimal_symbol_reader): Remove old comment. | |
2891 | (compact_minimal_symbols): Update comment. | |
2892 | (minimal_symbol_reader::install): Remove old comment. Update | |
2893 | other comments. | |
2894 | ||
d45963c2 AH |
2895 | 2019-03-25 Alan Hayward <alan.hayward@arm.com> |
2896 | ||
2897 | * s390-linux-nat.c: Add include. | |
2898 | ||
0f83012e AH |
2899 | 2019-03-25 Alan Hayward <alan.hayward@arm.com> |
2900 | ||
2901 | * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description): | |
2902 | Call linux_get_hwcap. | |
2903 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
2904 | Likewise. | |
2905 | (aarch64_linux_get_hwcap): Remove function. | |
2906 | * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove | |
2907 | declaration. | |
2908 | * arm-linux-nat.c (arm_linux_nat_target::read_description):Call | |
2909 | linux_get_hwcap. | |
2910 | * arm-linux-tdep.c (arm_linux_core_read_description): Likewise. | |
2911 | * linux-tdep.c (linux_get_hwcap): Add function. | |
2912 | (linux_get_hwcap2): Likewise. | |
2913 | * linux-tdep.h (linux_get_hwcap): Add declaration. | |
2914 | (linux_get_hwcap2): Likewise. | |
2915 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function. | |
2916 | (ppc_linux_get_hwcap2): Likewise. | |
2917 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call | |
2918 | linux_get_hwcap. | |
2919 | (ppc_linux_nat_target::insert_watchpoint): Likewise. | |
2920 | (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise. | |
2921 | (ppc_linux_nat_target::read_description): Likewise. | |
2922 | * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise. | |
2923 | * s390-linux-nat.c: Likewise. | |
2924 | * s390-linux-tdep.c (s390_core_read_description): Likewise. | |
2925 | ||
6640a367 TT |
2926 | 2019-03-24 Tom Tromey <tom@tromey.com> |
2927 | ||
2928 | * ada-lang.c (standard_lookup): Simplify initialization. | |
2929 | (ada_lookup_symbol_nonlocal): Simplify return. | |
2930 | * solib-spu.c (spu_lookup_lib_symbol): Simplify return. | |
2931 | * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return. | |
2932 | * solib-svr4.c (elf_lookup_lib_symbol): Simplify return. | |
2933 | * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify | |
2934 | initialization. | |
2935 | * solib.c (solib_global_lookup): Simplify. | |
2936 | * symtab.c (null_block_symbol): Remove. | |
2937 | (symbol_cache_lookup): Simplify returns. | |
2938 | (lookup_language_this): Simplify returns. | |
2939 | (lookup_symbol_aux): Simplify return. | |
2940 | (lookup_local_symbol): Simplify returns. | |
2941 | (lookup_global_symbol_from_objfile): Simplify return. | |
2942 | (lookup_symbol_in_objfile_symtabs) | |
2943 | (lookup_symbol_in_objfile_from_linkage_name): Simplify return. | |
2944 | (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block) | |
2945 | (lookup_static_symbol, lookup_global_symbol): Simplify return. | |
2946 | * cp-namespace.c (cp_lookup_bare_symbol) | |
2947 | (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports) | |
2948 | (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1) | |
2949 | (cp_lookup_nested_symbol): Don't use null_block_symbol. | |
2950 | (cp_lookup_symbol_via_imports): Simplify initialization. | |
2951 | (find_symbol_in_baseclass): Likewise. | |
2952 | * symtab.h (null_block_symbol): Remove. | |
2953 | * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol. | |
2954 | (d_lookup_nested_symbol, d_lookup_symbol_imports) | |
2955 | (d_lookup_symbol_module): Likewise. | |
2956 | (find_symbol_in_baseclass): Simplify initialization. | |
2957 | ||
a930ebcd TT |
2958 | 2019-03-24 Tom Tromey <tom@tromey.com> |
2959 | ||
2960 | * expression.h: Don't include symtab.h. | |
2961 | (struct block): Forward declare. | |
2962 | ||
582942f4 TT |
2963 | 2019-03-24 Tom Tromey <tom@tromey.com> |
2964 | ||
2965 | * c-exp.y (typebase): Remove casts. | |
2966 | * gdbtypes.c (lookup_unsigned_typename, ) | |
2967 | (lookup_signed_typename): Remove cast. | |
2968 | * eval.c (parse_to_comma_and_eval): Remove cast. | |
2969 | * parse.c (write_dollar_variable): Remove cast. | |
2970 | * block.h (struct block) <superblock>: Now const. | |
2971 | * symfile-debug.c (debug_qf_map_matching_symbols): Update. | |
2972 | * psymtab.c (psym_map_matching_symbols): Make "block" const. | |
2973 | (map_block): Make "block" const. | |
2974 | * symfile.h (struct quick_symbol_functions) | |
2975 | <map_matching_symbols>: Constify block argument to "callback". | |
2976 | * symtab.c (basic_lookup_transparent_type_quick): Make "block" | |
2977 | const. | |
2978 | (find_pc_sect_compunit_symtab): Make "b" const. | |
2979 | (find_symbol_at_address): Likewise. | |
2980 | (search_symbols): Likewise. | |
2981 | * dwarf2read.c (dw2_lookup_symbol): Make "block" const. | |
2982 | (dw2_debug_names_lookup_symbol): Likewise. | |
2983 | (dw2_map_matching_symbols): Update. | |
2984 | * p-valprint.c (pascal_val_print): Remove "block". | |
2985 | * ada-lang.c (ada_add_global_exceptions): Make "b" const. | |
2986 | (aux_add_nonlocal_symbols): Make "block" const. | |
2987 | (resolve_subexp): Remove cast. | |
2988 | * linespec.c (iterate_over_all_matching_symtabs): Make "block" | |
2989 | const. | |
2990 | (iterate_over_file_blocks): Likewise. | |
2991 | * f-exp.y (%union) <bval>: Remove. | |
2992 | * coffread.c (patch_opaque_types): Make "b" const. | |
2993 | * spu-tdep.c (spu_catch_start): Make "block" const. | |
2994 | * c-valprint.c (print_unpacked_pointer): Remove "block". | |
2995 | * symmisc.c (dump_symtab_1): Make "b" const. | |
2996 | (block_depth): Make "block" const. | |
2997 | * d-exp.y (%union) <bval>: Remove. | |
2998 | * cp-support.h (cp_lookup_rtti_type): Update. | |
2999 | * cp-support.c (cp_lookup_rtti_type): Make "block" const. | |
3000 | * psymtab.c (psym_lookup_symbol): Make "block" const. | |
3001 | (maintenance_check_psymtabs): Make "b" const. | |
3002 | * python/py-framefilter.c (extract_sym): Make "sym_block" const. | |
3003 | (enumerate_locals, enumerate_args): Update. | |
3004 | * python/py-symtab.c (stpy_global_block): Make "block" const. | |
3005 | (stpy_static_block): Likewise. | |
3006 | * inline-frame.c (block_starting_point_at): Make "new_block" | |
3007 | const. | |
3008 | * block.c (find_block_in_blockvector): Make return type const. | |
3009 | (blockvector_for_pc_sect): Make "b" const. | |
3010 | (find_block_in_blockvector): Make "b" const. | |
3011 | ||
7ad417dd TT |
3012 | 2019-03-23 Tom Tromey <tom@tromey.com> |
3013 | ||
3014 | * varobj.c (varobj_create): Update. | |
3015 | * symfile.c (clear_symtab_users): Don't reset innermost_block. | |
3016 | * printcmd.c (display_command, do_one_display): Don't reset | |
3017 | innermost_block. | |
3018 | * parser-defs.h (enum innermost_block_tracker_type): Move to | |
3019 | expression.h. | |
3020 | (innermost_block): Update comment. | |
3021 | * parse.c (parse_exp_1): Add tracker_types parameter. | |
3022 | (parse_exp_in_context): Rename from parse_exp_in_context_1. Add | |
3023 | tracker_types parameter. Reset innermost_block. | |
3024 | (parse_exp_in_context): Remove. | |
3025 | (parse_expression_for_completion): Update. | |
3026 | * objfiles.c (~objfile): Don't reset expression_context_block or | |
3027 | innermost_block. | |
3028 | * expression.h (enum innermost_block_tracker_type): Move from | |
3029 | parser-defs.h. | |
3030 | (parse_exp_1): Add tracker_types parameter. | |
3031 | * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't | |
3032 | reset innermost_block. | |
3033 | ||
b366c208 TT |
3034 | 2019-03-23 Tom Tromey <tom@tromey.com> |
3035 | ||
3036 | * objfiles.h: Include bcache.h. | |
3037 | ||
9bb9b2f9 TT |
3038 | 2019-03-23 Tom Tromey <tom@tromey.com> |
3039 | ||
3040 | * linespec.c (get_current_search_block): Use | |
3041 | scoped_restore_current_language. | |
3042 | * symmisc.c (dump_symtab): Use scoped_restore_current_language. | |
3043 | ||
59c28372 AH |
3044 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
3045 | Jiong Wang <jiong.wang@arm.com> | |
3046 | ||
3047 | * aarch64-linux-tdep.c | |
3048 | (aarch64_linux_iterate_over_regset_sections): Check for pauth | |
3049 | section. | |
3050 | * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define. | |
3051 | ||
17e116a7 AH |
3052 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
3053 | Jiong Wang <jiong.wang@arm.com> | |
3054 | ||
3055 | * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth | |
3056 | instructions. | |
3057 | (aarch64_analyze_prologue_test): Add PACIASP test. | |
3058 | (aarch64_prologue_prev_register): Unmask PC value. | |
3059 | ||
11e1b75f AH |
3060 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
3061 | Jiong Wang <jiong.wang@arm.com> | |
3062 | ||
3063 | * aarch64-tdep.c (aarch64_frame_unmask_address): New function. | |
3064 | (aarch64_dwarf2_prev_register): Unmask PC value. | |
3065 | (aarch64_dwarf2_frame_init_reg): Init pauth registers. | |
3066 | (aarch64_execute_dwarf_cfa_vendor_op): Check for | |
3067 | DW_CFA_AARCH64_negate_ra_state. | |
3068 | (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op. | |
3069 | ||
34dcc7cf AH |
3070 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
3071 | Jiong Wang <jiong.wang@arm.com> | |
3072 | ||
3073 | * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth | |
3074 | registers. | |
3075 | (aarch64_pseudo_register_name): Likewise. | |
3076 | (aarch64_pseudo_register_type): Likewise. | |
3077 | (aarch64_pseudo_register_reggroup_p): Likewise. | |
3078 | (aarch64_gdbarch_init): Add pauth registers. | |
3079 | * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define. | |
3080 | (AARCH64_DWARF_PAUTH_DMASK): Likewise. | |
3081 | (AARCH64_DWARF_PAUTH_CMASK): Likewise. | |
3082 | (struct gdbarch_tdep): Add regnum for ra_state. | |
3083 | ||
1ef53e6b AH |
3084 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
3085 | Jiong Wang <jiong.wang@arm.com> | |
3086 | ||
3087 | * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define. | |
3088 | ||
76bed0fd AH |
3089 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
3090 | Jiong Wang <jiong.wang@arm.com> | |
3091 | ||
3092 | * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New | |
3093 | function. | |
3094 | (aarch64_linux_nat_target::fetch_registers): Read pauth registers. | |
3095 | * aarch64-tdep.c (aarch64_cannot_store_register): New function. | |
3096 | (aarch64_gdbarch_init): Add puth registers. | |
3097 | * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features. | |
3098 | * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define. | |
3099 | (AARCH64_PAUTH_CMASK_REGNUM): Likewise. | |
3100 | ||
ee4fbcfa AH |
3101 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
3102 | Jiong Wang <jiong.wang@arm.com> | |
3103 | ||
3104 | * aarch64-linux-nat.c | |
3105 | (aarch64_linux_nat_target::read_description): Read PACA hwcap. | |
3106 | * aarch64-linux-tdep.c | |
3107 | (aarch64_linux_core_read_description): Likewise. | |
3108 | (aarch64_linux_get_hwcap): New function. | |
3109 | * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define. | |
3110 | (aarch64_linux_get_hwcap): New declaration. | |
3111 | ||
6dc0ebde AH |
3112 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
3113 | Jiong Wang <jiong.wang@arm.com> | |
3114 | ||
3115 | * aarch64-linux-nat.c | |
3116 | (aarch64_linux_nat_target::read_description): Add pauth param. | |
3117 | * aarch64-linux-tdep.c | |
3118 | (aarch64_linux_core_read_description): Likewise. | |
3119 | * aarch64-tdep.c (struct target_desc): Add in pauth. | |
3120 | (aarch64_read_description): Add pauth param. | |
3121 | (aarch64_gdbarch_init): Likewise. | |
3122 | * aarch64-tdep.h (aarch64_read_description): Likewise. | |
3123 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
3124 | * arch/aarch64.h (aarch64_create_target_description): Likewise. | |
3125 | * features/Makefile: Add new files. | |
3126 | * features/aarch64-pauth.c: New file. | |
3127 | * features/aarch64-pauth.xml: New file. | |
3128 | ||
595915c1 TT |
3129 | 2019-03-20 Tom Tromey <tromey@adacore.com> |
3130 | ||
3131 | * infrun.c (handle_inferior_event): Rename from | |
3132 | handle_inferior_event_1. Create a scoped_value_mark. | |
3133 | (handle_inferior_event): Remove. | |
3134 | ||
4c7d57e7 TT |
3135 | 2019-03-19 Tom Tromey <tromey@adacore.com> |
3136 | ||
3137 | * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once. | |
3138 | * infrun.h (print_stop_event): Add "displays" parameter. | |
3139 | * infrun.c (print_stop_event): Add "displays" parameter. | |
3140 | ||
cb246234 PA |
3141 | 2019-03-19 Pedro Alves <palves@redhat.com> |
3142 | ||
3143 | * tui/tui-out.c (tui_ui_out::do_field_string): Simplify. | |
3144 | (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of | |
3145 | to -1. Fix TABs vs spaces. | |
3146 | (tui_ui_out::tui_ui_out): Don't initialize fields here. | |
3147 | * tui/tui-out.h (tui_ui_out) Add intro comments. | |
3148 | <m_line, m_start_of_line>: In-class initialize, and add describing | |
3149 | comment. | |
3150 | ||
3a0e45b2 AH |
3151 | 2019-03-18 Alan Hayward <alan.hayward@arm.com> |
3152 | ||
3153 | * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix | |
3154 | variable names. | |
3155 | (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view. | |
3156 | ||
5371b850 PA |
3157 | 2019-03-18 Pedro Alves <palves@redhat.com> |
3158 | Eli Zaretskii <eliz@gnu.org> | |
3159 | ||
3160 | * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of | |
3161 | m_line and m_start_of_line. | |
3162 | ||
b17c4cd0 EZ |
3163 | 2019-03-18 Eli Zaretskii <eliz@gnu.org> |
3164 | ||
3165 | * tui/tui-io.c (gdb_wgetch): Don't echo CR. | |
3166 | (tui_getc): When gdb_wgetch returns a CR, behave the same as when | |
3167 | it returns a newline. This fixes a regression in TU mode, whereby | |
3168 | the next line is output on the same screen line as the user input. | |
3169 | ||
4bd56d18 TT |
3170 | 2019-03-18 Tom Tromey <tromey@adacore.com> |
3171 | ||
3172 | * minsyms.c (minimal_symbol_reader::install): Remove call to | |
3173 | obstack_blank. | |
3174 | ||
55c10aca PA |
3175 | 2019-03-18 Pedro Alves <palves@redhat.com> |
3176 | ||
3177 | * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg): | |
3178 | New globals. | |
3179 | (apply_style): New, factored out from ... | |
3180 | (apply_ansi_escape): ... this. Handle reverse video mode. | |
3181 | (tui_set_reverse_mode): New function. | |
3182 | * tui/tui-io.h (tui_set_reverse_mode): New declaration. | |
3183 | * tui/tui-winsource.c (tui_show_source_line): Use | |
3184 | tui_set_reverse_mode instead of setting A_STANDOUT. | |
3185 | * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>: | |
3186 | New setter methods. | |
3187 | ||
647bb750 HD |
3188 | 2019-03-18 Hannes Domani <ssbssa@yahoo.de> |
3189 | ||
3190 | * tui/tui-source.c (copy_source_line): Fix handling of 'column'. | |
3191 | Handle tabs. | |
3192 | ||
bff8c71f TT |
3193 | 2019-03-18 Tom Tromey <tromey@adacore.com> |
3194 | ||
3195 | * ada-lang.c (empty_array): Add "high" parameter. | |
3196 | (ada_evaluate_subexp): Update. | |
3197 | ||
58785d98 ST |
3198 | 2019-03-17 Sergei Trofimovich <siarheit@google.com> |
3199 | ||
3200 | * unittests/string_view-selftests.c: Define | |
3201 | _initialize_string_view_selftests unconditionally. | |
3202 | ||
d4cbef22 ВМ |
3203 | 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com> |
3204 | ||
3205 | PR gdb/24350 | |
3206 | * windows-nat.c (windows_make_so): Remove unused text_vma variable. | |
3207 | ||
fce4c071 ВМ |
3208 | 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com> |
3209 | ||
3210 | PR gdb/24351 | |
3211 | * windows-nat.c (display_selector): Fix format specifiers. | |
3212 | ||
f7f0a123 EZ |
3213 | 2019-03-17 Eli Zaretskii <eliz@gnu.org> |
3214 | ||
3215 | * tui/tui-winsource.c (tui_set_is_exec_point_at): Call | |
3216 | tui_refill_source_window instead of tui_refresh_win, to update the | |
3217 | current execution line. This fixes redisplay of the current line | |
3218 | when stepping through the code with "next" or "step". | |
3219 | ||
ab42892f EZ |
3220 | 2019-03-16 Eli Zaretskii <eliz@gnu.org> |
3221 | ||
3222 | * source-cache.c (source_cache::get_source_lines): Call | |
3223 | find_source_lines to initialize s->nlines. This fixes vertical | |
3224 | scrolling of TUI source window when the DOWN arrow is pressed. | |
3225 | ||
8d8c087f PW |
3226 | 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3227 | ||
3228 | * auto-load.c (_initialize_auto_load): Fix 'This options has'. | |
3229 | linux-thread-db.c (_initialize_thread_db): Likewise. | |
3230 | ||
798e1c30 EZ |
3231 | 2019-03-16 Eli Zaretskii <eliz@gnu.org> |
3232 | ||
3233 | * tui/tui-winsource.c (tui_show_source_line): Revert "Use | |
3234 | wclrtoeol in tui_show_source_line". This reverts changes made in | |
3235 | commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c. | |
3236 | ||
eefba3da TT |
3237 | 2019-03-15 Tom Tromey <tom@tromey.com> |
3238 | ||
3239 | * symtab.h (struct minimal_symbol): Derive from | |
3240 | general_symbol_info. | |
3241 | (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS) | |
3242 | (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES) | |
3243 | (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE) | |
3244 | (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME) | |
3245 | (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME) | |
3246 | (MSYMBOL_SEARCH_NAME): Update. | |
3247 | (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove. | |
3248 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset. | |
3249 | * minsyms.c (minimal_symbol_reader::record_full): Update. | |
3250 | ||
0de2420c TT |
3251 | 2019-03-15 Tom Tromey <tom@tromey.com> |
3252 | ||
3253 | * minsyms.c (minimal_symbol_reader::install): Use memcpy. | |
3254 | ||
042d75e4 TT |
3255 | 2019-03-15 Tom Tromey <tom@tromey.com> |
3256 | ||
3257 | * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a | |
3258 | unique_xmalloc_ptr. | |
3259 | (objfile::msymbols_range::begin, objfile::msymbols_range::end): | |
3260 | Update. | |
3261 | * minsyms.c (lookup_minimal_symbol_by_pc_section) | |
3262 | (build_minimal_symbol_hash_tables) | |
3263 | (minimal_symbol_reader::install): Update. | |
3264 | ||
db92718b TT |
3265 | 2019-03-15 Tom Tromey <tom@tromey.com> |
3266 | ||
3267 | * symtab.c (create_demangled_names_hash): Update. | |
3268 | (symbol_set_names): Update. | |
3269 | * objfiles.h (struct objfile_per_bfd_storage) | |
3270 | <demangled_names_hash>: Now an htab_up. | |
3271 | * objfiles.c (objfile_per_bfd_storage): Simplify. | |
3272 | ||
d6797f46 TT |
3273 | 2019-03-15 Tom Tromey <tom@tromey.com> |
3274 | ||
3275 | * objfiles.h (struct objfile_per_bfd_storage): Declare | |
3276 | destructor. | |
3277 | * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage): | |
3278 | New. | |
3279 | (get_objfile_bfd_data): Use new. Don't initialize | |
3280 | language_of_main. | |
3281 | (free_objfile_per_bfd_storage): Remove. | |
3282 | (objfile_bfd_data_free, objfile::~objfile): Use delete. | |
3283 | ||
741d7538 TT |
3284 | 2019-03-15 Tom Tromey <tom@tromey.com> |
3285 | ||
3286 | * symfile.c (reread_symbols): Update. | |
3287 | * objfiles.c (objfile::objfile): Update. | |
3288 | * minsyms.h (terminate_minimal_symbol_table): Don't declare. | |
3289 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update | |
3290 | comment. | |
3291 | (minimal_symbol_reader::install): Update. | |
3292 | (terminate_minimal_symbol_table): Remove. | |
3293 | * jit.c (jit_object_close_impl): Update. | |
3294 | ||
788c80d1 TT |
3295 | 2019-03-15 Tom Tromey <tom@tromey.com> |
3296 | ||
3297 | * minsyms.c (minimal_symbol_reader::record_full): Remove some | |
3298 | initializations. | |
3299 | ||
1b7a07cb TT |
3300 | 2019-03-15 Tom Tromey <tom@tromey.com> |
3301 | ||
3302 | * objfiles.h (struct objfile_per_bfd_storage) | |
3303 | <demangled_hash_languages>: Now a bitset. | |
3304 | * minsyms.c (add_minsym_to_demangled_hash_table): Update. | |
3305 | (lookup_minimal_symbol): Update. | |
3306 | ||
3db066bc TT |
3307 | 2019-03-15 Tom Tromey <tom@tromey.com> |
3308 | ||
3309 | * minsyms.h (class minimal_symbol_reader) <record_with_info>: | |
3310 | Don't return the symbol. | |
3311 | * coffread.c (record_minimal_symbol): Use record_full. | |
3312 | ||
3fff2c37 EZ |
3313 | 2019-03-14 Eli Zaretskii <eliz@gnu.org> |
3314 | ||
3315 | The MS-Windows port of ncurses fails to switch to a color pair if | |
3316 | one or both of the colors are the implicit default colors. This | |
3317 | change records the default colors when TUI is initialized, and | |
3318 | then specifies them explicitly when a color pair uses the default | |
3319 | colors. This allows color styling in TUI mode on MS-Windows. | |
3320 | ||
3321 | * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare | |
3322 | ncurses_norm_attr. | |
3323 | (tui_initialize_io) [__MINGW32__]: Record the default terminal | |
3324 | colors in ncurses_norm_attr. | |
3325 | (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is | |
3326 | "none", replace it with the default color recorded in | |
3327 | ncurses_norm_attr. | |
3328 | ||
3b336828 TT |
3329 | 2019-03-14 Tom Tromey <tromey@adacore.com> |
3330 | ||
3331 | * source-cache.h (class source_cache) <get_source_lines>: Return | |
3332 | std::string. | |
3333 | * source-cache.c (source_cache::extract_lines): Handle case where | |
3334 | first_pos==npos. Return std::string. | |
3335 | (source_cache::get_source_lines): Update. | |
3336 | ||
d085f989 TT |
3337 | 2019-03-14 Tom Tromey <tromey@adacore.com> |
3338 | ||
3339 | * NEWS: Add item for "style sources" commands. | |
3340 | * source-cache.c (source_cache::get_source_lines): Check | |
3341 | source_styling. | |
3342 | * cli/cli-style.c (source_styling): New global. | |
3343 | (_initialize_cli_style): Add "style sources" commands. | |
3344 | (show_style_sources): New function. | |
3345 | * cli/cli-style.h (source_styling): Declare. | |
3346 | ||
6f11e682 TT |
3347 | 2019-03-14 Pedro Alves <palves@redhat.com> |
3348 | Tom Tromey <tromey@adacore.com> | |
3349 | ||
3350 | * tui/tui-winsource.h (tui_refill_source_window): Declare. | |
3351 | * tui/tui-winsource.c (tui_refill_source_window): New function, | |
3352 | from... | |
3353 | (tui_horizontal_source_scroll): ... here. Move some logic. | |
3354 | * cli/cli-style.c (set_style_enabled): Notify new observable. | |
3355 | * tui/tui-hooks.c (tui_redisplay_source): New function. | |
3356 | (tui_attach_detach_observers): Attach or detach | |
3357 | tui_redisplay_source. | |
3358 | * observable.h (source_styling_changed): New observable. | |
3359 | * observable.c: Define source_styling_changed observable. | |
3360 | ||
a068643d TT |
3361 | 2019-03-13 Tom Tromey <tromey@adacore.com> |
3362 | ||
3363 | * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers) | |
3364 | (i386_gnu_nat_target::store_registers): Update. | |
3365 | * target-debug.h (target_debug_print_std_string): New macro. | |
3366 | * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update. | |
3367 | * windows-tdep.c (display_one_tib): Update. | |
3368 | * tui/tui-stack.c (tui_make_status_line): Update. | |
3369 | * top.c (print_inferior_quit_action): Update. | |
3370 | * thread.c (thr_try_catch_cmd): Update. | |
3371 | (add_thread_with_info): Update. | |
3372 | (thread_target_id_str): Update. | |
3373 | (thr_try_catch_cmd): Update. | |
3374 | (thread_command): Update. | |
3375 | (thread_find_command): Update. | |
3376 | * record-btrace.c (record_btrace_target::info_record) | |
3377 | (record_btrace_resume_thread, record_btrace_target::resume) | |
3378 | (record_btrace_cancel_resume, record_btrace_step_thread) | |
3379 | (record_btrace_target::wait, record_btrace_target::wait) | |
3380 | (record_btrace_target::wait, record_btrace_target::stop): Update. | |
3381 | * progspace.c (print_program_space): Update. | |
3382 | * process-stratum-target.c | |
3383 | (process_stratum_target::thread_address_space): Update. | |
3384 | * linux-fork.c (linux_fork_mourn_inferior) | |
3385 | (detach_checkpoint_command, info_checkpoints_command) | |
3386 | (linux_fork_context): Update. | |
3387 | (linux_fork_detach): Update. | |
3388 | (class scoped_switch_fork_info): Update. | |
3389 | (delete_checkpoint_command): Update. | |
3390 | * infrun.c (follow_fork_inferior): Update. | |
3391 | (follow_fork_inferior): Update. | |
3392 | (proceed_after_vfork_done): Update. | |
3393 | (handle_vfork_child_exec_or_exit): Update. | |
3394 | (follow_exec): Update. | |
3395 | (displaced_step_prepare_throw): Update. | |
3396 | (displaced_step_restore): Update. | |
3397 | (start_step_over): Update. | |
3398 | (resume_1): Update. | |
3399 | (clear_proceed_status_thread): Update. | |
3400 | (proceed): Update. | |
3401 | (print_target_wait_results): Update. | |
3402 | (do_target_wait): Update. | |
3403 | (context_switch): Update. | |
3404 | (stop_all_threads): Update. | |
3405 | (restart_threads): Update. | |
3406 | (finish_step_over): Update. | |
3407 | (handle_signal_stop): Update. | |
3408 | (switch_back_to_stepped_thread): Update. | |
3409 | (keep_going_pass_signal): Update. | |
3410 | (print_exited_reason): Update. | |
3411 | (normal_stop): Update. | |
3412 | * inferior.c (inferior_pid_to_str): Change return type. | |
3413 | (print_selected_inferior): Update. | |
3414 | (add_inferior): Update. | |
3415 | (detach_inferior): Update. | |
3416 | * dummy-frame.c (fprint_dummy_frames): Update. | |
3417 | * dcache.c (dcache_info_1): Update. | |
3418 | * btrace.c (btrace_enable, btrace_disable, btrace_teardown) | |
3419 | (btrace_fetch, btrace_clear): Update. | |
3420 | * linux-tdep.c (linux_core_pid_to_str): Change return type. | |
3421 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return | |
3422 | type. | |
3423 | * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type. | |
3424 | * sol2-tdep.h (sol2_core_pid_to_str): Change return type. | |
3425 | * sol2-tdep.c (sol2_core_pid_to_str): Change return type. | |
3426 | * gdbarch.c, gdbarch.h: Rebuild. | |
3427 | * gdbarch.sh (core_pid_to_str): Change return type. | |
3428 | * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change | |
3429 | return type. | |
3430 | (windows_nat_target::pid_to_str): Change return type. | |
3431 | (windows_delete_thread): Update. | |
3432 | (windows_nat_target::attach): Update. | |
3433 | (windows_nat_target::files_info): Update. | |
3434 | * target-delegates.c: Rebuild. | |
3435 | * sol-thread.c (class sol_thread_target) <pid_to_str>: Change | |
3436 | return type. | |
3437 | (sol_thread_target::pid_to_str): Change return type. | |
3438 | * remote.c (class remote_target) <pid_to_str>: Change return | |
3439 | type. | |
3440 | (remote_target::pid_to_str): Change return type. | |
3441 | (extended_remote_target::attach, remote_target::remote_stop_ns) | |
3442 | (remote_target::remote_notif_remove_queued_reply) | |
3443 | (remote_target::push_stop_reply, remote_target::disable_btrace): | |
3444 | Update. | |
3445 | (extended_remote_target::attach): Update. | |
3446 | * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return | |
3447 | type. | |
3448 | (gdbsim_target::pid_to_str): Change return type. | |
3449 | * ravenscar-thread.c (struct ravenscar_thread_target) | |
3450 | <pid_to_str>: Change return type. | |
3451 | (ravenscar_thread_target::pid_to_str): Change return type. | |
3452 | * procfs.c (class procfs_target) <pid_to_str>: Change return | |
3453 | type. | |
3454 | (procfs_target::pid_to_str): Change return type. | |
3455 | (procfs_target::attach): Update. | |
3456 | (procfs_target::detach): Update. | |
3457 | (procfs_target::fetch_registers): Update. | |
3458 | (procfs_target::store_registers): Update. | |
3459 | (procfs_target::wait): Update. | |
3460 | (procfs_target::files_info): Update. | |
3461 | * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type. | |
3462 | * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change | |
3463 | return type. | |
3464 | (nto_procfs_target::pid_to_str): Change return type. | |
3465 | (nto_procfs_target::files_info, nto_procfs_target::attach): Update. | |
3466 | * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change | |
3467 | return type. | |
3468 | * linux-nat.c (linux_nat_target::pid_to_str): Change return type. | |
3469 | (exit_lwp): Update. | |
3470 | (attach_proc_task_lwp_callback, get_detach_signal) | |
3471 | (detach_one_lwp, resume_lwp, linux_nat_target::resume) | |
3472 | (linux_nat_target::resume, wait_lwp, stop_callback) | |
3473 | (maybe_clear_ignore_sigint, stop_wait_callback, status_callback) | |
3474 | (save_stop_reason, select_event_lwp, linux_nat_filter_event) | |
3475 | (linux_nat_wait_1, resume_stopped_resumed_lwps) | |
3476 | (linux_nat_target::wait, linux_nat_stop_lwp): Update. | |
3477 | * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return | |
3478 | type. | |
3479 | (inf_ptrace_target::attach): Update. | |
3480 | (inf_ptrace_target::files_info): Update. | |
3481 | * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return | |
3482 | type. | |
3483 | (go32_nat_target::pid_to_str): Change return type. | |
3484 | * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type. | |
3485 | (gnu_nat_target::wait): Update. | |
3486 | (gnu_nat_target::wait): Update. | |
3487 | (gnu_nat_target::resume): Update. | |
3488 | * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type. | |
3489 | (fbsd_nat_target::wait): Update. | |
3490 | * darwin-nat.c (darwin_nat_target::pid_to_str): Change return | |
3491 | type. | |
3492 | (darwin_nat_target::attach): Update. | |
3493 | * corelow.c (class core_target) <pid_to_str>: Change return type. | |
3494 | (core_target::pid_to_str): Change return type. | |
3495 | * target.c (normal_pid_to_str): Change return type. | |
3496 | (default_pid_to_str): Likewise. | |
3497 | (target_pid_to_str): Change return type. | |
3498 | (target_translate_tls_address): Update. | |
3499 | (target_announce_detach): Update. | |
3500 | * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change | |
3501 | return type. | |
3502 | (bsd_uthread_target::pid_to_str): Change return type. | |
3503 | * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return | |
3504 | type. | |
3505 | (bsd_kvm_target::pid_to_str): Change return type. | |
3506 | * aix-thread.c (class aix_thread_target) <pid_to_str>: Change | |
3507 | return type. | |
3508 | (aix_thread_target::pid_to_str): Change return type. | |
3509 | * target.h (struct target_ops) <pid_to_str>: Change return type. | |
3510 | (target_pid_to_str, normal_pid_to_str): Likewise. | |
3511 | * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return | |
3512 | type. | |
3513 | * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return | |
3514 | type. | |
3515 | * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change | |
3516 | return type. | |
3517 | * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return | |
3518 | type. | |
3519 | * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return | |
3520 | type. | |
3521 | * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change | |
3522 | return type. | |
3523 | ||
b4be1b06 SM |
3524 | 2019-03-13 Simon Marchi <simon.marchi@ericsson.com> |
3525 | ||
3526 | * NEWS: Mention that the new default MI version is 3. Mention | |
3527 | changes to the output of commands and events that deal with | |
3528 | multi-location breakpoints. | |
3529 | * breakpoint.c: Include "mi/mi-out.h". | |
3530 | (print_one_breakpoint): Change output syntax if using MI version | |
3531 | >= 3. | |
3532 | * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output): | |
3533 | New. | |
3534 | (mi_multi_location_breakpoint_output_fixed): New. | |
3535 | * mi/mi-main.c (fix_multi_location_breakpoint_output): New. | |
3536 | (mi_cmd_fix_multi_location_breakpoint_output): New. | |
3537 | (mi_multi_location_breakpoint_output_fixed): New. | |
3538 | * mi/mi-cmds.c (mi_cmds): Register command | |
3539 | -fix-multi-location-breakpoint-output. | |
3540 | * mi/mi-out.c (mi_out_new): Instantiate version 3 when using | |
3541 | interpreter "mi". | |
3542 | ||
8e5e5494 SM |
3543 | 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
3544 | ||
3545 | * mi/mi-out.h (mi_out_new): Change parameter to const char *. | |
3546 | * mi/mi-out.c (mi_out_new): Change parameter to const char *, | |
3547 | instantiate mi_ui_out based on interpreter name. | |
3548 | * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new. | |
3549 | * mi/mi-main.c (mi_load_progress): Likewise. | |
3550 | ||
197df35e JB |
3551 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3552 | ||
3553 | * NEWS: Combine separate "New targets" sections for 8.3. | |
3554 | ||
8399425f JB |
3555 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3556 | ||
3557 | * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New. | |
3558 | (ppcfbsd_init_abi): Install gdbarch | |
3559 | "fetch_tls_load_module_address" and "get_thread_local_address" | |
3560 | methods. | |
3561 | ||
b0f87ed0 JB |
3562 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3563 | ||
3564 | * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New. | |
3565 | (riscv_fbsd_init_abi): Install gdbarch | |
3566 | "fetch_tls_load_module_address" and "get_thread_local_address" | |
3567 | methods. | |
3568 | ||
ce25aa57 JB |
3569 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3570 | ||
3571 | * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New. | |
3572 | (i386fbsd_init_abi): Install gdbarch | |
3573 | "fetch_tls_load_module_address" and "get_thread_local_address" | |
3574 | methods. | |
3575 | ||
f5424cfa JB |
3576 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3577 | ||
3578 | * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New. | |
3579 | (amd64fbsd_init_abi): Install gdbarch | |
3580 | "fetch_tls_load_module_address" and "get_thread_local_address" | |
3581 | methods. | |
3582 | ||
945f3901 JB |
3583 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3584 | ||
3585 | * fbsd-tdep.c (fbsd_pspace_data_handle): New variable. | |
3586 | (struct fbsd_pspace_data): New type. | |
3587 | (get_fbsd_pspace_data, fbsd_pspace_data_cleanup) | |
3588 | (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets) | |
3589 | (fbsd_get_tls_index, fbsd_get_thread_local_address): New function. | |
3590 | (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'. | |
3591 | * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype. | |
3592 | ||
ef0bd204 JB |
3593 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3594 | ||
3595 | * gdbtypes.c (lookup_struct_elt): New function. | |
3596 | (lookup_struct_elt_type): Reimplement via lookup_struct_elt. | |
3597 | * gdbtypes.h (struct struct_elt): New type. | |
3598 | (lookup_struct_elt): New prototype. | |
3599 | ||
36c53a02 JB |
3600 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3601 | ||
3602 | * gdbtypes.c (lookup_struct_elt_type): Update comment and | |
3603 | remove disabled code block. | |
3604 | ||
6e056c81 JB |
3605 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3606 | ||
3607 | * gdbarch.sh (get_thread_local_address): New method. | |
3608 | * gdbarch.h, gdbarch.c: Regenerate. | |
3609 | * target.c (target_translate_tls_address): Use | |
3610 | gdbarch_get_thread_local_address if present instead of | |
3611 | target::get_thread_local_address. | |
3612 | ||
cd250a18 JB |
3613 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3614 | ||
3615 | * target.h (target::get_thread_local_address): Update comment. | |
3616 | ||
df22c1e5 JB |
3617 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3618 | ||
3619 | * solib-svr4.c (svr4_fetch_objfile_link_map): Look for | |
3620 | objfile->separate_debug_objfile_backlink if not NULL. | |
3621 | ||
dd6876c9 JB |
3622 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3623 | ||
3624 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
3625 | tdep->fsbase_regnum instead of constants for fs_base and gs_base. | |
3626 | (amd64bsd_store_inferior_registers): Likewise. | |
3627 | * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description): | |
3628 | Enable segment base registers. | |
3629 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use | |
3630 | PT_GETFSBASE and PT_GETGSBASE. | |
3631 | (i386bsd_store_inferior_registers): Use PT_SETFSBASE and | |
3632 | PT_SETGSBASE. | |
3633 | * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable | |
3634 | segment base registers. | |
3635 | * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise. | |
3636 | ||
1163a4b7 JB |
3637 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
3638 | ||
3639 | * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description): | |
3640 | Update calls to i386_target_description to add 'segments' | |
3641 | parameter. | |
3642 | * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't | |
3643 | add segment base registers. | |
3644 | * arch/i386.c (i386_create_target_description): Add 'segments' | |
3645 | parameter to enable segment base registers. | |
3646 | * arch/i386.h (i386_create_target_description): Likewise. | |
3647 | * features/i386/32bit-segments.xml: New file. | |
3648 | * features/i386/32bit-segments.c: Generate. | |
3649 | * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update | |
3650 | call to i386_target_description to add 'segments' parameter. | |
3651 | * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise. | |
3652 | * i386-go32-tdep.c (i386_go32_init_abi): Likewise. | |
3653 | * i386-linux-tdep.c (i386_linux_read_description): Likewise. | |
3654 | * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers | |
3655 | if feature is present. | |
3656 | (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs. | |
3657 | Add 'segments' parameter to call to i386_target_description. | |
3658 | (i386_target_description): Add 'segments' parameter to enable | |
3659 | segment base registers. | |
3660 | (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter | |
3661 | to call to i386_target_description. | |
3662 | * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'. | |
3663 | (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM. | |
3664 | Define I386_NUM_REGS. | |
3665 | (i386_target_description): Add 'segments' parameter to enable | |
3666 | segment base registers. | |
3667 | ||
3a350822 EZ |
3668 | 2019-03-12 Eli Zaretskii <eliz@gnu.org> |
3669 | ||
3670 | PR/24325 | |
3671 | * source-cache.c: #undef open and close, to avoid unresolved | |
3672 | externals during linking. | |
3673 | ||
ffdd69cf TT |
3674 | 2019-03-12 Tom Tromey <tromey@adacore.com> |
3675 | ||
3676 | * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now | |
3677 | const. Add initializers. | |
3678 | (_initialize_remote): Don't initialize ptid globals. | |
3679 | ||
ec148c57 PA |
3680 | 2019-03-12 Pedro Alves <palves@redhat.com> |
3681 | ||
3682 | * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define. | |
3683 | ||
32764270 PA |
3684 | 2019-03-12 Pedro Alves <palves@redhat.com> |
3685 | ||
3686 | * cp-name-parser.y (main): Remove unused 'len' variable. | |
3687 | ||
17547186 TT |
3688 | 2019-03-12 Tom Tromey <tromey@adacore.com> |
3689 | ||
3690 | * common/ptid.c (null_ptid, minus_one_ptid): Now const. | |
3691 | * common/ptid.h (null_ptid, minus_one_ptid): Now const. | |
3692 | ||
d3a70e03 TT |
3693 | 2019-03-12 Tom Tromey <tromey@adacore.com> |
3694 | ||
3695 | * linux-nat.c (iterate_over_lwps): Update. | |
3696 | (stop_callback): Remove parameter. | |
3697 | (stop_wait_callback, detach_callback, resume_set_callback) | |
3698 | (select_singlestep_lwp_callback, set_ignore_sigint) | |
3699 | (status_callback, resumed_callback, resume_clear_callback) | |
3700 | (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove | |
3701 | data parameter. | |
3702 | (linux_nat_target::detach, linux_nat_target::resume) | |
3703 | (linux_stop_and_wait_all_lwps, select_event_lwp) | |
3704 | (linux_nat_filter_event, linux_nat_wait_1) | |
3705 | (linux_nat_target::kill, linux_nat_target::stop) | |
3706 | (linux_nat_target::stop): Update. | |
3707 | (linux_nat_resume_callback): Change type. | |
3708 | (resume_stopped_resumed_lwps, count_events_callback) | |
3709 | (select_event_lwp_callback): Likewise. | |
3710 | (linux_stop_lwp, linux_nat_stop_lwp): Update. | |
3711 | * arm-linux-nat.c (struct update_registers_data): Remove. | |
3712 | (update_registers_callback): Change type. | |
3713 | (arm_linux_insert_hw_breakpoint1): Update. | |
3714 | * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove | |
3715 | parameter. | |
3716 | (x86_linux_dr_set_addr): Update. | |
3717 | (x86_linux_dr_set_control): Update. | |
3718 | * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter. | |
3719 | (iterate_over_lwps): Use gdb::function_view. | |
3720 | * nat/aarch64-linux-hw-point.c (struct | |
3721 | aarch64_dr_update_callback_param): Remove. | |
3722 | (debug_reg_change_callback): Change type. | |
3723 | (aarch64_notify_debug_reg_change): Update. | |
3724 | * s390-linux-nat.c (s390_refresh_per_info): Update. | |
3725 | ||
82cb27ff TT |
3726 | 2019-03-11 Tom Tromey <tromey@adacore.com> |
3727 | ||
3728 | * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove | |
3729 | redundant assignment to "this_cu". | |
3730 | ||
568c0683 SM |
3731 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3732 | ||
3733 | * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch. | |
3734 | ||
f09ce22d SM |
3735 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3736 | ||
3737 | * gdbtypes.c (rank_one_type_parm_set): New function extracted | |
3738 | from... | |
3739 | (rank_one_type): ... this. | |
3740 | ||
595f96a9 SM |
3741 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3742 | ||
3743 | * gdbtypes.c (rank_one_type_parm_struct): New function extracted | |
3744 | from... | |
3745 | (rank_one_type): ... this. | |
3746 | ||
2598a94b SM |
3747 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3748 | ||
3749 | * gdbtypes.c (rank_one_type_parm_complex): New function extracted | |
3750 | from... | |
3751 | (rank_one_type): ... this. | |
3752 | ||
7f17b20d SM |
3753 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3754 | ||
3755 | * gdbtypes.c (rank_one_type_parm_float): New function extracted | |
3756 | from... | |
3757 | (rank_one_type): ... this. | |
3758 | ||
2c509035 SM |
3759 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3760 | ||
3761 | * gdbtypes.c (rank_one_type_parm_bool): New function extracted | |
3762 | from... | |
3763 | (rank_one_type): ... this. | |
3764 | ||
0dd322dc SM |
3765 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3766 | ||
3767 | * gdbtypes.c (rank_one_type_parm_range): New function extracted | |
3768 | from... | |
3769 | (rank_one_type): ... this. | |
3770 | ||
41ea4728 SM |
3771 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3772 | ||
3773 | * gdbtypes.c (rank_one_type_parm_char): New function extracted | |
3774 | from... | |
3775 | (rank_one_type): ... this. | |
3776 | ||
793cd1d2 SM |
3777 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3778 | ||
3779 | * gdbtypes.c (rank_one_type_parm_enum): New function extracted | |
3780 | from... | |
3781 | (rank_one_type): ... this. | |
3782 | ||
34910087 SM |
3783 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3784 | ||
3785 | * gdbtypes.c (rank_one_type_parm_int): New function extracted | |
3786 | from... | |
3787 | (rank_one_type): ... this. | |
3788 | ||
f1f832d6 SM |
3789 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3790 | ||
3791 | * gdbtypes.c (rank_one_type_parm_func): New function extracted | |
3792 | from... | |
3793 | (rank_one_type): ... this. | |
3794 | ||
b9f4512f SM |
3795 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3796 | ||
3797 | * gdbtypes.c (rank_one_type_parm_array): New function extracted | |
3798 | from... | |
3799 | (rank_one_type): ... this. | |
3800 | ||
9293fc63 SM |
3801 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
3802 | ||
3803 | * gdbtypes.c (rank_one_type_parm_ptr): New function extracted | |
3804 | from... | |
3805 | (rank_one_type): ... this. | |
3806 | ||
e3abbe7e PW |
3807 | 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3808 | ||
3809 | * inferior.c (initialize_inferiors): Ensure 'help set/show print | |
3810 | inferior-events' shows the example events. | |
3811 | ||
e4adb939 EZ |
3812 | 2019-03-08 Eli Zaretskii <eliz@gnu.org> |
3813 | ||
3814 | Support styling on native MS-Windows console | |
3815 | ||
3816 | PR/24315 | |
3817 | * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling | |
3818 | on MS-Windows if $TERM is not defined. | |
3819 | ||
3820 | * cli/cli-style.c: Set cli_styling to 1 in the MinGW build. | |
3821 | ||
3822 | * posix-hdep.c (gdb_console_fputs): | |
3823 | * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New | |
3824 | functions. | |
3825 | * ui-file.h (gdb_console_fputs): Add prototype. | |
3826 | ||
3827 | * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall | |
3828 | back to fputs only if the former returns zero. | |
3829 | ||
25629dfd TT |
3830 | 2019-03-07 Tom Tromey <tom@tromey.com> |
3831 | ||
3832 | * symmisc.c (print_symbol_bcache_statistics): Update. | |
3833 | (print_objfile_statistics): Update. | |
3834 | * symfile.c (allocate_symtab): Update. | |
3835 | * stabsread.c: Don't include bcache.h. | |
3836 | * psymtab.h (struct psymbol_bcache): Don't declare. | |
3837 | (class psymtab_storage) <psymbol_cache>: Now a bcache. | |
3838 | (psymbol_bcache_init, psymbol_bcache_free) | |
3839 | (psymbol_bcache_get_bcache): Don't declare. | |
3840 | * psymtab.c (struct psymbol_bcache): Remove. | |
3841 | (psymtab_storage::psymtab_storage): Update. | |
3842 | (psymtab_storage::~psymtab_storage): Update. | |
3843 | (psymbol_bcache_init, psymbol_bcache_free) | |
3844 | (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove. | |
3845 | (add_psymbol_to_bcache): Update. | |
3846 | (allocate_psymtab): Update. | |
3847 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
3848 | macro_cache>: No longer pointers. | |
3849 | * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc. | |
3850 | (free_objfile_per_bfd_storage): Don't call bcache_xfree. | |
3851 | * macrotab.c (macro_bcache): Update. | |
3852 | * macroexp.c: Don't include bcache.h. | |
3853 | * gdbtypes.c (check_types_worklist): Update. | |
3854 | (types_deeply_equal): Remove TRY/CATCH. Update. | |
3855 | * elfread.c (elf_symtab_read): Update. | |
3856 | * dwarf2read.c: Don't include bcache.h. | |
3857 | * buildsym.c (buildsym_compunit::get_macro_table): Update. | |
3858 | * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc) | |
3859 | (print_bcache_statistics, bcache_memory_used): Don't declare. | |
3860 | (struct bcache): Move from bcache.c. Add constructor, destructor, | |
3861 | methods. Rename all data members. | |
3862 | * bcache.c (struct bcache): Move to bcache.h. | |
3863 | (bcache::expand_hash_table): Rename from expand_hash_table. | |
3864 | (bcache): Remove. | |
3865 | (bcache::insert): Rename from bcache_full. | |
3866 | (bcache::compare): Rename from bcache_compare. | |
3867 | (bcache_xmalloc): Remove. | |
3868 | (bcache::~bcache): Rename from bcache_xfree. | |
3869 | (bcache::print_statistics): Rename from print_bcache_statistics. | |
3870 | (bcache::memory_used): Rename from bcache_memory_used. | |
3871 | ||
fe726667 PA |
3872 | 2019-03-07 Pedro Alves <palves@redhat.com> |
3873 | ||
3874 | * infrun.c (normal_stop): Also check for | |
3875 | TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread(). | |
3876 | ||
7584bb30 AB |
3877 | 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com> |
3878 | ||
3879 | * f-lang.c (value_from_host_double): Moved to... | |
3880 | * value.c (value_from_host_double): ...here. | |
3881 | * value.h (value_from_host_double): Declare. | |
3882 | * guile/scm-math.c (vlscm_convert_typed_number): Use | |
3883 | value_from_host_double. | |
3884 | (vlscm_convert_number): Likewise. | |
3885 | * guile/scm-value.c (gdbscm_value_to_real): Likewise. | |
3886 | * python/py-value.c (convert_value_from_python): Likewise. | |
3887 | ||
a7b1986e TT |
3888 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3889 | ||
3890 | * gcore.c (write_gcore_file): Use SCOPE_EXIT. | |
3891 | ||
0ccf4211 TT |
3892 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3893 | ||
3894 | * utils.h (free_current_contents): Don't declare. | |
3895 | * utils.c (free_current_contents): Remove. | |
3896 | ||
fe7b42e5 TT |
3897 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3898 | ||
3899 | * top.c (quit_force): Update. | |
3900 | * main.c (captured_command_loop): Update. | |
3901 | * common/new-op.c (operator new): Update. | |
3902 | * common/common-exceptions.c (struct catcher) | |
3903 | <save_cleanup_chain>: Remove member. | |
3904 | (exceptions_state_mc_init): Update. | |
3905 | (exception_try_scope_entry): Return nullptr. | |
3906 | (exception_try_scope_exit, exception_rethrow) | |
3907 | (throw_exception_sjlj, throw_exception_cxx): Update. | |
3908 | * common/cleanups.h (make_cleanup, make_cleanup_dtor) | |
3909 | (all_cleanups, do_cleanups, discard_cleanups) | |
3910 | (discard_final_cleanups, save_cleanups, save_final_cleanups) | |
3911 | (restore_cleanups, restore_final_cleanups): Don't declare. | |
3912 | (do_final_cleanups): Remove parameter. | |
3913 | * common/cleanups.c (cleanup_chain, make_cleanup) | |
3914 | (make_cleanup_dtor, all_cleanups, do_cleanups) | |
3915 | (discard_my_cleanups, discard_cleanups) | |
3916 | (discard_final_cleanups, save_my_cleanups, save_cleanups) | |
3917 | (save_final_cleanups, restore_my_cleanups, restore_cleanups) | |
3918 | (null_cleanup): Remove. | |
3919 | (do_final_cleanups): Remove parameter. | |
3920 | ||
c6321f19 TT |
3921 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3922 | ||
3923 | * remote.c (remote_target::remote_parse_stop_reply): Use | |
3924 | unique_xmalloc_ptr. | |
3925 | ||
61b30099 TT |
3926 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3927 | ||
3928 | * stabsread.c (struct stabs_field_info): Rename from field_info. | |
3929 | <list, fnlist>: Add initializers. | |
3930 | <obstack>: New member. | |
3931 | (read_member_functions, read_struct_fields, read_baseclasses): | |
3932 | Allocate on obstack. Don't use cleanups. | |
3933 | (read_one_struct_field, read_member_functions, read_struct_fields) | |
3934 | (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type) | |
3935 | (attach_fields_to_type, read_cpp_abbrev, read_member_functions) | |
3936 | (read_struct_type): Update. | |
3937 | ||
6cceac94 TT |
3938 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3939 | ||
3940 | * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT. | |
3941 | * common/filestuff.h (make_cleanup_close): Don't declare. | |
3942 | * common/filestuff.c (do_close_cleanup, make_cleanup_close): | |
3943 | Remove. | |
3944 | ||
72412762 TT |
3945 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3946 | ||
3947 | * solib-aix.c: Use make_scope_exit. | |
3948 | ||
2b6ff1c0 TT |
3949 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3950 | ||
3951 | * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct): | |
3952 | Use make_scope_exit. | |
3953 | ||
d01c5877 TT |
3954 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3955 | ||
3956 | * solib-svr4.c (disable_probes_interface): Remove parameter. | |
3957 | (svr4_handle_solib_event): Use make_scope_exit. | |
3958 | ||
32603266 TT |
3959 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3960 | ||
3961 | * remote.c (struct stop_reply_deleter): Remove. | |
3962 | (stop_reply_up): Update. | |
3963 | (struct stop_reply): Derive from notif_event. Don't typedef. | |
3964 | <regcache>: Now a std::vector. | |
3965 | (stop_reply_xfree): Remove. | |
3966 | (stop_reply::~stop_reply): Rename from stop_reply_dtr. | |
3967 | (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new. | |
3968 | (remote_target::discard_pending_stop_replies): Use delete. | |
3969 | (remote_target::remote_parse_stop_reply): Update. | |
3970 | (remote_target::process_stop_reply): Update. | |
3971 | * remote-notif.h (struct notif_event): Add virtual destructor. | |
3972 | Remove "dtr" member. | |
3973 | (struct notif_client) <alloc_event>: Return a unique_ptr. | |
3974 | (notif_event_xfree): Don't declare. | |
3975 | (notif_event_up): New typedef. | |
3976 | * remote-notif.c (remote_notif_ack, remote_notif_parse): Update. | |
3977 | (notif_event_xfree, do_notif_event_xfree): Remove. | |
3978 | (remote_notif_state_xfree): Update. | |
3979 | ||
9799571e TT |
3980 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3981 | ||
3982 | * infrun.c (displaced_step_clear_cleanup): Now a | |
3983 | forward_scope_exit type. | |
3984 | (displaced_step_prepare_throw): Update. | |
3985 | (displaced_step_fixup): Update. | |
3986 | ||
09e3c4ca TT |
3987 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3988 | ||
3989 | * inferior.h (class inferior): Update comment. | |
3990 | * gdbthread.h (class thread_info): Update comment. | |
3991 | ||
e2a03548 TT |
3992 | 2019-03-06 Joel Brobecker <brobecker@adacore.com> |
3993 | Tom Tromey <tom@tromey.com> | |
3994 | ||
3995 | * stabsread.h (struct stab_section_list): Remove. | |
3996 | (coffstab_build_psymtabs): Update. | |
3997 | * dbxread.c (symbuf_sections): Now a std::vector. | |
3998 | (sect_idx): New global. | |
3999 | (fill_symbuf): Update. | |
4000 | (coffstab_build_psymtabs): Change type of stabsects parameter. | |
4001 | Update. | |
4002 | * coffread.c (struct coff_symfile_info) <stabsects>: Now a | |
4003 | std::vector. | |
4004 | (linetab, linetab_offset, linetab_size, stringtab): Move earlier. | |
4005 | (coff_locate_sections): Update. | |
4006 | (coff_symfile_read): Remove cleanups. Update. | |
4007 | (init_stringtab): Add storage parameter. | |
4008 | (free_stringtab, free_stringtab_cleanup): Remove. | |
4009 | (init_lineno): Add storage parameter. | |
4010 | (free_linetab, free_linetab_cleanup): Remove. | |
4011 | ||
b7e60d85 PA |
4012 | 2019-03-06 Pedro Alves <palves@redhat.com> |
4013 | ||
4014 | * linux-fork.c (fork_info::clobber_regs): Delete. | |
4015 | (fork_load_infrun_state): Remove reference to 'clobber_regs'. | |
4016 | (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update | |
4017 | comment. Adjust. | |
4018 | (scoped_switch_fork_info::scoped_switch_fork_info) | |
4019 | (checkpoint_command, linux_fork_context): Adjust | |
4020 | fork_save_infrun_state calls. | |
4021 | ||
e52c971f PA |
4022 | 2019-03-06 Pedro Alves <palves@redhat.com> |
4023 | ||
4024 | * linux-fork.c (inf_has_multiple_thread_cb): Delete. | |
4025 | (inf_has_multiple_threads): Return 'bool' and rewrite using | |
4026 | inferior_info::threads(). | |
4027 | ||
06974e6c PA |
4028 | 2019-03-06 Pedro Alves <palves@redhat.com> |
4029 | ||
4030 | * linux-fork.c: Include <list>. | |
4031 | (fork_list): Now a std::list instance. | |
4032 | (fork_info): Add ctor, dtor, and in-class initialize all fields. | |
4033 | (forks_exist_p, find_last_fork): Adjust. | |
4034 | (new_fork): Delete. | |
4035 | (one_fork_p): New. | |
4036 | (add_fork): Adjust. | |
4037 | (free_fork): Delete, folded into fork_info::~fork_info(). | |
4038 | (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid): | |
4039 | Adjust. | |
4040 | (init_fork_list): Delete. | |
4041 | (linux_fork_killall, linux_fork_mourn_inferior) | |
4042 | (linux_fork_detach, info_checkpoints_command): Adjust. | |
4043 | (_initialize_linux_fork): No longer call init_fork_list. | |
4044 | ||
72f31aea PA |
4045 | 2019-03-06 Pedro Alves <palves@redhat.com> |
4046 | ||
4047 | * linux-fork.c (new_fork): New, split out of ... | |
4048 | (add_fork): ... this. Return void. Move "first fork" special | |
4049 | case from here, to ... | |
4050 | (checkpoint_command): ... here. | |
4051 | * linux-linux.h (add_fork): Return void. | |
4052 | ||
efbecbc1 AB |
4053 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4054 | ||
4055 | * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names. | |
4056 | ||
0841c79a AB |
4057 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4058 | Chris January <chris.january@arm.com> | |
4059 | David Lecomber <david.lecomber@arm.com> | |
4060 | ||
4061 | * f-exp.y: New token, UNOP_INTRINSIC. | |
4062 | (exp): New pattern using UNOP_INTRINSIC token. | |
4063 | (f77_keywords): Add 'abs' keyword. | |
4064 | * f-lang.c: Add 'target-float.h' and 'math.h' includes. | |
4065 | (value_from_host_double): New function. | |
4066 | (evaluate_subexp_f): Support UNOP_ABS. | |
4067 | ||
4a270568 AB |
4068 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4069 | ||
4070 | * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character | |
4071 | types. | |
4072 | ||
067630bd AB |
4073 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4074 | ||
4075 | * f-exp.y (convert_to_kind_type): Handle integer (kind=8). | |
4076 | * f-lang.c (build_fortran_types): Setup builtin_integer_s8. | |
4077 | * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field. | |
4078 | ||
3be47f7a AB |
4079 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4080 | ||
4081 | * f-exp.y (convert_to_kind_type): Handle more type kinds. | |
4082 | ||
4d00f5d8 AB |
4083 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4084 | Chris January <chris.january@arm.com> | |
4085 | ||
4086 | * expprint.c (dump_subexp_body_standard): Support UNOP_KIND. | |
4087 | * f-exp.y: Define 'KIND' token. | |
4088 | (exp): New pattern for KIND expressions. | |
4089 | (ptype): Handle types with a kind extension. | |
4090 | (direct_abs_decl): Extend to spot kind extensions. | |
4091 | (f77_keywords): Add 'kind' to the list. | |
4092 | (push_kind_type): New function. | |
4093 | (convert_to_kind_type): New function. | |
4094 | * f-lang.c (evaluate_subexp_f): Support UNOP_KIND. | |
4095 | * parse.c (operator_length_standard): Likewise. | |
4096 | * parser-defs.h (enum type_pieces): Add tp_kind. | |
4097 | * std-operator.def: Add UNOP_KIND. | |
4098 | ||
e454224f AB |
4099 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4100 | ||
4101 | * f-exp.y (f_parse): Set yydebug. | |
4102 | ||
9dad4a58 AB |
4103 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4104 | ||
4105 | * f-lang.c (evaluate_subexp_f): New function. | |
4106 | (exp_descriptor_f): New global. | |
4107 | (f_language_defn): Use exp_descriptor_f instead of | |
4108 | exp_descriptor_standard. | |
4109 | ||
c8f91604 AB |
4110 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4111 | ||
4112 | * f-exp.y (struct token): Add comments. | |
4113 | (dot_ops): Remove uppercase versions and the end marker. | |
4114 | (f77_keywords): Likewise. | |
4115 | (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all | |
4116 | entries in the dot_ops array are case insensitive, and use | |
4117 | strncasecmp to compare strings. Also some whitespace cleanup in | |
4118 | this area. Similar for the f77_keywords array, except entries in | |
4119 | this list might be case sensitive. | |
4120 | ||
dd9f2c76 AB |
4121 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4122 | ||
4123 | * f-exp.y (struct f77_boolean_val): Add comments. | |
4124 | (boolean_values): Remove uppercase versions, and end marker. | |
4125 | (yylex): Use ARRAY_SIZE for iterating over boolean_values array, | |
4126 | and use strncasecmp to achieve case insensitivity. Additionally, | |
4127 | perform whitespace cleanup around this code. | |
4128 | ||
67a3048c TT |
4129 | 2019-03-06 Tom Tromey <tromey@adacore.com> |
4130 | ||
4131 | * remote-sim.c (gdbsim_target_open): Use result of | |
4132 | gdb_argv::release. | |
4133 | ||
aa3cfbda RB |
4134 | 2019-03-06 Richard Bunt <richard.bunt@arm.com> |
4135 | Dirk Schubert <dirk.schubert@arm.com> | |
4136 | Chris January <chris.january@arm.com> | |
4137 | ||
4138 | * eval.c (evaluate_subexp_standard): Call Fortran argument | |
4139 | wrapping logic. | |
4140 | * f-lang.c (struct value): A value which can be passed into a | |
4141 | Fortran function call. | |
4142 | (fortran_argument_convert): Wrap Fortran arguments in a pointer | |
4143 | where appropriate. | |
4144 | (struct type): Value ready for a Fortran function call. | |
4145 | (fortran_preserve_arg_pointer): Undo check_typedef, the pointer | |
4146 | is needed. | |
4147 | * f-lang.h (fortran_argument_convert): Declaration. | |
4148 | (fortran_preserve_arg_pointer): Declaration. | |
4149 | * infcall.c (value_arg_coerce): Call Fortran argument logic. | |
4150 | ||
ea38e5df TT |
4151 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4152 | ||
4153 | * python/py-prettyprint.c (print_string_repr): Remove #if. | |
4154 | * python/py-utils.c (unicode_to_encoded_string): Remove #if. | |
4155 | ||
06b5b831 TT |
4156 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4157 | ||
4158 | * target.c (the_dummy_target): Move later. Change type to | |
4159 | "dummy_target". | |
4160 | (initialize_targets): Don't initialize the_dummy_target. | |
4161 | ||
edbd9e45 TT |
4162 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4163 | ||
4164 | * gdb_bfd.c (gdb_bfd_fdopenr): Remove. | |
4165 | * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare. | |
4166 | ||
c119e040 TT |
4167 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4168 | ||
4169 | * windows-nat.c (windows_nat_target::attach) | |
4170 | (windows_nat_target::detach): Don't call gdb_flush. | |
4171 | * valprint.c (generic_val_print, val_print, val_print_string): | |
4172 | Don't call gdb_flush. | |
4173 | * utils.c (defaulted_query): Don't call gdb_flush. | |
4174 | * typeprint.c (print_type_scalar): Don't call gdb_flush. | |
4175 | * target.c (target_announce_detach): Don't call gdb_flush. | |
4176 | * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush. | |
4177 | * remote.c (extended_remote_target::attach): Don't call | |
4178 | gdb_flush. | |
4179 | * procfs.c (procfs_target::detach): Don't call gdb_flush. | |
4180 | * printcmd.c (do_examine): Don't call gdb_flush. | |
4181 | (info_display_command): Don't call gdb_flush. | |
4182 | * p-valprint.c (pascal_val_print): Don't call gdb_flush. | |
4183 | * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush. | |
4184 | * memattr.c (info_mem_command): Don't call gdb_flush. | |
4185 | * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush. | |
4186 | * m2-valprint.c (m2_val_print): Don't call gdb_flush. | |
4187 | * infrun.c (follow_exec, handle_command): Don't call gdb_flush. | |
4188 | * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush. | |
4189 | * hppa-tdep.c (unwind_command): Don't call gdb_flush. | |
4190 | * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush. | |
4191 | (gnu_nat_target::detach): Don't call gdb_flush. | |
4192 | * f-valprint.c (f_val_print): Don't call gdb_flush. | |
4193 | * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush. | |
4194 | * cli/cli-script.c (read_command_lines): Don't call gdb_flush. | |
4195 | * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call | |
4196 | gdb_flush. | |
4197 | * c-valprint.c (c_val_print): Don't call gdb_flush. | |
4198 | * ada-valprint.c (ada_print_scalar): Don't call gdb_flush. | |
4199 | ||
895dafa6 TT |
4200 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4201 | ||
4202 | * varobj.c (update_dynamic_varobj_children): Update. | |
4203 | (install_default_visualizer): Use reset, not release. | |
4204 | * value.c (set_internalvar): Update. | |
4205 | * dwarf2loc.c (value_of_dwarf_reg_entry): Update. | |
4206 | * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add | |
4207 | ATTRIBUTE_UNUSED_RESULT. | |
4208 | ||
88a774b9 TT |
4209 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4210 | ||
4211 | * remote.c (class scoped_remote_fd) <release>: Add | |
4212 | ATTRIBUTE_UNUSED_RESULT. | |
4213 | ||
4e4a8b93 TT |
4214 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4215 | ||
4216 | * macroexp.c (struct macro_buffer) <release>: Add | |
4217 | ATTRIBUTE_UNUSED_RESULT. | |
4218 | ||
083eef1f TT |
4219 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4220 | ||
4221 | * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update. | |
4222 | * common/scoped_mmap.h (class scoped_mmap) <release>: Add | |
4223 | ATTRIBUTE_UNUSED_RESULT. | |
4224 | ||
3cabd438 TT |
4225 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4226 | ||
4227 | * common/scoped_fd.h (class scoped_fd) <release>: Add | |
4228 | ATTRIBUTE_UNUSED_RESULT. | |
4229 | ||
41e3300a TT |
4230 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4231 | ||
4232 | * parser-defs.h (struct parser_state) <release>: Add | |
4233 | ATTRIBUTE_UNUSED_RESULT. | |
4234 | ||
18cb7c9f TT |
4235 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
4236 | ||
4237 | * utils.h (class gdb_argv) <release>: Add | |
4238 | ATTRIBUTE_UNUSED_RESULT. | |
4239 | * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define. | |
4240 | ||
41fa577f EZ |
4241 | 2019-03-02 Eli Zaretskii <eliz@gnu.org> |
4242 | ||
a6a4b2c6 EZ |
4243 | * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from |
4244 | for-loop range, to avoid compiler warnings. | |
4245 | ||
4246 | * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to | |
4247 | avoid compiler warnings about unused variables. | |
4248 | ||
742a7df5 EZ |
4249 | * NEWS: Mention end of support for native debugging on MS-Windows |
4250 | before XP. | |
4251 | ||
41fa577f EZ |
4252 | PR gdb/24292 |
4253 | * common/netstuff.c: | |
4254 | * gdbserver/gdbreplay.c | |
4255 | * gdbserver/remote-utils.c: | |
4256 | * ser-tcp.c: | |
4257 | * unittests/parse-connection-spec-selftests.c [USE_WIN32API]: | |
4258 | Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine | |
4259 | _WIN32_WINNT to 0x0501 if defined to a smaller value, as | |
4260 | 'getaddrinfo' and 'freeaddrinfo' were not available before | |
4261 | Windows XP, and mingw.org's MinGW headers by default define | |
4262 | _WIN32_WINNT to 0x500. | |
4263 | ||
827f438f GB |
4264 | 2019-03-01 Gary Benson <gbenson@redhat.com> |
4265 | ||
4266 | * coffread.c (coff_start_symtab): Remove unnecessary xstrdup. | |
4267 | ||
92137da0 RO |
4268 | 2019-02-28 Brian Vandenberg <phantall@gmail.com> |
4269 | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
4270 | ||
4271 | PR gdb/8527 | |
4272 | * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in | |
4273 | set_sigint_trap, clear_sigint_trap. | |
4274 | ||
799efbe8 PW |
4275 | 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4276 | ||
4277 | * target.c (target_detach): Clear the regcache and the | |
4278 | frame cache. | |
4279 | ||
8ed25214 PA |
4280 | 2019-02-27 Pedro Alves <palves@redhat.com> |
4281 | ||
4282 | * utils.c (set_screen_size): When we cap the height/width sizes, | |
4283 | tweak the corresponding command variable to show "unlimited": | |
4284 | ||
23031e31 SJ |
4285 | 2019-02-27 Saagar Jha <saagar@saagarjha.com> |
4286 | Pedro Alves <palves@redhat.com> | |
4287 | ||
4288 | * utils.c (set_screen_size): Reduce "infinite" rows and columns | |
4289 | before calling rl_set_screen_size. | |
4290 | ||
6c28e44a TT |
4291 | 2019-02-27 Tom Tromey <tromey@adacore.com> |
4292 | ||
4293 | * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never | |
4294 | define. | |
4295 | * python/py-value.c: Remove Python 2.4 workaround. | |
4296 | * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4 | |
4297 | workaround. | |
4298 | * python/py-type.c (convert_field, gdbpy_initialize_types): Remove | |
4299 | Python 2.4 workaround. | |
4300 | * python/python-internal.h: Remove Python 2.4 comment. | |
4301 | (Py_ssize_t): Don't define. | |
4302 | (PyVarObject_HEAD_INIT, Py_TYPE): Don't define. | |
4303 | (gdb_Py_DECREF): Remove Python 2.4 workaround. | |
4304 | (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove. | |
4305 | (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove. | |
4306 | * python/python.c (do_start_initialization): Remove Python 2.4 | |
4307 | workaround. | |
4308 | * python/py-prettyprint.c (class dummy_python_frame): Remove. | |
4309 | (print_children): Remove Python 2.4 workaround. | |
4310 | * python/py-inferior.c (buffer_procs): Remove Python 2.4 | |
4311 | workaround. | |
4312 | (CHARBUFFERPROC_NAME): Remove. | |
4313 | * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove | |
4314 | Python 2.4 workaround. | |
4315 | ||
2c3fc25d | 4316 | 2019-02-27 Kevin Buettner <kevinb@redhat.com> |
799efbe8 | 4317 | |
2c3fc25d KB |
4318 | * NEWS: Note minimum Python version. |
4319 | ||
6ca62222 KB |
4320 | 2019-02-27 Kevin Buettner <kevinb@redhat.com> |
4321 | ||
4322 | * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K | |
4323 | code from these functions. Remove corresponding ifdefs. Use | |
4324 | Py_buffer_up instead of explicit calls to PyBuffer_Release. | |
4325 | Remove gotos and target of gotos. | |
4326 | (infpy_search_memory): Likewise. | |
4327 | ||
f4bc7d2c AB |
4328 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4329 | ||
4330 | * gdb/hppa-tdep.c (hppa_dummy_id): Delete. | |
4331 | (hppa_gdbarch_init): Don't register deleted functions with | |
4332 | gdbarch. | |
4333 | ||
9734a586 AB |
4334 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4335 | ||
4336 | * gdb/h8300-tdep.c (h8300_unwind_pc): Delete. | |
4337 | (h8300_unwind_sp): Delete. | |
4338 | (h8300_dummy_id): Delete. | |
4339 | (h8300_gdbarch_init): Don't register deleted functions with | |
4340 | gdbarch. | |
4341 | ||
68b867f3 AB |
4342 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4343 | ||
4344 | * gdb/ft32-tdep.c (ft32_dummy_id): Delete. | |
4345 | (ft32_unwind_pc): Delete. | |
4346 | (ft32_unwind_sp): Delete. | |
4347 | (ft32_gdbarch_init): Don't register deleted functions with | |
4348 | gdbarch. | |
4349 | ||
2fbe7ad0 AB |
4350 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4351 | ||
4352 | * gdb/frv-tdep.c (frv_dummy_id): Delete. | |
4353 | (frv_unwind_pc): Delete. | |
4354 | (frv_unwind_sp): Delete. | |
4355 | (frv_gdbarch_init): Don't register deleted functions with | |
4356 | gdbarch. | |
4357 | ||
76055cbe AB |
4358 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4359 | ||
4360 | * gdb/riscv-tdep.c (riscv_dummy_id): Delete. | |
4361 | (riscv_unwind_pc): Delete. | |
4362 | (riscv_unwind_sp): Delete. | |
4363 | (riscv_gdbarch_init): Don't register deleted functions with | |
4364 | gdbarch. | |
4365 | ||
4133e5a1 AB |
4366 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4367 | ||
4368 | * gdb/csky-tdep.c (csky_dummy_id): Delete. | |
4369 | (csky_unwind_pc): Delete. | |
4370 | (csky_unwind_sp): Delete. | |
4371 | (csky_gdbarch_init): Don't register deleted functions with | |
4372 | gdbarch. | |
4373 | ||
8010f576 AB |
4374 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4375 | ||
4376 | * gdb/cris-tdep.c (cris_dummy_id): Delete. | |
4377 | (cris_unwind_pc): Delete. | |
4378 | (cris_unwind_sp): Delete. | |
4379 | (cris_gdbarch_init): Don't register deleted functions with | |
4380 | gdbarch. | |
4381 | ||
b56bf084 AB |
4382 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4383 | ||
4384 | * gdb/bfin-tdep.c (bfin_dummy_id): Delete. | |
4385 | (bfin_unwind_pc): Delete. | |
4386 | (bfin_gdbarch_init): Don't register deleted functions with gdbarch. | |
4387 | ||
a19a650f AB |
4388 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4389 | ||
4390 | * gdb/arm-tdep.c (arm_dummy_id): Delete. | |
4391 | (arm_unwind_pc): Delete. | |
4392 | (arm_unwind_sp): Delete. | |
4393 | (arm_gdbarch_init): Don't register deleted functions with gdbarch. | |
4394 | ||
f8278c3c AB |
4395 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4396 | ||
4397 | * gdb/arc-tdep.c (arc_dummy_id): Delete. | |
4398 | (arc_unwind_pc): Delete. | |
4399 | (arc_unwind_sp): Delete. | |
4400 | (arc_gdbarch_init): Don't register deleted functions with gdbarch. | |
4401 | ||
480e46cf AB |
4402 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4403 | ||
4404 | * gdb/alpha-tdep.c (alpha_dummy_id): Delete. | |
4405 | (alpha_unwind_pc): Delete. | |
4406 | (alpha_gdbarch_init): Don't register deleted functions with | |
4407 | gdbarch. | |
4408 | ||
7a995095 AB |
4409 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4410 | ||
4411 | * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete. | |
4412 | (aarch64_unwind_pc): Delete. | |
4413 | (aarch64_unwind_sp): Delete. | |
4414 | (aarch64_gdbarch_init): Don't register deleted functions with | |
4415 | gdbarch. | |
4416 | ||
bf9a735e AB |
4417 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4418 | ||
4419 | * gdbtypes.c (type_align): Don't consider static members when | |
4420 | computing structure alignment. | |
4421 | ||
5561fc30 AB |
4422 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
4423 | ||
4424 | * arc-tdep.c (arc_type_align): Provide alignment for basic types, | |
4425 | return 0 for other types. | |
4426 | * arch-utils.c (default_type_align): Always return 0. | |
4427 | * gdbarch.h: Regenerate. | |
4428 | * gdbarch.sh (type_align): Extend comment. | |
4429 | * gdbtypes.c (type_align): Add additional comments, always call | |
4430 | gdbarch_type_align before applying the default rules. | |
4431 | * i386-tdep.c (i386_type_align): Return 0 as the default rule, | |
4432 | generic code will then apply a suitable default. | |
4433 | * nios2-tdep.c (nios2_type_align): Provide alignment for basic | |
4434 | types, return 0 for other types. | |
4435 | ||
9335e75a JB |
4436 | 2019-02-27 Joel Brobecker <brobecker@adacore.com> |
4437 | ||
4438 | * NEWS: Create a new section for the next release branch. | |
4439 | Rename the section of the current branch, now that it has | |
4440 | been cut. | |
4441 | ||
3d34d8de JB |
4442 | 2019-02-27 Joel Brobecker <brobecker@adacore.com> |
4443 | ||
4444 | GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d): | |
4445 | * version.in: Bump version to 8.3.50.DATE-git. | |
4446 | ||
143420fb SM |
4447 | 2019-02-26 Simon Marchi <simon.marchi@efficios.com> |
4448 | ||
4449 | * aix-thread.c (ptid_cmp): Remove unused variable. | |
4450 | (get_signaled_thread): Likewise. | |
4451 | (store_regs_user_thread): Likewise. | |
4452 | (store_regs_kernel_thread): Likewise. | |
4453 | (fetch_regs_kernel_thread): Remove shadowed variable. | |
4454 | ||
172fb711 AB |
4455 | 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com> |
4456 | ||
4457 | * features/riscv/32bit-cpu.xml: Add register numbers. | |
4458 | * features/riscv/32bit-fpu.c: Regenerate. | |
4459 | * features/riscv/32bit-fpu.xml: Add register numbers. | |
4460 | * features/riscv/64bit-cpu.xml: Add register numbers. | |
4461 | * features/riscv/64bit-fpu.c: Regenerate. | |
4462 | * features/riscv/64bit-fpu.xml: Add register numbers. | |
4463 | ||
26c89782 KB |
4464 | 2019-02-26 Kevin Buettner <kevinb@redhat.com> |
4465 | ||
af54ade9 | 4466 | * NEWS: Mention two argument form of gdb.Value constructor. |
fe07eca5 KB |
4467 | * python/py-value.c (convert_buffer_and_type_to_value): New |
4468 | function. | |
4469 | (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords. | |
4470 | Add support for handling an optional second argument. Call | |
4471 | convert_buffer_and_type_to_value as appropriate. | |
26c89782 KB |
4472 | * python/python-internal.h (Py_buffer_deleter): New struct. |
4473 | (Py_buffer_up): New typedef. | |
4474 | ||
0f58c9e8 JB |
4475 | 2019-02-25 John Baldwin <jhb@FreeBSD.org> |
4476 | ||
4477 | * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr | |
4478 | instead of releasing ownership. | |
4479 | ||
0a0f4c01 JR |
4480 | 2019-02-25 Jordan Rupprecht <rupprecht@google.com> |
4481 | ||
4482 | * dwarf2read.c (open_and_init_dwp_file): Call | |
4483 | elf_numsections instead of bfd_count_sections to initialize | |
4484 | dwp_file->num_sections. | |
4485 | ||
cd5a152c TT |
4486 | 2019-02-25 Tom Tromey <tromey@adacore.com> |
4487 | ||
4488 | * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd. | |
4489 | ||
8a6a8513 SDJ |
4490 | 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com> |
4491 | ||
4492 | * gcore.in: Add '--readnever' option when invoking GDB. | |
4493 | ||
04dcda9c SM |
4494 | 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
4495 | ||
4496 | * MAINTAINERS: Update my email address. | |
4497 | ||
07bc701d SM |
4498 | 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
4499 | ||
4500 | * build-id.c (build_id_to_debug_bfd_1): New function. | |
4501 | (build_id_to_debug_bfd): Look for separate debug file in | |
4502 | sysroot. | |
4503 | ||
c6f4a5d0 AB |
4504 | 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com> |
4505 | ||
4506 | * gdbarch.sh: Update the copyright year range that is placed into | |
4507 | generated files. | |
4508 | ||
9600246d KS |
4509 | 2019-02-22 Keith Seitz <keiths@redhat.com> |
4510 | ||
4511 | PR symtab/23853 | |
4512 | * linespec.c (create_sals_line_offset): Search for the default | |
4513 | symtab's filename instead of its fullname. | |
4514 | ||
7557a514 AH |
4515 | 2019-02-21 Alan Hayward <alan.hayward@arm.com> |
4516 | ||
4517 | * NEWS: Update style defaults. | |
4518 | ||
ee2bcb0c AH |
4519 | 2019-02-21 Alan Hayward <alan.hayward@arm.com> |
4520 | ||
4521 | * main.c (captured_main_1): Disable styling in batch mode. | |
4522 | ||
0c95f9ed TT |
4523 | 2019-02-20 Tom Tromey <tom@tromey.com> |
4524 | ||
4525 | * symtab.c (symtab_symbol_info): Fix typos. | |
4526 | ||
c763b894 TT |
4527 | 2019-02-20 Tom Tromey <tromey@adacore.com> |
4528 | ||
4529 | * findcmd.c (_initialize_mem_search): Use upper case for | |
4530 | metasyntactic variables. | |
4531 | ||
0ef8a082 AH |
4532 | 2019-02-20 Alan Hayward <alan.hayward@arm.com> |
4533 | ||
4534 | * aarch64-tdep.c (aarch64_add_reggroups): New function. | |
4535 | (aarch64_gdbarch_init): Call aarch64_add_reggroups. | |
4536 | ||
6caa91b6 SM |
4537 | 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca> |
4538 | ||
4539 | * top.h (source_file_name): Change to std::string. | |
4540 | * top.c (source_file_name): Likewise. | |
4541 | (command_line_input): Adjust. | |
4542 | * cli/cli-script.c (script_from_file): Adjust. | |
4543 | ||
98814c6c TT |
4544 | 2019-02-19 Tom Tromey <tromey@adacore.com> |
4545 | ||
4546 | * ravenscar-thread.c | |
4547 | (ravenscar_thread_target::update_thread_list): Don't call | |
4548 | ada_build_task_list. | |
4549 | * ada-lang.h (ada_build_task_list): Don't declare. | |
4550 | * ada-tasks.c (struct ada_tasks_inferior_data) | |
4551 | <task_list_valid_p>: Now bool. | |
4552 | (read_known_tasks, ada_task_list_changed) | |
4553 | (ada_tasks_invalidate_inferior_data): Update. | |
4554 | (read_known_tasks_array): Return bool. | |
4555 | (read_known_tasks_list): Likewise. | |
4556 | (read_known_tasks): Return void. | |
4557 | (ada_build_task_list): Now static. | |
4558 | ||
70cd633e AB |
4559 | 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com> |
4560 | ||
4561 | * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR | |
4562 | and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch. | |
4563 | ||
040b3e95 PW |
4564 | 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4565 | ||
4566 | * ada-task.c (_initialize_tasks): Use 'with_cleanup' register | |
4567 | variant for ada_tasks_pspace_data_handle and | |
4568 | ada_tasks_inferior_data_handle. | |
4569 | (ada_tasks_pspace_data_cleanup): New function. | |
4570 | (ada_tasks_inferior_data_cleanup): New function. | |
4571 | ||
9409233b TT |
4572 | 2019-02-17 Tom Tromey <tom@tromey.com> |
4573 | ||
4574 | * macrotab.h (macro_source_fullname): Return a std::string. | |
4575 | * macrotab.c (macro_include, check_for_redefinition) | |
4576 | (macro_undef, macro_lookup_definition, foreach_macro) | |
4577 | (foreach_macro_in_scope): Update. | |
4578 | (macro_source_fullname): Return a std::string. | |
4579 | * macrocmd.c (show_pp_source_pos): Update. | |
4580 | ||
6506371f TT |
4581 | 2019-02-17 Tom Tromey <tom@tromey.com> |
4582 | ||
4583 | * macrocmd.c (show_pp_source_pos): Style the file names. | |
4584 | ||
0c820d67 TT |
4585 | 2019-02-17 Tom Tromey <tom@tromey.com> |
4586 | ||
4587 | PR tui/24197: | |
4588 | * tui/tui-source.c (tui_set_source_content_nil): Rewrite. | |
4589 | ||
a0087920 TT |
4590 | 2019-02-17 Tom Tromey <tom@tromey.com> |
4591 | ||
4592 | * ada-lang.c (user_select_syms): Use filtered printing. | |
4593 | * utils.c (wrap_style): New global. | |
4594 | (desired_style): Remove. | |
4595 | (emit_style_escape): Add stream parameter. | |
4596 | (set_output_style, reset_terminal_style, prompt_for_continue): | |
4597 | Update. | |
4598 | (flush_wrap_buffer): Only flush gdb_stdout. | |
4599 | (wrap_here): Set wrap_style. | |
4600 | (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't | |
4601 | treat escape sequences as a character. Change when wrap buffer is | |
4602 | flushed. | |
4603 | (fputs_styled): Do not set the output style when the default is | |
4604 | requested. | |
4605 | * ui-style.h (struct ui_file_style) <is_default>: New method. | |
4606 | * source.c (print_source_lines_base): Emit escape sequences in one | |
4607 | piece. | |
4608 | ||
75ba10dc JB |
4609 | 2019-02-17 Joel Brobecker <brobecker@adacore.com> |
4610 | ||
4611 | * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as | |
4612 | integers and enumeration types. | |
4613 | ||
a2cd4f14 JB |
4614 | 2019-02-17 Joel Brobecker <brobecker@adacore.com> |
4615 | ||
4616 | * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol | |
4617 | instead of lookup_symbol_in_language | |
4618 | (do_exact_match): New function. | |
4619 | (ada_get_symbol_name_matcher): Return do_exact_match when | |
4620 | doing a verbatim match. | |
4621 | ||
485b851b TT |
4622 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
4623 | ||
4624 | * ravenscar-thread.c (ravenscar_thread_target::resume) | |
4625 | (ravenscar_thread_target::wait): Special case wildcard requests. | |
4626 | ||
0b790b1e TT |
4627 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
4628 | ||
4629 | * ravenscar-thread.c (base_ptid): Remove. | |
4630 | (struct ravenscar_thread_target) <close>: New method. | |
4631 | <m_base_ptid>: New member. | |
4632 | <update_inferior_ptid, active_task, task_is_currently_active, | |
4633 | runtime_initialized>: Declare methods. | |
4634 | <ravenscar_thread_target>: Add constructor. | |
4635 | (ravenscar_thread_target::task_is_currently_active) | |
4636 | (ravenscar_thread_target::update_inferior_ptid) | |
4637 | (ravenscar_runtime_initialized): Rename. Now methods. | |
4638 | (ravenscar_thread_target::resume, ravenscar_thread_target::wait) | |
4639 | (ravenscar_thread_target::update_thread_list): Update. | |
4640 | (ravenscar_thread_target::active_task): Now method. | |
4641 | (ravenscar_thread_target::store_registers) | |
4642 | (ravenscar_thread_target::prepare_to_store) | |
4643 | (ravenscar_thread_target::prepare_to_store) | |
4644 | (ravenscar_thread_target::mourn_inferior): Update. | |
4645 | (ravenscar_inferior_created): Use "new" to create target. | |
4646 | (ravenscar_thread_target::get_ada_task_ptid): Update. | |
4647 | (_initialize_ravenscar): Don't initialize base_ptid. | |
4648 | (ravenscar_ops): Remove global. | |
4649 | ||
dea57a62 TT |
4650 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
4651 | ||
4652 | * target.h (push_target): Declare new overload. | |
4653 | * target.c (push_target): New overload, taking an rvalue reference. | |
4654 | * remote.c (remote_target::open_1): Use push_target overload. | |
4655 | * corelow.c (core_target_open): Use push_target overload. | |
4656 | ||
989f3c58 TT |
4657 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
4658 | ||
4659 | * ravenscar-thread.c (is_ravenscar_task) | |
4660 | (ravenscar_task_is_currently_active): Return bool. | |
4661 | (ravenscar_update_inferior_ptid, get_running_thread_msymbol) | |
4662 | (_initialize_ravenscar): Remove "(void)". | |
4663 | (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise. | |
4664 | Return bool. | |
4665 | ||
6cbcc006 TT |
4666 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
4667 | ||
4668 | * ravenscar-thread.c (ravenscar_runtime_initializer) | |
4669 | (has_ravenscar_runtime, get_running_thread_id) | |
4670 | (ravenscar_thread_target::resume): Fix indentation. | |
4671 | ||
7657f14d TT |
4672 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
4673 | ||
4674 | * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive | |
4675 | from ravenscar_arch_ops. | |
4676 | (sparc_ravenscar_ops::fetch_registers) | |
4677 | (sparc_ravenscar_ops::store_registers): Now methods. | |
4678 | (sparc_ravenscar_prepare_to_store): Remove. | |
4679 | (sparc_ravenscar_ops): Redefine. | |
4680 | * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual | |
4681 | methods and destructor. Remove members. | |
4682 | * ravenscar-thread.c (ravenscar_thread_target::fetch_registers) | |
4683 | (ravenscar_thread_target::store_registers) | |
4684 | (ravenscar_thread_target::prepare_to_store): Update. | |
4685 | * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store): | |
4686 | Remove. | |
4687 | (struct ppc_ravenscar_powerpc_ops): Derive from | |
4688 | ravenscar_arch_ops. | |
4689 | (ppc_ravenscar_powerpc_ops::fetch_registers) | |
4690 | (ppc_ravenscar_powerpc_ops::store_registers): Now methods. | |
4691 | (ppc_ravenscar_powerpc_ops): Redefine. | |
4692 | (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops. | |
4693 | (ppc_ravenscar_e500_ops::fetch_registers) | |
4694 | (ppc_ravenscar_e500_ops::store_registers): Now methods. | |
4695 | (ppc_ravenscar_e500_ops): Redefine. | |
4696 | * aarch64-ravenscar-thread.c | |
4697 | (aarch64_ravenscar_generic_prepare_to_store): Remove. | |
4698 | (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops. | |
4699 | (aarch64_ravenscar_fetch_registers) | |
4700 | (aarch64_ravenscar_store_registers): Now methods. | |
4701 | (aarch64_ravenscar_ops): Redefine. | |
4702 | ||
5b6ea500 TT |
4703 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
4704 | ||
4705 | * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint) | |
4706 | (ravenscar_thread_target::stopped_by_hw_breakpoint) | |
4707 | (ravenscar_thread_target::stopped_by_watchpoint) | |
4708 | (ravenscar_thread_target::stopped_data_address) | |
4709 | (ravenscar_thread_target::core_of_thread): Use scoped_restore. | |
4710 | ||
e397fd39 TT |
4711 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
4712 | ||
4713 | * ravenscar-thread.c: Fix some typos. | |
4714 | ||
cc12f4a8 TT |
4715 | 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4716 | Tom Tromey <tromey@adacore.com> | |
4717 | ||
4718 | * ada-lang.c (ada_exception_sal): Change addr_string to a | |
4719 | std::string. | |
4720 | (create_ada_exception_catchpoint): Update. | |
4721 | ||
5f486660 TT |
4722 | 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4723 | Tom Tromey <tromey@adacore.com> | |
4724 | ||
4725 | * breakpoint.c (~bp_location): Rename from bp_location_dtor. | |
4726 | (bp_location_ops): Remove. | |
4727 | (base_breakpoint_allocate_location): Update. | |
4728 | (free_bp_location): Update. | |
4729 | * ada-lang.c (class ada_catchpoint_location) | |
4730 | <ada_catchpoint_location>: Remove ops parameter. | |
4731 | (ada_catchpoint_location_dtor): Remove. | |
4732 | (ada_catchpoint_location_ops): Remove. | |
4733 | (allocate_location_exception): Update. | |
4734 | * breakpoint.h (struct bp_location_ops): Remove. | |
4735 | (class bp_location) <bp_location>: Remove bp_location_ops | |
4736 | parameter. | |
4737 | <~bp_location>: Add destructor. | |
4738 | <ops>: Remove. | |
4739 | ||
b671c7fb TS |
4740 | 2019-02-14 Thomas Schwinge <thomas@codesourcery.com> |
4741 | Pedro Alves <palves@redhat.com> | |
4742 | ||
4743 | * remote.c (remote_target::remote_parse_stop_reply): Avoid using | |
4744 | 'PATH_MAX'. | |
4745 | ||
8071c5ce DM |
4746 | 2019-02-14 David Michael <fedora.dm0@gmail.com> |
4747 | Samuel Thibault <samuel.thibault@gnu.org> | |
4748 | Thomas Schwinge <thomas@codesourcery.com> | |
4749 | ||
4750 | * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply) | |
4751 | (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes. | |
4752 | ||
b1041ae0 TS |
4753 | 2019-02-14 Thomas Schwinge <thomas@codesourcery.com> |
4754 | ||
924514e1 TS |
4755 | * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg) |
4756 | (check_empty): Use "const char *". | |
4757 | ||
c29ee8d4 TS |
4758 | * gnu-nat.c (gnu_nat_target::detach): Instead of |
4759 | 'detach_inferior (pid)' call | |
4760 | 'detach_inferior (find_inferior_pid (pid))'. | |
4761 | ||
6c6ef69f TS |
4762 | * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add |
4763 | 'nat/fork-inferior.o'. | |
4764 | * gnu-nat.c: #include "nat/fork-inferior.h". | |
4765 | ||
2d0a338c TS |
4766 | * gnu-nat.c (gnu_nat_target::detach): Instead of |
4767 | 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'. | |
4768 | * gnu-nat.h: #include "inf-child.h". | |
4769 | * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to | |
4770 | 'i386_gnu_nat_target::fetch_registers'. | |
4771 | (gnu_store_registers): Rename/move to | |
4772 | 'i386_gnu_nat_target::store_registers'. | |
4773 | ||
cabb5f06 TS |
4774 | * config/i386/nm-i386gnu.h: Don't "#include" any files. |
4775 | * gnu-nat.h (mach_thread_info): New function. | |
4776 | * gnu-nat.c (thread_takeover_sc_cmd): Use it. | |
4777 | ||
b1041ae0 TS |
4778 | * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove. |
4779 | ||
2988d01e KF |
4780 | 2019-02-14 Frederic Konrad <konrad@adacore.com> |
4781 | ||
4782 | * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE. | |
4783 | ||
c559d709 JB |
4784 | 2019-02-14 Joel Brobecker <brobecker@adacore.com> |
4785 | ||
4786 | * windows-nat.c (windows_add_thread): Add new parameter | |
4787 | "main_thread_p" with default value set to false. Update | |
4788 | function documentation as well as all callers. | |
4789 | (windows_delete_thread): Likewise. | |
4790 | (fake_create_process): Update call to windows_add_thread. | |
4791 | (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT> | |
4792 | <CREATE_PROCESS_DEBUG_EVENT>: Likewise. | |
4793 | <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update | |
4794 | call to windows_delete_thread. | |
4795 | ||
007024cc SM |
4796 | 2019-02-13 Simon Marchi <simon.marchi@ericsson.com> |
4797 | ||
4798 | * MAINTAINERS: Add Andrew Burgess as global maintainer. | |
4799 | ||
f62318e9 JB |
4800 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
4801 | ||
4802 | * symfile.c (find_separate_debug_file): Use canonical path of | |
4803 | sysroot with child_path instead of gdb_sysroot if it is valid. | |
4804 | ||
cd4b7848 JB |
4805 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
4806 | ||
4807 | * symfile.c (find_separate_debug_file): Use child_path to | |
4808 | determine if an object file is under a sysroot. | |
4809 | ||
efac4bfe JB |
4810 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
4811 | ||
4812 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4813 | unittests/child-path-selftests.c. | |
4814 | * common/pathstuff.c (child_path): New function. | |
4815 | * common/pathstuff.h (child_path): New prototype. | |
4816 | * unittests/child-path-selftests.c: New file. | |
4817 | ||
402d2bfe JB |
4818 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
4819 | ||
4820 | * symfile.c (find_separate_debug_file): Look for separate debug | |
4821 | files in debug directories under the sysroot. | |
4822 | ||
1ed9f74e PW |
4823 | 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4824 | ||
4825 | * symtab.h (struct minimal_symbol data_p): New const method. | |
4826 | (struct minimal_symbol text_p): Likewise. | |
4827 | * symtab.c (output_source_filename): Use file name style | |
4828 | to print file name. | |
4829 | (print_symbol_info): Likewise. | |
4830 | (print_msymbol_info): Use address style to print addresses. | |
4831 | Use function name style to print executable text symbols. | |
4832 | (expand_symtab_containing_pc): Use data_p. | |
4833 | (find_pc_sect_compunit_symtab): Likewise. | |
4834 | ||
2636d81d PW |
4835 | 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4836 | ||
4837 | * breakpoint.c (describe_other_breakpoints): Use address style | |
4838 | to print addresses. | |
4839 | (say_where): Likewise. | |
4840 | ||
ac8c53cc PW |
4841 | 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4842 | ||
4843 | * ada-typeprint.c (print_func_type): Print function name | |
4844 | style to print function name. | |
4845 | * c-typeprint.c (c_print_type_1): Likewise. | |
4846 | ||
ea638c43 AH |
4847 | 2019-02-11 Alan Hayward <alan.hayward@arm.com> |
4848 | ||
4849 | * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check | |
4850 | for execve. | |
4851 | ||
ab759ca8 PW |
4852 | 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4853 | ||
4854 | * c-exp.y (direct_abs_decl): Use emplace_back to record the | |
4855 | type_stack. | |
4856 | ||
aff29d1c JB |
4857 | 2019-02-10 Joel Brobecker <brobecker@adacore.com> |
4858 | ||
4859 | * ada-varobj.c (ada_value_is_changeable_p): Add handling of | |
4860 | TYPE_CODE_REF types. | |
4861 | ||
617126bc JW |
4862 | 2019-02-08 Jim Wilson <jimw@sifive.com> |
4863 | ||
4864 | * riscv-linux-tdep.c (riscv_linux_fregmap): New. | |
4865 | (riscv_linux_fregset): New. | |
4866 | (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section. | |
4867 | ||
46e3ed7f TT |
4868 | 2019-02-07 Tom Tromey <tom@tromey.com> |
4869 | ||
4870 | * thread.c (thread_cancel_execution_command): Update. | |
4871 | * thread-fsm.h (struct thread_fsm): Add constructor, destructor, | |
4872 | methods. | |
4873 | (struct thread_fsm_ops): Remove. | |
4874 | (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up) | |
4875 | (thread_fsm_should_stop, thread_fsm_return_value) | |
4876 | (thread_fsm_set_finished, thread_fsm_finished_p) | |
4877 | (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop): | |
4878 | Don't declare. | |
4879 | * mi/mi-interp.c (mi_on_normal_stop_1): Update. | |
4880 | * infrun.c (clear_proceed_status_thread) | |
4881 | (clean_up_just_stopped_threads_fsms, fetch_inferior_event) | |
4882 | (print_stop_event): Update. | |
4883 | * infcmd.c (struct step_command_fsm): Inherit from thread_fsm. | |
4884 | Add constructor. | |
4885 | (step_command_fsm_ops): Remove. | |
4886 | (new_step_command_fsm): Remove. | |
4887 | (step_1): Update. | |
4888 | (step_command_fsm::should_stop): Rename from | |
4889 | step_command_fsm_should_stop. | |
4890 | (step_command_fsm::clean_up): Rename from | |
4891 | step_command_fsm_clean_up. | |
4892 | (step_command_fsm::do_async_reply_reason): Rename from | |
4893 | step_command_fsm_async_reply_reason. | |
4894 | (struct until_next_fsm): Inherit from thread_fsm. Add | |
4895 | constructor. | |
4896 | (until_next_fsm_ops): Remove. | |
4897 | (new_until_next_fsm): Remove. | |
4898 | (until_next_fsm::should_stop): Rename from | |
4899 | until_next_fsm_should_stop. | |
4900 | (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up. | |
4901 | (until_next_fsm::do_async_reply_reason): Rename from | |
4902 | until_next_fsm_async_reply_reason. | |
4903 | (struct finish_command_fsm): Inherit from thread_fsm. Add | |
4904 | constructor. Change type of breakpoint. | |
4905 | (finish_command_fsm_ops): Remove. | |
4906 | (new_finish_command_fsm): Remove. | |
4907 | (finish_command_fsm::should_stop): Rename from | |
4908 | finish_command_fsm_should_stop. | |
4909 | (finish_command_fsm::clean_up): Rename from | |
4910 | finish_command_fsm_clean_up. | |
4911 | (finish_command_fsm::return_value): Rename from | |
4912 | finish_command_fsm_return_value. | |
4913 | (finish_command_fsm::do_async_reply_reason): Rename from | |
4914 | finish_command_fsm_async_reply_reason. | |
4915 | (finish_command): Update. | |
4916 | * infcall.c (struct call_thread_fsm): Inherit from thread_fsm. | |
4917 | Add constructor. | |
4918 | (call_thread_fsm_ops): Remove. | |
4919 | (call_thread_fsm::call_thread_fsm): Rename from | |
4920 | new_call_thread_fsm. | |
4921 | (call_thread_fsm::should_stop): Rename from | |
4922 | call_thread_fsm_should_stop. | |
4923 | (call_thread_fsm::should_notify_stop): Rename from | |
4924 | call_thread_fsm_should_notify_stop. | |
4925 | (run_inferior_call, call_function_by_hand_dummy): Update. | |
4926 | * cli/cli-interp.c (should_print_stop_to_console): Update. | |
4927 | * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm. | |
4928 | Add constructor. Change type of location_breakpoint, | |
4929 | caller_breakpoint. | |
4930 | (until_break_fsm_ops): Remove. | |
4931 | (new_until_break_fsm): Remove. | |
4932 | (until_break_fsm::should_stop): Rename from | |
4933 | until_break_fsm_should_stop. | |
4934 | (until_break_fsm::clean_up): Rename from | |
4935 | until_break_fsm_clean_up. | |
4936 | (until_break_fsm::do_async_reply_reason): Rename from | |
4937 | until_break_fsm_async_reply_reason. | |
4938 | (until_break_command): Update. | |
4939 | * thread-fsm.c: Remove. | |
4940 | * Makefile.in (COMMON_SFILES): Remove thread-fsm.c. | |
4941 | ||
1a5c2598 TT |
4942 | 2019-02-07 Tom Tromey <tom@tromey.com> |
4943 | ||
4944 | * yy-remap.h: Add include guard. | |
4945 | * xtensa-tdep.h: Add include guard. | |
4946 | * xcoffread.h: Rename include guard. | |
4947 | * varobj-iter.h: Add include guard. | |
4948 | * tui/tui.h: Rename include guard. | |
4949 | * tui/tui-winsource.h: Rename include guard. | |
4950 | * tui/tui-wingeneral.h: Rename include guard. | |
4951 | * tui/tui-windata.h: Rename include guard. | |
4952 | * tui/tui-win.h: Rename include guard. | |
4953 | * tui/tui-stack.h: Rename include guard. | |
4954 | * tui/tui-source.h: Rename include guard. | |
4955 | * tui/tui-regs.h: Rename include guard. | |
4956 | * tui/tui-out.h: Rename include guard. | |
4957 | * tui/tui-layout.h: Rename include guard. | |
4958 | * tui/tui-io.h: Rename include guard. | |
4959 | * tui/tui-hooks.h: Rename include guard. | |
4960 | * tui/tui-file.h: Rename include guard. | |
4961 | * tui/tui-disasm.h: Rename include guard. | |
4962 | * tui/tui-data.h: Rename include guard. | |
4963 | * tui/tui-command.h: Rename include guard. | |
4964 | * tic6x-tdep.h: Add include guard. | |
4965 | * target/waitstatus.h: Rename include guard. | |
4966 | * target/wait.h: Rename include guard. | |
4967 | * target/target.h: Rename include guard. | |
4968 | * target/resume.h: Rename include guard. | |
4969 | * target-float.h: Rename include guard. | |
4970 | * stabsread.h: Add include guard. | |
4971 | * rs6000-tdep.h: Add include guard. | |
4972 | * riscv-fbsd-tdep.h: Add include guard. | |
4973 | * regformats/regdef.h: Rename include guard. | |
4974 | * record.h: Rename include guard. | |
4975 | * python/python.h: Rename include guard. | |
4976 | * python/python-internal.h: Rename include guard. | |
4977 | * python/py-stopevent.h: Rename include guard. | |
4978 | * python/py-ref.h: Rename include guard. | |
4979 | * python/py-record.h: Rename include guard. | |
4980 | * python/py-record-full.h: Rename include guard. | |
4981 | * python/py-record-btrace.h: Rename include guard. | |
4982 | * python/py-instruction.h: Rename include guard. | |
4983 | * python/py-events.h: Rename include guard. | |
4984 | * python/py-event.h: Rename include guard. | |
4985 | * procfs.h: Add include guard. | |
4986 | * proc-utils.h: Add include guard. | |
4987 | * p-lang.h: Add include guard. | |
4988 | * or1k-tdep.h: Rename include guard. | |
4989 | * observable.h: Rename include guard. | |
4990 | * nto-tdep.h: Rename include guard. | |
4991 | * nat/x86-linux.h: Rename include guard. | |
4992 | * nat/x86-linux-dregs.h: Rename include guard. | |
4993 | * nat/x86-gcc-cpuid.h: Add include guard. | |
4994 | * nat/x86-dregs.h: Rename include guard. | |
4995 | * nat/x86-cpuid.h: Rename include guard. | |
4996 | * nat/ppc-linux.h: Rename include guard. | |
4997 | * nat/mips-linux-watch.h: Rename include guard. | |
4998 | * nat/linux-waitpid.h: Rename include guard. | |
4999 | * nat/linux-ptrace.h: Rename include guard. | |
5000 | * nat/linux-procfs.h: Rename include guard. | |
5001 | * nat/linux-osdata.h: Rename include guard. | |
5002 | * nat/linux-nat.h: Rename include guard. | |
5003 | * nat/linux-namespaces.h: Rename include guard. | |
5004 | * nat/linux-btrace.h: Rename include guard. | |
5005 | * nat/glibc_thread_db.h: Rename include guard. | |
5006 | * nat/gdb_thread_db.h: Rename include guard. | |
5007 | * nat/gdb_ptrace.h: Rename include guard. | |
5008 | * nat/fork-inferior.h: Rename include guard. | |
5009 | * nat/amd64-linux-siginfo.h: Rename include guard. | |
5010 | * nat/aarch64-sve-linux-sigcontext.h: Rename include guard. | |
5011 | * nat/aarch64-sve-linux-ptrace.h: Rename include guard. | |
5012 | * nat/aarch64-linux.h: Rename include guard. | |
5013 | * nat/aarch64-linux-hw-point.h: Rename include guard. | |
5014 | * mn10300-tdep.h: Add include guard. | |
5015 | * mips-linux-tdep.h: Add include guard. | |
5016 | * mi/mi-parse.h: Rename include guard. | |
5017 | * mi/mi-out.h: Rename include guard. | |
5018 | * mi/mi-main.h: Rename include guard. | |
5019 | * mi/mi-interp.h: Rename include guard. | |
5020 | * mi/mi-getopt.h: Rename include guard. | |
5021 | * mi/mi-console.h: Rename include guard. | |
5022 | * mi/mi-common.h: Rename include guard. | |
5023 | * mi/mi-cmds.h: Rename include guard. | |
5024 | * mi/mi-cmd-break.h: Rename include guard. | |
5025 | * m2-lang.h: Add include guard. | |
5026 | * location.h: Rename include guard. | |
5027 | * linux-record.h: Rename include guard. | |
5028 | * linux-nat.h: Add include guard. | |
5029 | * linux-fork.h: Add include guard. | |
5030 | * i386-darwin-tdep.h: Rename include guard. | |
5031 | * hppa-linux-offsets.h: Add include guard. | |
5032 | * guile/guile.h: Rename include guard. | |
5033 | * guile/guile-internal.h: Rename include guard. | |
5034 | * gnu-nat.h: Rename include guard. | |
5035 | * gdb-stabs.h: Rename include guard. | |
5036 | * frv-tdep.h: Add include guard. | |
5037 | * f-lang.h: Add include guard. | |
5038 | * event-loop.h: Add include guard. | |
5039 | * darwin-nat.h: Rename include guard. | |
5040 | * cp-abi.h: Rename include guard. | |
5041 | * config/sparc/nm-sol2.h: Rename include guard. | |
5042 | * config/nm-nto.h: Rename include guard. | |
5043 | * config/nm-linux.h: Add include guard. | |
5044 | * config/i386/nm-i386gnu.h: Rename include guard. | |
5045 | * config/djgpp/nl_types.h: Rename include guard. | |
5046 | * config/djgpp/langinfo.h: Rename include guard. | |
5047 | * compile/gcc-cp-plugin.h: Add include guard. | |
5048 | * compile/gcc-c-plugin.h: Add include guard. | |
5049 | * compile/compile.h: Rename include guard. | |
5050 | * compile/compile-object-run.h: Rename include guard. | |
5051 | * compile/compile-object-load.h: Rename include guard. | |
5052 | * compile/compile-internal.h: Rename include guard. | |
5053 | * compile/compile-cplus.h: Rename include guard. | |
5054 | * compile/compile-c.h: Rename include guard. | |
5055 | * common/xml-utils.h: Rename include guard. | |
5056 | * common/x86-xstate.h: Rename include guard. | |
5057 | * common/version.h: Rename include guard. | |
5058 | * common/vec.h: Rename include guard. | |
5059 | * common/tdesc.h: Rename include guard. | |
5060 | * common/selftest.h: Rename include guard. | |
5061 | * common/scoped_restore.h: Rename include guard. | |
5062 | * common/scoped_mmap.h: Rename include guard. | |
5063 | * common/scoped_fd.h: Rename include guard. | |
5064 | * common/safe-iterator.h: Rename include guard. | |
5065 | * common/run-time-clock.h: Rename include guard. | |
5066 | * common/refcounted-object.h: Rename include guard. | |
5067 | * common/queue.h: Rename include guard. | |
5068 | * common/ptid.h: Rename include guard. | |
5069 | * common/print-utils.h: Rename include guard. | |
5070 | * common/preprocessor.h: Rename include guard. | |
5071 | * common/pathstuff.h: Rename include guard. | |
5072 | * common/observable.h: Rename include guard. | |
5073 | * common/netstuff.h: Rename include guard. | |
5074 | * common/job-control.h: Rename include guard. | |
5075 | * common/host-defs.h: Rename include guard. | |
5076 | * common/gdb_wait.h: Rename include guard. | |
5077 | * common/gdb_vecs.h: Rename include guard. | |
5078 | * common/gdb_unlinker.h: Rename include guard. | |
5079 | * common/gdb_unique_ptr.h: Rename include guard. | |
5080 | * common/gdb_tilde_expand.h: Rename include guard. | |
5081 | * common/gdb_sys_time.h: Rename include guard. | |
5082 | * common/gdb_string_view.h: Rename include guard. | |
5083 | * common/gdb_splay_tree.h: Rename include guard. | |
5084 | * common/gdb_setjmp.h: Rename include guard. | |
5085 | * common/gdb_ref_ptr.h: Rename include guard. | |
5086 | * common/gdb_optional.h: Rename include guard. | |
5087 | * common/gdb_locale.h: Rename include guard. | |
5088 | * common/gdb_assert.h: Rename include guard. | |
5089 | * common/filtered-iterator.h: Rename include guard. | |
5090 | * common/filestuff.h: Rename include guard. | |
5091 | * common/fileio.h: Rename include guard. | |
5092 | * common/environ.h: Rename include guard. | |
5093 | * common/common-utils.h: Rename include guard. | |
5094 | * common/common-types.h: Rename include guard. | |
5095 | * common/common-regcache.h: Rename include guard. | |
5096 | * common/common-inferior.h: Rename include guard. | |
5097 | * common/common-gdbthread.h: Rename include guard. | |
5098 | * common/common-exceptions.h: Rename include guard. | |
5099 | * common/common-defs.h: Rename include guard. | |
5100 | * common/common-debug.h: Rename include guard. | |
5101 | * common/cleanups.h: Rename include guard. | |
5102 | * common/buffer.h: Rename include guard. | |
5103 | * common/btrace-common.h: Rename include guard. | |
5104 | * common/break-common.h: Rename include guard. | |
5105 | * cli/cli-utils.h: Rename include guard. | |
5106 | * cli/cli-style.h: Rename include guard. | |
5107 | * cli/cli-setshow.h: Rename include guard. | |
5108 | * cli/cli-script.h: Rename include guard. | |
5109 | * cli/cli-interp.h: Rename include guard. | |
5110 | * cli/cli-decode.h: Rename include guard. | |
5111 | * cli/cli-cmds.h: Rename include guard. | |
5112 | * charset-list.h: Add include guard. | |
5113 | * buildsym-legacy.h: Rename include guard. | |
5114 | * bfin-tdep.h: Add include guard. | |
5115 | * ax.h: Rename include guard. | |
5116 | * arm-linux-tdep.h: Add include guard. | |
5117 | * arm-fbsd-tdep.h: Add include guard. | |
5118 | * arch/xtensa.h: Rename include guard. | |
5119 | * arch/tic6x.h: Add include guard. | |
5120 | * arch/i386.h: Add include guard. | |
5121 | * arch/arm.h: Rename include guard. | |
5122 | * arch/arm-linux.h: Rename include guard. | |
5123 | * arch/arm-get-next-pcs.h: Rename include guard. | |
5124 | * arch/amd64.h: Add include guard. | |
5125 | * arch/aarch64-insn.h: Rename include guard. | |
5126 | * arch-utils.h: Rename include guard. | |
5127 | * annotate.h: Add include guard. | |
5128 | * amd64-darwin-tdep.h: Rename include guard. | |
5129 | * aarch64-linux-tdep.h: Add include guard. | |
5130 | * aarch64-fbsd-tdep.h: Add include guard. | |
5131 | * aarch32-linux-nat.h: Add include guard. | |
5132 | ||
ab9268d2 PW |
5133 | 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5134 | ||
5135 | * macrotab.c (macro_define_internal): New function that | |
5136 | factorizes macro_define_object_internal and macro_define_function | |
5137 | code. | |
5138 | (macro_define_object_internal): Use macro_define_internal. | |
5139 | (macro_define_function): Likewise. | |
5140 | ||
bb0da2b4 PW |
5141 | 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5142 | ||
5143 | * macrocmd.c (extract_identifier): Return | |
5144 | a gdb::unique_xmalloc_ptr<char> instead of a char *, and update | |
5145 | callers. | |
5146 | ||
424eb552 JB |
5147 | 2019-02-06 John Baldwin <jhb@FreeBSD.org> |
5148 | ||
5149 | * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces. | |
5150 | ||
1688cb29 TT |
5151 | 2019-02-05 Tom Tromey <tom@tromey.com> |
5152 | ||
5153 | * target.c (target_stack::unpush): Move assertion earlier. | |
5154 | ||
b5eba2d8 TT |
5155 | 2019-01-30 Tom Tromey <tom@tromey.com> |
5156 | ||
5157 | PR python/23615: | |
5158 | * python/python.c (execute_gdb_command): Use gdbpy_allow_threads. | |
5159 | (gdbpy_parse_and_eval): Likewise. | |
5160 | * python/python-internal.h (gdbpy_allow_threads): New class. | |
5161 | ||
7054e2ff JB |
5162 | 2019-01-28 John Baldwin <jhb@FreeBSD.org> |
5163 | ||
5164 | * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap) | |
5165 | (aarch64_fbsd_fpregmap): Move earlier. | |
5166 | (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete. | |
5167 | (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap | |
5168 | instead of individual calls to trad_frame_set_reg_addr. | |
5169 | * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move | |
5170 | earlier. | |
5171 | (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete. | |
5172 | (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap | |
5173 | instead of individual calls to trad_frame_set_reg_addr. | |
5174 | ||
36c25ffa AH |
5175 | 2019-01-28 Alan Hayward <alan.hayward@arm.com> |
5176 | ||
5177 | * CONTRIBUTE: Replace contribution list with wiki link. | |
5178 | ||
a0707f3c TT |
5179 | 2019-01-25 Tom Tromey <tom@tromey.com> |
5180 | ||
5181 | * Makefile.in (GDB_CFLAGS): Don't add -I for common. | |
5182 | ||
0747795c TT |
5183 | 2019-01-25 Tom Tromey <tom@tromey.com> |
5184 | ||
5185 | * xtensa-linux-nat.c: Fix common/ includes. | |
5186 | * xml-support.h: Fix common/ includes. | |
5187 | * xml-support.c: Fix common/ includes. | |
5188 | * x86-linux-nat.c: Fix common/ includes. | |
5189 | * windows-nat.c: Fix common/ includes. | |
5190 | * varobj.h: Fix common/ includes. | |
5191 | * varobj.c: Fix common/ includes. | |
5192 | * value.c: Fix common/ includes. | |
5193 | * valops.c: Fix common/ includes. | |
5194 | * utils.c: Fix common/ includes. | |
5195 | * unittests/xml-utils-selftests.c: Fix common/ includes. | |
5196 | * unittests/utils-selftests.c: Fix common/ includes. | |
5197 | * unittests/unpack-selftests.c: Fix common/ includes. | |
5198 | * unittests/tracepoint-selftests.c: Fix common/ includes. | |
5199 | * unittests/style-selftests.c: Fix common/ includes. | |
5200 | * unittests/string_view-selftests.c: Fix common/ includes. | |
5201 | * unittests/scoped_restore-selftests.c: Fix common/ includes. | |
5202 | * unittests/scoped_mmap-selftests.c: Fix common/ includes. | |
5203 | * unittests/scoped_fd-selftests.c: Fix common/ includes. | |
5204 | * unittests/rsp-low-selftests.c: Fix common/ includes. | |
5205 | * unittests/parse-connection-spec-selftests.c: Fix common/ | |
5206 | includes. | |
5207 | * unittests/optional-selftests.c: Fix common/ includes. | |
5208 | * unittests/offset-type-selftests.c: Fix common/ includes. | |
5209 | * unittests/observable-selftests.c: Fix common/ includes. | |
5210 | * unittests/mkdir-recursive-selftests.c: Fix common/ includes. | |
5211 | * unittests/memrange-selftests.c: Fix common/ includes. | |
5212 | * unittests/memory-map-selftests.c: Fix common/ includes. | |
5213 | * unittests/lookup_name_info-selftests.c: Fix common/ includes. | |
5214 | * unittests/function-view-selftests.c: Fix common/ includes. | |
5215 | * unittests/environ-selftests.c: Fix common/ includes. | |
5216 | * unittests/copy_bitwise-selftests.c: Fix common/ includes. | |
5217 | * unittests/common-utils-selftests.c: Fix common/ includes. | |
5218 | * unittests/cli-utils-selftests.c: Fix common/ includes. | |
5219 | * unittests/array-view-selftests.c: Fix common/ includes. | |
5220 | * ui-file.c: Fix common/ includes. | |
5221 | * tui/tui-io.c: Fix common/ includes. | |
5222 | * tracepoint.h: Fix common/ includes. | |
5223 | * tracepoint.c: Fix common/ includes. | |
5224 | * tracefile-tfile.c: Fix common/ includes. | |
5225 | * top.h: Fix common/ includes. | |
5226 | * top.c: Fix common/ includes. | |
5227 | * thread.c: Fix common/ includes. | |
5228 | * target/waitstatus.h: Fix common/ includes. | |
5229 | * target/waitstatus.c: Fix common/ includes. | |
5230 | * target.h: Fix common/ includes. | |
5231 | * target.c: Fix common/ includes. | |
5232 | * target-memory.c: Fix common/ includes. | |
5233 | * target-descriptions.c: Fix common/ includes. | |
5234 | * symtab.h: Fix common/ includes. | |
5235 | * symfile.c: Fix common/ includes. | |
5236 | * stap-probe.c: Fix common/ includes. | |
5237 | * spu-linux-nat.c: Fix common/ includes. | |
5238 | * sparc-nat.c: Fix common/ includes. | |
5239 | * source.c: Fix common/ includes. | |
5240 | * solib.c: Fix common/ includes. | |
5241 | * solib-target.c: Fix common/ includes. | |
5242 | * ser-unix.c: Fix common/ includes. | |
5243 | * ser-tcp.c: Fix common/ includes. | |
5244 | * ser-pipe.c: Fix common/ includes. | |
5245 | * ser-base.c: Fix common/ includes. | |
5246 | * selftest-arch.c: Fix common/ includes. | |
5247 | * s12z-tdep.c: Fix common/ includes. | |
5248 | * rust-exp.y: Fix common/ includes. | |
5249 | * rs6000-aix-tdep.c: Fix common/ includes. | |
5250 | * riscv-tdep.c: Fix common/ includes. | |
5251 | * remote.c: Fix common/ includes. | |
5252 | * remote-notif.h: Fix common/ includes. | |
5253 | * remote-fileio.h: Fix common/ includes. | |
5254 | * remote-fileio.c: Fix common/ includes. | |
5255 | * regcache.h: Fix common/ includes. | |
5256 | * regcache.c: Fix common/ includes. | |
5257 | * record-btrace.c: Fix common/ includes. | |
5258 | * python/python.c: Fix common/ includes. | |
5259 | * python/py-type.c: Fix common/ includes. | |
5260 | * python/py-inferior.c: Fix common/ includes. | |
5261 | * progspace.h: Fix common/ includes. | |
5262 | * producer.c: Fix common/ includes. | |
5263 | * procfs.c: Fix common/ includes. | |
5264 | * proc-api.c: Fix common/ includes. | |
5265 | * printcmd.c: Fix common/ includes. | |
5266 | * ppc-linux-nat.c: Fix common/ includes. | |
5267 | * parser-defs.h: Fix common/ includes. | |
5268 | * osdata.c: Fix common/ includes. | |
5269 | * obsd-nat.c: Fix common/ includes. | |
5270 | * nat/x86-linux.c: Fix common/ includes. | |
5271 | * nat/x86-linux-dregs.c: Fix common/ includes. | |
5272 | * nat/x86-dregs.h: Fix common/ includes. | |
5273 | * nat/x86-dregs.c: Fix common/ includes. | |
5274 | * nat/ppc-linux.c: Fix common/ includes. | |
5275 | * nat/mips-linux-watch.h: Fix common/ includes. | |
5276 | * nat/mips-linux-watch.c: Fix common/ includes. | |
5277 | * nat/linux-waitpid.c: Fix common/ includes. | |
5278 | * nat/linux-ptrace.h: Fix common/ includes. | |
5279 | * nat/linux-ptrace.c: Fix common/ includes. | |
5280 | * nat/linux-procfs.c: Fix common/ includes. | |
5281 | * nat/linux-personality.c: Fix common/ includes. | |
5282 | * nat/linux-osdata.c: Fix common/ includes. | |
5283 | * nat/linux-namespaces.c: Fix common/ includes. | |
5284 | * nat/linux-btrace.h: Fix common/ includes. | |
5285 | * nat/linux-btrace.c: Fix common/ includes. | |
5286 | * nat/fork-inferior.c: Fix common/ includes. | |
5287 | * nat/amd64-linux-siginfo.c: Fix common/ includes. | |
5288 | * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes. | |
5289 | * nat/aarch64-linux.c: Fix common/ includes. | |
5290 | * nat/aarch64-linux-hw-point.h: Fix common/ includes. | |
5291 | * nat/aarch64-linux-hw-point.c: Fix common/ includes. | |
5292 | * namespace.h: Fix common/ includes. | |
5293 | * mips-linux-tdep.c: Fix common/ includes. | |
5294 | * minsyms.c: Fix common/ includes. | |
5295 | * mi/mi-parse.h: Fix common/ includes. | |
5296 | * mi/mi-main.c: Fix common/ includes. | |
5297 | * mi/mi-cmd-env.c: Fix common/ includes. | |
5298 | * memrange.h: Fix common/ includes. | |
5299 | * memattr.c: Fix common/ includes. | |
5300 | * maint.h: Fix common/ includes. | |
5301 | * maint.c: Fix common/ includes. | |
5302 | * main.c: Fix common/ includes. | |
5303 | * machoread.c: Fix common/ includes. | |
5304 | * location.c: Fix common/ includes. | |
5305 | * linux-thread-db.c: Fix common/ includes. | |
5306 | * linux-nat.c: Fix common/ includes. | |
5307 | * linux-fork.c: Fix common/ includes. | |
5308 | * inline-frame.c: Fix common/ includes. | |
5309 | * infrun.c: Fix common/ includes. | |
5310 | * inflow.c: Fix common/ includes. | |
5311 | * inferior.h: Fix common/ includes. | |
5312 | * inferior.c: Fix common/ includes. | |
5313 | * infcmd.c: Fix common/ includes. | |
5314 | * inf-ptrace.c: Fix common/ includes. | |
5315 | * inf-child.c: Fix common/ includes. | |
5316 | * ia64-linux-nat.c: Fix common/ includes. | |
5317 | * i387-tdep.c: Fix common/ includes. | |
5318 | * i386-tdep.c: Fix common/ includes. | |
5319 | * i386-linux-tdep.c: Fix common/ includes. | |
5320 | * i386-linux-nat.c: Fix common/ includes. | |
5321 | * i386-go32-tdep.c: Fix common/ includes. | |
5322 | * i386-fbsd-tdep.c: Fix common/ includes. | |
5323 | * i386-fbsd-nat.c: Fix common/ includes. | |
5324 | * guile/scm-type.c: Fix common/ includes. | |
5325 | * guile/guile.c: Fix common/ includes. | |
5326 | * go32-nat.c: Fix common/ includes. | |
5327 | * gnu-nat.c: Fix common/ includes. | |
5328 | * gdbthread.h: Fix common/ includes. | |
5329 | * gdbarch-selftests.c: Fix common/ includes. | |
5330 | * gdb_usleep.c: Fix common/ includes. | |
5331 | * gdb_select.h: Fix common/ includes. | |
5332 | * gdb_bfd.c: Fix common/ includes. | |
5333 | * gcore.c: Fix common/ includes. | |
5334 | * fork-child.c: Fix common/ includes. | |
5335 | * findvar.c: Fix common/ includes. | |
5336 | * fbsd-nat.c: Fix common/ includes. | |
5337 | * event-top.c: Fix common/ includes. | |
5338 | * event-loop.c: Fix common/ includes. | |
5339 | * dwarf2read.c: Fix common/ includes. | |
5340 | * dwarf2loc.c: Fix common/ includes. | |
5341 | * dwarf2-frame.c: Fix common/ includes. | |
5342 | * dwarf-index-cache.c: Fix common/ includes. | |
5343 | * dtrace-probe.c: Fix common/ includes. | |
5344 | * disasm-selftests.c: Fix common/ includes. | |
5345 | * defs.h: Fix common/ includes. | |
5346 | * csky-tdep.c: Fix common/ includes. | |
5347 | * cp-valprint.c: Fix common/ includes. | |
5348 | * cp-support.h: Fix common/ includes. | |
5349 | * cp-support.c: Fix common/ includes. | |
5350 | * corelow.c: Fix common/ includes. | |
5351 | * completer.h: Fix common/ includes. | |
5352 | * completer.c: Fix common/ includes. | |
5353 | * compile/compile.c: Fix common/ includes. | |
5354 | * compile/compile-loc2c.c: Fix common/ includes. | |
5355 | * compile/compile-cplus-types.c: Fix common/ includes. | |
5356 | * compile/compile-cplus-symbols.c: Fix common/ includes. | |
5357 | * command.h: Fix common/ includes. | |
5358 | * cli/cli-dump.c: Fix common/ includes. | |
5359 | * cli/cli-cmds.c: Fix common/ includes. | |
5360 | * charset.c: Fix common/ includes. | |
5361 | * build-id.c: Fix common/ includes. | |
5362 | * btrace.h: Fix common/ includes. | |
5363 | * btrace.c: Fix common/ includes. | |
5364 | * breakpoint.h: Fix common/ includes. | |
5365 | * breakpoint.c: Fix common/ includes. | |
5366 | * ax.h: | |
5367 | (enum agent_op): Fix common/ includes. | |
5368 | * ax-general.c (struct aop_map): Fix common/ includes. | |
5369 | * ax-gdb.c: Fix common/ includes. | |
5370 | * auxv.c: Fix common/ includes. | |
5371 | * auto-load.c: Fix common/ includes. | |
5372 | * arm-tdep.c: Fix common/ includes. | |
5373 | * arch/riscv.c: Fix common/ includes. | |
5374 | * arch/ppc-linux-common.c: Fix common/ includes. | |
5375 | * arch/i386.c: Fix common/ includes. | |
5376 | * arch/arm.c: Fix common/ includes. | |
5377 | * arch/arm-linux.c: Fix common/ includes. | |
5378 | * arch/arm-get-next-pcs.c: Fix common/ includes. | |
5379 | * arch/amd64.c: Fix common/ includes. | |
5380 | * arch/aarch64.c: Fix common/ includes. | |
5381 | * arch/aarch64-insn.c: Fix common/ includes. | |
5382 | * arch-utils.c: Fix common/ includes. | |
5383 | * amd64-windows-tdep.c: Fix common/ includes. | |
5384 | * amd64-tdep.c: Fix common/ includes. | |
5385 | * amd64-sol2-tdep.c: Fix common/ includes. | |
5386 | * amd64-obsd-tdep.c: Fix common/ includes. | |
5387 | * amd64-nbsd-tdep.c: Fix common/ includes. | |
5388 | * amd64-linux-tdep.c: Fix common/ includes. | |
5389 | * amd64-linux-nat.c: Fix common/ includes. | |
5390 | * amd64-fbsd-tdep.c: Fix common/ includes. | |
5391 | * amd64-fbsd-nat.c: Fix common/ includes. | |
5392 | * amd64-dicos-tdep.c: Fix common/ includes. | |
5393 | * amd64-darwin-tdep.c: Fix common/ includes. | |
5394 | * agent.c: Fix common/ includes. | |
5395 | * ada-lang.h: Fix common/ includes. | |
5396 | * ada-lang.c: Fix common/ includes. | |
5397 | * aarch64-tdep.c: Fix common/ includes. | |
5398 | ||
2f5c153e TT |
5399 | 2019-01-25 Tom Tromey <tom@tromey.com> |
5400 | ||
5401 | * common/create-version.sh: Use common/version.h. | |
5402 | ||
adc6a863 PA |
5403 | 2019-01-24 Pedro Alves <palves@redhat.com> |
5404 | ||
5405 | * infrun.c (signal_stop, signal_print, signal_program) | |
5406 | (signal_catch, signal_pass): Now arrays instead of pointers. | |
5407 | (update_signals_program_target, do_target_resume) | |
5408 | (signal_catch_update, handle_command, _initialize_infrun): Adjust. | |
5409 | * linux-nat.c (linux_nat_target::pass_signals) | |
5410 | (linux_nat_target::create_inferior, linux_nat_target::attach): | |
5411 | Adjust. | |
5412 | * linux-nat.h (linux_nat_target::pass_signals): Adjust. | |
5413 | * nto-procfs.c (nto_procfs_target::pass_signals): Adjust. | |
5414 | * procfs.c (procfs_target::pass_signals): Adjust. | |
5415 | * record-full.c (record_full_target::resume): Adjust. | |
5416 | * remote.c (remote_target::pass_signals) | |
5417 | (remote_target::program_signals): Adjust. | |
5418 | * target-debug.h (target_debug_print_signals): Now takes a | |
5419 | gdb::array_view as parameter. Adjust. | |
5420 | * target.h (target_ops) <pass_signals, program_signals>: Replace | |
5421 | pointer and length parameters with gdb::array_view. | |
5422 | (target_pass_signals, target_program_signals): Likewise. | |
5423 | * target-delegates.c: Regenerate. | |
5424 | ||
3046d67a PA |
5425 | 2019-01-24 Pedro Alves <palves@redhat.com> |
5426 | ||
5427 | * common/forward-scope-exit.h | |
5428 | (forward_scope_exit::forward_scope_exit): Pass arguments to | |
5429 | m_bind_function directly, instead of creating a std::bind and | |
5430 | copying that. | |
5431 | ||
353229bf AH |
5432 | 2019-01-24 Alan Hayward <alan.hayward@arm.com> |
5433 | ||
5434 | * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check | |
5435 | for static members. | |
5436 | (pass_in_v_vfp_candidate): Likewise. | |
5437 | ||
311dc83a TT |
5438 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5439 | Pedro Alves <palves@redhat.com> | |
5440 | ||
5441 | * regcache.c (class regcache_invalidator): Remove. | |
5442 | (regcache::raw_write): Use make_scope_exit. | |
5443 | ||
296bd123 TT |
5444 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5445 | ||
5446 | * ui-out.h (class ui_out_emit_type): Update comment. | |
5447 | ||
979a0d13 TT |
5448 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5449 | ||
5450 | * infrun.c (fetch_inferior_event): Update comment. | |
5451 | ||
d238133d TT |
5452 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5453 | Pedro Alves <palves@redhat.com> | |
5454 | ||
5455 | * infrun.c (reinstall_readline_callback_handler_cleanup): Remove | |
5456 | parameter. | |
5457 | (fetch_inferior_event): Use SCOPE_EXIT. | |
5458 | ||
5459 | ||
9885e6bb TT |
5460 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5461 | Pedro Alves <palves@redhat.com> | |
5462 | ||
5463 | * infrun.c (disable_thread_events): Delete. | |
5464 | (stop_all_threads): Use SCOPE_EXIT. | |
5465 | ||
286526c1 TT |
5466 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5467 | Pedro Alves <palves@redhat.com> | |
5468 | ||
5469 | * symfile.c: Include forward-scope-exit.h. | |
5470 | (clear_symtab_users_cleanup): Replace forward declaration with | |
5471 | a FORWARD_SCOPE_EXIT. | |
5472 | (syms_from_objfile_1): Use the forward_scope_exit and | |
5473 | gdb::optional instead of cleanup_function. | |
5474 | (reread_symbols): Use the forward_scope_exit instead of | |
5475 | cleanup_function. | |
5476 | (clear_symtab_users_cleanup): Remove function. | |
5477 | ||
1db93f14 TT |
5478 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5479 | Pedro Alves <palves@redhat.com> | |
5480 | ||
5481 | * linux-nat.c: Include scope-exit.h. | |
5482 | (cleanup_target_stop): Remove. | |
5483 | (linux_nat_target::static_tracepoint_markers_by_strid): Use | |
5484 | SCOPE_EXIT. | |
5485 | ||
2cc83d1e TT |
5486 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5487 | Pedro Alves <palves@redhat.com> | |
5488 | ||
5489 | * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove. | |
5490 | (call_function_by_hand_dummy): Use SCOPE_EXIT. | |
5491 | ||
694c6bf5 TT |
5492 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5493 | Andrew Burgess <andrew.burgess@embecosm.com> | |
5494 | Pedro Alves <palves@redhat.com> | |
5495 | ||
5496 | * infrun.c (fetch_inferior_event): Use scope_exit. | |
5497 | * utils.h (make_bpstat_clear_actions_cleanup): Don't declare. | |
5498 | * top.c (execute_command): Use scope_exit. | |
5499 | * breakpoint.c (bpstat_do_actions): Use scope_exit. | |
5500 | * utils.c (do_bpstat_clear_actions_cleanup) | |
5501 | (make_bpstat_clear_actions_cleanup): Remove. | |
5502 | ||
4c41382a TT |
5503 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5504 | Pedro Alves <palves@redhat.com> | |
5505 | ||
5506 | * infrun.c: Include "common/scope-exit.h" | |
5507 | (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove. | |
5508 | (wait_for_inferior): Use SCOPE_EXIT. | |
5509 | (fetch_inferior_event): Use scope_exit. | |
5510 | ||
89f8fb50 TT |
5511 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5512 | Pedro Alves <palves@redhat.com> | |
5513 | ||
5514 | * breakpoint.c (create_breakpoint): Remove cleanup. | |
5515 | ||
5419bdae TT |
5516 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5517 | Andrew Burgess <andrew.burgess@embecosm.com> | |
5518 | Pedro Alves <palves@redhat.com> | |
5519 | ||
e587ef42 PA |
5520 | 2019-01-23 Pedro Alves <palves@redhat.com> |
5521 | ||
5522 | * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT. | |
5523 | ||
77f0e74c PA |
5524 | 2019-01-23 Pedro Alves <palves@redhat.com> |
5525 | Andrew Burgess <andrew.burgess@embecosm.com> | |
5526 | ||
5527 | * gdbthread.h: Include "common/forward-scope-exit.h". | |
5528 | (scoped_finish_thread_state): Redefine custom class in terms of | |
5529 | forward_scope_exit. | |
5530 | ||
5b9b3e53 PA |
5531 | 2019-01-23 Pedro Alves <palves@redhat.com> |
5532 | Andrew Burgess <andrew.burgess@embecosm.com> | |
5533 | ||
5534 | * common/forward-scope-exit.h: New file. | |
5535 | ||
54b65c9b PA |
5536 | 2019-01-23 Pedro Alves <palves@redhat.com> |
5537 | Andrew Burgess <andrew.burgess@embecosm.com> | |
5538 | Tom Tromey <tom@tromey.com> | |
5539 | ||
5540 | * common/scope-exit.h: New file. | |
5541 | ||
cf08fb29 PA |
5542 | 2019-01-23 Pedro Alves <palves@redhat.com> |
5543 | ||
5544 | * common/preprocessor.h (ESC): Rename to ... | |
5545 | (ESC_PARENS): ... this. | |
5546 | * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2) | |
5547 | (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust. | |
5548 | ||
ae73e2e2 TT |
5549 | 2019-01-23 Tom Tromey <tom@tromey.com> |
5550 | ||
5551 | * language.h (class scoped_switch_to_sym_language_if_auto): | |
5552 | Initialize m_lang in both cases. | |
5553 | ||
6594e122 AH |
5554 | 2019-01-23 Alan Hayward <alan.hayward@arm.com> |
5555 | ||
5556 | * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW | |
5557 | with XCNEW. | |
5558 | ||
a7c9855d TT |
5559 | 2019-01-22 Tom Tromey <tom@tromey.com> |
5560 | ||
5561 | * corelow.c: Do not include sys/file.h. | |
5562 | ||
93cc1d53 TT |
5563 | 2019-01-22 Tom Tromey <tom@tromey.com> |
5564 | ||
5565 | * tui/tui-wingeneral.h: Include gdb_curses.h. | |
5566 | ||
38561778 TT |
5567 | 2019-01-22 Tom Tromey <tom@tromey.com> |
5568 | ||
5569 | * source-cache.h (class source_cache) <get_source_lines, | |
5570 | get_plain_source_lines, extract_lines>: Rename "lines" parameter. | |
5571 | ||
37b3ab5b TT |
5572 | 2019-01-22 Tom Tromey <tom@tromey.com> |
5573 | ||
5574 | * remote-fileio.h (struct remote_target): Declare. | |
5575 | ||
3fabc016 TT |
5576 | 2019-01-22 Tom Tromey <tom@tromey.com> |
5577 | ||
5578 | * python/py-arch.c: Do not include py-ref.h. | |
5579 | * python/py-bpevent.c: Do not include py-ref.h. | |
5580 | * python/py-cmd.c: Do not include py-ref.h. | |
5581 | * python/py-continueevent.c: Do not include py-ref.h. | |
5582 | * python/py-event.h: Do not include py-ref.h. | |
5583 | * python/py-evtregistry.c: Do not include py-ref.h. | |
5584 | * python/py-finishbreakpoint.c: Do not include py-ref.h. | |
5585 | * python/py-frame.c: Do not include py-ref.h. | |
5586 | * python/py-framefilter.c: Do not include py-ref.h. | |
5587 | * python/py-function.c: Do not include py-ref.h. | |
5588 | * python/py-infevents.c: Do not include py-ref.h. | |
5589 | * python/py-linetable.c: Do not include py-ref.h. | |
5590 | * python/py-objfile.c: Do not include py-ref.h. | |
5591 | * python/py-param.c: Do not include py-ref.h. | |
5592 | * python/py-prettyprint.c: Do not include py-ref.h. | |
5593 | * python/py-progspace.c: Do not include py-ref.h. | |
5594 | * python/py-symbol.c: Do not include py-ref.h. | |
5595 | * python/py-symtab.c: Do not include py-ref.h. | |
5596 | * python/py-type.c: Do not include py-ref.h. | |
5597 | * python/py-unwind.c: Do not include py-ref.h. | |
5598 | * python/py-utils.c: Do not include py-ref.h. | |
5599 | * python/py-value.c: Do not include py-ref.h. | |
5600 | * python/py-varobj.c: Do not include py-ref.h. | |
5601 | * python/py-xmethods.c: Do not include py-ref.h. | |
5602 | * python/python.c: Do not include py-ref.h. | |
5603 | * varobj.c: Do not include py-ref.h. | |
5604 | ||
6b4d7774 TT |
5605 | 2019-01-22 Tom Tromey <tom@tromey.com> |
5606 | ||
5607 | * objfiles.h (struct objfile_per_bfd_storage): Use "struct" | |
5608 | keyword for bcache. | |
5609 | ||
7af7e9b5 TT |
5610 | 2019-01-22 Tom Tromey <tom@tromey.com> |
5611 | ||
5612 | * compile/compile-cplus-types.c: Remove a comment by #include. | |
5613 | ||
951d1049 TT |
5614 | 2019-01-22 Tom Tromey <tom@tromey.com> |
5615 | ||
5616 | * compile/gcc-c-plugin.h: Include compile-internal.h. | |
5617 | ||
d65d5705 TT |
5618 | 2019-01-22 Tom Tromey <tom@tromey.com> |
5619 | ||
5620 | * stabsread.c (EXTERN): Do not define. | |
5621 | (symnum, next_symbol_text_func, processing_gcc_compilation) | |
5622 | (within_function, global_sym_chain, global_stabs) | |
5623 | (previous_stab_code, this_object_header_files) | |
5624 | (n_this_object_header_files) | |
5625 | (n_allocated_this_object_header_files): Define. | |
5626 | * stabsread.h (EXTERN): Never define. Use "extern". | |
5627 | ||
b6fb1ee5 PW |
5628 | 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5629 | ||
5630 | * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for | |
5631 | history_value. | |
5632 | ||
be6d4f74 TT |
5633 | 2019-01-21 Tom Tromey <tom@tromey.com> |
5634 | ||
5635 | * ui-out.c: Fix includes. | |
5636 | * tui/tui-source.c: Fix includes. | |
5637 | * target.c: Fix includes. | |
5638 | * remote.c: Fix includes. | |
5639 | * regcache.c: Fix includes. | |
5640 | * python/py-block.c: Fix includes. | |
5641 | * printcmd.c: Fix includes. | |
5642 | * or1k-tdep.c: Fix includes. | |
5643 | * mi/mi-main.c: Fix includes. | |
5644 | * m32r-tdep.c: Fix includes. | |
5645 | * csky-tdep.c: Fix includes. | |
5646 | * compile/compile-cplus-types.c: Fix includes. | |
5647 | * cli/cli-interp.c: Fix includes. | |
5648 | ||
73021deb AH |
5649 | 2019-01-21 Alan Hayward <alan.hayward@arm.com> |
5650 | ||
5651 | * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check | |
5652 | for padding. | |
5653 | ||
7932255d TT |
5654 | 2019-01-16 Tom Tromey <tom@tromey.com> |
5655 | ||
5656 | * objfiles.h (struct minimal_symbol_iterator): Rename. Move | |
5657 | earlier. | |
5658 | (struct objfile) <msymbols_range>: Move from top level. | |
5659 | <msymbols>: New method. | |
5660 | (class objfile_msymbols): Remove. | |
5661 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
5662 | Update. | |
5663 | * symmisc.c (dump_msymbols): Update. | |
5664 | * stabsread.c (scan_file_globals): Update. | |
5665 | * objc-lang.c (info_selectors_command, info_classes_command) | |
5666 | (find_methods): Update. | |
5667 | * minsyms.c (find_solib_trampoline_target): Update. | |
5668 | * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update. | |
5669 | * coffread.c (coff_symfile_read): Update. | |
5670 | * ada-lang.c (ada_lookup_simple_minsym) | |
5671 | (ada_collect_symbol_completion_matches): Update. | |
5672 | ||
604b1bfb TT |
5673 | 2019-01-16 Tom Tromey <tom@tromey.com> |
5674 | ||
5675 | * objfiles.h (class objfile_msymbols) <iterator>: Change argument | |
5676 | type. Remove no-argument constructor. | |
5677 | <iterator::operator++>: Simplify. | |
5678 | <begin>: Update. | |
5679 | <end>: Use minimal_symbol_count. | |
5680 | ||
f252c6d5 TT |
5681 | 2019-01-16 Tom Tromey <tom@tromey.com> |
5682 | ||
5683 | * objfiles.h (struct objfile) <psymtabs>: New method. | |
5684 | (class objfile_psymtabs): Remove. | |
5685 | * psymtab.h (class psymtab_storage) <partial_symtab_range>: New | |
5686 | typedef. | |
5687 | <range>: New method. | |
5688 | (require_partial_symbols): Change return type. | |
5689 | * psymtab.c (require_partial_symbols) | |
5690 | (psym_expand_symtabs_matching): Update. | |
5691 | * mdebugread.c (parse_partial_symbols): Update. | |
5692 | * dbxread.c (dbx_end_psymtab): Update. | |
5693 | ||
b669c953 TT |
5694 | 2019-01-15 Tom Tromey <tom@tromey.com> |
5695 | ||
5696 | * symtab.c (lookup_objfile_from_block) | |
5697 | (lookup_symbol_in_objfile_symtabs) | |
5698 | (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab) | |
5699 | (find_line_symtab, info_sources_command) | |
5700 | (default_collect_symbol_completion_matches_break_on) | |
5701 | (make_source_files_completion_list): Update. | |
5702 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
5703 | (maintenance_print_symbols, maintenance_info_symtabs) | |
5704 | (maintenance_check_symtabs, maintenance_info_line_tables): | |
5705 | Update. | |
5706 | * source.c (select_source_symtab) | |
5707 | (forget_cached_source_info_for_objfile): Update. | |
5708 | * objfiles.h (class objfile_compunits): Remove. | |
5709 | (struct objfile) <compunits_range>: New typedef. | |
5710 | (compunits): New method. | |
5711 | * objfiles.c (objfile_relocate1): Update. | |
5712 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update. | |
5713 | * maint.c (count_symtabs_and_blocks): Update. | |
5714 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
5715 | * cp-support.c (add_symbol_overload_list_qualified): Update. | |
5716 | * coffread.c (coff_symtab_read): Update. | |
5717 | * ada-lang.c (add_nonlocal_symbols) | |
5718 | (ada_collect_symbol_completion_matches) | |
5719 | (ada_add_global_exceptions): Update. | |
5720 | ||
7e955d83 TT |
5721 | 2019-01-15 Tom Tromey <tom@tromey.com> |
5722 | ||
5723 | * progspace.h (program_space) <objfiles_safe_range>: New | |
5724 | typedef. | |
5725 | <objfiles_safe>: New method. | |
5726 | * objfiles.h (class all_objfiles_safe): Remove. | |
5727 | * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update. | |
5728 | * jit.c (jit_inferior_exit_hook): Update. | |
5729 | ||
2030c079 TT |
5730 | 2019-01-17 Tom Tromey <tom@tromey.com> |
5731 | ||
5732 | * progspace.h (program_space) <objfiles_range>: New typedef. | |
5733 | <objfiles>: New method. | |
5734 | <objfiles_head>: Rename from objfiles. | |
5735 | (object_files): Update. | |
5736 | * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update. | |
5737 | * guile/scm-pretty-print.c | |
5738 | (ppscm_find_pretty_printer_from_objfiles): Update. | |
5739 | * guile/scm-objfile.c (gdbscm_objfiles): Update. | |
5740 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
5741 | Update. | |
5742 | * python/py-progspace.c (pspy_get_objfiles): Update. | |
5743 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
5744 | Update. | |
5745 | * python/py-objfile.c (objfpy_lookup_objfile_by_name) | |
5746 | (objfpy_lookup_objfile_by_build_id): Update. | |
5747 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update. | |
5748 | * windows-tdep.c (windows_iterate_over_objfiles_in_search_order): | |
5749 | Update. | |
5750 | * symtab.c (iterate_over_symtabs, matching_obj_sections) | |
5751 | (expand_symtab_containing_pc, lookup_objfile_from_block) | |
5752 | (lookup_static_symbol, basic_lookup_transparent_type) | |
5753 | (find_pc_sect_compunit_symtab, find_symbol_at_address) | |
5754 | (find_line_symtab, info_sources_command) | |
5755 | (default_collect_symbol_completion_matches_break_on) | |
5756 | (make_source_files_completion_list, find_main_name): Update. | |
5757 | * symmisc.c (print_symbol_bcache_statistics) | |
5758 | (print_objfile_statistics, maintenance_print_symbols) | |
5759 | (maintenance_print_msymbols, maintenance_print_objfiles) | |
5760 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
5761 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
5762 | Update. | |
5763 | * symfile.c (remove_symbol_file_command, overlay_invalidate_all) | |
5764 | (find_pc_overlay, find_pc_mapped_section, list_overlays_command) | |
5765 | (map_overlay_command, unmap_overlay_command) | |
5766 | (simple_overlay_update, expand_symtabs_matching) | |
5767 | (map_symbol_filenames): Update. | |
5768 | * symfile-debug.c (set_debug_symfile): Update. | |
5769 | * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame): | |
5770 | Update. | |
5771 | * source.c (select_source_symtab, forget_cached_source_info): | |
5772 | Update. | |
5773 | * solib.c (solib_read_symbols): Update. | |
5774 | * solib-spu.c (append_ocl_sos): Update. | |
5775 | * psymtab.c (maintenance_print_psymbols) | |
5776 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
5777 | * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update. | |
5778 | * printcmd.c (info_symbol_command): Update. | |
5779 | * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): | |
5780 | Update. | |
5781 | * objfiles.h (class all_objfiles): Remove. | |
5782 | * objfiles.c (have_partial_symbols, have_full_symbols) | |
5783 | (have_minimal_symbols, qsort_cmp, update_section_map) | |
5784 | (shared_objfile_contains_address_p) | |
5785 | (default_iterate_over_objfiles_in_search_order): Update. | |
5786 | * objc-lang.c (info_selectors_command, info_classes_command) | |
5787 | (find_methods): Update. | |
5788 | * minsyms.c (find_solib_trampoline_target): Update. | |
5789 | * maint.c (maintenance_info_sections) | |
5790 | (maintenance_translate_address, count_symtabs_and_blocks): | |
5791 | Update. | |
5792 | * main.c (captured_main_1): Update. | |
5793 | * linux-thread-db.c (try_thread_db_load_from_pdir) | |
5794 | (has_libpthread): Update. | |
5795 | * linespec.c (iterate_over_all_matching_symtabs) | |
5796 | (search_minsyms_for_name): Update. | |
5797 | * jit.c (jit_find_objf_with_entry_addr): Update. | |
5798 | * hppa-tdep.c (find_unwind_entry) | |
5799 | (hppa_lookup_stub_minimal_symbol): Update. | |
5800 | * gcore.c (gcore_create_callback, objfile_find_memory_regions): | |
5801 | Update. | |
5802 | * elfread.c (elf_gnu_ifunc_resolve_by_cache) | |
5803 | (elf_gnu_ifunc_resolve_by_got): Update. | |
5804 | * dwarf2-frame.c (dwarf2_frame_find_fde): Update. | |
5805 | * dwarf-index-write.c (save_gdb_index_command): Update. | |
5806 | * cp-support.c (add_symbol_overload_list_qualified): Update. | |
5807 | * breakpoint.c (create_overlay_event_breakpoint) | |
5808 | (create_longjmp_master_breakpoint) | |
5809 | (create_std_terminate_master_breakpoint) | |
5810 | (create_exception_master_breakpoint): Update. | |
5811 | * blockframe.c (find_pc_partial_function): Update. | |
5812 | * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols) | |
5813 | (ada_collect_symbol_completion_matches) | |
5814 | (ada_add_global_exceptions): Update. | |
5815 | ||
776489e0 TT |
5816 | 2019-01-17 Tom Tromey <tom@tromey.com> |
5817 | ||
5818 | * solib-target.c (lm_info_target_p): Remove typedef. Don't | |
5819 | declare VEC. | |
5820 | (solib_target_parse_libraries): Change return type. | |
5821 | (library_list_start_segment, library_list_start_section) | |
5822 | (library_list_end_library, library_list_start_library); Update. | |
5823 | (solib_target_free_library_list): Remove. | |
5824 | (solib_target_parse_libraries): Remove cleanup. Change return | |
5825 | type. | |
5826 | (solib_target_current_sos): Update. | |
5827 | ||
6471e7d2 TT |
5828 | 2019-01-17 Tom Tromey <tromey@bapiya> |
5829 | ||
5830 | * valprint.c: Replace "the the" with "the". | |
5831 | * symtab.c: Replace "the the" with "the". | |
5832 | * solib.c: Replace "the the" with "the". | |
5833 | * solib-dsbt.c: Replace "the the" with "the". | |
5834 | * linespec.c: Replace "the the" with "the". | |
5835 | * dwarf2loc.h: Replace "the the" with "the". | |
5836 | * amd64-windows-tdep.c: Replace "the the" with "the". | |
5837 | * aarch64-tdep.c: Replace "the the" with "the". | |
5838 | ||
c24bdb02 KS |
5839 | 2019-01-16 Keith Seitz <keiths@redhat.com> |
5840 | ||
5841 | PR gdb/23773 | |
5842 | * dwarf2read.c (dwarf2_cu) <ancestor>: New field. | |
5843 | <builder>: Rename to .. | |
5844 | <m_builder>: ... this and make private. | |
5845 | (dwarf2_cu::get_builder): New method. Change all users of | |
5846 | `builder' to use this method. | |
5847 | (dwarf2_start_symtab): Move to ... | |
5848 | (dwarf2_cu::start_symtab): ... here. Update all callers | |
5849 | (setup_type_unit_groups): Move to ... | |
5850 | (dwarf2_cu::setup_type_unit_groups): ... here. Update all | |
5851 | callers. | |
5852 | (dwarf2_cu::reset_builder): New method. | |
5853 | (process_full_compunit, process_full_type_unit): Use | |
5854 | dwarf2_cu::reset_builder. | |
5855 | (follow_die_offset): Record the ancestor CU if it is different | |
5856 | from the followed DIE's CU. | |
5857 | (follow_die_sig_1): Likewise. | |
5858 | ||
8d64371b TT |
5859 | 2019-01-15 Tom Tromey <tom@tromey.com> |
5860 | ||
5861 | * remote.c (class remote_state) <buf>: Now a char_vector. | |
5862 | <buf_size>: Remove. | |
5863 | (remote_target::getpkt): Change type of buf. Remove sizeof_buf | |
5864 | parameter. | |
5865 | (remote_target::getpkt_or_notif_sane_1) | |
5866 | (remote_target::getpkt_sane) | |
5867 | (remote_target::getpkt_or_notif_sane): Likewise. | |
5868 | (class remote_target) <putpkt>: New overload. | |
5869 | (remote_target::read_frame): Change type of "buf_p". Remove | |
5870 | sizeof_p parameter. | |
5871 | (packet_ok): New overload. | |
5872 | (packet_check_result): New overload. | |
5873 | Update all uses. | |
5874 | ||
bb277751 TT |
5875 | 2019-01-14 Tom Tromey <tom@tromey.com> |
5876 | ||
5877 | * remote-notif.c (handle_notification, remote_notif_ack) | |
5878 | (remote_notif_parse): Make "buf" const. | |
5879 | * remote-notif.h (struct notif_client) <parse, ack>: Make "buf" | |
5880 | const. | |
5881 | (remote_notif_parse, remote_notif_ack, handle_notification): | |
5882 | Likewise. | |
5883 | * remote.c (remote_notif_stop_parse): Make "buf" const. | |
5884 | (remote_target::remote_parse_stop_reply): Make "buf" const. | |
5885 | (remote_notif_stop_ack): Make "buf" const. | |
5886 | ||
05be00a8 TT |
5887 | 2019-01-14 Tom Tromey <tom@tromey.com> |
5888 | ||
5889 | * remote.c (remote_console_output): Make parameter const. | |
5890 | ||
491adeca TT |
5891 | 2019-01-14 Tom Tromey <tom@tromey.com> |
5892 | ||
5893 | * target-debug.h (target_debug_print_signals): Constify. | |
5894 | * nto-procfs.c (nto_procfs_target::pass_signals): Update. | |
5895 | * procfs.c (procfs_target::pass_signals): Update. | |
5896 | * linux-nat.c (linux_nat_target::pass_signals): Update. | |
5897 | * linux-nat.h (class linux_nat_target) <pass_signals>: Update. | |
5898 | * target-delegates.c: Rebuild. | |
5899 | * remote.c (remote_target::program_signals): Update. | |
5900 | (remote_target::pass_signals): Update. | |
5901 | * target.c (target_pass_signals): Constify argument. | |
5902 | (target_program_signals): Likewise. | |
5903 | * target.h (struct target_ops) <pass_signals, program_signals>: | |
5904 | Constify argument. | |
5905 | (target_pass_signals, target_program_signals): Constify argument. | |
5906 | ||
bbd94648 TT |
5907 | 2019-01-14 Tom Tromey <tom@tromey.com> |
5908 | ||
5909 | PR tui/28819: | |
5910 | * tui/tui-io.c (gdb_wgetch): Print \r when needed. | |
5911 | ||
6f072a10 PFC |
5912 | 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5913 | ||
5914 | * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New | |
5915 | field. | |
5916 | * rs6000-tdep.c: Include reggroups.h. | |
5917 | (IS_V_ALIAS_PSEUDOREG): Define. | |
5918 | (rs6000_register_name): Return names for the "vX" aliases. | |
5919 | (rs6000_pseudo_register_type): Return type for the "vX" aliases. | |
5920 | (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX" | |
5921 | aliases. Call default_register_reggroup_p for all other | |
5922 | pseudo-registers. | |
5923 | (v_alias_pseudo_register_read, v_alias_pseudo_register_write): | |
5924 | New functions. | |
5925 | (rs6000_pseudo_register_read, rs6000_pseudo_register_write): | |
5926 | Handle "vX" aliases. | |
5927 | (v_alias_pseudo_register_collect): New function. | |
5928 | (rs6000_ax_pseudo_register_collect): Handle "vX" aliases. | |
5929 | (rs6000_gdbarch_init): Initialize "vX" aliases as | |
5930 | pseudo-registers. Restore registration of | |
5931 | rs6000_pseudo_register_reggroup_p with | |
5932 | set_tdesc_pseudo_register_reggroup_p. | |
5933 | ||
1a782351 MF |
5934 | 2019-01-13 Max Filippov <jcmvbkbc@gmail.com> |
5935 | ||
5936 | * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update | |
5937 | tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and | |
5938 | set_gdbarch_num_pseudo_regs. | |
5939 | ||
d73cff18 PW |
5940 | 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5941 | ||
5942 | * cli/cli-style.h (class cli_style_option): <add_setshow_commands> | |
5943 | Remove arg prefixname, add do_set and do_show. | |
5944 | Add member functions set_list and show_list. | |
5945 | * cli/cli-style.c (class cli_style_option): Update accordingly. | |
5946 | (style_set_list): Move to file scope. | |
5947 | (style_show_list): Likewise. | |
5948 | (set_style): Call help_list. | |
5949 | (show_style): Call cmd_show_list. | |
5950 | (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS. | |
5951 | Update to use the new macro. | |
5952 | ||
60a90376 JB |
5953 | 2019-10-12 Joel Brobecker <brobecker@adacore.com> |
5954 | ||
5955 | * ada-lang.c (_initialize_ada_language): Expand the help text | |
5956 | for the "catch exception" command. | |
5957 | ||
9d7c67bf PW |
5958 | 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5959 | ||
5960 | * symtab.c (matching_obj_sections): Initialize obj, | |
5961 | declare it closer to its usage. | |
5962 | ||
7cf47dc4 TT |
5963 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5964 | ||
5965 | * thread-iter.h (inf_threads_iterator): Use next_iterator. | |
5966 | (basic_inf_threads_range): Remove. | |
5967 | (inf_threads_range, inf_non_exited_threads_range) | |
5968 | (safe_inf_threads_range): Use next_adapter. | |
5969 | ||
d3cb6808 KS |
5970 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
5971 | ||
5972 | PR gdb/23712 | |
5973 | PR symtab/23010 | |
5974 | * dwarf2read.c (dw2_add_symbol_to_list): Remove. | |
5975 | (fixup_go_packaging, new_symbol): Use add_symbol_to_list. | |
5976 | ||
63a20375 KS |
5977 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
5978 | ||
5979 | PR gdb/23712 | |
5980 | PR symtab/23010 | |
5981 | * dictionary.c (pending_to_vector): Remove. | |
5982 | (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1): | |
5983 | Remove _1 suffix, replacing functions of the same name. Update | |
5984 | all callers. | |
5985 | (dict_create_hashed, dict_create_hashed_expandable) | |
5986 | (dict_create_linear, dict_create_linear_expandable, dict_free) | |
5987 | (dict_add_symbol, dict_add_pending, dict_size, dict_empty): | |
5988 | Make functions static. | |
5989 | ||
b026f593 KS |
5990 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
5991 | ||
5992 | PR gdb/23712 | |
5993 | PR symtab/23010 | |
5994 | * dictionary.h (struct dictionary): Replace declaration with | |
5995 | multidictionary. | |
5996 | (dict_create_hashed, dict_create_hashed_expandable) | |
5997 | (dict_create_linear, dict_create_linear_expandable) | |
5998 | (dict_free, dict_add_symbol, dict_add_pending, dict_empty) | |
5999 | (dict_iterator_first, dict_iterator_next, dict_iter_match_first) | |
6000 | (dict_iter_match_next, dict_size): Rename to "mdict_" versions | |
6001 | taking multidictionary argument. | |
6002 | [ALL_DICT_SYMBOLS]: Update for multidictionary. | |
6003 | * block.h (struct block) <dict>: Change to multidictionary | |
6004 | and rename `multidict'. | |
6005 | * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c, | |
6006 | symmisc.c: Update all dictionary references to multidictionary. | |
6007 | ||
c7748ee9 KS |
6008 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
6009 | ||
6010 | PR gdb/23712 | |
6011 | PR symtab/23010 | |
6012 | * dictionary.c: Include unordered_map. | |
6013 | (pending_to_vector): New function. | |
6014 | (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1): | |
6015 | Rewrite the non-"_1" functions to take vector instead | |
6016 | of linked list. | |
6017 | (dict_create_hashed, dict_create_linear, dict_add_pending): Use the | |
6018 | "new" _1 versions of the same name. | |
6019 | (multidictionary): Define. | |
6020 | (std::hash<enum language): New definition. | |
6021 | (collate_pending_symbols_by_language, mdict_create_hashed) | |
6022 | (mdict_create_hashed_expandable, mdict_create_linear) | |
6023 | (mdict_create_linear_expandable, mdict_free) | |
6024 | (find_language_dictionary, create_new_language_dictionary) | |
6025 | (mdict_add_symbol, mdict_add_pending, mdict_iterator_first) | |
6026 | (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next) | |
6027 | (mdict_size, mdict_empty): New functions. | |
6028 | * dictionary.h (mdict_iterator): Define. | |
6029 | ||
67aa1f3c PA |
6030 | 2019-01-10 Pedro Alves <palves@redhat.com> |
6031 | ||
6032 | * breakpoint.c (read_uploaded_action) | |
6033 | (create_tracepoint_from_upload): Adjust to use | |
6034 | gdb::unique_xmalloc_ptr. | |
6035 | * ctf.c (ctf_write_uploaded_tp): | |
6036 | (SET_ARRAY_FIELD): Use emplace_back. | |
6037 | (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr. | |
6038 | * tracefile-tfile.c (tfile_write_uploaded_tp): | |
6039 | * tracepoint.c (parse_tracepoint_definition): Adjust to use | |
6040 | gdb::unique_xmalloc_ptr. | |
6041 | * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions, | |
6042 | at_string, cond_string, cmd_strings>: Replace char pointers | |
6043 | with gdb::unique_xmalloc_ptr. | |
6044 | ||
2f667667 PA |
6045 | 2019-01-10 Pedro Alves <palves@redhat.com> |
6046 | ||
6047 | * solib-target.c (library_list_start_library): Don't xstrdup name. | |
6048 | ||
36cb7237 PA |
6049 | 2019-01-10 Pedro Alves <palves@redhat.com> |
6050 | ||
6051 | * mdebugread.c (parse_partial_symbols): Use | |
6052 | gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'. | |
6053 | ||
da584958 AB |
6054 | 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com> |
6055 | ||
6056 | * linux-fork.c (scoped_switch_fork_info) | |
6057 | <~scoped_switch_fork_info>: Fix incorrect variable name. | |
6058 | ||
1ef8573c AB |
6059 | 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com> |
6060 | ||
6061 | * linux-fork.c (scoped_switch_fork_info) | |
6062 | <scoped_switch_fork_info>: Make explicit. | |
6063 | <~scoped_switch_fork_info>: Wrap core in TRY/CATCH. | |
6064 | ||
8d7bcccb TT |
6065 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6066 | ||
6067 | * objfiles.h (objfile::reset_psymtabs): Update. | |
6068 | * objfiles.c (objfile::objfile): Update. | |
6069 | * psymtab.h (psymtab_storage::obstack): Update. | |
6070 | (psymtab_storage::m_obstack): Use gdb::optional. | |
6071 | (class psymtab_storage): Update comment. Remove objfile | |
6072 | parameter. | |
6073 | * psymtab.c (psymtab_storage::psymtab_storage): Update. | |
6074 | ||
b596a3c7 TT |
6075 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6076 | ||
6077 | * psymtab.h (psymtab_storage::allocate_psymtab): New method. | |
6078 | <free_psymtabs>: Now private. | |
6079 | * psymtab.c (psymtab_storage::allocate_psymtab): Implement. | |
6080 | (allocate_psymtab): Use new method. | |
6081 | ||
a9342b62 TT |
6082 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6083 | ||
6084 | * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies. | |
6085 | * psymtab.h (psymtab_storage::allocate_dependencies): New method. | |
6086 | * mdebugread.c (parse_partial_symbols): Use | |
6087 | allocate_dependencies. | |
6088 | * dwarf2read.c (dwarf2_create_include_psymtab): Use | |
6089 | allocate_dependencies. | |
6090 | (process_psymtab_comp_unit_reader) | |
6091 | (build_type_psymtab_dependencies): Likewise. | |
6092 | * dbxread.c (dbx_end_psymtab): Use allocate_dependencies. | |
6093 | ||
5af70966 TT |
6094 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6095 | ||
6096 | * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to | |
6097 | PSYMBOL_SET_LANGUAGE. | |
6098 | (allocate_psymtab): Allocate psymtab on the psymtab obstack. | |
6099 | ||
5923a04c TT |
6100 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6101 | ||
6102 | * psymtab.h (psymtab_storage::obstack): New method. | |
6103 | <m_obstack>: Rename from obstack; now private. | |
6104 | * psymtab.c (psymtab_storage): Update. | |
6105 | * dwarf2read.c (create_addrmap_from_index) | |
6106 | (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard): | |
6107 | Update. | |
6108 | ||
6d6a12bf TT |
6109 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6110 | ||
6111 | * symfile.c (reread_symbols): Call objfile->reset_psymtabs. | |
6112 | * objfiles.h (objfile::reset_psymtabs): New method. | |
6113 | ||
d320c2b5 TT |
6114 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6115 | ||
6116 | * symmisc.c (print_symbol_bcache_statistics): Update. | |
6117 | (print_objfile_statistics): Update. | |
6118 | * symfile.c (reread_symbols): Update. | |
6119 | * psymtab.h (class psymtab_storage): New. | |
6120 | * psymtab.c (psymtab_storage): New constructor. | |
6121 | (~psymtab_storage): New destructor. | |
6122 | (require_partial_symbols): Update. | |
6123 | (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite. | |
6124 | (find_pc_sect_psymtab, find_pc_sect_psymbol) | |
6125 | (match_partial_symbol, lookup_partial_symbol, dump_psymtab) | |
6126 | (psym_dump, recursively_search_psymtabs, psym_has_symbols) | |
6127 | (psym_find_compunit_symtab_by_address, sort_pst_symbols) | |
6128 | (start_psymtab_common, end_psymtab_common) | |
6129 | (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list) | |
6130 | (allocate_psymtab): Update. | |
6131 | (psymtab_storage::discard_psymtab): Rename from discard_psymtab. | |
6132 | Update. | |
6133 | (dump_psymtab_addrmap, maintenance_print_psymbols) | |
6134 | (maintenance_check_psymtabs): Update. | |
6135 | (class objfile_psymtabs): Move to objfiles.h. | |
6136 | * psympriv.h (discard_psymtab): Now inline. | |
6137 | (psymtab_discarder::psymtab_discarder): Update. | |
6138 | (psymtab_discarder::~psymtab_discarder): Update. | |
6139 | (ALL_OBJFILE_PSYMTABS): Rewrite. | |
6140 | * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap, | |
6141 | free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>: | |
6142 | Remove fields. | |
6143 | <partial_symtabs>: New field. | |
6144 | (class objfile_psymtabs): Move from psymtab.h. Update. | |
6145 | * objfiles.c (objfile::objfile): Initialize partial_symtabs, not | |
6146 | psymbol_cache. | |
6147 | (objfile::~objfile): Don't destroy psymbol_cache. | |
6148 | * mdebugread.c (parse_partial_symbols): Update. | |
6149 | * dwarf2read.c (create_addrmap_from_index) | |
6150 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
6151 | (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard) | |
6152 | (add_partial_subprogram, dwarf2_ranges_read): Update. | |
6153 | * dwarf-index-write.c (write_address_map) | |
6154 | (write_one_signatured_type, recursively_write_psymbols) | |
6155 | (class debug_names, class debug_names, write_psymtabs_to_index): | |
6156 | Update. | |
6157 | ||
1d94a5a3 TT |
6158 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6159 | ||
6160 | * symtab.h (SYMBOL_SET_NAMES): Update. | |
6161 | (symbol_set_names): Update. | |
6162 | (MSYMBOL_SET_NAMES): Update. | |
6163 | * symtab.c (symbol_set_names): Change argument to be an | |
6164 | objfile_per_bfd_storage. | |
6165 | * psymtab.c (add_psymbol_to_bcache): Update. | |
6166 | * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument. | |
6167 | ||
0f14768a TT |
6168 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6169 | ||
6170 | * symtab.c (create_demangled_names_hash): Change argument to be an | |
6171 | objfile_per_bfd_storage. | |
6172 | (symbol_set_names): Update. | |
6173 | ||
6eee24ce TT |
6174 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6175 | ||
6176 | * xcoffread.c (xcoff_initial_scan): Unconditionally call | |
6177 | init_psymbol_list. | |
6178 | * psymtab.c (init_psymbol_list): Do nothing if already called. | |
6179 | * psympriv.h (init_psymbol_list): Add comment. | |
6180 | * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call | |
6181 | init_psymbol_list. | |
6182 | * dbxread.c (dbx_symfile_read): Unconditionally call | |
6183 | init_psymbol_list. | |
6184 | ||
75aedd27 TT |
6185 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6186 | ||
6187 | * xcoffread.c (scan_xcoff_symtab): Update. | |
6188 | * psymtab.c (add_psymbol_to_list): Replace "list" parameter with | |
6189 | "where". | |
6190 | * mdebugread.c (parse_partial_symbols) | |
6191 | (handle_psymbol_enumerators): Update. | |
6192 | * dwarf2read.c (add_partial_symbol, load_partial_dies): Update. | |
6193 | * dbxread.c (read_dbx_symtab): Update. | |
6194 | * psympriv.h (psymbol_placement): New enum. | |
6195 | (add_psymbol_to_list): Update. | |
6196 | ||
939652a5 TT |
6197 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6198 | ||
6199 | * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and | |
6200 | static_psymbols parameters. | |
6201 | (scan_xcoff_symtab): Update. | |
6202 | * psymtab.c (start_psymtab_common): Remove global_psymbols and | |
6203 | static_psymbols parameters. | |
6204 | * psympriv.h (start_psymtab_common): Update. | |
6205 | * mdebugread.c (parse_partial_symbols): Update. | |
6206 | * dwarf2read.c (create_partial_symtab): Update. | |
6207 | * dbxread.c (read_dbx_symtab): Update. | |
6208 | (start_psymtab): Remove global_psymbols and static_psymbols | |
6209 | parameters. | |
6210 | ||
baa62830 TT |
6211 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6212 | ||
6213 | * xcoffread.c (xcoff_end_psymtab): Remove some initializations. | |
6214 | * psymtab.c (allocate_psymtab): Add comment. | |
6215 | * psympriv.h (allocate_psymtab): Add comment. | |
6216 | * dwarf2read.c (dwarf2_create_include_psymtab): Remove some | |
6217 | initializations. | |
6218 | * dbxread.c (dbx_end_psymtab): Remove some initializations. | |
6219 | ||
0e8f53ba TT |
6220 | 2019-01-10 Tom Tromey <tom@tromey.com> |
6221 | ||
6222 | * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs): | |
6223 | Don't declare. | |
6224 | * mipsread.c: Include mdebugread.h. | |
6225 | * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs): | |
6226 | Declare. | |
6227 | * elfread.c: Include mdebugread.h. | |
6228 | ||
b22a7c6a TT |
6229 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6230 | ||
6231 | * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs. | |
6232 | * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs. | |
6233 | * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove. | |
6234 | (psym_map_symtabs_matching_filename, find_pc_sect_psymtab) | |
6235 | (psym_lookup_symbol, psym_find_last_source_symtab) | |
6236 | (psym_forget_cached_source_info, psym_print_stats) | |
6237 | (psym_expand_symtabs_for_function, psym_expand_all_symtabs) | |
6238 | (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames) | |
6239 | (psym_map_matching_symbols, psym_expand_symtabs_matching) | |
6240 | (psym_find_compunit_symtab_by_address) | |
6241 | (maintenance_print_psymbols, maintenance_info_psymtabs) | |
6242 | (maintenance_check_psymtabs): Use ranged for. | |
6243 | * psymtab.h (class objfile_psymtabs): New. | |
6244 | (require_partial_symbols): Return objfile_psymtabs. | |
6245 | * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove. | |
6246 | ||
3b9d3ac2 TT |
6247 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6248 | ||
6249 | * symfile.c (overlay_invalidate_all, find_pc_overlay) | |
6250 | (find_pc_mapped_section, list_overlays_command) | |
6251 | (map_overlay_command, unmap_overlay_command) | |
6252 | (simple_overlay_update): Use all_objfiles. | |
6253 | * spu-tdep.c (spu_overlay_update): Use all_objfiles. | |
6254 | * printcmd.c (info_symbol_command): Use all_objfiles. | |
6255 | * objfiles.h (ALL_OBJSECTIONS): Remove. | |
6256 | * maint.c (maintenance_translate_address): Use all_objfiles. | |
6257 | * gcore.c (gcore_create_callback): Use all_objfiles. | |
6258 | (objfile_find_memory_regions): Likewise. | |
6259 | ||
8b31193a TT |
6260 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6261 | ||
6262 | * symtab.c (find_line_symtab, info_sources_command) | |
6263 | (make_source_files_completion_list): Use objfile_compunits. | |
6264 | * source.c (select_source_symtab): Use objfile_compunits. | |
6265 | * objfiles.h (struct objfile): Update comment. | |
6266 | (ALL_OBJFILES): Remove. | |
6267 | (ALL_FILETABS): Remove. | |
6268 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use | |
6269 | objfile_compunits. | |
6270 | ||
d5da8b3c TT |
6271 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6272 | ||
6273 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
6274 | (maintenance_print_symbols): Use compunit_filetabs. | |
6275 | * source.c (forget_cached_source_info_for_objfile): Use | |
6276 | compunit_filetabs. | |
6277 | * objfiles.h (ALL_OBJFILE_FILETABS): Remove. | |
6278 | (ALL_FILETABS): Use compunit_filetabs. | |
6279 | * objfiles.c (objfile_relocate1): Use compunit_filetabs. | |
6280 | * coffread.c (coff_symtab_read): Use compunit_filetabs. | |
6281 | ||
5accd1a0 TT |
6282 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6283 | ||
6284 | * symtab.h (ALL_COMPUNIT_FILETABS): Remove. | |
6285 | (compunit_filetabs): New. | |
6286 | * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use | |
6287 | compunit_filetabs. | |
6288 | (info_sources_command, make_source_files_completion_list): Remove | |
6289 | declaration. | |
6290 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
6291 | (maintenance_print_symbols): Remove declaration. | |
6292 | (maintenance_info_symtabs): Use compunit_filetabs. | |
6293 | (maintenance_info_line_tables): Likewise. | |
6294 | * source.c (select_source_symtab): Change local variable name. | |
6295 | (forget_cached_source_info_for_objfile): Remove declaration. | |
6296 | * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs. | |
6297 | * objfiles.c (objfile_relocate1): Remove declaration. | |
6298 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove | |
6299 | declaration. | |
6300 | * maint.c (count_symtabs_and_blocks): Use compunit_filetabs. | |
6301 | * coffread.c (coff_symtab_read): Remove declaration. | |
6302 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use | |
6303 | compunit_filetabs. | |
6304 | ||
d8aeb77f TT |
6305 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6306 | ||
6307 | * symtab.c (lookup_objfile_from_block) | |
6308 | (find_pc_sect_compunit_symtab, search_symbols) | |
6309 | (default_collect_symbol_completion_matches_break_on): Use | |
6310 | objfile_compunits. | |
6311 | * objfiles.h (ALL_COMPUNITS): Remove. | |
6312 | * maint.c (count_symtabs_and_blocks): Use objfile_compunits. | |
6313 | * cp-support.c (add_symbol_overload_list_qualified): Use | |
6314 | objfile_compunits. | |
6315 | * ada-lang.c (ada_collect_symbol_completion_matches) | |
6316 | (ada_add_global_exceptions): Use objfile_compunits. | |
6317 | ||
592553c4 TT |
6318 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6319 | ||
6320 | * source.c (select_source_symtab) | |
6321 | (forget_cached_source_info_for_objfile): Remove declaration. | |
6322 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove | |
6323 | declaration. | |
6324 | * maint.c (count_symtabs_and_blocks): Remove declaration. | |
6325 | * cp-support.c (add_symbol_overload_list_qualified): Remove | |
6326 | declaration. | |
6327 | * coffread.c (coff_symtab_read): Remove declaration. | |
6328 | * symtab.c (lookup_symbol_in_objfile_symtabs) | |
6329 | (basic_lookup_transparent_type_1): Use objfile_compunits. | |
6330 | (lookup_objfile_from_block, find_pc_sect_compunit_symtab) | |
6331 | (info_sources_command, search_symbols) | |
6332 | (default_collect_symbol_completion_matches_break_on) | |
6333 | (make_source_files_completion_list): Remove declaration. | |
6334 | * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits. | |
6335 | (ada_collect_symbol_completion_matches) | |
6336 | (ada_add_global_exceptions): Remove declaration. | |
6337 | * linespec.c (iterate_over_all_matching_symtabs): Use | |
6338 | objfile_compunits. | |
6339 | * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove. | |
6340 | (class objfile_compunits): New. | |
6341 | (ALL_COMPUNITS): Use objfile_compunits. | |
6342 | * symmisc.c (print_objfile_statistics, maintenance_info_symtabs) | |
6343 | (maintenance_check_symtabs, maintenance_info_line_tables): Use | |
6344 | objfile_compunits. | |
6345 | * objfiles.c (objfile_relocate1): Use objfile_compunits. | |
6346 | ||
5325b9bf TT |
6347 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6348 | ||
6349 | * symtab.c (search_symbols) | |
6350 | (default_collect_symbol_completion_matches_break_on): Use | |
6351 | objfile_msymbols. | |
6352 | * ada-lang.c (ada_lookup_simple_minsym) | |
6353 | (ada_collect_symbol_completion_matches): Use objfile_msymbols. | |
6354 | * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols. | |
6355 | * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use | |
6356 | objfile_msymbols. | |
6357 | * coffread.c (coff_symfile_read): Use objfile_msymbols. | |
6358 | * symmisc.c (dump_msymbols): Use objfile_msymbols. | |
6359 | * objc-lang.c (find_methods): Use objfile_msymbols. | |
6360 | (info_selectors_command, info_classes_command): Likewise. | |
6361 | * stabsread.c (scan_file_globals): Use objfile_msymbols. | |
6362 | * objfiles.h (class objfile_msymbols): New. | |
6363 | (ALL_OBJFILE_MSYMBOLS): Remove. | |
6364 | (ALL_MSYMBOLS): Remove. | |
6365 | ||
cac85af2 TT |
6366 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6367 | ||
6368 | * common/next-iterator.h (next_adapter): Add Iterator template | |
6369 | parameter. | |
6370 | * objfiles.h (ALL_OBJFILES_SAFE): Remove. | |
6371 | (class all_objfiles_safe): New. | |
6372 | * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe. | |
6373 | * objfiles.c (put_objfile_before): Update comment. | |
6374 | (add_separate_debug_objfile): Likewise. | |
6375 | (free_all_objfiles): Use all_objfiles_safe. | |
6376 | (objfile_purge_solibs): Likewise. | |
6377 | ||
aed57c53 TT |
6378 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6379 | ||
6380 | * symtab.c (iterate_over_symtabs, matching_obj_sections) | |
6381 | (expand_symtab_containing_pc, lookup_static_symbol) | |
6382 | (basic_lookup_transparent_type, find_pc_sect_compunit_symtab) | |
6383 | (find_symbol_at_address, find_line_symtab, find_main_name): Use | |
6384 | all_objfiles. | |
6385 | * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles. | |
6386 | * breakpoint.c (create_overlay_event_breakpoint) | |
6387 | (create_longjmp_master_breakpoint) | |
6388 | (create_std_terminate_master_breakpoint) | |
6389 | (create_exception_master_breakpoint): Use all_objfiles. | |
6390 | * linux-thread-db.c (try_thread_db_load_from_pdir) | |
6391 | (has_libpthread): Use all_objfiles. | |
6392 | * ada-lang.c (add_nonlocal_symbols): Use all_objfiles. | |
6393 | * linespec.c (iterate_over_all_matching_symtabs) | |
6394 | (search_minsyms_for_name): Use all_objfiles. | |
6395 | * maint.c (maintenance_info_sections): Use all_objfiles. | |
6396 | * main.c (captured_main_1): Use all_objfiles. | |
6397 | * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles. | |
6398 | * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles. | |
6399 | * guile/scm-pretty-print.c | |
6400 | (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles. | |
6401 | * solib-spu.c (append_ocl_sos): Use all_objfiles. | |
6402 | * symmisc.c (maintenance_print_symbols): Use all_objfiles. | |
6403 | (maintenance_print_msymbols): Use all_objfiles. | |
6404 | * source.c (select_source_symtab): Use all_objfiles. | |
6405 | * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles. | |
6406 | * symfile.c (remove_symbol_file_command) | |
6407 | (expand_symtabs_matching, map_symbol_filenames): Use | |
6408 | all_objfiles. | |
6409 | * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use | |
6410 | all_objfiles. | |
6411 | * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles. | |
6412 | * objc-lang.c (find_methods): Use all_objfiles. | |
6413 | * objfiles.c (have_partial_symbols, have_full_symbols) | |
6414 | (have_minimal_symbols, qsort_cmp) | |
6415 | (default_iterate_over_objfiles_in_search_order): Use | |
6416 | all_objfiles. | |
6417 | * hppa-tdep.c (find_unwind_entry): Use all_objfiles. | |
6418 | * psymtab.c (maintenance_print_psymbols): Use all_objfiles. | |
6419 | (maintenance_check_psymtabs): Use all_objfiles. | |
6420 | (ALL_PSYMTABS): Remove. | |
6421 | * compile/compile-object-run.c (do_module_cleanup): Use | |
6422 | all_objfiles. | |
6423 | * blockframe.c (find_pc_partial_function): Use all_objfiles. | |
6424 | * cp-support.c (add_symbol_overload_list_qualified): Use | |
6425 | all_objfiles. | |
6426 | * windows-tdep.c (windows_iterate_over_objfiles_in_search_order): | |
6427 | Use all_objfiles. | |
6428 | * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles. | |
6429 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use | |
6430 | all_objfiles. | |
6431 | * python/py-objfile.c (objfpy_lookup_objfile_by_name) | |
6432 | (objfpy_lookup_objfile_by_build_id): Use all_objfiles. | |
6433 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
6434 | Uses all_objfiles. | |
6435 | * solib.c (solib_read_symbols): Use all_objfiles | |
6436 | ||
99d89cde TT |
6437 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6438 | ||
6439 | * probe.c (parse_probes_in_pspace): Use all_objfiles. | |
6440 | * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use | |
6441 | all_objfiles. | |
6442 | * objfiles.h (ALL_PSPACE_OBJFILES): Remove. | |
6443 | * symmisc.c (print_symbol_bcache_statistics) | |
6444 | (print_objfile_statistics, maintenance_print_objfiles) | |
6445 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
6446 | (maintenance_expand_symtabs, maintenance_info_line_tables): Use | |
6447 | all_objfiles. | |
6448 | * source.c (forget_cached_source_info): Use all_objfiles. | |
6449 | * symfile-debug.c (set_debug_symfile): Use all_objfiles. | |
6450 | * elfread.c (elf_gnu_ifunc_resolve_by_cache) | |
6451 | (elf_gnu_ifunc_resolve_by_got): Use all_objfiles. | |
6452 | * objfiles.c (update_section_map): Use all_objfiles. | |
6453 | (shared_objfile_contains_address_p): Likewise. | |
6454 | * psymtab.c (maintenance_info_psymtabs): Use all_objfiles. | |
6455 | * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles. | |
6456 | ||
21708325 TT |
6457 | 2019-01-09 Tom Tromey <tom@tromey.com> |
6458 | ||
6459 | * common/next-iterator.h: New file. | |
6460 | * objfiles.h (class all_objfiles): New. | |
6461 | (struct objfile_iterator): New. | |
6462 | ||
669e09f6 PW |
6463 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6464 | ||
6465 | * NEWS: Move the description of the changed "frame", "select-frame", | |
6466 | and "info frame" commands to the Changed commands section. | |
6467 | ||
041be526 SM |
6468 | 2019-01-09 Simon Marchi <simon.marchi@ericsson.com> |
6469 | ||
6470 | * gdbtypes.c (check_stub_method_group): Remove handling of old | |
6471 | mangling schemes. | |
6472 | * linespec.c (find_methods): Likewise. | |
6473 | * stabsread.c (read_member_functions): Likewise. | |
6474 | * valops.c (search_struct_method): Likewise. | |
6475 | (value_struct_elt_for_reference): Likewise. | |
6476 | * NEWS: Mention this change. | |
6477 | ||
0e2a2133 AB |
6478 | 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
6479 | ||
6480 | * cli/cli-cmds.c (list_command): Pass a source_lines_range to | |
6481 | print_source_lines. | |
6482 | * source.c (print_source_lines_base): Update line number check. | |
6483 | (print_source_lines): New function. | |
6484 | (source_lines_range::source_lines_range): New function. | |
6485 | * source.h (class source_lines_range): New class. | |
6486 | (print_source_lines): New declaration. | |
6487 | ||
1055a3b4 PW |
6488 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6489 | ||
6490 | * linespec.c (linespec_state_destructor): Free self->canonical_names. | |
6491 | ||
cfeadda5 TT |
6492 | 2019-01-08 Tom Tromey <tom@tromey.com> |
6493 | Simon Marchi <simon.marchi@ericsson.com> | |
6494 | ||
6495 | PR gdb/24060 | |
6496 | * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE. | |
6497 | * ada-lex.l (DOLLAR_VARIABLE): Likewise. | |
6498 | * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
6499 | * f-exp.y (DOLLAR_VARIABLE): Likewise. | |
6500 | * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR. | |
6501 | * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
6502 | ||
583068ca AB |
6503 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
6504 | ||
6505 | * source.c (select_source_symtab): Move header comment to | |
6506 | declaration in source.h. | |
6507 | (forget_cached_source_info_for_objfile): Likewise. | |
6508 | (forget_cached_source_info): Likewise. | |
6509 | (identify_source_line): Likewise. | |
6510 | * source.h (identify_source_line): Move declaration from symtab.h | |
6511 | and add comment from source.c | |
6512 | (print_source_lines): Likewise. | |
6513 | (forget_cached_source_info_for_objfile): Likewise. | |
6514 | (forget_cached_source_info): Likewise. | |
6515 | (select_source_symtab): Likewise. | |
6516 | (enum print_source_lines_flag): Move definition from symtab.h. | |
6517 | * symtab.h (identify_source_line): Move declaration to source.h. | |
6518 | (print_source_lines): Likewise. | |
6519 | (forget_cached_source_info_for_objfile): Likewise. | |
6520 | (forget_cached_source_info): Likewise. | |
6521 | (select_source_symtab): Likewise. | |
6522 | (enum print_source_lines_flag): Move definition to source.h. | |
6523 | * tui/tui-hooks.c: Add 'source.h' include. | |
6524 | ||
ec98a4ad AB |
6525 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
6526 | ||
6527 | * source.c (print_source_lines_base): Handle requests to print | |
6528 | reverse line number sequences, and guard against empty lines | |
6529 | string. | |
6530 | ||
62ea19c1 AB |
6531 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
6532 | ||
6533 | * source.c (print_source_lines_base): Fix skip of '\r' if next | |
6534 | character is '\n'. | |
6535 | ||
9d30e1fd TT |
6536 | 2019-01-06 Tom Tromey <tom@tromey.com> |
6537 | ||
6538 | * c-exp.y (struct c_parse_state) <macro_original_text, | |
6539 | expansion_obstack>: New member. | |
6540 | (macro_original_text, expansion_obstack): Remove globals. | |
6541 | (scan_macro_expansion, scanning_macro_expansion) | |
6542 | (finished_macro_expansion): Update. | |
6543 | (scan_macro_cleanup): Remove. | |
6544 | (yylex, c_parse): Update. | |
6545 | ||
c65bac38 TT |
6546 | 2019-01-06 Tom Tromey <tom@tromey.com> |
6547 | ||
6548 | * c-exp.y (struct c_parse_state) <strings>: New member. | |
6549 | (operator_stoken): Update. | |
6550 | ||
02e12e38 TT |
6551 | 2019-01-06 Tom Tromey <tom@tromey.com> |
6552 | ||
6553 | * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC. | |
6554 | (union type_stack_elt) <typelist_val>: Now a pointer to | |
6555 | std::vector. | |
6556 | (type_stack_cleanup): Don't declare. | |
6557 | (push_typelist): Update. | |
6558 | * parse.c (pop_typelist): Return a std::vector. | |
6559 | (push_typelist): Take a std::vector. | |
6560 | (follow_types): Update. Do not free args. | |
6561 | (type_stack_cleanup): Remove. | |
6562 | * c-exp.y (struct c_parse_state): New. | |
6563 | (cpstate): New global. | |
6564 | (type_aggregate_p, exp, ptr_operator, parameter_typelist) | |
6565 | (nonempty_typelist): Update. | |
6566 | (func_mod): Create a new vector. | |
6567 | (c_parse): Create a c_parse_state. | |
6568 | (check_parameter_typelist): Do not delete params. | |
6569 | (function_method): Update. Do not delete type_list. | |
6570 | ||
f097f5ad TT |
6571 | 2019-01-06 Tom Tromey <tom@tromey.com> |
6572 | ||
6573 | PR gdb/28155: | |
6574 | * python/py-finishbreakpoint.c (bpfinishpy_init): Use | |
6575 | check_typedef. | |
6576 | * infcmd.c (finish_command_fsm_should_stop): Use check_typedef. | |
6577 | (print_return_value): Likewise. | |
6578 | ||
d2adf9f1 TT |
6579 | 2019-01-05 Tom Tromey <tom@tromey.com> |
6580 | ||
6581 | * contrib/cleanup_check.py: Remove. | |
6582 | * contrib/gcc-with-excheck: Remove. | |
6583 | * contrib/exsummary.py: Remove. | |
6584 | * contrib/excheck.py: Remove. | |
6585 | ||
2eab46b1 JB |
6586 | 2019-01-05 Joel Brobecker <brobecker@adacore.com> |
6587 | ||
6588 | * thread.c (delete_thread_1): Add gdb_assert that THR is not | |
6589 | NULL. Initialize tpprev to NULL instead of assigning it | |
6590 | to NULL on the next statement. | |
6591 | * windows-nat.c (windows_delete_thread): Remove check for | |
6592 | main_thread_id before printing thread exit notifications. | |
6593 | (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>: | |
6594 | Remove thread ID check against main_thread_id. | |
6595 | <CREATE_PROCESS_DEBUG_EVENT>: Remove call to | |
6596 | windows_delete_thread. | |
6597 | <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread. | |
6598 | ||
48c5e7e2 TT |
6599 | 2019-01-04 Tom Tromey <tom@tromey.com> |
6600 | ||
6601 | * compile/compile.c (_initialize_compile): Use upper case for | |
6602 | metasyntactic variables. | |
6603 | * symmisc.c (_initialize_symmisc): Use upper case for | |
6604 | metasyntactic variables. | |
6605 | * psymtab.c (_initialize_psymtab): Use upper case for | |
6606 | metasyntactic variables. | |
6607 | * demangle.c (demangle_command): Use upper case for metasyntactic | |
6608 | variables. | |
6609 | (_initialize_demangler): Likewise. | |
6610 | * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic | |
6611 | variables. | |
6612 | ||
986041cd TT |
6613 | 2019-01-03 Tom Tromey <tom@tromey.com> |
6614 | ||
6615 | * tui/tui-source.c (tui_set_source_content): Use xstrdup. | |
6616 | ||
7c711119 TT |
6617 | 2019-01-03 Tom Tromey <tom@tromey.com> |
6618 | ||
6619 | * python/py-symtab.c (salpy_str): Update. | |
6620 | (struct salpy_sal_object) <symtab>: Now a PyObject. | |
6621 | (salpy_dealloc): Update. | |
6622 | (del_objfile_sal): Use gdbpy_ref. | |
6623 | ||
1b20edf0 TT |
6624 | 2019-01-03 Tom Tromey <tom@tromey.com> |
6625 | ||
6626 | * python/py-type.c (convert_field): Use new_reference. Return | |
6627 | gdbpy_ref. | |
6628 | (make_fielditem): Return gdbpy_ref. | |
6629 | (typy_fields): Update. | |
6630 | (typy_getitem): Update. | |
6631 | (field_name): Return gdbpy_ref. Use new_reference. | |
6632 | (typy_iterator_iternext): Update. | |
6633 | ||
ea41325b TT |
6634 | 2019-01-03 Tom Tromey <tom@tromey.com> |
6635 | ||
6636 | * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE. | |
6637 | ||
2a3c71d6 TT |
6638 | 2019-01-03 Tom Tromey <tom@tromey.com> |
6639 | ||
6640 | * python/py-value.c (valpy_dealloc): Use Py_XDECREF. | |
6641 | * python/py-type.c (typy_fields_items): Use gdbpy_ref. | |
6642 | * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref. | |
6643 | (pspy_set_frame_filters, pspy_set_frame_unwinders) | |
6644 | (pspy_set_type_printers): Likewise. | |
6645 | * python/py-function.c (fnpy_init): Use gdbpy_ref. | |
6646 | * python/py-cmd.c (cmdpy_init): Use gdbpy_ref. | |
6647 | * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref. | |
6648 | (objfpy_set_frame_filters, objfpy_set_frame_unwinders) | |
6649 | (objfpy_set_type_printers): Likewise. | |
6650 | ||
5c329e6a TT |
6651 | 2019-01-03 Tom Tromey <tom@tromey.com> |
6652 | ||
6653 | * python/python.c (gdbpy_enter, ~gdbpy_enter): Update. | |
6654 | (gdbpy_print_stack): Use gdbpy_err_fetch. | |
6655 | * python/python-internal.h (class gdbpy_err_fetch): New class. | |
6656 | (class gdbpy_enter) <m_error_type, m_error_value, | |
6657 | m_error_traceback>: Remove. | |
6658 | <m_error>: New member. | |
6659 | (gdbpy_exception_to_string): Don't declare. | |
6660 | * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch. | |
6661 | * python/py-value.c (convert_value_from_python): Use | |
6662 | gdbpy_err_fetch. | |
6663 | * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from | |
6664 | gdbpy_exception_to_string. | |
6665 | (gdbpy_handle_exception): Use gdbpy_err_fetch. | |
6666 | * python/py-prettyprint.c (print_stack_unless_memory_error): Use | |
6667 | gdbpy_err_fetch. | |
6668 | ||
169bb27b AB |
6669 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
6670 | ||
6671 | * linux-nat.c (delete_lwp_cleanup): Delete. | |
6672 | (struct lwp_deleter): New struct. | |
6673 | (lwp_info_up): New typedef. | |
6674 | (linux_nat_target::follow_fork): Delete cleanup, and make use of | |
6675 | lwp_info_up. | |
6676 | ||
a07c8880 AB |
6677 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
6678 | ||
6679 | * linux-fork.c (class scoped_switch_fork_info): New class. | |
6680 | (inferior_call_waitpid): Update to use scoped_switch_fork_info. | |
6681 | ||
26089c49 AB |
6682 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
6683 | ||
6684 | * valops.c (find_overload_match): Remove use of null_cleanup, and | |
6685 | calls to do_cleanups. | |
6686 | ||
06d3e5b0 AB |
6687 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
6688 | ||
6689 | * compile/compile-cplus-types.c | |
6690 | (compile_cplus_instance::decl_name): Handle changes to | |
6691 | cp_func_name. | |
6692 | * cp-support.c (cp_func_name): Update header comment, update | |
6693 | return type. | |
6694 | * cp-support.h (cp_func_name): Update return type in declaration. | |
6695 | * valops.c (find_overload_match): Move temp_func local to top | |
6696 | level of function and change its type. Use temp_func to hold and | |
6697 | delete temporary string obtained from cp_func_name. | |
6698 | ||
66644cd3 AB |
6699 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
6700 | ||
6701 | * remote.c (remote_target::remote_check_symbols): Convert `msg` to | |
6702 | gdb::char_vector, remove cleanup, and update uses of `msg`. | |
6703 | ||
592d8c0a JW |
6704 | 2019-01-03 Jim Wilson <jimw@sifive.com> |
6705 | ||
6706 | * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8. | |
6707 | ||
c55d06ec TT |
6708 | 2019-01-02 Tom Tromey <tom@tromey.com> |
6709 | ||
6710 | * xml-tdesc.c (xml_cache): Hold a target_desc_up. | |
6711 | (tdesc_parse_xml): Remove cleanups. | |
6712 | * target-descriptions.h (make_cleanup_free_target_description): | |
6713 | Don't declare. | |
6714 | (target_desc_deleter): New struct. | |
6715 | (target_desc_up): New typedef. | |
6716 | * target-descriptions.c (target_desc_deleter::operator()): Rename | |
6717 | from free_target_description. | |
6718 | (make_cleanup_free_target_description): Remove. | |
6719 | ||
3a6ae42d TT |
6720 | 2019-01-02 Tom Tromey <tom@tromey.com> |
6721 | ||
6722 | * linespec.c (struct linespec_parser): Rename from ls_parser. Add | |
6723 | constructor, destructor. | |
6724 | (linespec_parser): Remove typedef. | |
6725 | (~linespec_parser): Rename from linespec_parser_delete. | |
6726 | (linespec_lex_to_end, linespec_complete_label) | |
6727 | (linespec_complete): Update. | |
6728 | (decode_line_full): Remove cleanups. | |
6729 | (decode_line_1): Update. | |
6730 | ||
61fd3e73 TT |
6731 | 2019-01-02 Tom Tromey <tom@tromey.com> |
6732 | ||
6733 | * python/python-internal.h (inferior_to_inferior_object): Change | |
6734 | return type. | |
6735 | * python/py-exitedevent.c (create_exited_event_object): Update. | |
6736 | * python/py-inferior.c (inferior_to_inferior_object): Return | |
6737 | gdbpy_ref. | |
6738 | (python_new_inferior, python_inferior_deleted) | |
6739 | (thread_to_thread_object, delete_thread_object) | |
6740 | (build_inferior_list, gdbpy_selected_inferior): Update. | |
6741 | * python/py-infthread.c (create_thread_object): Update. Also fail | |
6742 | if inferior_to_inferior_object fails. | |
6743 | ||
d20172fc SM |
6744 | 2019-01-02 Simon Marchi <simon.marchi@ericsson.com> |
6745 | ||
6746 | * inferior.h (class inferior) <displaced_step_state>: New field. | |
6747 | * infrun.h (struct displaced_step_state): Move here from | |
6748 | infrun.c. Initialize fields, add constructor. | |
6749 | <inf>: Remove field. | |
6750 | <reset>: New method. | |
6751 | * infrun.c (struct displaced_step_inferior_state): Move to | |
6752 | infrun.h. | |
6753 | (displaced_step_inferior_states): Remove. | |
6754 | (get_displaced_stepping_state): Adust. | |
6755 | (displaced_step_in_progress_any_inferior): Adjust. | |
6756 | (displaced_step_in_progress_thread): Adjust. | |
6757 | (displaced_step_in_progress): Adjust. | |
6758 | (add_displaced_stepping_state): Remove. | |
6759 | (get_displaced_step_closure_by_addr): Adjust. | |
6760 | (remove_displaced_stepping_state): Remove. | |
6761 | (infrun_inferior_exit): Call displaced_step_state.reset. | |
6762 | (use_displaced_stepping): Don't check for NULL. | |
6763 | (displaced_step_prepare_throw): Call | |
6764 | get_displaced_stepping_state. | |
6765 | (displaced_step_fixup): Don't check for NULL. | |
6766 | (prepare_for_detach): Don't check for NULL. | |
6767 | ||
e3319240 PW |
6768 | 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6769 | ||
6770 | * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm | |
6771 | in case of call that did not complete. | |
6772 | ||
5d36dfb9 AU |
6773 | 2019-01-02 Andrey Utkin <autkin@undo.io> |
6774 | ||
6775 | * symfile.c (find_separate_debug_file): Fix search of debug files for | |
6776 | remote debuggee. | |
6777 | ||
8833fbf0 TT |
6778 | 2019-01-02 Tom Tromey <tom@tromey.com> |
6779 | ||
6780 | * python/py-inferior.c (gdbpy_initialize_inferior): Fix | |
6781 | indentation. | |
6782 | * python/py-frame.c (frapy_older): Remove cast. | |
6783 | (frapy_newer): Likewise. | |
6784 | * python/py-breakpoint.c (local_setattro): Remove cast. | |
6785 | * python/py-arch.c (archpy_name): Remove local variable. | |
6786 | * python/py-type.c (gdbpy_lookup_type): Remove cast. | |
6787 | ||
4ada3dfd JB |
6788 | 2019-01-02 Joel Brobecker <brobecker@adacore.com> |
6789 | ||
6790 | * unittests/basic_string_view/element_access/char/empty.cc: | |
6791 | Fix year range in copyright header. | |
6792 | ||
113b7b81 AB |
6793 | 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com> |
6794 | ||
6795 | * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>: | |
6796 | Delete. | |
6797 | <operator==>: Update with for removed field. | |
6798 | <hash>: Likewise. | |
6799 | * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to... | |
6800 | <isa_features>: ...this. | |
6801 | <abi_features>: New field. | |
6802 | (riscv_isa_flen): Update comment. | |
6803 | (riscv_abi_xlen): New declaration. | |
6804 | (riscv_abi_flen): New declaration. | |
6805 | * riscv-tdep.c (riscv_isa_xlen): Update to get answer from | |
6806 | isa_features. | |
6807 | (riscv_abi_xlen): New function. | |
6808 | (riscv_isa_flen): Update to get answer from isa_features. | |
6809 | (riscv_abi_flen): New function. | |
6810 | (riscv_has_fp_abi): Update to get answer from abi_features. | |
6811 | (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa | |
6812 | xlen and flen. | |
6813 | (riscv_call_info) <xlen, flen>: Update comment. | |
6814 | (riscv_call_arg_struct): Remove invalid assertions | |
6815 | (riscv_features_from_gdbarch_info): Update now hw_float_abi field | |
6816 | is removed. | |
6817 | (riscv_gdbarch_init): Gather isa features and abi features | |
6818 | separately, ensure both match on the gdbarch when reusing an old | |
6819 | gdbarch. Relax an error check to allow 32-bit abi float to run on | |
6820 | a target with 64-bit float hardware. | |
6821 | ||
b18ca514 PW |
6822 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6823 | ||
6824 | * source.c (search_command_helper): Stop reverse search | |
6825 | when line 1 has been searched. | |
6826 | ||
ec70d8db PW |
6827 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6828 | ||
6829 | * record-full.c (record_full_base_target::close): Rewrite | |
6830 | record_full_core_buf_list free logic. | |
6831 | ||
5b38f9c1 PW |
6832 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6833 | ||
6834 | * break-catch-syscall.c (print_one_catch_syscall): xfree | |
6835 | the last text. | |
6836 | ||
66d91b39 JB |
6837 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
6838 | ||
6839 | * top.c (print_gdb_version): Update Copyright year in version | |
6840 | message. | |
6841 | ||
42a4f53d JB |
6842 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
6843 | ||
6844 | Update copyright year range in all GDB files. | |
6845 | ||
7e955d83 | 6846 | 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com> |
2139e8dc | 6847 | |
5bbd631d | 6848 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018. |
2139e8dc | 6849 | |
5bbd631d | 6850 | For older changes see ChangeLog-2018. |
c906108c SS |
6851 | \f |
6852 | Local Variables: | |
6853 | mode: change-log | |
6854 | left-margin: 8 | |
6855 | fill-column: 74 | |
6856 | version-control: never | |
57da7796 | 6857 | coding: utf-8 |
c906108c | 6858 | End: |
5bbd631d | 6859 |