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