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