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