Commit | Line | Data |
---|---|---|
c6386875 SM |
1 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
2 | ||
3 | * target.c (target_fetch_registers, target_store_registers): Add | |
4 | assert. | |
5 | ||
ddaaf0fb SM |
6 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
7 | ||
8 | * regcache.h (regcache_get_ptid): New function. | |
9 | * regcache.c (regcache_get_ptid): New function. | |
10 | ||
b9da89d1 | 11 | 2017-03-13 Mark Wielaard <mark@klomp.org> |
12 | ||
13 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. | |
14 | ||
5f4d1085 KS |
15 | 2017-03-10 Keith Seitz <keiths@redhat.com> |
16 | ||
17 | PR c++/8218 | |
18 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. | |
19 | ||
c65d6b55 PA |
20 | 2017-03-08 Pedro Alves <palves@redhat.com> |
21 | ||
22 | PR gdb/18360 | |
23 | * infrun.c (start_step_over, do_target_resume, resume) | |
24 | (restart_threads): Assert we're not resuming a thread that is | |
25 | meant to be stopped. | |
26 | (infrun_thread_stop_requested_callback): Delete. | |
27 | (infrun_thread_stop_requested): If the thread is internally | |
28 | stopped, queue a pending stop event and clear the thread's | |
29 | inline-frame state. | |
30 | (handle_stop_requested): New function. | |
31 | (handle_syscall_event, handle_inferior_event_1): Use | |
32 | handle_stop_requested. | |
33 | (handle_stop_requested): New function. | |
34 | (handle_signal_stop): Set the thread's stop_signal here instead of | |
35 | at caller. | |
36 | (finish_step_over): Clear step over info unconditionally. | |
37 | (handle_signal_stop): If the user had interrupted the event | |
38 | thread, consider the stop a random signal. | |
39 | (handle_signal_stop) <signal arrived while stepping over | |
40 | breakpoint>: Don't restart threads here. | |
41 | (stop_waiting): Don't clear step-over info here. | |
42 | ||
15c22686 PA |
43 | 2017-03-08 Pedro Alves <palves@redhat.com> |
44 | ||
45 | PR 21206 | |
46 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull | |
47 | goes to argument 2, not 1. | |
48 | ||
6e5d74e7 PA |
49 | 2017-03-08 Pedro Alves <palves@redhat.com> |
50 | ||
51 | PR cli/21218 | |
52 | * top.c (gdb_readline_wrapper): Avoid passing NULL to | |
53 | display_gdb_prompt. | |
54 | (command_line_input): Add comment. | |
55 | ||
9753a2f6 PA |
56 | 2017-03-08 Pedro Alves <palves@redhat.com> |
57 | ||
58 | PR tui/21216 | |
59 | * tui/tui-file.c (tui_file::write): New. | |
60 | * tui/tui-file.h (tui_file): Override "write". | |
61 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, | |
62 | factored out from ... | |
63 | (tui_puts): ... here. | |
64 | (tui_putc): Use them. | |
65 | (tui_write): New function. | |
66 | * tui/tui-io.h (tui_write): Declare. | |
67 | ||
1672e0d9 SDJ |
68 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
69 | ||
70 | * Makefile.in (SFILES): Replace "environ.c" with | |
71 | "common/environ.c". | |
72 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". | |
73 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved | |
74 | to... | |
75 | * common/environ.c: ... here. | |
76 | * environ.h: Moved to... | |
77 | * common/environ.h: ... here. | |
78 | ||
f7bb4e3a PB |
79 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
80 | ||
81 | * gdbarch.sh (pstring_ptr): New static function. | |
82 | (gdbarch_disassembler_options): Use it. | |
83 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, | |
84 | not valid_disassembler_option->name. | |
85 | * gdbarch.c: Regenerate. | |
86 | ||
e45ced6c PB |
87 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
88 | ||
89 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. | |
90 | ||
5f6fd321 PA |
91 | 2017-03-07 Pedro Alves <palves@redhat.com> |
92 | ||
93 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. | |
94 | ||
6dbb839a | 95 | 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com> |
4a612d6f WT |
96 | |
97 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. | |
98 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. | |
99 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. | |
6dbb839a | 100 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
4a612d6f | 101 | |
d274ecf4 SM |
102 | 2017-03-06 Simon Marchi <simon.marchi@ericsson.com> |
103 | ||
104 | * xtensa-linux-nat.c (fetch_gregs): Remove const. | |
105 | ||
df97be55 SM |
106 | 2017-03-03 Simon Marchi <simon.marchi@ericsson.com> |
107 | ||
108 | * remote.c (remote_add_target_side_commands): Use range-based | |
109 | for loop. | |
110 | ||
7d45f3df YQ |
111 | 2017-03-03 Yao Qi <yao.qi@linaro.org> |
112 | ||
113 | PR gdb/21165 | |
114 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if | |
115 | value is lazy. | |
116 | * valprint.c (common_val_print): Likewise. | |
117 | ||
65b48a81 PB |
118 | 2017-02-28 Peter Bergner <bergner@vnet.ibm.com> |
119 | ||
120 | * NEWS: Mention new set/show disassembler-options commands. | |
121 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. | |
122 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". | |
123 | (prospective_options): New static variable. | |
124 | (gdb_disassembler::gdb_disassembler): Initialize | |
125 | m_di.disassembler_options. | |
126 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. | |
127 | (get_disassembler_options): New function. | |
128 | (set_disassembler_options): Likewise. | |
129 | (set_disassembler_options_sfunc): Likewise. | |
130 | (show_disassembler_options_sfunc): Likewise. | |
131 | (disassembler_options_completer): Likewise. | |
132 | (_initialize_disasm): Likewise. | |
133 | * disasm.h (get_disassembler_options): New prototype. | |
134 | (set_disassembler_options): Likewise. | |
135 | * gdbarch.sh (gdbarch_disassembler_options): New variable. | |
136 | (gdbarch_verify_disassembler_options): Likewise. | |
137 | * gdbarch.c: Regenerate. | |
138 | * gdbarch.h: Likewise. | |
139 | * arm-tdep.c (num_disassembly_options): Delete. | |
140 | (set_disassembly_style): Likewise. | |
141 | (arm_disassembler_options): New static variable. | |
142 | (set_disassembly_style_sfunc): Convert short style name into long | |
143 | option name. Call set_disassembler_options. | |
144 | (show_disassembly_style_sfunc): New function. | |
145 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and | |
146 | set_gdbarch_verify_disassembler_options. | |
147 | (_initialize_arm_tdep): Delete regnames variable and update callers. | |
148 | (arm_disassembler_options): Initialize. | |
149 | (disasm_options): New variable. | |
150 | (num_disassembly_options): Rename from this... | |
151 | (num_disassembly_styles): ...to this. Compute by scanning through | |
152 | disasm_options. | |
153 | (valid_disassembly_styles): Initialize using disasm_options. | |
154 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and | |
155 | set_arm_regname_option. | |
156 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. | |
157 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. | |
158 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and | |
159 | set_gdbarch_verify_disassembler_options. | |
160 | * s390-tdep.c (s390_disassembler_options): New static variable. | |
161 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and | |
162 | set_gdbarch_verify_disassembler_options. | |
163 | ||
d538e36d SM |
164 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
165 | ||
166 | * remote.c (remote_add_target_side_condition): Remove "struct" | |
167 | keyword from range-based for loop. | |
168 | ||
83621223 SM |
169 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
170 | ||
171 | * remote.c (remote_add_target_side_condition): Use range-based | |
172 | for loop. Update comment. | |
173 | ||
2123df0e YQ |
174 | 2017-02-27 Yao Qi <yao.qi@linaro.org> |
175 | ||
176 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. | |
177 | ||
8e368124 AH |
178 | 2017-02-26 Alan Hayward <alan.hayward@arm.com> |
179 | ||
180 | * regcache.c (regcache_raw_update): New function. | |
181 | (regcache_raw_read): Move code to regcache_raw_update. | |
182 | * regcache.h (regcache_raw_update): New declaration. | |
183 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. | |
184 | ||
a49dd8dd JK |
185 | 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
186 | ||
187 | * dwarf2read.c (create_debug_type_hash_table): Initialize | |
188 | header.signature and header.type_offset_in_tu. | |
189 | ||
34e4bae9 PA |
190 | 2017-02-24 Pedro Alves <palves@redhat.com> |
191 | ||
192 | * symtab.c (make_file_symbol_completion_list_1): Use | |
193 | add_symtab_completions. | |
194 | ||
b0e4b369 AH |
195 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
196 | ||
197 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. | |
198 | ||
975c21ab AH |
199 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
200 | ||
201 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use | |
202 | I386_MAX_REGISTER_SIZE. | |
203 | (i386_pseudo_register_write): Likewise. | |
204 | (i386_process_record): Likewise. | |
205 | * i387-tdep.c (i387_supply_xsave): Likewise. | |
206 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. | |
207 | (store_register): Likewise. | |
208 | ||
14bc53a8 PA |
209 | 2017-02-23 Pedro Alves <palves@redhat.com> |
210 | ||
211 | * ada-lang.c: Include "common/function-view.h". | |
212 | (ada_iterate_over_symbols): Adjust to use function_view as | |
213 | callback type. | |
214 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. | |
215 | (ada_make_symbol_completion_list): Use a lambda. | |
216 | (ada_exc_search_name_matches): Delete. | |
217 | (name_matches_regex): New. | |
218 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. | |
219 | * compile/compile-c-support.c: Include "common/function-view.h". | |
220 | (print_one_macro): Change prototype to accept a ui_file pointer. | |
221 | (write_macro_definitions): Use a lambda. | |
222 | * dwarf2read.c: Include "common/function-view.h". | |
223 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
224 | (dw2_expand_symtabs_matching): Adjust to use function_view as | |
225 | callback type. | |
226 | * language.h: Include "common/function-view.h". | |
227 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use | |
228 | function_view as callback type. | |
229 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. | |
230 | * linespec.c: Include "common/function-view.h". | |
231 | (collect_info::add_symbol): New method. | |
232 | (struct symbol_and_data_callback, iterate_inline_only, struct | |
233 | symbol_matcher_data, iterate_name_matcher): Delete. | |
234 | (iterate_over_all_matching_symtabs): Adjust to use function_view | |
235 | as callback type and lambdas. | |
236 | (iterate_over_file_blocks): Adjust to use function_view as | |
237 | callback type. | |
238 | (decode_compound_collector): Now a class with private fields. | |
239 | (decode_compound_collector::release_symbols): New method. | |
240 | (collect_one_symbol): Rename to... | |
241 | (decode_compound_collector::operator()): ... this and adjust. | |
242 | (lookup_prefix_sym): decode_compound_collector construction bits | |
243 | move to decode_compound_collector ctor. Pass the | |
244 | decode_compound_collector object directly as callback. Remove | |
245 | cleanups and use decode_compound_collector::release_symbols | |
246 | instead. | |
247 | (symtab_collector): Now a class with private fields. | |
248 | (symtab_collector::release_symtabs): New method. | |
249 | (add_symtabs_to_list): Rename to... | |
250 | (symtab_collector::operator()): ... this and adjust. | |
251 | (collect_symtabs_from_filename): symtab_collector construction | |
252 | bits move to symtab_collector ctor. Pass the symtab_collector | |
253 | object directly as callback. Remove cleanups and use | |
254 | symtab_collector::release_symtabs instead. | |
255 | (collect_symbols): Delete. | |
256 | (add_matching_symbols_to_info): Use lambdas. | |
257 | * macrocmd.c (print_macro_callback): Delete. | |
258 | (info_macro_command): Use a lambda. | |
259 | (info_macros_command): Pass print_macro_definition as callable | |
260 | directly. | |
261 | (print_one_macro): Remove 'ignore' parameter. | |
262 | (macro_list_command): Adjust. | |
263 | * macrotab.c (macro_for_each_data::fn): Now a function_view. | |
264 | (macro_for_each_data::user_data): Delete field. | |
265 | (foreach_macro): Adjust to call the function_view. | |
266 | (macro_for_each): Adjust to use function_view as callback type. | |
267 | (foreach_macro_in_scope): Adjust to call the function_view. | |
268 | (macro_for_each_in_scope): Adjust to use function_view as callback | |
269 | type. | |
270 | * macrotab.h: Include "common/function-view.h". | |
271 | (macro_callback_fn): Declare a prototype instead of a pointer. | |
272 | Remove "user_data" parameter. | |
273 | (macro_for_each, macro_for_each_in_scope): Adjust to use | |
274 | function_view as callback type. | |
275 | * psymtab.c (partial_map_expand_apply) | |
276 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): | |
277 | Adjust to use function_view as callback type and to return bool. | |
278 | (psym_expand_symtabs_matching): Adjust to use function_view as | |
279 | callback types. | |
280 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust | |
281 | to use function_view as callback type and to return bool. | |
282 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as | |
283 | callback types. | |
284 | * symfile.c (expand_symtabs_matching): Adjust to use function_view | |
285 | as callback types. | |
286 | * symfile.h: Include "common/function-view.h". | |
287 | (expand_symtabs_file_matcher_ftype) | |
288 | (expand_symtabs_symbol_matcher_ftype) | |
289 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and | |
290 | return bool. | |
291 | (quick_symbol_functions::map_symtabs_matching_filename) | |
292 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use | |
293 | function_view as callback type and return bool. | |
294 | (expand_symtabs_matching): Adjust to use function_view as callback | |
295 | type. | |
296 | (maintenance_expand_name_matcher) | |
297 | (maintenance_expand_file_matcher): Delete. | |
298 | (maintenance_expand_symtabs): Use lambdas. | |
299 | * symtab.c (iterate_over_some_symtabs): Adjust to use | |
300 | function_view as callback types and return bool. | |
301 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead | |
302 | of a cleanup. | |
303 | (lookup_symtab_callback): Delete. | |
304 | (lookup_symtab): Use a lambda. | |
305 | (iterate_over_symbols): Adjust to use function_view as callback | |
306 | type. | |
307 | (struct search_symbols_data, search_symbols_file_matches) | |
308 | (search_symbols_name_matches): Delete. | |
309 | (search_symbols): Use a pair of lambdas. | |
310 | (struct add_name_data, add_macro_name, symbol_completion_matcher) | |
311 | (symtab_expansion_callback): Delete. | |
312 | (default_make_symbol_completion_list_break_on_1): Use lambdas. | |
313 | * symtab.h: Include "common/function-view.h". | |
314 | (iterate_over_some_symtabs): Adjust to use function_view as | |
315 | callback type and return bool. | |
316 | (iterate_over_symtabs): Adjust to use function_view as callback | |
317 | type. | |
318 | (symbol_found_callback_ftype): Remove 'data' parameter and return | |
319 | bool. | |
320 | (iterate_over_symbols): Adjust to use function_view as callback | |
321 | type. | |
322 | ||
07e253aa PA |
323 | 2017-02-23 Pedro Alves <palves@redhat.com> |
324 | ||
325 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. | |
326 | (%.o) <unittests/%.c>: New pattern. | |
327 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to | |
328 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. | |
329 | * common/function-view.h: New file. | |
330 | * unittests/function-view-selftests.c: New file. | |
331 | * configure: Regenerate. | |
332 | ||
8eaf5320 SM |
333 | 2017-02-23 Simon Marchi <simon.marchi@ericsson.com> |
334 | ||
335 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of | |
336 | inferior_ptid. | |
337 | * go32-nat.c (go32_thread_alive): Likewise. | |
338 | ||
38768751 YQ |
339 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
340 | ||
341 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of | |
342 | delete. | |
343 | ||
0a8beaba YQ |
344 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
345 | ||
346 | * varobj.c (varobj_clear_saved_item): Use delete instead of | |
347 | xfree. | |
348 | (update_dynamic_varobj_children): Likewise. | |
349 | ||
58fdfd2c JK |
350 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
351 | ||
352 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. | |
353 | ||
1b90b139 SM |
354 | 2017-02-21 Simon Marchi <simon.marchi@ericsson.com> |
355 | ||
356 | * common/enum-flags.h (enum_flags::enum_flags): Initialize | |
357 | m_enum_value to 0 in default constructor. | |
358 | ||
2039d74e EBM |
359 | 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
360 | ||
361 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. | |
362 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. | |
363 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, | |
364 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. | |
365 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. | |
366 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. | |
367 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and | |
368 | IS_STORE_CONDITIONAL_INSN. | |
369 | ||
7814882a JK |
370 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
371 | ||
372 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. | |
373 | ||
0ae60b63 JK |
374 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
375 | ||
376 | * NEWS (Changes since GDB 7.12): Add DWARF-5. | |
377 | ||
0224619f JK |
378 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
379 | ||
380 | * dwarf2read.c (skip_one_die, read_attribute_value) | |
381 | (dwarf2_const_value_attr, dump_die_shallow) | |
382 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
383 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. | |
384 | ||
0af92d60 JK |
385 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
386 | ||
387 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. | |
388 | (dwarf_parse_macro_header): Accept DWARF version 5. | |
389 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. | |
390 | ||
216f72a1 JK |
391 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
392 | ||
393 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and | |
394 | DW_AT_GNU_*. | |
395 | * common/common-exceptions.h (enum errors): Likewise. | |
396 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. | |
397 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) | |
398 | (dwarf_expr_context::execute_stack_op): Likewise. | |
399 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): | |
400 | Likewise. | |
401 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) | |
402 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
403 | (show_entry_values_debug, call_site_to_target_addr) | |
404 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) | |
405 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) | |
406 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) | |
407 | (value_of_dwarf_block_entry, indirect_pieced_value) | |
408 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): | |
409 | (disassemble_dwarf_expression): Likewise. | |
410 | * dwarf2read.c (process_die, inherit_abstract_dies) | |
411 | (read_call_site_scope): Likewise. | |
412 | * gdbtypes.h (struct func_type, struct call_site_parameter) | |
413 | (struct call_site): Likewise. | |
414 | * stack.c (read_frame_arg): Likewise. | |
415 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. | |
416 | ||
43988095 JK |
417 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
418 | ||
419 | * defs.h (read_unsigned_leb128): New declaration. | |
420 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. | |
421 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. | |
422 | (dwarf2_find_location_expression): Call also | |
423 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. | |
424 | * dwarf2loc.h (dwarf2_version): New declaration. | |
425 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, | |
426 | rnglists. | |
427 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, | |
428 | .debug_rnglists. | |
429 | (struct dwop_section_names): Add loclists_dwo. | |
430 | (dwop_section_names): Add .debug_loclists.dwo. | |
431 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. | |
432 | (struct dwarf2_per_cu_data): Add dwarf_version. | |
433 | (struct dwo_sections): Add loclists. | |
434 | (struct attr_abbrev): Add implicit_const. | |
435 | (read_indirect_line_string): New declaration. | |
436 | (read_unsigned_leb128): Delete declaration. | |
437 | (rcuh_kind): New definition. | |
438 | (read_and_check_comp_unit_head): Change parameter | |
439 | is_debug_types_section to section_kind. | |
440 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. | |
441 | (read_comp_unit_head): Change parameter abfd to section, add parameter | |
442 | section_kind. Handle DWARF-5. | |
443 | (error_check_comp_unit_head): Accept also DWARF version 5. | |
444 | (read_and_check_comp_unit_head): Change parameter | |
445 | is_debug_types_section to section_kind. | |
446 | (read_and_check_type_unit_head): Delete function. | |
447 | (read_abbrev_offset): Handle DWARF-5. | |
448 | (create_debug_type_hash_table): Add parameter section_kind. Process | |
449 | only DW_UT_type. Use signature and type_offset_in_tu from struct | |
450 | comp_unit_head. | |
451 | (create_debug_types_hash_table): Update create_debug_type_hash_table | |
452 | caller. | |
453 | (create_all_type_units): Call create_debug_type_hash_table. | |
454 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change | |
455 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head | |
456 | caller. | |
457 | (skip_one_die): Handle DW_FORM_implicit_const. | |
458 | (dwarf2_rnglists_process): New function. | |
459 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. | |
460 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. | |
461 | (read_attribute_value): Handle DW_FORM_implicit_const, | |
462 | DW_FORM_line_strp. | |
463 | (read_attribute): Handle DW_FORM_implicit_const. | |
464 | (read_indirect_string_at_offset_from): New function from | |
465 | read_indirect_string_at_offset. | |
466 | (read_indirect_string_at_offset): Call | |
467 | read_indirect_string_at_offset_from. | |
468 | (read_indirect_line_string_at_offset): New function. | |
469 | (read_indirect_string): New function comment. | |
470 | (read_indirect_line_string): New function. | |
471 | (read_unsigned_leb128): Make it global. | |
472 | (dwarf2_string_attr): Handle DWARF-5. | |
473 | (add_include_dir_stub, read_formatted_entries): New functions. | |
474 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): | |
475 | Handle DWARF-5. | |
476 | (per_cu_header_read_in): Update read_comp_unit_head caller. | |
477 | (dwarf2_version): New function. | |
478 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and | |
479 | rnglists. | |
480 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections | |
481 | fields. | |
482 | ||
22d2f3ab JK |
483 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
484 | ||
485 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. | |
486 | ||
5f46c5a5 JK |
487 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
488 | ||
489 | * dwarf2read.c (dwarf2_ranges_process): New function from | |
490 | dwarf2_ranges_read. | |
491 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use | |
492 | dwarf2_ranges_process. | |
493 | ||
78d4d2c5 JK |
494 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
495 | ||
496 | * dwarf2read.c (create_debug_type_hash_table): New function from | |
497 | create_debug_types_hash_table. | |
498 | (create_debug_types_hash_table): Call create_debug_type_hash_table. | |
499 | (create_all_type_units, open_and_init_dwo_file): Update | |
500 | create_debug_types_hash_table callers. | |
501 | ||
1b076f25 SDJ |
502 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
503 | ||
504 | PR gdb/16188 | |
505 | * fork-child.c (trace_start_error): Fix thinko. va_end should | |
506 | refer to 'ap', not 'args'. | |
507 | ||
0db8980c SDJ |
508 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
509 | Pedro Alves <palves@redhat.com> | |
510 | ||
511 | PR gdb/16188 | |
512 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system | |
513 | calls succeeded. | |
514 | * fork-child.c (trace_start_error): New function. | |
515 | (trace_start_error_with_name): Likewise. | |
516 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. | |
517 | * inf-ptrace.c (inf_ptrace_me): Likewise. | |
518 | * inferior.h (trace_start_error): New prototype. | |
519 | (trace_start_error_with_name): Likewise. | |
520 | ||
99e8a4f9 SDJ |
521 | 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com> |
522 | ||
523 | PR gdb/21164 | |
524 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not | |
525 | NULL before using it. | |
526 | * symmisc.c (maintenance_print_symbols): Likewise. | |
527 | (maintenance_print_msymbols): Likewise. | |
528 | ||
4e746bb6 TW |
529 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
530 | ||
531 | * NEWS: Add record Python bindings entry. | |
532 | ||
533 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
534 | ||
535 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, | |
536 | py-record-full.o. | |
537 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. | |
538 | * python/py-record-btrace.c, python/py-record-btrace.h, | |
539 | python/py-record-full.c, python/py-record-full.h: New file. | |
540 | * python/py-record.c: Add include for py-record-btrace.h and | |
541 | py-record-full.h. | |
542 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, | |
543 | recpy_instruction_history, recpy_function_call_history, recpy_begin, | |
544 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. | |
545 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): | |
546 | New definition. | |
547 | (gdbpy_initialize_btrace): New export. | |
548 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. | |
549 | ||
550 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
551 | ||
552 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. | |
553 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. | |
554 | * python/py-record.c: New file. | |
555 | * python/python-internal.h (gdbpy_start_recording, | |
556 | gdbpy_current_recording, gdpy_stop_recording, | |
557 | gdbpy_initialize_record): New export. | |
558 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. | |
559 | (python_GdbMethods): Add gdbpy_start_recording, | |
560 | gdbpy_current_recording and gdbpy_stop_recording. | |
561 | ||
562 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
563 | ||
564 | * record-btrace.c (record_btrace_record_method): New function. | |
565 | (init_record_btrace_ops): Initialize to_record_method. | |
566 | * record-full.c (record_full_record_method): New function. | |
567 | (init_record_full_ops, init_record_full_core_ops): Add | |
568 | record_full_record_method. | |
569 | * record.h (enum record_method): New enum. | |
570 | * target-debug.h (target_debug_print_enum_record_method: New define. | |
571 | * target-delegates.c: Regenerate. | |
572 | * target.c (target_record_method): New function. | |
573 | * target.h: Include record.h. | |
574 | (struct target_ops) <to_record_method>: New field. | |
575 | (target_record_method): New export. | |
576 | ||
577 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
578 | ||
579 | * record.h (record_start, record_stop): New export. | |
580 | * record.c (record_start, record_stop): New function. | |
581 | ||
582 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
583 | ||
584 | * btrace.c (btrace_fetch): Copy function call segments pointer | |
585 | into a vector. | |
586 | (btrace_clear): Clear the vector. | |
587 | (btrace_find_insn_by_number): Use binary search to find the correct | |
588 | function call segment. | |
589 | * btrace.h (brace_fun_p): New typedef. | |
590 | (struct btrace_thread_info) <functions>: New field. | |
591 | ||
592 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
593 | ||
594 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... | |
595 | * btrace.c (btrace_decode_error): ... here. New function. | |
596 | * btrace.h (btrace_decode_error): New export. | |
597 | ||
598 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
599 | ||
600 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. | |
601 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, | |
602 | btrace_find_insn_by_number): Remove special case for gaps. | |
603 | * btrace.h (btrace_insn_get_error): New export. | |
604 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. | |
605 | * record-btrace.c (btrace_insn_history): Print number for gaps. | |
606 | (record_btrace_info, record_btrace_goto): Handle gaps. | |
607 | ||
3f77c769 TT |
608 | 2017-02-14 Tom Tromey <tom@tromey.com> |
609 | ||
610 | PR python/13598: | |
611 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt | |
612 | event. | |
613 | * python/py-evts.c (gdbpy_initialize_py_events): Add | |
614 | before_prompt registry. | |
615 | * python/py-events.h (events_object) <before_prompt>: New field. | |
616 | ||
4c2c7ac6 MM |
617 | 2017-02-14 Markus Metzger <markus.t.metzger@intel.com> |
618 | ||
619 | * btrace.c (ftrace_new_switch): Preserve up link and flags. | |
620 | ||
5cf30ebf LM |
621 | 2017-02-13 Luis Machado <lgustavo@codesourcery.com> |
622 | ||
623 | * symfile (_initialize_symfile): Add usage text to the load command's | |
624 | help text. | |
625 | ||
26a06916 SM |
626 | 2017-02-10 Simon Marchi <simon.marchi@ericsson.com> |
627 | ||
628 | * utils.c (defaulted_query): Don't query on secondary UIs. | |
629 | ||
0b145e37 TT |
630 | 2017-02-10 Tom Tromey <tom@tromey.com> |
631 | ||
632 | * rust-lang.c (rust_get_disr_info): Remove unused variable. | |
633 | ||
2d8365c4 TT |
634 | 2017-02-10 Tom Tromey <tom@tromey.com> |
635 | ||
636 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary | |
637 | "cleanup" local. | |
638 | * python/py-type.c (typy_legacy_template_argument): Remove | |
639 | unnecessary "cleanup" local. | |
640 | ||
2bb8f231 TT |
641 | 2017-02-10 Tom Tromey <tom@tromey.com> |
642 | ||
643 | * python/python.c (do_start_initialization): New function, from | |
644 | _initialize_python. | |
645 | (_initialize_python): Call do_start_initialization. | |
646 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not | |
647 | goto. | |
648 | ||
1bdfaf42 TT |
649 | 2017-02-10 Tom Tromey <tom@tromey.com> |
650 | ||
651 | * python/py-prettyprint.c (pretty_print_one_value): Use | |
652 | gdbpy_ref. | |
653 | ||
88b6faea TT |
654 | 2017-02-10 Tom Tromey <tom@tromey.com> |
655 | ||
656 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. | |
657 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use | |
658 | gdbpy_ref. | |
659 | * python/py-type.c (field_new): Use gdbpy_ref. | |
660 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use | |
661 | gdbpy_ref. | |
662 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. | |
663 | (py_free_pspace): Likewise. | |
664 | (pspace_to_pspace_object): Likewise. | |
665 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. | |
666 | (py_free_objfile): Likewise. | |
667 | (objfile_to_objfile_object): Likewise. | |
668 | * python/py-inferior.c (delete_thread_object): Use | |
669 | gdbpy_ref. | |
670 | (infpy_read_memory): Likewise. | |
671 | (py_free_inferior): Likewise. | |
672 | * python/py-evtregistry.c (create_eventregistry_object): Use | |
673 | gdbpy_ref. | |
674 | * python/py-event.c (create_event_object): Use gdbpy_ref. | |
675 | ||
7780f186 TT |
676 | 2017-02-10 Tom Tromey <tom@tromey.com> |
677 | ||
678 | * python/py-ref.h (gdbpy_ref_policy): Now a template. | |
679 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be | |
680 | used. | |
681 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, | |
682 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, | |
683 | python/py-exitedevent.c, python/py-finishbreakpoint.c, | |
684 | python/py-framefilter.c, python/py-function.c, | |
685 | python/py-inferior.c, python/py-infevents.c, | |
686 | python/py-linetable.c, python/py-newobjfileevent.c, | |
687 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, | |
688 | python/py-signalevent.c, python/py-stopevent.c, | |
689 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, | |
690 | python/py-unwind.c, python/py-utils.c, python/py-value.c, | |
691 | python/py-varobj.c, python/py-xmethods.c, python/python.c, | |
692 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. | |
693 | ||
d4b0bb18 TT |
694 | 2017-02-10 Tom Tromey <tom@tromey.com> |
695 | ||
696 | * ui-out.h (ui_out_emit_type): New class. | |
697 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. | |
698 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional | |
699 | and ui_out_emit_tuple. | |
700 | (enumerate_locals): Likewise. | |
701 | (py_mi_print_variables, py_print_locals, py_print_args): Use | |
702 | ui_out_emit_list. | |
703 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, | |
704 | ui_out_emit_list. | |
705 | * common/gdb_optional.h: New file. | |
706 | ||
f67f945c MG |
707 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
708 | ||
709 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
710 | ||
18da0c51 MG |
711 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
712 | ||
713 | PR gdb/21122 | |
714 | * breakpoint.c (_initialize_breakpoint): Update the help description | |
715 | of the 'commands' command to indicate that it takes a list argument. | |
716 | ||
62c14536 SM |
717 | 2017-02-09 Simon Marchi <simon.marchi@ericsson.com> |
718 | ||
719 | * interps.c (current_interp_set_logging): Remove "return". | |
720 | ||
ff6fa247 GB |
721 | 2017-02-09 Gary Benson <gbenson@redhat.com> |
722 | ||
723 | * symtab.c (add_symtab_completions): Prevent NULL pointer | |
724 | dereference. | |
725 | ||
a474bd8e PA |
726 | 2017-02-08 Pedro Alves <palves@redhat.com> |
727 | ||
728 | * interps.c (interp::interp): Remove reference to quiet_p. | |
729 | (interp_set): Make static. Remove dead "Switching to" output | |
730 | code. | |
731 | (interp_quiet_p, interp_set_quiet): Delete. | |
732 | (interpreter_exec_cmd): Don't set the interpreter quiet. | |
733 | * interps.h (interp_quiet_p): Make static. | |
734 | (class interp) <quiet_p>: Remove field | |
735 | ||
3d7b173c JG |
736 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
737 | ||
604c4576 JG |
738 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
739 | * cli/cli-decode.h (find_command_name_length): Declare. | |
740 | * cli/cli-script.c (command_name_equals, line_first_arg): | |
741 | New functions. | |
742 | (process_next_line): Use cli-decode to parse command names. | |
743 | (build_command_line): Make args a constant pointer. | |
744 | ||
745 | 2017-02-08 Jerome Guitton <guitton@adacore.com> | |
6dbb839a | 746 | |
3d7b173c JG |
747 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
748 | Remove case-insensitive search. | |
749 | ||
1291063d JM |
750 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
751 | ||
752 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator | |
753 | at the end of the line. Avoids an ARI warning. | |
754 | ||
20b477a7 LM |
755 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
756 | ||
757 | * NEWS: Mention support for record/replay of Intel 64 rdrand and | |
758 | rdseed instructions. | |
759 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. | |
760 | ||
3f7b46f2 IR |
761 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
762 | ||
763 | PR tdep/20936 | |
764 | Provide and use sparc32 and sparc64 target description XML files. | |
765 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, | |
766 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. | |
767 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, | |
768 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. | |
769 | * features/sparc/sparc32-solaris.xml: New file. | |
770 | * features/sparc/sparc64-solaris.xml: New file. | |
771 | * features/sparc/sparc32-solaris.c: Generated. | |
772 | * features/sparc/sparc64-solaris.c: Generated. | |
773 | * sparc-tdep.h: Account for differences in target descriptions. | |
774 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. | |
775 | (sparc32_register_type): Use target provided registers. | |
776 | (validate_tdesc_registers): New function. | |
777 | (sparc32_gdbarch_init): Use tdesc_has_registers. | |
778 | Set pseudoregister functions. | |
779 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. | |
780 | (sparc64_register_type): Use target provided registers. | |
781 | (sparc64_init_abi): Set pseudoregister functions. | |
782 | ||
f0fd41c1 TT |
783 | 2017-02-03 Tom Tromey <tom@tromey.com> |
784 | ||
785 | PR rust/21097: | |
786 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums | |
787 | with a single member. | |
788 | ||
d6f9b0fb PA |
789 | 2017-02-03 Pedro Alves <palves@redhat.com> |
790 | ||
791 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) | |
792 | (cli_interp_base::~cli_interp_base): New. | |
793 | (cli_interp): New struct. | |
794 | (as_cli_interp): Cast the interp itself to cli_interp. | |
795 | (cli_interpreter_pre_command_loop): Rename to ... | |
796 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' | |
797 | parameter. | |
798 | (cli_interpreter_init): Rename to ... | |
799 | (cli_interp::init): ... this. Remove 'self' parameter. Use | |
800 | boolean. Make extern. | |
801 | (cli_interpreter_resume): Rename to ... | |
802 | (cli_interp::resume): ... this. Remove 'data' parameter. Make | |
803 | extern. | |
804 | (cli_interpreter_suspend): Rename to ... | |
805 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make | |
806 | extern. | |
807 | (cli_interpreter_exec): Rename to ... | |
808 | (cli_interp::exec): ... this. Remove 'data' parameter. Make | |
809 | extern. | |
810 | (cli_interpreter_supports_command_editing): Rename to ... | |
811 | (cli_interp_base::supports_command_editing): ... this. Remove | |
812 | 'interp' parameter. Make extern. | |
813 | (cli_ui_out): Rename to ... | |
814 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. | |
815 | Make extern. | |
816 | (cli_set_logging): Rename to ... | |
817 | (cli_interp_base::set_logging): ... this. Remove 'interp' | |
818 | parameter. Make extern. | |
819 | (cli_interp_procs): Delete. | |
820 | (cli_interp_factory): Adjust to use "new". | |
821 | * cli/cli-interp.h: Include "interps.h". | |
822 | (struct cli_interp_base): New struct. | |
823 | * interps.c (struct interp): Delete. Fields moved to interps.h. | |
824 | (interp_new): Delete. | |
825 | (interp::interp, interp::~interp): New. | |
826 | (interp_set): Use bool, and return void. Assume the interpreter | |
827 | has suspend, init and resume methods, and that the all return | |
828 | void. | |
829 | (set_top_level_interpreter): interp_set returns void. | |
830 | (interp_ui_out): Adapt. | |
831 | (current_interp_set_logging): Adapt. | |
832 | (interp_data): Delete. | |
833 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. | |
834 | (interp_exec): Adapt. | |
835 | (top_level_interpreter_data): Delete. | |
836 | * interps.h (interp_init_ftype, interp_resume_ftype) | |
837 | (interp_suspend_ftype, interp_exec_ftype) | |
838 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. | |
839 | (class interp): New. | |
840 | (interp_new): Delete. | |
841 | (interp_set): Now returns void. Use bool. | |
842 | (interp_data, top_level_interpreter_data): Delete. | |
843 | * mi/mi-common.h: Include interps.h. | |
844 | (class mi_interp): Inherit from interp. Define a ctor. Declare | |
845 | init, resume, suspect, exec, interp_ui_out, set_logging and | |
846 | pre_command_loop methods. | |
847 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. | |
848 | (mi_interpreter_init): Rename to ... | |
849 | (mi_interp::init): ... this. Remove the 'interp' parameter, use | |
850 | bool, return void and make extern. Adjust. | |
851 | (mi_interpreter_resume): ... Rename to ... | |
852 | (mi_interp::resume): ... this. Remove the 'data' parameter, | |
853 | return void and make extern. Adjust. | |
854 | (mi_interpreter_suspend): ... Rename to ... | |
855 | (mi_interp::suspend): ... this. Remove the 'data' parameter, | |
856 | return void and make extern. Adjust. | |
857 | (mi_interpreter_exec): ... Rename to ... | |
858 | (mi_interp::exec): ... this. Remove the 'data' parameter and make | |
859 | extern. Adjust. | |
860 | (mi_interpreter_pre_command_loop): ... Rename to ... | |
861 | (mi_interp::pre_command_loop): ... this. Remove the 'self' | |
862 | parameter and make extern. | |
863 | (mi_on_normal_stop_1): Adjust. | |
864 | (mi_ui_out): Rename to ... | |
865 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' | |
866 | parameter and make extern. Adjust. | |
867 | (mi_set_logging): Rename to ... | |
868 | (mi_interp::set_logging): ... this. Remove the 'interp' | |
869 | parameter and make extern. Adjust. | |
870 | (mi_interp_procs): Delete. | |
871 | (mi_interp_factory): Adjust to use 'new'. | |
872 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) | |
873 | (mi_print_exception, mi_execute_command, mi_load_progress): | |
874 | Adjust. | |
875 | * tui/tui-interp.c (tui_interp): New class. | |
876 | (as_tui_interp): Return a tui_interp pointer. | |
877 | (tui_on_normal_stop, tui_on_signal_received) | |
878 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) | |
879 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust | |
880 | to use interp::interp_ui_out. | |
881 | (tui_init): Rename to ... | |
882 | (tui_interp::init): ... this. Remove the 'self' parameter, use | |
883 | bool, return void and make extern. Adjust. | |
884 | (tui_resume): Rename to ... | |
885 | (tui_interp::resume): ... this. Remove the 'data' parameter, | |
886 | return void and make extern. Adjust. | |
887 | (tui_suspend): Rename to ... | |
888 | (tui_interp::suspend): ... this. Remove the 'data' parameter, | |
889 | return void and make extern. Adjust. | |
890 | (tui_ui_out): Rename to ... | |
891 | (tui_interp::interp_ui_out): ... this. Remove the 'self' | |
892 | parameter, and make extern. Adjust. | |
893 | (tui_exec): Rename to ... | |
894 | (tui_interp::exec): ... this. Remove the 'data' parameter and | |
895 | make extern. | |
896 | (tui_interp_procs): Delete. | |
897 | (tui_interp_factory): Use "new". | |
898 | ||
65c40c95 TT |
899 | 2017-02-02 Tom Tromey <tom@tromey.com> |
900 | ||
901 | * rust-exp.y (ends_raw_string, space_then_number) | |
902 | (rust_identifier_start_p): Return bool. | |
903 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) | |
904 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) | |
905 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) | |
906 | (rust_chartype_p): Return bool. | |
907 | (val_print_struct, rust_print_struct_def, rust_print_type): | |
908 | Update. | |
909 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): | |
910 | Return bool. | |
911 | ||
b50f188d TT |
912 | 2017-02-02 Tom Tromey <tom@tromey.com> |
913 | ||
914 | * rust-lang.c: Reindent. | |
915 | ||
03c85b11 TT |
916 | 2017-02-02 Tom Tromey <tom@tromey.com> |
917 | ||
918 | * rust-lang.h (rust_crate_for_block): Update. | |
919 | * rust-lang.c (rust_crate_for_block): Return std::string. | |
920 | (rust_get_disr_info): Use std:;string, not | |
921 | gdb::unique_xmalloc_ptr. | |
922 | * rust-exp.y (crate_name): Update. | |
923 | ||
9b6da501 PA |
924 | 2017-02-02 Pedro Alves <palves@redhat.com> |
925 | ||
926 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" | |
927 | field out of gdb_disassembler_test and make it static. | |
928 | ||
ec4cb20b PA |
929 | 2017-02-02 Pedro Alves <palves@redhat.com> |
930 | ||
931 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, | |
932 | mi1_interp and mi_interp fields. | |
933 | ||
5be5dbf0 PA |
934 | 2017-02-02 Pedro Alves <palves@redhat.com> |
935 | ||
616268b6 PA |
936 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
937 | Moved from cli/cli-logging.c. | |
938 | (cli_set_logging): New function. | |
939 | (cli_interp_procs): Install cli_set_logging. | |
940 | * cli/cli-interp.h (make_logging_output, cli_set_logging): | |
941 | Declare. | |
942 | * cli/cli-logging.c (struct saved_output_files, saved_output): | |
943 | Moved to cli/cli-interp.c. | |
944 | (pop_output_files): Don't save outputs here. | |
945 | (make_logging_output): New function. | |
946 | (handle_redirections): Don't build tee nor save previous outputs | |
947 | here. | |
948 | * interps.c (current_interp_set_logging): Change prototype. | |
949 | Assume there's always a set_logging_proc method installed. | |
950 | * interps.h (interp_set_logging_ftype): Change prototype. | |
951 | (current_interp_set_logging): Change prototype and adjust comment. | |
952 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to | |
953 | use make_logging_output. | |
954 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. | |
955 | 2017-02-02 Pedro Alves <palves@redhat.com> | |
956 | ||
5be5dbf0 PA |
957 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
958 | from ... | |
959 | (set_logging_overwrite): ... here. | |
960 | (logging_no_redirect_file): Delete. | |
961 | (set_logging_redirect): Don't handle redirection on the fly. | |
962 | Instead warn that "logging off" / "logging on" is necessary. | |
963 | (pop_output_files): Delete references to logging_no_redirect_file. | |
964 | (show_logging_command): Always speak in terms of what will happen | |
965 | once logging is reenabled. | |
966 | ||
c99cc448 PA |
967 | 2017-02-02 Pedro Alves <palves@redhat.com> |
968 | ||
969 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. | |
970 | ||
8b172ce7 PA |
971 | 2017-02-02 Pedro Alves <palves@redhat.com> |
972 | ||
973 | * disasm.c (gdb_pretty_print_insn): Rename to ... | |
974 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. | |
975 | Remove gdbarch parameter. Adapt to clear the object's buffers | |
976 | instead of allocating new buffers, and to print using the object's | |
977 | gdb_disassembler instead of calling gdb_print_insn. | |
978 | (dump_insns): Use gdb_pretty_print_disassembler. | |
979 | * disasm.h (gdb_pretty_print_insn): Delete declaration. | |
980 | (gdb_pretty_print_disassembler): New class. | |
981 | * record-btrace.c (btrace_insn_history): Use | |
982 | gdb_pretty_print_disassembler. | |
983 | ||
d7e74731 PA |
984 | 2017-02-02 Pedro Alves <palves@redhat.com> |
985 | ||
986 | * ada-lang.c (type_as_string): Use string_file. | |
987 | * ada-valprint.c (ada_print_floating): Use string_file. | |
988 | * ada-varobj.c (ada_varobj_scalar_image) | |
989 | (ada_varobj_get_value_image): Use string_file. | |
990 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. | |
991 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. | |
992 | * breakpoint.c (update_inserted_breakpoint_locations) | |
993 | (insert_breakpoint_locations, reattach_breakpoints) | |
994 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) | |
995 | (print_it_watchpoint): Use string_file. | |
996 | (save_breakpoints): Use stdio_file. | |
997 | * c-exp.y (oper): Use string_file. | |
998 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and | |
999 | tee_file. | |
1000 | (pop_output_files): Use delete. | |
1001 | (handle_redirections): Use stdio_file and tee_file. | |
1002 | * cli/cli-setshow.c (do_show_command): Use string_file. | |
1003 | * compile/compile-c-support.c (c_compute_program): Use | |
1004 | string_file. | |
1005 | * compile/compile-c-symbols.c (generate_vla_size): Take a | |
1006 | 'string_file &' instead of a 'ui_file *'. | |
1007 | (generate_c_for_for_one_variable): Take a 'string_file &' instead | |
1008 | of a 'ui_file *'. Use string_file. | |
1009 | (generate_c_for_variable_locations): Take a 'string_file &' | |
1010 | instead of a 'ui_file *'. | |
1011 | * compile/compile-internal.h (generate_c_for_for_one_variable): | |
1012 | Take a 'string_file &' instead of a 'ui_file *'. | |
1013 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
1014 | (print_label, pushf_register_address, pushf_register) | |
1015 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a | |
1016 | 'ui_file *'. Adjust. | |
1017 | * compile/compile.c (compile_to_object): Use string_file. | |
1018 | * compile/compile.h (compile_dwarf_expr_to_c) | |
1019 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a | |
1020 | 'ui_file *'. | |
1021 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. | |
1022 | (replace_typedefs_qualified_name): Use string_file and | |
1023 | obstack_copy0. | |
1024 | * disasm.c (gdb_pretty_print_insn): Use string_file. | |
1025 | (gdb_disassembly): Adjust reference the null_stream global. | |
1026 | (do_ui_file_delete): Delete. | |
1027 | (gdb_insn_length): Use null_stream. | |
1028 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. | |
1029 | * dwarf2loc.c (dwarf2_compile_property_to_c) | |
1030 | (locexpr_generate_c_location, loclist_generate_c_location): Take a | |
1031 | 'string_file &' instead of a 'ui_file *'. | |
1032 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. | |
1033 | * dwarf2read.c (do_ui_file_peek_last): Delete. | |
1034 | (dwarf2_compute_name): Use string_file. | |
1035 | * event-top.c (gdb_setup_readline): Use stdio_file. | |
1036 | * gdbarch.sh (verify_gdbarch): Use string_file. | |
1037 | * gdbtypes.c (safe_parse_type): Use null_stream. | |
1038 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use | |
1039 | string_file. | |
1040 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a | |
1041 | 'string_file *' instead of a 'ui_file *'. | |
1042 | (gdbscm_arch_disassemble): Use string_file. | |
1043 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. | |
1044 | * guile/scm-ports.c (class ioscm_file_port): Now a class that | |
1045 | inherits from ui_file. | |
1046 | (ioscm_file_port_delete, ioscm_file_port_rewind) | |
1047 | (ioscm_file_port_put): Delete. | |
1048 | (ioscm_file_port_write): Rename to ... | |
1049 | (ioscm_file_port::write): ... this. Remove file_port_magic | |
1050 | checks. | |
1051 | (ioscm_file_port_new): Delete. | |
1052 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and | |
1053 | ui_file_up. | |
1054 | * guile/scm-type.c (tyscm_type_name): Use string_file. | |
1055 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): | |
1056 | Use string_file. | |
1057 | * infcmd.c (print_return_value_1): Use string_file. | |
1058 | * infrun.c (print_target_wait_results): Use string_file. | |
1059 | * language.c (add_language): Use string_file. | |
1060 | * location.c (explicit_to_string_internal): Use string_file. | |
1061 | * main.c (captured_main_1): Use null_file. | |
1062 | * maint.c (maintenance_print_architecture): Use stdio_file. | |
1063 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. | |
1064 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, | |
1065 | event_channel>: Change type to mi_console_file pointer. | |
1066 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) | |
1067 | (mi_console_file_delete): Delete. | |
1068 | (struct mi_console_file): Delete. | |
1069 | (mi_console_file_magic): Delete. | |
1070 | (mi_console_file_new): Delete. | |
1071 | (mi_console_file::mi_console_file): New. | |
1072 | (mi_console_file_delete): Delete. | |
1073 | (mi_console_file_fputs): Delete. | |
1074 | (mi_console_file::write): New. | |
1075 | (mi_console_raw_packet): Delete. | |
1076 | (mi_console_file::flush): New. | |
1077 | (mi_console_file_flush): Delete. | |
1078 | (mi_console_set_raw): Rename to ... | |
1079 | (mi_console_file::set_raw): ... this. | |
1080 | * mi/mi-console.h (class mi_console_file): New class. | |
1081 | (mi_console_file_new, mi_console_set_raw): Delete. | |
1082 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. | |
1083 | (mi_set_logging): Use delete and tee_file. Adjust. | |
1084 | * mi/mi-main.c (output_register): Use string_file. | |
1085 | (mi_cmd_data_evaluate_expression): Use string_file. | |
1086 | (mi_cmd_data_read_memory): Use string_file. | |
1087 | (mi_cmd_execute, print_variable_or_computed): Use string_file. | |
1088 | * mi/mi-out.c (mi_ui_out::main_stream): New. | |
1089 | (mi_ui_out::rewind): Use main_stream and | |
1090 | string_file. | |
1091 | (mi_ui_out::put): Use main_stream and string_file. | |
1092 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
1093 | Allocate a 'string_file' instead. | |
1094 | (mi_out_new): Don't allocate a mem_fileopen stream here. | |
1095 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
1096 | (mi_ui_out::main_stream): Declare method. | |
1097 | * printcmd.c (eval_command): Use string_file. | |
1098 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. | |
1099 | * python/py-arch.c (archpy_disassemble): Use string_file. | |
1100 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. | |
1101 | * python/py-frame.c (frapy_str): Use string_file. | |
1102 | * python/py-framefilter.c (py_print_type, py_print_single_arg): | |
1103 | Use string_file. | |
1104 | * python/py-type.c (typy_str): Use string_file. | |
1105 | * python/py-unwind.c (unwind_infopy_str): Use string_file. | |
1106 | * python/py-value.c (valpy_str): Use string_file. | |
1107 | * record-btrace.c (btrace_insn_history): Use string_file. | |
1108 | * regcache.c (regcache_print): Use stdio_file. | |
1109 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. | |
1110 | * remote.c (escape_buffer): Use string_file. | |
1111 | * rust-lang.c (rust_get_disr_info): Use string_file. | |
1112 | * serial.c (serial_open_ops_1): Use stdio_file. | |
1113 | (do_serial_close): Use delete. | |
1114 | * stack.c (print_frame_arg): Use string_file. | |
1115 | (print_frame_args): Remove local mem_fileopen stream, not used. | |
1116 | (print_frame): Use string_file. | |
1117 | * symmisc.c (maintenance_print_symbols): Use stdio_file. | |
1118 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
1119 | Take a 'string_file *' instead of a 'ui_file *'. | |
1120 | * top.c (new_ui): Use stdio_file and stderr_file. | |
1121 | (free_ui): Use delete. | |
1122 | (execute_command_to_string): Use string_file. | |
1123 | (quit_confirm): Use string_file. | |
1124 | * tracepoint.c (collection_list::append_exp): Use string_file. | |
1125 | * tui/tui-disasm.c (tui_disassemble): Use string_file. | |
1126 | * tui/tui-file.c: Don't include "ui-file.h". | |
1127 | (enum streamtype, struct tui_stream): Delete. | |
1128 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) | |
1129 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. | |
1130 | (tui_file::tui_file): New method. | |
1131 | (tui_file_fputs): Delete. | |
1132 | (tui_file_get_strbuf): Delete. | |
1133 | (tui_file::puts): New method. | |
1134 | (tui_file_adjust_strbuf): Delete. | |
1135 | (tui_file_flush): Delete. | |
1136 | (tui_file::flush): New method. | |
1137 | * tui/tui-file.h: Tweak intro comment. | |
1138 | Include ui-file.h. | |
1139 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) | |
1140 | (tui_file_adjust_strbuf): Delete declarations. | |
1141 | (class tui_file): New class. | |
1142 | * tui/tui-io.c (tui_initialize_io): Use tui_file. | |
1143 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. | |
1144 | (tui_register_format): Use string_stream. | |
1145 | * tui/tui-stack.c (tui_make_status_line): Use string_file. | |
1146 | (tui_get_function_from_frame): Use string_file. | |
1147 | * typeprint.c (type_to_string): Use string_file. | |
1148 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. | |
1149 | (null_stream): New global. | |
1150 | (ui_file_delete): Delete. | |
1151 | (ui_file::ui_file): New. | |
1152 | (null_file_isatty): Delete. | |
1153 | (ui_file::~ui_file): New. | |
1154 | (null_file_rewind): Delete. | |
1155 | (ui_file::printf): New. | |
1156 | (null_file_put): Delete. | |
1157 | (null_file_flush): Delete. | |
1158 | (ui_file::putstr): New. | |
1159 | (null_file_write): Delete. | |
1160 | (ui_file::putstrn): New. | |
1161 | (null_file_read): Delete. | |
1162 | (ui_file::putc): New. | |
1163 | (null_file_fputs): Delete. | |
1164 | (null_file_write_async_safe): Delete. | |
1165 | (ui_file::vprintf): New. | |
1166 | (null_file_delete): Delete. | |
1167 | (null_file::write): New. | |
1168 | (null_file_fseek): Delete. | |
1169 | (null_file::puts): New. | |
1170 | (ui_file_data): Delete. | |
1171 | (null_file::write_async_safe): New. | |
1172 | (gdb_flush, ui_file_isatty): Adjust. | |
1173 | (ui_file_put, ui_file_rewind): Delete. | |
1174 | (ui_file_write): Adjust. | |
1175 | (ui_file_write_for_put): Delete. | |
1176 | (ui_file_write_async_safe, ui_file_read): Adjust. | |
1177 | (ui_file_fseek): Delete. | |
1178 | (fputs_unfiltered): Adjust. | |
1179 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) | |
1180 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) | |
1181 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) | |
1182 | (set_ui_file_data): Delete. | |
1183 | (string_file::~string_file, string_file::write) | |
1184 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) | |
1185 | (do_ui_file_as_string, ui_file_as_string): Delete. | |
1186 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. | |
1187 | (struct mem_file): Delete. | |
1188 | (mem_file_new): Delete. | |
1189 | (stdio_file::stdio_file): New. | |
1190 | (mem_file_delete): Delete. | |
1191 | (stdio_file::stdio_file): New. | |
1192 | (mem_fileopen): Delete. | |
1193 | (stdio_file::~stdio_file): New. | |
1194 | (mem_file_rewind): Delete. | |
1195 | (stdio_file::set_stream): New. | |
1196 | (mem_file_put): Delete. | |
1197 | (stdio_file::open): New. | |
1198 | (mem_file_write): Delete. | |
1199 | (stdio_file_magic, struct stdio_file): Delete. | |
1200 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. | |
1201 | (stdio_file::flush): New. | |
1202 | (stdio_file_read): Rename to ... | |
1203 | (stdio_file::read): ... this. Adjust. | |
1204 | (stdio_file_write): Rename to ... | |
1205 | (stdio_file::write): ... this. Adjust. | |
1206 | (stdio_file_write_async_safe): Rename to ... | |
1207 | (stdio_file::write_async_safe) ... this. Adjust. | |
1208 | (stdio_file_fputs): Rename to ... | |
1209 | (stdio_file::puts) ... this. Adjust. | |
1210 | (stdio_file_isatty): Delete. | |
1211 | (stdio_file_fseek): Delete. | |
1212 | (stdio_file::isatty): New. | |
1213 | (stderr_file_write): Rename to ... | |
1214 | (stderr_file::write) ... this. Adjust. | |
1215 | (stderr_file_fputs): Rename to ... | |
1216 | (stderr_file::puts) ... this. Adjust. | |
1217 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. | |
1218 | (stderr_file::stderr_file): New. | |
1219 | (tee_file_magic): Delete. | |
1220 | (struct tee_file): Delete. | |
1221 | (tee_file::tee_file): New. | |
1222 | (tee_file_new): Delete. | |
1223 | (tee_file::~tee_file): New. | |
1224 | (tee_file_delete): Delete. | |
1225 | (tee_file_flush): Rename to ... | |
1226 | (tee_file::flush): ... this. Adjust. | |
1227 | (tee_file_write): Rename to ... | |
1228 | (tee_file::write): ... this. Adjust. | |
1229 | (tee_file::write_async_safe): New. | |
1230 | (tee_file_fputs): Rename to ... | |
1231 | (tee_file::puts): ... this. Adjust. | |
1232 | (tee_file_isatty): Rename to ... | |
1233 | (tee_file::isatty): ... this. Adjust. | |
1234 | * ui-file.h (struct obstack, struct ui_file): Don't | |
1235 | forward-declare. | |
1236 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) | |
1237 | (ui_file_write_ftype) | |
1238 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) | |
1239 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) | |
1240 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) | |
1241 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) | |
1242 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) | |
1243 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) | |
1244 | (set_ui_file_fseek): Delete. | |
1245 | (ui_file_data, ui_file_delete, ui_file_rewind) | |
1246 | (struct ui_file): New. | |
1247 | (ui_file_up): New. | |
1248 | (class null_file): New. | |
1249 | (null_stream): Declare. | |
1250 | (ui_file_write_for_put, ui_file_put): Delete. | |
1251 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): | |
1252 | Delete. | |
1253 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) | |
1254 | (gdb_fopen, tee_file_new): Delete. | |
1255 | (struct string_file): New. | |
1256 | (struct stdio_file): New. | |
1257 | (stdio_file_up): New. | |
1258 | (struct stderr_file): New. | |
1259 | (class tee_file): New. | |
1260 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead | |
1261 | of a 'ui_file *'. Adjust. | |
1262 | * ui-out.h (class ui_out) <field_stream>: Likewise. | |
1263 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) | |
1264 | (null_stream): Delete. | |
1265 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. | |
1266 | Adjust. | |
1267 | * utils.h (struct ui_file): Delete forward declaration.. | |
1268 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. | |
1269 | (error_stream): Take a 'string_file &' instead of a | |
1270 | 'ui_file *'. | |
1271 | * varobj.c (varobj_value_get_print_value): Use string_file. | |
1272 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. | |
1273 | * gdbarch.c: Regenerate. | |
1274 | ||
187808b0 PA |
1275 | 2017-02-02 Pedro Alves <palves@redhat.com> |
1276 | ||
1277 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... | |
1278 | (gdb_pretty_print_insn): ... this. Now a free function. Add back | |
1279 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. | |
1280 | Adjust to call gdb_print_insn instead of | |
1281 | gdb_disassembler::print_insn. | |
1282 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
1283 | (do_mixed_source_and_assembly, do_assembly_only): Add back a | |
1284 | 'gdbarch' parameter. Remove gdb_disassembler parameter. | |
1285 | (gdb_disassembly): Don't allocate a gdb_disassembler here. | |
1286 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete | |
1287 | declaration. | |
1288 | (gdb_pretty_print_insn): Re-add declaration. | |
1289 | * record-btrace.c (btrace_insn_history): Don't allocate a | |
1290 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. | |
1291 | ||
7a8eb317 SM |
1292 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
1293 | ||
1294 | * disasm.h (gdb_disassembly): Remove file_string parameter. | |
1295 | * disasm.c (gdb_disassembly): Likewise. | |
1296 | * cli/cli-cmds.c (print_disassembly): Adapt. | |
1297 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
1298 | * stack.c (do_gdb_disassembly): Likewise. | |
1299 | ||
7346ef59 AA |
1300 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1301 | ||
1302 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For | |
1303 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian | |
1304 | targets. And if the implicit value is longer than needed, extract | |
1305 | the first bytes instead of the "least significant" ones. | |
1306 | ||
cd4007e4 MM |
1307 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
1308 | ||
1309 | * btrace.c (btrace_enable): Do not call btrace_add_pc for | |
1310 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. | |
1311 | (btrace_fetch): Assert can_access_registers_ptid. | |
1312 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call | |
1313 | validate_registers_access. | |
1314 | ||
cf77c34e MM |
1315 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
1316 | ||
1317 | * gdbthread.h (can_access_registers_ptid): New. | |
1318 | * thread.c (can_access_registers_ptid): New. | |
1319 | ||
be85ce7d PA |
1320 | 2017-02-01 Pedro Alves <palves@redhat.com> |
1321 | ||
1322 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. | |
1323 | ||
29b0b251 PA |
1324 | 2017-01-31 Pedro Alves <palves@redhat.com> |
1325 | ||
1326 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): | |
1327 | Fix typos. | |
1328 | ||
289b5b24 PA |
1329 | 2017-01-31 Pedro Alves <palves@redhat.com> |
1330 | ||
1331 | * stack.c (print_frame_args): Remove local mem_fileopen stream, | |
1332 | not used. | |
1333 | ||
b47413b4 PA |
1334 | 2017-01-31 Pedro Alves <palves@redhat.com> |
1335 | ||
1336 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. | |
1337 | ||
60adb36c PA |
1338 | 2017-01-31 Pedro Alves <palves@redhat.com> |
1339 | ||
1340 | * common/scoped_restore.h | |
1341 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and | |
1342 | change the value's parameter type to T2. | |
1343 | (make_scoped_restore): Likewise. | |
1344 | ||
2735833d WT |
1345 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1346 | Richard Henderson <rth@redhat.com> | |
1347 | ||
1348 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. | |
1349 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE | |
1350 | GS_BASE for older kernels. | |
1351 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE | |
1352 | GS_BASE for older kernels. | |
1353 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE | |
1354 | and GS_BASE to the offset table. | |
1355 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the | |
1356 | system register group. | |
1357 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case | |
1358 | for older kernels. | |
1359 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the | |
1360 | amd64 ABI. | |
1361 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and | |
1362 | AMD64_GSBASE_REGNUM. | |
1363 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. | |
1364 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) | |
1365 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) | |
1366 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add | |
1367 | i386/64bit-segments.xml in those rules. | |
1368 | * features/i386/64bit-segments.xml: New file. | |
1369 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. | |
1370 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. | |
1371 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. | |
1372 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. | |
1373 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. | |
1374 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. | |
1375 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. | |
1376 | * features/i386/amd64-avx-linux.c: Regenerated. | |
1377 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. | |
1378 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
1379 | * features/i386/amd64-avx512-linux.c: Regenerated. | |
1380 | * features/i386/amd64-linux.c: Regenerated. | |
1381 | * features/i386/amd64-mpx-linux.c: Regenerated. | |
1382 | * features/i386/i386-avx-mpx-linux.c: Regenerated. | |
1383 | * features/i386/i386-avx-mpx.c: Regenerated. | |
1384 | * features/i386/x32-avx-linux.c: Regenerated. | |
1385 | * features/i386/x32-avx512-linux.c: Regenerated. | |
1386 | * regformats/i386/amd64-avx-linux.dat: Regenerated. | |
1387 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. | |
1388 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. | |
1389 | * regformats/i386/amd64-linux.dat: Regenerated. | |
1390 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. | |
1391 | * regformats/i386/x32-avx-linux.dat: Regenerated. | |
1392 | * regformats/i386/x32-avx512-linux.dat: Regenerated. | |
1393 | * regformats/i386/x32-linux.dat: Regenerated. | |
1394 | ||
8884e97e WT |
1395 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1396 | ||
1397 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): | |
1398 | Set to AMD64_NUM_REGS. | |
1399 | ||
7005d26a WT |
1400 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1401 | ||
1402 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic | |
1403 | that checks validity of a register number. | |
1404 | ||
4bd2e1b2 KC |
1405 | 2017-01-27 Kees Cook <keescook@google.com> |
1406 | ||
1407 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call | |
1408 | fetch_fpregs if target has fpa registers. | |
1409 | (arm_linux_store_inferior_registers): Call store_fpregs if target | |
1410 | has fpa registers. | |
1411 | ||
7cf1de6c AA |
1412 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1413 | ||
1414 | * cris-tdep.c (cris_gdbarch_init): Remove check for | |
1415 | info.byte_order and force it to BFD_ENDIAN_LITTLE. | |
1416 | ||
874a1c8c AT |
1417 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
1418 | ||
1419 | * corelow.c (get_core_register_section): Check for regset | |
1420 | existence before checking for REGSET_VARIABLE_SIZE. | |
1421 | ||
d8b49cf0 YQ |
1422 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
1423 | Pedro Alves <palves@redhat.com> | |
1424 | ||
1425 | PR gdb/20939 | |
1426 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't | |
1427 | call memory_error, save memaddr instead. | |
1428 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns | |
1429 | negative, cal memory_error. | |
1430 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. | |
1431 | ||
658ca58c YQ |
1432 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
1433 | ||
1434 | * disasm-selftests.c (memory_error_test): New function. | |
1435 | (_initialize_disasm_selftests): Register memory_error_test. | |
1436 | ||
79843d45 YQ |
1437 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
1438 | ||
1439 | * Makefile.in (SFILES): Add disasm-selftests.c and | |
1440 | selftest-arch.c. | |
1441 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. | |
1442 | * disasm-selftests.c: New file. | |
1443 | * selftest-arch.c: New file. | |
1444 | * selftest-arch.h: New file. | |
1445 | ||
8cafda32 YQ |
1446 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
1447 | ||
1448 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch | |
1449 | to bfd_arch_mep. Don't return 0 if section is not | |
1450 | found. Call print_insn_mep. | |
1451 | ||
e47ad6c0 YQ |
1452 | 2017-01-26 Pedro Alves <palves@redhat.com> |
1453 | Yao Qi <yao.qi@linaro.org> | |
1454 | ||
1455 | * arm-tdep.c: Include "disasm.h". | |
1456 | (gdb_print_insn_arm): Update code to get gdbarch. | |
1457 | * disasm.c (dis_asm_read_memory): Change it to | |
1458 | gdb_disassembler::dis_asm_read_memory. | |
1459 | (dis_asm_memory_error): Likewise. | |
1460 | (dis_asm_print_address): Likewise. | |
1461 | (gdb_pretty_print_insn): Change it to | |
1462 | gdb_disassembler::pretty_print_insn. | |
1463 | (dump_insns): Add one argument gdb_disassemlber. All | |
1464 | callers updated. | |
1465 | (do_mixed_source_and_assembly_deprecated): Likewise. | |
1466 | (do_mixed_source_and_assembly): Likewise. | |
1467 | (do_assembly_only): Likewise. | |
1468 | (gdb_disassembler::gdb_disassembler): New. | |
1469 | (gdb_disassembler::print_insn): New. | |
1470 | * disasm.h (class gdb_disassembler): New. | |
1471 | (gdb_pretty_print_insn): Remove declaration. | |
1472 | (gdb_disassemble_info): Likewise. | |
1473 | * guile/scm-disasm.c (class gdbscm_disassembler): New. | |
1474 | (gdbscm_disasm_read_memory_worker): Update. | |
1475 | (gdbscm_disasm_read_memory): Update. | |
1476 | (gdbscm_disasm_memory_error): Remove. | |
1477 | (gdbscm_disasm_print_address): Remove. | |
1478 | (gdbscm_disassembler::gdbscm_disassembler): New. | |
1479 | (gdbscm_print_insn_from_port): Update. | |
1480 | * mips-tdep.c: Include disasm.h. | |
1481 | (gdb_print_insn_mips): Update code to get gdbarch. | |
1482 | * record-btrace.c (btrace_insn_history): Update. | |
1483 | * spu-tdep.c: Include disasm.h. | |
1484 | (struct spu_dis_asm_data): Remove. | |
1485 | (struct spu_dis_asm_info): New. | |
1486 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get | |
1487 | SPU id. | |
1488 | (gdb_print_insn_spu): Cast disassemble_info to | |
1489 | spu_dis_asm_info. | |
1490 | ||
80d75874 YQ |
1491 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
1492 | ||
1493 | * disasm.c (do_ui_file_delete): Delete. | |
1494 | (gdb_insn_length): Move code creating stream to ... | |
1495 | * utils.c (null_stream): ... here. New function. | |
1496 | * utils.h (null_stream): Declare. | |
1497 | ||
60685cd0 SM |
1498 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
1499 | ||
1500 | * python/py-inferior.c (find_thread_object): Return directly | |
1501 | from the loop. Remove "found" variable. | |
1502 | ||
eb1cdb62 JB |
1503 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
1504 | ||
1505 | GDB 7.12.1 released. | |
1506 | ||
b1ce6568 SM |
1507 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
1508 | ||
1509 | * python/py-function.c (fnpy_call): Reorder declarations to have | |
1510 | the gdbpy_enter object declared first. | |
1511 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. | |
1512 | ||
6f8b0407 SM |
1513 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
1514 | ||
fec93fb1 | 1515 | PR python/21068 |
6f8b0407 SM |
1516 | * python/python-internal.h (PyMem_RawMalloc): Define for |
1517 | Python < 3.4. | |
1518 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use | |
1519 | PyMem_RawMalloc instead of PyMem_Malloc. | |
1520 | ||
78cbbba8 LM |
1521 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
1522 | Luis Machado <lgustavo@codesourcery.com> | |
1523 | ||
1524 | * NEWS (New commands): Mention flash-erase. | |
1525 | (New MI commands): Mention target-flash-erase. | |
1526 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI | |
1527 | command. | |
1528 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. | |
1529 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. | |
1530 | * target.c (flash_erase_command): New function. | |
1531 | (initialize_targets): Add new flash-erase command. | |
1532 | * target.h (flash_erase_command): New declaration. | |
1533 | ||
2132fe85 JB |
1534 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
1535 | ||
1536 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if | |
1537 | HAVE_SYS_PROCFS_H is defined. | |
1538 | ||
d1dff226 AH |
1539 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
1540 | ||
1541 | * remote.c (struct cached_reg): Change data into a pointer. | |
1542 | * (stop_reply_dtr): Free data pointers before deleting vector. | |
1543 | (process_stop_reply): Likewise. | |
1544 | (remote_parse_stop_reply): Allocate space for data | |
1545 | ||
9890e433 AH |
1546 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
1547 | ||
1548 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove | |
1549 | MAX_REGISTER_SIZE. | |
1550 | (amd64_pseudo_register_read_value): Likewise. | |
1551 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. | |
1552 | (store_register_using_P): Likewise. | |
1553 | * regcache.c (regcache_xfer_part): Likewise. | |
1554 | ||
7a36499a IR |
1555 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
1556 | ||
1557 | Split real and pseudo registers. | |
1558 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. | |
1559 | (sparc32_pseudo_regnum): New enum. | |
1560 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. | |
1561 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. | |
1562 | (SPARC32_CP0_REGISTERS): New macro. | |
1563 | (sparc32_pseudo_register_name): New function. | |
1564 | (sparc32_register_name): Use sparc32_pseudo_register_name. | |
1565 | (sparc32_pseudo_register_type): New function. | |
1566 | (sparc32_register_type): Use sparc32_pseudo_register_type. | |
1567 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle | |
1568 | pseudo register numbers. | |
1569 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. | |
1570 | (SPARC64_CP0_REGISTERS): New macro. | |
1571 | (sparc64_pseudo_register_name): New function. | |
1572 | (sparc64_register_name): Use sparc64_pseudo_register_name. | |
1573 | (sparc64_pseudo_register_type): New function. | |
1574 | (sparc64_register_type): Use sparc64_pseudo_register_type. | |
1575 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle | |
1576 | pseudo register numbers. | |
1577 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, | |
1578 | sparc64_store_arguments): Handle pseudo register numbers. | |
1579 | ||
6f8976bf YQ |
1580 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
1581 | ||
1582 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. | |
1583 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug | |
1584 | output. | |
1585 | (getpkt_or_notif_sane_1): Likewise. | |
1586 | ||
e4241ace YQ |
1587 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
1588 | ||
1589 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead | |
1590 | of CC. Pass "-x c++-header" instead of "-x c". | |
1591 | ||
3015c064 SM |
1592 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
1593 | ||
1594 | * remote.c (remote_can_async_p): Update comment. | |
1595 | ||
fde1b17d SM |
1596 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
1597 | ||
1598 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
1599 | ||
ca1ca08b SM |
1600 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
1601 | ||
1602 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
1603 | ||
4ad2da73 SM |
1604 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
1605 | ||
1606 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
1607 | ||
c8b23b3f TT |
1608 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1609 | ||
1610 | * python/py-type.c (typy_legacy_template_argument): Update. | |
1611 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
1612 | ~demangle_parse_info): Declare new members. | |
1613 | (cp_demangled_name_to_comp): Return unique_ptr. | |
1614 | (cp_demangled_name_parse_free) | |
1615 | (make_cleanup_cp_demangled_name_parse_free) | |
1616 | (cp_new_demangle_parse_info): Remove. | |
1617 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
1618 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
1619 | (inspect_type, cp_canonicalize_string_full) | |
1620 | (cp_canonicalize_string): Update. | |
1621 | (mangled_name_to_comp): Change return type. | |
1622 | (cp_class_name_from_physname, method_name_from_physname) | |
1623 | (cp_func_name, cp_remove_params): Update. | |
1624 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
1625 | cp_new_demangle_parse_info. | |
1626 | (~demangle_parse_info): New destructor, from | |
1627 | cp_demangled_name_parse_free. | |
1628 | (cp_merge_demangle_parse_infos): Update. | |
1629 | (cp_demangled_name_to_comp): Change return type. | |
1630 | ||
1ac32117 TT |
1631 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1632 | ||
1633 | * top.c (prevent_dont_repeat): Change return type. | |
1634 | * python/python.c (execute_gdb_command): Use std::string. | |
1635 | Update. | |
1636 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
1637 | * command.h (prevent_dont_repeat): Change return type. | |
1638 | * breakpoint.c (bpstat_do_actions_1): Update. | |
1639 | ||
0cf08227 TT |
1640 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1641 | ||
1642 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
1643 | free_to_mark. | |
1644 | (scoped_value_mark::free_to_mark): New method. | |
1645 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
1646 | scoped_value_mark. | |
1647 | ||
eb115069 TT |
1648 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1649 | ||
1650 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
1651 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
1652 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
1653 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
1654 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
1655 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
1656 | scoped_value_mark. | |
1657 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
1658 | * value.h (scoped_value_mark): New class. | |
1659 | ||
906768f9 TT |
1660 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1661 | ||
1662 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
1663 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
1664 | * psymtab.c (discard_psymtabs_upto): Remove. | |
1665 | (make_cleanup_discard_psymtabs): Remove. | |
1666 | (struct psymtab_state): Remove. | |
1667 | ||
bef155c3 TT |
1668 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1669 | ||
1670 | * record-full.c (record_full_save_cleanups): Remove. | |
1671 | (record_full_save): Use gdb::unlinker. | |
1672 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
1673 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
1674 | cleanups. | |
1675 | * dwarf2read.c (unlink_if_set): Remove. | |
1676 | (write_psymtabs_to_index): Use gdb::unlinker. | |
1677 | * common/gdb_unlinker.h: New file. | |
1678 | ||
192b62ce TT |
1679 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1680 | ||
1681 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
1682 | * windows-nat.c (windows_make_so): Update. | |
1683 | * utils.h (make_cleanup_bfd_unref): Remove. | |
1684 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
1685 | * symfile.h (symfile_bfd_open) | |
1686 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
1687 | * symfile.c (read_symbols, symbol_file_add) | |
1688 | (separate_debug_file_exists): Update. | |
1689 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
1690 | (generic_load, reread_symbols): Update. | |
1691 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
1692 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
1693 | (spu_symbol_file_add_from_memory): Update. | |
1694 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
1695 | gdb_bfd_ref_ptr. | |
1696 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
1697 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
1698 | gdb_bfd_ref_ptr. | |
1699 | (solib_map_sections, reload_shared_libraries_1): Update. | |
1700 | * solib-svr4.c (enable_break): Update. | |
1701 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
1702 | * solib-frv.c (enable_break2): Update. | |
1703 | * solib-dsbt.c (enable_break): Update. | |
1704 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
1705 | gdb_bfd_ref_ptr. | |
1706 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
1707 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
1708 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
1709 | * record-full.c (record_full_save): Update. | |
1710 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
1711 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
1712 | * minidebug.c (find_separate_debug_file_in_section): Return | |
1713 | gdb_bfd_ref_ptr. | |
1714 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
1715 | gdb_bfd_ref_ptr. | |
1716 | (macho_symfile_read_all_oso): Update. | |
1717 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
1718 | (macho_symfile_read): Update. | |
1719 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
1720 | (jit_bfd_try_read_symtab): Update. | |
1721 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
1722 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
1723 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
1724 | gdb_bfd_ref_ptr. | |
1725 | (gdb_bfd_ref_policy): New struct. | |
1726 | (gdb_bfd_ref_ptr): New typedef. | |
1727 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
1728 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
1729 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
1730 | gdb_bfd_ref_ptr. | |
1731 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
1732 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
1733 | (gcore_command): Update. | |
1734 | * exec.c (exec_file_attach): Update. | |
1735 | * elfread.c (elf_symfile_read): Update. | |
1736 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
1737 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
1738 | (open_and_init_dwo_file): Update. | |
1739 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
1740 | (open_and_init_dwp_file): Update. | |
1741 | * corelow.c (core_open): Update. | |
1742 | * compile/compile-object-load.c (compile_object_load): Update. | |
1743 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
1744 | * coffread.c (coff_symfile_read): Update. | |
1745 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
1746 | gdb_bfd_ref_ptr. Rename. | |
1747 | (dump_bfd_file, restore_command): Update. | |
1748 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
1749 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
1750 | (find_separate_debug_file_by_buildid): Update. | |
1751 | ||
50315b21 TT |
1752 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1753 | ||
1754 | * common/gdb_ref_ptr.h: New file. | |
1755 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
1756 | (gdbpy_ref): Now a typedef. | |
1757 | ||
fc4007c9 TT |
1758 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1759 | ||
1760 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
1761 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
1762 | Remove. | |
1763 | * linespec.c (decode_compound_collector): Add constructor, | |
1764 | destructor. | |
1765 | (lookup_prefix_sym): Remove cleanup. | |
1766 | (symtab_collector): Add constructor, destructor. | |
1767 | (collect_symtabs_from_filename): Remove cleanup. | |
1768 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
1769 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
1770 | Use htab_up. | |
1771 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
1772 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
1773 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
1774 | (write_psymtabs_to_index): Use htab_up. | |
1775 | * dwarf2loc.c (func_verify_no_selftailcall) | |
1776 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
1777 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
1778 | std::vector, gdb::unique_xmalloc_ptr. | |
1779 | (call_sitep): Remove typedef. | |
1780 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
1781 | ||
8dbcee67 TT |
1782 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1783 | ||
1784 | * python/python-internal.h (make_cleanup_py_decref) | |
1785 | (make_cleanup_py_xdecref): Don't declare. | |
1786 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
1787 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
1788 | ||
13df46cc TT |
1789 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1790 | ||
1791 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
1792 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
1793 | ||
06fc9bf7 TT |
1794 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1795 | ||
1796 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
1797 | ||
830a4934 TT |
1798 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1799 | ||
1800 | * python/py-utils.c (unicode_to_encoded_string) | |
1801 | (python_string_to_target_string) | |
1802 | (python_string_to_target_python_string) | |
1803 | (python_string_to_host_string, gdbpy_obj_to_string) | |
1804 | (get_addr_from_python): Use gdbpy_ref. | |
1805 | ||
4586d543 TT |
1806 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1807 | ||
1808 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
1809 | gdbpy_ref. | |
1810 | ||
59876f8f TT |
1811 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1812 | ||
1813 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
1814 | (gdbpy_run_events, gdbpy_start_type_printers) | |
1815 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
1816 | ||
97d83487 TT |
1817 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1818 | ||
1819 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
1820 | gdbpy_ref. | |
1821 | ||
9205649a TT |
1822 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1823 | ||
1824 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
1825 | Use gdbpy_ref. | |
1826 | ||
74c49d45 TT |
1827 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1828 | ||
1829 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
1830 | ||
16361ffb TT |
1831 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1832 | ||
1833 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
1834 | gdbpy_ref. | |
1835 | ||
905f2cca TT |
1836 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1837 | ||
1838 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
1839 | extra incref. | |
1840 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
1841 | Use gdbpy_ref. | |
1842 | ||
64081434 TT |
1843 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1844 | ||
1845 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
1846 | gdbpy_ref. | |
1847 | ||
59e9e831 TT |
1848 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1849 | ||
1850 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
1851 | decref results of PyArg_ParseTupleAndKeywords. | |
1852 | ||
9de10f6d TT |
1853 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1854 | ||
1855 | * python/python.c (python_run_simple_file): Use | |
1856 | unique_xmalloc_ptr, gdbpy_ref. | |
1857 | ||
2bd5759d TT |
1858 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1859 | ||
1860 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
1861 | (print_string_repr, print_children): Use gdbpy_ref. | |
1862 | (dummy_python_frame): New class. | |
1863 | (dummy_python_frame::dummy_python_frame): Rename from | |
1864 | push_dummy_python_frame. | |
1865 | (py_restore_tstate): Remove. | |
1866 | ||
3b4e0e01 TT |
1867 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1868 | ||
1869 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
1870 | ||
17a22718 TT |
1871 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1872 | ||
1873 | * python/python.c (ensure_python_env, restore_python_env): | |
1874 | Remove. | |
1875 | * python/python-internal.h (ensure_python_env): Don't declare. | |
1876 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
1877 | * varobj.c (varobj_ensure_python_env): Remove. | |
1878 | ||
68cdc557 TT |
1879 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1880 | ||
1881 | * varobj.c (varobj_value_get_print_value): Use | |
1882 | gdbpy_enter_varobj. | |
1883 | ||
1eba6383 TT |
1884 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1885 | ||
1886 | * python/py-prettyprint.c (print_string_repr, print_children): | |
1887 | Update. | |
1888 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
1889 | of "encoding". | |
1890 | * varobj.c (varobj_value_get_print_value): Update. | |
1891 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
1892 | ||
bde7b3e3 TT |
1893 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1894 | ||
1895 | * varobj.c (varobj_get_display_hint) | |
1896 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
1897 | (varobj_set_visualizer, free_variable): Use | |
1898 | gdbpy_enter_varobj. | |
1899 | ||
a7785f8c TT |
1900 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1901 | ||
1902 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
1903 | (do_finish_initialization): New function. Use gdbpy_ref. | |
1904 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
1905 | do_finish_initialization. | |
1906 | ||
2865bfce TT |
1907 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1908 | ||
1909 | * python/py-param.c (get_set_value, get_show_value): Use | |
1910 | gdbpy_enter, gdbpy_ref. | |
1911 | ||
0e9dcc75 TT |
1912 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1913 | ||
1914 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
1915 | ||
12a5cedd TT |
1916 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1917 | ||
1918 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
1919 | ||
788f2586 TT |
1920 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1921 | ||
1922 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
1923 | Use gdbpy_enter_varobj. | |
1924 | ||
6cd67bea TT |
1925 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1926 | ||
1927 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
1928 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
1929 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
1930 | gdbpy_enter_varobj. | |
1931 | ||
14b122bf TT |
1932 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1933 | ||
1934 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
1935 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
1936 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
1937 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
1938 | unique_xmalloc_ptr. | |
1939 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
1940 | ||
bf1ca3b9 TT |
1941 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1942 | ||
1943 | * python/py-xmethods.c (invoke_match_method): Use | |
1944 | gdbpy_ref. | |
1945 | ||
572a5524 TT |
1946 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1947 | ||
1948 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
1949 | gdbpy_enter, gdbpy_ref. | |
1950 | ||
396a78b6 TT |
1951 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1952 | ||
1953 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
1954 | ||
a88b13c7 TT |
1955 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1956 | ||
1957 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
1958 | gdbpy_ref. | |
1959 | ||
e9f0c363 TT |
1960 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1961 | ||
1962 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
1963 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
1964 | ||
6349f452 TT |
1965 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1966 | ||
1967 | * utils.h (htab_deleter): New struct. | |
1968 | (htab_up): New typedef. | |
1969 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
1970 | gdbpy_enter, gdbpy_ref, htab_up. | |
1971 | ||
c0171de6 TT |
1972 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1973 | ||
1974 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
1975 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
1976 | ||
f18e226f TT |
1977 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1978 | ||
1979 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
1980 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
1981 | ||
c57af3f1 TT |
1982 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1983 | ||
1984 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
1985 | ||
60e600ec TT |
1986 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1987 | ||
1988 | * python/python.c (gdbpy_eval_from_control_command) | |
1989 | (gdbpy_source_script, gdbpy_run_events) | |
1990 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
1991 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
1992 | gdbpy_enter. | |
1993 | ||
bf7da5b0 TT |
1994 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1995 | ||
1996 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
1997 | ||
2d38bced TT |
1998 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1999 | ||
2000 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
2001 | ||
07bc7329 TT |
2002 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2003 | ||
2004 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
2005 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
2006 | (python_on_memory_change, python_on_register_change) | |
2007 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
2008 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
2009 | ||
6e7c365e TT |
2010 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2011 | ||
2012 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
2013 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
2014 | ||
6ba0cd40 TT |
2015 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2016 | ||
2017 | * python/py-cmd.c (cmdpy_destroyer) | |
2018 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
2019 | gdbpy_enter. | |
2020 | ||
de2dc875 TT |
2021 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2022 | ||
2023 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
2024 | gdbpy_enter. | |
2025 | (gdbpy_breakpoint_has_cond): Likewise. | |
2026 | ||
4ecee2c4 TT |
2027 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2028 | ||
2029 | * python/python.c (gdbpy_enter): New constructor. | |
2030 | (~gdbpy_enter): New destructor. | |
2031 | (restore_python_env, ensure_python_env): Rewrite. | |
2032 | * python/python-internal.h (gdbpy_enter): New class. | |
2033 | ||
37fce74f TT |
2034 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2035 | ||
2036 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
2037 | ||
53a0cca3 TT |
2038 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2039 | ||
2040 | * python/py-value.c (value_has_field, get_field_flag) | |
2041 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
2042 | gdbpy_ref. | |
2043 | ||
ff3724f5 TT |
2044 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2045 | ||
2046 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
2047 | gdbpy_ref. | |
2048 | ||
0700aea5 TT |
2049 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2050 | ||
2051 | * python/py-prettyprint.c (search_pp_list) | |
2052 | (find_pretty_printer_from_objfiles) | |
2053 | (find_pretty_printer_from_progspace) | |
2054 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
2055 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
2056 | gdbpy_ref. | |
2057 | ||
1bb44c9f TT |
2058 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2059 | ||
2060 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
2061 | ||
87ce03fd TT |
2062 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2063 | ||
2064 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
2065 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
2066 | ||
ee0a3fb8 TT |
2067 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2068 | ||
2069 | * python/py-framefilter.c (extract_sym, extract_value) | |
2070 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
2071 | gdbpy_ref. | |
2072 | ||
bf2a52fa TT |
2073 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2074 | ||
2075 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
2076 | ||
f59fe7f8 TT |
2077 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2078 | ||
2079 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
2080 | ||
80bd970a TT |
2081 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2082 | ||
2083 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
2084 | gdbpy_ref. | |
2085 | ||
d1b3de2e TT |
2086 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2087 | ||
2088 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
2089 | ||
3bb43384 TT |
2090 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2091 | ||
2092 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
2093 | (typy_range): Use gdbpy_ref. | |
2094 | ||
abf5651e TT |
2095 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2096 | ||
2097 | * python/py-threadevent.c (create_thread_event_object): Use | |
2098 | gdbpy_ref. | |
2099 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
2100 | (emit_stop_event): Use gdbpy_ref. | |
2101 | * python/py-signalevent.c (create_signal_event_object): Use | |
2102 | gdbpy_ref. | |
2103 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
2104 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
2105 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
2106 | * python/py-infevents.c (create_inferior_call_event_object) | |
2107 | (create_register_changed_event_object) | |
2108 | (create_memory_changed_event_object, emit_inferior_call_event) | |
2109 | (emit_memory_changed_event, emit_register_changed_event): Use | |
2110 | gdbpy_ref. | |
2111 | * python/py-exitedevent.c (create_exited_event_object) | |
2112 | (emit_exited_event): Use gdbpy_ref. | |
2113 | * python/py-event.h (evpy_emit_event): Remove | |
2114 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
2115 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
2116 | * python/py-continueevent.c (emit_continue_event): Use | |
2117 | gdbpy_ref. | |
2118 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
2119 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
2120 | gdbpy_ref. | |
2121 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
2122 | gdbpy_ref. | |
2123 | ||
a68ff33e TT |
2124 | 2017-01-10 Tom Tromey <tom@tromey.com> |
2125 | ||
2126 | * python/py-ref.h: New file. | |
2127 | ||
7becfd03 SM |
2128 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
2129 | ||
2130 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
2131 | void. | |
2132 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
2133 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
2134 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
2135 | * ui-out.c (ui_out::redirect): Likewise. | |
2136 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
2137 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
2138 | ui_out::redirect. | |
2139 | (handle_redirections): Likewise. | |
2140 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
2141 | * top.c (execute_command_to_string): Likewise. | |
2142 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
2143 | ||
df294654 SM |
2144 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
2145 | ||
2146 | * stack.c (_initialize_stack): Update "frame" command help message. | |
2147 | ||
f5e6296e IB |
2148 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
2149 | ||
2150 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
2151 | ||
0e2d6fa6 YQ |
2152 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
2153 | ||
2154 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
2155 | ||
44d6d3f9 YQ |
2156 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
2157 | ||
2158 | * ser-base.h: Include serial.h. | |
2159 | ||
656731fe YQ |
2160 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
2161 | ||
2162 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
2163 | ||
1ca8f924 YQ |
2164 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
2165 | ||
2166 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
2167 | ||
bc3008c4 YQ |
2168 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
2169 | ||
2170 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
2171 | ||
66c80d03 YQ |
2172 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
2173 | ||
2174 | * mi/mi-parse.h: Include mi-cmds.h. | |
2175 | ||
051d2dda YQ |
2176 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
2177 | ||
2178 | * inf-loop.c: Don't include "target.h". | |
2179 | * inf-loop.h: Include it here. | |
2180 | ||
8018d34f YQ |
2181 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
2182 | ||
2183 | * dfp.h: Include "dboulest.h" and "expression.h". | |
2184 | ||
c0b8369c YQ |
2185 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
2186 | ||
2187 | * ax-gdb.h: Include "ax.h". | |
2188 | ||
ad5cba2a YQ |
2189 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
2190 | ||
2191 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
2192 | with nat/gdb_ptrace.h. | |
2193 | ||
1c33cd7f YQ |
2194 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
2195 | ||
2196 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
2197 | new line. | |
2198 | (mips64_fbsd_sigframe_init): Likewise. | |
2199 | ||
c988ac1d JB |
2200 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
2201 | ||
2202 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
2203 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
2204 | ||
b268007c JB |
2205 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
2206 | ||
2207 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
2208 | * NEWS: Mention new FreeBSD/mips native configuration. | |
2209 | * config/mips/fbsd.mh: New file. | |
2210 | * configure.host: Add mips*-*-freebsd*. | |
2211 | * mips-fbsd-nat.c: New file. | |
2212 | ||
387360da JB |
2213 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
2214 | ||
2215 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
2216 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
2217 | * NEWS: Mention new FreeBSD/mips target. | |
2218 | * configure.tgt: Add mips*-*-freebsd*. | |
2219 | * mips-fbsd-tdep.c: New file. | |
2220 | * mips-fbsd-tdep.h: New file. | |
2221 | ||
2aaaf250 YQ |
2222 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
2223 | ||
2224 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
2225 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
2226 | ||
61baf725 JB |
2227 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
2228 | ||
6dbb839a | 2229 | Update copyright year range in all GDB files. |
61baf725 | 2230 | |
c113e7ff | 2231 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
ce0db137 | 2232 | |
c113e7ff | 2233 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 2234 | |
c113e7ff | 2235 | For older changes see ChangeLog-2016. |
c906108c SS |
2236 | \f |
2237 | Local Variables: | |
2238 | mode: change-log | |
2239 | left-margin: 8 | |
2240 | fill-column: 74 | |
2241 | version-control: never | |
57da7796 | 2242 | coding: utf-8 |
c906108c | 2243 | End: |