Commit | Line | Data |
---|---|---|
21708325 TT |
1 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * common/next-iterator.h: New file. | |
4 | * objfiles.h (class all_objfiles): New. | |
5 | (struct objfile_iterator): New. | |
6 | ||
669e09f6 PW |
7 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8 | ||
9 | * NEWS: Move the description of the changed "frame", "select-frame", | |
10 | and "info frame" commands to the Changed commands section. | |
11 | ||
041be526 SM |
12 | 2019-01-09 Simon Marchi <simon.marchi@ericsson.com> |
13 | ||
14 | * gdbtypes.c (check_stub_method_group): Remove handling of old | |
15 | mangling schemes. | |
16 | * linespec.c (find_methods): Likewise. | |
17 | * stabsread.c (read_member_functions): Likewise. | |
18 | * valops.c (search_struct_method): Likewise. | |
19 | (value_struct_elt_for_reference): Likewise. | |
20 | * NEWS: Mention this change. | |
21 | ||
0e2a2133 AB |
22 | 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
23 | ||
24 | * cli/cli-cmds.c (list_command): Pass a source_lines_range to | |
25 | print_source_lines. | |
26 | * source.c (print_source_lines_base): Update line number check. | |
27 | (print_source_lines): New function. | |
28 | (source_lines_range::source_lines_range): New function. | |
29 | * source.h (class source_lines_range): New class. | |
30 | (print_source_lines): New declaration. | |
31 | ||
1055a3b4 PW |
32 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
33 | ||
34 | * linespec.c (linespec_state_destructor): Free self->canonical_names. | |
35 | ||
cfeadda5 TT |
36 | 2019-01-08 Tom Tromey <tom@tromey.com> |
37 | Simon Marchi <simon.marchi@ericsson.com> | |
38 | ||
39 | PR gdb/24060 | |
40 | * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE. | |
41 | * ada-lex.l (DOLLAR_VARIABLE): Likewise. | |
42 | * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
43 | * f-exp.y (DOLLAR_VARIABLE): Likewise. | |
44 | * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR. | |
45 | * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
46 | ||
583068ca AB |
47 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
48 | ||
49 | * source.c (select_source_symtab): Move header comment to | |
50 | declaration in source.h. | |
51 | (forget_cached_source_info_for_objfile): Likewise. | |
52 | (forget_cached_source_info): Likewise. | |
53 | (identify_source_line): Likewise. | |
54 | * source.h (identify_source_line): Move declaration from symtab.h | |
55 | and add comment from source.c | |
56 | (print_source_lines): Likewise. | |
57 | (forget_cached_source_info_for_objfile): Likewise. | |
58 | (forget_cached_source_info): Likewise. | |
59 | (select_source_symtab): Likewise. | |
60 | (enum print_source_lines_flag): Move definition from symtab.h. | |
61 | * symtab.h (identify_source_line): Move declaration to source.h. | |
62 | (print_source_lines): Likewise. | |
63 | (forget_cached_source_info_for_objfile): Likewise. | |
64 | (forget_cached_source_info): Likewise. | |
65 | (select_source_symtab): Likewise. | |
66 | (enum print_source_lines_flag): Move definition to source.h. | |
67 | * tui/tui-hooks.c: Add 'source.h' include. | |
68 | ||
ec98a4ad AB |
69 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
70 | ||
71 | * source.c (print_source_lines_base): Handle requests to print | |
72 | reverse line number sequences, and guard against empty lines | |
73 | string. | |
74 | ||
62ea19c1 AB |
75 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
76 | ||
77 | * source.c (print_source_lines_base): Fix skip of '\r' if next | |
78 | character is '\n'. | |
79 | ||
9d30e1fd TT |
80 | 2019-01-06 Tom Tromey <tom@tromey.com> |
81 | ||
82 | * c-exp.y (struct c_parse_state) <macro_original_text, | |
83 | expansion_obstack>: New member. | |
84 | (macro_original_text, expansion_obstack): Remove globals. | |
85 | (scan_macro_expansion, scanning_macro_expansion) | |
86 | (finished_macro_expansion): Update. | |
87 | (scan_macro_cleanup): Remove. | |
88 | (yylex, c_parse): Update. | |
89 | ||
c65bac38 TT |
90 | 2019-01-06 Tom Tromey <tom@tromey.com> |
91 | ||
92 | * c-exp.y (struct c_parse_state) <strings>: New member. | |
93 | (operator_stoken): Update. | |
94 | ||
02e12e38 TT |
95 | 2019-01-06 Tom Tromey <tom@tromey.com> |
96 | ||
97 | * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC. | |
98 | (union type_stack_elt) <typelist_val>: Now a pointer to | |
99 | std::vector. | |
100 | (type_stack_cleanup): Don't declare. | |
101 | (push_typelist): Update. | |
102 | * parse.c (pop_typelist): Return a std::vector. | |
103 | (push_typelist): Take a std::vector. | |
104 | (follow_types): Update. Do not free args. | |
105 | (type_stack_cleanup): Remove. | |
106 | * c-exp.y (struct c_parse_state): New. | |
107 | (cpstate): New global. | |
108 | (type_aggregate_p, exp, ptr_operator, parameter_typelist) | |
109 | (nonempty_typelist): Update. | |
110 | (func_mod): Create a new vector. | |
111 | (c_parse): Create a c_parse_state. | |
112 | (check_parameter_typelist): Do not delete params. | |
113 | (function_method): Update. Do not delete type_list. | |
114 | ||
f097f5ad TT |
115 | 2019-01-06 Tom Tromey <tom@tromey.com> |
116 | ||
117 | PR gdb/28155: | |
118 | * python/py-finishbreakpoint.c (bpfinishpy_init): Use | |
119 | check_typedef. | |
120 | * infcmd.c (finish_command_fsm_should_stop): Use check_typedef. | |
121 | (print_return_value): Likewise. | |
122 | ||
d2adf9f1 TT |
123 | 2019-01-05 Tom Tromey <tom@tromey.com> |
124 | ||
125 | * contrib/cleanup_check.py: Remove. | |
126 | * contrib/gcc-with-excheck: Remove. | |
127 | * contrib/exsummary.py: Remove. | |
128 | * contrib/excheck.py: Remove. | |
129 | ||
2eab46b1 JB |
130 | 2019-01-05 Joel Brobecker <brobecker@adacore.com> |
131 | ||
132 | * thread.c (delete_thread_1): Add gdb_assert that THR is not | |
133 | NULL. Initialize tpprev to NULL instead of assigning it | |
134 | to NULL on the next statement. | |
135 | * windows-nat.c (windows_delete_thread): Remove check for | |
136 | main_thread_id before printing thread exit notifications. | |
137 | (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>: | |
138 | Remove thread ID check against main_thread_id. | |
139 | <CREATE_PROCESS_DEBUG_EVENT>: Remove call to | |
140 | windows_delete_thread. | |
141 | <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread. | |
142 | ||
48c5e7e2 TT |
143 | 2019-01-04 Tom Tromey <tom@tromey.com> |
144 | ||
145 | * compile/compile.c (_initialize_compile): Use upper case for | |
146 | metasyntactic variables. | |
147 | * symmisc.c (_initialize_symmisc): Use upper case for | |
148 | metasyntactic variables. | |
149 | * psymtab.c (_initialize_psymtab): Use upper case for | |
150 | metasyntactic variables. | |
151 | * demangle.c (demangle_command): Use upper case for metasyntactic | |
152 | variables. | |
153 | (_initialize_demangler): Likewise. | |
154 | * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic | |
155 | variables. | |
156 | ||
986041cd TT |
157 | 2019-01-03 Tom Tromey <tom@tromey.com> |
158 | ||
159 | * tui/tui-source.c (tui_set_source_content): Use xstrdup. | |
160 | ||
7c711119 TT |
161 | 2019-01-03 Tom Tromey <tom@tromey.com> |
162 | ||
163 | * python/py-symtab.c (salpy_str): Update. | |
164 | (struct salpy_sal_object) <symtab>: Now a PyObject. | |
165 | (salpy_dealloc): Update. | |
166 | (del_objfile_sal): Use gdbpy_ref. | |
167 | ||
1b20edf0 TT |
168 | 2019-01-03 Tom Tromey <tom@tromey.com> |
169 | ||
170 | * python/py-type.c (convert_field): Use new_reference. Return | |
171 | gdbpy_ref. | |
172 | (make_fielditem): Return gdbpy_ref. | |
173 | (typy_fields): Update. | |
174 | (typy_getitem): Update. | |
175 | (field_name): Return gdbpy_ref. Use new_reference. | |
176 | (typy_iterator_iternext): Update. | |
177 | ||
ea41325b TT |
178 | 2019-01-03 Tom Tromey <tom@tromey.com> |
179 | ||
180 | * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE. | |
181 | ||
2a3c71d6 TT |
182 | 2019-01-03 Tom Tromey <tom@tromey.com> |
183 | ||
184 | * python/py-value.c (valpy_dealloc): Use Py_XDECREF. | |
185 | * python/py-type.c (typy_fields_items): Use gdbpy_ref. | |
186 | * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref. | |
187 | (pspy_set_frame_filters, pspy_set_frame_unwinders) | |
188 | (pspy_set_type_printers): Likewise. | |
189 | * python/py-function.c (fnpy_init): Use gdbpy_ref. | |
190 | * python/py-cmd.c (cmdpy_init): Use gdbpy_ref. | |
191 | * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref. | |
192 | (objfpy_set_frame_filters, objfpy_set_frame_unwinders) | |
193 | (objfpy_set_type_printers): Likewise. | |
194 | ||
5c329e6a TT |
195 | 2019-01-03 Tom Tromey <tom@tromey.com> |
196 | ||
197 | * python/python.c (gdbpy_enter, ~gdbpy_enter): Update. | |
198 | (gdbpy_print_stack): Use gdbpy_err_fetch. | |
199 | * python/python-internal.h (class gdbpy_err_fetch): New class. | |
200 | (class gdbpy_enter) <m_error_type, m_error_value, | |
201 | m_error_traceback>: Remove. | |
202 | <m_error>: New member. | |
203 | (gdbpy_exception_to_string): Don't declare. | |
204 | * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch. | |
205 | * python/py-value.c (convert_value_from_python): Use | |
206 | gdbpy_err_fetch. | |
207 | * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from | |
208 | gdbpy_exception_to_string. | |
209 | (gdbpy_handle_exception): Use gdbpy_err_fetch. | |
210 | * python/py-prettyprint.c (print_stack_unless_memory_error): Use | |
211 | gdbpy_err_fetch. | |
212 | ||
169bb27b AB |
213 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
214 | ||
215 | * linux-nat.c (delete_lwp_cleanup): Delete. | |
216 | (struct lwp_deleter): New struct. | |
217 | (lwp_info_up): New typedef. | |
218 | (linux_nat_target::follow_fork): Delete cleanup, and make use of | |
219 | lwp_info_up. | |
220 | ||
a07c8880 AB |
221 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
222 | ||
223 | * linux-fork.c (class scoped_switch_fork_info): New class. | |
224 | (inferior_call_waitpid): Update to use scoped_switch_fork_info. | |
225 | ||
26089c49 AB |
226 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
227 | ||
228 | * valops.c (find_overload_match): Remove use of null_cleanup, and | |
229 | calls to do_cleanups. | |
230 | ||
06d3e5b0 AB |
231 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
232 | ||
233 | * compile/compile-cplus-types.c | |
234 | (compile_cplus_instance::decl_name): Handle changes to | |
235 | cp_func_name. | |
236 | * cp-support.c (cp_func_name): Update header comment, update | |
237 | return type. | |
238 | * cp-support.h (cp_func_name): Update return type in declaration. | |
239 | * valops.c (find_overload_match): Move temp_func local to top | |
240 | level of function and change its type. Use temp_func to hold and | |
241 | delete temporary string obtained from cp_func_name. | |
242 | ||
66644cd3 AB |
243 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
244 | ||
245 | * remote.c (remote_target::remote_check_symbols): Convert `msg` to | |
246 | gdb::char_vector, remove cleanup, and update uses of `msg`. | |
247 | ||
592d8c0a JW |
248 | 2019-01-03 Jim Wilson <jimw@sifive.com> |
249 | ||
250 | * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8. | |
251 | ||
c55d06ec TT |
252 | 2019-01-02 Tom Tromey <tom@tromey.com> |
253 | ||
254 | * xml-tdesc.c (xml_cache): Hold a target_desc_up. | |
255 | (tdesc_parse_xml): Remove cleanups. | |
256 | * target-descriptions.h (make_cleanup_free_target_description): | |
257 | Don't declare. | |
258 | (target_desc_deleter): New struct. | |
259 | (target_desc_up): New typedef. | |
260 | * target-descriptions.c (target_desc_deleter::operator()): Rename | |
261 | from free_target_description. | |
262 | (make_cleanup_free_target_description): Remove. | |
263 | ||
3a6ae42d TT |
264 | 2019-01-02 Tom Tromey <tom@tromey.com> |
265 | ||
266 | * linespec.c (struct linespec_parser): Rename from ls_parser. Add | |
267 | constructor, destructor. | |
268 | (linespec_parser): Remove typedef. | |
269 | (~linespec_parser): Rename from linespec_parser_delete. | |
270 | (linespec_lex_to_end, linespec_complete_label) | |
271 | (linespec_complete): Update. | |
272 | (decode_line_full): Remove cleanups. | |
273 | (decode_line_1): Update. | |
274 | ||
61fd3e73 TT |
275 | 2019-01-02 Tom Tromey <tom@tromey.com> |
276 | ||
277 | * python/python-internal.h (inferior_to_inferior_object): Change | |
278 | return type. | |
279 | * python/py-exitedevent.c (create_exited_event_object): Update. | |
280 | * python/py-inferior.c (inferior_to_inferior_object): Return | |
281 | gdbpy_ref. | |
282 | (python_new_inferior, python_inferior_deleted) | |
283 | (thread_to_thread_object, delete_thread_object) | |
284 | (build_inferior_list, gdbpy_selected_inferior): Update. | |
285 | * python/py-infthread.c (create_thread_object): Update. Also fail | |
286 | if inferior_to_inferior_object fails. | |
287 | ||
d20172fc SM |
288 | 2019-01-02 Simon Marchi <simon.marchi@ericsson.com> |
289 | ||
290 | * inferior.h (class inferior) <displaced_step_state>: New field. | |
291 | * infrun.h (struct displaced_step_state): Move here from | |
292 | infrun.c. Initialize fields, add constructor. | |
293 | <inf>: Remove field. | |
294 | <reset>: New method. | |
295 | * infrun.c (struct displaced_step_inferior_state): Move to | |
296 | infrun.h. | |
297 | (displaced_step_inferior_states): Remove. | |
298 | (get_displaced_stepping_state): Adust. | |
299 | (displaced_step_in_progress_any_inferior): Adjust. | |
300 | (displaced_step_in_progress_thread): Adjust. | |
301 | (displaced_step_in_progress): Adjust. | |
302 | (add_displaced_stepping_state): Remove. | |
303 | (get_displaced_step_closure_by_addr): Adjust. | |
304 | (remove_displaced_stepping_state): Remove. | |
305 | (infrun_inferior_exit): Call displaced_step_state.reset. | |
306 | (use_displaced_stepping): Don't check for NULL. | |
307 | (displaced_step_prepare_throw): Call | |
308 | get_displaced_stepping_state. | |
309 | (displaced_step_fixup): Don't check for NULL. | |
310 | (prepare_for_detach): Don't check for NULL. | |
311 | ||
e3319240 PW |
312 | 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
313 | ||
314 | * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm | |
315 | in case of call that did not complete. | |
316 | ||
5d36dfb9 AU |
317 | 2019-01-02 Andrey Utkin <autkin@undo.io> |
318 | ||
319 | * symfile.c (find_separate_debug_file): Fix search of debug files for | |
320 | remote debuggee. | |
321 | ||
8833fbf0 TT |
322 | 2019-01-02 Tom Tromey <tom@tromey.com> |
323 | ||
324 | * python/py-inferior.c (gdbpy_initialize_inferior): Fix | |
325 | indentation. | |
326 | * python/py-frame.c (frapy_older): Remove cast. | |
327 | (frapy_newer): Likewise. | |
328 | * python/py-breakpoint.c (local_setattro): Remove cast. | |
329 | * python/py-arch.c (archpy_name): Remove local variable. | |
330 | * python/py-type.c (gdbpy_lookup_type): Remove cast. | |
331 | ||
4ada3dfd JB |
332 | 2019-01-02 Joel Brobecker <brobecker@adacore.com> |
333 | ||
334 | * unittests/basic_string_view/element_access/char/empty.cc: | |
335 | Fix year range in copyright header. | |
336 | ||
113b7b81 AB |
337 | 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com> |
338 | ||
339 | * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>: | |
340 | Delete. | |
341 | <operator==>: Update with for removed field. | |
342 | <hash>: Likewise. | |
343 | * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to... | |
344 | <isa_features>: ...this. | |
345 | <abi_features>: New field. | |
346 | (riscv_isa_flen): Update comment. | |
347 | (riscv_abi_xlen): New declaration. | |
348 | (riscv_abi_flen): New declaration. | |
349 | * riscv-tdep.c (riscv_isa_xlen): Update to get answer from | |
350 | isa_features. | |
351 | (riscv_abi_xlen): New function. | |
352 | (riscv_isa_flen): Update to get answer from isa_features. | |
353 | (riscv_abi_flen): New function. | |
354 | (riscv_has_fp_abi): Update to get answer from abi_features. | |
355 | (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa | |
356 | xlen and flen. | |
357 | (riscv_call_info) <xlen, flen>: Update comment. | |
358 | (riscv_call_arg_struct): Remove invalid assertions | |
359 | (riscv_features_from_gdbarch_info): Update now hw_float_abi field | |
360 | is removed. | |
361 | (riscv_gdbarch_init): Gather isa features and abi features | |
362 | separately, ensure both match on the gdbarch when reusing an old | |
363 | gdbarch. Relax an error check to allow 32-bit abi float to run on | |
364 | a target with 64-bit float hardware. | |
365 | ||
b18ca514 PW |
366 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
367 | ||
368 | * source.c (search_command_helper): Stop reverse search | |
369 | when line 1 has been searched. | |
370 | ||
ec70d8db PW |
371 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
372 | ||
373 | * record-full.c (record_full_base_target::close): Rewrite | |
374 | record_full_core_buf_list free logic. | |
375 | ||
5b38f9c1 PW |
376 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
377 | ||
378 | * break-catch-syscall.c (print_one_catch_syscall): xfree | |
379 | the last text. | |
380 | ||
66d91b39 JB |
381 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
382 | ||
383 | * top.c (print_gdb_version): Update Copyright year in version | |
384 | message. | |
385 | ||
42a4f53d JB |
386 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
387 | ||
388 | Update copyright year range in all GDB files. | |
389 | ||
5bbd631d | 390 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
2139e8dc | 391 | |
5bbd631d | 392 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018. |
2139e8dc | 393 | |
5bbd631d | 394 | For older changes see ChangeLog-2018. |
c906108c SS |
395 | \f |
396 | Local Variables: | |
397 | mode: change-log | |
398 | left-margin: 8 | |
399 | fill-column: 74 | |
400 | version-control: never | |
57da7796 | 401 | coding: utf-8 |
c906108c | 402 | End: |
5bbd631d | 403 |