Remove string-related cleanup from c-exp.y
[external/binutils.git] / gdb / ChangeLog
1 2019-01-06  Tom Tromey  <tom@tromey.com>
2
3         * c-exp.y (struct c_parse_state) <strings>: New member.
4         (operator_stoken): Update.
5
6 2019-01-06  Tom Tromey  <tom@tromey.com>
7
8         * parser-defs.h (type_ptr): Remove typedef.  Don't declare VEC.
9         (union type_stack_elt) <typelist_val>: Now a pointer to
10         std::vector.
11         (type_stack_cleanup): Don't declare.
12         (push_typelist): Update.
13         * parse.c (pop_typelist): Return a std::vector.
14         (push_typelist): Take a std::vector.
15         (follow_types): Update.  Do not free args.
16         (type_stack_cleanup): Remove.
17         * c-exp.y (struct c_parse_state): New.
18         (cpstate): New global.
19         (type_aggregate_p, exp, ptr_operator, parameter_typelist)
20         (nonempty_typelist): Update.
21         (func_mod): Create a new vector.
22         (c_parse): Create a c_parse_state.
23         (check_parameter_typelist): Do not delete params.
24         (function_method): Update.  Do not delete type_list.
25
26 2019-01-06  Tom Tromey  <tom@tromey.com>
27
28         PR gdb/28155:
29         * python/py-finishbreakpoint.c (bpfinishpy_init): Use
30         check_typedef.
31         * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
32         (print_return_value): Likewise.
33
34 2019-01-05  Tom Tromey  <tom@tromey.com>
35
36         * contrib/cleanup_check.py: Remove.
37         * contrib/gcc-with-excheck: Remove.
38         * contrib/exsummary.py: Remove.
39         * contrib/excheck.py: Remove.
40
41 2019-01-05  Joel Brobecker  <brobecker@adacore.com>
42
43         * thread.c (delete_thread_1): Add gdb_assert that THR is not
44         NULL. Initialize tpprev to NULL instead of assigning it
45         to NULL on the next statement.
46         * windows-nat.c (windows_delete_thread): Remove check for
47         main_thread_id before printing thread exit notifications.
48         (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
49         Remove thread ID check against main_thread_id.
50         <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
51         windows_delete_thread.
52         <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
53
54 2019-01-04  Tom Tromey  <tom@tromey.com>
55
56         * compile/compile.c (_initialize_compile): Use upper case for
57         metasyntactic variables.
58         * symmisc.c (_initialize_symmisc): Use upper case for
59         metasyntactic variables.
60         * psymtab.c (_initialize_psymtab): Use upper case for
61         metasyntactic variables.
62         * demangle.c (demangle_command): Use upper case for metasyntactic
63         variables.
64         (_initialize_demangler): Likewise.
65         * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
66         variables.
67
68 2019-01-03  Tom Tromey  <tom@tromey.com>
69
70         * tui/tui-source.c (tui_set_source_content): Use xstrdup.
71
72 2019-01-03  Tom Tromey  <tom@tromey.com>
73
74         * python/py-symtab.c (salpy_str): Update.
75         (struct salpy_sal_object) <symtab>: Now a PyObject.
76         (salpy_dealloc): Update.
77         (del_objfile_sal): Use gdbpy_ref.
78
79 2019-01-03  Tom Tromey  <tom@tromey.com>
80
81         * python/py-type.c (convert_field): Use new_reference.  Return
82         gdbpy_ref.
83         (make_fielditem): Return gdbpy_ref.
84         (typy_fields): Update.
85         (typy_getitem): Update.
86         (field_name): Return gdbpy_ref.  Use new_reference.
87         (typy_iterator_iternext): Update.
88
89 2019-01-03  Tom Tromey  <tom@tromey.com>
90
91         * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
92
93 2019-01-03  Tom Tromey  <tom@tromey.com>
94
95         * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
96         * python/py-type.c (typy_fields_items): Use gdbpy_ref.
97         * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
98         (pspy_set_frame_filters, pspy_set_frame_unwinders)
99         (pspy_set_type_printers): Likewise.
100         * python/py-function.c (fnpy_init): Use gdbpy_ref.
101         * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
102         * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
103         (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
104         (objfpy_set_type_printers): Likewise.
105
106 2019-01-03  Tom Tromey  <tom@tromey.com>
107
108         * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
109         (gdbpy_print_stack): Use gdbpy_err_fetch.
110         * python/python-internal.h (class gdbpy_err_fetch): New class.
111         (class gdbpy_enter) <m_error_type, m_error_value,
112         m_error_traceback>: Remove.
113         <m_error>: New member.
114         (gdbpy_exception_to_string): Don't declare.
115         * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
116         * python/py-value.c (convert_value_from_python): Use
117         gdbpy_err_fetch.
118         * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
119         gdbpy_exception_to_string.
120         (gdbpy_handle_exception): Use gdbpy_err_fetch.
121         * python/py-prettyprint.c (print_stack_unless_memory_error): Use
122         gdbpy_err_fetch.
123
124 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
125
126         * linux-nat.c (delete_lwp_cleanup): Delete.
127         (struct lwp_deleter): New struct.
128         (lwp_info_up): New typedef.
129         (linux_nat_target::follow_fork): Delete cleanup, and make use of
130         lwp_info_up.
131
132 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
133
134         * linux-fork.c (class scoped_switch_fork_info): New class.
135         (inferior_call_waitpid): Update to use scoped_switch_fork_info.
136
137 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
138
139         * valops.c (find_overload_match): Remove use of null_cleanup, and
140         calls to do_cleanups.
141
142 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
143
144         * compile/compile-cplus-types.c
145         (compile_cplus_instance::decl_name): Handle changes to
146         cp_func_name.
147         * cp-support.c (cp_func_name): Update header comment, update
148         return type.
149         * cp-support.h (cp_func_name): Update return type in declaration.
150         * valops.c (find_overload_match): Move temp_func local to top
151         level of function and change its type.  Use temp_func to hold and
152         delete temporary string obtained from cp_func_name.
153
154 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
155
156         * remote.c (remote_target::remote_check_symbols): Convert `msg` to
157         gdb::char_vector, remove cleanup, and update uses of `msg`.
158
159 2019-01-03  Jim Wilson  <jimw@sifive.com>
160
161         * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
162
163 2019-01-02  Tom Tromey  <tom@tromey.com>
164
165         * xml-tdesc.c (xml_cache): Hold a target_desc_up.
166         (tdesc_parse_xml): Remove cleanups.
167         * target-descriptions.h (make_cleanup_free_target_description):
168         Don't declare.
169         (target_desc_deleter): New struct.
170         (target_desc_up): New typedef.
171         * target-descriptions.c (target_desc_deleter::operator()): Rename
172         from free_target_description.
173         (make_cleanup_free_target_description): Remove.
174
175 2019-01-02  Tom Tromey  <tom@tromey.com>
176
177         * linespec.c (struct linespec_parser): Rename from ls_parser.  Add
178         constructor, destructor.
179         (linespec_parser): Remove typedef.
180         (~linespec_parser): Rename from linespec_parser_delete.
181         (linespec_lex_to_end, linespec_complete_label)
182         (linespec_complete): Update.
183         (decode_line_full): Remove cleanups.
184         (decode_line_1): Update.
185
186 2019-01-02  Tom Tromey  <tom@tromey.com>
187
188         * python/python-internal.h (inferior_to_inferior_object): Change
189         return type.
190         * python/py-exitedevent.c (create_exited_event_object): Update.
191         * python/py-inferior.c (inferior_to_inferior_object): Return
192         gdbpy_ref.
193         (python_new_inferior, python_inferior_deleted)
194         (thread_to_thread_object, delete_thread_object)
195         (build_inferior_list, gdbpy_selected_inferior): Update.
196         * python/py-infthread.c (create_thread_object): Update.  Also fail
197         if inferior_to_inferior_object fails.
198
199 2019-01-02  Simon Marchi  <simon.marchi@ericsson.com>
200
201         * inferior.h (class inferior) <displaced_step_state>: New field.
202         * infrun.h (struct displaced_step_state): Move here from
203         infrun.c.  Initialize fields, add constructor.
204         <inf>: Remove field.
205         <reset>: New method.
206         * infrun.c (struct displaced_step_inferior_state): Move to
207         infrun.h.
208         (displaced_step_inferior_states): Remove.
209         (get_displaced_stepping_state): Adust.
210         (displaced_step_in_progress_any_inferior): Adjust.
211         (displaced_step_in_progress_thread): Adjust.
212         (displaced_step_in_progress): Adjust.
213         (add_displaced_stepping_state): Remove.
214         (get_displaced_step_closure_by_addr): Adjust.
215         (remove_displaced_stepping_state): Remove.
216         (infrun_inferior_exit): Call displaced_step_state.reset.
217         (use_displaced_stepping): Don't check for NULL.
218         (displaced_step_prepare_throw): Call
219         get_displaced_stepping_state.
220         (displaced_step_fixup): Don't check for NULL.
221         (prepare_for_detach): Don't check for NULL.
222
223 2019-01-02  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
224
225         * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
226          in case of call that did not complete.
227
228 2019-01-02  Andrey Utkin  <autkin@undo.io>
229
230         * symfile.c (find_separate_debug_file): Fix search of debug files for
231         remote debuggee.
232
233 2019-01-02  Tom Tromey  <tom@tromey.com>
234
235         * python/py-inferior.c (gdbpy_initialize_inferior): Fix
236         indentation.
237         * python/py-frame.c (frapy_older): Remove cast.
238         (frapy_newer): Likewise.
239         * python/py-breakpoint.c (local_setattro): Remove cast.
240         * python/py-arch.c (archpy_name): Remove local variable.
241         * python/py-type.c (gdbpy_lookup_type): Remove cast.
242
243 2019-01-02  Joel Brobecker  <brobecker@adacore.com>
244
245         * unittests/basic_string_view/element_access/char/empty.cc:
246         Fix year range in copyright header.
247
248 2019-01-01  Andrew Burgess  <andrew.burgess@embecosm.com>
249
250         * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
251         Delete.
252         <operator==>: Update with for removed field.
253         <hash>: Likewise.
254         * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
255         <isa_features>: ...this.
256         <abi_features>: New field.
257         (riscv_isa_flen): Update comment.
258         (riscv_abi_xlen): New declaration.
259         (riscv_abi_flen): New declaration.
260         * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
261         isa_features.
262         (riscv_abi_xlen): New function.
263         (riscv_isa_flen): Update to get answer from isa_features.
264         (riscv_abi_flen): New function.
265         (riscv_has_fp_abi): Update to get answer from abi_features.
266         (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
267         xlen and flen.
268         (riscv_call_info) <xlen, flen>: Update comment.
269         (riscv_call_arg_struct): Remove invalid assertions
270         (riscv_features_from_gdbarch_info): Update now hw_float_abi field
271         is removed.
272         (riscv_gdbarch_init): Gather isa features and abi features
273         separately, ensure both match on the gdbarch when reusing an old
274         gdbarch.  Relax an error check to allow 32-bit abi float to run on
275         a target with 64-bit float hardware.
276
277 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
278
279         * source.c (search_command_helper): Stop reverse search
280         when line 1 has been searched.
281
282 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
283
284         * record-full.c (record_full_base_target::close): Rewrite
285         record_full_core_buf_list free logic.
286
287 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
288
289         * break-catch-syscall.c (print_one_catch_syscall): xfree
290         the last text.
291
292 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
293
294         * top.c (print_gdb_version): Update Copyright year in version
295         message.
296
297 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
298
299         Update copyright year range in all GDB files.
300
301 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
302
303         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
304
305 For older changes see ChangeLog-2018.
306 \f
307 Local Variables:
308 mode: change-log
309 left-margin: 8
310 fill-column: 74
311 version-control: never
312 coding: utf-8
313 End:
314