Add psymtab_storage::allocate_dependencies
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a9342b62
TT
12019-01-10 Tom Tromey <tom@tromey.com>
2
3 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
4 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
5 * mdebugread.c (parse_partial_symbols): Use
6 allocate_dependencies.
7 * dwarf2read.c (dwarf2_create_include_psymtab): Use
8 allocate_dependencies.
9 (process_psymtab_comp_unit_reader)
10 (build_type_psymtab_dependencies): Likewise.
11 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12
5af70966
TT
132019-01-10 Tom Tromey <tom@tromey.com>
14
15 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16 PSYMBOL_SET_LANGUAGE.
17 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
18
5923a04c
TT
192019-01-10 Tom Tromey <tom@tromey.com>
20
21 * psymtab.h (psymtab_storage::obstack): New method.
22 <m_obstack>: Rename from obstack; now private.
23 * psymtab.c (psymtab_storage): Update.
24 * dwarf2read.c (create_addrmap_from_index)
25 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
26 Update.
27
6d6a12bf
TT
282019-01-10 Tom Tromey <tom@tromey.com>
29
30 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
31 * objfiles.h (objfile::reset_psymtabs): New method.
32
d320c2b5
TT
332019-01-10 Tom Tromey <tom@tromey.com>
34
35 * symmisc.c (print_symbol_bcache_statistics): Update.
36 (print_objfile_statistics): Update.
37 * symfile.c (reread_symbols): Update.
38 * psymtab.h (class psymtab_storage): New.
39 * psymtab.c (psymtab_storage): New constructor.
40 (~psymtab_storage): New destructor.
41 (require_partial_symbols): Update.
42 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
43 (find_pc_sect_psymtab, find_pc_sect_psymbol)
44 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
45 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
46 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
47 (start_psymtab_common, end_psymtab_common)
48 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
49 (allocate_psymtab): Update.
50 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
51 Update.
52 (dump_psymtab_addrmap, maintenance_print_psymbols)
53 (maintenance_check_psymtabs): Update.
54 (class objfile_psymtabs): Move to objfiles.h.
55 * psympriv.h (discard_psymtab): Now inline.
56 (psymtab_discarder::psymtab_discarder): Update.
57 (psymtab_discarder::~psymtab_discarder): Update.
58 (ALL_OBJFILE_PSYMTABS): Rewrite.
59 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
60 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
61 Remove fields.
62 <partial_symtabs>: New field.
63 (class objfile_psymtabs): Move from psymtab.h. Update.
64 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
65 psymbol_cache.
66 (objfile::~objfile): Don't destroy psymbol_cache.
67 * mdebugread.c (parse_partial_symbols): Update.
68 * dwarf2read.c (create_addrmap_from_index)
69 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
70 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
71 (add_partial_subprogram, dwarf2_ranges_read): Update.
72 * dwarf-index-write.c (write_address_map)
73 (write_one_signatured_type, recursively_write_psymbols)
74 (class debug_names, class debug_names, write_psymtabs_to_index):
75 Update.
76
1d94a5a3
TT
772019-01-10 Tom Tromey <tom@tromey.com>
78
79 * symtab.h (SYMBOL_SET_NAMES): Update.
80 (symbol_set_names): Update.
81 (MSYMBOL_SET_NAMES): Update.
82 * symtab.c (symbol_set_names): Change argument to be an
83 objfile_per_bfd_storage.
84 * psymtab.c (add_psymbol_to_bcache): Update.
85 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
86
0f14768a
TT
872019-01-10 Tom Tromey <tom@tromey.com>
88
89 * symtab.c (create_demangled_names_hash): Change argument to be an
90 objfile_per_bfd_storage.
91 (symbol_set_names): Update.
92
6eee24ce
TT
932019-01-10 Tom Tromey <tom@tromey.com>
94
95 * xcoffread.c (xcoff_initial_scan): Unconditionally call
96 init_psymbol_list.
97 * psymtab.c (init_psymbol_list): Do nothing if already called.
98 * psympriv.h (init_psymbol_list): Add comment.
99 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
100 init_psymbol_list.
101 * dbxread.c (dbx_symfile_read): Unconditionally call
102 init_psymbol_list.
103
75aedd27
TT
1042019-01-10 Tom Tromey <tom@tromey.com>
105
106 * xcoffread.c (scan_xcoff_symtab): Update.
107 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
108 "where".
109 * mdebugread.c (parse_partial_symbols)
110 (handle_psymbol_enumerators): Update.
111 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
112 * dbxread.c (read_dbx_symtab): Update.
113 * psympriv.h (psymbol_placement): New enum.
114 (add_psymbol_to_list): Update.
115
939652a5
TT
1162019-01-10 Tom Tromey <tom@tromey.com>
117
118 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
119 static_psymbols parameters.
120 (scan_xcoff_symtab): Update.
121 * psymtab.c (start_psymtab_common): Remove global_psymbols and
122 static_psymbols parameters.
123 * psympriv.h (start_psymtab_common): Update.
124 * mdebugread.c (parse_partial_symbols): Update.
125 * dwarf2read.c (create_partial_symtab): Update.
126 * dbxread.c (read_dbx_symtab): Update.
127 (start_psymtab): Remove global_psymbols and static_psymbols
128 parameters.
129
baa62830
TT
1302019-01-10 Tom Tromey <tom@tromey.com>
131
132 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
133 * psymtab.c (allocate_psymtab): Add comment.
134 * psympriv.h (allocate_psymtab): Add comment.
135 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
136 initializations.
137 * dbxread.c (dbx_end_psymtab): Remove some initializations.
138
0e8f53ba
TT
1392019-01-10 Tom Tromey <tom@tromey.com>
140
141 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
142 Don't declare.
143 * mipsread.c: Include mdebugread.h.
144 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
145 Declare.
146 * elfread.c: Include mdebugread.h.
147
b22a7c6a
TT
1482019-01-09 Tom Tromey <tom@tromey.com>
149
150 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
151 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
152 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
153 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
154 (psym_lookup_symbol, psym_find_last_source_symtab)
155 (psym_forget_cached_source_info, psym_print_stats)
156 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
157 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
158 (psym_map_matching_symbols, psym_expand_symtabs_matching)
159 (psym_find_compunit_symtab_by_address)
160 (maintenance_print_psymbols, maintenance_info_psymtabs)
161 (maintenance_check_psymtabs): Use ranged for.
162 * psymtab.h (class objfile_psymtabs): New.
163 (require_partial_symbols): Return objfile_psymtabs.
164 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
165
3b9d3ac2
TT
1662019-01-09 Tom Tromey <tom@tromey.com>
167
168 * symfile.c (overlay_invalidate_all, find_pc_overlay)
169 (find_pc_mapped_section, list_overlays_command)
170 (map_overlay_command, unmap_overlay_command)
171 (simple_overlay_update): Use all_objfiles.
172 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
173 * printcmd.c (info_symbol_command): Use all_objfiles.
174 * objfiles.h (ALL_OBJSECTIONS): Remove.
175 * maint.c (maintenance_translate_address): Use all_objfiles.
176 * gcore.c (gcore_create_callback): Use all_objfiles.
177 (objfile_find_memory_regions): Likewise.
178
8b31193a
TT
1792019-01-09 Tom Tromey <tom@tromey.com>
180
181 * symtab.c (find_line_symtab, info_sources_command)
182 (make_source_files_completion_list): Use objfile_compunits.
183 * source.c (select_source_symtab): Use objfile_compunits.
184 * objfiles.h (struct objfile): Update comment.
185 (ALL_OBJFILES): Remove.
186 (ALL_FILETABS): Remove.
187 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
188 objfile_compunits.
189
d5da8b3c
TT
1902019-01-09 Tom Tromey <tom@tromey.com>
191
192 * symmisc.c (print_objfile_statistics, dump_objfile)
193 (maintenance_print_symbols): Use compunit_filetabs.
194 * source.c (forget_cached_source_info_for_objfile): Use
195 compunit_filetabs.
196 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
197 (ALL_FILETABS): Use compunit_filetabs.
198 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
199 * coffread.c (coff_symtab_read): Use compunit_filetabs.
200
5accd1a0
TT
2012019-01-09 Tom Tromey <tom@tromey.com>
202
203 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
204 (compunit_filetabs): New.
205 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
206 compunit_filetabs.
207 (info_sources_command, make_source_files_completion_list): Remove
208 declaration.
209 * symmisc.c (print_objfile_statistics, dump_objfile)
210 (maintenance_print_symbols): Remove declaration.
211 (maintenance_info_symtabs): Use compunit_filetabs.
212 (maintenance_info_line_tables): Likewise.
213 * source.c (select_source_symtab): Change local variable name.
214 (forget_cached_source_info_for_objfile): Remove declaration.
215 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
216 * objfiles.c (objfile_relocate1): Remove declaration.
217 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
218 declaration.
219 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
220 * coffread.c (coff_symtab_read): Remove declaration.
221 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
222 compunit_filetabs.
223
d8aeb77f
TT
2242019-01-09 Tom Tromey <tom@tromey.com>
225
226 * symtab.c (lookup_objfile_from_block)
227 (find_pc_sect_compunit_symtab, search_symbols)
228 (default_collect_symbol_completion_matches_break_on): Use
229 objfile_compunits.
230 * objfiles.h (ALL_COMPUNITS): Remove.
231 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
232 * cp-support.c (add_symbol_overload_list_qualified): Use
233 objfile_compunits.
234 * ada-lang.c (ada_collect_symbol_completion_matches)
235 (ada_add_global_exceptions): Use objfile_compunits.
236
592553c4
TT
2372019-01-09 Tom Tromey <tom@tromey.com>
238
239 * source.c (select_source_symtab)
240 (forget_cached_source_info_for_objfile): Remove declaration.
241 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
242 declaration.
243 * maint.c (count_symtabs_and_blocks): Remove declaration.
244 * cp-support.c (add_symbol_overload_list_qualified): Remove
245 declaration.
246 * coffread.c (coff_symtab_read): Remove declaration.
247 * symtab.c (lookup_symbol_in_objfile_symtabs)
248 (basic_lookup_transparent_type_1): Use objfile_compunits.
249 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
250 (info_sources_command, search_symbols)
251 (default_collect_symbol_completion_matches_break_on)
252 (make_source_files_completion_list): Remove declaration.
253 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
254 (ada_collect_symbol_completion_matches)
255 (ada_add_global_exceptions): Remove declaration.
256 * linespec.c (iterate_over_all_matching_symtabs): Use
257 objfile_compunits.
258 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
259 (class objfile_compunits): New.
260 (ALL_COMPUNITS): Use objfile_compunits.
261 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
262 (maintenance_check_symtabs, maintenance_info_line_tables): Use
263 objfile_compunits.
264 * objfiles.c (objfile_relocate1): Use objfile_compunits.
265
5325b9bf
TT
2662019-01-09 Tom Tromey <tom@tromey.com>
267
268 * symtab.c (search_symbols)
269 (default_collect_symbol_completion_matches_break_on): Use
270 objfile_msymbols.
271 * ada-lang.c (ada_lookup_simple_minsym)
272 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
273 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
274 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
275 objfile_msymbols.
276 * coffread.c (coff_symfile_read): Use objfile_msymbols.
277 * symmisc.c (dump_msymbols): Use objfile_msymbols.
278 * objc-lang.c (find_methods): Use objfile_msymbols.
279 (info_selectors_command, info_classes_command): Likewise.
280 * stabsread.c (scan_file_globals): Use objfile_msymbols.
281 * objfiles.h (class objfile_msymbols): New.
282 (ALL_OBJFILE_MSYMBOLS): Remove.
283 (ALL_MSYMBOLS): Remove.
284
cac85af2
TT
2852019-01-09 Tom Tromey <tom@tromey.com>
286
287 * common/next-iterator.h (next_adapter): Add Iterator template
288 parameter.
289 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
290 (class all_objfiles_safe): New.
291 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
292 * objfiles.c (put_objfile_before): Update comment.
293 (add_separate_debug_objfile): Likewise.
294 (free_all_objfiles): Use all_objfiles_safe.
295 (objfile_purge_solibs): Likewise.
296
aed57c53
TT
2972019-01-09 Tom Tromey <tom@tromey.com>
298
299 * symtab.c (iterate_over_symtabs, matching_obj_sections)
300 (expand_symtab_containing_pc, lookup_static_symbol)
301 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
302 (find_symbol_at_address, find_line_symtab, find_main_name): Use
303 all_objfiles.
304 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
305 * breakpoint.c (create_overlay_event_breakpoint)
306 (create_longjmp_master_breakpoint)
307 (create_std_terminate_master_breakpoint)
308 (create_exception_master_breakpoint): Use all_objfiles.
309 * linux-thread-db.c (try_thread_db_load_from_pdir)
310 (has_libpthread): Use all_objfiles.
311 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
312 * linespec.c (iterate_over_all_matching_symtabs)
313 (search_minsyms_for_name): Use all_objfiles.
314 * maint.c (maintenance_info_sections): Use all_objfiles.
315 * main.c (captured_main_1): Use all_objfiles.
316 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
317 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
318 * guile/scm-pretty-print.c
319 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
320 * solib-spu.c (append_ocl_sos): Use all_objfiles.
321 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
322 (maintenance_print_msymbols): Use all_objfiles.
323 * source.c (select_source_symtab): Use all_objfiles.
324 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
325 * symfile.c (remove_symbol_file_command)
326 (expand_symtabs_matching, map_symbol_filenames): Use
327 all_objfiles.
328 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
329 all_objfiles.
330 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
331 * objc-lang.c (find_methods): Use all_objfiles.
332 * objfiles.c (have_partial_symbols, have_full_symbols)
333 (have_minimal_symbols, qsort_cmp)
334 (default_iterate_over_objfiles_in_search_order): Use
335 all_objfiles.
336 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
337 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
338 (maintenance_check_psymtabs): Use all_objfiles.
339 (ALL_PSYMTABS): Remove.
340 * compile/compile-object-run.c (do_module_cleanup): Use
341 all_objfiles.
342 * blockframe.c (find_pc_partial_function): Use all_objfiles.
343 * cp-support.c (add_symbol_overload_list_qualified): Use
344 all_objfiles.
345 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
346 Use all_objfiles.
347 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
348 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
349 all_objfiles.
350 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
351 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
352 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
353 Uses all_objfiles.
354 * solib.c (solib_read_symbols): Use all_objfiles
355
99d89cde
TT
3562019-01-09 Tom Tromey <tom@tromey.com>
357
358 * probe.c (parse_probes_in_pspace): Use all_objfiles.
359 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
360 all_objfiles.
361 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
362 * symmisc.c (print_symbol_bcache_statistics)
363 (print_objfile_statistics, maintenance_print_objfiles)
364 (maintenance_info_symtabs, maintenance_check_symtabs)
365 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
366 all_objfiles.
367 * source.c (forget_cached_source_info): Use all_objfiles.
368 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
369 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
370 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
371 * objfiles.c (update_section_map): Use all_objfiles.
372 (shared_objfile_contains_address_p): Likewise.
373 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
374 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
375
21708325
TT
3762019-01-09 Tom Tromey <tom@tromey.com>
377
378 * common/next-iterator.h: New file.
379 * objfiles.h (class all_objfiles): New.
380 (struct objfile_iterator): New.
381
669e09f6
PW
3822019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
383
384 * NEWS: Move the description of the changed "frame", "select-frame",
385 and "info frame" commands to the Changed commands section.
386
041be526
SM
3872019-01-09 Simon Marchi <simon.marchi@ericsson.com>
388
389 * gdbtypes.c (check_stub_method_group): Remove handling of old
390 mangling schemes.
391 * linespec.c (find_methods): Likewise.
392 * stabsread.c (read_member_functions): Likewise.
393 * valops.c (search_struct_method): Likewise.
394 (value_struct_elt_for_reference): Likewise.
395 * NEWS: Mention this change.
396
0e2a2133
AB
3972019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
400 print_source_lines.
401 * source.c (print_source_lines_base): Update line number check.
402 (print_source_lines): New function.
403 (source_lines_range::source_lines_range): New function.
404 * source.h (class source_lines_range): New class.
405 (print_source_lines): New declaration.
406
1055a3b4
PW
4072019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
408
409 * linespec.c (linespec_state_destructor): Free self->canonical_names.
410
cfeadda5
TT
4112019-01-08 Tom Tromey <tom@tromey.com>
412 Simon Marchi <simon.marchi@ericsson.com>
413
414 PR gdb/24060
415 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
416 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
417 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
418 * f-exp.y (DOLLAR_VARIABLE): Likewise.
419 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
420 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
421
583068ca
AB
4222019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
423
424 * source.c (select_source_symtab): Move header comment to
425 declaration in source.h.
426 (forget_cached_source_info_for_objfile): Likewise.
427 (forget_cached_source_info): Likewise.
428 (identify_source_line): Likewise.
429 * source.h (identify_source_line): Move declaration from symtab.h
430 and add comment from source.c
431 (print_source_lines): Likewise.
432 (forget_cached_source_info_for_objfile): Likewise.
433 (forget_cached_source_info): Likewise.
434 (select_source_symtab): Likewise.
435 (enum print_source_lines_flag): Move definition from symtab.h.
436 * symtab.h (identify_source_line): Move declaration to source.h.
437 (print_source_lines): Likewise.
438 (forget_cached_source_info_for_objfile): Likewise.
439 (forget_cached_source_info): Likewise.
440 (select_source_symtab): Likewise.
441 (enum print_source_lines_flag): Move definition to source.h.
442 * tui/tui-hooks.c: Add 'source.h' include.
443
ec98a4ad
AB
4442019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
445
446 * source.c (print_source_lines_base): Handle requests to print
447 reverse line number sequences, and guard against empty lines
448 string.
449
62ea19c1
AB
4502019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
451
452 * source.c (print_source_lines_base): Fix skip of '\r' if next
453 character is '\n'.
454
9d30e1fd
TT
4552019-01-06 Tom Tromey <tom@tromey.com>
456
457 * c-exp.y (struct c_parse_state) <macro_original_text,
458 expansion_obstack>: New member.
459 (macro_original_text, expansion_obstack): Remove globals.
460 (scan_macro_expansion, scanning_macro_expansion)
461 (finished_macro_expansion): Update.
462 (scan_macro_cleanup): Remove.
463 (yylex, c_parse): Update.
464
c65bac38
TT
4652019-01-06 Tom Tromey <tom@tromey.com>
466
467 * c-exp.y (struct c_parse_state) <strings>: New member.
468 (operator_stoken): Update.
469
02e12e38
TT
4702019-01-06 Tom Tromey <tom@tromey.com>
471
472 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
473 (union type_stack_elt) <typelist_val>: Now a pointer to
474 std::vector.
475 (type_stack_cleanup): Don't declare.
476 (push_typelist): Update.
477 * parse.c (pop_typelist): Return a std::vector.
478 (push_typelist): Take a std::vector.
479 (follow_types): Update. Do not free args.
480 (type_stack_cleanup): Remove.
481 * c-exp.y (struct c_parse_state): New.
482 (cpstate): New global.
483 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
484 (nonempty_typelist): Update.
485 (func_mod): Create a new vector.
486 (c_parse): Create a c_parse_state.
487 (check_parameter_typelist): Do not delete params.
488 (function_method): Update. Do not delete type_list.
489
f097f5ad
TT
4902019-01-06 Tom Tromey <tom@tromey.com>
491
492 PR gdb/28155:
493 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
494 check_typedef.
495 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
496 (print_return_value): Likewise.
497
d2adf9f1
TT
4982019-01-05 Tom Tromey <tom@tromey.com>
499
500 * contrib/cleanup_check.py: Remove.
501 * contrib/gcc-with-excheck: Remove.
502 * contrib/exsummary.py: Remove.
503 * contrib/excheck.py: Remove.
504
2eab46b1
JB
5052019-01-05 Joel Brobecker <brobecker@adacore.com>
506
507 * thread.c (delete_thread_1): Add gdb_assert that THR is not
508 NULL. Initialize tpprev to NULL instead of assigning it
509 to NULL on the next statement.
510 * windows-nat.c (windows_delete_thread): Remove check for
511 main_thread_id before printing thread exit notifications.
512 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
513 Remove thread ID check against main_thread_id.
514 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
515 windows_delete_thread.
516 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
517
48c5e7e2
TT
5182019-01-04 Tom Tromey <tom@tromey.com>
519
520 * compile/compile.c (_initialize_compile): Use upper case for
521 metasyntactic variables.
522 * symmisc.c (_initialize_symmisc): Use upper case for
523 metasyntactic variables.
524 * psymtab.c (_initialize_psymtab): Use upper case for
525 metasyntactic variables.
526 * demangle.c (demangle_command): Use upper case for metasyntactic
527 variables.
528 (_initialize_demangler): Likewise.
529 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
530 variables.
531
986041cd
TT
5322019-01-03 Tom Tromey <tom@tromey.com>
533
534 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
535
7c711119
TT
5362019-01-03 Tom Tromey <tom@tromey.com>
537
538 * python/py-symtab.c (salpy_str): Update.
539 (struct salpy_sal_object) <symtab>: Now a PyObject.
540 (salpy_dealloc): Update.
541 (del_objfile_sal): Use gdbpy_ref.
542
1b20edf0
TT
5432019-01-03 Tom Tromey <tom@tromey.com>
544
545 * python/py-type.c (convert_field): Use new_reference. Return
546 gdbpy_ref.
547 (make_fielditem): Return gdbpy_ref.
548 (typy_fields): Update.
549 (typy_getitem): Update.
550 (field_name): Return gdbpy_ref. Use new_reference.
551 (typy_iterator_iternext): Update.
552
ea41325b
TT
5532019-01-03 Tom Tromey <tom@tromey.com>
554
555 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
556
2a3c71d6
TT
5572019-01-03 Tom Tromey <tom@tromey.com>
558
559 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
560 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
561 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
562 (pspy_set_frame_filters, pspy_set_frame_unwinders)
563 (pspy_set_type_printers): Likewise.
564 * python/py-function.c (fnpy_init): Use gdbpy_ref.
565 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
566 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
567 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
568 (objfpy_set_type_printers): Likewise.
569
5c329e6a
TT
5702019-01-03 Tom Tromey <tom@tromey.com>
571
572 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
573 (gdbpy_print_stack): Use gdbpy_err_fetch.
574 * python/python-internal.h (class gdbpy_err_fetch): New class.
575 (class gdbpy_enter) <m_error_type, m_error_value,
576 m_error_traceback>: Remove.
577 <m_error>: New member.
578 (gdbpy_exception_to_string): Don't declare.
579 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
580 * python/py-value.c (convert_value_from_python): Use
581 gdbpy_err_fetch.
582 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
583 gdbpy_exception_to_string.
584 (gdbpy_handle_exception): Use gdbpy_err_fetch.
585 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
586 gdbpy_err_fetch.
587
169bb27b
AB
5882019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * linux-nat.c (delete_lwp_cleanup): Delete.
591 (struct lwp_deleter): New struct.
592 (lwp_info_up): New typedef.
593 (linux_nat_target::follow_fork): Delete cleanup, and make use of
594 lwp_info_up.
595
a07c8880
AB
5962019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
597
598 * linux-fork.c (class scoped_switch_fork_info): New class.
599 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
600
26089c49
AB
6012019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * valops.c (find_overload_match): Remove use of null_cleanup, and
604 calls to do_cleanups.
605
06d3e5b0
AB
6062019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * compile/compile-cplus-types.c
609 (compile_cplus_instance::decl_name): Handle changes to
610 cp_func_name.
611 * cp-support.c (cp_func_name): Update header comment, update
612 return type.
613 * cp-support.h (cp_func_name): Update return type in declaration.
614 * valops.c (find_overload_match): Move temp_func local to top
615 level of function and change its type. Use temp_func to hold and
616 delete temporary string obtained from cp_func_name.
617
66644cd3
AB
6182019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
621 gdb::char_vector, remove cleanup, and update uses of `msg`.
622
592d8c0a
JW
6232019-01-03 Jim Wilson <jimw@sifive.com>
624
625 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
626
c55d06ec
TT
6272019-01-02 Tom Tromey <tom@tromey.com>
628
629 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
630 (tdesc_parse_xml): Remove cleanups.
631 * target-descriptions.h (make_cleanup_free_target_description):
632 Don't declare.
633 (target_desc_deleter): New struct.
634 (target_desc_up): New typedef.
635 * target-descriptions.c (target_desc_deleter::operator()): Rename
636 from free_target_description.
637 (make_cleanup_free_target_description): Remove.
638
3a6ae42d
TT
6392019-01-02 Tom Tromey <tom@tromey.com>
640
641 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
642 constructor, destructor.
643 (linespec_parser): Remove typedef.
644 (~linespec_parser): Rename from linespec_parser_delete.
645 (linespec_lex_to_end, linespec_complete_label)
646 (linespec_complete): Update.
647 (decode_line_full): Remove cleanups.
648 (decode_line_1): Update.
649
61fd3e73
TT
6502019-01-02 Tom Tromey <tom@tromey.com>
651
652 * python/python-internal.h (inferior_to_inferior_object): Change
653 return type.
654 * python/py-exitedevent.c (create_exited_event_object): Update.
655 * python/py-inferior.c (inferior_to_inferior_object): Return
656 gdbpy_ref.
657 (python_new_inferior, python_inferior_deleted)
658 (thread_to_thread_object, delete_thread_object)
659 (build_inferior_list, gdbpy_selected_inferior): Update.
660 * python/py-infthread.c (create_thread_object): Update. Also fail
661 if inferior_to_inferior_object fails.
662
d20172fc
SM
6632019-01-02 Simon Marchi <simon.marchi@ericsson.com>
664
665 * inferior.h (class inferior) <displaced_step_state>: New field.
666 * infrun.h (struct displaced_step_state): Move here from
667 infrun.c. Initialize fields, add constructor.
668 <inf>: Remove field.
669 <reset>: New method.
670 * infrun.c (struct displaced_step_inferior_state): Move to
671 infrun.h.
672 (displaced_step_inferior_states): Remove.
673 (get_displaced_stepping_state): Adust.
674 (displaced_step_in_progress_any_inferior): Adjust.
675 (displaced_step_in_progress_thread): Adjust.
676 (displaced_step_in_progress): Adjust.
677 (add_displaced_stepping_state): Remove.
678 (get_displaced_step_closure_by_addr): Adjust.
679 (remove_displaced_stepping_state): Remove.
680 (infrun_inferior_exit): Call displaced_step_state.reset.
681 (use_displaced_stepping): Don't check for NULL.
682 (displaced_step_prepare_throw): Call
683 get_displaced_stepping_state.
684 (displaced_step_fixup): Don't check for NULL.
685 (prepare_for_detach): Don't check for NULL.
686
e3319240
PW
6872019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
688
689 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
690 in case of call that did not complete.
691
5d36dfb9
AU
6922019-01-02 Andrey Utkin <autkin@undo.io>
693
694 * symfile.c (find_separate_debug_file): Fix search of debug files for
695 remote debuggee.
696
8833fbf0
TT
6972019-01-02 Tom Tromey <tom@tromey.com>
698
699 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
700 indentation.
701 * python/py-frame.c (frapy_older): Remove cast.
702 (frapy_newer): Likewise.
703 * python/py-breakpoint.c (local_setattro): Remove cast.
704 * python/py-arch.c (archpy_name): Remove local variable.
705 * python/py-type.c (gdbpy_lookup_type): Remove cast.
706
4ada3dfd
JB
7072019-01-02 Joel Brobecker <brobecker@adacore.com>
708
709 * unittests/basic_string_view/element_access/char/empty.cc:
710 Fix year range in copyright header.
711
113b7b81
AB
7122019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
713
714 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
715 Delete.
716 <operator==>: Update with for removed field.
717 <hash>: Likewise.
718 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
719 <isa_features>: ...this.
720 <abi_features>: New field.
721 (riscv_isa_flen): Update comment.
722 (riscv_abi_xlen): New declaration.
723 (riscv_abi_flen): New declaration.
724 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
725 isa_features.
726 (riscv_abi_xlen): New function.
727 (riscv_isa_flen): Update to get answer from isa_features.
728 (riscv_abi_flen): New function.
729 (riscv_has_fp_abi): Update to get answer from abi_features.
730 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
731 xlen and flen.
732 (riscv_call_info) <xlen, flen>: Update comment.
733 (riscv_call_arg_struct): Remove invalid assertions
734 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
735 is removed.
736 (riscv_gdbarch_init): Gather isa features and abi features
737 separately, ensure both match on the gdbarch when reusing an old
738 gdbarch. Relax an error check to allow 32-bit abi float to run on
739 a target with 64-bit float hardware.
740
b18ca514
PW
7412019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
742
743 * source.c (search_command_helper): Stop reverse search
744 when line 1 has been searched.
745
ec70d8db
PW
7462019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
747
748 * record-full.c (record_full_base_target::close): Rewrite
749 record_full_core_buf_list free logic.
750
5b38f9c1
PW
7512019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
752
753 * break-catch-syscall.c (print_one_catch_syscall): xfree
754 the last text.
755
66d91b39
JB
7562019-01-01 Joel Brobecker <brobecker@adacore.com>
757
758 * top.c (print_gdb_version): Update Copyright year in version
759 message.
760
42a4f53d
JB
7612019-01-01 Joel Brobecker <brobecker@adacore.com>
762
763 Update copyright year range in all GDB files.
764
5bbd631d 7652019-01-01 Joel Brobecker <brobecker@adacore.com>
2139e8dc 766
5bbd631d 767 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 768
5bbd631d 769For older changes see ChangeLog-2018.
c906108c
SS
770\f
771Local Variables:
772mode: change-log
773left-margin: 8
774fill-column: 74
775version-control: never
57da7796 776coding: utf-8
c906108c 777End:
5bbd631d 778
This page took 2.767399 seconds and 4 git commands to generate.