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