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