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