1 2019-01-05 Joel Brobecker <brobecker@adacore.com>
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.
14 2019-01-04 Tom Tromey <tom@tromey.com>
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
24 (_initialize_demangler): Likewise.
25 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
28 2019-01-03 Tom Tromey <tom@tromey.com>
30 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
32 2019-01-03 Tom Tromey <tom@tromey.com>
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.
39 2019-01-03 Tom Tromey <tom@tromey.com>
41 * python/py-type.c (convert_field): Use new_reference. Return
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.
49 2019-01-03 Tom Tromey <tom@tromey.com>
51 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
53 2019-01-03 Tom Tromey <tom@tromey.com>
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.
66 2019-01-03 Tom Tromey <tom@tromey.com>
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
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
84 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
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
92 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
94 * linux-fork.c (class scoped_switch_fork_info): New class.
95 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
97 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
99 * valops.c (find_overload_match): Remove use of null_cleanup, and
100 calls to do_cleanups.
102 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
104 * compile/compile-cplus-types.c
105 (compile_cplus_instance::decl_name): Handle changes to
107 * cp-support.c (cp_func_name): Update header comment, update
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.
114 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
116 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
117 gdb::char_vector, remove cleanup, and update uses of `msg`.
119 2019-01-03 Jim Wilson <jimw@sifive.com>
121 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
123 2019-01-02 Tom Tromey <tom@tromey.com>
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):
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.
135 2019-01-02 Tom Tromey <tom@tromey.com>
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.
146 2019-01-02 Tom Tromey <tom@tromey.com>
148 * python/python-internal.h (inferior_to_inferior_object): Change
150 * python/py-exitedevent.c (create_exited_event_object): Update.
151 * python/py-inferior.c (inferior_to_inferior_object): Return
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.
159 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
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.
166 * infrun.c (struct displaced_step_inferior_state): Move to
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.
183 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
185 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
186 in case of call that did not complete.
188 2019-01-02 Andrey Utkin <autkin@undo.io>
190 * symfile.c (find_separate_debug_file): Fix search of debug files for
193 2019-01-02 Tom Tromey <tom@tromey.com>
195 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
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.
203 2019-01-02 Joel Brobecker <brobecker@adacore.com>
205 * unittests/basic_string_view/element_access/char/empty.cc:
206 Fix year range in copyright header.
208 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
210 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
212 <operator==>: Update with for removed field.
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
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
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
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.
237 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
239 * source.c (search_command_helper): Stop reverse search
240 when line 1 has been searched.
242 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
244 * record-full.c (record_full_base_target::close): Rewrite
245 record_full_core_buf_list free logic.
247 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
249 * break-catch-syscall.c (print_one_catch_syscall): xfree
252 2019-01-01 Joel Brobecker <brobecker@adacore.com>
254 * top.c (print_gdb_version): Update Copyright year in version
257 2019-01-01 Joel Brobecker <brobecker@adacore.com>
259 Update copyright year range in all GDB files.
261 2019-01-01 Joel Brobecker <brobecker@adacore.com>
263 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
265 For older changes see ChangeLog-2018.
271 version-control: never