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