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