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