Avoid questionable casts in py-symtab.c
[external/binutils.git] / gdb / ChangeLog
1 2019-01-03  Tom Tromey  <tom@tromey.com>
2
3         * python/py-symtab.c (salpy_str): Update.
4         (struct salpy_sal_object) <symtab>: Now a PyObject.
5         (salpy_dealloc): Update.
6         (del_objfile_sal): Use gdbpy_ref.
7
8 2019-01-03  Tom Tromey  <tom@tromey.com>
9
10         * python/py-type.c (convert_field): Use new_reference.  Return
11         gdbpy_ref.
12         (make_fielditem): Return gdbpy_ref.
13         (typy_fields): Update.
14         (typy_getitem): Update.
15         (field_name): Return gdbpy_ref.  Use new_reference.
16         (typy_iterator_iternext): Update.
17
18 2019-01-03  Tom Tromey  <tom@tromey.com>
19
20         * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
21
22 2019-01-03  Tom Tromey  <tom@tromey.com>
23
24         * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
25         * python/py-type.c (typy_fields_items): Use gdbpy_ref.
26         * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
27         (pspy_set_frame_filters, pspy_set_frame_unwinders)
28         (pspy_set_type_printers): Likewise.
29         * python/py-function.c (fnpy_init): Use gdbpy_ref.
30         * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
31         * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
32         (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
33         (objfpy_set_type_printers): Likewise.
34
35 2019-01-03  Tom Tromey  <tom@tromey.com>
36
37         * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
38         (gdbpy_print_stack): Use gdbpy_err_fetch.
39         * python/python-internal.h (class gdbpy_err_fetch): New class.
40         (class gdbpy_enter) <m_error_type, m_error_value,
41         m_error_traceback>: Remove.
42         <m_error>: New member.
43         (gdbpy_exception_to_string): Don't declare.
44         * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
45         * python/py-value.c (convert_value_from_python): Use
46         gdbpy_err_fetch.
47         * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
48         gdbpy_exception_to_string.
49         (gdbpy_handle_exception): Use gdbpy_err_fetch.
50         * python/py-prettyprint.c (print_stack_unless_memory_error): Use
51         gdbpy_err_fetch.
52
53 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
54
55         * linux-nat.c (delete_lwp_cleanup): Delete.
56         (struct lwp_deleter): New struct.
57         (lwp_info_up): New typedef.
58         (linux_nat_target::follow_fork): Delete cleanup, and make use of
59         lwp_info_up.
60
61 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
62
63         * linux-fork.c (class scoped_switch_fork_info): New class.
64         (inferior_call_waitpid): Update to use scoped_switch_fork_info.
65
66 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
67
68         * valops.c (find_overload_match): Remove use of null_cleanup, and
69         calls to do_cleanups.
70
71 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
72
73         * compile/compile-cplus-types.c
74         (compile_cplus_instance::decl_name): Handle changes to
75         cp_func_name.
76         * cp-support.c (cp_func_name): Update header comment, update
77         return type.
78         * cp-support.h (cp_func_name): Update return type in declaration.
79         * valops.c (find_overload_match): Move temp_func local to top
80         level of function and change its type.  Use temp_func to hold and
81         delete temporary string obtained from cp_func_name.
82
83 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
84
85         * remote.c (remote_target::remote_check_symbols): Convert `msg` to
86         gdb::char_vector, remove cleanup, and update uses of `msg`.
87
88 2019-01-03  Jim Wilson  <jimw@sifive.com>
89
90         * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
91
92 2019-01-02  Tom Tromey  <tom@tromey.com>
93
94         * xml-tdesc.c (xml_cache): Hold a target_desc_up.
95         (tdesc_parse_xml): Remove cleanups.
96         * target-descriptions.h (make_cleanup_free_target_description):
97         Don't declare.
98         (target_desc_deleter): New struct.
99         (target_desc_up): New typedef.
100         * target-descriptions.c (target_desc_deleter::operator()): Rename
101         from free_target_description.
102         (make_cleanup_free_target_description): Remove.
103
104 2019-01-02  Tom Tromey  <tom@tromey.com>
105
106         * linespec.c (struct linespec_parser): Rename from ls_parser.  Add
107         constructor, destructor.
108         (linespec_parser): Remove typedef.
109         (~linespec_parser): Rename from linespec_parser_delete.
110         (linespec_lex_to_end, linespec_complete_label)
111         (linespec_complete): Update.
112         (decode_line_full): Remove cleanups.
113         (decode_line_1): Update.
114
115 2019-01-02  Tom Tromey  <tom@tromey.com>
116
117         * python/python-internal.h (inferior_to_inferior_object): Change
118         return type.
119         * python/py-exitedevent.c (create_exited_event_object): Update.
120         * python/py-inferior.c (inferior_to_inferior_object): Return
121         gdbpy_ref.
122         (python_new_inferior, python_inferior_deleted)
123         (thread_to_thread_object, delete_thread_object)
124         (build_inferior_list, gdbpy_selected_inferior): Update.
125         * python/py-infthread.c (create_thread_object): Update.  Also fail
126         if inferior_to_inferior_object fails.
127
128 2019-01-02  Simon Marchi  <simon.marchi@ericsson.com>
129
130         * inferior.h (class inferior) <displaced_step_state>: New field.
131         * infrun.h (struct displaced_step_state): Move here from
132         infrun.c.  Initialize fields, add constructor.
133         <inf>: Remove field.
134         <reset>: New method.
135         * infrun.c (struct displaced_step_inferior_state): Move to
136         infrun.h.
137         (displaced_step_inferior_states): Remove.
138         (get_displaced_stepping_state): Adust.
139         (displaced_step_in_progress_any_inferior): Adjust.
140         (displaced_step_in_progress_thread): Adjust.
141         (displaced_step_in_progress): Adjust.
142         (add_displaced_stepping_state): Remove.
143         (get_displaced_step_closure_by_addr): Adjust.
144         (remove_displaced_stepping_state): Remove.
145         (infrun_inferior_exit): Call displaced_step_state.reset.
146         (use_displaced_stepping): Don't check for NULL.
147         (displaced_step_prepare_throw): Call
148         get_displaced_stepping_state.
149         (displaced_step_fixup): Don't check for NULL.
150         (prepare_for_detach): Don't check for NULL.
151
152 2019-01-02  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
153
154         * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
155          in case of call that did not complete.
156
157 2019-01-02  Andrey Utkin  <autkin@undo.io>
158
159         * symfile.c (find_separate_debug_file): Fix search of debug files for
160         remote debuggee.
161
162 2019-01-02  Tom Tromey  <tom@tromey.com>
163
164         * python/py-inferior.c (gdbpy_initialize_inferior): Fix
165         indentation.
166         * python/py-frame.c (frapy_older): Remove cast.
167         (frapy_newer): Likewise.
168         * python/py-breakpoint.c (local_setattro): Remove cast.
169         * python/py-arch.c (archpy_name): Remove local variable.
170         * python/py-type.c (gdbpy_lookup_type): Remove cast.
171
172 2019-01-02  Joel Brobecker  <brobecker@adacore.com>
173
174         * unittests/basic_string_view/element_access/char/empty.cc:
175         Fix year range in copyright header.
176
177 2019-01-01  Andrew Burgess  <andrew.burgess@embecosm.com>
178
179         * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
180         Delete.
181         <operator==>: Update with for removed field.
182         <hash>: Likewise.
183         * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
184         <isa_features>: ...this.
185         <abi_features>: New field.
186         (riscv_isa_flen): Update comment.
187         (riscv_abi_xlen): New declaration.
188         (riscv_abi_flen): New declaration.
189         * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
190         isa_features.
191         (riscv_abi_xlen): New function.
192         (riscv_isa_flen): Update to get answer from isa_features.
193         (riscv_abi_flen): New function.
194         (riscv_has_fp_abi): Update to get answer from abi_features.
195         (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
196         xlen and flen.
197         (riscv_call_info) <xlen, flen>: Update comment.
198         (riscv_call_arg_struct): Remove invalid assertions
199         (riscv_features_from_gdbarch_info): Update now hw_float_abi field
200         is removed.
201         (riscv_gdbarch_init): Gather isa features and abi features
202         separately, ensure both match on the gdbarch when reusing an old
203         gdbarch.  Relax an error check to allow 32-bit abi float to run on
204         a target with 64-bit float hardware.
205
206 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
207
208         * source.c (search_command_helper): Stop reverse search
209         when line 1 has been searched.
210
211 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
212
213         * record-full.c (record_full_base_target::close): Rewrite
214         record_full_core_buf_list free logic.
215
216 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
217
218         * break-catch-syscall.c (print_one_catch_syscall): xfree
219         the last text.
220
221 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
222
223         * top.c (print_gdb_version): Update Copyright year in version
224         message.
225
226 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
227
228         Update copyright year range in all GDB files.
229
230 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
231
232         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
233
234 For older changes see ChangeLog-2018.
235 \f
236 Local Variables:
237 mode: change-log
238 left-margin: 8
239 fill-column: 74
240 version-control: never
241 coding: utf-8
242 End:
243