Commit | Line | Data |
---|---|---|
776489e0 TT |
1 | 2019-01-17 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * solib-target.c (lm_info_target_p): Remove typedef. Don't | |
4 | declare VEC. | |
5 | (solib_target_parse_libraries): Change return type. | |
6 | (library_list_start_segment, library_list_start_section) | |
7 | (library_list_end_library, library_list_start_library); Update. | |
8 | (solib_target_free_library_list): Remove. | |
9 | (solib_target_parse_libraries): Remove cleanup. Change return | |
10 | type. | |
11 | (solib_target_current_sos): Update. | |
12 | ||
6471e7d2 TT |
13 | 2019-01-17 Tom Tromey <tromey@bapiya> |
14 | ||
15 | * valprint.c: Replace "the the" with "the". | |
16 | * symtab.c: Replace "the the" with "the". | |
17 | * solib.c: Replace "the the" with "the". | |
18 | * solib-dsbt.c: Replace "the the" with "the". | |
19 | * linespec.c: Replace "the the" with "the". | |
20 | * dwarf2loc.h: Replace "the the" with "the". | |
21 | * amd64-windows-tdep.c: Replace "the the" with "the". | |
22 | * aarch64-tdep.c: Replace "the the" with "the". | |
23 | ||
c24bdb02 KS |
24 | 2019-01-16 Keith Seitz <keiths@redhat.com> |
25 | ||
26 | PR gdb/23773 | |
27 | * dwarf2read.c (dwarf2_cu) <ancestor>: New field. | |
28 | <builder>: Rename to .. | |
29 | <m_builder>: ... this and make private. | |
30 | (dwarf2_cu::get_builder): New method. Change all users of | |
31 | `builder' to use this method. | |
32 | (dwarf2_start_symtab): Move to ... | |
33 | (dwarf2_cu::start_symtab): ... here. Update all callers | |
34 | (setup_type_unit_groups): Move to ... | |
35 | (dwarf2_cu::setup_type_unit_groups): ... here. Update all | |
36 | callers. | |
37 | (dwarf2_cu::reset_builder): New method. | |
38 | (process_full_compunit, process_full_type_unit): Use | |
39 | dwarf2_cu::reset_builder. | |
40 | (follow_die_offset): Record the ancestor CU if it is different | |
41 | from the followed DIE's CU. | |
42 | (follow_die_sig_1): Likewise. | |
43 | ||
8d64371b TT |
44 | 2019-01-15 Tom Tromey <tom@tromey.com> |
45 | ||
46 | * remote.c (class remote_state) <buf>: Now a char_vector. | |
47 | <buf_size>: Remove. | |
48 | (remote_target::getpkt): Change type of buf. Remove sizeof_buf | |
49 | parameter. | |
50 | (remote_target::getpkt_or_notif_sane_1) | |
51 | (remote_target::getpkt_sane) | |
52 | (remote_target::getpkt_or_notif_sane): Likewise. | |
53 | (class remote_target) <putpkt>: New overload. | |
54 | (remote_target::read_frame): Change type of "buf_p". Remove | |
55 | sizeof_p parameter. | |
56 | (packet_ok): New overload. | |
57 | (packet_check_result): New overload. | |
58 | Update all uses. | |
59 | ||
bb277751 TT |
60 | 2019-01-14 Tom Tromey <tom@tromey.com> |
61 | ||
62 | * remote-notif.c (handle_notification, remote_notif_ack) | |
63 | (remote_notif_parse): Make "buf" const. | |
64 | * remote-notif.h (struct notif_client) <parse, ack>: Make "buf" | |
65 | const. | |
66 | (remote_notif_parse, remote_notif_ack, handle_notification): | |
67 | Likewise. | |
68 | * remote.c (remote_notif_stop_parse): Make "buf" const. | |
69 | (remote_target::remote_parse_stop_reply): Make "buf" const. | |
70 | (remote_notif_stop_ack): Make "buf" const. | |
71 | ||
05be00a8 TT |
72 | 2019-01-14 Tom Tromey <tom@tromey.com> |
73 | ||
74 | * remote.c (remote_console_output): Make parameter const. | |
75 | ||
491adeca TT |
76 | 2019-01-14 Tom Tromey <tom@tromey.com> |
77 | ||
78 | * target-debug.h (target_debug_print_signals): Constify. | |
79 | * nto-procfs.c (nto_procfs_target::pass_signals): Update. | |
80 | * procfs.c (procfs_target::pass_signals): Update. | |
81 | * linux-nat.c (linux_nat_target::pass_signals): Update. | |
82 | * linux-nat.h (class linux_nat_target) <pass_signals>: Update. | |
83 | * target-delegates.c: Rebuild. | |
84 | * remote.c (remote_target::program_signals): Update. | |
85 | (remote_target::pass_signals): Update. | |
86 | * target.c (target_pass_signals): Constify argument. | |
87 | (target_program_signals): Likewise. | |
88 | * target.h (struct target_ops) <pass_signals, program_signals>: | |
89 | Constify argument. | |
90 | (target_pass_signals, target_program_signals): Constify argument. | |
91 | ||
bbd94648 TT |
92 | 2019-01-14 Tom Tromey <tom@tromey.com> |
93 | ||
94 | PR tui/28819: | |
95 | * tui/tui-io.c (gdb_wgetch): Print \r when needed. | |
96 | ||
6f072a10 PFC |
97 | 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
98 | ||
99 | * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New | |
100 | field. | |
101 | * rs6000-tdep.c: Include reggroups.h. | |
102 | (IS_V_ALIAS_PSEUDOREG): Define. | |
103 | (rs6000_register_name): Return names for the "vX" aliases. | |
104 | (rs6000_pseudo_register_type): Return type for the "vX" aliases. | |
105 | (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX" | |
106 | aliases. Call default_register_reggroup_p for all other | |
107 | pseudo-registers. | |
108 | (v_alias_pseudo_register_read, v_alias_pseudo_register_write): | |
109 | New functions. | |
110 | (rs6000_pseudo_register_read, rs6000_pseudo_register_write): | |
111 | Handle "vX" aliases. | |
112 | (v_alias_pseudo_register_collect): New function. | |
113 | (rs6000_ax_pseudo_register_collect): Handle "vX" aliases. | |
114 | (rs6000_gdbarch_init): Initialize "vX" aliases as | |
115 | pseudo-registers. Restore registration of | |
116 | rs6000_pseudo_register_reggroup_p with | |
117 | set_tdesc_pseudo_register_reggroup_p. | |
118 | ||
1a782351 MF |
119 | 2019-01-13 Max Filippov <jcmvbkbc@gmail.com> |
120 | ||
121 | * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update | |
122 | tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and | |
123 | set_gdbarch_num_pseudo_regs. | |
124 | ||
d73cff18 PW |
125 | 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
126 | ||
127 | * cli/cli-style.h (class cli_style_option): <add_setshow_commands> | |
128 | Remove arg prefixname, add do_set and do_show. | |
129 | Add member functions set_list and show_list. | |
130 | * cli/cli-style.c (class cli_style_option): Update accordingly. | |
131 | (style_set_list): Move to file scope. | |
132 | (style_show_list): Likewise. | |
133 | (set_style): Call help_list. | |
134 | (show_style): Call cmd_show_list. | |
135 | (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS. | |
136 | Update to use the new macro. | |
137 | ||
60a90376 JB |
138 | 2019-10-12 Joel Brobecker <brobecker@adacore.com> |
139 | ||
140 | * ada-lang.c (_initialize_ada_language): Expand the help text | |
141 | for the "catch exception" command. | |
142 | ||
9d7c67bf PW |
143 | 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
144 | ||
145 | * symtab.c (matching_obj_sections): Initialize obj, | |
146 | declare it closer to its usage. | |
147 | ||
7cf47dc4 TT |
148 | 2019-01-10 Tom Tromey <tom@tromey.com> |
149 | ||
150 | * thread-iter.h (inf_threads_iterator): Use next_iterator. | |
151 | (basic_inf_threads_range): Remove. | |
152 | (inf_threads_range, inf_non_exited_threads_range) | |
153 | (safe_inf_threads_range): Use next_adapter. | |
154 | ||
d3cb6808 KS |
155 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
156 | ||
157 | PR gdb/23712 | |
158 | PR symtab/23010 | |
159 | * dwarf2read.c (dw2_add_symbol_to_list): Remove. | |
160 | (fixup_go_packaging, new_symbol): Use add_symbol_to_list. | |
161 | ||
63a20375 KS |
162 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
163 | ||
164 | PR gdb/23712 | |
165 | PR symtab/23010 | |
166 | * dictionary.c (pending_to_vector): Remove. | |
167 | (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1): | |
168 | Remove _1 suffix, replacing functions of the same name. Update | |
169 | all callers. | |
170 | (dict_create_hashed, dict_create_hashed_expandable) | |
171 | (dict_create_linear, dict_create_linear_expandable, dict_free) | |
172 | (dict_add_symbol, dict_add_pending, dict_size, dict_empty): | |
173 | Make functions static. | |
174 | ||
b026f593 KS |
175 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
176 | ||
177 | PR gdb/23712 | |
178 | PR symtab/23010 | |
179 | * dictionary.h (struct dictionary): Replace declaration with | |
180 | multidictionary. | |
181 | (dict_create_hashed, dict_create_hashed_expandable) | |
182 | (dict_create_linear, dict_create_linear_expandable) | |
183 | (dict_free, dict_add_symbol, dict_add_pending, dict_empty) | |
184 | (dict_iterator_first, dict_iterator_next, dict_iter_match_first) | |
185 | (dict_iter_match_next, dict_size): Rename to "mdict_" versions | |
186 | taking multidictionary argument. | |
187 | [ALL_DICT_SYMBOLS]: Update for multidictionary. | |
188 | * block.h (struct block) <dict>: Change to multidictionary | |
189 | and rename `multidict'. | |
190 | * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c, | |
191 | symmisc.c: Update all dictionary references to multidictionary. | |
192 | ||
c7748ee9 KS |
193 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
194 | ||
195 | PR gdb/23712 | |
196 | PR symtab/23010 | |
197 | * dictionary.c: Include unordered_map. | |
198 | (pending_to_vector): New function. | |
199 | (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1): | |
200 | Rewrite the non-"_1" functions to take vector instead | |
201 | of linked list. | |
202 | (dict_create_hashed, dict_create_linear, dict_add_pending): Use the | |
203 | "new" _1 versions of the same name. | |
204 | (multidictionary): Define. | |
205 | (std::hash<enum language): New definition. | |
206 | (collate_pending_symbols_by_language, mdict_create_hashed) | |
207 | (mdict_create_hashed_expandable, mdict_create_linear) | |
208 | (mdict_create_linear_expandable, mdict_free) | |
209 | (find_language_dictionary, create_new_language_dictionary) | |
210 | (mdict_add_symbol, mdict_add_pending, mdict_iterator_first) | |
211 | (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next) | |
212 | (mdict_size, mdict_empty): New functions. | |
213 | * dictionary.h (mdict_iterator): Define. | |
214 | ||
67aa1f3c PA |
215 | 2019-01-10 Pedro Alves <palves@redhat.com> |
216 | ||
217 | * breakpoint.c (read_uploaded_action) | |
218 | (create_tracepoint_from_upload): Adjust to use | |
219 | gdb::unique_xmalloc_ptr. | |
220 | * ctf.c (ctf_write_uploaded_tp): | |
221 | (SET_ARRAY_FIELD): Use emplace_back. | |
222 | (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr. | |
223 | * tracefile-tfile.c (tfile_write_uploaded_tp): | |
224 | * tracepoint.c (parse_tracepoint_definition): Adjust to use | |
225 | gdb::unique_xmalloc_ptr. | |
226 | * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions, | |
227 | at_string, cond_string, cmd_strings>: Replace char pointers | |
228 | with gdb::unique_xmalloc_ptr. | |
229 | ||
2f667667 PA |
230 | 2019-01-10 Pedro Alves <palves@redhat.com> |
231 | ||
232 | * solib-target.c (library_list_start_library): Don't xstrdup name. | |
233 | ||
36cb7237 PA |
234 | 2019-01-10 Pedro Alves <palves@redhat.com> |
235 | ||
236 | * mdebugread.c (parse_partial_symbols): Use | |
237 | gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'. | |
238 | ||
da584958 AB |
239 | 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com> |
240 | ||
241 | * linux-fork.c (scoped_switch_fork_info) | |
242 | <~scoped_switch_fork_info>: Fix incorrect variable name. | |
243 | ||
1ef8573c AB |
244 | 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com> |
245 | ||
246 | * linux-fork.c (scoped_switch_fork_info) | |
247 | <scoped_switch_fork_info>: Make explicit. | |
248 | <~scoped_switch_fork_info>: Wrap core in TRY/CATCH. | |
249 | ||
8d7bcccb TT |
250 | 2019-01-10 Tom Tromey <tom@tromey.com> |
251 | ||
252 | * objfiles.h (objfile::reset_psymtabs): Update. | |
253 | * objfiles.c (objfile::objfile): Update. | |
254 | * psymtab.h (psymtab_storage::obstack): Update. | |
255 | (psymtab_storage::m_obstack): Use gdb::optional. | |
256 | (class psymtab_storage): Update comment. Remove objfile | |
257 | parameter. | |
258 | * psymtab.c (psymtab_storage::psymtab_storage): Update. | |
259 | ||
b596a3c7 TT |
260 | 2019-01-10 Tom Tromey <tom@tromey.com> |
261 | ||
262 | * psymtab.h (psymtab_storage::allocate_psymtab): New method. | |
263 | <free_psymtabs>: Now private. | |
264 | * psymtab.c (psymtab_storage::allocate_psymtab): Implement. | |
265 | (allocate_psymtab): Use new method. | |
266 | ||
a9342b62 TT |
267 | 2019-01-10 Tom Tromey <tom@tromey.com> |
268 | ||
269 | * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies. | |
270 | * psymtab.h (psymtab_storage::allocate_dependencies): New method. | |
271 | * mdebugread.c (parse_partial_symbols): Use | |
272 | allocate_dependencies. | |
273 | * dwarf2read.c (dwarf2_create_include_psymtab): Use | |
274 | allocate_dependencies. | |
275 | (process_psymtab_comp_unit_reader) | |
276 | (build_type_psymtab_dependencies): Likewise. | |
277 | * dbxread.c (dbx_end_psymtab): Use allocate_dependencies. | |
278 | ||
5af70966 TT |
279 | 2019-01-10 Tom Tromey <tom@tromey.com> |
280 | ||
281 | * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to | |
282 | PSYMBOL_SET_LANGUAGE. | |
283 | (allocate_psymtab): Allocate psymtab on the psymtab obstack. | |
284 | ||
5923a04c TT |
285 | 2019-01-10 Tom Tromey <tom@tromey.com> |
286 | ||
287 | * psymtab.h (psymtab_storage::obstack): New method. | |
288 | <m_obstack>: Rename from obstack; now private. | |
289 | * psymtab.c (psymtab_storage): Update. | |
290 | * dwarf2read.c (create_addrmap_from_index) | |
291 | (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard): | |
292 | Update. | |
293 | ||
6d6a12bf TT |
294 | 2019-01-10 Tom Tromey <tom@tromey.com> |
295 | ||
296 | * symfile.c (reread_symbols): Call objfile->reset_psymtabs. | |
297 | * objfiles.h (objfile::reset_psymtabs): New method. | |
298 | ||
d320c2b5 TT |
299 | 2019-01-10 Tom Tromey <tom@tromey.com> |
300 | ||
301 | * symmisc.c (print_symbol_bcache_statistics): Update. | |
302 | (print_objfile_statistics): Update. | |
303 | * symfile.c (reread_symbols): Update. | |
304 | * psymtab.h (class psymtab_storage): New. | |
305 | * psymtab.c (psymtab_storage): New constructor. | |
306 | (~psymtab_storage): New destructor. | |
307 | (require_partial_symbols): Update. | |
308 | (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite. | |
309 | (find_pc_sect_psymtab, find_pc_sect_psymbol) | |
310 | (match_partial_symbol, lookup_partial_symbol, dump_psymtab) | |
311 | (psym_dump, recursively_search_psymtabs, psym_has_symbols) | |
312 | (psym_find_compunit_symtab_by_address, sort_pst_symbols) | |
313 | (start_psymtab_common, end_psymtab_common) | |
314 | (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list) | |
315 | (allocate_psymtab): Update. | |
316 | (psymtab_storage::discard_psymtab): Rename from discard_psymtab. | |
317 | Update. | |
318 | (dump_psymtab_addrmap, maintenance_print_psymbols) | |
319 | (maintenance_check_psymtabs): Update. | |
320 | (class objfile_psymtabs): Move to objfiles.h. | |
321 | * psympriv.h (discard_psymtab): Now inline. | |
322 | (psymtab_discarder::psymtab_discarder): Update. | |
323 | (psymtab_discarder::~psymtab_discarder): Update. | |
324 | (ALL_OBJFILE_PSYMTABS): Rewrite. | |
325 | * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap, | |
326 | free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>: | |
327 | Remove fields. | |
328 | <partial_symtabs>: New field. | |
329 | (class objfile_psymtabs): Move from psymtab.h. Update. | |
330 | * objfiles.c (objfile::objfile): Initialize partial_symtabs, not | |
331 | psymbol_cache. | |
332 | (objfile::~objfile): Don't destroy psymbol_cache. | |
333 | * mdebugread.c (parse_partial_symbols): Update. | |
334 | * dwarf2read.c (create_addrmap_from_index) | |
335 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
336 | (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard) | |
337 | (add_partial_subprogram, dwarf2_ranges_read): Update. | |
338 | * dwarf-index-write.c (write_address_map) | |
339 | (write_one_signatured_type, recursively_write_psymbols) | |
340 | (class debug_names, class debug_names, write_psymtabs_to_index): | |
341 | Update. | |
342 | ||
1d94a5a3 TT |
343 | 2019-01-10 Tom Tromey <tom@tromey.com> |
344 | ||
345 | * symtab.h (SYMBOL_SET_NAMES): Update. | |
346 | (symbol_set_names): Update. | |
347 | (MSYMBOL_SET_NAMES): Update. | |
348 | * symtab.c (symbol_set_names): Change argument to be an | |
349 | objfile_per_bfd_storage. | |
350 | * psymtab.c (add_psymbol_to_bcache): Update. | |
351 | * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument. | |
352 | ||
0f14768a TT |
353 | 2019-01-10 Tom Tromey <tom@tromey.com> |
354 | ||
355 | * symtab.c (create_demangled_names_hash): Change argument to be an | |
356 | objfile_per_bfd_storage. | |
357 | (symbol_set_names): Update. | |
358 | ||
6eee24ce TT |
359 | 2019-01-10 Tom Tromey <tom@tromey.com> |
360 | ||
361 | * xcoffread.c (xcoff_initial_scan): Unconditionally call | |
362 | init_psymbol_list. | |
363 | * psymtab.c (init_psymbol_list): Do nothing if already called. | |
364 | * psympriv.h (init_psymbol_list): Add comment. | |
365 | * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call | |
366 | init_psymbol_list. | |
367 | * dbxread.c (dbx_symfile_read): Unconditionally call | |
368 | init_psymbol_list. | |
369 | ||
75aedd27 TT |
370 | 2019-01-10 Tom Tromey <tom@tromey.com> |
371 | ||
372 | * xcoffread.c (scan_xcoff_symtab): Update. | |
373 | * psymtab.c (add_psymbol_to_list): Replace "list" parameter with | |
374 | "where". | |
375 | * mdebugread.c (parse_partial_symbols) | |
376 | (handle_psymbol_enumerators): Update. | |
377 | * dwarf2read.c (add_partial_symbol, load_partial_dies): Update. | |
378 | * dbxread.c (read_dbx_symtab): Update. | |
379 | * psympriv.h (psymbol_placement): New enum. | |
380 | (add_psymbol_to_list): Update. | |
381 | ||
939652a5 TT |
382 | 2019-01-10 Tom Tromey <tom@tromey.com> |
383 | ||
384 | * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and | |
385 | static_psymbols parameters. | |
386 | (scan_xcoff_symtab): Update. | |
387 | * psymtab.c (start_psymtab_common): Remove global_psymbols and | |
388 | static_psymbols parameters. | |
389 | * psympriv.h (start_psymtab_common): Update. | |
390 | * mdebugread.c (parse_partial_symbols): Update. | |
391 | * dwarf2read.c (create_partial_symtab): Update. | |
392 | * dbxread.c (read_dbx_symtab): Update. | |
393 | (start_psymtab): Remove global_psymbols and static_psymbols | |
394 | parameters. | |
395 | ||
baa62830 TT |
396 | 2019-01-10 Tom Tromey <tom@tromey.com> |
397 | ||
398 | * xcoffread.c (xcoff_end_psymtab): Remove some initializations. | |
399 | * psymtab.c (allocate_psymtab): Add comment. | |
400 | * psympriv.h (allocate_psymtab): Add comment. | |
401 | * dwarf2read.c (dwarf2_create_include_psymtab): Remove some | |
402 | initializations. | |
403 | * dbxread.c (dbx_end_psymtab): Remove some initializations. | |
404 | ||
0e8f53ba TT |
405 | 2019-01-10 Tom Tromey <tom@tromey.com> |
406 | ||
407 | * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs): | |
408 | Don't declare. | |
409 | * mipsread.c: Include mdebugread.h. | |
410 | * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs): | |
411 | Declare. | |
412 | * elfread.c: Include mdebugread.h. | |
413 | ||
b22a7c6a TT |
414 | 2019-01-09 Tom Tromey <tom@tromey.com> |
415 | ||
416 | * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs. | |
417 | * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs. | |
418 | * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove. | |
419 | (psym_map_symtabs_matching_filename, find_pc_sect_psymtab) | |
420 | (psym_lookup_symbol, psym_find_last_source_symtab) | |
421 | (psym_forget_cached_source_info, psym_print_stats) | |
422 | (psym_expand_symtabs_for_function, psym_expand_all_symtabs) | |
423 | (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames) | |
424 | (psym_map_matching_symbols, psym_expand_symtabs_matching) | |
425 | (psym_find_compunit_symtab_by_address) | |
426 | (maintenance_print_psymbols, maintenance_info_psymtabs) | |
427 | (maintenance_check_psymtabs): Use ranged for. | |
428 | * psymtab.h (class objfile_psymtabs): New. | |
429 | (require_partial_symbols): Return objfile_psymtabs. | |
430 | * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove. | |
431 | ||
3b9d3ac2 TT |
432 | 2019-01-09 Tom Tromey <tom@tromey.com> |
433 | ||
434 | * symfile.c (overlay_invalidate_all, find_pc_overlay) | |
435 | (find_pc_mapped_section, list_overlays_command) | |
436 | (map_overlay_command, unmap_overlay_command) | |
437 | (simple_overlay_update): Use all_objfiles. | |
438 | * spu-tdep.c (spu_overlay_update): Use all_objfiles. | |
439 | * printcmd.c (info_symbol_command): Use all_objfiles. | |
440 | * objfiles.h (ALL_OBJSECTIONS): Remove. | |
441 | * maint.c (maintenance_translate_address): Use all_objfiles. | |
442 | * gcore.c (gcore_create_callback): Use all_objfiles. | |
443 | (objfile_find_memory_regions): Likewise. | |
444 | ||
8b31193a TT |
445 | 2019-01-09 Tom Tromey <tom@tromey.com> |
446 | ||
447 | * symtab.c (find_line_symtab, info_sources_command) | |
448 | (make_source_files_completion_list): Use objfile_compunits. | |
449 | * source.c (select_source_symtab): Use objfile_compunits. | |
450 | * objfiles.h (struct objfile): Update comment. | |
451 | (ALL_OBJFILES): Remove. | |
452 | (ALL_FILETABS): Remove. | |
453 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use | |
454 | objfile_compunits. | |
455 | ||
d5da8b3c TT |
456 | 2019-01-09 Tom Tromey <tom@tromey.com> |
457 | ||
458 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
459 | (maintenance_print_symbols): Use compunit_filetabs. | |
460 | * source.c (forget_cached_source_info_for_objfile): Use | |
461 | compunit_filetabs. | |
462 | * objfiles.h (ALL_OBJFILE_FILETABS): Remove. | |
463 | (ALL_FILETABS): Use compunit_filetabs. | |
464 | * objfiles.c (objfile_relocate1): Use compunit_filetabs. | |
465 | * coffread.c (coff_symtab_read): Use compunit_filetabs. | |
466 | ||
5accd1a0 TT |
467 | 2019-01-09 Tom Tromey <tom@tromey.com> |
468 | ||
469 | * symtab.h (ALL_COMPUNIT_FILETABS): Remove. | |
470 | (compunit_filetabs): New. | |
471 | * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use | |
472 | compunit_filetabs. | |
473 | (info_sources_command, make_source_files_completion_list): Remove | |
474 | declaration. | |
475 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
476 | (maintenance_print_symbols): Remove declaration. | |
477 | (maintenance_info_symtabs): Use compunit_filetabs. | |
478 | (maintenance_info_line_tables): Likewise. | |
479 | * source.c (select_source_symtab): Change local variable name. | |
480 | (forget_cached_source_info_for_objfile): Remove declaration. | |
481 | * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs. | |
482 | * objfiles.c (objfile_relocate1): Remove declaration. | |
483 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove | |
484 | declaration. | |
485 | * maint.c (count_symtabs_and_blocks): Use compunit_filetabs. | |
486 | * coffread.c (coff_symtab_read): Remove declaration. | |
487 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use | |
488 | compunit_filetabs. | |
489 | ||
d8aeb77f TT |
490 | 2019-01-09 Tom Tromey <tom@tromey.com> |
491 | ||
492 | * symtab.c (lookup_objfile_from_block) | |
493 | (find_pc_sect_compunit_symtab, search_symbols) | |
494 | (default_collect_symbol_completion_matches_break_on): Use | |
495 | objfile_compunits. | |
496 | * objfiles.h (ALL_COMPUNITS): Remove. | |
497 | * maint.c (count_symtabs_and_blocks): Use objfile_compunits. | |
498 | * cp-support.c (add_symbol_overload_list_qualified): Use | |
499 | objfile_compunits. | |
500 | * ada-lang.c (ada_collect_symbol_completion_matches) | |
501 | (ada_add_global_exceptions): Use objfile_compunits. | |
502 | ||
592553c4 TT |
503 | 2019-01-09 Tom Tromey <tom@tromey.com> |
504 | ||
505 | * source.c (select_source_symtab) | |
506 | (forget_cached_source_info_for_objfile): Remove declaration. | |
507 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove | |
508 | declaration. | |
509 | * maint.c (count_symtabs_and_blocks): Remove declaration. | |
510 | * cp-support.c (add_symbol_overload_list_qualified): Remove | |
511 | declaration. | |
512 | * coffread.c (coff_symtab_read): Remove declaration. | |
513 | * symtab.c (lookup_symbol_in_objfile_symtabs) | |
514 | (basic_lookup_transparent_type_1): Use objfile_compunits. | |
515 | (lookup_objfile_from_block, find_pc_sect_compunit_symtab) | |
516 | (info_sources_command, search_symbols) | |
517 | (default_collect_symbol_completion_matches_break_on) | |
518 | (make_source_files_completion_list): Remove declaration. | |
519 | * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits. | |
520 | (ada_collect_symbol_completion_matches) | |
521 | (ada_add_global_exceptions): Remove declaration. | |
522 | * linespec.c (iterate_over_all_matching_symtabs): Use | |
523 | objfile_compunits. | |
524 | * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove. | |
525 | (class objfile_compunits): New. | |
526 | (ALL_COMPUNITS): Use objfile_compunits. | |
527 | * symmisc.c (print_objfile_statistics, maintenance_info_symtabs) | |
528 | (maintenance_check_symtabs, maintenance_info_line_tables): Use | |
529 | objfile_compunits. | |
530 | * objfiles.c (objfile_relocate1): Use objfile_compunits. | |
531 | ||
5325b9bf TT |
532 | 2019-01-09 Tom Tromey <tom@tromey.com> |
533 | ||
534 | * symtab.c (search_symbols) | |
535 | (default_collect_symbol_completion_matches_break_on): Use | |
536 | objfile_msymbols. | |
537 | * ada-lang.c (ada_lookup_simple_minsym) | |
538 | (ada_collect_symbol_completion_matches): Use objfile_msymbols. | |
539 | * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols. | |
540 | * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use | |
541 | objfile_msymbols. | |
542 | * coffread.c (coff_symfile_read): Use objfile_msymbols. | |
543 | * symmisc.c (dump_msymbols): Use objfile_msymbols. | |
544 | * objc-lang.c (find_methods): Use objfile_msymbols. | |
545 | (info_selectors_command, info_classes_command): Likewise. | |
546 | * stabsread.c (scan_file_globals): Use objfile_msymbols. | |
547 | * objfiles.h (class objfile_msymbols): New. | |
548 | (ALL_OBJFILE_MSYMBOLS): Remove. | |
549 | (ALL_MSYMBOLS): Remove. | |
550 | ||
cac85af2 TT |
551 | 2019-01-09 Tom Tromey <tom@tromey.com> |
552 | ||
553 | * common/next-iterator.h (next_adapter): Add Iterator template | |
554 | parameter. | |
555 | * objfiles.h (ALL_OBJFILES_SAFE): Remove. | |
556 | (class all_objfiles_safe): New. | |
557 | * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe. | |
558 | * objfiles.c (put_objfile_before): Update comment. | |
559 | (add_separate_debug_objfile): Likewise. | |
560 | (free_all_objfiles): Use all_objfiles_safe. | |
561 | (objfile_purge_solibs): Likewise. | |
562 | ||
aed57c53 TT |
563 | 2019-01-09 Tom Tromey <tom@tromey.com> |
564 | ||
565 | * symtab.c (iterate_over_symtabs, matching_obj_sections) | |
566 | (expand_symtab_containing_pc, lookup_static_symbol) | |
567 | (basic_lookup_transparent_type, find_pc_sect_compunit_symtab) | |
568 | (find_symbol_at_address, find_line_symtab, find_main_name): Use | |
569 | all_objfiles. | |
570 | * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles. | |
571 | * breakpoint.c (create_overlay_event_breakpoint) | |
572 | (create_longjmp_master_breakpoint) | |
573 | (create_std_terminate_master_breakpoint) | |
574 | (create_exception_master_breakpoint): Use all_objfiles. | |
575 | * linux-thread-db.c (try_thread_db_load_from_pdir) | |
576 | (has_libpthread): Use all_objfiles. | |
577 | * ada-lang.c (add_nonlocal_symbols): Use all_objfiles. | |
578 | * linespec.c (iterate_over_all_matching_symtabs) | |
579 | (search_minsyms_for_name): Use all_objfiles. | |
580 | * maint.c (maintenance_info_sections): Use all_objfiles. | |
581 | * main.c (captured_main_1): Use all_objfiles. | |
582 | * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles. | |
583 | * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles. | |
584 | * guile/scm-pretty-print.c | |
585 | (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles. | |
586 | * solib-spu.c (append_ocl_sos): Use all_objfiles. | |
587 | * symmisc.c (maintenance_print_symbols): Use all_objfiles. | |
588 | (maintenance_print_msymbols): Use all_objfiles. | |
589 | * source.c (select_source_symtab): Use all_objfiles. | |
590 | * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles. | |
591 | * symfile.c (remove_symbol_file_command) | |
592 | (expand_symtabs_matching, map_symbol_filenames): Use | |
593 | all_objfiles. | |
594 | * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use | |
595 | all_objfiles. | |
596 | * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles. | |
597 | * objc-lang.c (find_methods): Use all_objfiles. | |
598 | * objfiles.c (have_partial_symbols, have_full_symbols) | |
599 | (have_minimal_symbols, qsort_cmp) | |
600 | (default_iterate_over_objfiles_in_search_order): Use | |
601 | all_objfiles. | |
602 | * hppa-tdep.c (find_unwind_entry): Use all_objfiles. | |
603 | * psymtab.c (maintenance_print_psymbols): Use all_objfiles. | |
604 | (maintenance_check_psymtabs): Use all_objfiles. | |
605 | (ALL_PSYMTABS): Remove. | |
606 | * compile/compile-object-run.c (do_module_cleanup): Use | |
607 | all_objfiles. | |
608 | * blockframe.c (find_pc_partial_function): Use all_objfiles. | |
609 | * cp-support.c (add_symbol_overload_list_qualified): Use | |
610 | all_objfiles. | |
611 | * windows-tdep.c (windows_iterate_over_objfiles_in_search_order): | |
612 | Use all_objfiles. | |
613 | * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles. | |
614 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use | |
615 | all_objfiles. | |
616 | * python/py-objfile.c (objfpy_lookup_objfile_by_name) | |
617 | (objfpy_lookup_objfile_by_build_id): Use all_objfiles. | |
618 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
619 | Uses all_objfiles. | |
620 | * solib.c (solib_read_symbols): Use all_objfiles | |
621 | ||
99d89cde TT |
622 | 2019-01-09 Tom Tromey <tom@tromey.com> |
623 | ||
624 | * probe.c (parse_probes_in_pspace): Use all_objfiles. | |
625 | * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use | |
626 | all_objfiles. | |
627 | * objfiles.h (ALL_PSPACE_OBJFILES): Remove. | |
628 | * symmisc.c (print_symbol_bcache_statistics) | |
629 | (print_objfile_statistics, maintenance_print_objfiles) | |
630 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
631 | (maintenance_expand_symtabs, maintenance_info_line_tables): Use | |
632 | all_objfiles. | |
633 | * source.c (forget_cached_source_info): Use all_objfiles. | |
634 | * symfile-debug.c (set_debug_symfile): Use all_objfiles. | |
635 | * elfread.c (elf_gnu_ifunc_resolve_by_cache) | |
636 | (elf_gnu_ifunc_resolve_by_got): Use all_objfiles. | |
637 | * objfiles.c (update_section_map): Use all_objfiles. | |
638 | (shared_objfile_contains_address_p): Likewise. | |
639 | * psymtab.c (maintenance_info_psymtabs): Use all_objfiles. | |
640 | * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles. | |
641 | ||
21708325 TT |
642 | 2019-01-09 Tom Tromey <tom@tromey.com> |
643 | ||
644 | * common/next-iterator.h: New file. | |
645 | * objfiles.h (class all_objfiles): New. | |
646 | (struct objfile_iterator): New. | |
647 | ||
669e09f6 PW |
648 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
649 | ||
650 | * NEWS: Move the description of the changed "frame", "select-frame", | |
651 | and "info frame" commands to the Changed commands section. | |
652 | ||
041be526 SM |
653 | 2019-01-09 Simon Marchi <simon.marchi@ericsson.com> |
654 | ||
655 | * gdbtypes.c (check_stub_method_group): Remove handling of old | |
656 | mangling schemes. | |
657 | * linespec.c (find_methods): Likewise. | |
658 | * stabsread.c (read_member_functions): Likewise. | |
659 | * valops.c (search_struct_method): Likewise. | |
660 | (value_struct_elt_for_reference): Likewise. | |
661 | * NEWS: Mention this change. | |
662 | ||
0e2a2133 AB |
663 | 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
664 | ||
665 | * cli/cli-cmds.c (list_command): Pass a source_lines_range to | |
666 | print_source_lines. | |
667 | * source.c (print_source_lines_base): Update line number check. | |
668 | (print_source_lines): New function. | |
669 | (source_lines_range::source_lines_range): New function. | |
670 | * source.h (class source_lines_range): New class. | |
671 | (print_source_lines): New declaration. | |
672 | ||
1055a3b4 PW |
673 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
674 | ||
675 | * linespec.c (linespec_state_destructor): Free self->canonical_names. | |
676 | ||
cfeadda5 TT |
677 | 2019-01-08 Tom Tromey <tom@tromey.com> |
678 | Simon Marchi <simon.marchi@ericsson.com> | |
679 | ||
680 | PR gdb/24060 | |
681 | * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE. | |
682 | * ada-lex.l (DOLLAR_VARIABLE): Likewise. | |
683 | * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
684 | * f-exp.y (DOLLAR_VARIABLE): Likewise. | |
685 | * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR. | |
686 | * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
687 | ||
583068ca AB |
688 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
689 | ||
690 | * source.c (select_source_symtab): Move header comment to | |
691 | declaration in source.h. | |
692 | (forget_cached_source_info_for_objfile): Likewise. | |
693 | (forget_cached_source_info): Likewise. | |
694 | (identify_source_line): Likewise. | |
695 | * source.h (identify_source_line): Move declaration from symtab.h | |
696 | and add comment from source.c | |
697 | (print_source_lines): Likewise. | |
698 | (forget_cached_source_info_for_objfile): Likewise. | |
699 | (forget_cached_source_info): Likewise. | |
700 | (select_source_symtab): Likewise. | |
701 | (enum print_source_lines_flag): Move definition from symtab.h. | |
702 | * symtab.h (identify_source_line): Move declaration to source.h. | |
703 | (print_source_lines): Likewise. | |
704 | (forget_cached_source_info_for_objfile): Likewise. | |
705 | (forget_cached_source_info): Likewise. | |
706 | (select_source_symtab): Likewise. | |
707 | (enum print_source_lines_flag): Move definition to source.h. | |
708 | * tui/tui-hooks.c: Add 'source.h' include. | |
709 | ||
ec98a4ad AB |
710 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
711 | ||
712 | * source.c (print_source_lines_base): Handle requests to print | |
713 | reverse line number sequences, and guard against empty lines | |
714 | string. | |
715 | ||
62ea19c1 AB |
716 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
717 | ||
718 | * source.c (print_source_lines_base): Fix skip of '\r' if next | |
719 | character is '\n'. | |
720 | ||
9d30e1fd TT |
721 | 2019-01-06 Tom Tromey <tom@tromey.com> |
722 | ||
723 | * c-exp.y (struct c_parse_state) <macro_original_text, | |
724 | expansion_obstack>: New member. | |
725 | (macro_original_text, expansion_obstack): Remove globals. | |
726 | (scan_macro_expansion, scanning_macro_expansion) | |
727 | (finished_macro_expansion): Update. | |
728 | (scan_macro_cleanup): Remove. | |
729 | (yylex, c_parse): Update. | |
730 | ||
c65bac38 TT |
731 | 2019-01-06 Tom Tromey <tom@tromey.com> |
732 | ||
733 | * c-exp.y (struct c_parse_state) <strings>: New member. | |
734 | (operator_stoken): Update. | |
735 | ||
02e12e38 TT |
736 | 2019-01-06 Tom Tromey <tom@tromey.com> |
737 | ||
738 | * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC. | |
739 | (union type_stack_elt) <typelist_val>: Now a pointer to | |
740 | std::vector. | |
741 | (type_stack_cleanup): Don't declare. | |
742 | (push_typelist): Update. | |
743 | * parse.c (pop_typelist): Return a std::vector. | |
744 | (push_typelist): Take a std::vector. | |
745 | (follow_types): Update. Do not free args. | |
746 | (type_stack_cleanup): Remove. | |
747 | * c-exp.y (struct c_parse_state): New. | |
748 | (cpstate): New global. | |
749 | (type_aggregate_p, exp, ptr_operator, parameter_typelist) | |
750 | (nonempty_typelist): Update. | |
751 | (func_mod): Create a new vector. | |
752 | (c_parse): Create a c_parse_state. | |
753 | (check_parameter_typelist): Do not delete params. | |
754 | (function_method): Update. Do not delete type_list. | |
755 | ||
f097f5ad TT |
756 | 2019-01-06 Tom Tromey <tom@tromey.com> |
757 | ||
758 | PR gdb/28155: | |
759 | * python/py-finishbreakpoint.c (bpfinishpy_init): Use | |
760 | check_typedef. | |
761 | * infcmd.c (finish_command_fsm_should_stop): Use check_typedef. | |
762 | (print_return_value): Likewise. | |
763 | ||
d2adf9f1 TT |
764 | 2019-01-05 Tom Tromey <tom@tromey.com> |
765 | ||
766 | * contrib/cleanup_check.py: Remove. | |
767 | * contrib/gcc-with-excheck: Remove. | |
768 | * contrib/exsummary.py: Remove. | |
769 | * contrib/excheck.py: Remove. | |
770 | ||
2eab46b1 JB |
771 | 2019-01-05 Joel Brobecker <brobecker@adacore.com> |
772 | ||
773 | * thread.c (delete_thread_1): Add gdb_assert that THR is not | |
774 | NULL. Initialize tpprev to NULL instead of assigning it | |
775 | to NULL on the next statement. | |
776 | * windows-nat.c (windows_delete_thread): Remove check for | |
777 | main_thread_id before printing thread exit notifications. | |
778 | (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>: | |
779 | Remove thread ID check against main_thread_id. | |
780 | <CREATE_PROCESS_DEBUG_EVENT>: Remove call to | |
781 | windows_delete_thread. | |
782 | <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread. | |
783 | ||
48c5e7e2 TT |
784 | 2019-01-04 Tom Tromey <tom@tromey.com> |
785 | ||
786 | * compile/compile.c (_initialize_compile): Use upper case for | |
787 | metasyntactic variables. | |
788 | * symmisc.c (_initialize_symmisc): Use upper case for | |
789 | metasyntactic variables. | |
790 | * psymtab.c (_initialize_psymtab): Use upper case for | |
791 | metasyntactic variables. | |
792 | * demangle.c (demangle_command): Use upper case for metasyntactic | |
793 | variables. | |
794 | (_initialize_demangler): Likewise. | |
795 | * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic | |
796 | variables. | |
797 | ||
986041cd TT |
798 | 2019-01-03 Tom Tromey <tom@tromey.com> |
799 | ||
800 | * tui/tui-source.c (tui_set_source_content): Use xstrdup. | |
801 | ||
7c711119 TT |
802 | 2019-01-03 Tom Tromey <tom@tromey.com> |
803 | ||
804 | * python/py-symtab.c (salpy_str): Update. | |
805 | (struct salpy_sal_object) <symtab>: Now a PyObject. | |
806 | (salpy_dealloc): Update. | |
807 | (del_objfile_sal): Use gdbpy_ref. | |
808 | ||
1b20edf0 TT |
809 | 2019-01-03 Tom Tromey <tom@tromey.com> |
810 | ||
811 | * python/py-type.c (convert_field): Use new_reference. Return | |
812 | gdbpy_ref. | |
813 | (make_fielditem): Return gdbpy_ref. | |
814 | (typy_fields): Update. | |
815 | (typy_getitem): Update. | |
816 | (field_name): Return gdbpy_ref. Use new_reference. | |
817 | (typy_iterator_iternext): Update. | |
818 | ||
ea41325b TT |
819 | 2019-01-03 Tom Tromey <tom@tromey.com> |
820 | ||
821 | * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE. | |
822 | ||
2a3c71d6 TT |
823 | 2019-01-03 Tom Tromey <tom@tromey.com> |
824 | ||
825 | * python/py-value.c (valpy_dealloc): Use Py_XDECREF. | |
826 | * python/py-type.c (typy_fields_items): Use gdbpy_ref. | |
827 | * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref. | |
828 | (pspy_set_frame_filters, pspy_set_frame_unwinders) | |
829 | (pspy_set_type_printers): Likewise. | |
830 | * python/py-function.c (fnpy_init): Use gdbpy_ref. | |
831 | * python/py-cmd.c (cmdpy_init): Use gdbpy_ref. | |
832 | * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref. | |
833 | (objfpy_set_frame_filters, objfpy_set_frame_unwinders) | |
834 | (objfpy_set_type_printers): Likewise. | |
835 | ||
5c329e6a TT |
836 | 2019-01-03 Tom Tromey <tom@tromey.com> |
837 | ||
838 | * python/python.c (gdbpy_enter, ~gdbpy_enter): Update. | |
839 | (gdbpy_print_stack): Use gdbpy_err_fetch. | |
840 | * python/python-internal.h (class gdbpy_err_fetch): New class. | |
841 | (class gdbpy_enter) <m_error_type, m_error_value, | |
842 | m_error_traceback>: Remove. | |
843 | <m_error>: New member. | |
844 | (gdbpy_exception_to_string): Don't declare. | |
845 | * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch. | |
846 | * python/py-value.c (convert_value_from_python): Use | |
847 | gdbpy_err_fetch. | |
848 | * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from | |
849 | gdbpy_exception_to_string. | |
850 | (gdbpy_handle_exception): Use gdbpy_err_fetch. | |
851 | * python/py-prettyprint.c (print_stack_unless_memory_error): Use | |
852 | gdbpy_err_fetch. | |
853 | ||
169bb27b AB |
854 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
855 | ||
856 | * linux-nat.c (delete_lwp_cleanup): Delete. | |
857 | (struct lwp_deleter): New struct. | |
858 | (lwp_info_up): New typedef. | |
859 | (linux_nat_target::follow_fork): Delete cleanup, and make use of | |
860 | lwp_info_up. | |
861 | ||
a07c8880 AB |
862 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
863 | ||
864 | * linux-fork.c (class scoped_switch_fork_info): New class. | |
865 | (inferior_call_waitpid): Update to use scoped_switch_fork_info. | |
866 | ||
26089c49 AB |
867 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
868 | ||
869 | * valops.c (find_overload_match): Remove use of null_cleanup, and | |
870 | calls to do_cleanups. | |
871 | ||
06d3e5b0 AB |
872 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
873 | ||
874 | * compile/compile-cplus-types.c | |
875 | (compile_cplus_instance::decl_name): Handle changes to | |
876 | cp_func_name. | |
877 | * cp-support.c (cp_func_name): Update header comment, update | |
878 | return type. | |
879 | * cp-support.h (cp_func_name): Update return type in declaration. | |
880 | * valops.c (find_overload_match): Move temp_func local to top | |
881 | level of function and change its type. Use temp_func to hold and | |
882 | delete temporary string obtained from cp_func_name. | |
883 | ||
66644cd3 AB |
884 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
885 | ||
886 | * remote.c (remote_target::remote_check_symbols): Convert `msg` to | |
887 | gdb::char_vector, remove cleanup, and update uses of `msg`. | |
888 | ||
592d8c0a JW |
889 | 2019-01-03 Jim Wilson <jimw@sifive.com> |
890 | ||
891 | * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8. | |
892 | ||
c55d06ec TT |
893 | 2019-01-02 Tom Tromey <tom@tromey.com> |
894 | ||
895 | * xml-tdesc.c (xml_cache): Hold a target_desc_up. | |
896 | (tdesc_parse_xml): Remove cleanups. | |
897 | * target-descriptions.h (make_cleanup_free_target_description): | |
898 | Don't declare. | |
899 | (target_desc_deleter): New struct. | |
900 | (target_desc_up): New typedef. | |
901 | * target-descriptions.c (target_desc_deleter::operator()): Rename | |
902 | from free_target_description. | |
903 | (make_cleanup_free_target_description): Remove. | |
904 | ||
3a6ae42d TT |
905 | 2019-01-02 Tom Tromey <tom@tromey.com> |
906 | ||
907 | * linespec.c (struct linespec_parser): Rename from ls_parser. Add | |
908 | constructor, destructor. | |
909 | (linespec_parser): Remove typedef. | |
910 | (~linespec_parser): Rename from linespec_parser_delete. | |
911 | (linespec_lex_to_end, linespec_complete_label) | |
912 | (linespec_complete): Update. | |
913 | (decode_line_full): Remove cleanups. | |
914 | (decode_line_1): Update. | |
915 | ||
61fd3e73 TT |
916 | 2019-01-02 Tom Tromey <tom@tromey.com> |
917 | ||
918 | * python/python-internal.h (inferior_to_inferior_object): Change | |
919 | return type. | |
920 | * python/py-exitedevent.c (create_exited_event_object): Update. | |
921 | * python/py-inferior.c (inferior_to_inferior_object): Return | |
922 | gdbpy_ref. | |
923 | (python_new_inferior, python_inferior_deleted) | |
924 | (thread_to_thread_object, delete_thread_object) | |
925 | (build_inferior_list, gdbpy_selected_inferior): Update. | |
926 | * python/py-infthread.c (create_thread_object): Update. Also fail | |
927 | if inferior_to_inferior_object fails. | |
928 | ||
d20172fc SM |
929 | 2019-01-02 Simon Marchi <simon.marchi@ericsson.com> |
930 | ||
931 | * inferior.h (class inferior) <displaced_step_state>: New field. | |
932 | * infrun.h (struct displaced_step_state): Move here from | |
933 | infrun.c. Initialize fields, add constructor. | |
934 | <inf>: Remove field. | |
935 | <reset>: New method. | |
936 | * infrun.c (struct displaced_step_inferior_state): Move to | |
937 | infrun.h. | |
938 | (displaced_step_inferior_states): Remove. | |
939 | (get_displaced_stepping_state): Adust. | |
940 | (displaced_step_in_progress_any_inferior): Adjust. | |
941 | (displaced_step_in_progress_thread): Adjust. | |
942 | (displaced_step_in_progress): Adjust. | |
943 | (add_displaced_stepping_state): Remove. | |
944 | (get_displaced_step_closure_by_addr): Adjust. | |
945 | (remove_displaced_stepping_state): Remove. | |
946 | (infrun_inferior_exit): Call displaced_step_state.reset. | |
947 | (use_displaced_stepping): Don't check for NULL. | |
948 | (displaced_step_prepare_throw): Call | |
949 | get_displaced_stepping_state. | |
950 | (displaced_step_fixup): Don't check for NULL. | |
951 | (prepare_for_detach): Don't check for NULL. | |
952 | ||
e3319240 PW |
953 | 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
954 | ||
955 | * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm | |
956 | in case of call that did not complete. | |
957 | ||
5d36dfb9 AU |
958 | 2019-01-02 Andrey Utkin <autkin@undo.io> |
959 | ||
960 | * symfile.c (find_separate_debug_file): Fix search of debug files for | |
961 | remote debuggee. | |
962 | ||
8833fbf0 TT |
963 | 2019-01-02 Tom Tromey <tom@tromey.com> |
964 | ||
965 | * python/py-inferior.c (gdbpy_initialize_inferior): Fix | |
966 | indentation. | |
967 | * python/py-frame.c (frapy_older): Remove cast. | |
968 | (frapy_newer): Likewise. | |
969 | * python/py-breakpoint.c (local_setattro): Remove cast. | |
970 | * python/py-arch.c (archpy_name): Remove local variable. | |
971 | * python/py-type.c (gdbpy_lookup_type): Remove cast. | |
972 | ||
4ada3dfd JB |
973 | 2019-01-02 Joel Brobecker <brobecker@adacore.com> |
974 | ||
975 | * unittests/basic_string_view/element_access/char/empty.cc: | |
976 | Fix year range in copyright header. | |
977 | ||
113b7b81 AB |
978 | 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com> |
979 | ||
980 | * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>: | |
981 | Delete. | |
982 | <operator==>: Update with for removed field. | |
983 | <hash>: Likewise. | |
984 | * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to... | |
985 | <isa_features>: ...this. | |
986 | <abi_features>: New field. | |
987 | (riscv_isa_flen): Update comment. | |
988 | (riscv_abi_xlen): New declaration. | |
989 | (riscv_abi_flen): New declaration. | |
990 | * riscv-tdep.c (riscv_isa_xlen): Update to get answer from | |
991 | isa_features. | |
992 | (riscv_abi_xlen): New function. | |
993 | (riscv_isa_flen): Update to get answer from isa_features. | |
994 | (riscv_abi_flen): New function. | |
995 | (riscv_has_fp_abi): Update to get answer from abi_features. | |
996 | (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa | |
997 | xlen and flen. | |
998 | (riscv_call_info) <xlen, flen>: Update comment. | |
999 | (riscv_call_arg_struct): Remove invalid assertions | |
1000 | (riscv_features_from_gdbarch_info): Update now hw_float_abi field | |
1001 | is removed. | |
1002 | (riscv_gdbarch_init): Gather isa features and abi features | |
1003 | separately, ensure both match on the gdbarch when reusing an old | |
1004 | gdbarch. Relax an error check to allow 32-bit abi float to run on | |
1005 | a target with 64-bit float hardware. | |
1006 | ||
b18ca514 PW |
1007 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1008 | ||
1009 | * source.c (search_command_helper): Stop reverse search | |
1010 | when line 1 has been searched. | |
1011 | ||
ec70d8db PW |
1012 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1013 | ||
1014 | * record-full.c (record_full_base_target::close): Rewrite | |
1015 | record_full_core_buf_list free logic. | |
1016 | ||
5b38f9c1 PW |
1017 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1018 | ||
1019 | * break-catch-syscall.c (print_one_catch_syscall): xfree | |
1020 | the last text. | |
1021 | ||
66d91b39 JB |
1022 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
1023 | ||
1024 | * top.c (print_gdb_version): Update Copyright year in version | |
1025 | message. | |
1026 | ||
42a4f53d JB |
1027 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
1028 | ||
1029 | Update copyright year range in all GDB files. | |
1030 | ||
5bbd631d | 1031 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
2139e8dc | 1032 | |
5bbd631d | 1033 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018. |
2139e8dc | 1034 | |
5bbd631d | 1035 | For older changes see ChangeLog-2018. |
c906108c SS |
1036 | \f |
1037 | Local Variables: | |
1038 | mode: change-log | |
1039 | left-margin: 8 | |
1040 | fill-column: 74 | |
1041 | version-control: never | |
57da7796 | 1042 | coding: utf-8 |
c906108c | 1043 | End: |
5bbd631d | 1044 |