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