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