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