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