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