Commit | Line | Data |
---|---|---|
a8a5dbca TT |
1 | 2018-10-06 Tom Tromey <tom@tromey.com> |
2 | ||
3 | PR build/17077: | |
4 | * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..". | |
5 | * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c, | |
6 | microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in | |
7 | #include. | |
8 | ||
2a8be203 TT |
9 | 2018-10-06 Tom Tromey <tom@tromey.com> |
10 | ||
11 | * python/py-breakpoint.c (bppy_get_location): Handle a | |
12 | bp_breakpoint without a location. | |
13 | ||
2fb009bb TT |
14 | 2018-10-06 Tom Tromey <tom@tromey.com> |
15 | ||
16 | * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq) | |
17 | (_RegEx): Reformat help text. | |
18 | * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches) | |
19 | (AnyCallerIs, AnyCallerMatches): Reformat help text. | |
20 | * python/lib/gdb/function/as_string.py (_AsString): Reformat help | |
21 | text. | |
22 | * python/lib/gdb/command/xmethods.py (InfoXMethod) | |
23 | (EnableXMethod, DisableXMethod): Remove help indentation. | |
24 | Capitalize meta-syntactic variables. | |
25 | * python/lib/gdb/command/unwinders.py (InfoUnwinder) | |
26 | (EnableUnwinder, DisableUnwinder): Remove help indentation. | |
27 | Capitalize meta-syntactic variables. | |
28 | * python/lib/gdb/command/explore.py (ExploreCommand) | |
29 | (ExploreValueCommand, ExploreTypeCommand): Reformat help text. | |
30 | * python/lib/gdb/command/type_printers.py (InfoTypePrinter) | |
31 | (EnableTypePrinter, DisableTypePrinter): Remove help indentation. | |
32 | * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter): | |
33 | Remove help indentation. | |
34 | (EnablePrettyPrinter, DisablePrettyPrinter): Likewise. | |
35 | * python/lib/gdb/command/frame_filters.py (EnableFrameFilter) | |
36 | (DisableFrameFilter, SetFrameFilterPriority) | |
37 | (ShowFrameFilterPriority, InfoFrameFilter): Reword help text. | |
38 | ||
7a956928 TT |
39 | 2018-10-06 Tom Tromey <tom@tromey.com> |
40 | ||
41 | PR tui/28819: | |
42 | * tui/tui-io.c (gdb_wgetch): New function. | |
43 | (tui_mld_getc, tui_getc): Use it. | |
44 | ||
f8740dc5 TT |
45 | 2018-10-05 Tom Tromey <tom@tromey.com> |
46 | ||
47 | * sol-thread.c (sol_thread_target::wait): Rename inner | |
48 | "save_ptid". | |
49 | ||
96643e35 TT |
50 | 2018-10-04 Tom Tromey <tom@tromey.com> |
51 | ||
52 | * configure: Rebuild. | |
53 | * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local. | |
54 | ||
d951f98b TT |
55 | 2018-10-04 Tom Tromey <tom@tromey.com> |
56 | ||
57 | * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner | |
58 | declaration of "block". | |
59 | ||
b8c88847 TT |
60 | 2018-10-04 Tom Tromey <tom@tromey.com> |
61 | ||
62 | * common/filestuff.c (fdwalk): Remove inner declaration of | |
63 | "result". | |
64 | ||
ef789dc4 TT |
65 | 2018-10-04 Tom Tromey <tom@tromey.com> |
66 | ||
67 | * msp430-tdep.c (msp430_push_dummy_call): Rename inner | |
68 | "structs_addr" and hoist declaration. | |
69 | ||
3fba72f7 TT |
70 | 2018-10-04 Tom Tromey <tom@tromey.com> |
71 | ||
72 | * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new | |
73 | variable "size". | |
74 | ||
795afcbb TT |
75 | 2018-10-04 Tom Tromey <tom@tromey.com> |
76 | ||
77 | * mdebugread.c (parse_partial_symbols): Use std::string. | |
78 | ||
b926417a TT |
79 | 2018-10-04 Tom Tromey <tom@tromey.com> |
80 | ||
81 | * ctf.c (SET_ARRAY_FIELD): Rename "u32". | |
82 | * p-valprint.c (pascal_val_print): Split inner "i" variable. | |
83 | * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop | |
84 | header. | |
85 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in | |
86 | more inner scope. | |
87 | * xcoffread.c (read_xcoff_symtab): Rename inner "symbol". | |
88 | * varobj.c (varobj_update): Rename inner "newobj", | |
89 | "type_changed". | |
90 | * valprint.c (generic_emit_char): Rename inner "buf". | |
91 | * valops.c (find_overload_match): Rename inner "temp". | |
92 | (value_struct_elt_for_reference): Declare "v" in more inner | |
93 | scope. | |
94 | * v850-tdep.c (v850_push_dummy_call): Rename "len". | |
95 | * unittests/array-view-selftests.c (run_tests): Rename inner | |
96 | "vec". | |
97 | * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop | |
98 | header. | |
99 | * tracepoint.c (merge_uploaded_trace_state_variables): Declare | |
100 | "tsv" in more inner scope. | |
101 | (print_one_static_tracepoint_marker): Rename inner | |
102 | "tuple_emitter". | |
103 | * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower. | |
104 | (tic6x_push_dummy_call): Don't redeclare "addr". | |
105 | * target-float.c: Declare "dto" lower. | |
106 | * symtab.c (lookup_local_symbol): Rename inner "sym". | |
107 | (find_pc_sect_line): Rename inner "pc". | |
108 | * stack.c (print_frame): Don't redeclare "gdbarch". | |
109 | (return_command): Rename inner "gdbarch". | |
110 | * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner | |
111 | "sp". | |
112 | * rust-lang.c (rust_internal_print_type): Declare "i" in loop | |
113 | header. | |
114 | * rs6000-tdep.c (ppc_process_record): Rename inner "addr". | |
115 | * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner | |
116 | scope. | |
117 | * remote.c (remote_target::update_thread_list): Don't redeclare | |
118 | "tp". | |
119 | (remote_target::process_initial_stop_replies): Rename inner | |
120 | "thread". | |
121 | (remote_target::remote_parse_stop_reply): Don't redeclare "p". | |
122 | (remote_target::wait_as): Don't redeclare "stop_reply". | |
123 | (remote_target::get_thread_local_address): Rename inner | |
124 | "result". | |
125 | (remote_target::get_tib_address): Likewise. | |
126 | ||
127 | * regcache.c (cooked_read_test): Rename "regnum". | |
128 | * record-btrace.c (cmd_record_btrace_start): Rename inner | |
129 | "exception". | |
130 | * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in | |
131 | loop header. | |
132 | * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop | |
133 | header. | |
134 | (ppu2spu_sniffer): Rename inner "buf". | |
135 | * parse.c (operator_check_standard): Rename inner "type", | |
136 | "objfile". | |
137 | * p-valprint.c (pascal_val_print): Introduce new scope for | |
138 | "low_bound", "high_bound". | |
139 | * p-exp.y (yylex): Declare "i" in loop header. | |
140 | * objfiles.c (objfile_relocate1): Declare "i" in loop header. | |
141 | Lower declaration of "s". | |
142 | * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop | |
143 | header. | |
144 | (nios2_push_dummy_call): Rename "len". | |
145 | * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static | |
146 | "buf". | |
147 | (linux_xfer_osdata_fds, linux_xfer_osdata_shm) | |
148 | (linux_xfer_osdata_sem, linux_xfer_osdata_msg) | |
149 | (linux_xfer_osdata_modules): Likewise. | |
150 | * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len". | |
151 | (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call) | |
152 | (mips_o64_push_dummy_call): Likewise. | |
153 | * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner | |
154 | "op". | |
155 | * mi/mi-main.c (list_available_thread_groups): Rename inner | |
156 | "tuple_emitter". | |
157 | (mi_cmd_data_read_memory): Rename inner "opts". | |
158 | * mi/mi-cmd-var.c (varobj_update_one): Rename inner | |
159 | "tuple_emitter". | |
160 | * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header. | |
161 | * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in | |
162 | more inner scope. | |
163 | (parse_partial_symbols): Rename inner "pst", "p", "name" | |
164 | * main.c (captured_main_1): Rename inner "i"s. | |
165 | * machoread.c (macho_symfile_read_all_oso): Don't redeclare | |
166 | "oso2". | |
167 | * linux-tdep.c (linux_info_proc): Rename inner "filename". | |
168 | * linespec.c (linespec_lexer_lex_string): Rename inner "p". | |
169 | * infrun.c (handle_no_resumed): Don't redeclare "thread". | |
170 | (handle_signal_stop): Rename inner "gdbarch". | |
171 | (handle_command): Declare "signum" in loop header. | |
172 | * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare | |
173 | "status". | |
174 | (examine_prologue): Rename inner "sol" and "sof". | |
175 | (ia64_extract_return_value): Rename inner "val". Declare another | |
176 | "val" in a more inner scope. | |
177 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in | |
178 | inner scope. | |
179 | * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner | |
180 | "except". | |
181 | * findvar.c (default_read_var_value): Don't redeclare "addr". | |
182 | * f-exp.y (yylex): Declare "i" in loop header. | |
183 | * eval.c (evaluate_subexp_standard): Don't redeclare "type". | |
184 | Rename inner "type", "expect_type". | |
185 | (evaluate_subexp_for_sizeof): Rename inner "pc". | |
186 | * elfread.c (elf_symfile_read): Rename inner "abfd". | |
187 | * dwarf2read.c (read_debug_names_from_section): Don't redeclare | |
188 | "bytes_read". | |
189 | (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch". | |
190 | (add_partial_subprogram): Rename inner "lowpc" and "highpc". | |
191 | (dwarf_decode_line_header): Rename inner "lh". | |
192 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare | |
193 | "offset". Declare "i" in loop header. | |
194 | (disassemble_dwarf_expression): Rename inner "addr_size". | |
195 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename | |
196 | inner "result". | |
197 | (dwarf_expr_context::execute_stack_op): Rename inner "offset". | |
198 | * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s. | |
199 | * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner | |
200 | "inner_list_emitter". | |
201 | (do_mixed_source_and_assembly): Rename inner "tuple_emitter". | |
202 | * disasm-selftests.c (print_one_insn_test): Wrap "bplen" | |
203 | declaration in a block. | |
204 | * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower. | |
205 | * cp-valprint.c (cp_print_value_fields): Don't redeclare | |
206 | "obstack_final_size". | |
207 | * cp-support.c (inspect_type): Declare "i" in loop header. | |
208 | * compile/compile.c (compile_instance::insert_symbol_error): | |
209 | Rename inner "e". | |
210 | * common/agent.c (agent_run_command): Remove inner "ret" | |
211 | declaration. | |
212 | * coffread.c (coff_symfile_read): Rename inner "name". | |
213 | (coff_symfile_read): Rename inner "abfd". | |
214 | * cli/cli-utils.c (get_number_trailer): Rename inner "val". | |
215 | * cli/cli-cmds.c (print_disassembly): Rename inner "low" and | |
216 | "high". | |
217 | * c-exp.y (lex_one_token): Move "len" declaration lower. | |
218 | * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare | |
219 | "gdbarch". | |
220 | (create_exception_master_breakpoint): Likewise. Don't redeclare | |
221 | "b". | |
222 | (watch_command_1): Declare "mark" later. | |
223 | (clear_command): Don't shadow "a" or "b". | |
224 | (delete_command): Rename inner "b". | |
225 | (delete_trace_command): Likewise. | |
226 | * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner | |
227 | "op". | |
228 | (arm_gdbarch_init): Remove inner "e_flags". | |
229 | * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare | |
230 | "offset" in inner blocks. | |
231 | ||
1f88d0c8 SM |
232 | 2018-10-04 Simon Marchi <simon.marchi@ericsson.com> |
233 | ||
234 | * dwarf-index-write.c (file_write): Don't write if the vector is | |
235 | empty. | |
236 | ||
5c4481cc TV |
237 | 2018-10-05 Tom de Vries <tdevries@suse.de> |
238 | ||
239 | * python/py-progspace.c (pspy_solib_name): Fix type mismatch in | |
240 | PyArg_ParseTuple call. | |
241 | ||
96b1ad86 TV |
242 | 2018-10-05 Tom de Vries <tdevries@suse.de> |
243 | ||
244 | * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in | |
245 | PyArg_ParseTuple call. | |
246 | ||
d2f7dcb2 JB |
247 | 2018-10-04 Joel Brobecker <brobecker@adacore.com> |
248 | ||
249 | * psymtab.c (recursively_search_psymtabs): Reformat parameters | |
250 | to avoid exceeding 80 characters per line limit. | |
251 | ||
5ca8c39f TT |
252 | 2018-10-04 Tom Tromey <tom@tromey.com> |
253 | ||
254 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
255 | (reread_symbols): Update. | |
256 | * complaints.h (clear_complaints): Remove argument. | |
257 | * complaints.c (enum complaint_series): Remove. | |
258 | (series): Remove global. | |
259 | (complaint_internal): Update. | |
260 | (clear_complaints): Remove argument. | |
261 | ||
e79497a1 TT |
262 | 2018-10-04 Tom Tromey <tom@tromey.com> |
263 | ||
264 | * symfile.c (symbol_file_add_with_addrs): Do not print "no | |
265 | debugging symbols" message if there is a separate debug objfile. | |
266 | ||
3453e7e4 TT |
267 | 2018-10-04 Tom Tromey <tom@tromey.com> |
268 | ||
269 | PR cli/19551: | |
270 | * symfile.c (symbol_file_add_with_addrs): Update output. | |
271 | * psymtab.c (require_partial_symbols): Update output. | |
272 | ||
6afcf761 TT |
273 | 2018-10-04 Tom Tromey <tom@tromey.com> |
274 | ||
275 | PR cli/22234: | |
276 | * complaints.c: Emit \n. | |
277 | ||
22068491 TT |
278 | 2018-10-04 Tom Tromey <tom@tromey.com> |
279 | ||
280 | * symfile.c (symbol_file_add_with_addrs, symbol_file_clear) | |
281 | (separate_debug_file_exists, find_separate_debug_file) | |
282 | (add_symbol_file_command, reread_symbols, allocate_symtab) | |
283 | (allocate_compunit_symtab): Use filtered printing, not | |
284 | unfiltered. | |
285 | * psymtab.c (require_partial_symbols, dump_psymtab) | |
286 | (allocate_psymtab): Use filtered printing, not unfiltered. | |
287 | ||
9fdd7193 TT |
288 | 2018-10-04 Tom Tromey <tom@tromey.com> |
289 | ||
290 | * complaints.c (complaint_internal): Correctly check complaint | |
291 | count. | |
292 | ||
3f2cf4dc TT |
293 | 2018-10-04 Tom Tromey <tom@tromey.com> |
294 | ||
295 | * complaints.h (struct complaints): Remove declaration. | |
296 | * complaints.c (clear_complaints): Remove an unused variable. | |
297 | ||
4f9bdf7f RO |
298 | 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
299 | ||
300 | * MAINTAINERS (Write After Approval): Add self. | |
301 | ||
875e5398 TT |
302 | 2018-10-03 Tom Tromey <tom@tromey.com> |
303 | ||
304 | * guile/scm-value.c (gdbscm_value_to_string): Initialize | |
305 | "buffer_contents". | |
306 | * coffread.c (coff_symtab_read): Initialize "newobj". | |
307 | ||
8634679f SM |
308 | 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca> |
309 | ||
310 | * dwarf2read.c (read_func_scope): Remove struct keyword in | |
311 | range-based for. | |
312 | ||
f35d5ade TT |
313 | 2018-10-03 Tom Tromey <tom@tromey.com> |
314 | ||
315 | * README: Mention --enable-ubsan. | |
316 | * NEWS: Mention --enable-ubsan. | |
317 | * acinclude.m4: Include sanitize.m4. | |
318 | * configure: Rebuild. | |
319 | * configure.ac: Call AM_GDB_UBSAN. | |
320 | * sanitize.m4: New file. | |
321 | ||
1dffa580 TT |
322 | 2018-10-03 Tom Tromey <tom@tromey.com> |
323 | ||
324 | * expression.h (enum exp_opcode): Use uint8_t as base type. | |
325 | * expprint.c (op_name): Handle invalid opcodes. | |
326 | ||
5e70ee09 TT |
327 | 2018-10-03 Tom Tromey <tom@tromey.com> |
328 | ||
329 | * parse.c (prefixify_expression): Add assert. | |
330 | (parse_exp_in_context_1): Throw exception if the expression is | |
331 | empty. | |
332 | ||
4dd1b460 TT |
333 | 2018-10-03 Tom Tromey <tom@tromey.com> |
334 | ||
335 | * dwarf2read.c (read_signed_leb128): Work in ULONGEST. | |
336 | ||
20562150 TT |
337 | 2018-10-03 Tom Tromey <tom@tromey.com> |
338 | ||
339 | * c-exp.y (parse_number): Work in unsigned. Remove casts. | |
340 | ||
d359392f TT |
341 | 2018-10-03 Tom Tromey <tom@tromey.com> |
342 | ||
343 | * dwarf2read.c (read_subrange_type): Make "negative_mask" | |
344 | unsigned. | |
345 | ||
0101665f TT |
346 | 2018-10-03 Tom Tromey <tom@tromey.com> |
347 | ||
348 | * findvar.c (extract_integer): Do work in an unsigned type. | |
349 | ||
ad69edbb TT |
350 | 2018-10-03 Tom Tromey <tom@tromey.com> |
351 | ||
352 | * common/enum-flags.h (enum_flags::operator~): Add static assert. | |
353 | * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as | |
354 | base type. | |
355 | * objfile-flags.h (enum objfile_flag): Use unsigned as base type. | |
356 | * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base | |
357 | type. | |
358 | * c-lang.h (enum c_string_type_values): Use unsigned as base | |
359 | type. | |
360 | * btrace.h (enum btrace_thread_flag): Use unsigned as base type. | |
361 | ||
780942fc TT |
362 | 2018-10-03 Tom Tromey <tom@tromey.com> |
363 | ||
364 | * dwarf2-frame.h (dwarf2_frame_state_reg_info) | |
365 | <~dwarf2_frame_state_reg_info>: Update. | |
366 | <dwarf2_frame_state_reg_info>: Update. | |
367 | <alloc_regs>: Add assertion. Update. | |
368 | <reg>: Now a std::vector. | |
369 | <num_regs>: Remove. | |
370 | <swap>: Update. | |
371 | * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) | |
372 | (execute_cfa_program_test, dwarf2_frame_cache): Update. | |
373 | ||
10657c04 TT |
374 | 2018-10-03 Tom Tromey <tom@tromey.com> |
375 | ||
376 | * namespace.c (add_using_directive): Don't pass NULL to memcpy. | |
377 | ||
34c0fc00 PW |
378 | 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
379 | ||
380 | * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment. | |
381 | ||
2398abf8 TT |
382 | 2018-10-02 Tom Tromey <tom@tromey.com> |
383 | ||
384 | * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest. | |
385 | ||
c1168a2f JD |
386 | 2018-10-02 John Darrington <john@darrington.wattle.id.au> |
387 | ||
388 | * NEWS: Mention changed commands. | |
389 | * ser-uds.c: New file. | |
390 | * configure.ac (SER_HARDWIRE): Add ser-uds.o. | |
391 | * configure: Regenerate. | |
392 | * Makefile.in: Add new file. | |
393 | * serial.c (serial_open): Check if filename is a socket | |
394 | and lookup the appropriate interface accordingly. | |
395 | ||
05c71722 AH |
396 | 2018-10-01 Alan Hayward <alan.hayward@arm.com> |
397 | ||
398 | * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add | |
399 | define. | |
400 | (AARCH64_EXTRA_MAGIC): Likewise. | |
401 | (AARCH64_FPSIMD_MAGIC): Likewise. | |
402 | (AARCH64_SVE_MAGIC): Likewise. | |
403 | (AARCH64_EXTRA_DATAP_OFFSET): Likewise. | |
404 | (AARCH64_FPSIMD_FPSR_OFFSET): Likewise. | |
405 | (AARCH64_FPSIMD_FPCR_OFFSET): Likewise. | |
406 | (AARCH64_FPSIMD_V0_OFFSET): Likewise. | |
407 | (AARCH64_FPSIMD_VREG_SIZE): Likewise. | |
408 | (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise. | |
409 | (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise. | |
410 | (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise. | |
411 | (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise. | |
412 | (AARCH64_SVE_CONTEXT_SIZE): Likewise. | |
413 | (read_aarch64_ctx): Add function. | |
414 | (aarch64_linux_sigframe_init): Detect FP registers. | |
415 | ||
c74e7cb9 AH |
416 | 2018-10-01 Alan Hayward <alan.hayward@arm.com> |
417 | ||
418 | * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here. | |
419 | (AARCH64_D0_REGNUM): Likewise. | |
420 | (AARCH64_S0_REGNUM): Likewise. | |
421 | (AARCH64_H0_REGNUM): Likewise. | |
422 | (AARCH64_B0_REGNUM): Likewise. | |
423 | (AARCH64_SVE_V0_REGNUM): Likewise. | |
424 | * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here. | |
425 | (AARCH64_D0_REGNUM): Likewise. | |
426 | (AARCH64_S0_REGNUM): Likewise. | |
427 | (AARCH64_H0_REGNUM): Likewise. | |
428 | (AARCH64_B0_REGNUM): Likewise. | |
429 | (AARCH64_SVE_V0_REGNUM): Likewise. | |
430 | ||
12b164e9 GB |
431 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
432 | ||
433 | * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef. | |
434 | * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use | |
435 | prfpregset_t instead of gdb_prfpregset_t. | |
436 | * configure.ac (PRFPREGSET_T_BROKEN): Remove check. | |
437 | * configure, config.in: Rebuild. | |
438 | ||
7c619dbd GB |
439 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
440 | ||
441 | * common/gdb_proc_service.h: New file, factored out from... | |
442 | * gdb_proc_service.h: Moved common code to the above file. | |
443 | * Makefile.in (HFILES_NO_SRCDIR): Add the above new file. | |
444 | ||
358ffcf2 GB |
445 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
446 | ||
447 | * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is | |
448 | undefined. Use elf_fpregset_t if prfpregset_t is undefined. | |
449 | ||
43b7e92b GB |
450 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
451 | ||
452 | * configure.ac: Check if sys/procfs.h defines elf_fpregset_t. | |
453 | (AC_CHECK_HEADERS): Check for linux/elf.h. | |
454 | * configure, config.in: Rebuild. | |
455 | * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h | |
456 | doesn't define elf_fpregset_t. | |
457 | ||
3795e814 GB |
458 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
459 | ||
460 | * gdb_proc_service.h: Whitespace change. | |
461 | ||
4176f14d TT |
462 | 2018-10-01 Tom Tromey <tom@tromey.com> |
463 | ||
464 | * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H. | |
465 | * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H. | |
466 | * common/scoped_fd.h: Don't check HAVE_UNISTD_H. | |
467 | ||
a95746f9 TT |
468 | 2018-10-01 Tom Tromey <tom@tromey.com> |
469 | ||
470 | * README: Minor change. | |
471 | ||
dd203782 PA |
472 | 2018-09-30 Pedro Alves <palves@redhat.com> |
473 | ||
474 | * darwin-nat-info.c (darwin_debug_regions_recurse) | |
475 | (info_mach_exceptions_command): Remove unused local variables. | |
476 | * darwin-nat.c (darwin_decode_notify_message) | |
477 | (darwin_nat_target::resume, darwin_nat_target::mourn_inferior) | |
478 | (darwin_stop_inferior, darwin_setup_exceptions) | |
479 | (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him) | |
480 | (darwin_nat_target::attach, darwin_nat_target::detach) | |
481 | (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused | |
482 | local variables. | |
483 | * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local | |
484 | variables. | |
485 | ||
c82a2e6f TT |
486 | 2018-09-29 Tom Tromey <tom@tromey.com> |
487 | ||
488 | * README: Remove some leftover text. | |
489 | ||
7f0bd420 TT |
490 | 2018-09-29 Tom Tromey <tom@tromey.com> |
491 | ||
492 | * PROBLEMS: Rewrite. | |
493 | * README: Update. | |
494 | ||
f37bc8b1 JB |
495 | 2018-09-28 John Baldwin <jhb@FreeBSD.org> |
496 | ||
497 | * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to | |
498 | case with explicit breakpoint kind. | |
499 | * riscv-tdep.c (show_use_compressed_breakpoints): Remove | |
500 | 'additional_info' and related logic. | |
501 | (riscv_debug_breakpoints): New variable. | |
502 | (riscv_breakpoint_kind_from_pc): Use the length of the existing | |
503 | instruction to determine the breakpoint kind. | |
504 | (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints' | |
505 | flag. Update description of 'set/show riscv | |
506 | use-compressed-breakpoints' flag. | |
507 | ||
f67ffa6a AB |
508 | 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com> |
509 | ||
510 | (NEWS): Mention changes to frame related commands. | |
511 | * cli/cli-decode.c (add_cmd_suppress_notification): New function. | |
512 | (add_prefix_cmd_suppress_notification): New function. | |
513 | (add_com_suppress_notification): Call | |
514 | add_cmd_suppress_notification. | |
515 | * command.h (add_cmd_suppress_notification): Declare. | |
516 | (add_prefix_cmd_suppress_notification): Declare. | |
517 | * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include. | |
518 | (parse_frame_specification): Moved from stack.c, with | |
519 | simplification to handle a single argument. | |
520 | (mi_cmd_stack_select_frame): Use parse_frame_specification, the | |
521 | switch to the selected frame. Add a header comment. | |
522 | * stack.c: Remove 'safe-ctype.h' include. | |
523 | (find_frame_for_function): Add declaration. | |
524 | (find_frame_for_address): New function. | |
525 | (parse_frame_specification): Moved into mi/mi-cmd-stack.c. | |
526 | (frame_selection_by_function_completer): New function. | |
527 | (info_frame_command): Rename to... | |
528 | (info_frame_command_core): ...this, and update parameter types. | |
529 | (select_frame_command): Rename to... | |
530 | (select_frame_command_core): ...this, and update parameter types. | |
531 | (frame_command): Rename to... | |
532 | (frame_command_core): ...this, and update parameter types. | |
533 | (class frame_command_helper): New class to wrap implementations of | |
534 | frame related sub-commands. | |
535 | (frame_apply_cmd_list): New static global. | |
536 | (frame_cmd_list): Make static. | |
537 | (select_frame_cmd_list): New global for sub-commands. | |
538 | (info_frame_cmd_list): New global for sub-commands. | |
539 | (_initialize_stack): Register sub-commands for 'frame', | |
540 | 'select-frame', and 'info frame'. Update 'frame apply' commands | |
541 | to use frame_apply_cmd_list. Move function local static | |
542 | frame_apply_list to file static frame_apply_cmd_list for | |
543 | consistency. | |
544 | * stack.h (select_frame_command): Delete declarationn. | |
545 | (select_frame_for_mi): Declare new function. | |
546 | ||
d354055e AB |
547 | 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com> |
548 | ||
549 | * riscv-tdep.c (riscv_insn::decode): Decode c.lui. | |
550 | (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI, | |
551 | and NOP. | |
552 | ||
85392414 SM |
553 | 2018-09-26 Simon Marchi <simon.marchi@ericsson.com> |
554 | ||
555 | * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove. | |
556 | ||
896ee098 TT |
557 | 2018-09-26 Tom Tromey <tom@tromey.com> |
558 | ||
559 | * valops.c (auto_abandon): Remove dead code. | |
560 | ||
57dbb3af TT |
561 | 2018-09-26 Tom Tromey <tom@tromey.com> |
562 | ||
563 | * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s. | |
564 | ||
b5a9bfbe TT |
565 | 2018-09-24 Tom Tromey <tom@tromey.com> |
566 | ||
567 | * common/pathstuff.c (get_standard_cache_dir): Make | |
568 | "xdg_cache_home" and "home" const. | |
569 | * top.c (init_history): Make "tmpenv" const. | |
570 | * main.c (get_init_files): Make "homedir" const. | |
571 | ||
ae778caf TT |
572 | 2018-09-23 Tom Tromey <tom@tromey.com> |
573 | ||
574 | PR python/18852: | |
575 | * python/py-param.c (get_set_value): Use gdbpy_handle_exception. | |
576 | ||
2b4ad2fe TT |
577 | 2018-09-23 Tom Tromey <tom@tromey.com> |
578 | ||
579 | * python/py-function.c (fnpy_call): Use gdbpy_handle_exception. | |
580 | * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception. | |
581 | * python/python-internal.h (gdbpy_handle_exception): Declare. | |
582 | * python/py-utils.c (gdbpy_handle_exception): New function. | |
583 | ||
fd3ba736 TT |
584 | 2018-09-23 Tom Tromey <tom@tromey.com> |
585 | ||
586 | PR python/17284: | |
587 | * python/py-type.c (typy_template_argument): Check for negative | |
588 | argument number. | |
589 | ||
39a24317 TT |
590 | 2018-09-23 Tom Tromey <tom@tromey.com> |
591 | ||
592 | PR python/14062: | |
593 | * python/python.c (gdbpy_run_events): Do not ignore exceptions. | |
594 | ||
f5769a2c TT |
595 | 2018-09-23 Tom Tromey <tom@tromey.com> |
596 | ||
597 | PR python/18170: | |
598 | * python/py-value.c (valpy_int): Allow conversion from pointer | |
599 | type. | |
600 | ||
1c1e54f6 TT |
601 | 2018-09-23 Tom Tromey <tom@tromey.com> |
602 | ||
603 | PR python/20126: | |
604 | * python/py-value.c (valpy_int): Respect type sign. | |
605 | ||
fb4fa946 TT |
606 | 2018-09-23 Tom Tromey <tom@tromey.com> |
607 | ||
608 | PR python/18352; | |
609 | * python/py-value.c (valpy_float): Allow conversions from int or | |
610 | char. | |
611 | (valpy_int, valpy_long): Allow conversions from float. | |
612 | ||
65773341 TT |
613 | 2018-09-23 Tom Tromey <tom@tromey.com> |
614 | ||
615 | * ctf.c (ctf_start): Use gdb_fopen_cloexec. | |
616 | * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec. | |
617 | ||
1db88d22 RO |
618 | 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
619 | ||
620 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize | |
621 | __sighndlr. | |
622 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise. | |
623 | ||
a44294f5 JT |
624 | 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk> |
625 | ||
626 | * windows-nat.c (windows_nat_target::wait): Remove a spurious | |
627 | target_terminal::ours(). | |
628 | ||
0c0a40e0 SM |
629 | 2018-09-23 Simon Marchi <simon.marchi@ericsson.com> |
630 | ||
631 | * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type | |
632 | of vl to ULONGEST. | |
633 | ||
4daf1902 YS |
634 | 2018-09-21 Yacov Simhony <ysimhony@gmail.com> |
635 | ||
636 | * breakpoint.c (update_inserted_breakpoint_locations): Remove | |
637 | redundant condition. | |
638 | ||
c475f569 RO |
639 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
640 | ||
641 | * proc-utils.h (PROC_CTL_WORD_TYPE): Remove. | |
642 | ||
643 | * procfs.c: Don't check for PR_MODEL_NATIVE definition. | |
644 | * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references. | |
645 | * sol-thread.c (ps_pdmodel): Don't guard definition. | |
646 | ||
647 | * procfs.c: Fix formatting. | |
648 | ||
649 | * procfs.c (sysset_t_alloc): Remove. | |
650 | (create_procinfo): Use XNEW instead of sysset_t_alloc. | |
651 | (procfs_debug_inferior): Likewise. | |
652 | (procfs_set_exec_trap): Likewise. | |
653 | (proc_set_traced_sysentry): Don't allocate argp dynamically. | |
654 | (proc_set_traced_sysexit): Likewise. | |
655 | ||
656 | * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning. | |
657 | (dead_procinfo): Likewise. | |
658 | (proc_warn): Likewise. | |
659 | (proc_error): Likewise. | |
660 | (proc_get_LDT_entry): Likewise. | |
661 | (do_attach): Likewise. | |
662 | (procfs_target::pid_to_str): Likewise. | |
663 | (iterate_over_mappings): Likewise. | |
664 | ||
665 | * procfs.c (create_procinfo): Fix ARI warning. | |
666 | (proc_get_status): Likewise. | |
667 | (proc_stop_process): Likewise. | |
668 | (proc_run_process): Likewise. | |
669 | (proc_kill): Likewise. | |
670 | (proc_get_LDT_entry): Likewise. | |
671 | (procfs_find_LDT_entry): Likewise. | |
672 | (proc_update_threads): Likewise. | |
673 | (proc_iterate_over_threads): Likewise. | |
674 | (do_attach): Likewise. | |
675 | (procfs_xfer_memory): Likewise. | |
676 | (invalidate_cache): Likewise. | |
677 | (procfs_target::resume): Likewise. | |
678 | (procfs_init_inferior): Likewise. | |
679 | (procfs_set_exec_trap): Likewise. | |
680 | (procfs_target::thread_alive): Likewise. | |
681 | (procfs_target::pid_to_exec_file): Likewise. | |
682 | (iterate_over_mappings): Likewise. | |
683 | (procfs_target::make_corefile_notes): Likewise. | |
684 | * sol-thread.c (sol_thread_target::thread_alive): Likewise. | |
685 | ||
686 | * procfs.c (procfs_find_LDT_entry): Silence ARI warning. | |
687 | (procfs_find_LDT_entry): Likewise. | |
688 | * sol-thread.c (ps_lgetLDT): Likewise. | |
689 | ||
4206c05e RO |
690 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
691 | ||
692 | PR tdep/17903 | |
693 | * procfs.c (procfs_target): Declare pid_to_exec_file. | |
694 | (procfs_target::pid_to_exec_file): New. | |
695 | ||
3d282ac3 RO |
696 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
697 | ||
698 | * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1 | |
699 | renaming. | |
700 | Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1, | |
701 | AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2. | |
702 | ||
8c93fae6 RO |
703 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
704 | ||
705 | * i386-v4-nat.c (regmap, supply_gregset, fill_gregset) | |
706 | (supply_fpregset, fill_fpregset): Move ... | |
707 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here. | |
708 | Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards. | |
709 | Remove references to ioctl-based procfs. | |
710 | Include <sys/reg.h>. | |
711 | Remove PR_MODEL_NATIVE guards. | |
712 | * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o. | |
713 | * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c. | |
714 | ||
79b32f4a XR |
715 | 2018-09-19 Xavier Roirand <roirand@adacore.com> |
716 | ||
717 | PR gdb/20981: | |
718 | * solib-darwin.c (darwin_get_dyld_bfd): New function. | |
719 | (darwin_solib_get_all_image_info_addr_at_init): Update call. | |
720 | (darwin_solib_create_inferior_hook): Handle unrelocated dyld. | |
721 | ||
07147793 JB |
722 | 2018-09-19 John Baldwin <jhb@FreeBSD.org> |
723 | ||
724 | * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix. | |
725 | (fbsd_print_sockaddr_in6): Likewise. | |
726 | ||
23be8da7 RB |
727 | 2018-09-19 Richard Bunt <richard.bunt@arm.com> |
728 | Chris January <chris.january@arm.com> | |
729 | ||
730 | * eval.c (skip_undetermined_arglist): Skip argument list helper. | |
731 | (evaluate_subexp_standard): Return a dummy type when | |
732 | honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the | |
733 | OP_F77_UNDETERMINED_ARGLIST case. | |
734 | * expression.h (enum noside): Update comment. | |
735 | ||
7307a73a RO |
736 | 2018-09-19 George Vasick <george.vasick@oracle.com> |
737 | ||
738 | * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1. | |
739 | ||
13db92d3 RO |
740 | 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com> |
741 | April Chin <april.chin@oracle.com> | |
742 | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
743 | ||
744 | * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and | |
745 | uint_t lwpid_t. | |
746 | (create_procinfo): Print pids in /proc without leading zeros. | |
747 | ||
3d50f170 SL |
748 | 2018-09-18 Sandra Loosemore <sandra@codesourcery.com> |
749 | ||
750 | * nios2-tdep.c (nios2_gcc_target_options): New. | |
751 | (nios2_gdb_arch_init): Install new hook. | |
752 | ||
b567ca63 SM |
753 | 2018-09-18 Simon Marchi <simon.marchi@ericsson.com> |
754 | ||
755 | * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch: | |
756 | New file. | |
757 | * update-gnulib.sh: Apply patch. | |
758 | * configure: Re-generate. | |
759 | ||
73f1bd76 JB |
760 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
761 | ||
762 | * infcmd.c (_initialize_infcmd): Remove "running" from "info proc" | |
763 | description. Make "info proc" command descriptions more | |
764 | consistent. | |
765 | ||
8b113111 JB |
766 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
767 | ||
768 | * NEWS: Mention 'info proc files' command. | |
769 | ||
7e69672e JB |
770 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
771 | ||
772 | * fbsd-nat.c (fbsd_nat_target::info_proc): List open file | |
773 | descriptors for IP_FILES and IP_ALL. | |
774 | ||
57c2a98a JB |
775 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
776 | ||
777 | * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN) | |
778 | (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER) | |
779 | (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE) | |
780 | (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE) | |
781 | (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE) | |
782 | (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS) | |
783 | (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT) | |
784 | (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE) | |
785 | (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ) | |
786 | (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND) | |
787 | (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC) | |
788 | (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT) | |
789 | (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC) | |
790 | (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR) | |
791 | (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK) | |
792 | (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX) | |
793 | (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM) | |
794 | (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP) | |
795 | (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines. | |
796 | (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6) | |
797 | (struct fbsd_sockaddr_un): New types. | |
798 | (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto) | |
799 | (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6) | |
800 | (fbsd_info_proc_files_header, fbsd_info_proc_files_entry) | |
801 | (fbsd_core_info_proc_files): New functions. | |
802 | (fbsd_core_info_proc): List open file descriptors for IP_FILES and | |
803 | IP_ALL. | |
804 | * fbsd-tdep.h (fbsd_info_proc_files_header) | |
805 | (fbsd_info_proc_files_entry): New. | |
806 | ||
e98ee8c4 JB |
807 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
808 | ||
809 | * defs.h (enum info_proc_what) [IP_FILES]: New value. | |
810 | * infcmd.c (info_proc_cmd_files): New function. | |
811 | (_initialize_infcmd): Register 'info proc files' command. | |
812 | ||
725e2999 JB |
813 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
814 | ||
815 | * gnulib/aclocal-m4-deps.mk: Re-generate. | |
816 | * gnulib/aclocal.m4: Re-generate. | |
817 | * gnulib/config.in: Re-generate. | |
818 | * gnulib/configure: Re-generate. | |
819 | * gnulib/import/Makefile.am: Re-generate. | |
820 | * gnulib/import/Makefile.in: Re-generate. | |
821 | * gnulib/import/m4/gnulib-cache.m4: Re-generate. | |
822 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
823 | * gnulib/import/arpa_inet.in.h: New file. | |
824 | * gnulib/import/inet_ntop.c: New file. | |
825 | * gnulib/import/m4/arpa_inet_h.m4: New file. | |
826 | * gnulib/import/m4/inet_ntop.m4: New file. | |
827 | * gnulib/import/m4/netinet_in_h.m4: New file. | |
828 | * gnulib/import/m4/socklen.m4: New file. | |
829 | * gnulib/import/m4/sockpfaf.m4: New file. | |
830 | * gnulib/import/m4/stdalign.m4: New file. | |
831 | * gnulib/import/m4/sys_uio_h.m4: New file. | |
832 | * gnulib/import/netinet_in.in.h: New file. | |
833 | * gnulib/import/stdalign.in.h: New file. | |
834 | * gnulib/import/sys_socket.c: New file. | |
835 | * gnulib/import/sys_socket.in.h: New file. | |
836 | * gnulib/import/sys_uio.in.h: New file. | |
837 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop | |
838 | module. | |
839 | ||
2afffa7f JB |
840 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
841 | ||
842 | * gnulib/aclocal-m4-deps.mk: New file. | |
843 | * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk" | |
844 | deterministically. | |
845 | ||
9f235e09 JB |
846 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
847 | ||
848 | * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of | |
849 | KVE_PATH. | |
850 | ||
40f03055 TT |
851 | 2018-09-18 Tom Tromey <tom@tromey.com> |
852 | ||
853 | * compile/compile-object-load.c (struct | |
854 | link_hash_table_cleanup_data): Add constructor and destructor. | |
855 | Use DISABLE_COPY_AND_ASSIGN. | |
856 | (~link_hash_table_cleanup_data): Rename from | |
857 | link_hash_table_free. Now a destructor. | |
858 | (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups. | |
859 | ||
c9e0a7e3 TT |
860 | 2018-09-18 Tom Tromey <tom@tromey.com> |
861 | ||
862 | * compile/compile-object-run.c (do_module_cleanup): Use delete. | |
863 | * compile/compile-object-load.c (struct munmap_list): Move to | |
864 | header file. | |
865 | (munmap_list::add): Rename from munmap_list_add; rewrite. | |
866 | (munmap_list::~munmap_list): Rename from munmap_list_free. | |
867 | (munmap_listp_free_cleanup): Remove. | |
868 | (compile_object_load): Update. | |
869 | * compile/compile-object-load.h (struct munmap_list): Move from | |
870 | compile-object-load.c. Rewrite. | |
871 | ||
3ff2c72e AH |
872 | 2018-09-18 Alan Hayward <alan.hayward@arm.com> |
873 | ||
874 | * aarch64-tdep.c (pass_in_v): Use register size. | |
875 | (aarch64_extract_return_value): Likewise. | |
876 | (aarch64_store_return_value): Likewise. | |
877 | ||
206c1947 RO |
878 | 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
879 | ||
880 | * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to | |
881 | rlim_t. | |
882 | ||
6eb5dbce PW |
883 | 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
884 | ||
885 | * python/lib/gdb/command/frame_filters.py (EnableFrameFilter): | |
886 | Fix short help line. | |
887 | ||
ae292b3a TT |
888 | 2018-09-17 Tom Tromey <tom@tromey.com> |
889 | ||
890 | PR python/20445: | |
891 | * configure: Rebuild. | |
892 | * configure.ac: Conditionally use -DNDEBUG for Python. | |
893 | ||
da658607 TT |
894 | 2018-09-17 Tom Tromey <tom@tromey.com> |
895 | ||
896 | * configure: Rebuild. | |
897 | * configure.ac: Use gmp as a library dependency when checking for | |
898 | mpfr. | |
899 | ||
d35da542 PA |
900 | 2018-09-17 Pedro Alves <palves@redhat.com> |
901 | ||
902 | * python/py-inferior.c (find_inferior_object): Delete. | |
903 | ||
461464f2 SM |
904 | 2018-09-17 Simon Marchi <simon.marchi@ericsson.com> |
905 | ||
906 | * compile/compile-cplus-types.c | |
907 | (compile_cplus_instance::enter_scope): Don't use new_scope after | |
908 | std::move. | |
909 | ||
e6cd1dc1 TT |
910 | 2018-09-17 Tom Tromey <tom@tromey.com> |
911 | ||
912 | * common/pathstuff.c (get_standard_cache_dir): Use | |
913 | ~/Library/Caches on macOS. | |
914 | * common/pathstuff.h (get_standard_cache_dir): Update comment. | |
915 | ||
8588b356 SM |
916 | 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca> |
917 | ||
918 | PR python/23669 | |
919 | * breakpoint.c (commands_cmd_element): New. | |
920 | (_initialize_breakpoint): Assign commands_cmd_element. | |
921 | * breakpoint.h (commands_cmd_element): New. | |
922 | * cli/cli-script.c (while_cmd_element, if_command, | |
923 | define_cmd_element): New. | |
924 | (command_name_equals): Remove. | |
925 | (process_next_line): Compare commands by pointer, not by name. | |
926 | (_initialize_cli_script): Assign the various cmd_list_element | |
927 | variables. | |
928 | * compile/compile.c (compile_cmd_element): New. | |
929 | (_initialize_compile): Assign compile_cmd_element. | |
930 | * compile/compile.h (compile_cmd_element): New. | |
931 | * guile/guile.c (guile_cmd_element): New. | |
932 | (install_gdb_commands): Assign guile_cmd_element. | |
933 | * guile/guile.h (guile_cmd_element): New. | |
934 | * python/python.c (python_cmd_element): New. | |
935 | (_initialize_python): Assign python_cmd_element. | |
936 | * python/python.h (python_cmd_element): New. | |
937 | * tracepoint.c (while_stepping_cmd_element): New. | |
938 | (_initialize_tracepoint): Assign while_stepping_cmd_element. | |
939 | * tracepoint.h (while_stepping_cmd_element): New. | |
940 | ||
cb524840 TT |
941 | 2018-09-17 Tom Tromey <tom@tromey.com> |
942 | ||
943 | * infrun.c (save_infcall_suspend_state): Return | |
944 | infcall_suspend_state_up. | |
945 | (save_infcall_control_state): Return infcall_control_state_up. | |
946 | * inferior.h (save_infcall_suspend_state) | |
947 | (save_infcall_control_state): Declare later. Return unique | |
948 | pointers. | |
949 | ||
2d844eaf TT |
950 | 2018-09-17 Tom Tromey <tom@tromey.com> |
951 | ||
952 | * infrun.c (struct stop_context): Declare constructor, | |
953 | destructor, "changed" method. | |
954 | (stop_context::stop_context): Rename from save_stop_context. | |
955 | (stop_context::~stop_context): Rename from | |
956 | release_stop_context_cleanup. | |
957 | (normal_stop): Update. | |
958 | (stop_context::changed): Rename from stop_context_changed. Return | |
959 | bool. | |
960 | ||
c7c4d3fa TT |
961 | 2018-09-17 Tom Tromey <tom@tromey.com> |
962 | ||
963 | * inferior.h (struct infcall_suspend_state_deleter): New. | |
964 | (infcall_suspend_state_up): New typedef. | |
965 | (struct infcall_control_state_deleter): New. | |
966 | (infcall_control_state_up): New typedef. | |
967 | (make_cleanup_restore_infcall_suspend_state) | |
968 | (make_cleanup_restore_infcall_control_state): Don't declare. | |
969 | * infcall.c (call_function_by_hand_dummy): Update. | |
970 | * infrun.c (do_restore_infcall_suspend_state_cleanup) | |
971 | (make_cleanup_restore_infcall_suspend_state): Remove. | |
972 | (do_restore_infcall_control_state_cleanup) | |
973 | (make_cleanup_restore_infcall_control_state): Remove. | |
974 | ||
ee841dd8 TT |
975 | 2018-09-17 Tom Tromey <tom@tromey.com> |
976 | ||
977 | * gdbthread.h (struct thread_control_state): Add initializer. | |
978 | (class thread_info) <control>: Remove initializer. | |
979 | * inferior.h (struct inferior_control_state): Add initializer. | |
980 | (class inferior) <control>: Remove initializer. | |
981 | (exit_inferior_1): Update. | |
982 | * infrun.c (struct infcall_control_state): Add constructors. | |
983 | (save_infcall_control_state): Use new. | |
984 | (restore_infcall_control_state, discard_infcall_control_state): | |
985 | Use delete. | |
986 | ||
117f580a TT |
987 | 2018-09-17 Tom Tromey <tom@tromey.com> |
988 | ||
989 | * infrun.c (struct infcall_suspend_state) <registers>: Now a | |
990 | unique_ptr. | |
991 | <siginfo_data>: Now a unique_xmalloc_ptr. | |
992 | (save_infcall_suspend_state, restore_infcall_suspend_state) | |
993 | (discard_infcall_suspend_state) | |
994 | (get_infcall_suspend_state_regcache): Update. | |
995 | ||
dd848631 TT |
996 | 2018-09-17 Tom Tromey <tom@tromey.com> |
997 | ||
998 | * gdbthread.h (struct thread_suspend_state): Add initializers. | |
999 | (class thread_info) <suspend>: Remove initializer. | |
1000 | * infrun.c (struct infcall_suspend_state): Add initializers. | |
1001 | (save_infcall_suspend_state): Use new. | |
1002 | (discard_infcall_suspend_state): Use delete. | |
1003 | ||
1a338907 TT |
1004 | 2018-09-16 Tom Tromey <tom@tromey.com> |
1005 | ||
1006 | * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG): | |
1007 | Remove. | |
1008 | * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to | |
1009 | rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG. | |
1010 | (py_varobj_iter_new): Likewise. | |
1011 | (py_varobj_get_iterator): Use gdbpy_ref. | |
1012 | ||
4a137fec TT |
1013 | 2018-09-16 Tom Tromey <tom@tromey.com> |
1014 | ||
1015 | * python/py-threadevent.c (py_get_event_thread): Simplify. | |
1016 | * python/py-inferior.c (infpy_thread_from_thread_handle): | |
1017 | Return immediately after calling thread_to_thread_object. Use | |
1018 | Py_RETURN_NONE. | |
1019 | (thread_to_thread_object): Set the exception on a NULL return. | |
1020 | ||
8ff03f0b SM |
1021 | 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca> |
1022 | ||
1023 | * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS. | |
1024 | ||
94c8b725 TT |
1025 | 2018-09-16 Tom Tromey <tom@tromey.com> |
1026 | ||
1027 | * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): | |
1028 | Remove. | |
1029 | ||
db1337cc TT |
1030 | 2018-09-16 Tom Tromey <tom@tromey.com> |
1031 | ||
1032 | * python/python-internal.h (thread_to_thread_object): Change | |
1033 | return type. | |
1034 | * python/py-inferior.c (thread_to_thread_object): Return a new | |
1035 | reference. | |
1036 | (infpy_thread_from_thread_handle): Update. | |
1037 | * python/py-infthread.c (gdbpy_selected_thread): Update. | |
1038 | * python/py-stopevent.c (create_stop_event_object): Update. | |
1039 | * python/py-threadevent.c (py_get_event_thread): Return a new | |
1040 | reference. | |
1041 | (py_get_event_thread): Update. | |
1042 | * python/py-event.h (py_get_event_thread): Change return type. | |
1043 | * python/py-continueevent.c (create_continue_event_object): | |
1044 | Update. | |
1045 | ||
0a9db5ad TT |
1046 | 2018-09-16 Tom Tromey <tom@tromey.com> |
1047 | ||
1048 | * python/py-progspace.c (pspy_get_objfiles): Update. | |
1049 | * python/python-internal.h (objfile_to_objfile_object): Change | |
1050 | return type. | |
1051 | * python/py-newobjfileevent.c (create_new_objfile_event_object): | |
1052 | Update. | |
1053 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
1054 | Update. | |
1055 | * python/python.c (gdbpy_get_current_objfile): Update. | |
1056 | (gdbpy_objfiles): Update. | |
1057 | * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile): | |
1058 | Update. | |
1059 | (objfile_to_objfile_object): Return a new reference. | |
1060 | * python/py-symtab.c (stpy_get_objfile): Update. | |
1061 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
1062 | Update. | |
1063 | ||
3c7aa307 TT |
1064 | 2018-09-16 Tom Tromey <tom@tromey.com> |
1065 | ||
1066 | * python/py-inferior.c (infpy_get_progspace): Update. | |
1067 | * python/python-internal.h (pspace_to_pspace_object): Change | |
1068 | return type. | |
1069 | * python/py-newobjfileevent.c | |
1070 | (create_clear_objfiles_event_object): Update. | |
1071 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
1072 | Update. | |
1073 | * python/python.c (gdbpy_get_current_progspace): Update. | |
1074 | (gdbpy_progspaces): Update. | |
1075 | * python/py-progspace.c (pspace_to_pspace_object): Return a new | |
1076 | reference. | |
1077 | * python/py-objfile.c (objfpy_get_progspace): Update. | |
1078 | * python/py-prettyprint.c (find_pretty_printer_from_progspace): | |
1079 | Update. | |
1080 | ||
8743a9cd TT |
1081 | 2018-09-16 Tom Tromey <tom@tromey.com> |
1082 | ||
1083 | * python/lib/gdb/__init__.py (current_progspace, objfiles) | |
1084 | (solib_name, block_for_pc, find_pc_line): New functions. | |
1085 | (execute_unwinders): Update. | |
1086 | * python/py-block.c (gdbpy_block_for_pc): Remove. | |
1087 | * python/py-inferior.c (infpy_get_progspace): New function. | |
1088 | (inferior_object_getset) <progspace>: Add. | |
1089 | * python/py-progspace.c (pspy_objfiles): Rewrite. | |
1090 | (pspy_solib_name, pspy_block_for_pc) | |
1091 | (pspy_find_pc_line, pspy_is_valid): New functions. | |
1092 | (progspace_object_methods): Add entries for solib_name, | |
1093 | block_for_pc, find_pc_line, is_valid. | |
1094 | * python/python-internal.h (gdbpy_block_for_pc) | |
1095 | (build_objfiles_list): Don't declare. | |
1096 | * python/python.c: Don't include solib.h. | |
1097 | (gdbpy_solib_name, gdbpy_find_pc_line) | |
1098 | (gdbpy_get_current_progspace, build_objfiles_list) | |
1099 | (gdbpy_objfiles): Remove. | |
1100 | (GdbMethods) <current_progspace, objfiles, block_for_pc, | |
1101 | solib_name, find_pc_line>: Remove entries. | |
1102 | ||
65e65158 TT |
1103 | 2018-09-16 Tom Tromey <tom@tromey.com> |
1104 | ||
1105 | * top.c (new_ui_command): Use GNU style for metasyntactic | |
1106 | variables. | |
1107 | * breakpoint.c (stopat_command): Use GNU style for metasyntactic | |
1108 | variables. | |
1109 | * maint.c (maintenance_translate_address): Remove "<>" around | |
1110 | text. | |
1111 | * interps.c (interpreter_exec_cmd): Use GNU style for | |
1112 | metasyntactic variables. | |
1113 | * nto-procfs.c (nto_procfs_target_info): Use GNU style for | |
1114 | metasyntactic variables. | |
1115 | * tracepoint.c (tfind_range_command): Use GNU style for | |
1116 | metasyntactic variables. | |
1117 | (tfind_outside_command): Likewise. | |
1118 | (_initialize_tracepoint): Likewise. | |
1119 | * remote.c (extended_remote_target::create_inferior): Use GNU | |
1120 | style for metasyntactic variables. | |
1121 | * sparc64-tdep.c (adi_examine_command): Use GNU style for | |
1122 | metasyntactic variables. | |
1123 | (adi_assign_command): Likewise. | |
1124 | ||
f4bab6ff TT |
1125 | 2018-09-16 Tom Tromey <tom@tromey.com> |
1126 | ||
1127 | * disasm.c (show_disassembler_options_sfunc): Use GNU style for | |
1128 | metasyntactic variables. Print message if no disassembler options | |
1129 | are available. | |
1130 | ||
cbaaa0ca TT |
1131 | 2018-09-15 Tom Tromey <tom@tromey.com> |
1132 | ||
1133 | * infcmd.c (get_inferior_args): Return const char *. | |
1134 | * inferior.h (get_inferior_args): Return type now const. | |
1135 | * linux-tdep.c (linux_fill_prpsinfo): Update. | |
1136 | * procfs.c (procfs_target::make_corefile_notes): Update. | |
1137 | ||
a3a6aef4 TT |
1138 | 2018-09-07 Tom Tromey <tom@tromey.com> |
1139 | ||
1140 | * python/python.c (execute_gdb_command): Call bpstat_do_actions | |
1141 | inside the TRY. | |
1142 | ||
f70e088f SL |
1143 | 2018-09-14 Sandra Loosemore <sandra@codesourcery.com> |
1144 | ||
1145 | * nios2-tdep.c (nios2_type_align): New. | |
1146 | (nios2_gdb_arch_init): Install type_align hook. | |
1147 | ||
2fabdf33 AB |
1148 | 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com> |
1149 | ||
1150 | * eval.c (fake_method::fake_method): Call xzalloc directly for a | |
1151 | type that is neither object file owned, nor gdbarch owned. | |
1152 | * gdbtypes.c (get_type_gdbarch): Add an assert that returned | |
1153 | gdbarch is non-NULL. | |
1154 | (alloc_type_instance): Allocate non-objfile owned types on the | |
1155 | gdbarch obstack. | |
1156 | (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA | |
1157 | using TYPE_ALLOC to ensure memory is allocated on the correct | |
1158 | obstack. | |
1159 | * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile | |
1160 | obstack, or the gdbarch obstack. | |
1161 | (TYPE_ZALLOC): Rewrite using TYPE_ALLOC. | |
1162 | ||
b4b08fa2 TT |
1163 | 2018-09-14 Tom Tromey <tom@tromey.com> |
1164 | ||
1165 | * infcall.c (call_function_by_hand_dummy): Remove unnecessary | |
1166 | block. | |
1167 | ||
87b240d4 TT |
1168 | 2018-09-14 Tom Tromey <tom@tromey.com> |
1169 | ||
1170 | * nat/fork-inferior.c (get_startup_shell): Remove "static". | |
1171 | ||
7d221512 TT |
1172 | 2018-09-13 Tom Tromey <tom@tromey.com> |
1173 | ||
1174 | * python/py-inferior.c (infpy_thread_from_thread_handle): Now | |
1175 | static. | |
1176 | ||
97e67fc6 TT |
1177 | 2018-09-13 Tom Tromey <tom@tromey.com> |
1178 | ||
1179 | * exec.c (try_open_exec_file): Use std::string. | |
1180 | ||
803c08d0 TT |
1181 | 2018-09-13 Tom Tromey <tom@tromey.com> |
1182 | ||
1183 | * utils.h (gdb_bfd_errmsg): Return std::string. | |
1184 | * exec.c (exec_file_attach): Update. | |
1185 | * compile/compile-object-load.c (compile_object_load): Update. | |
1186 | * utils.c (gdb_bfd_errmsg): Return std::string. | |
1187 | ||
5b4cbbe3 TT |
1188 | 2018-09-13 Tom Tromey <tom@tromey.com> |
1189 | ||
1190 | * procfs.c (struct procinfo_deleter): New. | |
1191 | (procinfo_up): New typedef. | |
1192 | (do_destroy_procinfo_cleanup): Remove. | |
1193 | (procfs_target::info_proc): Use procinfo_up. Remove cleanups. | |
1194 | ||
db68fbe2 TT |
1195 | 2018-09-13 Tom Tromey <tom@tromey.com> |
1196 | ||
1197 | * source.c (add_path): Use gdb::unique_xmalloc_ptr. | |
1198 | ||
0ae1a321 SM |
1199 | 2018-09-13 Simon Marchi <simon.marchi@ericsson.com> |
1200 | 2018-09-13 Tom Tromey <tom@tromey.com> | |
1201 | ||
1202 | * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro. | |
1203 | (pspy_get_objfiles): New function. | |
1204 | (progspace_object_methods): New. | |
1205 | (pspace_object_type): Add tp_methods callback. | |
1206 | * python/python-internal.h (build_objfiles_list): New | |
1207 | declaration. | |
1208 | * python/python.c (build_objfiles_list): New function. | |
1209 | (gdbpy_objfiles): Implement using build_objfiles_list. | |
1210 | * NEWS: Mention the Progspace.objfiles method. | |
1211 | ||
a40bf0c2 SM |
1212 | 2018-09-13 Simon Marchi <simon.marchi@ericsson.com> |
1213 | ||
1214 | * python/py-inferior.c (infpy_get_progspace): New function. | |
1215 | (inferior_object_getset): Add progspace property. | |
1216 | * NEWS: Mention the new property. | |
1217 | ||
4a3fe98f TT |
1218 | 2018-09-13 Tom Tromey <tom@tromey.com> |
1219 | ||
1220 | PR rust/23650: | |
1221 | * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo". | |
1222 | ||
098b2108 TT |
1223 | 2018-09-13 Tom Tromey <tom@tromey.com> |
1224 | ||
1225 | PR rust/23626: | |
1226 | * rust-lang.c (rust_enum_variant): Now static. | |
1227 | (rust_empty_enum_p): New function. | |
1228 | (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def): | |
1229 | Handle empty enum. | |
1230 | ||
1256af7d SM |
1231 | 2018-09-13 Simon Marchi <simon.marchi@ericsson.com> |
1232 | ||
1233 | * python/py-inferior.c (infpy_repr): New. | |
1234 | (inferior_object_type): Register infpy_repr. | |
1235 | * python/py-objfile.c (objfpy_repr): New. | |
1236 | (objfile_object_type): Register objfpy_repr. | |
1237 | ||
f117a62c JB |
1238 | 2018-09-12 John Baldwin <jhb@FreeBSD.org> |
1239 | ||
1240 | * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable. | |
1241 | ||
88f22c34 JB |
1242 | 2018-09-12 John Baldwin <jhb@FreeBSD.org> |
1243 | ||
1244 | * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment | |
1245 | typo. | |
1246 | ||
3c025cfe SDJ |
1247 | 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com> |
1248 | ||
1249 | * common/common-utils.c: Don't include '<sys/stat.h>'. | |
1250 | (is_regular_file): Move to... | |
1251 | * common/filestuff.c (is_regular_file): ... here. | |
1252 | * common/common-utils.h (is_regular_file): Move to... | |
1253 | * common/filestuff.h (is_regular_file): ... here. | |
1254 | ||
3e68067f SM |
1255 | 2018-09-12 Simon Marchi <simon.marchi@ericsson.com> |
1256 | ||
1257 | * skip.c (debug_skip): New variable. | |
1258 | (skiplist_entry::do_skip_file_p): Add debug output. | |
1259 | (skiplist_entry::do_skip_gfile_p): Likewise. | |
1260 | (skiplist_entry::skip_function_p): Likewise. | |
1261 | (_initialize_step_skip): Create debug command. | |
1262 | * NEWS: Mention set/show debug skip. | |
1263 | ||
d6be54ef XR |
1264 | 2018-09-11 Xavier Roirand <roirand@adacore.com> |
1265 | ||
1266 | * darwin-nat.c (should_disable_startup_with_shell): | |
1267 | New function. | |
1268 | (darwin_nat_target::create_inferior): Add call. | |
1269 | ||
de1ec836 XR |
1270 | 2018-09-11 Xavier Roirand <roirand@adacore.com> |
1271 | ||
1272 | * darwin-nat.h (struct darwin_thread_info) <gdb_port, | |
1273 | inf_port, msg_state>: Initialize. | |
1274 | (struct darwin_thread_info) <signaled, single_step>: Change | |
1275 | type and initialize. | |
1276 | (struct darwin_thread_info) <event>: Initialize. | |
1277 | ||
e2fc52e7 SDJ |
1278 | 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
1279 | ||
1280 | PR gdb/23555 | |
1281 | PR gdb/23558 | |
1282 | * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation | |
1283 | guesses. | |
1284 | ||
5e8754f9 SDJ |
1285 | 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
1286 | ||
1287 | Revert: | |
1288 | 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com> | |
1289 | ||
1290 | PR gdb/23555 | |
1291 | PR gdb/23558 | |
1292 | * gnulib/aclocal.m4: Regenerate. | |
1293 | * gnulib/config.in: Regenerate. | |
1294 | * gnulib/configure: Regenerate. | |
1295 | * gnulib/import/Makefile.am: Update. | |
1296 | * gnulib/import/Makefile.in: Update. | |
1297 | * gnulib/import/extra/snippet/_Noreturn.h: Rename to... | |
1298 | * gnulib/import/_Noreturn.h: ... this. | |
1299 | * gnulib/import/alloca.in.h: Update. | |
1300 | * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... | |
1301 | * gnulib/import/arg-nonnull.h: ... this. | |
1302 | * gnulib/import/assure.h: Update. | |
1303 | * gnulib/import/at-func.c: Update. | |
1304 | * gnulib/import/basename-lgpl.c: Update. | |
1305 | * gnulib/import/extra/snippet/c++defs.h: Rename to... | |
1306 | * gnulib/import/c++defs.h: ... this. | |
1307 | * gnulib/import/canonicalize-lgpl.c: Update. | |
1308 | * gnulib/import/cdefs.h: Update. | |
1309 | * gnulib/import/chdir-long.c: Update. | |
1310 | * gnulib/import/chdir-long.h: Update. | |
1311 | * gnulib/import/cloexec.c: Update. | |
1312 | * gnulib/import/cloexec.h: Update. | |
1313 | * gnulib/import/close.c: Update. | |
1314 | * gnulib/import/closedir.c: Update. | |
1315 | * gnulib/import/config.charset: Update. | |
1316 | * gnulib/import/dirent-private.h: Update. | |
1317 | * gnulib/import/dirent.in.h: Update. | |
1318 | * gnulib/import/dirfd.c: Update. | |
1319 | * gnulib/import/dirname-lgpl.c: Update. | |
1320 | * gnulib/import/dirname.h: Update. | |
1321 | * gnulib/import/dosname.h: Update. | |
1322 | * gnulib/import/dup-safer-flag.c: Update. | |
1323 | * gnulib/import/dup-safer.c: Update. | |
1324 | * gnulib/import/dup.c: Update. | |
1325 | * gnulib/import/dup2.c: Update. | |
1326 | * gnulib/import/errno.in.h: Update. | |
1327 | * gnulib/import/error.c: Update. | |
1328 | * gnulib/import/error.h: Update. | |
1329 | * gnulib/import/exitfail.c: Update. | |
1330 | * gnulib/import/exitfail.h: Update. | |
1331 | * gnulib/import/extra/update-copyright: Update. | |
1332 | * gnulib/import/fchdir.c: Update. | |
1333 | * gnulib/import/fcntl.c: Update. | |
1334 | * gnulib/import/fcntl.in.h: Update. | |
1335 | * gnulib/import/fd-hook.c: Update. | |
1336 | * gnulib/import/fd-hook.h: Update. | |
1337 | * gnulib/import/fd-safer-flag.c: Update. | |
1338 | * gnulib/import/fd-safer.c: Update. | |
1339 | * gnulib/import/fdopendir.c: Update. | |
1340 | * gnulib/import/filename.h: Update. | |
1341 | * gnulib/import/filenamecat-lgpl.c: Update. | |
1342 | * gnulib/import/filenamecat.h: Update. | |
1343 | * gnulib/import/flexmember.h: Update. | |
1344 | * gnulib/import/float+.h: Update. | |
1345 | * gnulib/import/float.c: Update. | |
1346 | * gnulib/import/float.in.h: Update. | |
1347 | * gnulib/import/fnmatch.c: Update. | |
1348 | * gnulib/import/fnmatch.in.h: Update. | |
1349 | * gnulib/import/fnmatch_loop.c: Update. | |
1350 | * gnulib/import/fpucw.h: Update. | |
1351 | * gnulib/import/frexp.c: Update. | |
1352 | * gnulib/import/frexpl.c: Update. | |
1353 | * gnulib/import/fstat.c: Update. | |
1354 | * gnulib/import/fstatat.c: Update. | |
1355 | * gnulib/import/getcwd-lgpl.c: Update. | |
1356 | * gnulib/import/getcwd.c: Update. | |
1357 | * gnulib/import/getdtablesize.c: Update. | |
1358 | * gnulib/import/getlogin_r.c: Update. | |
1359 | * gnulib/import/getprogname.c: Update. | |
1360 | * gnulib/import/getprogname.h: Update. | |
1361 | * gnulib/import/gettext.h: Update. | |
1362 | * gnulib/import/gettimeofday.c: Update. | |
1363 | * gnulib/import/glob-libc.h: Update. | |
1364 | * gnulib/import/glob.c: Update. | |
1365 | * gnulib/import/glob.in.h: Update. | |
1366 | * gnulib/import/glob_internal.h: Update. | |
1367 | * gnulib/import/glob_pattern_p.c: Update. | |
1368 | * gnulib/import/globfree.c: Update. | |
1369 | * gnulib/import/hard-locale.c: Update. | |
1370 | * gnulib/import/hard-locale.h: Update. | |
1371 | * gnulib/import/intprops.h: Update. | |
1372 | * gnulib/import/inttypes.in.h: Update. | |
1373 | * gnulib/import/isnan.c: Update. | |
1374 | * gnulib/import/isnand-nolibm.h: Update. | |
1375 | * gnulib/import/isnand.c: Update. | |
1376 | * gnulib/import/isnanl-nolibm.h: Update. | |
1377 | * gnulib/import/isnanl.c: Update. | |
1378 | * gnulib/import/itold.c: Update. | |
1379 | * gnulib/import/libc-config.h: Update. | |
1380 | * gnulib/import/limits.in.h: Update. | |
1381 | * gnulib/import/localcharset.c: Update. | |
1382 | * gnulib/import/localcharset.h: Update. | |
1383 | * gnulib/import/localtime-buffer.c: Update. | |
1384 | * gnulib/import/localtime-buffer.h: Update. | |
1385 | * gnulib/import/lstat.c: Update. | |
1386 | * gnulib/import/m4/00gnulib.m4: Update. | |
1387 | * gnulib/import/m4/__inline.m4: Update. | |
1388 | * gnulib/import/m4/absolute-header.m4: Update. | |
1389 | * gnulib/import/m4/alloca.m4: Update. | |
1390 | * gnulib/import/m4/builtin-expect.m4: Update. | |
1391 | * gnulib/import/m4/canonicalize.m4: Update. | |
1392 | * gnulib/import/m4/chdir-long.m4: Update. | |
1393 | * gnulib/import/m4/close.m4: Update. | |
1394 | * gnulib/import/m4/closedir.m4: Update. | |
1395 | * gnulib/import/m4/configmake.m4: Update. | |
1396 | * gnulib/import/m4/d-ino.m4: Update. | |
1397 | * gnulib/import/m4/d-type.m4: Update. | |
1398 | * gnulib/import/m4/dirent_h.m4: Update. | |
1399 | * gnulib/import/m4/dirfd.m4: Update. | |
1400 | * gnulib/import/m4/dirname.m4: Update. | |
1401 | * gnulib/import/m4/double-slash-root.m4: Update. | |
1402 | * gnulib/import/m4/dup.m4: Update. | |
1403 | * gnulib/import/m4/dup2.m4: Update. | |
1404 | * gnulib/import/m4/eealloc.m4: Update. | |
1405 | * gnulib/import/m4/environ.m4: Update. | |
1406 | * gnulib/import/m4/errno_h.m4: Update. | |
1407 | * gnulib/import/m4/error.m4: Update. | |
1408 | * gnulib/import/m4/exponentd.m4: Update. | |
1409 | * gnulib/import/m4/exponentl.m4: Update. | |
1410 | * gnulib/import/m4/extensions.m4: Update. | |
1411 | * gnulib/import/m4/extern-inline.m4: Update. | |
1412 | * gnulib/import/m4/fchdir.m4: Update. | |
1413 | * gnulib/import/m4/fcntl-o.m4: Update. | |
1414 | * gnulib/import/m4/fcntl.m4: Update. | |
1415 | * gnulib/import/m4/fcntl_h.m4: Update. | |
1416 | * gnulib/import/m4/fdopendir.m4: Update. | |
1417 | * gnulib/import/m4/filenamecat.m4: Update. | |
1418 | * gnulib/import/m4/flexmember.m4: Update. | |
1419 | * gnulib/import/m4/float_h.m4: Update. | |
1420 | * gnulib/import/m4/fnmatch.m4: Update. | |
1421 | * gnulib/import/m4/fnmatch_h.m4: Update. | |
1422 | * gnulib/import/m4/fpieee.m4: Update. | |
1423 | * gnulib/import/m4/frexp.m4: Update. | |
1424 | * gnulib/import/m4/frexpl.m4: Update. | |
1425 | * gnulib/import/m4/fstat.m4: Update. | |
1426 | * gnulib/import/m4/fstatat.m4: Update. | |
1427 | * gnulib/import/m4/getcwd-abort-bug.m4: Update. | |
1428 | * gnulib/import/m4/getcwd-path-max.m4: Update. | |
1429 | * gnulib/import/m4/getcwd.m4: Update. | |
1430 | * gnulib/import/m4/getdtablesize.m4: Update. | |
1431 | * gnulib/import/m4/getlogin.m4: Update. | |
1432 | * gnulib/import/m4/getlogin_r.m4: Update. | |
1433 | * gnulib/import/m4/getpagesize.m4: Update. | |
1434 | * gnulib/import/m4/getprogname.m4: Update. | |
1435 | * gnulib/import/m4/gettimeofday.m4: Update. | |
1436 | * gnulib/import/m4/glibc21.m4: Update. | |
1437 | * gnulib/import/m4/glob.m4: Update. | |
1438 | * gnulib/import/m4/glob_h.m4: Update. | |
1439 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
1440 | * gnulib/import/m4/gnulib-common.m4: Update. | |
1441 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
1442 | * gnulib/import/m4/gnulib-tool.m4: Update. | |
1443 | * gnulib/import/m4/hard-locale.m4: Update. | |
1444 | * gnulib/import/m4/include_next.m4: Update. | |
1445 | * gnulib/import/m4/inttypes-pri.m4: Update. | |
1446 | * gnulib/import/m4/inttypes.m4: Update. | |
1447 | * gnulib/import/m4/isnand.m4: Update. | |
1448 | * gnulib/import/m4/isnanl.m4: Update. | |
1449 | * gnulib/import/m4/largefile.m4: Update. | |
1450 | * gnulib/import/m4/limits-h.m4: Update. | |
1451 | * gnulib/import/m4/localcharset.m4: Update. | |
1452 | * gnulib/import/m4/locale-fr.m4: Update. | |
1453 | * gnulib/import/m4/locale-ja.m4: Update. | |
1454 | * gnulib/import/m4/locale-zh.m4: Update. | |
1455 | * gnulib/import/m4/localtime-buffer.m4: Update. | |
1456 | * gnulib/import/m4/longlong.m4: Update. | |
1457 | * gnulib/import/m4/lstat.m4: Update. | |
1458 | * gnulib/import/m4/malloc.m4: Update. | |
1459 | * gnulib/import/m4/malloca.m4: Update. | |
1460 | * gnulib/import/m4/math_h.m4: Update. | |
1461 | * gnulib/import/m4/mbrtowc.m4: Update. | |
1462 | * gnulib/import/m4/mbsinit.m4: Update. | |
1463 | * gnulib/import/m4/mbsrtowcs.m4: Update. | |
1464 | * gnulib/import/m4/mbstate_t.m4: Update. | |
1465 | * gnulib/import/m4/memchr.m4: Update. | |
1466 | * gnulib/import/m4/memmem.m4: Update. | |
1467 | * gnulib/import/m4/mempcpy.m4: Update. | |
1468 | * gnulib/import/m4/memrchr.m4: Update. | |
1469 | * gnulib/import/m4/mkdir.m4: Update. | |
1470 | * gnulib/import/m4/mkstemp.m4: Update. | |
1471 | * gnulib/import/m4/mmap-anon.m4: Update. | |
1472 | * gnulib/import/m4/mode_t.m4: Update. | |
1473 | * gnulib/import/m4/msvc-inval.m4: Update. | |
1474 | * gnulib/import/m4/msvc-nothrow.m4: Update. | |
1475 | * gnulib/import/m4/multiarch.m4: Update. | |
1476 | * gnulib/import/m4/nocrash.m4: Update. | |
1477 | * gnulib/import/m4/off_t.m4: Update. | |
1478 | * gnulib/import/m4/onceonly.m4: Update. | |
1479 | * gnulib/import/m4/open-cloexec.m4: Update. | |
1480 | * gnulib/import/m4/open.m4: Update. | |
1481 | * gnulib/import/m4/openat.m4: Update. | |
1482 | * gnulib/import/m4/opendir.m4: Update. | |
1483 | * gnulib/import/m4/pathmax.m4: Update. | |
1484 | * gnulib/import/m4/rawmemchr.m4: Update. | |
1485 | * gnulib/import/m4/readdir.m4: Update. | |
1486 | * gnulib/import/m4/readlink.m4: Update. | |
1487 | * gnulib/import/m4/realloc.m4: Update. | |
1488 | * gnulib/import/m4/rename.m4: Update. | |
1489 | * gnulib/import/m4/rewinddir.m4: Update. | |
1490 | * gnulib/import/m4/rmdir.m4: Update. | |
1491 | * gnulib/import/m4/save-cwd.m4: Update. | |
1492 | * gnulib/import/m4/secure_getenv.m4: Update. | |
1493 | * gnulib/import/m4/setenv.m4: Update. | |
1494 | * gnulib/import/m4/signal_h.m4: Update. | |
1495 | * gnulib/import/m4/ssize_t.m4: Update. | |
1496 | * gnulib/import/m4/stat-time.m4: Update. | |
1497 | * gnulib/import/m4/stat.m4: Update. | |
1498 | * gnulib/import/m4/std-gnu11.m4: Update. | |
1499 | * gnulib/import/m4/stdbool.m4: Update. | |
1500 | * gnulib/import/m4/stddef_h.m4: Update. | |
1501 | * gnulib/import/m4/stdint.m4: Update. | |
1502 | * gnulib/import/m4/stdio_h.m4: Update. | |
1503 | * gnulib/import/m4/stdlib_h.m4: Update. | |
1504 | * gnulib/import/m4/strchrnul.m4: Update. | |
1505 | * gnulib/import/m4/strdup.m4: Update. | |
1506 | * gnulib/import/m4/strerror.m4: Update. | |
1507 | * gnulib/import/m4/string_h.m4: Update. | |
1508 | * gnulib/import/m4/strstr.m4: Update. | |
1509 | * gnulib/import/m4/strtok_r.m4: Update. | |
1510 | * gnulib/import/m4/sys_socket_h.m4: Update. | |
1511 | * gnulib/import/m4/sys_stat_h.m4: Update. | |
1512 | * gnulib/import/m4/sys_time_h.m4: Update. | |
1513 | * gnulib/import/m4/sys_types_h.m4: Update. | |
1514 | * gnulib/import/m4/tempname.m4: Update. | |
1515 | * gnulib/import/m4/time_h.m4: Update. | |
1516 | * gnulib/import/m4/unistd-safer.m4: Update. | |
1517 | * gnulib/import/m4/unistd_h.m4: Update. | |
1518 | * gnulib/import/m4/warn-on-use.m4: Update. | |
1519 | * gnulib/import/m4/wchar_h.m4: Update. | |
1520 | * gnulib/import/m4/wchar_t.m4: Update. | |
1521 | * gnulib/import/m4/wctype_h.m4: Update. | |
1522 | * gnulib/import/m4/wint_t.m4: Update. | |
1523 | * gnulib/import/malloc.c: Update. | |
1524 | * gnulib/import/malloc/scratch_buffer.h: Update. | |
1525 | * gnulib/import/malloc/scratch_buffer_grow.c: Update. | |
1526 | * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. | |
1527 | * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. | |
1528 | * gnulib/import/malloca.c: Update. | |
1529 | * gnulib/import/malloca.h: Update. | |
1530 | * gnulib/import/malloca.valgrind: Update. | |
1531 | * gnulib/import/math.in.h: Update. | |
1532 | * gnulib/import/mbrtowc.c: Update. | |
1533 | * gnulib/import/mbsinit.c: Update. | |
1534 | * gnulib/import/mbsrtowcs-impl.h: Update. | |
1535 | * gnulib/import/mbsrtowcs-state.c: Update. | |
1536 | * gnulib/import/mbsrtowcs.c: Update. | |
1537 | * gnulib/import/memchr.c: Update. | |
1538 | * gnulib/import/memmem.c: Update. | |
1539 | * gnulib/import/mempcpy.c: Update. | |
1540 | * gnulib/import/memrchr.c: Update. | |
1541 | * gnulib/import/mkdir.c: Update. | |
1542 | * gnulib/import/mkstemp.c: Update. | |
1543 | * gnulib/import/msvc-inval.c: Update. | |
1544 | * gnulib/import/msvc-inval.h: Update. | |
1545 | * gnulib/import/msvc-nothrow.c: Update. | |
1546 | * gnulib/import/msvc-nothrow.h: Update. | |
1547 | * gnulib/import/open.c: Update. | |
1548 | * gnulib/import/openat-die.c: Update. | |
1549 | * gnulib/import/openat-priv.h: Update. | |
1550 | * gnulib/import/openat-proc.c: Update. | |
1551 | * gnulib/import/openat.c: Update. | |
1552 | * gnulib/import/openat.h: Update. | |
1553 | * gnulib/import/opendir.c: Update. | |
1554 | * gnulib/import/pathmax.h: Update. | |
1555 | * gnulib/import/pipe-safer.c: Update. | |
1556 | * gnulib/import/rawmemchr.c: Update. | |
1557 | * gnulib/import/readdir.c: Update. | |
1558 | * gnulib/import/readlink.c: Update. | |
1559 | * gnulib/import/realloc.c: Update. | |
1560 | * gnulib/import/ref-add.sin: Update. | |
1561 | * gnulib/import/ref-del.sin: Update. | |
1562 | * gnulib/import/rename.c: Update. | |
1563 | * gnulib/import/rewinddir.c: Update. | |
1564 | * gnulib/import/rmdir.c: Update. | |
1565 | * gnulib/import/same-inode.h: Update. | |
1566 | * gnulib/import/save-cwd.c: Update. | |
1567 | * gnulib/import/save-cwd.h: Update. | |
1568 | * gnulib/import/scratch_buffer.h: Update. | |
1569 | * gnulib/import/secure_getenv.c: Update. | |
1570 | * gnulib/import/setenv.c: Update. | |
1571 | * gnulib/import/signal.in.h: Update. | |
1572 | * gnulib/import/stat-time.c: Update. | |
1573 | * gnulib/import/stat-time.h: Update. | |
1574 | * gnulib/import/stat-w32.c: Update. | |
1575 | * gnulib/import/stat-w32.h: Update. | |
1576 | * gnulib/import/stat.c: Update. | |
1577 | * gnulib/import/stdbool.in.h: Update. | |
1578 | * gnulib/import/stddef.in.h: Update. | |
1579 | * gnulib/import/stdint.in.h: Update. | |
1580 | * gnulib/import/stdio.in.h: Update. | |
1581 | * gnulib/import/stdlib.in.h: Update. | |
1582 | * gnulib/import/str-two-way.h: Update. | |
1583 | * gnulib/import/strchrnul.c: Update. | |
1584 | * gnulib/import/strdup.c: Update. | |
1585 | * gnulib/import/streq.h: Update. | |
1586 | * gnulib/import/strerror-override.c: Update. | |
1587 | * gnulib/import/strerror-override.h: Update. | |
1588 | * gnulib/import/strerror.c: Update. | |
1589 | * gnulib/import/string.in.h: Update. | |
1590 | * gnulib/import/stripslash.c: Update. | |
1591 | * gnulib/import/strnlen1.c: Update. | |
1592 | * gnulib/import/strnlen1.h: Update. | |
1593 | * gnulib/import/strstr.c: Update. | |
1594 | * gnulib/import/strtok_r.c: Update. | |
1595 | * gnulib/import/sys_stat.in.h: Update. | |
1596 | * gnulib/import/sys_time.in.h: Update. | |
1597 | * gnulib/import/sys_types.in.h: Update. | |
1598 | * gnulib/import/tempname.c: Update. | |
1599 | * gnulib/import/tempname.h: Update. | |
1600 | * gnulib/import/time.in.h: Update. | |
1601 | * gnulib/import/unistd--.h: Update. | |
1602 | * gnulib/import/unistd-safer.h: Update. | |
1603 | * gnulib/import/unistd.in.h: Update. | |
1604 | * gnulib/import/unsetenv.c: Update. | |
1605 | * gnulib/import/verify.h: Update. | |
1606 | * gnulib/import/extra/snippet/warn-on-use.h: Update. | |
1607 | * gnulib/import/wchar.in.h: Update. | |
1608 | * gnulib/import/wctype.in.h: Update. | |
1609 | * gnulib/import/xalloc-oversized.h: Update. | |
1610 | * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to | |
1611 | "53e2c179f26a890fa6685af4b6c1397ee370433b". | |
1612 | ||
8ec23583 SM |
1613 | 2018-09-10 Simon Marchi <simon.marchi@ericsson.com> |
1614 | ||
1615 | * record-btrace.c (get_thread_current_frame): Remove | |
1616 | old_inferior_ptid. | |
1617 | ||
1f5d1570 JG |
1618 | 2018-09-10 Jerome Guitton <guitton@adacore.com> |
1619 | ||
1620 | * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type | |
1621 | with check_tag to 1 if and only if the type is tagged and the | |
1622 | component being searched cannot been found in the current | |
1623 | view. Otherwise, always call ada_to_fixed_type with | |
1624 | check_tag to 0. | |
1625 | ||
d91e9ea8 XR |
1626 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
1627 | ||
1628 | * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static | |
1629 | declaration. | |
1630 | * ada-lang.h: add ada_is_access_to_unconstrained_array prototype. | |
1631 | * ada-varobj.c (ada_varobj_get_number_of_children, | |
1632 | ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code. | |
1633 | ||
cc330e39 XR |
1634 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
1635 | ||
1636 | * ada-valprint.c (ada_value_print): Use type instead of | |
1637 | enclosing type. | |
1638 | ||
b9c50e9a XR |
1639 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
1640 | ||
1641 | * ada-lang.c (ada_value_subscript): Handle case when parameter is | |
1642 | an array of access to unconstrained array. | |
1643 | ||
736ade86 XR |
1644 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
1645 | ||
1646 | * ada-lang.c (ada_is_access_to_unconstrained_array): New function. | |
1647 | (ada_check_typedef): Use it. | |
1648 | ||
2963898f XR |
1649 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
1650 | ||
1651 | * ada-varobj.c (ada_varobj_describe_struct_child) | |
1652 | (ada_varobj_describe_child): Handle union case like struct one. | |
1653 | ||
a154931e TT |
1654 | 2018-09-10 Tom Tromey <tom@tromey.com> |
1655 | ||
1656 | PR python/18380: | |
1657 | * python/python.c (_initialize_python): Make example in "python" | |
1658 | help work in Python 3. | |
1659 | ||
23c4651c EZ |
1660 | 2018-09-10 Eli Zaretskii <eliz@gnu.org> |
1661 | ||
1662 | * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of | |
1663 | INSTALL_PROGRAM to install gdb-add-index.sh. Don't append | |
1664 | $(EXEEXT) to the script, as it is not a program. | |
1665 | ||
a5c5eda7 SM |
1666 | 2018-09-09 Simon Marchi <simon.marchi@ericsson.com> |
1667 | ||
1668 | * python/py-prettyprint.c (pretty_print_one_value): Return | |
1669 | gdbpy_ref<>. | |
1670 | (print_string_repr): Adjust. | |
1671 | (apply_varobj_pretty_printer): Return gdbpy_ref<>. | |
1672 | * python/python-internal.h (apply_varobj_pretty_printer): Return | |
1673 | gdbpy_ref<>. | |
1674 | * varobj.c (varobj_value_get_print_value): Adjust. | |
1675 | ||
332cf4c9 TT |
1676 | 2018-09-08 Tom Tromey <tom@tromey.com> |
1677 | ||
1678 | PR python/16047: | |
1679 | * python/py-prettyprint.c (pretty_print_one_value): Check for | |
1680 | to_string method. | |
1681 | ||
424da6cf JB |
1682 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1683 | ||
1684 | * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to | |
1685 | replace_operator_with_call. | |
1686 | ||
95f39a5b JB |
1687 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1688 | ||
1689 | * ada-lang.c (ada_value_cast): Remove unnecessary parentheses. | |
1690 | ||
16b9eb7b JB |
1691 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1692 | ||
1693 | * ada-typeprint.c (print_range): Print the bounds using TYPE | |
1694 | rather than its TYPE_TARGET_TYPE. | |
1695 | ||
d8ce9127 JB |
1696 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1697 | ||
1698 | * ada-lang.c (ada_to_fixed_value): Minor reformatting in | |
1699 | call to ada_to_fixed_value_create. | |
1700 | ||
0d81f350 JG |
1701 | 2018-09-08 Jerome Guitton <guitton@adacore.com> |
1702 | ||
1703 | * ada-lang.c (ada_decode): strip dot prefix in symbol name. | |
1704 | ||
57aff202 JB |
1705 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1706 | ||
1707 | * ada-lang.c (ada_exception_sal): Replace gdb_assert calls | |
1708 | by calls to error. | |
1709 | ||
fb44b1a7 JB |
1710 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1711 | ||
1712 | * ada-lang.c (ada_unhandled_exception_name_addr_from_raise): | |
1713 | Move update of loop variable "fi". | |
1714 | ||
2a62dfa9 JB |
1715 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1716 | ||
1717 | * ada-lang.c (value_assign_to_component): In the case of | |
1718 | big-endian targets, extract the bits of the given VAL | |
1719 | using an src_offset of zero if container is not a scalar. | |
1720 | ||
739ab2e9 SS |
1721 | 2018-09-06 Simon Ser <contact@emersion.fr> |
1722 | ||
1723 | PR gdb/23105 | |
1724 | * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for | |
1725 | TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. | |
1726 | * fbsd-tdep.c (fbsd_make_note_desc): New. | |
1727 | (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV, | |
1728 | NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes. | |
1729 | * target.h (enum target_object) Add FreeBSD-specific | |
1730 | TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. | |
1731 | ||
d82b3862 SM |
1732 | 2018-09-06 Simon Marchi <simon.marchi@ericsson.com> |
1733 | ||
1734 | * compile/compile-c.h (generate_c_for_variable_locations): | |
1735 | Change reference to pointer. | |
1736 | * compile/compile-c-support.c (compile_program) <compute>: | |
1737 | Likewise. | |
1738 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
1739 | (generate_c_for_for_one_variable): Likewise | |
1740 | (generate_c_for_variable_locations): Likewise | |
1741 | * compile/compile-c-types.c (compile_c_instance::convert_type): | |
1742 | Likewise | |
1743 | * compile/compile-cplus-symbols.c (convert_one_symbol): | |
1744 | std::move the scope passed to enter_scope. | |
1745 | * compile/compile-cplus-types.c | |
1746 | (compile_cplus_instance::enter_scope): Make parameter | |
1747 | rvalue-reference. | |
1748 | (compile_cplus_instance::new_scope): Change reference to | |
1749 | pointer. | |
1750 | (compile_cplus_instance::convert_type): Likewise | |
1751 | (compile_cplus_convert_typedef): std::move the scope passed to | |
1752 | enter_scope. | |
1753 | (compile_cplus_convert_struct_or_union): Likewise. | |
1754 | (compile_cplus_convert_enum): Likewise. | |
1755 | (compile_cplus_convert_namespace): Likewise. | |
1756 | * compile/compile-cplus.h (compile_cplus_instance) | |
1757 | <enter_scope>: Make parameter rvalue-reference. | |
1758 | * compile/compile-internal.h (compile_instance) | |
1759 | <get_cached_type>: Likewise | |
1760 | * compile/compile-loc2c.c (push): Likewise | |
1761 | (pushf): Likewise | |
1762 | (unary): Likewise | |
1763 | (binary): Likewise | |
1764 | (print_label): Likewise | |
1765 | (pushf_register_address): Likewise | |
1766 | (pushf_register): Likewise | |
1767 | (do_compile_dwarf_expr_to_c): Likewise | |
1768 | (compile_dwarf_expr_to_c): Likewise | |
1769 | (compile_dwarf_bounds_to_c): Likewise | |
1770 | * compile/compile.c (compile_instance::get_cached_type): | |
1771 | Likewise | |
1772 | * compile/compile.h (compile_dwarf_expr_to_c): Likewise. | |
1773 | (compile_dwarf_bounds_to_c): Likewise | |
1774 | * dwarf2loc.c (locexpr_generate_c_location): Likewise. | |
1775 | (dwarf2_compile_property_to_c): Likewise | |
1776 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise | |
1777 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
1778 | Likewise | |
1779 | ||
cc5a5ae5 SM |
1780 | 2018-09-06 Simon Marchi <simon.marchi@ericsson.com> |
1781 | ||
1782 | * tui/tui-data.h (struct tui_win_element) <highlight>: Remove. | |
1783 | * tui/tui-data.c (init_content_element): Don't initialize it. | |
1784 | ||
137be540 SM |
1785 | 2018-09-06 Simon Marchi <simon.marchi@ericsson.com> |
1786 | ||
1787 | * tui/tui-data.h (struct tui_win_info) | |
1788 | <detail::opaque>: Remove. | |
1789 | * tui/tui-data.c (init_win_info): Remove assignment. | |
1790 | ||
f1628857 TT |
1791 | 2018-09-05 Tom Tromey <tom@tromey.com> |
1792 | ||
1793 | * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing | |
1794 | -Wformat-nonliteral. | |
1795 | * target-float.c (host_float_ops<T>::to_string) | |
1796 | (host_float_ops<T>::from_string): Use | |
1797 | DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. | |
1798 | * configure: Rebuild. | |
1799 | ||
af39b1c2 SM |
1800 | 2018-09-05 Simon Marchi <simon.marchi@ericsson.com> |
1801 | ||
1802 | * printcmd.c (printf_c_string): Use | |
1803 | DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. | |
1804 | (printf_wide_c_string, printf_pointer, ui_printf): Likewise. | |
1805 | ||
081bca4d TT |
1806 | 2018-09-05 Tom Tromey <tom@tromey.com> |
1807 | ||
1808 | * cli/cli-cmds.c (shell_escape, edit_command): Remove cast. | |
1809 | ||
e4a62c65 TV |
1810 | 2018-09-05 Tom de Vries <tdevries@suse.de> |
1811 | ||
1812 | * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer | |
1813 | with resolve_abstract_p == true. | |
1814 | (indirect_synthetic_pointer): Add resolve_abstract_p parameter, | |
1815 | defaulting to false. Propagate resolve_abstract_p to | |
1816 | dwarf2_fetch_die_loc_sect_off. | |
1817 | * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p | |
1818 | parameter, defaulting to false. | |
1819 | * dwarf2read.c (read_variable): Add variable to abstract_to_concrete. | |
1820 | (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p | |
1821 | parameter. | |
1822 | * dwarf2read.h (struct die_info): Forward-declare. | |
1823 | (die_info_ptr): New typedef. | |
1824 | (struct dwarf2_per_objfile): Add abstract_to_concrete field. | |
1825 | ||
2b69821e JB |
1826 | 2018-09-05 Joel Brobecker <brobecker@adacore.com> |
1827 | ||
1828 | GDB 8.2 released. | |
1829 | ||
fcc9b044 SDJ |
1830 | 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com> |
1831 | Pedro Alves <palves@redhat.com> | |
1832 | ||
1833 | * gnulib/Makefile.in (aclocal_m4_deps): Move to | |
1834 | "aclocal-m4-deps.mk". Include file here. | |
1835 | $(srcdir)/aclocal.m4: Add "configure.ac". | |
1836 | * gnulib/aclocal-m4-deps.mk: New file. | |
1837 | * gnulib/update-gnulib.sh: Automatically update | |
1838 | "aclocal-m4-deps.mk". | |
1839 | ||
d53d5436 TT |
1840 | 2018-09-04 Tom Tromey <tom@tromey.com> |
1841 | ||
1842 | * configure: Rebuild. | |
1843 | * configure.ac: Remove multi-ice code. | |
1844 | ||
8dc9fd87 TT |
1845 | 2018-09-04 Tom Tromey <tom@tromey.com> |
1846 | ||
1847 | * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove. | |
1848 | (ada-exp.o): Update. | |
1849 | ||
3322c5d9 TT |
1850 | 2018-09-04 Tom Tromey <tom@tromey.com> |
1851 | ||
1852 | * Makefile.in (printcmd.o, target-float.o): Remove. | |
1853 | (GDB_WARN_CFLAGS_NO_FORMAT): Remove. | |
1854 | ||
ba2bf2aa TT |
1855 | 2018-09-04 Tom Tromey <tom@tromey.com> |
1856 | ||
1857 | * gnulib/Makefile.in: Remove obsolete comment. | |
1858 | * Makefile.in: Remove obsolete comment. | |
1859 | ||
6c9d681b AB |
1860 | 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com> |
1861 | ||
1862 | * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a | |
1863 | line with '+'. | |
1864 | ||
78a3b0fa AB |
1865 | 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com> |
1866 | ||
1867 | * riscv-tdep.c: Add 'prologue-value.h' include. | |
1868 | (struct riscv_unwind_cache): New struct. | |
1869 | (riscv_debug_unwinder): New global. | |
1870 | (riscv_scan_prologue): Update arguments, capture register details | |
1871 | from prologue scan. | |
1872 | (riscv_skip_prologue): Reformat arguments line, move end of | |
1873 | prologue calculation into riscv_scan_prologue. | |
1874 | (riscv_frame_cache): Update return type, create | |
1875 | riscv_unwind_cache, scan the prologue, and fill in remaining cache | |
1876 | details. | |
1877 | (riscv_frame_this_id): Use frame id computed in riscv_frame_cache. | |
1878 | (riscv_frame_prev_register): Use the trad_frame within the | |
1879 | riscv_unwind_cache. | |
1880 | (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder' | |
1881 | flag. | |
1882 | ||
23e60e7a AB |
1883 | 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com> |
1884 | ||
1885 | * trad-frame.h (trad_frame_set_realreg): Declare. | |
1886 | (trad_frame_set_addr): Declare. | |
1887 | * trad-frame.c (trad_frame_set_realreg): Define new function. | |
1888 | (trad_frame_set_addr): Define new function. | |
1889 | (trad_frame_set_reg_realreg): Use new function. | |
1890 | (trad_frame_set_reg_addr): Use new function. | |
1891 | ||
5c889512 KS |
1892 | 2018-09-01 Keith Seitz <keiths@redhat.com> |
1893 | ||
1894 | * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use | |
1895 | pulongest instead of "%lld". | |
1896 | * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove | |
1897 | ATTRIBUTE_UNUSED. | |
1898 | ||
c8c81635 TT |
1899 | 2018-08-31 Tom Tromey <tom@tromey.com> |
1900 | ||
1901 | * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the | |
1902 | variant part type. | |
1903 | ||
0c888588 PA |
1904 | 2018-08-31 Pedro Alves <palves@redhat.com> |
1905 | ||
1906 | * gdbarch.h: Regenerate. | |
1907 | ||
7ea65f08 PA |
1908 | 2018-08-31 Pedro Alves <palves@redhat.com> |
1909 | ||
1910 | * gdbarch.sh (have_nonsteppable_watchpoint): Add comment. | |
1911 | * target.h (Hardware watchpoint interfaces): Describe | |
1912 | continuable/steppable/non-steppable watchpoints. | |
1913 | * gdbarch.h, gdbarch.c: Regenerate. | |
1914 | ||
7eb65faf PA |
1915 | 2018-08-31 Pedro Alves <palves@redhat.com> |
1916 | ||
1917 | * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint): | |
1918 | Delete. | |
1919 | * s390-linux-nat.c | |
1920 | (s390_linux_nat_target::have_continuable_watchpoint): Delete. | |
1921 | * target.h (target_ops::have_continuable_watchpoint): Delete. | |
1922 | (target_have_continuable_watchpoint): Delete. | |
1923 | * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete. | |
1924 | * target-delegates.c: Regenerate. | |
1925 | ||
dab999b1 SDJ |
1926 | 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
1927 | ||
1928 | * gnulib/Makefile.in (aclocal_m4_deps): Update according to | |
1929 | the files present in "gnulib/import/m4/". | |
1930 | ||
ff3a05b3 AB |
1931 | 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com> |
1932 | ||
1933 | * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd, | |
1934 | c.sw, c.swsp, and c.sdsp. | |
1935 | ||
0b3f9efc AB |
1936 | 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com> |
1937 | ||
1938 | * riscv-tdep.c (struct riscv_inferior_data): Delete. | |
1939 | (riscv_read_misa_reg): Don't cache value read into inferior data. | |
1940 | (riscv_new_inferior_data): Delete. | |
1941 | (riscv_inferior_data_cleanup): Delete. | |
1942 | (riscv_inferior_data): Delete. | |
1943 | (riscv_invalidate_inferior_data): Delete. | |
1944 | (_initialize_riscv_tdep): Remove initialisation of inferior data. | |
1945 | ||
a0dc02a6 SM |
1946 | 2018-08-30 Simon Marchi <simon.marchi@ericsson.com> |
1947 | ||
1948 | * compile/compile-cplus-types.c | |
1949 | (compile_cplus_instance::leave_scope): Take the address of scope | |
1950 | object. | |
1951 | (compile_cplus_instance::convert_qualified_base): Compare quals | |
1952 | to 0. | |
1953 | ||
fdad7678 KS |
1954 | 2018-08-30 Keith Seitz <keiths@redhat.com> |
1955 | ||
1956 | * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope): | |
1957 | Use "%s" and host_address_to_string instead of "%p" in printf. | |
1958 | ||
078a0207 KS |
1959 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1960 | ||
1961 | * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c | |
1962 | and compile-cplus-types.c. | |
1963 | (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h. | |
1964 | * c-lang.c (cplus_language_defn): Set C++ compile functions. | |
1965 | * c-lang.h (cplus_get_compile_context, cplus_compute_program): | |
1966 | Declare. | |
1967 | * compile/compile-c-support.c: Include compile-cplus.h. | |
1968 | (load_libcompile): Templatize. | |
1969 | (get_compile_context): "New" function. | |
1970 | (c_get_compile_context): Use get_compile_context. | |
1971 | (cplus_get_compile_context): New function. | |
1972 | (cplus_push_user_expression, cplus_pop_user_expression) | |
1973 | (cplus_add_code_header, cplus_add_input, cplus_compile_program) | |
1974 | (cplus_compute_program): Define new structs/functions. | |
1975 | * compile/compile-cplus-symmbols.c: New file. | |
1976 | * compile/compile-cplus-types.c: New file. | |
1977 | * compile/compile-cplus.h: New file. | |
1978 | * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE): | |
1979 | Declare. | |
1980 | * compile/compile-object-load.c (get_out_value_type): Use | |
1981 | strncmp_iw when comparing symbol names. | |
1982 | (compile_object_load): Add mst_bss and mst_data. | |
1983 | * compile/compile.c (_initialize_compile): Remove | |
1984 | -Wno-implicit-function-declaration from `compile_args'. | |
1985 | * compile/gcc-cp-plugin.h: New file. | |
1986 | * NEWS: Mention C++ compile support and new debug options. | |
1987 | ||
fcaad03c KS |
1988 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1989 | ||
1990 | * linespec.c (collect_info::add_symbol): Make virtual. | |
1991 | (struct symbol_searcher_collect_info): New struct. | |
1992 | (symbol_searcher::find_all_symbols): New method. | |
1993 | * symtab.h (class symbol_searcher): New class. | |
1994 | ||
7e41c8db KS |
1995 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1996 | ||
1997 | * linespec.c (struct linespec) <function_symbols, label_symbols>: | |
1998 | Change to vector of block_symbol. Update all users. | |
1999 | (struct collect_info) <symbols>: Likewise. | |
2000 | (collect_info::add_symbol): Take block_symbol as argument. | |
2001 | Update all callers. | |
2002 | (decode_compound_collector) <m_symbols>: Change type to vector | |
2003 | of block_symbol. Update all users. | |
2004 | (decode_compound_collector::operator ()): Change parameter type | |
2005 | to block_symbol. | |
2006 | (find_method, find_function_symbols, find_linespec_symbols) | |
2007 | (find_label_symbols_in_block, find_label_symbols): Change symbol | |
2008 | vectors to block_symbol vectors. | |
2009 | * symtab.h (symbol_found_callback_ftype): Change parameter type to | |
2010 | block_symbol. | |
2011 | ||
63e8c3da KS |
2012 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
2013 | ||
2014 | * linespec.c (symbolp): Remove typedef and VEC definitions. | |
2015 | (bound_minimal_symbol_d): Likewise. | |
2016 | ||
4dedf84d KS |
2017 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
2018 | ||
2019 | * linespec.c (decode_compound_collector::decode_compound_collector): | |
2020 | Remove initialization for `m_symtabs'. | |
2021 | (decode_compound_collector::release_symbols): Change return type | |
2022 | to std::vector. Update all callers. | |
2023 | (class decode_compound_collector) <m_symbols>: Change type to | |
2024 | std::vector. | |
2025 | (lookup_prefix_sym): Change return type to std::vector. Update all | |
2026 | callers. | |
2027 | (compare_symbols): Remove. | |
2028 | (std_compare_symbols): Rename to `compare_symbols'. | |
2029 | (find_method): Change `sym_classes' parameter to std::vector. | |
2030 | Update all callers. Use std::sort to sort sym_classes. | |
2031 | (find_linespec_symbols): Remove cleanup. | |
2032 | ||
c2a031c5 KS |
2033 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
2034 | ||
2035 | * linespec.c (struct linespec) <minimal_symbols>: Change type to | |
2036 | std::vector. Update all users. | |
2037 | (convert_linespec_to_sals): Use std::sort to sort minimal symbols. | |
2038 | (struct collect_info) <minimal_symbols>: Likewise. | |
2039 | (compare_msymbols): Return bool. Change parameters to const | |
2040 | bound_minimal_symbol references. | |
2041 | (find_method, find_function_symbols, find_linespec_symbols): Change | |
2042 | `minsyms' parameter to std::vector. Update all callers. | |
2043 | ||
3553eadc KS |
2044 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
2045 | ||
2046 | * linespec.c (struct linespec) <label_symbols>: Change type to | |
2047 | std::vector. Update all users. | |
2048 | (find_label_symbols_in_block): Change `result' parameter to | |
2049 | std::vector. Update all callers. | |
2050 | (find_label_symbols): Return std::vector. Update all callers. | |
2051 | ||
7243d011 KS |
2052 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
2053 | ||
2054 | * linespec.c (struct linespec) <function_symbols>: Change type to | |
2055 | std::vector. Update all users. | |
2056 | (struct collect_info) <function_symbols>: Likewise. | |
2057 | (convert_linespec_to_sals): Use std::sort to sort function_symbols. | |
2058 | (std_compare_symbols): New function. | |
2059 | (find_method, find_function_symbols, find_linespec_symbols) | |
2060 | (find_label_symbols_in_block): Change `symbols' parameter to | |
2061 | std::vector. Update all callers. | |
2062 | (find_label_symbols): Likewise for `function_symbols' and | |
2063 | `label_funcs_ret'. | |
2064 | ||
2a908241 KS |
2065 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
2066 | ||
2067 | * linespec.c (symtab_vector_up): Define. | |
2068 | (struct linespec) <file_symtabs>: Change type to std::vector *. | |
2069 | Update all uses. | |
2070 | (struct collect_info) <file_symtabs>: Likewise. | |
2071 | (collect_symtabs_from_filename): Return symtab_vector_up. | |
2072 | Update all callers. | |
2073 | (decode_objc): Remove cleanup. | |
2074 | (symtab_collector::symtab_collector): Initialize `m_symtabs'. | |
2075 | (symtab_collector::release_symtabs): Return symtab_vector_up. | |
2076 | Update all callers. | |
2077 | (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up. | |
2078 | Update all users. | |
2079 | (collect_symtabs_from_filename, symtabs_from_filename): Return | |
2080 | symtab_vector_up. Update all callers. | |
2081 | ||
f6c4e3e8 TT |
2082 | 2018-08-29 Tom Tromey <tom@tromey.com> |
2083 | ||
2084 | * csky-tdep.c (csky_analyze_prologue): Use | |
2085 | core_addr_to_string_nz. | |
2086 | ||
73c13fe6 TT |
2087 | 2018-08-29 Tom Tromey <tom@tromey.com> |
2088 | ||
2089 | * windows-nat.c (struct xlate_exception) <them>: Change type to | |
2090 | DWORD. | |
2091 | (xlate): Fix formatting. Remove last entry. | |
2092 | (struct xlate_exception, xlate): Comment out. | |
2093 | (windows_nat_target::resume): Use ranged for. | |
2094 | ||
4d3928d7 JW |
2095 | 2018-08-29 Jim Wilson <jimw@sifive.com> |
2096 | ||
2097 | * riscv-linux-nat.c: Include elf/common.h instead of elf.h. | |
2098 | (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead | |
2099 | of NT_PRFPREG. | |
2100 | (riscv_linux_nat_target::store_registers): Likewise. | |
2101 | ||
7a6dbc2f SDJ |
2102 | 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com> |
2103 | ||
2104 | PR gdb/23555 | |
2105 | PR gdb/23558 | |
2106 | * gnulib/aclocal.m4: Regenerate. | |
2107 | * gnulib/config.in: Regenerate. | |
2108 | * gnulib/configure: Regenerate. | |
2109 | * gnulib/import/Makefile.am: Update. | |
2110 | * gnulib/import/Makefile.in: Update. | |
2111 | * gnulib/import/extra/snippet/_Noreturn.h: Rename to... | |
2112 | * gnulib/import/_Noreturn.h: ... this. | |
2113 | * gnulib/import/alloca.in.h: Update. | |
2114 | * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... | |
2115 | * gnulib/import/arg-nonnull.h: ... this. | |
2116 | * gnulib/import/assure.h: Update. | |
2117 | * gnulib/import/at-func.c: Update. | |
2118 | * gnulib/import/basename-lgpl.c: Update. | |
2119 | * gnulib/import/extra/snippet/c++defs.h: Rename to... | |
2120 | * gnulib/import/c++defs.h: ... this. | |
2121 | * gnulib/import/canonicalize-lgpl.c: Update. | |
2122 | * gnulib/import/cdefs.h: Update. | |
2123 | * gnulib/import/chdir-long.c: Update. | |
2124 | * gnulib/import/chdir-long.h: Update. | |
2125 | * gnulib/import/cloexec.c: Update. | |
2126 | * gnulib/import/cloexec.h: Update. | |
2127 | * gnulib/import/close.c: Update. | |
2128 | * gnulib/import/closedir.c: Update. | |
2129 | * gnulib/import/config.charset: Update. | |
2130 | * gnulib/import/dirent-private.h: Update. | |
2131 | * gnulib/import/dirent.in.h: Update. | |
2132 | * gnulib/import/dirfd.c: Update. | |
2133 | * gnulib/import/dirname-lgpl.c: Update. | |
2134 | * gnulib/import/dirname.h: Update. | |
2135 | * gnulib/import/dosname.h: Update. | |
2136 | * gnulib/import/dup-safer-flag.c: Update. | |
2137 | * gnulib/import/dup-safer.c: Update. | |
2138 | * gnulib/import/dup.c: Update. | |
2139 | * gnulib/import/dup2.c: Update. | |
2140 | * gnulib/import/errno.in.h: Update. | |
2141 | * gnulib/import/error.c: Update. | |
2142 | * gnulib/import/error.h: Update. | |
2143 | * gnulib/import/exitfail.c: Update. | |
2144 | * gnulib/import/exitfail.h: Update. | |
2145 | * gnulib/import/extra/update-copyright: Update. | |
2146 | * gnulib/import/fchdir.c: Update. | |
2147 | * gnulib/import/fcntl.c: Update. | |
2148 | * gnulib/import/fcntl.in.h: Update. | |
2149 | * gnulib/import/fd-hook.c: Update. | |
2150 | * gnulib/import/fd-hook.h: Update. | |
2151 | * gnulib/import/fd-safer-flag.c: Update. | |
2152 | * gnulib/import/fd-safer.c: Update. | |
2153 | * gnulib/import/fdopendir.c: Update. | |
2154 | * gnulib/import/filename.h: Update. | |
2155 | * gnulib/import/filenamecat-lgpl.c: Update. | |
2156 | * gnulib/import/filenamecat.h: Update. | |
2157 | * gnulib/import/flexmember.h: Update. | |
2158 | * gnulib/import/float+.h: Update. | |
2159 | * gnulib/import/float.c: Update. | |
2160 | * gnulib/import/float.in.h: Update. | |
2161 | * gnulib/import/fnmatch.c: Update. | |
2162 | * gnulib/import/fnmatch.in.h: Update. | |
2163 | * gnulib/import/fnmatch_loop.c: Update. | |
2164 | * gnulib/import/fpucw.h: Update. | |
2165 | * gnulib/import/frexp.c: Update. | |
2166 | * gnulib/import/frexpl.c: Update. | |
2167 | * gnulib/import/fstat.c: Update. | |
2168 | * gnulib/import/fstatat.c: Update. | |
2169 | * gnulib/import/getcwd-lgpl.c: Update. | |
2170 | * gnulib/import/getcwd.c: Update. | |
2171 | * gnulib/import/getdtablesize.c: Update. | |
2172 | * gnulib/import/getlogin_r.c: Update. | |
2173 | * gnulib/import/getprogname.c: Update. | |
2174 | * gnulib/import/getprogname.h: Update. | |
2175 | * gnulib/import/gettext.h: Update. | |
2176 | * gnulib/import/gettimeofday.c: Update. | |
2177 | * gnulib/import/glob-libc.h: Update. | |
2178 | * gnulib/import/glob.c: Update. | |
2179 | * gnulib/import/glob.in.h: Update. | |
2180 | * gnulib/import/glob_internal.h: Update. | |
2181 | * gnulib/import/glob_pattern_p.c: Update. | |
2182 | * gnulib/import/globfree.c: Update. | |
2183 | * gnulib/import/hard-locale.c: Update. | |
2184 | * gnulib/import/hard-locale.h: Update. | |
2185 | * gnulib/import/intprops.h: Update. | |
2186 | * gnulib/import/inttypes.in.h: Update. | |
2187 | * gnulib/import/isnan.c: Update. | |
2188 | * gnulib/import/isnand-nolibm.h: Update. | |
2189 | * gnulib/import/isnand.c: Update. | |
2190 | * gnulib/import/isnanl-nolibm.h: Update. | |
2191 | * gnulib/import/isnanl.c: Update. | |
2192 | * gnulib/import/itold.c: Update. | |
2193 | * gnulib/import/libc-config.h: Update. | |
2194 | * gnulib/import/limits.in.h: Update. | |
2195 | * gnulib/import/localcharset.c: Update. | |
2196 | * gnulib/import/localcharset.h: Update. | |
2197 | * gnulib/import/localtime-buffer.c: Update. | |
2198 | * gnulib/import/localtime-buffer.h: Update. | |
2199 | * gnulib/import/lstat.c: Update. | |
2200 | * gnulib/import/m4/00gnulib.m4: Update. | |
2201 | * gnulib/import/m4/__inline.m4: Update. | |
2202 | * gnulib/import/m4/absolute-header.m4: Update. | |
2203 | * gnulib/import/m4/alloca.m4: Update. | |
2204 | * gnulib/import/m4/builtin-expect.m4: Update. | |
2205 | * gnulib/import/m4/canonicalize.m4: Update. | |
2206 | * gnulib/import/m4/chdir-long.m4: Update. | |
2207 | * gnulib/import/m4/close.m4: Update. | |
2208 | * gnulib/import/m4/closedir.m4: Update. | |
2209 | * gnulib/import/m4/configmake.m4: Update. | |
2210 | * gnulib/import/m4/d-ino.m4: Update. | |
2211 | * gnulib/import/m4/d-type.m4: Update. | |
2212 | * gnulib/import/m4/dirent_h.m4: Update. | |
2213 | * gnulib/import/m4/dirfd.m4: Update. | |
2214 | * gnulib/import/m4/dirname.m4: Update. | |
2215 | * gnulib/import/m4/double-slash-root.m4: Update. | |
2216 | * gnulib/import/m4/dup.m4: Update. | |
2217 | * gnulib/import/m4/dup2.m4: Update. | |
2218 | * gnulib/import/m4/eealloc.m4: Update. | |
2219 | * gnulib/import/m4/environ.m4: Update. | |
2220 | * gnulib/import/m4/errno_h.m4: Update. | |
2221 | * gnulib/import/m4/error.m4: Update. | |
2222 | * gnulib/import/m4/exponentd.m4: Update. | |
2223 | * gnulib/import/m4/exponentl.m4: Update. | |
2224 | * gnulib/import/m4/extensions.m4: Update. | |
2225 | * gnulib/import/m4/extern-inline.m4: Update. | |
2226 | * gnulib/import/m4/fchdir.m4: Update. | |
2227 | * gnulib/import/m4/fcntl-o.m4: Update. | |
2228 | * gnulib/import/m4/fcntl.m4: Update. | |
2229 | * gnulib/import/m4/fcntl_h.m4: Update. | |
2230 | * gnulib/import/m4/fdopendir.m4: Update. | |
2231 | * gnulib/import/m4/filenamecat.m4: Update. | |
2232 | * gnulib/import/m4/flexmember.m4: Update. | |
2233 | * gnulib/import/m4/float_h.m4: Update. | |
2234 | * gnulib/import/m4/fnmatch.m4: Update. | |
2235 | * gnulib/import/m4/fnmatch_h.m4: Update. | |
2236 | * gnulib/import/m4/fpieee.m4: Update. | |
2237 | * gnulib/import/m4/frexp.m4: Update. | |
2238 | * gnulib/import/m4/frexpl.m4: Update. | |
2239 | * gnulib/import/m4/fstat.m4: Update. | |
2240 | * gnulib/import/m4/fstatat.m4: Update. | |
2241 | * gnulib/import/m4/getcwd-abort-bug.m4: Update. | |
2242 | * gnulib/import/m4/getcwd-path-max.m4: Update. | |
2243 | * gnulib/import/m4/getcwd.m4: Update. | |
2244 | * gnulib/import/m4/getdtablesize.m4: Update. | |
2245 | * gnulib/import/m4/getlogin.m4: Update. | |
2246 | * gnulib/import/m4/getlogin_r.m4: Update. | |
2247 | * gnulib/import/m4/getpagesize.m4: Update. | |
2248 | * gnulib/import/m4/getprogname.m4: Update. | |
2249 | * gnulib/import/m4/gettimeofday.m4: Update. | |
2250 | * gnulib/import/m4/glibc21.m4: Update. | |
2251 | * gnulib/import/m4/glob.m4: Update. | |
2252 | * gnulib/import/m4/glob_h.m4: Update. | |
2253 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
2254 | * gnulib/import/m4/gnulib-common.m4: Update. | |
2255 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
2256 | * gnulib/import/m4/gnulib-tool.m4: Update. | |
2257 | * gnulib/import/m4/hard-locale.m4: Update. | |
2258 | * gnulib/import/m4/include_next.m4: Update. | |
2259 | * gnulib/import/m4/inttypes-pri.m4: Update. | |
2260 | * gnulib/import/m4/inttypes.m4: Update. | |
2261 | * gnulib/import/m4/isnand.m4: Update. | |
2262 | * gnulib/import/m4/isnanl.m4: Update. | |
2263 | * gnulib/import/m4/largefile.m4: Update. | |
2264 | * gnulib/import/m4/limits-h.m4: Update. | |
2265 | * gnulib/import/m4/localcharset.m4: Update. | |
2266 | * gnulib/import/m4/locale-fr.m4: Update. | |
2267 | * gnulib/import/m4/locale-ja.m4: Update. | |
2268 | * gnulib/import/m4/locale-zh.m4: Update. | |
2269 | * gnulib/import/m4/localtime-buffer.m4: Update. | |
2270 | * gnulib/import/m4/longlong.m4: Update. | |
2271 | * gnulib/import/m4/lstat.m4: Update. | |
2272 | * gnulib/import/m4/malloc.m4: Update. | |
2273 | * gnulib/import/m4/malloca.m4: Update. | |
2274 | * gnulib/import/m4/math_h.m4: Update. | |
2275 | * gnulib/import/m4/mbrtowc.m4: Update. | |
2276 | * gnulib/import/m4/mbsinit.m4: Update. | |
2277 | * gnulib/import/m4/mbsrtowcs.m4: Update. | |
2278 | * gnulib/import/m4/mbstate_t.m4: Update. | |
2279 | * gnulib/import/m4/memchr.m4: Update. | |
2280 | * gnulib/import/m4/memmem.m4: Update. | |
2281 | * gnulib/import/m4/mempcpy.m4: Update. | |
2282 | * gnulib/import/m4/memrchr.m4: Update. | |
2283 | * gnulib/import/m4/mkdir.m4: Update. | |
2284 | * gnulib/import/m4/mkstemp.m4: Update. | |
2285 | * gnulib/import/m4/mmap-anon.m4: Update. | |
2286 | * gnulib/import/m4/mode_t.m4: Update. | |
2287 | * gnulib/import/m4/msvc-inval.m4: Update. | |
2288 | * gnulib/import/m4/msvc-nothrow.m4: Update. | |
2289 | * gnulib/import/m4/multiarch.m4: Update. | |
2290 | * gnulib/import/m4/nocrash.m4: Update. | |
2291 | * gnulib/import/m4/off_t.m4: Update. | |
2292 | * gnulib/import/m4/onceonly.m4: Update. | |
2293 | * gnulib/import/m4/open-cloexec.m4: Update. | |
2294 | * gnulib/import/m4/open.m4: Update. | |
2295 | * gnulib/import/m4/openat.m4: Update. | |
2296 | * gnulib/import/m4/opendir.m4: Update. | |
2297 | * gnulib/import/m4/pathmax.m4: Update. | |
2298 | * gnulib/import/m4/rawmemchr.m4: Update. | |
2299 | * gnulib/import/m4/readdir.m4: Update. | |
2300 | * gnulib/import/m4/readlink.m4: Update. | |
2301 | * gnulib/import/m4/realloc.m4: Update. | |
2302 | * gnulib/import/m4/rename.m4: Update. | |
2303 | * gnulib/import/m4/rewinddir.m4: Update. | |
2304 | * gnulib/import/m4/rmdir.m4: Update. | |
2305 | * gnulib/import/m4/save-cwd.m4: Update. | |
2306 | * gnulib/import/m4/secure_getenv.m4: Update. | |
2307 | * gnulib/import/m4/setenv.m4: Update. | |
2308 | * gnulib/import/m4/signal_h.m4: Update. | |
2309 | * gnulib/import/m4/ssize_t.m4: Update. | |
2310 | * gnulib/import/m4/stat-time.m4: Update. | |
2311 | * gnulib/import/m4/stat.m4: Update. | |
2312 | * gnulib/import/m4/std-gnu11.m4: Update. | |
2313 | * gnulib/import/m4/stdbool.m4: Update. | |
2314 | * gnulib/import/m4/stddef_h.m4: Update. | |
2315 | * gnulib/import/m4/stdint.m4: Update. | |
2316 | * gnulib/import/m4/stdio_h.m4: Update. | |
2317 | * gnulib/import/m4/stdlib_h.m4: Update. | |
2318 | * gnulib/import/m4/strchrnul.m4: Update. | |
2319 | * gnulib/import/m4/strdup.m4: Update. | |
2320 | * gnulib/import/m4/strerror.m4: Update. | |
2321 | * gnulib/import/m4/string_h.m4: Update. | |
2322 | * gnulib/import/m4/strstr.m4: Update. | |
2323 | * gnulib/import/m4/strtok_r.m4: Update. | |
2324 | * gnulib/import/m4/sys_socket_h.m4: Update. | |
2325 | * gnulib/import/m4/sys_stat_h.m4: Update. | |
2326 | * gnulib/import/m4/sys_time_h.m4: Update. | |
2327 | * gnulib/import/m4/sys_types_h.m4: Update. | |
2328 | * gnulib/import/m4/tempname.m4: Update. | |
2329 | * gnulib/import/m4/time_h.m4: Update. | |
2330 | * gnulib/import/m4/unistd-safer.m4: Update. | |
2331 | * gnulib/import/m4/unistd_h.m4: Update. | |
2332 | * gnulib/import/m4/warn-on-use.m4: Update. | |
2333 | * gnulib/import/m4/wchar_h.m4: Update. | |
2334 | * gnulib/import/m4/wchar_t.m4: Update. | |
2335 | * gnulib/import/m4/wctype_h.m4: Update. | |
2336 | * gnulib/import/m4/wint_t.m4: Update. | |
2337 | * gnulib/import/malloc.c: Update. | |
2338 | * gnulib/import/malloc/scratch_buffer.h: Update. | |
2339 | * gnulib/import/malloc/scratch_buffer_grow.c: Update. | |
2340 | * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. | |
2341 | * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. | |
2342 | * gnulib/import/malloca.c: Update. | |
2343 | * gnulib/import/malloca.h: Update. | |
2344 | * gnulib/import/malloca.valgrind: Update. | |
2345 | * gnulib/import/math.in.h: Update. | |
2346 | * gnulib/import/mbrtowc.c: Update. | |
2347 | * gnulib/import/mbsinit.c: Update. | |
2348 | * gnulib/import/mbsrtowcs-impl.h: Update. | |
2349 | * gnulib/import/mbsrtowcs-state.c: Update. | |
2350 | * gnulib/import/mbsrtowcs.c: Update. | |
2351 | * gnulib/import/memchr.c: Update. | |
2352 | * gnulib/import/memmem.c: Update. | |
2353 | * gnulib/import/mempcpy.c: Update. | |
2354 | * gnulib/import/memrchr.c: Update. | |
2355 | * gnulib/import/mkdir.c: Update. | |
2356 | * gnulib/import/mkstemp.c: Update. | |
2357 | * gnulib/import/msvc-inval.c: Update. | |
2358 | * gnulib/import/msvc-inval.h: Update. | |
2359 | * gnulib/import/msvc-nothrow.c: Update. | |
2360 | * gnulib/import/msvc-nothrow.h: Update. | |
2361 | * gnulib/import/open.c: Update. | |
2362 | * gnulib/import/openat-die.c: Update. | |
2363 | * gnulib/import/openat-priv.h: Update. | |
2364 | * gnulib/import/openat-proc.c: Update. | |
2365 | * gnulib/import/openat.c: Update. | |
2366 | * gnulib/import/openat.h: Update. | |
2367 | * gnulib/import/opendir.c: Update. | |
2368 | * gnulib/import/pathmax.h: Update. | |
2369 | * gnulib/import/pipe-safer.c: Update. | |
2370 | * gnulib/import/rawmemchr.c: Update. | |
2371 | * gnulib/import/readdir.c: Update. | |
2372 | * gnulib/import/readlink.c: Update. | |
2373 | * gnulib/import/realloc.c: Update. | |
2374 | * gnulib/import/ref-add.sin: Update. | |
2375 | * gnulib/import/ref-del.sin: Update. | |
2376 | * gnulib/import/rename.c: Update. | |
2377 | * gnulib/import/rewinddir.c: Update. | |
2378 | * gnulib/import/rmdir.c: Update. | |
2379 | * gnulib/import/same-inode.h: Update. | |
2380 | * gnulib/import/save-cwd.c: Update. | |
2381 | * gnulib/import/save-cwd.h: Update. | |
2382 | * gnulib/import/scratch_buffer.h: Update. | |
2383 | * gnulib/import/secure_getenv.c: Update. | |
2384 | * gnulib/import/setenv.c: Update. | |
2385 | * gnulib/import/signal.in.h: Update. | |
2386 | * gnulib/import/stat-time.c: Update. | |
2387 | * gnulib/import/stat-time.h: Update. | |
2388 | * gnulib/import/stat-w32.c: Update. | |
2389 | * gnulib/import/stat-w32.h: Update. | |
2390 | * gnulib/import/stat.c: Update. | |
2391 | * gnulib/import/stdbool.in.h: Update. | |
2392 | * gnulib/import/stddef.in.h: Update. | |
2393 | * gnulib/import/stdint.in.h: Update. | |
2394 | * gnulib/import/stdio.in.h: Update. | |
2395 | * gnulib/import/stdlib.in.h: Update. | |
2396 | * gnulib/import/str-two-way.h: Update. | |
2397 | * gnulib/import/strchrnul.c: Update. | |
2398 | * gnulib/import/strdup.c: Update. | |
2399 | * gnulib/import/streq.h: Update. | |
2400 | * gnulib/import/strerror-override.c: Update. | |
2401 | * gnulib/import/strerror-override.h: Update. | |
2402 | * gnulib/import/strerror.c: Update. | |
2403 | * gnulib/import/string.in.h: Update. | |
2404 | * gnulib/import/stripslash.c: Update. | |
2405 | * gnulib/import/strnlen1.c: Update. | |
2406 | * gnulib/import/strnlen1.h: Update. | |
2407 | * gnulib/import/strstr.c: Update. | |
2408 | * gnulib/import/strtok_r.c: Update. | |
2409 | * gnulib/import/sys_stat.in.h: Update. | |
2410 | * gnulib/import/sys_time.in.h: Update. | |
2411 | * gnulib/import/sys_types.in.h: Update. | |
2412 | * gnulib/import/tempname.c: Update. | |
2413 | * gnulib/import/tempname.h: Update. | |
2414 | * gnulib/import/time.in.h: Update. | |
2415 | * gnulib/import/unistd--.h: Update. | |
2416 | * gnulib/import/unistd-safer.h: Update. | |
2417 | * gnulib/import/unistd.in.h: Update. | |
2418 | * gnulib/import/unsetenv.c: Update. | |
2419 | * gnulib/import/verify.h: Update. | |
2420 | * gnulib/import/extra/snippet/warn-on-use.h: Update. | |
2421 | * gnulib/import/wchar.in.h: Update. | |
2422 | * gnulib/import/wctype.in.h: Update. | |
2423 | * gnulib/import/xalloc-oversized.h: Update. | |
2424 | * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to | |
2425 | "53e2c179f26a890fa6685af4b6c1397ee370433b". | |
2426 | ||
b0f492b9 GB |
2427 | 2018-08-16 Gary Benson <gbenson@redhat.com> |
2428 | ||
2429 | PR gdb/13000: | |
2430 | * gdb/main.c (captured_main_1): Exit with nonzero status | |
2431 | in batch mode if the last command to be executed failed. | |
2432 | * NEWS: Mention the above. | |
2433 | ||
2362e7f7 SM |
2434 | 2018-08-29 Simon Marchi <simon.marchi@ericsson.com> |
2435 | ||
2436 | * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at | |
2437 | end of warning message. | |
2438 | ||
4f4aedeb AH |
2439 | 2018-08-29 Alan Hayward <alan.hayward@arm.com> |
2440 | ||
2441 | PR gdb/22943: | |
2442 | * aarch64-tdep.c (is_hfa_or_hva): Remove function. | |
2443 | (aarch64_extract_return_value): Use | |
2444 | aapcs_is_vfp_call_or_return_candidate. | |
2445 | (aarch64_return_in_memory): Likewise. | |
2446 | (aarch64_store_return_value): Likewise. | |
2447 | ||
0e745c60 AH |
2448 | 2018-08-29 Alan Hayward <alan.hayward@arm.com> |
2449 | ||
2450 | * aarch64-tdep.c | |
2451 | (aapcs_is_vfp_call_or_return_candidate): Make static | |
2452 | (pass_in_v_or_stack): Remove function. | |
2453 | (pass_in_v_vfp_candidate): New function. | |
2454 | (aarch64_push_dummy_call): Check for float register candidates. | |
2455 | ||
ea92689a AH |
2456 | 2018-08-29 Alan Hayward <alan.hayward@arm.com> |
2457 | ||
2458 | * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro. | |
2459 | (aapcs_is_vfp_call_or_return_candidate_1): New function. | |
2460 | (aapcs_is_vfp_call_or_return_candidate): Likewise. | |
2461 | ||
ad202fcc SM |
2462 | 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca> |
2463 | ||
2464 | PR build/23399 | |
2465 | * common/agent.c (IPA_SYM_STRUCT_NAME): Define. | |
2466 | (struct ipa_sym_addresses): Rename to... | |
2467 | (struct ipa_sym_addresses_common): ... this. | |
2468 | * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME. | |
2469 | ||
5fe3f3e4 TT |
2470 | 2018-08-28 Tom Tromey <tom@tromey.com> |
2471 | ||
2472 | * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
2473 | (token_fifo): Now a std::vector. | |
2474 | (yylex, c_parse): Update. | |
2475 | * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
2476 | (token_fifo): Now a std::vector. | |
2477 | (yylex, d_parse): Update. | |
2478 | * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
2479 | (token_fifo): Now a std::vector. | |
2480 | (yylex, go_parse): Update. | |
2481 | ||
858d8004 SM |
2482 | 2018-08-28 Simon Marchi <simon.marchi@ericsson.com> |
2483 | ||
2484 | * parser-defs.h (struct type_stack) <elements>: Change type to | |
2485 | std::vector<union type_stack_elt>. | |
2486 | <depth, size>: Remove. | |
2487 | * parse.c (parse_exp_in_context_1): Adjust. | |
2488 | (type_stack_reserve): Remove. | |
2489 | (check_type_stack_depth): Remove. | |
2490 | (insert_into_type_stack): Adjust to std::vector. | |
2491 | (insert_type): Likewise. | |
2492 | (push_type): Likewise. | |
2493 | (push_type_int): Likewise. | |
2494 | (insert_type_address_space): Likewise. | |
2495 | (pop_type): Likewise. | |
2496 | (pop_type_int): Likewise. | |
2497 | (pop_typelist): Likewise. | |
2498 | (pop_type_stack): Likewise. | |
2499 | (append_type_stack): Likewise. | |
2500 | (push_type_stack): Likewise. | |
2501 | (get_type_stack): Likewise. | |
2502 | (type_stack_cleanup): Likewise. | |
2503 | (push_typelist): Likewise. | |
2504 | (follow_types): Likewise. | |
2505 | (_initialize_parse): Likewise. | |
2506 | ||
416a69af HAQ |
2507 | 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com> |
2508 | ||
2509 | * NEWS: Mention csky target. | |
2510 | ||
9d24df82 HAQ |
2511 | 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com> |
2512 | Hafiz Abid Qadeer <abidh@codesourcery.com> | |
2513 | Don Breazeal <donb@codesourcery.com> | |
2514 | ||
2515 | * csky-linux-tdep.c: New file. | |
2516 | * csky-tdep.c: Likewise. | |
2517 | * csky-tdep.h: Likewise. | |
2518 | * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and | |
2519 | csky-tdep.o. | |
2520 | (HFILES_NO_SRCDIR): Add csky-tdep.h. | |
2521 | (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c | |
2522 | * configure.tgt: Add csky support. | |
2523 | ||
3bf9c013 JV |
2524 | 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz> |
2525 | ||
2526 | * python/py-framefilter.c (py_print_frame): Print frame architecture | |
2527 | when printing on an MI output. | |
2528 | ||
d3d8724a TT |
2529 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2530 | ||
2531 | PR build/23087: | |
2532 | * configure: Rebuild. | |
2533 | * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing. | |
2534 | ||
1885053b TT |
2535 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2536 | ||
2537 | * aarch64-linux-tdep.c | |
2538 | (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add | |
2539 | casts to int. | |
2540 | ||
8406672e TT |
2541 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2542 | ||
2543 | * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to | |
2544 | unsigned. | |
2545 | (ppc64_standard_linkage1, ppc64_standard_linkage2) | |
2546 | (ppc64_standard_linkage3, ppc64_standard_linkage4) | |
2547 | (ppc64_standard_linkage5, ppc64_standard_linkage6) | |
2548 | (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to | |
2549 | unsigned. | |
2550 | ||
ec40cf90 TT |
2551 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2552 | ||
2553 | * xtensa-tdep.h (XTREG_END): Add cast to unsigned. | |
2554 | (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise. | |
2555 | ||
7bc02706 TT |
2556 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2557 | ||
2558 | * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine. | |
2559 | * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use | |
2560 | ULONGEST_MAX. | |
2561 | * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use | |
2562 | ULONGEST_MAX. | |
2563 | * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use | |
2564 | ULONGEST_MAX. | |
2565 | * sparc-linux-tdep.c (sparc32_linux_sigframe) | |
2566 | (sparc32_linux_rt_sigframe): Use ULONGEST_MAX. | |
2567 | * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use | |
2568 | ULONGEST_MAX. | |
2569 | * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame) | |
2570 | (ppc64_linux_sigaction_tramp_frame) | |
2571 | (ppc32_linux_sighandler_tramp_frame) | |
2572 | (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX. | |
2573 | * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame) | |
2574 | (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX. | |
2575 | * mn10300-linux-tdep.c (am33_linux_sigframe) | |
2576 | (am33_linux_rt_sigframe): Use ULONGEST_MAX. | |
2577 | * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX. | |
2578 | * mips-linux-tdep.c (mips_linux_o32_sigframe) | |
2579 | (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe) | |
2580 | (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe) | |
2581 | (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe) | |
2582 | (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX. | |
2583 | * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe) | |
2584 | (mips64_fbsd_sigframe): Use ULONGEST_MAX. | |
2585 | * microblaze-linux-tdep.c | |
2586 | (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX. | |
2587 | * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2) | |
2588 | (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31) | |
2589 | (i386nbsd_sigtramp_si4): Use ULONGEST_MAX. | |
2590 | * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX. | |
2591 | * common/common-types.h (ULONGEST_MAX): New define. | |
2592 | (CORE_ADDR_MAX): Fix formatting. | |
2593 | * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX. | |
2594 | * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX. | |
2595 | * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame) | |
2596 | (arm_linux_rt_sigreturn_tramp_frame) | |
2597 | (arm_eabi_linux_sigreturn_tramp_frame) | |
2598 | (arm_eabi_linux_rt_sigreturn_tramp_frame) | |
2599 | (thumb2_eabi_linux_sigreturn_tramp_frame) | |
2600 | (thumb2_eabi_linux_rt_sigreturn_tramp_frame) | |
2601 | (arm_linux_restart_syscall_tramp_frame) | |
2602 | (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX. | |
2603 | * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX. | |
2604 | * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use | |
2605 | ULONGEST_MAX. | |
2606 | * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX. | |
2607 | ||
70ab8ccd TT |
2608 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2609 | ||
2610 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use | |
2611 | CORE_ADDR_MAX. | |
2612 | * mips-tdep.c (mips_deal_with_atomic_sequence) | |
2613 | (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX. | |
2614 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw) | |
2615 | (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX. | |
2616 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use | |
2617 | CORE_ADDR_MAX. | |
2618 | * aarch64-tdep.c (aarch64_software_single_step): Use | |
2619 | CORE_ADDR_MAX. | |
2620 | ||
896a7aa6 TT |
2621 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2622 | ||
2623 | * linespec.c (complete_linespec_component): Add cast to "char". | |
2624 | * completer.c (completion_tracker::build_completion_result): Add | |
2625 | cast to "char". | |
2626 | ||
dd33d41d SM |
2627 | 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> |
2628 | ||
2629 | * solist.h (struct solist, struct target_so_ops): Fix | |
2630 | indentation. | |
2631 | ||
c645cda4 SM |
2632 | 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> |
2633 | ||
2634 | * ada-tasks.c (ada_task_info_s): Remove typedef. | |
2635 | (DEF_VEC_O(ada_task_info_s)): Remove. | |
2636 | (struct ada_tasks_inferior_data): Initialize fields. | |
2637 | <task_list>: Make an std::vector. | |
2638 | (get_ada_tasks_inferior_data): Allocate with new. | |
2639 | (ada_get_task_number): Adjust. | |
2640 | (get_task_number_from_id): Likewise. | |
2641 | (valid_task_id): Likewise. | |
2642 | (ada_get_task_info_from_ptid): Likewise. | |
2643 | (iterate_over_live_ada_tasks): Likewise. | |
2644 | (add_ada_task): Likewise. | |
2645 | (read_known_tasks): Likewise. | |
2646 | (ada_build_task_list): Likewise. | |
2647 | (print_ada_task_info): Likewise. | |
2648 | (info_task): Likewise. | |
2649 | (task_command_1): Likewise. | |
2650 | ||
39e7af3e SM |
2651 | 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> |
2652 | ||
2653 | * ada-lang.c (add_angle_brackets): Return std::string. | |
2654 | ||
bbbbbcee SM |
2655 | 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca> |
2656 | ||
2657 | * python/py-threadevent.c (py_get_event_thread): Initialize | |
2658 | pythread. | |
2659 | ||
d98fc15b PA |
2660 | 2018-08-24 Pedro Alves <palves@redhat.com> |
2661 | ||
2662 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
2663 | copy-initialization. | |
2664 | * python/py-continueevent.c (emit_continue_event): Use | |
2665 | copy-initialization. | |
2666 | * python/py-exitedevent.c (create_exited_event_object): Return a | |
2667 | gdbpy_ref<>. | |
2668 | (emit_exited_event): Use copy-initialization. | |
2669 | * python/py-inferior.c (python_new_inferior) | |
2670 | (python_inferior_deleted, add_thread_object): Use | |
2671 | copy-initialization. | |
2672 | * python/py-infevents.c (create_inferior_call_event_object) | |
2673 | (create_register_changed_event_object) | |
2674 | (create_memory_changed_event_object): Return a gdbpy_ref<>. | |
2675 | (emit_inferior_call_event, emit_memory_changed_event) | |
2676 | (emit_register_changed_event): Use copy-initialization. | |
2677 | * python/py-newobjfileevent.c (create_new_objfile_event_object): | |
2678 | Return a gdbpy_ref<>. | |
2679 | (emit_new_objfile_event): Use copy-initialization. | |
2680 | (create_clear_objfiles_event_object): Return a gdbpy_ref<>. | |
2681 | (emit_clear_objfiles_event): Use copy-initialization. | |
2682 | * python/py-signalevent.c (create_signal_event_object): Use | |
2683 | copy-initialization. | |
2684 | * python/py-threadevent.c (create_thread_event_object): Use | |
2685 | copy-initialization. | |
2686 | ||
da3c8738 PA |
2687 | 2018-08-24 Pedro Alves <palves@redhat.com> |
2688 | Simon Marchi <simon.marchi@ericsson.com> | |
2689 | ||
2690 | PR gdb/23379 | |
2691 | * python/py-continueevent.c: Include "gdbthread.h". | |
2692 | (create_continue_event_object): Add intro comment. Add 'ptid' | |
2693 | parameter. Use it to find thread to pass to | |
2694 | create_thread_event_object. | |
2695 | (emit_continue_event): Pass PTID down to | |
2696 | create_continue_event_object. | |
2697 | * python/py-event.h (py_get_event_thread): Declare. | |
2698 | (create_thread_event_object): Remove default from 'thread' | |
2699 | parameter. | |
2700 | * python/py-stopevent.c (create_stop_event_object): Use | |
2701 | py_get_event_thread. | |
2702 | * python/py-threadevent.c (get_event_thread): Rename to ... | |
2703 | (py_get_event_thread): ... this, make extern, add 'ptid' parameter | |
2704 | and use it to find the thread. | |
2705 | (create_thread_event_object): Assert that THREAD isn't null. | |
2706 | Don't find the event thread here. | |
2707 | ||
26457a9c KB |
2708 | 2018-08-23 Kevin Buettner <kevinb@redhat.com> |
2709 | ||
2710 | * block.h (blockrange, blockranges): New struct declarations. | |
2711 | (struct block): Add new field named `ranges'. | |
2712 | (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P) | |
2713 | (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New | |
2714 | macros for accessing ranges in struct block. | |
2715 | (make_blockranges): New declaration. | |
2716 | block.c (make_blockranges): New function. | |
2d5f09ec KB |
2717 | * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES |
2718 | for block. | |
fc811edd KB |
2719 | * symtab.h (find_pc_partial_function): Add new parameter `block'. |
2720 | * blockframe.c (cache_pc_function_block): New static global. | |
2721 | (clear_pc_function_cache): Clear cache_pc_function_block. | |
2722 | (find_pc_partial_function): Move comment to symtab.h. Add | |
2723 | support for non-contiguous blocks. | |
e9480230 KB |
2724 | * cli/cli-cmds.c (block.h): Include. |
2725 | (print_disassembly): Handle printing of non-contiguous blocks. | |
2726 | (disassemble_current_function): Likewise. | |
2727 | (disassemble_command): Likewise. | |
26457a9c | 2728 | |
2b1ffcfd KB |
2729 | * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of |
2730 | BLOCK_START. | |
2731 | * blockframe.c (get_pc_function_start): Likewise. | |
2732 | * compile/compile-c-symbols.c (convert_one_symbol): Likewise. | |
2733 | (gcc_symbol_address): Likewise. | |
2734 | * compile/compile-object-run.c (compile_object_run): Likewise. | |
2735 | * compile/compile.c (get_expr_block_and_pc): Likewise. | |
2736 | * dwarf2loc.c (dwarf2_find_location_expression): Likewise. | |
2737 | (func_addr_to_tail_call_list): Likewise. | |
2738 | * findvar.c (default_read_var_value): Likewise. | |
2739 | * inline-frame.c (inline_frame_this_id): Likewise. | |
2740 | (skip-inline_frames): Likewise. | |
2741 | * infcmd.c (until_next_command): Likewise. | |
2742 | * linespec.c (convert_linespec_to_sals): Likewise. | |
2743 | * parse.c (parse_exp_in_context_1): Likewise. | |
2744 | * printcmd.c (build_address_symbolic): likewise. | |
2745 | (info_address_command): Likewise. | |
2746 | symtab.c (find_function_start_sal): Likewise. | |
2747 | (skip_prologue_sal): Likewise. | |
2748 | (find_function_alias_target): Likewise. | |
2749 | (find_gnu_ifunc): Likewise. | |
2750 | * stack.c (find_frame_funname): Likewise. | |
2751 | * symtab.c (fixup_symbol_section): Likewise. | |
2752 | (find_function_start_sal): Likewise. | |
2753 | (skip_prologue_sal): Likewsie. | |
2754 | (find_function_alias_target): Likewise. | |
2755 | (find_gnu_ifunc): Likewise. | |
2756 | * tracepoint.c (info_scope_command): Likewise. | |
2757 | * value.c (value_fn_field): Likewise. | |
2758 | ||
9644dc3a KB |
2759 | * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc |
2760 | in place of find_pc_partial_function. | |
2761 | * blockframe.c (find_function_entry_range_from_pc): New function. | |
2762 | * symtab.h (find_function_entry_range_from_pc): Declare and document. | |
2763 | * objfiles.c (objfile_relocate1): Relocate start and end addresses | |
2764 | for each range in a block. | |
2765 | ||
2766 | ||
12a0d0f6 XR |
2767 | 2018-08-23 Xavier Roirand <roirand@adacore.com> |
2768 | ||
2769 | * machoread.c (macho_symfile_read_all_oso): Remove uneeded | |
2770 | incrementation. | |
2771 | ||
d1012b8e SM |
2772 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
2773 | ||
2774 | * solib-svr4.c (read_program_headers_from_bfd): Return | |
2775 | gdb::optional<gdb::byte_vector>. | |
2776 | (svr4_exec_displacement): Adjust. | |
2777 | ||
17658d46 SM |
2778 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
2779 | ||
2780 | * solib-svr4.c (read_program_header): Return | |
2781 | gdb::optional<gdb::byte_vector>, remove p_sect_size param. | |
2782 | (find_program_interpreter): Return | |
2783 | gdb::optional<gdb::byte_vector>. | |
2784 | (scan_dyntag_auxv): Adjust. | |
2785 | (enable_break): Adjust. | |
2786 | (svr4_exec_displacement): Adjust. | |
2787 | ||
ae739fe7 SM |
2788 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
2789 | ||
2790 | * inf-child.h (inf_child_target) <terminal_save_inferior>: New. | |
2791 | * inf-child.c (inf_child_target::terminal_save_inferior): New. | |
2792 | ||
467dc1e2 SM |
2793 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
2794 | ||
2795 | * guile/scm-string.c (gdbscm_scm_from_printf): Use | |
2796 | string_vprintf. | |
2797 | * guile/scm-utils.c (gdbscm_printf): Likewise. | |
2798 | * serial.c (serial_printf): Likewise. | |
2799 | * xml-support.c (gdb_xml_parser::vdebug): Likewise. | |
2800 | ||
6d52907e JV |
2801 | 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz> |
2802 | ||
2803 | * stack.c (print_frame): Print frame architecture when printing on | |
2804 | an MI output. | |
2805 | * NEWS: Mention new "arch" attribute in frame output. | |
2806 | ||
9758a8f8 AH |
2807 | 2018-08-21 Alan Hayward <alan.hayward@arm.com> |
2808 | ||
2809 | * arch/aarch64.h (aarch64_regnum): Update comment. | |
2810 | ||
1461bdac AH |
2811 | 2018-08-21 Alan Hayward <alan.hayward@arm.com> |
2812 | ||
2813 | * NEWS: Add SVE to 8.2 section. | |
2814 | ||
4895f384 PA |
2815 | 2018-08-21 Pedro Alves <palves@redhat.com> |
2816 | ||
2817 | * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored | |
2818 | out from gdbscm_parse_function_args. | |
2819 | (gdbscm_parse_function_args): Rework to use gdbscm_wrap and | |
2820 | gdbscm_parse_function_args_1. | |
2821 | ||
a4497d2f SM |
2822 | 2018-08-21 Simon Marchi <simon.marchi@ericsson.com> |
2823 | ||
2824 | PR gdb/17816 | |
2825 | * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary | |
2826 | operator. | |
2827 | ||
c44deb73 SM |
2828 | 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca> |
2829 | ||
2830 | * solib-svr4.c (svr4_exec_displacement): Fix formatting. | |
2831 | ||
be2d111a MS |
2832 | 2018-08-19 Michael Spang <spang@google.com> |
2833 | ||
2834 | PR gdb/11786 | |
2835 | * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields | |
2836 | for PT_TLS segments. | |
2837 | ||
a6b786da KB |
2838 | 2018-08-18 Kevin Buettner <kevinb@redhat.com> |
2839 | ||
2840 | * dwarf2expr.h (struct dwarf_expr_context): Add virtual method | |
2841 | dwarf_variable_value. | |
2842 | * dwarf2-frame.c (class dwarf_expr_executor): | |
2843 | Add override for dwarf_variable_value. | |
2844 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise. | |
2845 | (class symbol_needs_eval_context): Likewise. | |
2846 | (indirect_synthetic_pointer): Add forward declaration. | |
2847 | (sect_variable_value): New function. | |
2848 | (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value. | |
2849 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case | |
2850 | for DW_OP_GNU_variable_value. | |
2851 | ||
89fbedf3 TT |
2852 | 2018-08-16 Tom Tromey <tom@tromey.com> |
2853 | ||
2854 | * top.c (read_command_file): Update. | |
2855 | (command_line_input): Remove "repeat" argument. | |
2856 | * ada-lang.c (get_selections): Update. | |
2857 | * linespec.c (decode_line_2): Update. | |
2858 | * defs.h (command_line_input): Remove argument. | |
2859 | * cli/cli-script.c (read_next_line): Update. | |
2860 | * python/py-gdb-readline.c: Update. | |
2861 | ||
12582533 TT |
2862 | 2018-08-17 Tom Tromey <tom@tromey.com> |
2863 | ||
2864 | * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to | |
2865 | command_line_input. | |
2866 | ||
49514353 TT |
2867 | 2018-08-15 Tom Tromey <tom@tromey.com> |
2868 | ||
2869 | * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest. | |
2870 | ||
26fb3983 JV |
2871 | 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz> |
2872 | ||
2873 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option. | |
2874 | If used, use find_pc_partial_function to find address range | |
2875 | to disassemble. | |
2876 | * mi/mi-main.c (mi_cmd_list_features): Report | |
2877 | "data-disassemble-a-option" feature. | |
2878 | * NEWS: Mention new -data-disassemble option -a. | |
2879 | ||
a97b53dd TT |
2880 | 2018-08-13 Tom Tromey <tom@tromey.com> |
2881 | ||
2882 | * common/common-defs.h (_FORTIFY_SOURCE): Define. | |
2883 | ||
0c76e06d AH |
2884 | 2018-08-13 Alan Hayward <alan.hayward@arm.com> |
2885 | ||
2886 | * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function. | |
2887 | (aarch64_linux_collect_sve_regset): Likewise. | |
2888 | (aarch64_linux_iterate_over_regset_sections): Check for SVE. | |
2889 | * regcache.h (regcache_map_entry_size): New function. | |
2890 | ||
b7fd65b9 AH |
2891 | 2018-08-13 Alan Hayward <alan.hayward@arm.com> |
2892 | ||
2893 | * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define. | |
2894 | (SVE_HEADER_MAX_SIZE_LENGTH): Likewise. | |
2895 | (SVE_HEADER_VL_LENGTH): Likewise. | |
2896 | (SVE_HEADER_MAX_VL_LENGTH): Likewise. | |
2897 | (SVE_HEADER_FLAGS_LENGTH): Likewise. | |
2898 | (SVE_HEADER_RESERVED_LENGTH): Likewise. | |
2899 | (SVE_HEADER_SIZE_OFFSET): Likewise. | |
2900 | (SVE_HEADER_MAX_SIZE_OFFSET): Likewise. | |
2901 | (SVE_HEADER_VL_OFFSET): Likewise. | |
2902 | (SVE_HEADER_MAX_VL_OFFSET): Likewise. | |
2903 | (SVE_HEADER_FLAGS_OFFSET): Likewise. | |
2904 | (SVE_HEADER_RESERVED_OFFSET): Likewise. | |
2905 | (SVE_HEADER_SIZE): Likewise. | |
2906 | (aarch64_linux_core_read_vq): Add function. | |
2907 | (aarch64_linux_core_read_description): Check for SVE section. | |
2908 | ||
a616bb94 AH |
2909 | 2018-08-13 Alan Hayward <alan.hayward@arm.com> |
2910 | ||
2911 | * aarch64-fbsd-tdep.c | |
2912 | (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and | |
2913 | collect_size. | |
2914 | * aarch64-linux-tdep.c | |
2915 | (aarch64_linux_iterate_over_regset_sections): Likewise. | |
2916 | * alpha-linux-tdep.c | |
2917 | (alpha_linux_iterate_over_regset_sections): | |
2918 | * alpha-nbsd-tdep.c | |
2919 | (alphanbsd_iterate_over_regset_sections): Likewise. | |
2920 | * amd64-fbsd-tdep.c | |
2921 | (amd64fbsd_iterate_over_regset_sections): Likewise. | |
2922 | * amd64-linux-tdep.c | |
2923 | (amd64_linux_iterate_over_regset_sections): Likewise. | |
2924 | * arm-bsd-tdep.c | |
2925 | (armbsd_iterate_over_regset_sections): Likewise. | |
2926 | * arm-fbsd-tdep.c | |
2927 | (arm_fbsd_iterate_over_regset_sections): Likewise. | |
2928 | * arm-linux-tdep.c | |
2929 | (arm_linux_iterate_over_regset_sections): Likewise. | |
2930 | * corelow.c (get_core_registers_cb): Likewise. | |
2931 | (core_target::fetch_registers): Likewise. | |
2932 | * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise. | |
2933 | * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise. | |
2934 | * gdbarch.h (void): Regenerate. | |
2935 | * gdbarch.sh: Add supply_size and collect_size. | |
2936 | * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise. | |
2937 | * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise. | |
2938 | * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise. | |
2939 | * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise. | |
2940 | * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise. | |
2941 | * i386-tdep.c (i386_iterate_over_regset_sections): Likewise. | |
2942 | * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise. | |
2943 | * linux-tdep.c (linux_collect_regset_section_cb): Likewise. | |
2944 | * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise. | |
2945 | * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise. | |
2946 | * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise. | |
2947 | * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise. | |
2948 | * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise. | |
2949 | * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise. | |
2950 | * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise. | |
2951 | * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise. | |
2952 | * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise. | |
2953 | * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise. | |
2954 | * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise. | |
2955 | * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise. | |
2956 | * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise. | |
2957 | * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise. | |
2958 | * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise. | |
2959 | * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise. | |
2960 | * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise. | |
2961 | * sh-tdep.c (sh_iterate_over_regset_sections): Likewise. | |
2962 | * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise. | |
2963 | * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise. | |
2964 | * vax-tdep.c (vax_iterate_over_regset_sections): Likewise. | |
2965 | * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise. | |
2966 | ||
a9925d4f SM |
2967 | 2018-08-10 Simon Marchi <simon.marchi@ericsson.com> |
2968 | ||
2969 | * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf | |
2970 | with string_printf. | |
2971 | ||
ad3a68e9 KS |
2972 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2973 | ||
2974 | * compile/compile-c-support.c (add_code_header, add_code_footer): | |
2975 | Move into policy class. | |
2976 | (c_push_user_expression, pop_user_expression_nop) | |
2977 | (c_add_code_header, c_add_code_footer, c_add_input): New policy class. | |
2978 | (compile_program): New host class. | |
2979 | (c_compile_program): New typedef. | |
2980 | (c_compute_porgram): Use c_compile_program. | |
2981 | ||
0cfbf430 KS |
2982 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2983 | ||
2984 | * compile/compile-internal.h (compile_instance::~compile_instance): | |
2985 | Remove calls to htab_delete. | |
2986 | <m_type_map, m_symbol_err_map>: Switch type to htab_up. | |
2987 | * compile.c (compile_instance::compile_instance): Initialize | |
2988 | htab unique pointers. | |
2989 | (compile_instance::get_cached_type, compile_instance::insert_type) | |
2990 | (compile_instance::error_symbol_once): Update for unique_ptr. | |
2991 | ||
946d3d10 KS |
2992 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2993 | ||
2994 | * compile/compile-c-symbols.c (struct symbol_error) | |
2995 | (hash_symbol_error, eq_symbol_error, del_symbol_error) | |
2996 | (compile_instance::insert_symbol_error) | |
2997 | (compile_instance::error_symbol_once): Move to ... | |
2998 | * compile/compile.c: ... here. | |
2999 | ||
9cdfd9a2 KS |
3000 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
3001 | ||
3002 | * compile/compile-c-support.c (c_get_compile_context): Use `new' | |
3003 | instead of `new_compile_instance'. | |
3004 | * compile/compile-c-symbols.c (compile_instance::insert_symbol_error): | |
3005 | Update description. | |
3006 | If the symbol error map is not initialized, create it. | |
3007 | (generate_c_for_for_one_symbol): Do not check/initialize | |
3008 | the symbol error map. | |
3009 | * compile/compile-c-types.c (compile_c_instance): Make a class. | |
3010 | Update all callers. | |
3011 | (compile_instance::compile_instance): Initialize the type cache. | |
3012 | (get_cached_type): New function. | |
3013 | (insert_type): Update description. | |
3014 | (compile_c_instance::m_default_cflags): Define. | |
3015 | (convert_type): Update description. Use get_cached_type. | |
3016 | (delete_instance): Moved to destructor. | |
3017 | (new_compile_instance): Moved to constructor. | |
3018 | * compile/compile-c.h (compile_c_instance): Make class inheriting | |
3019 | from compile_instance. | |
3020 | <base>: Remove field. | |
3021 | <type_map, symbol_err_map>: Move to base class. | |
3022 | <c_plugin>: Rename to `m_plugin' and remove pointer type. | |
3023 | * compile/compile-internal.h (compile_instance): Make class. | |
3024 | <type_map_t, symbol_err_map_t>: Define. | |
3025 | <fe>: Rename to `m_gcc_fe'. | |
3026 | <scope, block, gcc_target_options>: Add `m_' prefix. | |
3027 | <m_type_map, m_symbol_err_map>: New fields, moved from | |
3028 | compile_c_instance. | |
3029 | <destroy>: Remove. | |
3030 | (convert_type, new_compile_instance): Remove. | |
3031 | * compile/compile.c (cleanup_compile_instance): Remove. | |
3032 | (compile_to_object): Use unique_ptr to eliminate cleanups. | |
3033 | (compile_instance::set_print_callback, compile_instance::version) | |
3034 | (compile_instance::set_verbose) | |
3035 | (compile_instance::set_driver_filename) | |
3036 | (compile_instance::set_triplet_regexp) | |
3037 | (compile_instance::set_arguments) | |
3038 | (compile_instance::set_source_file) | |
3039 | (compile_instance::compile): Define. | |
3040 | ||
18cdc6d8 KS |
3041 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
3042 | ||
3043 | * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h. | |
3044 | * compile/compile-c-types.c: Define GCC_METHODN macros and include | |
3045 | gcc-c-fe.def to define C plugin. | |
3046 | (delete_instance): Delete `c_plugin'. | |
3047 | (new_compile_instance): Initialize `c_plugin'. | |
3048 | * compile/compile-c.h: Include gcc_c_plugin.h. | |
3049 | (struct compile_c_instance) <c_plugin>: New member. | |
3050 | * gcc-c-plugin.h: New file. | |
3051 | Update all callers with API change. | |
3052 | ||
b7dc48b4 KS |
3053 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
3054 | ||
3055 | * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ... | |
3056 | (HFILES_NO_SRCDIR): ... to here. | |
3057 | Add compile-internal.h and compile-c.h. | |
3058 | * compile/compile-c-support.c: Include compile-c.h. | |
3059 | * compile/compile-c-symbols.c: Include compile-c.h. | |
3060 | (generate_c_for_variable_locations): Update comment. | |
3061 | * compile/compile-c-types.c: Include compile-c.h. | |
3062 | * compile/compile-c.h: New file -- moved C language declarations | |
3063 | from other files here. | |
3064 | * compile/compile-internal.h: Do not include hashtab.h or | |
3065 | common/enum-flags.h. | |
3066 | (gcc_qualifiers_flags, struct compile_c_instance, C_CTX) | |
3067 | (gcc_convert_symbol, gcc_symbol_address) | |
3068 | (generate_c_for_variable_locations, c_get_mode_for_size) | |
3069 | (c_get_range_decl_name): Definitions moved to compile-c.h. | |
3070 | * compile/compile-loc2c.c: Include compile-c.h. | |
3071 | ||
6f36b6d2 KS |
3072 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
3073 | ||
3074 | * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ... | |
3075 | (c_symbol_substitution_name): ... this. | |
3076 | Update all callers. | |
3077 | ||
bd923e51 KS |
3078 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
3079 | ||
3080 | * compile/compile-c-support.c (c_compute_program): Use | |
3081 | unique_xmalloc_ptr to eliminate cleanup. | |
3082 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
3083 | Return a unique_xmalloc_ptr and eliminate cleanup. | |
3084 | * compile/compile-internal.h (generate_c_for_variable_locations): | |
3085 | Return unique_xmalloc_ptr and update description. | |
3086 | ||
dbd534fe AH |
3087 | 2018-08-10 Alan Hayward <alan.hayward@arm.com> |
3088 | ||
3089 | * corelow.c (core_target::get_core_register_section): Rename | |
3090 | min_size to section_min_size. | |
3091 | ||
90ad3654 JW |
3092 | 2018-08-09 Jim Wilson <jimw@sifive.com> |
3093 | ||
52a187f8 JW |
3094 | * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c. |
3095 | (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c. | |
3096 | * NEWS: Mention new GNU/Linux RISC-V target. | |
3097 | * configure.host: Add riscv*-*-linux*. | |
3098 | * configure.nat: Add riscv*. | |
3099 | * configure.tgt: Add riscv*-*-linux*. | |
3c77f97e | 3100 | * riscv-linux-nat.c: New file. |
90ad3654 JW |
3101 | * riscv-linux-tdep.c: New file. |
3102 | ||
aff4e175 AB |
3103 | 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com> |
3104 | ||
3105 | * infrun.c (resume): Make static, add forward declaration. | |
3106 | (proceed): Update header comment. | |
3107 | * infrun.h (resume): Delete declaration. | |
3108 | ||
06ab9219 TT |
3109 | 2018-08-09 Tom Tromey <tom@tromey.com> |
3110 | ||
3111 | * riscv-tdep.h: Minor formatting fixes. | |
3112 | ||
83c8d318 SM |
3113 | 2018-08-09 Simon Marchi <simon.marchi@ericsson.com> |
3114 | ||
3115 | * common/scoped_mmap.c (mmap_file): Silence ARI warning. | |
3116 | * dwarf-index-cache.c (create_dir_and_check): Likewise. | |
3117 | (test_mkdir_recursive): Likewise. | |
3118 | * dwarf-index-write.c (write_psymtabs_to_index): Likewise. | |
3119 | ||
5ff2bbae AB |
3120 | 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com> |
3121 | ||
3122 | * valarith.c (value_subscripted_rvalue): If an array is not in | |
3123 | memory, and we don't know the upper bound, then we can't know that | |
3124 | the requested element exists or not. | |
3125 | ||
fdbac7d8 SM |
3126 | 2018-08-08 Simon Marchi <simon.marchi@ericsson.com> |
3127 | ||
3128 | * target.c (str_comma_list_concat_elem): Fix typo in comment. | |
3129 | (target_options_to_string): Add comment. | |
3130 | ||
83202f7a TT |
3131 | 2018-08-08 Tom Tromey <tom@tromey.com> |
3132 | ||
3133 | * unittests/scoped_mmap-selftests.c: Check result of "write". | |
3134 | ||
411baa47 JW |
3135 | 2018-08-08 Jim Wilson <jimw@sifive.com> |
3136 | ||
5c720ed8 JW |
3137 | * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes. |
3138 | (decode_register_index_short): New. | |
3139 | (decode_j_type_insn, decode_cj_type_insn): New. | |
3140 | (decode_b_type_insn, decode_cb_type_insn): New. | |
3141 | (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New | |
3142 | local xlen. Check xlen when decoding ambiguous compressed insns. In | |
3143 | compressed decode, use is_c_lui_insn instead of is_lui_insn, and | |
3144 | is_c_sw_insn instead of is_sw_insn. | |
3145 | (riscv_next_pc, riscv_next_pc_atomic_sequence): New. | |
3146 | (riscv_software_single_step): New. | |
3147 | * riscv-tdep.h (riscv_software_single_step): Declare. | |
3148 | ||
411baa47 JW |
3149 | * riscv-tdep.c (riscv_isa_xlen): Drop static. |
3150 | * riscv-tdep.h (riscv_isa_xlen): Add extern declaration. | |
3151 | ||
9d4a934c AB |
3152 | 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com> |
3153 | ||
3154 | PR gdb/18050: | |
3155 | * target.c (dispose_inferior): Don't dispose of inferiors that are | |
3156 | already killed. | |
3157 | ||
ff36536c SN |
3158 | 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com> |
3159 | ||
3160 | * remote.c (remote_target::download_tracepoint): Change char* to | |
3161 | const char*. | |
3162 | ||
09ce46f2 SM |
3163 | 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca> |
3164 | ||
3165 | * target.h (target_options_to_string): Return an std::string. | |
3166 | * target.c (str_comma_list_concat_elem): Return void, use | |
3167 | std::string. | |
3168 | (do_option): Likewise. | |
3169 | (target_options_to_string): Return an std::string. | |
3170 | * linux-nat.c (linux_nat_target::wait): Adjust. | |
3171 | * target-debug.h (target_debug_print_options): Adjust. | |
3172 | ||
9c612964 TT |
3173 | 2018-08-07 Tom Tromey <tom@tromey.com> |
3174 | ||
3175 | * Makefile.in (CPPFLAGS): New variable. | |
3176 | (INTERNAL_CPPFLAGS): Use it. | |
3177 | ||
7d11235d SM |
3178 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
3179 | ||
3180 | * NEWS: Mention the index cache. | |
3181 | ||
87d6a7aa SM |
3182 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
3183 | ||
3184 | * common/pathstuff.h (get_standard_cache_dir): New. | |
3185 | * common/pathstuff.c (get_standard_cache_dir): New. | |
3186 | * build-id.h (build_id_to_string): New. | |
3187 | * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX, | |
3188 | DEBUG_STR_SUFFIX): Move to here. | |
3189 | * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX, | |
3190 | DEBUG_STR_SUFFIX): Move from there. | |
3191 | (write_psymtabs_to_index): Make non-static, add basename | |
3192 | parameter. Write to temporary files, rename when done. | |
3193 | (save_gdb_index_command): Adjust call to | |
3194 | write_psymtabs_to_index. | |
3195 | * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New | |
3196 | field. | |
3197 | * dwarf2read.c (dwz_file) <index_cache_res>: New field. | |
3198 | (get_gdb_index_contents_from_cache): New. | |
3199 | (get_gdb_index_contents_from_cache_dwz): New. | |
3200 | (dwarf2_initialize_objfile): Read index from cache. | |
3201 | (dwarf2_build_psymtabs): Save to index. | |
3202 | * dwarf-index-cache.h: New file. | |
3203 | * dwarf-index-cache.c: New file. | |
3204 | * dwarf-index-write.h: New file. | |
3205 | ||
8a99096f SM |
3206 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
3207 | ||
3208 | * gnulib/aclocal.m4: Re-generate. | |
3209 | * gnulib/config.in: Re-generate. | |
3210 | * gnulib/configure: Re-generate. | |
3211 | * gnulib/import/Makefile.am: Re-generate. | |
3212 | * gnulib/import/Makefile.in: Re-generate. | |
3213 | * gnulib/import/m4/gnulib-cache.m4: Re-generate. | |
3214 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
3215 | * gnulib/import/m4/mkdir.m4: New file. | |
3216 | * gnulib/import/mkdir.c: New file. | |
3217 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir | |
3218 | module. | |
3219 | ||
5c831bb1 SM |
3220 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
3221 | ||
3222 | * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c. | |
3223 | * common/scoped_mmap.c: New file. | |
3224 | * common/scoped_mmap.h (destroy): New method. | |
3225 | (~scoped_mmap, reset): Use destroy. | |
3226 | (scoped_mmap): New move constructor. | |
3227 | (mmap_file): New declaration. | |
3228 | * unittests/scoped_mmap-selftests.c (test_normal, | |
3229 | test_invalid_filename, run_tests): New functions. | |
3230 | (_initialize_scoped_mmap_selftests): Register selftest. | |
3231 | ||
4485a1c1 SM |
3232 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
3233 | ||
3234 | * dwarf2read.c (read_gdb_index_from_section): Rename to... | |
3235 | (read_gdb_index_from_buffer): ... this. Remove section | |
3236 | parameter, add buffer parameter. | |
3237 | (get_gdb_index_contents_ftype, | |
3238 | get_gdb_index_contents_dwz_ftype): New typedefs. | |
3239 | (dwarf2_read_gdb_index): Add callback parameters to get the | |
3240 | index contents. | |
3241 | (get_gdb_index_contents_from_section): New. | |
3242 | (dwarf2_initialize_objfile): Update call to | |
3243 | dwarf2_read_gdb_index. | |
3244 | ||
528e1572 SM |
3245 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
3246 | ||
3247 | * common/filestuff.h (gdb_fopen_cloexec): New overload. | |
3248 | (gdb_open_cloexec): Likewise. | |
3249 | * nat/linux-osdata.c (command_from_pid): Use string_printf. | |
3250 | (commandline_from_pid): Likewise. | |
3251 | (linux_xfer_osdata_threads): Likewise. | |
3252 | (linux_xfer_osdata_fds): Likewise. | |
3253 | * ada-lang.c (is_package_name): Likewise. | |
3254 | * auxv.c (procfs_xfer_auxv): Likewise. | |
3255 | * breakpoint.c (print_one_breakpoint_location): Use | |
3256 | uiout::field_fmt. | |
3257 | (print_one_catch_solib): Use string_printf. | |
3258 | * coff-pe-read.c (add_pe_exported_sym): Likewise. | |
3259 | (add_pe_forwarded_sym): Likewise. | |
3260 | * dwarf2read.c (create_type_unit_group): Likewise. | |
3261 | (build_error_marker_type): Likewise. | |
3262 | * infcall.c (get_function_name): Likewise. | |
3263 | * valprint.c (print_converted_chars_to_obstack): Likewise. | |
3264 | * xtensa-tdep.c (xtensa_register_type): Likewise. | |
3265 | ||
a7f25a84 SM |
3266 | 2018-08-06 Simon Marchi <simon.marchi@ericsson.com> |
3267 | ||
3268 | * remote.c (remote_target::download_tracepoint): Fix format | |
3269 | string errors. | |
3270 | ||
296956be PFC |
3271 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
3272 | ||
3273 | * tracefile.c: Include common/byte-vector.h. | |
3274 | (trace_save): Change type of buf to gdb::byte_vector. Initialize | |
3275 | with trace_regblock_size if needed. Update uses of buf. | |
3276 | ||
a04b9d62 PFC |
3277 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
3278 | ||
3279 | * tracepoint.h (collection_list) <m_regs_mask>: Change type to | |
3280 | std::vector<unsigned char>. | |
3281 | * tracepoint.c (collection_list::collection_list): Remove | |
3282 | m_regs_mask initializer from initializer list. Resize | |
3283 | m_regs_mask using the largest remote register number. | |
3284 | (collection_list::add_remote_register): Remove size check on | |
3285 | m_regs_mask. Use at to access element. | |
3286 | (collection_list::stringify): Change type of temp_buf to | |
3287 | gdb::char_vector. Update uses of temp_buf. Resize if needed to | |
3288 | stringify the register mask. Use pack_hex_byte for the register | |
3289 | mask. | |
3290 | ||
4277c4b8 PFC |
3291 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
3292 | ||
3293 | * tracepoint.h (class collection_list) <add_register>: Remove. | |
3294 | <add_remote_register, add_ax_registers, add_local_register>: | |
3295 | Declare. | |
3296 | <add_memrange>: Add scope parameter. | |
3297 | * tracepoint.c (encode_actions_1): Likewise. | |
3298 | (collection_list::add_register): Rename to ... | |
3299 | (collection_list::add_remote_register): ... this. Update | |
3300 | comment. | |
3301 | (collection_list::add_ax_registers, add_local_register): New | |
3302 | methods. | |
3303 | (collection_list::add_memrange): Add scope parameter. Call | |
3304 | add_local_register instead of add_register. | |
3305 | (finalize_tracepoint_aexpr): New function. | |
3306 | (collection_list::collect_symbol): Update calls to add_memrange. | |
3307 | Call add_local_register instead of add_register. Call | |
3308 | add_ax_registers. Call finalize_tracepoint_aexpr. | |
3309 | (encode_actions_1): Get remote regnos for $reg action. Call | |
3310 | add_remote_register, add_ax_registers, and add_local_register. | |
3311 | Update call to add_memrange. Call finalize_tracepoint_aexpr. | |
3312 | (validate_actionline): Call finalize_tracepoint_aexpr. | |
3313 | ||
3df3a985 PFC |
3314 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
3315 | ||
3316 | * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE. | |
3317 | Replace array buf with gdb::char_vector buf, of size | |
3318 | get_remote_packet_size (). Replace references to buf and | |
3319 | BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat | |
3320 | and xsnprintf with snprintf. Raise errors if the buffer is too | |
3321 | small. | |
3322 | ||
aa6f3694 PFC |
3323 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
3324 | ||
3325 | * remote.c (remote_target::download_tracepoint): Fix the has_more | |
3326 | predicate in the QTDP action list iteration. | |
3327 | ||
05abfc39 PFC |
3328 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
3329 | ||
3330 | * remote.c (remote_target::download_tracepoint): Fix indentation | |
3331 | in for block. | |
3332 | ||
821a2682 RO |
3333 | 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3334 | ||
3335 | * proc-api.c (_initialize_proc_api): Remove c, unused. | |
3336 | * procfs.c (procfs_init_inferior): Remove signals, unused. | |
3337 | (procfs_target::make_corefile_notes): Remove old_chain, fpregs, | |
3338 | unused. | |
3339 | ||
95347337 AB |
3340 | 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com> |
3341 | Andrew Burgess <andrew.burgess@embecosm.com> | |
3342 | ||
3343 | * linux-nat.c (linux_nat_target::follow_fork): Avoid using | |
3344 | 'W_STOPCODE (0)' as this could be ambiguous. | |
3345 | ||
425699f5 SDJ |
3346 | 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com> |
3347 | ||
3348 | * ser-tcp.c (net_open): Fix thinko when deciding whether to | |
3349 | disable TCP's Nagle algorithm (use "ai_protocol" instead of | |
3350 | "ai_socktype"). | |
3351 | ||
3e1d3d8c TT |
3352 | 2018-08-02 Tom Tromey <tom@tromey.com> |
3353 | ||
3354 | PR symtab/16842. | |
3355 | * dwarf2read.c (read_func_scope): Set symtab on template parameter | |
3356 | symbols. | |
3357 | (process_structure_scope): Likewise. | |
3358 | ||
15843549 XR |
3359 | 2018-08-02 Xavier Roirand <roirand@adacore.com> |
3360 | ||
3361 | PR gdb/22629: | |
3362 | * darwin-nat.c (darwin_kill_inferior): Fix handling of | |
3363 | kill inferior. | |
3364 | ||
b5bddbbb TT |
3365 | 2018-08-02 Tom Tromey <tom@tromey.com> |
3366 | ||
3367 | * darwin-nat.c (find_inferior_task_it, darwin_find_thread) | |
3368 | (darwin_suspend_inferior, darwin_resume_inferior) | |
3369 | (darwin_decode_notify_message, darwin_resume_inferior_threads) | |
3370 | (darwin_check_new_threads): Check result of get_darwin_inferior. | |
3371 | ||
f61cfa07 JB |
3372 | 2018-07-31 Joel Brobecker <brobecker@adacore.com> |
3373 | ||
3374 | GDB 8.1.1 released. | |
3375 | ||
5abe0f0c JV |
3376 | 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz> |
3377 | ||
3378 | * varobj.c (varobj_get_path_expr_parent): Report an error if | |
3379 | parent is a dynamic varobj. | |
3380 | ||
472fa5ee SM |
3381 | 2018-07-31 Simon Marchi <simon.marchi@ericsson.com> |
3382 | ||
3383 | * gnulib/aclocal.m4: Re-generate. | |
3384 | * gnulib/config.in: Re-generate. | |
3385 | * gnulib/configure: Re-generate. | |
3386 | * gnulib/import/Makefile.in: Re-generate. | |
3387 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
3388 | * gnulib/import/m4/onceonly.m4: Re-generate. | |
3389 | ||
1c28969e SM |
3390 | 2018-07-31 Simon Marchi <simon.marchi@ericsson.com> |
3391 | ||
3392 | * target-descriptions.c (struct xml_test_tdesc): New. | |
3393 | (xml_tdesc): Change type to std::vector<xml_test_tdesc>. | |
3394 | (record_xml_tdesc): Update. | |
3395 | (maintenance_check_xml_descriptions): Update. | |
3396 | * target-descriptions.h (record_xml_tdesc): Update comment. | |
3397 | ||
c8f2dc0d AB |
3398 | 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com> |
3399 | ||
3400 | * eval.c (evaluate_subexp_for_sizeof): Check for array type before | |
3401 | checking array bounds are defined. | |
3402 | ||
463c08d1 TT |
3403 | 2018-07-30 Tom Tromey <tom@tromey.com> |
3404 | ||
3405 | * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix | |
3406 | irreflexivity violation. | |
3407 | ||
dba7455e TT |
3408 | 2018-07-30 Tom Tromey <tom@tromey.com> |
3409 | ||
3410 | * cli/cli-decode.c (lookup_cmd): Remove lint code. | |
3411 | * value.c (unpack_long): Remove lint code. | |
3412 | * valops.c (value_ind): Remove lint code. | |
3413 | * valarith.c (value_x_binop, value_x_unop, value_equal) | |
3414 | (value_pos): Remove lint code. | |
3415 | ||
37cc0cae TV |
3416 | 2018-07-28 Tom de Vries <tdevries@suse.de> |
3417 | ||
3418 | * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type | |
3419 | with undefined upper bound as <optimized out>. | |
3420 | ||
129eb0f1 SDJ |
3421 | 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com> |
3422 | ||
3423 | * gcore.in: Rename variable "name" to "prefix". Expand | |
3424 | "usage" text. | |
3425 | ||
6af79d7b JT |
3426 | 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk> |
3427 | ||
3428 | * windows-nat.c (windows_nat_target::create_inferior): Update to | |
3429 | call close() in global namespace. | |
3430 | ||
79748972 TT |
3431 | 2018-07-26 Tom Tromey <tom@tromey.com> |
3432 | ||
3433 | * dwarf-index-write.c (add_address_entry): Don't add objfile | |
3434 | offsets. | |
3435 | * dbxread.c (find_stab_function): Rename from | |
3436 | find_stab_function_addr. Return a bound_minimal_symbol. | |
3437 | (read_dbx_symtab): Use raw_text_low, raw_text_high. | |
3438 | Don't add objfile offsets. | |
3439 | (end_psymtab): Use raw_text_low, raw_text_high, | |
3440 | MSYMBOL_VALUE_RAW_ADDRESS. | |
3441 | (read_ofile_symtab): Update. | |
3442 | (process_one_symbol): Update. | |
3443 | * dwarf2read.c (create_addrmap_from_index): Don't add objfile | |
3444 | offsets. | |
3445 | (dw2_relocate): Remove. | |
3446 | (dw2_find_pc_sect_symtab): Bias PC by the text offset before | |
3447 | searching addrmap. | |
3448 | (dwarf2_gdb_index_functions, dwarf2_debug_names_functions): | |
3449 | Update. | |
3450 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
3451 | (add_partial_subprogram, dwarf2_ranges_read): Update. | |
3452 | (load_partial_dies): Update. | |
3453 | (add_address_entry): Don't add objfile offsets. | |
3454 | (dwarf2_build_include_psymtabs): Update. | |
3455 | (create_addrmap_from_aranges): Don't add objfile offsets. | |
3456 | (dw2_find_pc_sect_compunit_symtab): Update. | |
3457 | * mdebugread.c (parse_symbol): Don't add objfile offsets. | |
3458 | (parse_lines): Remove 'pst' parameter, replace with 'textlow'. | |
3459 | Update. | |
3460 | (parse_partial_symbols): Don't add objfile offsets. Use | |
3461 | raw_text_low, raw_text_high. Update. | |
3462 | (handle_psymbol_enumerators, psymtab_to_symtab_1): Update. | |
3463 | * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap | |
3464 | or call 'relocate' quick function. Clear psymbol_map. | |
3465 | * psympriv.h (struct partial_symbol) <address>: Add section | |
3466 | offset. | |
3467 | <set_unrelocated_address>: Rename from set_address. | |
3468 | <raw_text_low, raw_text_high>: New methods. | |
3469 | <text_low, text_high>: Add objfile parameter. | |
3470 | (add_psymbol_to_bcache): Add 'section' parameter. Call | |
3471 | set_unrelocated_address. | |
3472 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
3473 | (find_pc_psymbol): Update. | |
3474 | (fixup_psymbol_section, relocate_psymtabs): Remove. | |
3475 | (dump_psymtab, psym_functions): Update. | |
3476 | (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section' | |
3477 | parameter. | |
3478 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
3479 | (start_psymtab_common): Update. | |
3480 | * symfile-debug.c (debug_qf_relocate): Remove. | |
3481 | (debug_sym_quick_functions): Update. | |
3482 | * symfile.h (struct quick_symbol_functions) <relocate>: Remove. | |
3483 | * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets. | |
3484 | Update. | |
3485 | ||
52948f01 TT |
3486 | 2018-07-26 Tom Tromey <tromey@redhat.com> |
3487 | ||
3488 | * dbxread.c (end_psymtab): Use text_high_valid and | |
3489 | text_low_valid. | |
3490 | * mdebugread.c (parse_partial_symbols): Use text_low_valid. | |
3491 | (psymtab_to_symtab_1): Use text_high_valid and text_low_valid. | |
3492 | * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: | |
3493 | Update comment. | |
3494 | <text_low_valid, text_high_valid>: New fields. | |
3495 | <set_text_low, set_text_high>: Update. | |
3496 | * xcoffread.c (scan_xcoff_symtab): Use text_low_valid. | |
3497 | ||
4ae976d1 TT |
3498 | 2018-07-26 Tom Tromey <tom@tromey.com> |
3499 | ||
3500 | * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): | |
3501 | Update. | |
3502 | * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize | |
3503 | textlow and texthigh fields. | |
3504 | (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs): | |
3505 | Update. | |
3506 | * mdebugread.c (parse_lines, parse_partial_symbols) | |
3507 | (psymtab_to_symtab_1): Update. | |
3508 | * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: | |
3509 | Rename fields. Update comment. Now private. | |
3510 | <text_low, text_high, set_text_low, set_text_high>: New methods. | |
3511 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
3512 | (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab) | |
3513 | (start_psymtab_common, maintenance_info_psymtabs) | |
3514 | (maintenance_check_psymtabs): Update. | |
3515 | * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and | |
3516 | texthigh fields. | |
3517 | (scan_xcoff_symtab): Update. | |
3518 | ||
02e9e7f7 TT |
3519 | 2018-07-26 Tom Tromey <tromey@redhat.com> |
3520 | ||
3521 | * psympriv.h (struct partial_symbol) <unrelocated_address, | |
3522 | address, set_address>: New methods. | |
3523 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol) | |
3524 | (fixup_psymbol_section, relocate_psymtabs): Update. | |
3525 | (print_partial_symbols): Add 'objfile' parameter. Update. | |
3526 | (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map): | |
3527 | Update. | |
3528 | ||
8a6d4234 TT |
3529 | 2018-07-26 Tom Tromey <tom@tromey.com> |
3530 | ||
3531 | * dwarf-index-write.c (write_psymbols, debug_names::insert) | |
3532 | (debug_names::write_psymbols): Update. | |
3533 | * psympriv.h (struct partial_symbol): Derive from | |
3534 | general_symbol_info. | |
3535 | <obj_section>: New method. | |
3536 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n | |
3537 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
3538 | (find_pc_sect_psymbol, fixup_psymbol_section) | |
3539 | (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs) | |
3540 | (print_partial_symbols, recursively_search_psymtabs) | |
3541 | (compare_psymbols, psymbol_hash, psymbol_compare) | |
3542 | (add_psymbol_to_bcache, maintenance_check_psymtabs) | |
3543 | (psymbol_name_matches, psym_fill_psymbol_map): Update. | |
3544 | ||
08994e1d TT |
3545 | 2018-07-26 Tom Tromey <tromey@redhat.com> |
3546 | ||
3547 | * dbxread.c (end_psymtab): Remove dead code. | |
3548 | ||
3c3bb058 AB |
3549 | 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com> |
3550 | ||
3551 | * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if | |
3552 | DWARF unwinders are disabled. | |
3553 | * dwarf2-frame.c: Add dwarf2read.h include. | |
3554 | (dwarf2_frame_sniffer): Exit early if DWARF unwinders are | |
3555 | disabled. | |
3556 | (dwarf2_frame_unwinders_enabled_p): Define. | |
3557 | (show_dwarf_unwinders_enabled_p): New function. | |
3558 | (_initialize_dwarf2_frame): Register switch to control DWARF | |
3559 | unwinder use. | |
3560 | * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare. | |
3561 | * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword. | |
3562 | (show_dwarf_cmdlist): Remove static keyword. | |
3563 | * dwarf2read.h (set_dwarf_cmdlist): Declare. | |
3564 | (show_dwarf_cmdlist): Declare. | |
3565 | * NEWS: Document new feature. | |
3566 | ||
9e7f3bbb TV |
3567 | 2018-07-26 Tom de Vries <tdevries@suse.de> |
3568 | ||
3569 | PR breakpoints/23366 | |
3570 | * infcmd.c (info_program_command): Handle ptid == minus_one_ptid. | |
3571 | ||
506f5c41 TV |
3572 | 2018-07-26 Tom de Vries <tdevries@suse.de> |
3573 | ||
3574 | * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or | |
3575 | DW_AT_count can't be translated to a dynamic prop. | |
3576 | ||
16f808ec TV |
3577 | 2018-07-25 Tom de Vries <tdevries@suse.de> |
3578 | ||
3579 | * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in | |
3580 | try/catch. | |
3581 | ||
d7154a8d JV |
3582 | 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz> |
3583 | ||
3584 | * breakpoint.c (enable_disable_bp_num_loc): Notify observers. | |
3585 | ||
a45389f6 JB |
3586 | 2018-07-25 Joel Brobecker <brobecker@adacore.com> |
3587 | ||
3588 | * MAINTAINERS (Global Maintainers): Add Tom Tromey. | |
3589 | ||
380618d6 KS |
3590 | 2018-07-24 Keith Seitz <keiths@redhat.comt |
3591 | ||
3592 | PR symtab/23010 | |
3593 | * dwarf2read.c (dw2_add_symbol_to_list): New function. | |
3594 | (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list | |
3595 | instead of add_symbol_to_list. | |
3596 | (read_file_scope): Call prepare_one_comp_unit before reading | |
3597 | any other DIEs. | |
3598 | ||
4b17aefe SM |
3599 | 2018-07-24 Simon Marchi <simon.marchi@ericsson.com> |
3600 | ||
3601 | * common/scoped_mmap.h (class scoped_mmap): Fix indentation. | |
3602 | ||
29d17e47 TT |
3603 | 2018-07-24 Tom Tromey <tom@tromey.com> |
3604 | ||
3605 | * utils.c (malloc, realloc, free): Don't declare. | |
3606 | * configure, config.in: Rebuild. | |
3607 | * configure.ac: Don't check for declarations of free, malloc, or | |
3608 | realloc. | |
3609 | ||
cf4088a9 SM |
3610 | 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
3611 | ||
3612 | * aarch64-linux-nat.c | |
3613 | (aarch64_linux_nat_target::stopped_data_address): Remove unused | |
3614 | variable. | |
3615 | * arm-linux-nat.c (fetch_regs): Likewise. | |
3616 | (store_regs): Likewise. | |
3617 | (fetch_vfp_regs): Likewise. | |
3618 | (store_vfp_regs): Likewise. | |
3619 | (arm_linux_nat_target::insert_hw_breakpoint): Likewise. | |
3620 | (arm_linux_nat_target::remove_hw_breakpoint): Likewise. | |
3621 | (arm_linux_nat_target::insert_watchpoint): Likewise. | |
3622 | (arm_linux_nat_target::remove_watchpoint): Likewise. | |
3623 | * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint): | |
3624 | Likewise. | |
3625 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): | |
3626 | Likewise. | |
3627 | * ppc-linux-nat.c (fetch_register): Likewise. | |
3628 | (fetch_all_gp_regs): Likewise. | |
3629 | (fetch_ppc_registers): Likewise. | |
3630 | (store_all_gp_regs): Likewise. | |
3631 | (store_ppc_registers): Likewise. | |
3632 | (hwdebug_insert_point): Likewise. | |
3633 | (can_use_watchpoint_cond_accel): Likewise. | |
3634 | * remote-sim.c (gdb_os_write_stdout): Likewise. | |
3635 | ||
a0de763e TT |
3636 | 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
3637 | Tom Tromey <tom@tromey.com> | |
3638 | ||
3639 | * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special | |
3640 | test for it. | |
3641 | * configure: Rebuild. | |
3642 | ||
3b20124b TT |
3643 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3644 | ||
3645 | * regformats/regdat.sh: Define xmltarget_${name} inside | |
3646 | #ifndef IN_PROCESS_AGENT. | |
3647 | ||
8c8807f4 TT |
3648 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3649 | ||
3650 | * value.c (value_fetch_lazy_bitfield): Remove unused variable. | |
3651 | ||
c486b610 TT |
3652 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3653 | ||
3654 | * symfile.c (reread_symbols): Notify iter, not objfile. | |
3655 | ||
494f80a9 TT |
3656 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3657 | ||
3658 | * ravenscar-thread.c (ravenscar_thread_target::store_registers): | |
3659 | Use arch_ops. | |
3660 | (ravenscar_thread_target::prepare_to_store): Likewise. | |
3661 | ||
c51f6a54 TT |
3662 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3663 | ||
3664 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove | |
3665 | unused variable. Call value_fetch_lazy when needed. | |
3666 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): | |
3667 | Remove unused variable. Call value_fetch_lazy when needed. | |
3668 | ||
374fd1fd TT |
3669 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3670 | ||
3671 | * m32c-tdep.c (mark_dma): Return void. | |
3672 | (make_regs): Remove unused declarations. | |
3673 | ||
d5e9a511 TT |
3674 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3675 | ||
3676 | * guile/scm-cmd.c (gdbscm_dont_repeat): Call | |
3677 | cmdscm_get_valid_command_smob_arg_unsafe for effect. | |
3678 | * guile/scm-block.c (gdbscm_make_block_syms_iter): Call | |
3679 | bkscm_get_valid_block_smob_arg_unsafe for effect. | |
3680 | ||
996d693a TT |
3681 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3682 | ||
3683 | * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not | |
3684 | value_type. | |
3685 | ||
15766370 TT |
3686 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3687 | ||
3688 | * windows-nat.c (saved_context): Conditionally define. | |
3689 | * remote.c (remote_target::remote_btrace_maybe_reopen): | |
3690 | Conditionally declare "warned". | |
3691 | * inflow.c (sigquit_ours): Conditionally define. | |
3692 | (new_tty): Move "tty" declaration inside #if. | |
3693 | * guile/guile.c (guile_datadir): Conditionally define. | |
3694 | * charset.c (set_be_le_names): Move some declarations inside #if. | |
3695 | * btrace.c (parse_xml_btrace): Move "errcode" declaration inside | |
3696 | #if. | |
3697 | (parse_xml_btrace_conf): Likewise. | |
3698 | ||
f4e80e13 TT |
3699 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3700 | ||
3701 | * spu-tdep.c (spu_get_overlay_table): Remove unused variable. | |
3702 | ||
8d49165d TT |
3703 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3704 | ||
3705 | * guile/scm-value.c (gdbscm_value_call): Remove unused variables. | |
3706 | * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow) | |
3707 | (vlscm_convert_typed_value_from_scheme): Remove unused variable. | |
3708 | * buildsym-legacy.c (get_macro_table): Remove unused variable. | |
3709 | * stack.c (frame_apply_level_command): Remove unused variable. | |
3710 | * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable. | |
3711 | * sparc64-tdep.c (adi_examine_command): Remove unused variable. | |
3712 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove | |
3713 | unused variable. | |
3714 | * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable. | |
3715 | * mep-tdep.c (mep_push_dummy_call): Remove unused variable. | |
3716 | * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused | |
3717 | variable. | |
3718 | * amd64-tdep.c (amd64_supply_xsave): Remove unused variable. | |
3719 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused | |
3720 | variable. | |
3721 | * breakpoint.c (check_no_tracepoint_commands, update_watchpoint): | |
3722 | Remove unused variable. | |
3723 | * cli/cli-script.c (recurse_read_control_structure): Remove unused | |
3724 | variable. | |
3725 | * common/tdesc.c (print_xml_feature::visit): Remove unused | |
3726 | variable. | |
3727 | * compile/compile-object-load.c (store_regs): Remove unused | |
3728 | variables. | |
3729 | * complaints.c (clear_complaints): Remove unused variable. | |
3730 | * corelow.c (core_target_open): Remove unused variable. | |
3731 | * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused | |
3732 | variable. | |
3733 | * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused | |
3734 | variable. | |
3735 | * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused | |
3736 | variable. | |
3737 | * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused | |
3738 | variable. | |
3739 | * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused | |
3740 | variable. | |
3741 | * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused | |
3742 | variable. | |
3743 | * ia64-tdep.c (examine_prologue): Remove unused variable. | |
3744 | * infcall.c (run_inferior_call): Remove unused variable. | |
3745 | * inferior.c (exit_inferior): Remove unused variable. | |
3746 | * infrun.c (infrun_thread_ptid_changed): Remove unused variable. | |
3747 | * linespec.c (decode_line_2): Remove unused variable. | |
3748 | * linux-nat.c (super_close): Remove. | |
3749 | * linux-tdep.c (linux_info_proc): Remove unused variable. | |
3750 | * mi/mi-main.c (mi_execute_command): Remove unused variable. | |
3751 | * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache): | |
3752 | Remove unused variable. | |
3753 | * parse.c (find_minsym_type_and_address): Remove unused variable. | |
3754 | * printcmd.c (info_symbol_command, printf_floating): Remove unused | |
3755 | variable. | |
3756 | * python/py-breakpoint.c (bppy_set_commands): Remove unused | |
3757 | variable. | |
3758 | * python/py-unwind.c (unwind_infopy_dealloc): Remove unused | |
3759 | variables. | |
3760 | * record-btrace.c (record_btrace_target::store_registers): Remove | |
3761 | unused variable. | |
3762 | (cmd_show_record_btrace_cpu): Remove unused variable. | |
3763 | * riscv-tdep.c (riscv_register_reggroup_p) | |
3764 | (riscv_push_dummy_call, riscv_return_value): Remove unused | |
3765 | variable. | |
3766 | * rust-exp.y (literal): Remove unused variable. | |
3767 | * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove | |
3768 | unused variable. | |
3769 | <STRUCTOP_ANONYMOUS>: Likewise. | |
3770 | * s390-linux-tdep.c (s390_linux_init_abi_31) | |
3771 | (s390_linux_init_abi_64): Remove unused variable. | |
3772 | * ser-ming2.c (ser_windows_read_prim, pipe_select_thread) | |
3773 | (file_select_thread, net_windows_open, _initialize_ser_windows): | |
3774 | Remove unused variables. | |
3775 | * symtab.c (find_pc_sect_line): Remove unused variable. | |
3776 | * target-memory.c (compute_garbled_blocks): Remove unused | |
3777 | variable. | |
3778 | (target_write_memory_blocks): Remove unused variable. | |
3779 | * target.c (target_stack::unpush): Remove unused variables. | |
3780 | * tracepoint.c (start_tracing, all_tracepoint_actions) | |
3781 | (merge_uploaded_trace_state_variables) | |
3782 | (print_one_static_tracepoint_marker): Remove unused variable. | |
3783 | * unittests/basic_string_view/element_access/char/1.cc (test01): | |
3784 | Remove unused variable. | |
3785 | * windows-nat.c (windows_continue, windows_add_all_dlls) | |
3786 | (do_initial_windows_stuff, windows_nat_target::create_inferior): | |
3787 | Remove unused variables. | |
3788 | ||
17cbafdb SM |
3789 | 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca> |
3790 | ||
3791 | * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and | |
3792 | attr_profile in HAVE_ELF. | |
3793 | * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in | |
3794 | HAVE_ELF. | |
3795 | ||
0ee6c332 SM |
3796 | 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca> |
3797 | ||
3798 | * frame.c (frame_register_unwind): Change parameter name. | |
3799 | (frame_unwind_register): Likewise. | |
3800 | (frame_unwind_register_value): Likewise. | |
3801 | (frame_unwind_register_signed): Likewise. | |
3802 | (frame_unwind_register_unsigned): Likewise. | |
3803 | * frame.h (frame_register_unwind): Likewise. | |
3804 | (frame_unwind_register): Likewise. | |
3805 | (frame_unwind_register_value): Likewise. | |
3806 | (frame_unwind_register_signed): Likewise. | |
3807 | (frame_unwind_register_unsigned): Likewise. | |
3808 | (frame_unwind_arch): Likewise. | |
3809 | ||
e2e31f10 MR |
3810 | 2018-07-20 Maciej W. Rozycki <macro@mips.com> |
3811 | ||
3812 | * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV | |
3813 | ISA maintenance. | |
3814 | ||
2d389915 MR |
3815 | 2018-07-20 Maciej W. Rozycki <macro@mips.com> |
3816 | ||
3817 | * mips-linux-nat.c (mips_linux_nat_target::read_description): | |
3818 | Call `get_ptrace_pid' rather than extracting the ptrace PID by | |
3819 | hand. | |
3820 | ||
cbb09508 KS |
3821 | 2018-07-20 Keith Seitz <keiths@redhat.com> |
3822 | ||
3823 | * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles, | |
3824 | m_main_subfile, m_comp_dir, m_producer, m_debugformat, | |
3825 | m_compunit_symtab, m_language>: Add "m_" prefix. | |
3826 | Update all uses. | |
3827 | * buildsym.c: Update all uses. | |
3828 | ||
bfe2e011 TT |
3829 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3830 | ||
3831 | * buildsym-legacy.h (record_line): Don't use record_line_ftype. | |
3832 | * buildsym.h (record_line_ftype): Remove typedef. | |
3833 | ||
0e6f3061 TT |
3834 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3835 | ||
3836 | * buildsym-legacy.h (augment_type_symtab): Don't declare. | |
3837 | (end_expandable_symtab): Likewise. | |
3838 | (end_symtab_get_static_block): Likewise. | |
3839 | (end_symtab_from_static_block): Likewise. | |
3840 | * buildsym-legacy.c (augment_type_symtab): Remove. | |
3841 | (end_expandable_symtab): Remove. | |
3842 | (end_symtab_get_static_block): Remove. | |
3843 | (end_symtab_from_static_block): Remove. | |
3844 | ||
804d2729 TT |
3845 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3846 | ||
3847 | * dwarf2read.c: Include buildsym.h. | |
3848 | (struct dwarf2_cu) <builder>: New method. | |
3849 | (fixup_go_packaging): Update. | |
3850 | (process_full_comp_unit, process_full_type_unit): Update. Don't | |
3851 | use scoped_free_pendings. | |
3852 | (using_directives): Add "cu" parameter, remove "language". | |
3853 | (read_import_statement, setup_type_unit_groups, ) | |
3854 | (read_func_scope, read_lexical_block_scope) | |
3855 | (dwarf2_record_block_ranges, read_namespace): Update. | |
3856 | (lnp_state_machine::lnp_state_machine): Add cu parameter. | |
3857 | (lnp_state_machine::handle_end_sequence): Update. | |
3858 | (class lnp_state_machine) <m_cu>: New member. | |
3859 | <m_record_line_callback>: Remove. | |
3860 | <m_currently_recording_lines>: New member. | |
3861 | (lnp_state_machine::handle_set_file): Update. | |
3862 | (noop_record_line): Remove. | |
3863 | (dwarf_record_line_p): Add cu parameter. | |
3864 | (dwarf_record_line_1, dwarf_finish_line): Likewise. | |
3865 | (lnp_state_machine::record_line) | |
3866 | (lnp_state_machine::lnp_state_machine) | |
3867 | (lnp_state_machine::check_line_address, dwarf_decode_lines_1) | |
3868 | (dwarf_decode_lines): Update. | |
3869 | (dwarf2_start_subfile): Add cu parameter. | |
3870 | (dwarf2_start_symtab, new_symbol): Update. | |
3871 | (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter. | |
3872 | Remove dwarf2_per_objfile parameter. | |
3873 | (dwarf_decode_macros): Update. | |
3874 | ||
80e649fc TT |
3875 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3876 | ||
3877 | * stabsread.c (define_symbol): Update. | |
3878 | * buildsym-legacy.h (get_buildsym_compunit): Declare. | |
3879 | * dwarf2read.c (new_symbol): Update. | |
3880 | * cp-support.h (cp_scan_for_anonymous_namespaces): Update. | |
3881 | * cp-namespace.c: Include buildsym.h. | |
3882 | (cp_scan_for_anonymous_namespaces): Add "compunit" parameter. | |
3883 | * buildsym-legacy.c (get_buildsym_compunit): New function. | |
3884 | ||
0baae8db TT |
3885 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3886 | ||
3887 | * xcoffread.c: Include buildsym-legacy.h. | |
3888 | * windows-nat.c: Include buildsym-legacy.h. | |
3889 | * stabsread.c: Include buildsym-legacy.h. | |
3890 | * mdebugread.c: Include buildsym-legacy.h. | |
3891 | * buildsym-legacy.h: New file. | |
3892 | * buildsym-legacy.c: New file, from buildsym.c. | |
3893 | * go32-nat.c: Include buildsym-legacy.h. | |
3894 | * dwarf2read.c: Include buildsym-legacy.h. | |
3895 | * dbxread.c: Include buildsym-legacy.h. | |
3896 | * cp-namespace.c: Include buildsym-legacy.h. | |
3897 | * coffread.c: Include buildsym-legacy.h. | |
3898 | * buildsym.h: Move some contents to buildsym-legacy.h. | |
3899 | * buildsym.c: Include buildsym-legacy.h. Move many functions to | |
3900 | buildsym-legacy.c. | |
3901 | * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h. | |
3902 | ||
ab209f6f TT |
3903 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3904 | ||
3905 | * buildsym.h (struct buildsym_compunit): Move from buildsym.c. | |
3906 | * buildsym.c (struct buildsym_compunit): Move to buildsym.h. | |
3907 | (buildsym_compunit::buildsym_compunit) | |
3908 | (buildsym_compunit::~buildsym_compunit) | |
3909 | (buildsym_compunit::get_macro_table): Define. | |
3910 | ||
74c72eac TT |
3911 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3912 | ||
3913 | * buildsym.c (reset_symtab_globals): Remove. | |
3914 | (buildsym_compunit::end_symtab_from_static_block): Update. | |
3915 | (buildsym_compunit::augment_type_symtab): Update. | |
3916 | (end_symtab_from_static_block): Call free_buildsym_compunit. | |
3917 | (augment_type_symtab, end_symtab, end_expandable_symtab): | |
3918 | Likewise. | |
3919 | ||
da6580e5 TT |
3920 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3921 | ||
3922 | * arch-utils.c: Do not include buildsym.h. | |
3923 | * mipsread.c: Do not include buildsym.h. | |
3924 | * machoread.c: Do not include buildsym.h. | |
3925 | * elfread.c: Do not include buildsym.h. | |
3926 | ||
4a2125f5 TT |
3927 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3928 | ||
3929 | * buildsym.c (buildsym_compunit::buildsym_compunit): Do more | |
3930 | initialization. | |
3931 | (buildsym_compunit): Add new constructor. | |
3932 | (struct buildsym_compunit) <get_last_source_file, finish_block, | |
3933 | record_block_range, start_subfile, patch_subfile_names, | |
3934 | push_subfile, pop_subfile, record_line, get_compunit_symtab, | |
3935 | set_last_source_start_addr, get_last_source_start_addr, | |
3936 | get_local_using_directives, set_local_using_directives, | |
3937 | get_global_using_directives, outermost_context_p, | |
3938 | get_current_context_stack, get_context_stack_depth, | |
3939 | get_current_subfile, get_local_symbols, get_file_symbols, | |
3940 | get_global_symbols, record_debugformat, record_producer, | |
3941 | push_context, pop_context, end_symtab_get_static_block, | |
3942 | end_symtab_from_static_block, end_symtab, end_expandable_symtab>: | |
3943 | New public methods. | |
3944 | <record_pending_block, finish_block_internal, make_blockvector, | |
3945 | watch_main_source_file_lossage, end_symtab_with_blockvector>: New | |
3946 | private methods. | |
3947 | Update all users. | |
3948 | ||
3949 | 2018-05-22 Tom Tromey <tom@tromey.com> | |
3950 | ||
3951 | * buildsym.c (record_pending_block): Move earlier. Remove objfile | |
3952 | parameter. | |
3953 | (finish_block_internal): Update. | |
3954 | ||
6b213a47 TT |
3955 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3956 | ||
3957 | * buildsym.c (record_pending_block): Move earlier. Remove objfile | |
3958 | parameter. | |
3959 | (finish_block_internal): Update. | |
3960 | ||
b80a981d TT |
3961 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3962 | ||
3963 | * buildsym.h (EXTERN): Don't define or undef. | |
3964 | * buildsym.c (EXTERN): Don't define. | |
3965 | ||
ddb70602 TT |
3966 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3967 | ||
3968 | * buildsym.c: Remove TODO comment. | |
3969 | ||
b37dd3bc TT |
3970 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3971 | ||
3972 | * coffread.c (coff_symtab_read): Update. | |
3973 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
3974 | (xcoff_new_init): Update. | |
3975 | * mipsread.c (mipscoff_new_init): Update. | |
3976 | * mdebugread.c (mdebug_build_psymtabs): Update. | |
3977 | * elfread.c (elf_new_init): Update. | |
3978 | * dwarf2read.c (process_full_comp_unit, process_full_type_unit): | |
3979 | Update. | |
3980 | * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1) | |
3981 | (coffstab_build_psymtabs, elfstab_build_psymtabs) | |
3982 | (stabsect_build_psymtabs): Update. | |
3983 | * buildsym.h (buildsym_init): Don't declare. | |
3984 | * buildsym.c: Update comment. | |
3985 | (prepare_for_building): Remove. | |
3986 | (start_symtab, restart_symtab): Update. | |
3987 | (reset_symtab_globals): Update comment. | |
3988 | (buildsym_init): Remove. | |
3989 | ||
e148f09d TT |
3990 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3991 | ||
3992 | * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update. | |
3993 | * stabsread.c (patch_block_stabs, define_symbol, read_type) | |
3994 | (read_enum_type, common_block_start, common_block_end) | |
3995 | (cleanup_undefined_types_1, finish_global_stabs): Update. | |
3996 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
3997 | * dwarf2read.c (fixup_go_packaging, read_func_scope) | |
3998 | (read_lexical_block_scope, new_symbol): Update. | |
3999 | * dbxread.c (process_one_symbol): Update. | |
4000 | * coffread.c (coff_symtab_read, process_coff_symbol) | |
4001 | (coff_read_enum_type): Update. | |
4002 | * buildsym.h (file_symbols, global_symbols, local_symbols): Don't | |
4003 | declare. | |
4004 | (get_local_symbols, get_file_symbols, get_global_symbols): New | |
4005 | functions. | |
4006 | * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and | |
4007 | m_global_symbols. | |
4008 | <m_file_symbols, m_local_symbols, m_global_symbols>: New members. | |
4009 | (~scoped_free_pendings): Update. | |
4010 | (finish_block, prepare_for_building, reset_symtab_globals) | |
4011 | (end_symtab_get_static_block, end_symtab_with_blockvector) | |
4012 | (augment_type_symtab, push_context): Update. | |
4013 | (get_local_symbols, get_file_symbols, get_global_symbols): New | |
4014 | functions. | |
4015 | (buildsym_init): Update. | |
4016 | ||
93b8bea4 TT |
4017 | 2018-07-20 Tom Tromey <tom@tromey.com> |
4018 | ||
4019 | * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope. | |
4020 | (process_full_type_unit): Likewise. | |
4021 | (dwarf2_start_symtab): Set list_in_scope. | |
4022 | ||
f62f6af5 TT |
4023 | 2018-07-20 Tom Tromey <tom@tromey.com> |
4024 | ||
4025 | * dwarf2read.c (process_psymtab_comp_unit_reader) | |
4026 | (build_type_psymtabs_reader): Do not set list_in_scope. | |
4027 | ||
1d376700 TT |
4028 | 2018-07-20 Tom Tromey <tom@tromey.com> |
4029 | ||
4030 | * buildsym.c (free_pendings): Remove. | |
4031 | (add_symbol_to_list, scoped_free_pendings) | |
4032 | (finish_block_internal, buildsym_init): Update. | |
4033 | ||
c233e9c6 TT |
4034 | 2018-07-20 Tom Tromey <tom@tromey.com> |
4035 | ||
4036 | * xcoffread.c (read_xcoff_symtab): Update. | |
4037 | * dwarf2read.c (read_func_scope, read_lexical_block_scope): | |
4038 | Update. | |
4039 | * dbxread.c (process_one_symbol): Update. | |
4040 | * coffread.c (coff_symtab_read): Update. | |
4041 | * buildsym.h (finish_block): Update. | |
4042 | * buildsym.c (finish_block): Remove "listhead" argument. | |
4043 | (end_symtab_get_static_block): Update. | |
4044 | ||
5ac04550 TT |
4045 | 2018-07-20 Tom Tromey <tom@tromey.com> |
4046 | ||
4047 | * buildsym.h (class scoped_free_pendings): Remove constructor. | |
4048 | * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New | |
4049 | method. | |
4050 | <m_pending_block_obstack, m_pending_blocks>: New members. | |
4051 | (pending_block_obstack, pending_blocks): Remove. | |
4052 | (scoped_free_pendings::scoped_free_pendings): Default. | |
4053 | (~scoped_free_pendings): Update. | |
4054 | (free_pending_blocks): Remove. | |
4055 | (finish_block_internal, record_pending_block, make_blockvector) | |
4056 | (end_symtab_get_static_block, augment_type_symtab, push_context) | |
4057 | (buildsym_init): Update. | |
4058 | ||
7ea05a7b TT |
4059 | 2018-07-20 Tom Tromey <tom@tromey.com> |
4060 | ||
4061 | * buildsym.c (struct buildsym_compunit) <m_pending_addrmap, | |
4062 | m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New | |
4063 | members. | |
4064 | (pending_addrmap, pending_addrmap_obstack) | |
4065 | (pending_addrmap_interesting): Remove. | |
4066 | (scoped_free_pendings, record_block_range, make_blockvector) | |
4067 | (prepare_for_building, reset_symtab_globals, buildsym_init): | |
4068 | Update. | |
4069 | ||
3c65e5b3 TT |
4070 | 2018-07-20 Tom Tromey <tom@tromey.com> |
4071 | ||
4072 | * xcoffread.c (process_linenos): Update. | |
4073 | * stabsread.c (define_symbol, read_type, read_enum_type): Update. | |
4074 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
4075 | * dwarf2read.c (setup_type_unit_groups) | |
4076 | (lnp_state_machine::handle_set_file, dwarf_record_line_p) | |
4077 | (lnp_state_machine::record_line, dwarf_decode_lines): Update. | |
4078 | * dbxread.c (process_one_symbol): Update. | |
4079 | * coffread.c (coff_symtab_read, enter_linenos) | |
4080 | (process_coff_symbol): Update. | |
4081 | * buildsym.h (current_subfile): Don't declare. | |
4082 | (get_current_subfile): Declare. | |
4083 | * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New | |
4084 | member. | |
4085 | (start_subfile, free_buildsym_compunit, push_subfile) | |
4086 | (prepare_for_building, start_symtab): Update. | |
4087 | (get_current_subfile): New function. | |
4088 | ||
a60f3166 TT |
4089 | 2018-07-20 Tom Tromey <tom@tromey.com> |
4090 | ||
4091 | * coffread.c (coff_symtab_read): Update. | |
4092 | * xcoffread.c (read_xcoff_symtab): Update. | |
4093 | * dwarf2read.c (new_symbol): Update. | |
4094 | (read_func_scope, read_lexical_block_scope): Update. | |
4095 | * dbxread.c (process_one_symbol): Update. | |
4096 | * buildsym.h (context_stack, context_stack_depth): Don't declare. | |
4097 | (outermost_context_p): Remove macro. | |
4098 | (outermost_context_p, get_current_context_stack) | |
4099 | (get_context_stack_depth): Declare. | |
4100 | (pop_context): Return struct context_stack. | |
4101 | * buildsym.c (struct buildsym_compunit) <m_context_stack: New | |
4102 | member. | |
4103 | (context_stack_size): Remove. | |
4104 | (INITIAL_CONTEXT_STACK_SIZE): Remove. | |
4105 | (prepare_for_building, end_symtab_get_static_block) | |
4106 | (augment_type_symtab, push_context): Update. | |
4107 | (pop_context): Return struct context_stack. | |
4108 | (outermost_context_p, get_current_context_stack) | |
4109 | (get_context_stack_depth): New functions. | |
4110 | (buildsym_init): Update. | |
4111 | ||
56ba65a0 TT |
4112 | 2018-07-20 Tom Tromey <tom@tromey.com> |
4113 | ||
4114 | * rust-exp.y: Now a pure parser. Update all rules. | |
4115 | (%union): Move earlier. | |
4116 | (current_parser, work_obstack): Remove globals. | |
4117 | (rust_parser, ~rust_parser): Update. | |
4118 | (class rust_parser) <copy_name, concat3, crate_name, super_name, | |
4119 | lex_character, lex_number, lex_string, lex_identifier, | |
4120 | rust_lookup_type, convert_params_to_types, convert_ast_to_type, | |
4121 | convert_name, convert_params_to_expression, | |
4122 | convert_ast_to_expression, ast_basic_type, ast_operation, | |
4123 | ast_compound_assignment, rust_op, ast_literal, ast_dliteral, | |
4124 | ast_structop, ast_structop_anonymous, ast_unary, ast_cast, | |
4125 | ast_call_ish, ast_path, ast_string, ast_struct, ast_range, | |
4126 | ast_array_type, ast_slice_type, ast_reference_type, | |
4127 | ast_pointer_type, ast_function_type, ast_tuple_type>: New methods. | |
4128 | (rust_parse): Update. | |
4129 | (rustyyerror, rustyylex): Add parser parameter. | |
4130 | (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test) | |
4131 | (rust_lex_stringish_test, rust_lex_test_sequence) | |
4132 | (rust_lex_test_trailing_dot, rust_lex_test_completion) | |
4133 | (rust_lex_test_push_back, rust_lex_tests): Update. | |
4134 | ||
4c693332 PA |
4135 | 2018-07-19 Pedro Alves <palves@redhat.com> |
4136 | ||
4137 | * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a | |
4138 | gdb::unique_xmalloc_ptr. | |
4139 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): | |
4140 | Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr. | |
4141 | * guile/scm-exception.c (gdbscm_exception_message_to_string): Use | |
4142 | copy-initialization. | |
4143 | * guile/scm-pretty-print.c (ppscm_print_children): Use | |
4144 | gdb::unique_xmalloc_ptr instead of cleanups. | |
4145 | (gdbscm_apply_val_pretty_printer): Remove cleanups. | |
4146 | * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a | |
4147 | gdb::unique_xmalloc_ptr. | |
4148 | * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): | |
4149 | Adjust to use gdb::unique_xmalloc_ptr. | |
4150 | * guile/scm-utils.c (extract_arg): Adjust. | |
4151 | * guile/scm-value.c (gdbscm_value_field): Adjust to use | |
4152 | gdb::unique_xmalloc_ptr instead of a cleanup. | |
4153 | ||
4581dc82 TT |
4154 | 2018-07-19 Tom Tromey <tom@tromey.com> |
4155 | ||
4156 | * utils.c (do_value_free_to_mark) | |
4157 | (make_cleanup_value_free_to_mark): Remove. | |
4158 | * utils.h (make_cleanup_value_free_to_mark): Remove. | |
4159 | ||
43cc6c3a PA |
4160 | 2018-07-19 Pedro Alves <palves@redhat.com> |
4161 | ||
4162 | * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a | |
4163 | forwarding reference. | |
4164 | ||
3a5f2a48 PA |
4165 | 2018-07-18 Pedro Alves <palves@redhat.com> |
4166 | ||
4167 | * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use | |
4168 | gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a | |
4169 | cleanup. | |
4170 | ||
557e56be PA |
4171 | 2018-07-18 Pedro Alves <palves@redhat.com> |
4172 | ||
4173 | * guile/guile-internal.h: Add comment about mixing GDB and Scheme | |
4174 | exceptions. | |
4175 | (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete. | |
4176 | (gdbscm_wrap): New. | |
4177 | * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree | |
4178 | directly instead of a cleanup. | |
4179 | * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ... | |
4180 | (vlscm_unop): ... this. Reimplement using gdbscm_wrap. | |
4181 | (vlscm_binop_gdbthrow): New, factored out from ... | |
4182 | (vlscm_binop): ... this. Reimplement using gdbscm_wrap. | |
4183 | (vlscm_rich_compare): Use gdbscm_wrap. | |
4184 | * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly | |
4185 | instead of a cleanup. | |
4186 | (gdbscm_lookup_global_symbol): Use xfree directly instead of a | |
4187 | cleanup. | |
4188 | * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): | |
4189 | Use xfree directly instead of a cleanup. | |
4190 | * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value): | |
4191 | Adjust to use gdbscm_wrap and scoped_value_mark. | |
4192 | (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap. | |
4193 | (gdbscm_value_address, gdbscm_value_dereference) | |
4194 | (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and | |
4195 | scoped_value_mark. | |
4196 | (gdbscm_value_dynamic_type): Use scoped_value_mark. | |
4197 | (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and | |
4198 | scoped_value_mark. | |
4199 | (gdbscm_value_subscript, gdbscm_value_call): Adjust to use | |
4200 | gdbscm_wrap and scoped_value_mark. | |
4201 | (gdbscm_value_to_string): Use xfree directly instead of a | |
4202 | cleanup. Move 'buffer' unique_ptr to TRY scope. | |
4203 | (gdbscm_value_to_lazy_string): Use xfree directly instead of a | |
4204 | cleanup. Move 'buffer' unique_ptr to TRY scope. Use | |
4205 | scoped_value_mark. | |
4206 | (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap. | |
4207 | (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and | |
4208 | scoped_value_mark. | |
4209 | (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use | |
4210 | gdbscm_wrap. | |
4211 | ||
42dc7699 TV |
4212 | 2018-07-18 Tom de Vries <tdevries@suse.de> |
4213 | ||
4214 | * findvar.c (default_read_var_value): Also resolve dynamic type for | |
4215 | LOC_OPTIMIZED_OUT vars. | |
4216 | ||
6592ceed MR |
4217 | 2018-07-18 Maciej W. Rozycki <macro@mips.com> |
4218 | ||
4219 | * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction | |
4220 | decoding. | |
4221 | ||
c6c6149a TT |
4222 | 2018-07-17 Tom Tromey <tom@tromey.com> |
4223 | ||
4224 | * guile/scm-param.c (pascm_set_func, pascm_show_func) | |
4225 | (compute_enum_list, pascm_set_param_value_x) | |
4226 | (gdbscm_parameter_value): Update. | |
4227 | * guile/guile-internal.h (gdbscm_scm_to_string): Update. | |
4228 | (gdbscm_scm_to_host_string): Update. | |
4229 | * guile/scm-math.c (vlscm_convert_typed_value_from_scheme): | |
4230 | Update. | |
4231 | * guile/scm-cmd.c (cmdscm_add_completion): Update. | |
4232 | * guile/scm-pretty-print.c (ppscm_print_string_repr): Update. | |
4233 | * guile/scm-string.c (gdbscm_scm_to_string): Return | |
4234 | unique_xmalloc_ptr. | |
4235 | (gdbscm_scm_to_host_string): Likewise. | |
4236 | ||
a1a31cb8 TT |
4237 | 2018-07-17 Tom Tromey <tom@tromey.com> |
4238 | ||
4239 | * guile/guile.c (gdbscm_eval_from_control_command): Update. | |
4240 | * guile/guile-internal.h (gdbscm_safe_eval_string): Update. | |
4241 | * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update. | |
4242 | * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return | |
4243 | unique_xmalloc_ptr. | |
4244 | ||
15bf3002 TT |
4245 | 2018-07-17 Tom Tromey <tom@tromey.com> |
4246 | ||
4247 | * guile/scm-param.c (pascm_signal_setshow_error): Update. | |
4248 | * guile/guile-internal.h (gdbscm_exception_message_to_string): | |
4249 | Update. | |
4250 | * guile/scm-cmd.c (cmdscm_function): Update. | |
4251 | * guile/scm-pretty-print.c | |
4252 | (ppscm_print_exception_unless_memory_error): Update. | |
4253 | * guile/scm-exception.c (gdbscm_exception_message_to_string): | |
4254 | Return unique_xmalloc_ptr. | |
4255 | ||
7eb1a66c TT |
4256 | 2018-07-17 Tom Tromey <tom@tromey.com> |
4257 | ||
4258 | * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception): | |
4259 | Use string_printf. | |
4260 | ||
ce73f310 JW |
4261 | 2018-07-17 Jim Wilson <jimw@sifive.com> |
4262 | ||
27724bad JW |
4263 | * riscv-tdep.c (riscv_has_feature): Delete comment that refers to |
4264 | set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always. | |
4265 | (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now | |
4266 | unecessary braces after EF_RISCV_RVC test. Delete call to | |
4267 | set_gdbarch_decr_pc_after_break. | |
4268 | ||
ce73f310 JW |
4269 | * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of |
4270 | RISCV_LAST_FP_REGNUM + 1. | |
4271 | (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM. | |
4272 | ||
056dec39 TT |
4273 | 2018-07-17 Tom Tromey <tom@tromey.com> |
4274 | ||
4275 | * configure.ac: Remove --disable-gdbcli. | |
4276 | * configure: Rebuild. | |
4277 | * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS) | |
4278 | (SUBDIR_CLI_CFLAGS): Remove. | |
4279 | (SFILES): Use SUBDIR_CLI_SRCS. | |
4280 | (COMMON_OBS): Use SUBDIR_CLI_OBS. | |
4281 | ||
4735f0ed TT |
4282 | 2018-07-17 Tom Tromey <tom@tromey.com> |
4283 | ||
4284 | PR gdb/18624: | |
4285 | * coffread.c (coff_symtab_read): Use scoped_free_pendings. | |
4286 | ||
117a0e99 JW |
4287 | 2018-07-16 Jim Wilson <jimw@sifive.com> |
4288 | ||
4289 | * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi. | |
4290 | ||
8a67aaa8 SM |
4291 | 2018-07-16 Simon Marchi <simon.marchi@ericsson.com> |
4292 | ||
4293 | * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused | |
4294 | variable. | |
4295 | (libunwind_frame_sniffer): Likewise. | |
4296 | (libunwind_frame_prev_register): Likewise. | |
4297 | (libunwind_sigtramp_frame_sniffer): Likewise. | |
4298 | * ia64-tdep.c (ia64_access_reg): Likewise. | |
4299 | (ia64_access_rse_reg): Likewise. | |
4300 | (ia64_libunwind_sigtramp_frame_this_id): Likewise. | |
4301 | * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise. | |
4302 | ||
ec74dcd8 SM |
4303 | 2018-07-16 Simon Marchi <simon.marchi@ericsson.com> |
4304 | ||
4305 | * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast. | |
4306 | ||
a700e753 SM |
4307 | 2018-07-16 Simon Marchi <simon.marchi@ericsson.com> |
4308 | ||
4309 | * remote-sim.c (gdbsim_target::close, | |
4310 | gdbsim_target::mourn_inferior): Remove unused variables. | |
4311 | ||
8b411ff8 SM |
4312 | 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca> |
4313 | ||
4314 | * ia64-tdep.c (ktab_buf): New global. | |
4315 | (getunwind_table): Return a gdb::optional<gdb::byte_vector>. | |
4316 | (get_kernel_table): Adjust. | |
4317 | ||
edb0470b TT |
4318 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4319 | ||
4320 | * xcoffread.c (read_xcoff_symtab): Use outermost_context_p. | |
4321 | * dwarf2read.c (using_directives, new_symbol): Use | |
4322 | outermost_context_p. | |
4323 | * dbxread.c (process_one_symbol): Use outermost_context_p. | |
4324 | * coffread.c (coff_symtab_read): Use outermost_context_p. | |
4325 | ||
6cccc9a8 TT |
4326 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4327 | ||
4328 | * dwarf2read.c (using_directives, read_func_scope) | |
4329 | (read_lexical_block_scope): Update. | |
4330 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. | |
4331 | * buildsym.h (local_using_directives, global_using_directives): | |
4332 | Don't declare. | |
4333 | (get_local_using_directives, set_local_using_directives) | |
4334 | (get_global_using_directives): Declare. | |
4335 | * buildsym.c (struct buildsym_compunit) <m_local_using_directives, | |
4336 | m_global_using_directives>: New members. | |
4337 | (finish_block_internal, prepare_for_building) | |
4338 | (reset_symtab_globals, end_symtab_get_static_block) | |
4339 | (push_context): Update. | |
4340 | (get_local_using_directives, set_local_using_directives) | |
4341 | (get_global_using_directives): New functions. | |
4342 | (buildsym_init): Update. | |
4343 | ||
652788a7 TT |
4344 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4345 | ||
4346 | * xcoffread.c (xcoff_initial_scan): Don't call | |
4347 | free_pending_blocks. | |
4348 | * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks. | |
4349 | * buildsym.h (class scoped_free_pendings): Add constructor. | |
4350 | (free_pending_blocks): Don't declare. | |
4351 | * buildsym.c (scoped_free_pendings::scoped_free_pendings): New. | |
4352 | (free_pending_blocks): Now static. | |
4353 | ||
8419ee53 TT |
4354 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4355 | ||
4356 | * buildsym.h (push_subfile, pop_subfile): Update declarations. | |
4357 | * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New | |
4358 | member. | |
4359 | (struct subfile_stack): Remove. | |
4360 | (subfile_stack): Remove. | |
4361 | (push_subfile, pop_subfile, buildsym_init): Update. | |
4362 | ||
ccdac490 TT |
4363 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4364 | ||
4365 | * buildsym.c (push_subfile): Use gdb_assert. | |
4366 | (pop_subfile): Use gdb_assert. | |
4367 | ||
43130d6f TT |
4368 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4369 | ||
4370 | * buildsym.h (merge_symbol_lists): Remove. | |
4371 | * buildsym.c (merge_symbol_lists): Remove. | |
4372 | ||
77d6f1aa TT |
4373 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4374 | ||
4375 | * stabsread.c (scan_file_globals): Update comment. | |
4376 | * stabsread.h (scan_file_globals): Move from buildsym.h. | |
4377 | * buildsym.h (scan_file_globals): Move to stabsread.h. | |
4378 | ||
2c722d18 TT |
4379 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4380 | ||
4381 | * xcoffread.c (xcoff_new_init): Update. | |
4382 | * mipsread.c (mipscoff_new_init): Update. | |
4383 | * mdebugread.c (mdebug_build_psymtabs): Update. | |
4384 | * elfread.c (elf_new_init): Update. | |
4385 | * dbxread.c (dbx_new_init, coffstab_build_psymtabs) | |
4386 | (elfstab_build_psymtabs, stabsect_build_psymtabs): Update. | |
4387 | * buildsym.h (buildsym_new_init): Don't declare. | |
4388 | * buildsym.c (buildsym_new_init): Remove. | |
4389 | ||
5985ac61 TT |
4390 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4391 | ||
4392 | * stabsread.h (within_function): Move from buildsym.h. | |
4393 | * stabsread.c (start_stabs): Clear within_function. | |
4394 | * coffread.c (coff_start_symtab): Clear within_function. | |
4395 | * buildsym.h (within_function): Move to stabsread.h. | |
4396 | * buildsym.c (prepare_for_building): Update. | |
4397 | ||
6b84eeb2 TT |
4398 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4399 | ||
4400 | * stabsread.h (processing_gcc_compilation): Move from buildsym.h. | |
4401 | * dwarf2read.c (dwarf2_start_symtab): Don't set | |
4402 | processing_gcc_compilation. | |
4403 | * buildsym.h (processing_gcc_compilation): Move to stabsread.h. | |
4404 | ||
2150c3ef TT |
4405 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4406 | ||
4407 | * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text) | |
4408 | (next_symbol_text_func): Move from buildsym.h. | |
4409 | * stabsread.c (hashname): Move from buildsym.c. | |
4410 | * buildsym.h (HASHSIZE, symnum, next_symbol_text) | |
4411 | (next_symbol_text_func, hashname): Move to stabsread.h. | |
4412 | * buildsym.c: Don't include bcache.h | |
4413 | (hashname): Move to stasbread.c. | |
4414 | ||
0ec44fc0 TT |
4415 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4416 | ||
4417 | * buildsym.h (context_stack_size): Don't declare. | |
4418 | * buildsym.c (context_stack_size): New global. | |
4419 | ||
81cc346d TT |
4420 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4421 | ||
4422 | * dbxread.c (processing_acc_compilation): New global. | |
4423 | * buildsym.h (processing_acc_compilation): Don't declare. | |
4424 | ||
2c99ee5c TT |
4425 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4426 | ||
4427 | * xcoffread.c (aix_process_linenos, complete_symtab): Update. | |
4428 | * dbxread.c (read_ofile_symtab): Update. | |
4429 | * coffread.c (coff_start_symtab, coff_end_symtab): Update. | |
4430 | * buildsym.h (last_source_start_addr): Remove. | |
4431 | (set_last_source_start_addr, get_last_source_start_addr): | |
4432 | Declare. | |
4433 | * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr | |
4434 | parameter. | |
4435 | (struct buildsym_compunit) <m_last_source_start_addr>: New | |
4436 | member. | |
4437 | (prepare_for_building): Remove start_addr parameter. | |
4438 | (start_symtab, restart_symtab, end_symtab_get_static_block) | |
4439 | (end_symtab_with_blockvector): Update. | |
4440 | (set_last_source_start_addr, get_last_source_start_addr): New | |
4441 | functions. | |
4442 | ||
530fedbc TT |
4443 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4444 | ||
4445 | * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New | |
4446 | member. | |
4447 | (have_line_numbers): Remove. | |
4448 | (record_line, prepare_for_building, end_symtab_get_static_block) | |
4449 | (augment_type_symtab): Update. | |
4450 | ||
6a976300 TT |
4451 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4452 | ||
4453 | * buildsym.c (~buildsym_compunit): Free the macro table. | |
4454 | (struct buildsym_compunit) <get_macro_table, release_macros>: New | |
4455 | methods. | |
4456 | <m_pending_macros>: New member. | |
4457 | (pending_macros): Remove. | |
4458 | (~scoped_free_pendings, get_macro_table, prepare_for_building) | |
4459 | (reset_symtab_globals, end_symtab_get_static_block) | |
4460 | (end_symtab_with_blockvector, augment_type_symtab) | |
4461 | (buildsym_init): Update. | |
4462 | ||
c0015d44 TT |
4463 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4464 | ||
4465 | * buildsym.c (buildsym_compunit::buildsym_compunit): Add name | |
4466 | parameter. | |
4467 | (buildsym_compunit::set_last_source_file): New method. | |
4468 | <m_last_source_file>: New member. | |
4469 | (prepare_for_building): Remove "name" parameter. | |
4470 | (start_symtab, restart_symtab, reset_symtab_globals): Update. | |
4471 | (last_source_file): Remove. | |
4472 | (set_last_source_file, get_last_source_file): Update. | |
4473 | ||
e62cca7c TT |
4474 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4475 | ||
4476 | * buildsym.c (prepare_for_building): Add assert. | |
4477 | ||
905eb0e2 TT |
4478 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4479 | ||
4480 | * buildsym.c (~buildsym_compunit): Update. | |
4481 | (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr. | |
4482 | (start_subfile, patch_subfile_names) | |
4483 | (end_symtab_with_blockvector): Update. | |
4484 | ||
b248663f TT |
4485 | 2018-07-16 Tom Tromey <tom@tromey.com> |
4486 | ||
4487 | * buildsym.c (struct buildsym_compunit): Add constructor, | |
4488 | destructor, initializers. | |
4489 | (start_buildsym_compunit): Remove. | |
4490 | (free_buildsym_compunit): Use "delete". | |
4491 | (start_symtab, restart_symtab): Use "new". | |
4492 | ||
ff27d073 SM |
4493 | 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca> |
4494 | ||
4495 | * symfile.c (set_objfile_default_section_offset): Remove struct | |
4496 | keyword. | |
4497 | ||
6a15ecf5 SH |
4498 | 2018-07-14 Stafford Horne <shorne@gmail.com> |
4499 | ||
4500 | * (Responsible Maintainers): Add myself as or1k maintainer. | |
4501 | ||
027a4c30 TT |
4502 | 2018-07-13 Tom Tromey <tom@tromey.com> |
4503 | ||
4504 | * symfile.c (set_objfile_default_section_offset): Use extra braces | |
4505 | around initializer. | |
4506 | ||
5c1eda30 AA |
4507 | 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
4508 | ||
4509 | * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a | |
4510 | non-branching basr. | |
4511 | ||
bc7b042b PW |
4512 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4513 | ||
4514 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4515 | unittests/cli-utils-selftests.c | |
4516 | * unittests/cli-utils-selftests.c: New file. | |
4517 | ||
a14c4daa PW |
4518 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4519 | ||
4520 | * NEWS: Mention new commands. Mention change to 'thread apply'. | |
4521 | ||
1fe75df7 PW |
4522 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4523 | ||
4524 | * thread.c (thr_try_catch_cmd): New function. | |
4525 | (thread_apply_all_command): Handle qcs flags. | |
4526 | (thread_apply_command): Handle qcs flags. | |
4527 | (taas_command): New function. | |
4528 | (tfaas_command): New function. | |
4529 | (_initialize_thread): Update to setup the new commands 'taas | |
4530 | and 'tfaas'. Change doc string for 'thread apply'. | |
4531 | ||
6a70eb7d PW |
4532 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4533 | ||
4534 | * stack.c: (trailing_outermost_frame): New function, mostly | |
4535 | extracted from backtrace_command_1. | |
4536 | (leading_innermost_frame): New function. | |
4537 | (backtrace_command_1): Update to call trailing_outermost_frame. | |
4538 | (frame_apply_command_count): New function. | |
4539 | (frame_apply_level_command): New function. | |
4540 | (frame_apply_all_command): New function. | |
4541 | (frame_apply_command): New function. | |
4542 | (faas_command): New function. | |
4543 | (frame_cmd_list): New variable. | |
4544 | (_initialize_stack): Update to setup the new commands 'frame apply' | |
4545 | and 'faas'. | |
4546 | ||
529c08b2 PW |
4547 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4548 | ||
4549 | * cli-utils.c (number_or_range_parser::get_number): Only handle | |
4550 | numbers or convenience var as numbers. | |
4551 | (parse_flags): New function. | |
4552 | (parse_flags_qcs): New function. | |
4553 | (number_or_range_parser::finished): Ensure parsing end is detected | |
4554 | before end of string. | |
4555 | * cli-utils.h (parse_flags): New function. | |
4556 | (parse_flags_qcs): New function. | |
4557 | (number_or_range_parser): Remove m_finished bool. | |
4558 | (number_or_range_parser::skip_range): Set m_in_range to false. | |
4559 | ||
64b58472 SDJ |
4560 | 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com> |
4561 | ||
4562 | * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building | |
4563 | on Windows. | |
4564 | ||
c7ab0aef SDJ |
4565 | 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> |
4566 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4567 | Paul Fertser <fercerpav@gmail.com> | |
4568 | Tsutomu Seki <sekiriki@gmail.com> | |
4569 | Pedro Alves <palves@redhat.com> | |
4570 | ||
4571 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4572 | 'unittests/parse-connection-spec-selftests.c'. | |
4573 | (COMMON_SFILES): Add 'common/netstuff.c'. | |
4574 | (HFILES_NO_SRCDIR): Add 'common/netstuff.h'. | |
4575 | * NEWS (Changes since GDB 8.2): Mention IPv6 support. | |
4576 | * common/netstuff.c: New file. | |
4577 | * common/netstuff.h: New file. | |
4578 | * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'. | |
4579 | (wait_for_connect): Update comment. New parameter | |
4580 | 'gdb::optional<int> sock' instead of 'struct serial *scb'. | |
4581 | Use 'sock' directly instead of 'scb->fd'. | |
4582 | (try_connect): New function, with code from 'net_open'. | |
4583 | (net_open): Rewrite main loop to deal with multiple | |
4584 | sockets/addresses. Handle IPv6-style hostnames; implement | |
4585 | support for IPv6 connections. | |
4586 | * unittests/parse-connection-spec-selftests.c: New file. | |
4587 | ||
4c7333b3 PA |
4588 | 2018-07-11 Pedro Alves <palves@redhat.com> |
4589 | ||
4590 | PR gdb/23377 | |
4591 | * remote.c (remote_target::remote_detach_pid): Call | |
4592 | set_current_process. | |
4593 | ||
a6f88f6e PA |
4594 | 2018-07-11 Pedro Alves <palves@redhat.com> |
4595 | ||
4596 | * h8300-tdep.c (h8300_gdbarch_init): Remove | |
4597 | set_gdbarch_ecoff_reg_to_regnum calls. | |
4598 | ||
16ff70dd SDJ |
4599 | 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> |
4600 | ||
4601 | PR c++/23373 | |
4602 | * c-typeprint.c (c_type_print_base_struct_union): Don't print | |
4603 | offsets/sizes for static members of a class/struct. | |
4604 | ||
12863263 AH |
4605 | 2018-07-11 Alan Hayward <alan.hayward@arm.com> |
4606 | ||
4607 | * target-descriptions.c (tdesc_register_bitsize): Rename. | |
4608 | * target-descriptions.h (tdesc_register_bitsize): Likewise. | |
4609 | * rs6000-tdep.c (rs6000_gdbarch_init): Use new name. | |
4610 | * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size. | |
4611 | ||
1123588c TT |
4612 | 2018-07-10 Tom Tromey <tom@tromey.com> |
4613 | ||
4614 | * breakpoint.c (moribund_locations): Now static and a | |
4615 | std::vector. | |
4616 | (breakpoint_init_inferior, moribund_breakpoint_here_p) | |
4617 | (build_bpstat_chain, update_global_location_list) | |
4618 | (breakpoint_retire_moribund): Update. | |
4619 | * breakpoint.h (bp_location_p): Remove typedef. Don't declare | |
4620 | VEC. | |
4621 | ||
8c49aa89 AB |
4622 | 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
4623 | ||
4624 | * riscv-tdep.c (riscv_is_fp_regno_p): New function. | |
4625 | (riscv_register_reggroup_p): Use new function, remove unneeded | |
4626 | parenthesis. | |
4627 | (riscv_push_dummy_call): Extend assert to compare against xlen or | |
4628 | flen based on register type. | |
4629 | ||
42ecac17 AB |
4630 | 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
4631 | ||
4632 | * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME. | |
4633 | ||
055303e2 AB |
4634 | 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com> |
4635 | ||
4636 | * remote.c (show_hardware_watchpoint_limit): New function. | |
4637 | (show_hardware_watchpoint_length_limit): New function. | |
4638 | (show_hardware_breakpoint_limit): New function. | |
4639 | (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd | |
4640 | where appropriate, update help text. | |
4641 | ||
8fd32c1c TT |
4642 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4643 | ||
4644 | * Makefile.in (CDEPS): Don't mention XM_CDEPS. | |
4645 | (CLIBS): Don't mention NAT_CLIBS. | |
4646 | ||
31278b51 TT |
4647 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4648 | ||
4649 | * Makefile.in (ADD_FILES, ADD_DEPS): Remove. | |
4650 | (LIBGDB_OBS, clean mostlyclean): Update. | |
4651 | (gdb$(EXEEXT), insight$(EXEEXT)): Update. | |
4652 | ||
e5fd1493 TT |
4653 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4654 | ||
4655 | * Makefile.in (%.c: %.y): Use ECHO_YACC. | |
4656 | (%.c: %.l): Use ECHO_LEX. Just fail if flex not available. | |
4657 | * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables. | |
4658 | ||
981e0c0c TT |
4659 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4660 | ||
4661 | * Makefile.in (ALLDEPFILES): Remove exec.c. | |
4662 | (COMMON_OBS): Remove exec.o. | |
4663 | (COMMON_SFILES): Add exec.c. | |
4664 | ||
14ccceb2 TT |
4665 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4666 | ||
4667 | * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove. | |
4668 | ||
5d3c3a68 TT |
4669 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4670 | ||
4671 | * Makefile.in (clean mostlyclean): Remove stamp-version. | |
4672 | (version.c): Depend on stamp-version. | |
4673 | (stamp-version): New rule, from version.c rule. | |
4674 | ||
1998086d TT |
4675 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4676 | ||
4677 | * Makefile.in (init.c): Depend on stamp-init. | |
4678 | (stamp-init): New rule, from init.c rule. | |
4679 | (clean mostlyclean): Remove stamp-init. | |
4680 | ||
4c754949 TT |
4681 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4682 | ||
4683 | * Makefile.in (INIT_FILES): Remove CONFIG_SRCS, | |
4684 | SUBDIR_GCC_COMPILE_SRCS. | |
4685 | ||
6497f1dd TT |
4686 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4687 | ||
4688 | * Makefile.in (init.c): Remove some unused sed rules. | |
4689 | ||
97a34db9 TT |
4690 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4691 | ||
4692 | * Makefile.in (TSOBS): Remove. | |
4693 | (INIT_FILES): Update. | |
4694 | (LIBGDB_OBS): Update. | |
4695 | (COMMON_SFILES): Add inflow.c. | |
4696 | (SFILES): Remove inflow.c. | |
4697 | ||
25289ac1 JK |
4698 | 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
4699 | ||
4700 | * contrib/gdb-add-index.sh ($dwarf5): New, use it. | |
4701 | ||
e83f4d97 SM |
4702 | 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca> |
4703 | ||
4869c585 SM |
4704 | * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name, |
4705 | get_saveloc_name, is_signal_frame_name, step_name, | |
4706 | init_remote_name, create_addr_space_name, | |
4707 | destroy_addr_space_name, search_unwind_table_name, | |
4708 | find_dyn_list_name): Constify. | |
e83f4d97 | 4709 | |
6821842f SM |
4710 | 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca> |
4711 | ||
4712 | * darwin-nat.c (darwin_pthread_kill): New function. | |
4713 | (darwin_resume_thread): Use darwin_pthread_kill. | |
4714 | ||
c530603c TV |
4715 | 2018-07-05 Tom de Vries <tdevries@suse.de> |
4716 | ||
4717 | * macroexp.c (macro_buffer) <operator=>: New member function. | |
4718 | ||
a7d0f0f0 TT |
4719 | 2018-07-04 Tom Tromey <tom@tromey.com> |
4720 | ||
4721 | * darwin-nat.c (darwin_attach_pid): Use exit_inferior. | |
4722 | ||
6242c6a6 SM |
4723 | 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca> |
4724 | ||
4725 | * common/common-defs.h (HAVE_USEFUL_SBRK): Define. | |
4726 | * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK. | |
4727 | * maint.c: Likewise. | |
4728 | * top.c: Likewise. | |
4729 | ||
4e5b2f89 JB |
4730 | 2018-07-04 Joel Brobecker <brobecker@adacore.com> |
4731 | ||
4732 | * NEWS: Create a new section for the next release branch. | |
4733 | Rename the section of the current branch, now that it has | |
4734 | been cut. | |
4735 | ||
538ccc4a JB |
4736 | 2018-07-04 Joel Brobecker <brobecker@adacore.com> |
4737 | ||
4738 | GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e): | |
4739 | * version.in: Bump version to 8.2.50.DATE-git. | |
4740 | ||
1b919490 VB |
4741 | 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com> |
4742 | Pedro Alves <palves@redhat.com> | |
4743 | ||
4744 | * linux-nat.c (linux_init_ptrace): Rename to ... | |
4745 | (linux_init_ptrace_procfs): ... this. Call | |
4746 | linux_proc_init_warnings. | |
4747 | (linux_nat_target::post_attach) | |
4748 | (linux_nat_target::post_startup_inferior): Adjust. | |
4749 | * nat/linux-procfs.c (linux_proc_init_warnings): Define function. | |
4750 | * nat/linux-procfs.h (linux_proc_init_warnings): Declare function. | |
4751 | ||
1ea5da02 TV |
4752 | 2018-07-04 Tom de Vries <tdevries@suse.de> |
4753 | ||
4754 | * dwarf2read.c (error_check_comp_unit_head): Move dwarf version | |
4755 | check ... | |
4756 | (read_comp_unit_head): ... here. | |
4757 | ||
f51e0e20 TT |
4758 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4759 | ||
4760 | * tracepoint.c (process_tracepoint_on_disconnect, start_tracing) | |
4761 | (stop_tracing, tstatus_command) | |
4762 | (find_matching_tracepoint_location, merge_uploaded_tracepoints) | |
4763 | (print_one_static_tracepoint_marker): Update. | |
4764 | * breakpoint.c (static_tracepoints_here, all_tracepoints): Return | |
4765 | std::vector. | |
4766 | * breakpoint.h (breakpoint_p): Remove typedef. Don't declare | |
4767 | VEC. | |
4768 | (all_tracepoints, static_tracepoints_here): Return std::vector. | |
4769 | ||
d7e15655 TT |
4770 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4771 | ||
4772 | * common/ptid.c (ptid_equal): Remove. | |
4773 | * common/ptid.h (ptid_equal): Don't declare. | |
4774 | * ada-tasks.c: Update. | |
4775 | * breakpoint.c: Update. | |
4776 | * common/agent.c: Update. | |
4777 | * corelow.c: Update. | |
4778 | * darwin-nat-info.c: Update. | |
4779 | * darwin-nat.c: Update. | |
4780 | * dcache.c: Update. | |
4781 | * dtrace-probe.c: Update. | |
4782 | * dummy-frame.c: Update. | |
4783 | * fbsd-nat.c: Update. | |
4784 | * frame.c: Update. | |
4785 | * gdbthread.h: Update. | |
4786 | * gnu-nat.c: Update. | |
4787 | * go32-nat.c: Update. | |
4788 | * inf-loop.c: Update. | |
4789 | * inf-ptrace.c: Update. | |
4790 | * infcall.c: Update. | |
4791 | * infcmd.c: Update. | |
4792 | * inflow.c: Update. | |
4793 | * infrun.c: Update. | |
4794 | * linux-fork.c: Update. | |
4795 | * linux-nat.c: Update. | |
4796 | * linux-thread-db.c: Update. | |
4797 | * mi/mi-cmd-var.c: Update. | |
4798 | * mi/mi-interp.c: Update. | |
4799 | * mi/mi-main.c: Update. | |
4800 | * nto-procfs.c: Update. | |
4801 | * ppc-linux-tdep.c: Update. | |
4802 | * procfs.c: Update. | |
4803 | * python/py-inferior.c: Update. | |
4804 | * python/py-record-btrace.c: Update. | |
4805 | * python/py-record.c: Update. | |
4806 | * ravenscar-thread.c: Update. | |
4807 | * regcache.c: Update. | |
4808 | * remote-sim.c: Update. | |
4809 | * remote.c: Update. | |
4810 | * sol-thread.c: Update. | |
4811 | * solib.c: Update. | |
4812 | * target.c: Update. | |
4813 | * tui/tui-stack.c: Update. | |
4814 | * varobj.c: Update. | |
4815 | * windows-nat.c: Update. | |
4816 | * windows-tdep.c: Update. | |
4817 | ||
26a57c92 TT |
4818 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4819 | ||
4820 | * common/ptid.c (ptid_match): Remove. | |
4821 | * common/ptid.h (ptid_match): Don't declare. | |
4822 | * fbsd-nat.c: Update. | |
4823 | * infcmd.c: Update. | |
4824 | * infrun.c: Update. | |
4825 | * linux-nat.c: Update. | |
4826 | * record-btrace.c: Update. | |
4827 | * regcache.c: Update. | |
4828 | * remote.c: Update. | |
4829 | ||
d2a107e3 TT |
4830 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4831 | ||
4832 | * common/ptid.c (ptid_tid_p): Remove. | |
4833 | * common/ptid.h (ptid_tid_p): Don't declare. | |
4834 | * sol-thread.c: Update. | |
4835 | ||
15a9e13e TT |
4836 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4837 | ||
4838 | * common/ptid.c (ptid_lwp_p): Remove. | |
4839 | * common/ptid.h (ptid_lwp_p): Don't declare. | |
4840 | * fbsd-nat.c: Update. | |
4841 | * linux-nat.c: Update. | |
4842 | * nat/linux-procfs.c: Update. | |
4843 | * nat/x86-linux-dregs.c: Update. | |
4844 | * sol-thread.c: Update. | |
4845 | ||
0e998d96 TT |
4846 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4847 | ||
4848 | * common/ptid.c (ptid_is_pid): Remove. | |
4849 | * common/ptid.h (ptid_is_pid): Don't declare. | |
4850 | * infrun.c: Update. | |
4851 | * linux-nat.c: Update. | |
4852 | * mi/mi-interp.c: Update. | |
4853 | * remote.c: Update. | |
4854 | * thread.c: Update. | |
4855 | ||
cc6bcb54 TT |
4856 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4857 | ||
4858 | * common/ptid.c (ptid_get_tid): Remove. | |
4859 | * common/ptid.h (ptid_get_tid): Don't declare. | |
4860 | * ada-tasks.c: Update. | |
4861 | * aix-thread.c: Update. | |
4862 | * bsd-uthread.c: Update. | |
4863 | * darwin-nat.c: Update. | |
4864 | * fbsd-nat.c: Update. | |
4865 | * i386-darwin-nat.c: Update. | |
4866 | * infrun.c: Update. | |
4867 | * linux-tdep.c: Update. | |
4868 | * nto-procfs.c: Update. | |
4869 | * ppc-ravenscar-thread.c: Update. | |
4870 | * python/py-infthread.c: Update. | |
4871 | * ravenscar-thread.c: Update. | |
4872 | * sol-thread.c: Update. | |
4873 | * sparc-ravenscar-thread.c: Update. | |
4874 | * windows-nat.c: Update. | |
4875 | ||
e38504b3 TT |
4876 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4877 | ||
4878 | * common/ptid.c (ptid_get_lwp): Remove. | |
4879 | * common/ptid.h (ptid_get_lwp): Don't declare. | |
4880 | * aarch64-linux-nat.c: Update. | |
4881 | * ada-tasks.c: Update. | |
4882 | * aix-thread.c: Update. | |
4883 | * amd64-linux-nat.c: Update. | |
4884 | * arm-linux-nat.c: Update. | |
4885 | * corelow.c: Update. | |
4886 | * fbsd-nat.c: Update. | |
4887 | * fbsd-tdep.c: Update. | |
4888 | * gnu-nat.c: Update. | |
4889 | * i386-cygwin-tdep.c: Update. | |
4890 | * i386-gnu-nat.c: Update. | |
4891 | * i386-linux-nat.c: Update. | |
4892 | * ia64-linux-nat.c: Update. | |
4893 | * inf-ptrace.c: Update. | |
4894 | * infrun.c: Update. | |
4895 | * linux-fork.c: Update. | |
4896 | * linux-nat.c: Update. | |
4897 | * linux-tdep.c: Update. | |
4898 | * linux-thread-db.c: Update. | |
4899 | * mips-linux-nat.c: Update. | |
4900 | * nat/aarch64-linux-hw-point.c: Update. | |
4901 | * nat/aarch64-linux.c: Update. | |
4902 | * nat/linux-btrace.c: Update. | |
4903 | * nat/linux-osdata.c: Update. | |
4904 | * nat/linux-procfs.c: Update. | |
4905 | * nat/x86-linux-dregs.c: Update. | |
4906 | * obsd-nat.c: Update. | |
4907 | * ppc-fbsd-nat.c: Update. | |
4908 | * ppc-linux-nat.c: Update. | |
4909 | * procfs.c: Update. | |
4910 | * python/py-infthread.c: Update. | |
4911 | * ravenscar-thread.c: Update. | |
4912 | * remote.c: Update. | |
4913 | * s390-linux-nat.c: Update. | |
4914 | * sol-thread.c: Update. | |
4915 | * sol2-tdep.c: Update. | |
4916 | * spu-linux-nat.c: Update. | |
4917 | * x86-linux-nat.c: Update. | |
4918 | * xtensa-linux-nat.c: Update. | |
4919 | ||
e99b03dc TT |
4920 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4921 | ||
4922 | * common/ptid.c (ptid_get_pid): Remove. | |
4923 | * common/ptid.h (ptid_get_pid): Don't declare. | |
4924 | * aarch64-linux-nat.c: Update. | |
4925 | * ada-lang.c: Update. | |
4926 | * aix-thread.c: Update. | |
4927 | * alpha-bsd-nat.c: Update. | |
4928 | * amd64-fbsd-nat.c: Update. | |
4929 | * amd64-linux-nat.c: Update. | |
4930 | * arm-linux-nat.c: Update. | |
4931 | * arm-nbsd-nat.c: Update. | |
4932 | * auxv.c: Update. | |
4933 | * break-catch-syscall.c: Update. | |
4934 | * breakpoint.c: Update. | |
4935 | * bsd-uthread.c: Update. | |
4936 | * corelow.c: Update. | |
4937 | * ctf.c: Update. | |
4938 | * darwin-nat.c: Update. | |
4939 | * fbsd-nat.c: Update. | |
4940 | * fbsd-tdep.c: Update. | |
4941 | * gcore.c: Update. | |
4942 | * gnu-nat.c: Update. | |
4943 | * hppa-nbsd-nat.c: Update. | |
4944 | * hppa-obsd-nat.c: Update. | |
4945 | * i386-fbsd-nat.c: Update. | |
4946 | * ia64-linux-nat.c: Update. | |
4947 | * inf-ptrace.c: Update. | |
4948 | * infcmd.c: Update. | |
4949 | * inferior.c: Update. | |
4950 | * inferior.h: Update. | |
4951 | * inflow.c: Update. | |
4952 | * infrun.c: Update. | |
4953 | * linux-fork.c: Update. | |
4954 | * linux-nat.c: Update. | |
4955 | * linux-tdep.c: Update. | |
4956 | * linux-thread-db.c: Update. | |
4957 | * m68k-bsd-nat.c: Update. | |
4958 | * mi/mi-interp.c: Update. | |
4959 | * mi/mi-main.c: Update. | |
4960 | * mips-linux-nat.c: Update. | |
4961 | * mips-nbsd-nat.c: Update. | |
4962 | * mips64-obsd-nat.c: Update. | |
4963 | * nat/aarch64-linux-hw-point.c: Update. | |
4964 | * nat/aarch64-linux.c: Update. | |
4965 | * nat/linux-btrace.c: Update. | |
4966 | * nat/linux-osdata.c: Update. | |
4967 | * nat/linux-procfs.c: Update. | |
4968 | * nat/x86-linux-dregs.c: Update. | |
4969 | * nto-procfs.c: Update. | |
4970 | * obsd-nat.c: Update. | |
4971 | * ppc-linux-nat.c: Update. | |
4972 | * ppc-nbsd-nat.c: Update. | |
4973 | * ppc-obsd-nat.c: Update. | |
4974 | * proc-service.c: Update. | |
4975 | * procfs.c: Update. | |
4976 | * python/py-inferior.c: Update. | |
4977 | * python/py-infthread.c: Update. | |
4978 | * ravenscar-thread.c: Update. | |
4979 | * record.c: Update. | |
4980 | * remote-sim.c: Update. | |
4981 | * remote.c: Update. | |
4982 | * rs6000-nat.c: Update. | |
4983 | * s390-linux-nat.c: Update. | |
4984 | * sh-nbsd-nat.c: Update. | |
4985 | * sol-thread.c: Update. | |
4986 | * sparc-nat.c: Update. | |
4987 | * sparc64-tdep.c: Update. | |
4988 | * spu-linux-nat.c: Update. | |
4989 | * spu-tdep.c: Update. | |
4990 | * target-debug.h: Update. | |
4991 | * target.c: Update. | |
4992 | * thread.c: Update. | |
4993 | * tid-parse.c: Update. | |
4994 | * tracefile-tfile.c: Update. | |
4995 | * vax-bsd-nat.c: Update. | |
4996 | * windows-nat.c: Update. | |
4997 | * x86-linux-nat.c: Update. | |
4998 | * x86-nat.c: Update. | |
4999 | ||
f2907e49 TT |
5000 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5001 | ||
5002 | * common/ptid.c (pid_to_ptid): Remove. | |
5003 | * common/ptid.h (pid_to_ptid): Don't declare. | |
5004 | * aix-thread.c: Update. | |
5005 | * arm-linux-nat.c: Update. | |
5006 | * common/ptid.c: Update. | |
5007 | * common/ptid.h: Update. | |
5008 | * corelow.c: Update. | |
5009 | * ctf.c: Update. | |
5010 | * darwin-nat.c: Update. | |
5011 | * fbsd-nat.c: Update. | |
5012 | * fork-child.c: Update. | |
5013 | * gnu-nat.c: Update. | |
5014 | * go32-nat.c: Update. | |
5015 | * inf-ptrace.c: Update. | |
5016 | * infcmd.c: Update. | |
5017 | * inferior.c: Update. | |
5018 | * infrun.c: Update. | |
5019 | * linux-fork.c: Update. | |
5020 | * linux-nat.c: Update. | |
5021 | * nat/aarch64-linux-hw-point.c: Update. | |
5022 | * nat/fork-inferior.c: Update. | |
5023 | * nat/x86-linux-dregs.c: Update. | |
5024 | * nto-procfs.c: Update. | |
5025 | * obsd-nat.c: Update. | |
5026 | * procfs.c: Update. | |
5027 | * progspace.c: Update. | |
5028 | * remote.c: Update. | |
5029 | * rs6000-nat.c: Update. | |
5030 | * s390-linux-nat.c: Update. | |
5031 | * sol-thread.c: Update. | |
5032 | * spu-linux-nat.c: Update. | |
5033 | * target.c: Update. | |
5034 | * top.c: Update. | |
5035 | * tracefile-tfile.c: Update. | |
5036 | * windows-nat.c: Update. | |
5037 | ||
fd79271b TT |
5038 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5039 | ||
5040 | * common/ptid.h (ptid_build): Don't declare. | |
5041 | * common/ptid.c (ptid_build): Remove. | |
5042 | * aix-thread.c: Update. | |
5043 | * bsd-kvm.c: Update. | |
5044 | * bsd-uthread.c: Update. | |
5045 | * common/agent.c: Update. | |
5046 | * common/ptid.c: Update. | |
5047 | * common/ptid.h: Update. | |
5048 | * corelow.c: Update. | |
5049 | * darwin-nat.c: Update. | |
5050 | * fbsd-nat.c: Update. | |
5051 | * gnu-nat.c: Update. | |
5052 | * linux-fork.c: Update. | |
5053 | * linux-nat.c: Update. | |
5054 | * linux-thread-db.c: Update. | |
5055 | * nat/linux-osdata.c: Update. | |
5056 | * nat/linux-procfs.c: Update. | |
5057 | * nto-procfs.c: Update. | |
5058 | * obsd-nat.c: Update. | |
5059 | * proc-service.c: Update. | |
5060 | * procfs.c: Update. | |
5061 | * ravenscar-thread.c: Update. | |
5062 | * remote-sim.c: Update. | |
5063 | * remote.c: Update. | |
5064 | * sol-thread.c: Update. | |
5065 | * target.c: Update. | |
5066 | * windows-nat.c: Update. | |
5067 | ||
057302ce TT |
5068 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5069 | ||
5070 | * infrun.c (follow_exec): Use exit_inferior_silent. | |
5071 | * inferior.c (exit_inferior_num_silent): Remove. | |
5072 | * inferior.h (exit_inferior_num_silent): Don't declare. | |
5073 | ||
a50c11c6 TT |
5074 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5075 | ||
5076 | PR cli/23340: | |
5077 | * darwin-nat.c (darwin_attach_pid): Reset inferior and | |
5078 | inferior_ptid on error. | |
5079 | ||
471b9d15 MR |
5080 | 2018-07-02 Maciej W. Rozycki <macro@mips.com> |
5081 | Simon Marchi <simon.marchi@polymtl.ca> | |
5082 | ||
5083 | PR tdep/8282 | |
5084 | * disasm.h (gdb_disassembler): Add | |
5085 | `m_disassembler_options_holder'. member | |
5086 | * disasm.c (get_all_disassembler_options): New function. | |
5087 | (gdb_disassembler::gdb_disassembler): Use it. | |
5088 | (gdb_buffered_insn_length_init_dis): Likewise. | |
5089 | (gdb_buffered_insn_length): Adjust accordingly. | |
5090 | (set_disassembler_options): Handle options with arguments. | |
5091 | (show_disassembler_options_sfunc): Likewise. Add a leading new | |
5092 | line if showing options with descriptions. | |
5093 | (disassembler_options_completer): Adapt to using the | |
5094 | `disasm_options_and_args_t' structure. | |
5095 | * mips-tdep.c (mips_disassembler_options): New variable. | |
5096 | (mips_disassembler_options_o32): Likewise. | |
5097 | (mips_disassembler_options_n32): Likewise. | |
5098 | (mips_disassembler_options_n64): Likewise. | |
5099 | (gdb_print_insn_mips): Don't set `disassembler_options'. | |
5100 | (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove | |
5101 | functions. | |
5102 | (mips_gdbarch_init): Always set `gdbarch_print_insn' to | |
5103 | `gdb_print_insn_mips'. Set `gdbarch_disassembler_options', | |
5104 | `gdbarch_disassembler_options_implicit' and | |
5105 | `gdbarch_valid_disassembler_options'. | |
5106 | * arm-tdep.c (_initialize_arm_tdep): Adapt to using the | |
5107 | `disasm_options_and_args_t' structure. | |
5108 | * gdbarch.sh (disassembler_options_implicit): New `gdbarch' | |
5109 | method. | |
5110 | (valid_disassembler_options): Switch from `disasm_options_t' to | |
5111 | the `disasm_options_and_args_t' structure. | |
5112 | * NEWS: Document `set disassembler-options' support for the MIPS | |
5113 | target. | |
5114 | * gdbarch.h: Regenerate. | |
5115 | * gdbarch.c: Regenerate. | |
5116 | ||
41823f29 SH |
5117 | 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de> |
5118 | ||
5119 | * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries. | |
5120 | ||
41206e32 JB |
5121 | 2018-06-29 Joel Brobecker <brobecker@adacore.com> |
5122 | ||
5123 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing | |
5124 | parameter in call to amd64_target_description. | |
5125 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise. | |
5126 | * amd64-fbsd-tdep.c (amd64fbsd_core_read_description) | |
5127 | (amd64fbsd_init_abi): Likewise. | |
5128 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
5129 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
5130 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
5131 | * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise. | |
5132 | ||
de52b960 PA |
5133 | 2018-06-29 Pedro Alves <palves@redhat.com> |
5134 | ||
5135 | * gdb/amd64-tdep.h (amd64_create_target_description): Add | |
5136 | "segments" parameter. | |
5137 | * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi) | |
5138 | (_initialize_amd64_tdep): Update call to | |
5139 | amd64_create_target_description. | |
5140 | (amd64_target_description): Add "segments" parameter. Adjust | |
5141 | the implementation to use it. | |
5142 | * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update | |
5143 | call to amd64_create_target_description. | |
5144 | * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise. | |
5145 | * gdb/arch/amd64.h (amd64_create_target_description): Add | |
5146 | "segments" register. | |
5147 | * gdb/arch/amd64.c (amd64_create_target_description): Add | |
5148 | "segments" parameter. Call create_feature_i386_64bit_segments | |
5149 | only if SEGMENTS is true. | |
5150 | * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update | |
5151 | call to amd64_create_target_description. | |
5152 | ||
75acb486 PA |
5153 | 2018-06-29 Pedro Alves <palves@redhat.com> |
5154 | ||
5155 | * thread.c (thread_target_id_str): New, factored out from ... | |
5156 | (print_thread_info_1): ... here. Use it to compute the max | |
5157 | "Target Id" column width. | |
5158 | ||
c76a8ea3 PA |
5159 | 2018-06-29 Pedro Alves <palves@redhat.com> |
5160 | ||
5161 | * remote.c (remote_target::extra_thread_info): Delete | |
5162 | 'display_buf' and 'n' locals. from the cache, regardless of | |
5163 | packet mechanims is in use. Use cache for qThreadExtra and qP | |
5164 | methods too. | |
5165 | ||
cd2bb709 PA |
5166 | 2018-06-29 Pedro Alves <palves@redhat.com> |
5167 | ||
5168 | * blockframe.c (find_pc_sect_containing_function): New function. | |
5169 | * breakpoint.c (print_breakpoint_location): Don't call | |
5170 | find_pc_sect_function. | |
5171 | * linespec.c (create_sals_line_offset): Record the location's | |
5172 | symbol in the sal. | |
5173 | * linespec.c (convert_address_location_to_sals): Fill in sal's | |
5174 | symbol with find_pc_sect_containing_function. | |
5175 | * symtab.c (find_function_start_sal): Rename to ... | |
5176 | (find_function_start_sal_1): ... this. | |
5177 | (find_function_start_sal): Reimplement as wrapper around | |
5178 | find_function_start_sal_1, and use | |
5179 | find_pc_sect_containing_function to fill in the sal's symbol. | |
5180 | (find_function_start_sal(symbol*, bool)): Adjust. | |
5181 | * symtab.h (find_pc_function, find_pc_sect_function): Adjust | |
5182 | comments. | |
5183 | (find_pc_sect_containing_function): Declare. | |
5184 | ||
991ff292 PA |
5185 | 2018-06-29 Pedro Alves <palves@redhat.com> |
5186 | ||
5187 | * inline-frame.c (stopped_by_user_bp_inline_frame): Return | |
5188 | true if the the location has no symbol. | |
5189 | ||
44cee4fd TT |
5190 | 2018-06-28 Tom Tromey <tom@tromey.com> |
5191 | ||
5192 | * NEWS: Mention --enable-codesign. | |
5193 | * silent-rules.mk (ECHO_SIGN): New variable. | |
5194 | * configure.ac: Add --enable-codesign. | |
5195 | * configure: Rebuild. | |
5196 | * Makefile.in (CODESIGN, CODESIGN_CERT): New variables. | |
5197 | (gdb$(EXEEXT)): Optionally invoke codesign. | |
5198 | ||
f2ffa92b PA |
5199 | 2018-06-28 Pedro Alves <palves@redhat.com> |
5200 | ||
5201 | * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend | |
5202 | comments. | |
5203 | (switch_to_thread_no_regs): Adjust comment. | |
5204 | * infcmd.c (stop_pc): Delete. | |
5205 | (post_create_inferior, info_program_command): Replace references | |
5206 | to stop_pc with references to thread_info->suspend.stop_pc. | |
5207 | * inferior.h (stop_pc): Delete declaration. | |
5208 | * infrun.c (proceed, handle_syscall_event, fill_in_stop_func) | |
5209 | (handle_inferior_event_1, handle_signal_stop) | |
5210 | (process_event_stop_test, keep_going_stepped_thread) | |
5211 | (handle_step_into_function, handle_step_into_function_backward) | |
5212 | (print_stop_location): Replace references to stop_pc with | |
5213 | references to thread_info->suspend.stop_pc. | |
5214 | (struct infcall_suspend_state) <stop_pc>: Delete field. | |
5215 | (save_infcall_suspend_state, restore_infcall_suspend_state): | |
5216 | Remove references to inf_stat->stop_pc. | |
5217 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
5218 | * record-btrace.c (record_btrace_set_replay): Likewise. | |
5219 | * record-full.c (record_full_goto_entry): Likewise. | |
5220 | * remote.c (print_one_stopped_thread): Likewise. | |
5221 | * target.c (target_resume): Extend comment. | |
5222 | * thread.c (set_executing_thread): New. | |
5223 | (set_executing): Use it. | |
5224 | (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread): | |
5225 | Remove references to stop_pc. | |
5226 | ||
ecdc3a72 PA |
5227 | 2018-06-28 Pedro Alves <palves@redhat.com> |
5228 | ||
5229 | * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: | |
5230 | Moving fetching stop_pc until after ecs->event_thread is refreshed. | |
5231 | ||
d95d3aef TT |
5232 | 2018-06-28 Tom Tromey <tom@tromey.com> |
5233 | ||
5234 | * coffread.c (coff_symfile_finish): Update. | |
5235 | * xcoffread.c (xcoff_symfile_finish): Update. | |
5236 | * elfread.c (elf_symfile_finish): Update. | |
5237 | * symfile.h (dwarf2_free_objfile): Don't declare. | |
5238 | * dwarf2read.c (_initialize_dwarf2_read): Use | |
5239 | register_objfile_data_with_cleanup. | |
5240 | (dwarf2_free_objfile): Now static. Change signature. | |
5241 | ||
291f9a96 PT |
5242 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
5243 | ||
5244 | * symfile.c (add_symbol_file_command, _initialize_symfile): Add | |
5245 | option "-o" to add-symbol-file-load to add an offset to each | |
5246 | section's load address. | |
5247 | * symfile.c (set_objfile_default_section_offset): New function. | |
5248 | ||
d81a3eaf PT |
5249 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
5250 | ||
5251 | * symfile.c (add_symbol_file_command): Make sure that sections | |
5252 | with the same name are sorted in the same order. | |
5253 | ||
ed6dfe51 PT |
5254 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
5255 | ||
5256 | * symfile.c (add_symbol_file_command, _initialize_symfile): Do not | |
5257 | require the second argument. If omitted, load sections at the | |
5258 | addresses specified in the file. | |
5259 | ||
d4d429d5 PT |
5260 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
5261 | ||
5262 | * symfile.c (symbol_file_command, symbol_file_add_main_1) | |
5263 | (_initialize_symfile): Add option "-o" to symbol-file to add an | |
5264 | offset to each section of the symbol file. | |
5265 | ||
39b27ab6 PT |
5266 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
5267 | ||
5268 | * MAINTAINERS (Write After Approval): Add Petr Tesarik. | |
5269 | ||
41827fc3 TT |
5270 | 2018-06-27 Tom Tromey <tom@tromey.com> |
5271 | ||
5272 | * stack.c (_initialize_stack): Update "func" help text. | |
5273 | ||
0c6aef22 TT |
5274 | 2018-06-27 Tom Tromey <tom@tromey.com> |
5275 | ||
5276 | * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a | |
5277 | std::vector. | |
5278 | (unwind_infopy_str, pyuw_create_unwind_info) | |
5279 | (unwind_infopy_add_saved_register, pyuw_sniffer) | |
5280 | (unwind_infopy_dealloc, unwind_infopy_add_saved_register): | |
5281 | Update. | |
5282 | (struct saved_reg): Add constructor. | |
5283 | <value>: Now a gdbpy_ref<>. | |
5284 | ||
63177289 TT |
5285 | 2018-06-27 Tom Tromey <tom@tromey.com> |
5286 | ||
5287 | * machoread.c (macho_symfile_read): Define "symbol_table" earlier. | |
5288 | ||
e76f78a0 SM |
5289 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
5290 | ||
5291 | * gdb-gdb.py.in: Format using autopep8. | |
5292 | ||
9a14af7b SM |
5293 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
5294 | ||
5295 | * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class. | |
5296 | (type_lookup_function): Recognize CORE_ADDR values. | |
5297 | ||
189366cd SM |
5298 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
5299 | ||
5300 | * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't | |
5301 | print tag_name. | |
5302 | ||
68ad5fb9 SM |
5303 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
5304 | ||
5305 | * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove. | |
5306 | <__lt__>: Add. | |
5307 | ||
141ec9f6 SM |
5308 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
5309 | ||
5310 | * gdb-gdb.py: Move to... | |
5311 | * gdb-gdb.py.in: ... here. | |
5312 | * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py. | |
5313 | * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as | |
5314 | dependencies. | |
5315 | (distclean): Remove gdb-gdb.py when cleaning. | |
5316 | (gdb-gdb.py, gdb-gdb.gdb): New rules. | |
5317 | * configure: Re-generate. | |
5318 | ||
4c4e7ad4 PA |
5319 | 2018-06-27 Pedro Alves <palves@redhat.com> |
5320 | ||
5321 | * proc-service.c (get_ps_regcache): New. | |
5322 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs) | |
5323 | (ps_lsetfpregs): Use it. | |
5324 | ||
7ab6656f OJ |
5325 | 2018-06-27 Omair Javaid <omair.javaid@linaro.org> |
5326 | ||
5327 | PR gdb/21695 | |
5328 | * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration. | |
5329 | (dwarf_decode_lines_1): Adjust. | |
5330 | ||
bd583225 SM |
5331 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
5332 | ||
5333 | * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add | |
5334 | override. | |
5335 | <info_proc>: Likewise. | |
5336 | ||
9a325b7b JB |
5337 | 2018-06-26 Joel Brobecker <brobecker@adacore.com> |
5338 | ||
5339 | * windows-nat.c (do_windows_fetch_inferior_registers): Rename | |
5340 | to windows_fetch_one_register, and only handle the case of | |
5341 | fetching one register. Move the code that reloads the context | |
5342 | and iterates over all registers if R is negative to... | |
5343 | (windows_nat_target::fetch_registers): ... here. | |
5344 | (do_windows_store_inferior_registers): Rename to | |
5345 | windows_store_one_register, and only handle the case of storing | |
5346 | one register. Move the code that handles the case where r is | |
5347 | negative to... | |
5348 | (windows_nat_target::store_registers) ... here. | |
5349 | ||
a33ccfc7 TT |
5350 | 2018-06-26 Tom Tromey <tom@tromey.com> |
5351 | ||
5352 | PR rust/22574: | |
5353 | * typeprint.c (whatis_exp): Allow ptype/o for Rust. | |
5354 | * rust-lang.c (rust_print_struct_def): Add podata parameter. | |
5355 | Update. | |
5356 | (rust_internal_print_type): Add podata parameter. | |
5357 | (rust_print_type): Update. | |
5358 | ||
e0c547d1 TT |
5359 | 2018-06-26 Tom Tromey <tom@tromey.com> |
5360 | ||
5361 | * typeprint.h (struct print_offset_data) <update, finish, | |
5362 | maybe_print_hole>: New methods. | |
5363 | <indentation>: New constant. | |
5364 | * typeprint.c (print_offset_data::indentation): Define. | |
5365 | (print_offset_data::maybe_print_hole, print_offset_data::update) | |
5366 | (print_offset_data::finish): Move from c-typeprint.c and rename. | |
5367 | * c-typeprint.c (OFFSET_SPC_LEN): Remove. | |
5368 | (print_spaces_filtered_with_print_options): Update. | |
5369 | (c_print_type_union_field_offset, maybe_print_hole) | |
5370 | (c_print_type_struct_field_offset): Move to typeprint.c and | |
5371 | rename. | |
5372 | (c_type_print_base_struct_union): Update. | |
5373 | ||
75cbc781 PA |
5374 | 2018-06-25 Pedro Alves <palves@redhat.com> |
5375 | ||
5376 | * gdbthread.h (thread_info_ref, delete_thread) | |
5377 | (delete_thread_silent, first_thread_of_inferior) | |
5378 | (any_thread_of_inferior, switch_to_thread) | |
5379 | (enable_thread_stack_temporaries) | |
5380 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
5381 | (get_last_thread_stack_temporary) | |
5382 | (value_in_thread_stack_temporaries, can_access_registers_thread): | |
5383 | Spell out "struct thread_info" instead of just "thread_info". | |
5384 | * inferior.h (notice_new_inferior): Likewise. | |
5385 | ||
b7a08269 PA |
5386 | 2018-06-25 Pedro Alves <palves@redhat.com> |
5387 | ||
5388 | * windows-nat.c (windows_delete_thread): Use find_thread_ptid and | |
5389 | pass thread_info pointer to delete_thread. | |
5390 | (windows_nat_target::detach): Pass inferior pointer to | |
5391 | detach_inferior. | |
5392 | * aix-thread.c (sync_threadlists): Pass thread_info pointer to | |
5393 | delete_thread. | |
5394 | * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors. | |
5395 | * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid | |
5396 | and pass a thread_info pointer to delete_thread. | |
5397 | * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and | |
5398 | pass thread_info pointer to delete_thread. | |
5399 | * go32-nat.c (go32_nat_target::mourn_inferior): Remove | |
5400 | delete_thread_silent call. | |
5401 | * procfs.c (procfs_target::detach): Pass inferior pointer to | |
5402 | detach_inferior. | |
5403 | (procfs_target::wait): Pass thread_info pointer to delete_thread. | |
5404 | * remote-sim.c (gdbsim_target::mourn_inferior): Remove | |
5405 | delete_thread_silent call. | |
5406 | * windows-nat.c (windows_delete_thread): Use find_thread_ptid and | |
5407 | pass thread_info pointer to delete_thread. | |
5408 | (windows_nat_target::detach): Pass inferior pointer to | |
5409 | delete_inferior. | |
5410 | ||
8e7767e3 AH |
5411 | 2018-06-22 Alan Hayward <alan.hayward@arm.com> |
5412 | ||
5413 | * regcache.c (readable_regcache::read_part): Fix asserts. | |
5414 | (reg_buffer::raw_collect_part): New function. | |
5415 | (regcache::write_part): Fix asserts. | |
5416 | (reg_buffer::raw_supply_part): New function. | |
5417 | (regcache::transfer_regset_register): New helper function. | |
5418 | (regcache::transfer_regset): Call new functions. | |
5419 | (regcache_supply_regset): Use gdb_byte*. | |
5420 | (regcache::supply_regset): Likewise. | |
5421 | (regcache_collect_regset): Likewise. | |
5422 | (regcache::collect_regset): Likewise. | |
5423 | * regcache.h (reg_buffer::raw_collect_part): New declaration. | |
5424 | (reg_buffer::raw_supply_part): Likewise. | |
5425 | (regcache::transfer_regset_register): Likewise. | |
5426 | (regcache::transfer_regset): Use gdb_byte*. | |
5427 | ||
bfd60e34 AH |
5428 | 2018-06-22 Alan Hayward <alan.hayward@arm.com> |
5429 | ||
5430 | * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &. | |
5431 | ||
00431a78 PA |
5432 | 2018-06-21 Pedro Alves <palves@redhat.com> |
5433 | ||
5434 | * ada-lang.h (ada_get_task_number): Take a thread_info pointer | |
5435 | instead of a ptid_t. All callers adjusted. | |
5436 | * ada-tasks.c (ada_get_task_number): Likewise. All callers | |
5437 | adjusted. | |
5438 | (print_ada_task_info, display_current_task_id, task_command_1): | |
5439 | Adjust. | |
5440 | * breakpoint.c (watchpoint_in_thread_scope): Adjust to use | |
5441 | inferior_thread. | |
5442 | (breakpoint_kind): Adjust. | |
5443 | (remove_breakpoints_pid): Rename to ... | |
5444 | (remove_breakpoints_inf): ... this. Adjust to take an inferior | |
5445 | pointer. All callers adjusted. | |
5446 | (bpstat_clear_actions): Use inferior_thread. | |
5447 | (get_bpstat_thread): New. | |
5448 | (bpstat_do_actions): Use it. | |
5449 | (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust | |
5450 | to take a thread_info pointer. All callers adjusted. | |
5451 | (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint) | |
5452 | (breakpoint_re_set_thread): Use inferior_thread. | |
5453 | * breakpoint.h (struct inferior): Forward declare. | |
5454 | (bpstat_stop_status): Update. | |
5455 | (remove_breakpoints_pid): Delete. | |
5456 | (remove_breakpoints_inf): New. | |
5457 | * bsd-uthread.c (bsd_uthread_target::wait) | |
5458 | (bsd_uthread_target::update_thread_list): Use find_thread_ptid. | |
5459 | * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch) | |
5460 | (maint_btrace_packet_history_cmd) | |
5461 | (maint_btrace_clear_packet_history_cmd): Adjust. | |
5462 | (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use | |
5463 | inferior_thread. | |
5464 | * cli/cli-interp.c: Include "inferior.h". | |
5465 | * common/refcounted-object.h (struct | |
5466 | refcounted_object_ref_policy): New. | |
5467 | * compile/compile-object-load.c: Include gdbthread.h. | |
5468 | (store_regs): Use inferior_thread. | |
5469 | * corelow.c (core_target::close): Use current_inferior. | |
5470 | (core_target_open): Adjust to use first_thread_of_inferior and use | |
5471 | the current inferior. | |
5472 | * ctf.c (ctf_target::close): Adjust to use current_inferior. | |
5473 | * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ... | |
5474 | <thread>: ... this new field. All references adjusted. | |
5475 | (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor): | |
5476 | Take a thread_info pointer instead of a ptid_t. | |
5477 | * dummy-frame.h (dummy_frame_push, dummy_frame_pop) | |
5478 | (dummy_frame_discard, register_dummy_frame_dtor): Take a | |
5479 | thread_info pointer instead of a ptid_t. | |
5480 | * elfread.c: Include "inferior.h". | |
5481 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): | |
5482 | Use inferior_thread. | |
5483 | * eval.c (evaluate_subexp): Likewise. | |
5484 | * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use | |
5485 | inferior_thread. | |
5486 | * gdb_proc_service.h (struct thread_info): Forward declare. | |
5487 | (struct ps_prochandle) <ptid>: Delete, replaced by ... | |
5488 | <thread>: ... this new field. All references adjusted. | |
5489 | * gdbarch.h, gdbarch.c: Regenerate. | |
5490 | * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a | |
5491 | 'thread' parameter. All implementations and callers adjusted. | |
5492 | * gdbthread.h (thread_info) <set_running>: New method. | |
5493 | (delete_thread, delete_thread_silent): Take a thread_info pointer | |
5494 | instead of a ptid. | |
5495 | (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete. | |
5496 | (first_thread_of_process): Delete, replaced by ... | |
5497 | (first_thread_of_inferior): ... this new function. All callers | |
5498 | adjusted. | |
5499 | (any_live_thread_of_process): Delete, replaced by ... | |
5500 | (any_live_thread_of_inferior): ... this new function. All callers | |
5501 | adjusted. | |
5502 | (switch_to_thread, switch_to_no_thread): Declare. | |
5503 | (is_executing): Delete. | |
5504 | (enable_thread_stack_temporaries): Update comment. | |
5505 | <enable_thread_stack_temporaries>: Take a thread_info pointer | |
5506 | instead of a ptid_t. Incref the thread. | |
5507 | <~enable_thread_stack_temporaries>: Decref the thread. | |
5508 | <m_ptid>: Delete | |
5509 | <m_thr>: New. | |
5510 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
5511 | (get_last_thread_stack_temporary) | |
5512 | (value_in_thread_stack_temporaries, can_access_registers_thread): | |
5513 | Take a thread_info pointer instead of a ptid_t. All callers | |
5514 | adjusted. | |
5515 | * infcall.c (get_call_return_value): Use inferior_thread. | |
5516 | (run_inferior_call): Work with thread pointers instead of ptid_t. | |
5517 | (call_function_by_hand_dummy): Work with thread pointers instead | |
5518 | of ptid_t. Use thread_info_ref. | |
5519 | * infcmd.c (proceed_thread_callback): Access thread's state | |
5520 | directly. | |
5521 | (ensure_valid_thread, ensure_not_running): Use inferior_thread, | |
5522 | access thread's state directly. | |
5523 | (continue_command): Use inferior_thread. | |
5524 | (info_program_command): Use find_thread_ptid and access thread | |
5525 | state directly. | |
5526 | (proceed_after_attach_callback): Use thread state directly. | |
5527 | (notice_new_inferior): Take a thread_info pointer instead of a | |
5528 | ptid_t. All callers adjusted. | |
5529 | (exit_inferior): Take an inferior pointer instead of a pid. All | |
5530 | callers adjusted. | |
5531 | (exit_inferior_silent): New. | |
5532 | (detach_inferior): Delete. | |
5533 | (valid_gdb_inferior_id, pid_to_gdb_inferior_id) | |
5534 | (gdb_inferior_id_to_pid, in_inferior_list): Delete. | |
5535 | (detach_inferior_command, kill_inferior_command): Use | |
5536 | find_inferior_id instead of valid_gdb_inferior_id and | |
5537 | gdb_inferior_id_to_pid. | |
5538 | (inferior_command): Use inferior and thread pointers. | |
5539 | * inferior.h (struct thread_info): Forward declare. | |
5540 | (notice_new_inferior): Take a thread_info pointer instead of a | |
5541 | ptid_t. All callers adjusted. | |
5542 | (detach_inferior): Delete declaration. | |
5543 | (exit_inferior, exit_inferior_silent): Take an inferior pointer | |
5544 | instead of a pid. All callers adjusted. | |
5545 | (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list) | |
5546 | (valid_gdb_inferior_id): Delete. | |
5547 | * infrun.c (follow_fork_inferior, proceed_after_vfork_done) | |
5548 | (handle_vfork_child_exec_or_exit, follow_exec): Adjust. | |
5549 | (struct displaced_step_inferior_state) <pid>: Delete, replaced by | |
5550 | ... | |
5551 | <inf>: ... this new field. | |
5552 | <step_ptid>: Delete, replaced by ... | |
5553 | <step_thread>: ... this new field. | |
5554 | (get_displaced_stepping_state): Take an inferior pointer instead | |
5555 | of a pid. All callers adjusted. | |
5556 | (displaced_step_in_progress_any_inferior): Adjust. | |
5557 | (displaced_step_in_progress_thread): Take a thread pointer instead | |
5558 | of a ptid_t. All callers adjusted. | |
5559 | (displaced_step_in_progress, add_displaced_stepping_state): Take | |
5560 | an inferior pointer instead of a pid. All callers adjusted. | |
5561 | (get_displaced_step_closure_by_addr): Adjust. | |
5562 | (remove_displaced_stepping_state): Take an inferior pointer | |
5563 | instead of a pid. All callers adjusted. | |
5564 | (displaced_step_prepare_throw, displaced_step_prepare) | |
5565 | (displaced_step_fixup): Take a thread pointer instead of a ptid_t. | |
5566 | All callers adjusted. | |
5567 | (start_step_over): Adjust. | |
5568 | (infrun_thread_ptid_changed): Remove bit updating ptids in the | |
5569 | displaced step queue. | |
5570 | (do_target_resume): Adjust. | |
5571 | (fetch_inferior_event): Use inferior_thread. | |
5572 | (context_switch, get_inferior_stop_soon): Take an | |
5573 | execution_control_state pointer instead of a ptid_t. All callers | |
5574 | adjusted. | |
5575 | (switch_to_thread_cleanup): Delete. | |
5576 | (stop_all_threads): Use scoped_restore_current_thread. | |
5577 | * inline-frame.c: Include "gdbthread.h". | |
5578 | (inline_state) <inline_state>: Take a thread pointer instead of a | |
5579 | ptid_t. All callers adjusted. | |
5580 | <ptid>: Delete, replaced by ... | |
5581 | <thread>: ... this new field. | |
5582 | (find_inline_frame_state): Take a thread pointer instead of a | |
5583 | ptid_t. All callers adjusted. | |
5584 | (skip_inline_frames, step_into_inline_frame) | |
5585 | (inline_skipped_frames, inline_skipped_symbol): Take a thread | |
5586 | pointer instead of a ptid_t. All callers adjusted. | |
5587 | * inline-frame.h (skip_inline_frames, step_into_inline_frame) | |
5588 | (inline_skipped_frames, inline_skipped_symbol): Likewise. | |
5589 | * linux-fork.c (delete_checkpoint_command): Adjust to use thread | |
5590 | pointers directly. | |
5591 | * linux-nat.c (get_detach_signal): Likewise. | |
5592 | * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter. | |
5593 | (thread_db_notice_clone): Adjust. | |
5594 | (thread_db_find_new_threads_silently) | |
5595 | (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take | |
5596 | a thread pointer instead of a ptid_t. All callers adjusted. | |
5597 | * mi/mi-cmd-var.c: Include "inferior.h". | |
5598 | (mi_cmd_var_update_iter): Update to use thread pointers. | |
5599 | * mi/mi-interp.c (mi_new_thread): Update to use the thread's | |
5600 | inferior directly. | |
5601 | (mi_output_running_pid, mi_inferior_count): Delete, bits factored | |
5602 | out to ... | |
5603 | (mi_output_running): ... this new function. | |
5604 | (mi_on_resume_1): Adjust to use it. | |
5605 | (mi_user_selected_context_changed): Adjust to use inferior_thread. | |
5606 | * mi/mi-main.c (proceed_thread): Adjust to use thread pointers | |
5607 | directly. | |
5608 | (interrupt_thread_callback): : Adjust to use thread and inferior | |
5609 | pointers. | |
5610 | * proc-service.c: Include "gdbthread.h". | |
5611 | (ps_pglobal_lookup): Adjust to use the thread's inferior directly. | |
5612 | * progspace-and-thread.c: Include "inferior.h". | |
5613 | * progspace.c: Include "inferior.h". | |
5614 | * python/py-exitedevent.c (create_exited_event_object): Adjust to | |
5615 | hold a reference to an inferior_object. | |
5616 | * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use | |
5617 | inferior_thread. | |
5618 | * python/py-inferior.c (struct inferior_object): Give the type a | |
5619 | tag name instead of a typedef. | |
5620 | (python_on_normal_stop): No need to check if the current thread is | |
5621 | listed. | |
5622 | (inferior_to_inferior_object): Change return type to | |
5623 | inferior_object. All callers adjusted. | |
5624 | (find_thread_object): Delete, bits factored out to ... | |
5625 | (thread_to_thread_object): ... this new function. | |
5626 | * python/py-infthread.c (create_thread_object): Use | |
5627 | inferior_to_inferior_object. | |
5628 | (thpy_is_stopped): Use thread pointer directly. | |
5629 | (gdbpy_selected_thread): Use inferior_thread. | |
5630 | * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete | |
5631 | field, replaced with ... | |
5632 | <thread>: ... this new field. All users adjusted. | |
5633 | (btpy_insn_or_gap_new): Drop const. | |
5634 | (btpy_list_new): Take a thread pointer instead of a ptid_t. All | |
5635 | callers adjusted. | |
5636 | * python/py-record.c: Include "gdbthread.h". | |
5637 | (recpy_insn_new, recpy_func_new): Take a thread pointer instead of | |
5638 | a ptid_t. All callers adjusted. | |
5639 | (gdbpy_current_recording): Use inferior_thread. | |
5640 | * python/py-record.h (recpy_record_object) <ptid>: Delete | |
5641 | field, replaced with ... | |
5642 | <thread>: ... this new field. All users adjusted. | |
5643 | (recpy_element_object) <ptid>: Delete | |
5644 | field, replaced with ... | |
5645 | <thread>: ... this new field. All users adjusted. | |
5646 | (recpy_insn_new, recpy_func_new): Take a thread pointer instead of | |
5647 | a ptid_t. All callers adjusted. | |
5648 | * python/py-threadevent.c: Include "gdbthread.h". | |
5649 | (get_event_thread): Use thread_to_thread_object. | |
5650 | * python/python-internal.h (struct inferior_object): Forward | |
5651 | declare. | |
5652 | (find_thread_object, find_inferior_object): Delete declarations. | |
5653 | (thread_to_thread_object, inferior_to_inferior_object): New | |
5654 | declarations. | |
5655 | * record-btrace.c: Include "inferior.h". | |
5656 | (require_btrace_thread): Use inferior_thread. | |
5657 | (record_btrace_frame_sniffer) | |
5658 | (record_btrace_tailcall_frame_sniffer): Use inferior_thread. | |
5659 | (get_thread_current_frame): Use scoped_restore_current_thread and | |
5660 | switch_to_thread. | |
5661 | (get_thread_current_frame): Use thread pointer directly. | |
5662 | (record_btrace_replay_at_breakpoint): Use thread's inferior | |
5663 | pointer directly. | |
5664 | * record-full.c: Include "inferior.h". | |
5665 | * regcache.c: Include "gdbthread.h". | |
5666 | (get_thread_arch_regcache): Use the inferior's address space | |
5667 | directly. | |
5668 | (get_thread_regcache, registers_changed_thread): New. | |
5669 | * regcache.h (get_thread_regcache(thread_info *thread)): New | |
5670 | overload. | |
5671 | (registers_changed_thread): New. | |
5672 | (remote_target) <remote_detach_1>: Swap order of parameters. | |
5673 | (remote_add_thread): <remote_add_thread>: Return the new thread. | |
5674 | (get_remote_thread_info(ptid_t)): New overload. | |
5675 | (remote_target::remote_notice_new_inferior): Use thread pointers | |
5676 | directly. | |
5677 | (remote_target::process_initial_stop_replies): Use | |
5678 | thread_info::set_running. | |
5679 | (remote_target::remote_detach_1, remote_target::detach) | |
5680 | (extended_remote_target::detach): Adjust. | |
5681 | * stack.c (frame_show_address): Use inferior_thread. | |
5682 | * target-debug.h (target_debug_print_thread_info_pp): New. | |
5683 | * target-delegates.c: Regenerate. | |
5684 | * target.c (default_thread_address_space): Delete. | |
5685 | (memory_xfer_partial_1): Use current_inferior. | |
5686 | (target_detach): Use current_inferior. | |
5687 | (target_thread_address_space): Delete. | |
5688 | (generic_mourn_inferior): Use current_inferior. | |
5689 | * target.h (struct target_ops) <thread_address_space>: Delete. | |
5690 | (target_thread_address_space): Delete. | |
5691 | * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread | |
5692 | pointers directly. | |
5693 | (delete_thread_1, delete_thread, delete_thread_silent): Take a | |
5694 | thread pointer instead of a ptid_t. Adjust all callers. | |
5695 | (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete. | |
5696 | (first_thread_of_process): Delete, replaced by ... | |
5697 | (first_thread_of_inferior): ... this new function. All callers | |
5698 | adjusted. | |
5699 | (any_thread_of_process): Rename to ... | |
5700 | (any_thread_of_inferior): ... this, and take an inferior pointer. | |
5701 | (any_live_thread_of_process): Rename to ... | |
5702 | (any_live_thread_of_inferior): ... this, and take an inferior | |
5703 | pointer. | |
5704 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
5705 | (value_in_thread_stack_temporaries) | |
5706 | (get_last_thread_stack_temporary): Take a thread pointer instead | |
5707 | of a ptid_t. Adjust all callers. | |
5708 | (thread_info::set_running): New. | |
5709 | (validate_registers_access): Use inferior_thread. | |
5710 | (can_access_registers_ptid): Rename to ... | |
5711 | (can_access_registers_thread): ... this, and take a thread | |
5712 | pointer. | |
5713 | (print_thread_info_1): Adjust to compare thread pointers instead | |
5714 | of ptids. | |
5715 | (switch_to_no_thread, switch_to_thread): Make extern. | |
5716 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
5717 | Use m_thread pointer directly. | |
5718 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
5719 | Use inferior_thread. | |
5720 | (thread_command): Use thread pointer directly. | |
5721 | (thread_num_make_value_helper): Use inferior_thread. | |
5722 | * top.c (execute_command): Use inferior_thread. | |
5723 | * tui/tui-interp.c: Include "inferior.h". | |
5724 | * varobj.c (varobj_create): Use inferior_thread. | |
5725 | (value_of_root_1): Use find_thread_global_id instead of | |
5726 | global_thread_id_to_ptid. | |
5727 | ||
33bab475 AH |
5728 | 2018-06-21 Alan Hayward <alan.hayward@arm.com> |
5729 | ||
5730 | * regcache.c (readable_regcache::read_part): Avoid memcpy when | |
5731 | possible. | |
5732 | (regcache::write_part): Likewise. | |
5733 | (readable_regcache::cooked_read_part): Update comment. | |
5734 | (readable_regcache::cooked_write_part): Likewise. | |
5735 | * regcache.h: (readable_regcache::read_part): Likewise. | |
5736 | (regcache::write_part): Likewise. | |
5737 | ||
8363f9d5 RB |
5738 | 2018-06-21 Richard Bunt <richard.bunt@arm.com> |
5739 | Dirk Schubert <dirk.schubert@arm.com> | |
5740 | ||
5741 | * aarch64-linux-nat.c (post_attach): New. | |
5742 | (aarch64_linux_nat_target::post_attach): Override post_attach to | |
5743 | record the number of hardware debug registers. | |
5744 | ||
0d0b0ea2 TT |
5745 | 2018-06-20 Tom Tromey <tom@tromey.com> |
5746 | ||
5747 | * python/py-param.c (add_setshow_generic): Make parameters const. | |
5748 | (parmpy_init): Update. | |
5749 | ||
302abd6e SM |
5750 | 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> |
5751 | ||
5752 | * regcache.h (regcache_cooked_read_ftype): Rename to... | |
5753 | (register_read_ftype): ...this, change type to function_view. | |
5754 | (class reg_buffer) <save>: Remove src parameter. | |
5755 | (readonly_detached_regcache) <readonly_detached_regcache>: Make | |
5756 | parameter non-const in first overload. Remove src parameter in | |
5757 | second overload. | |
5758 | * regcache.c (do_cooked_read): Remove. | |
5759 | (readonly_detached_regcache::readonly_detached_regcache): Make | |
5760 | parameter non-const, adjust call to other constructor. | |
5761 | (reg_buffer::save): Remove src parameter. | |
5762 | * frame.c (do_frame_register_read): Remove. | |
5763 | (frame_save_as_regcache): Use lambda function. | |
5764 | * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src | |
5765 | parameter to ppu2spu_data *. | |
5766 | (ppu2spu_sniffer): Use lambda function. | |
5767 | ||
19f3f25f SM |
5768 | 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> |
5769 | ||
5770 | * record-full.c (record_full_target::insert_breakpoint): Remove | |
5771 | "struct" keyword, add const. | |
5772 | ||
d0ac1c44 SM |
5773 | 2018-06-19 Simon Marchi <simon.marchi@ericsson.com> |
5774 | ||
5775 | * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION, | |
5776 | PACKAGE_STRING, PACKAGE_TARNAME): Undefine. | |
5777 | * configure.ac: Remove AC_PREREQ, add missing quoting. | |
5778 | * gnulib/configure.ac: Modernize usage of | |
5779 | AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ. | |
5780 | * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69. | |
5781 | (AUTOMAKE_VERSION): Bump to 1.15.1. | |
5782 | * configure: Re-generate. | |
5783 | * config.in: Re-generate. | |
5784 | * aclocal.m4: Re-generate. | |
5785 | * gnulib/aclocal.m4: Re-generate. | |
5786 | * gnulib/config.in: Re-generate. | |
5787 | * gnulib/configure: Re-generate. | |
5788 | * gnulib/import/Makefile.in: Re-generate. | |
5789 | ||
6ae50267 PA |
5790 | 2018-06-19 Pedro Alves <palves@redhat.com> |
5791 | ||
5792 | * minsyms.c (msym_prefer_to_msym_type): New, factored out from ... | |
5793 | (lookup_minimal_symbol_by_pc_section): ... here with | |
5794 | gdb_assert_not_reached added. | |
5795 | ||
61b04dd0 PA |
5796 | 2018-06-19 Pedro Alves <palves@redhat.com> |
5797 | ||
5798 | * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC | |
5799 | parameter with a block parameter. Compare location's block symbol | |
5800 | with the frame's block instead of addresses. | |
5801 | (skip_inline_frames): Pass the current block instead of the | |
5802 | frame's address. Break out as soon as we determine the frame | |
5803 | should not be skipped. | |
5804 | ||
f709fabb TT |
5805 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5806 | ||
5807 | * solib-aix.c (solib_aix_get_section_offsets): Return | |
5808 | unique_xmalloc_ptr. | |
5809 | (solib_aix_solib_create_inferior_hook): Update. | |
5810 | ||
668eb2f0 TT |
5811 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5812 | ||
5813 | * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr. | |
5814 | ||
309822ca TT |
5815 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5816 | ||
5817 | * solib-frv.c (frv_relocate_main_executable): Use | |
5818 | unique_xmalloc_ptr. | |
5819 | * solib-dsbt.c (dsbt_relocate_main_executable): Use | |
5820 | unique_xmalloc_ptr. | |
5821 | ||
06424eac TT |
5822 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5823 | ||
5824 | * objfiles.h (inhibit_section_map_updates): Update. | |
5825 | (resume_section_map_updates, resume_section_map_updates_cleanup): | |
5826 | Remove. | |
5827 | * solib-svr4.c (svr4_handle_solib_event): Update. | |
5828 | * objfiles.c (inhibit_section_map_updates): Return | |
5829 | scoped_restore_tmpl<int>. | |
5830 | (resume_section_map_updates, resume_section_map_updates_cleanup): | |
5831 | Remove. | |
5832 | ||
b4be9fad TT |
5833 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5834 | ||
5835 | * valprint.h (read_string): Update. | |
5836 | * valprint.c (read_string): Change type of "buffer". | |
5837 | (val_print_string): Update. | |
5838 | * python/py-value.c (valpy_string): Update. | |
5839 | * language.h (struct language_defn) <la_get_string>: Change | |
5840 | type of "buffer". | |
5841 | (default_get_string, c_get_string): Update. | |
5842 | * language.c (default_get_string): Change type of "buffer". | |
5843 | * guile/scm-value.c (gdbscm_value_to_string): Update. | |
5844 | * c-lang.c (c_get_string): Change type of "buffer". | |
5845 | ||
3f0dbd67 TT |
5846 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5847 | ||
5848 | * ser-mingw.c (struct pipe_state_destroyer): New. | |
5849 | (pipe_state_up): New typedef. | |
5850 | (cleanup_pipe_state): Remove. | |
5851 | (pipe_windows_open): Use pipe_state_up. Don't release argv. | |
5852 | ||
69d340c6 TT |
5853 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5854 | ||
5855 | * rust-lang.h (rust_yyerror): Don't declare. | |
5856 | * rust-lang.c (rust_language_defn): Update. | |
5857 | * rust-exp.y (yyerror): Now static. | |
5858 | * parse.c (parse_exp_in_context_1): Update. | |
5859 | * p-lang.h (p_yyerror): Don't declare. | |
5860 | * p-lang.c (p_language_defn): Update. | |
5861 | * p-exp.y (yyerror): Now static. | |
5862 | * opencl-lang.c (opencl_language_defn): Update. | |
5863 | * objc-lang.c (objc_language_defn): Update. | |
5864 | * m2-lang.h (m2_yyerror): Don't declare. | |
5865 | * m2-lang.c (m2_language_defn): Update. | |
5866 | * m2-exp.y (yyerror): Now static. | |
5867 | * language.h (struct language_defn) <la_error>: Remove. | |
5868 | * language.c (unk_lang_error): Remove. | |
5869 | (unknown_language_defn, auto_language_defn): Remove. | |
5870 | * go-lang.h (go_yyerror): Don't declare. | |
5871 | * go-lang.c (go_language_defn): Update. | |
5872 | * go-exp.y (yyerror): Now static. | |
5873 | * f-lang.h (f_yyerror): Don't declare. | |
5874 | * f-lang.c (f_language_defn): Update. | |
5875 | * f-exp.y (yyerror): Now static. | |
5876 | * d-lang.h (d_yyerror): Don't declare. | |
5877 | * d-lang.c (d_language_defn): Update. | |
5878 | * d-exp.y (yyerror): Now static. | |
5879 | * c-lang.h (c_yyerror): Don't declare. | |
5880 | * c-lang.c (c_language_defn, cplus_language_defn) | |
5881 | (asm_language_defn, minimal_language_defn): Update. | |
5882 | * c-exp.y (yyerror): Now static. | |
5883 | * ada-lang.h (ada_yyerror): Don't declare. | |
5884 | * ada-lang.c (ada_language_defn): Update. | |
5885 | * ada-exp.y (yyerror): Now static. | |
5886 | ||
e9902bfc AH |
5887 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
5888 | ||
5889 | * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function. | |
5890 | (store_sveregs_to_thread): Likewise. | |
5891 | (aarch64_linux_fetch_inferior_registers): Check for SVE. | |
5892 | (aarch64_linux_store_inferior_registers): Likewise. | |
5893 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New | |
5894 | function. | |
5895 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
5896 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
5897 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New | |
5898 | declaration. | |
5899 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
5900 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
5901 | (sve_context): Structure from Linux headers. | |
5902 | (SVE_SIG_ZREGS_SIZE): Define from Linux headers. | |
5903 | (SVE_SIG_ZREG_SIZE): Likewise. | |
5904 | (SVE_SIG_PREG_SIZE): Likewise. | |
5905 | (SVE_SIG_FFR_SIZE): Likewise. | |
5906 | (SVE_SIG_REGS_OFFSET): Likewise. | |
5907 | (SVE_SIG_ZREGS_OFFSET): Likewise. | |
5908 | (SVE_SIG_ZREG_OFFSET): Likewise. | |
5909 | (SVE_SIG_ZREGS_SIZE): Likewise. | |
5910 | (SVE_SIG_PREGS_OFFSET): Likewise. | |
5911 | (SVE_SIG_PREG_OFFSET): Likewise. | |
5912 | (SVE_SIG_PREGS_SIZE): Likewise. | |
5913 | (SVE_SIG_FFR_OFFSET): Likewise. | |
5914 | (SVE_SIG_REGS_SIZE): Likewise. | |
5915 | (SVE_SIG_CONTEXT_SIZE): Likewise. | |
5916 | (SVE_PT_REGS_MASK): Likewise. | |
5917 | (SVE_PT_REGS_FPSIMD): Likewise. | |
5918 | (SVE_PT_REGS_SVE): Likewise. | |
5919 | (SVE_PT_VL_INHERIT): Likewise. | |
5920 | (SVE_PT_VL_ONEXEC): Likewise. | |
5921 | (SVE_PT_REGS_OFFSET): Likewise. | |
5922 | (SVE_PT_FPSIMD_OFFSET): Likewise. | |
5923 | (SVE_PT_FPSIMD_SIZE): Likewise. | |
5924 | (SVE_PT_SVE_ZREG_SIZE): Likewise. | |
5925 | (SVE_PT_SVE_PREG_SIZE): Likewise. | |
5926 | (SVE_PT_SVE_FFR_SIZE): Likewise. | |
5927 | (SVE_PT_SVE_FPSR_SIZE): Likewise. | |
5928 | (SVE_PT_SVE_FPCR_SIZE): Likewise. | |
5929 | (__SVE_SIG_TO_PT): Likewise. | |
5930 | (SVE_PT_SVE_OFFSET): Likewise. | |
5931 | (SVE_PT_SVE_ZREGS_OFFSET): Likewise. | |
5932 | (SVE_PT_SVE_ZREG_OFFSET): Likewise. | |
5933 | (SVE_PT_SVE_ZREGS_SIZE): Likewise. | |
5934 | (SVE_PT_SVE_PREGS_OFFSET): Likewise. | |
5935 | (SVE_PT_SVE_PREG_OFFSET): Likewise. | |
5936 | (SVE_PT_SVE_PREGS_SIZE): Likewise. | |
5937 | (SVE_PT_SVE_FFR_OFFSET): Likewise. | |
5938 | (SVE_PT_SVE_FPSR_OFFSET): Likewise. | |
5939 | (SVE_PT_SVE_FPCR_OFFSET): Likewise. | |
5940 | (SVE_PT_SVE_SIZE): Likewise. | |
5941 | (SVE_PT_SIZE): Likewise. | |
5942 | (HAS_SVE_STATE): New define. | |
5943 | ||
17a1cc89 AH |
5944 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
5945 | ||
5946 | * nat/aarch64-sve-linux-sigcontext.h: New file. | |
5947 | * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to | |
5948 | new files. | |
5949 | (SVE_VQ_MIN): Likewise. | |
5950 | (SVE_VQ_MAX): Likewise. | |
5951 | (SVE_VL_MIN): Likewise. | |
5952 | (SVE_VL_MAX): Likewise. | |
5953 | (SVE_NUM_ZREGS): Likewise. | |
5954 | (SVE_NUM_PREGS): Likewise. | |
5955 | (sve_vl_valid): Likewise. | |
5956 | (struct user_sve_header): Likewise. | |
5957 | ||
7010835a AB |
5958 | 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com> |
5959 | Richard Bunt <Richard.Bunt@arm.com> | |
5960 | ||
5961 | * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it | |
5962 | was requested by GDB. | |
5963 | ||
479b3ef4 TV |
5964 | 2018-06-15 Tom de Vries <tdevries@suse.de> |
5965 | ||
5966 | * MAINTAINERS (Write After Approval): Add Tom de Vries. | |
5967 | ||
8199b8f4 SM |
5968 | 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca> |
5969 | ||
5970 | * gnulib/update-gnulib.sh: Print expected versions of | |
5971 | autoconf/aclocal. | |
5972 | ||
55c748a1 SM |
5973 | 2018-06-14 Simon Marchi <simon.marchi@ericsson.com> |
5974 | ||
5975 | * arch-utils.c (default_type_align): Use type_length_units. | |
5976 | * gdbtypes.c (type_align): Use type_length_units. | |
5977 | ||
87a8eca7 PW |
5978 | 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5979 | ||
5980 | * cli/cli-script.c (_initialize_cli_script): Fix online documentation | |
5981 | of 'define' command. | |
5982 | ||
5d9a0608 TV |
5983 | 2018-06-14 Tom de Vries <tdevries@suse.de> |
5984 | ||
5985 | PR cli/22573 | |
5986 | * infcmd.c (print_return_value_1): Use get_user_print_options instead of | |
5987 | get_no_prettyformat_print_options. | |
5988 | ||
ab89b5a5 SM |
5989 | 2018-06-13 Simon Marchi <simon.marchi@ericsson.com> |
5990 | ||
5991 | * sparc-nat.h: Include target.h. | |
5992 | * sparc64-linux-nat.c (class sparc64_linux_nat_target) | |
5993 | <fetch_registers>: Remove this argument in function call. | |
5994 | <store_registers>: Remove this argument in function call, remove | |
5995 | extra semicolon. | |
5996 | <low_forget_process>: Call sparc64_forget_process instead of | |
5997 | sparc_forget_process. | |
5998 | ||
62c808ae RO |
5999 | 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6000 | ||
6001 | * procfs.c (_initialize_procfs): Use add_inf_child_target. | |
6002 | (procfs_target::make_corefile_notes): Adjust to new | |
6003 | target_read_alloc return type. | |
6004 | ||
1840d81a AB |
6005 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
6006 | Stephen Roberts <stephen.roberts@arm.com> | |
6007 | ||
6008 | PR gdb/22882 | |
6009 | * infrun.c (fetch_inferior_event): If GDB is not proceeding then | |
6010 | run INF_EXEC_COMPLETE handler, even when not calling normal_stop. | |
6011 | Move should_notify_stop local into more inner scope. | |
6012 | ||
9516f85a AB |
6013 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
6014 | Stephen Roberts <stephen.roberts@arm.com> | |
6015 | ||
6016 | PR gdb/22882 | |
6017 | * infrun.c (resume_1): Add call to mark_async_event_handler. | |
6018 | ||
defd2172 AB |
6019 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
6020 | ||
6021 | * infrun.c (do_target_wait): Change old version of $pc printed. | |
6022 | ||
7b23e087 SM |
6023 | 2018-06-11 Simon Marchi <simon.marchi@ericsson.com> |
6024 | ||
6025 | * dwarf2read.c (read_index_from_section): Rename to... | |
6026 | (read_gdb_index_from_section): ... this, update all callers. | |
6027 | (dwarf2_read_index): Rename to... | |
6028 | (dwarf2_read_gdb_index): ... this, update all callers. | |
6029 | ||
69c67a0b JDA |
6030 | 2018-06-11 John David Anglin <danglin@gcc.gnu.org> |
6031 | ||
6032 | * gdb/hppa-linux-nat.c | |
6033 | (hppa_linux_nat_target::fetch_inferior_registers): Rename to | |
6034 | hppa_linux_nat_target::fetch_registers. | |
6035 | ||
65d4cada AH |
6036 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
6037 | ||
6038 | * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings. | |
6039 | * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define. | |
6040 | (AARCH64_DWARF_SVE_FFR): Likewise. | |
6041 | (AARCH64_DWARF_SVE_P0): Likewise. | |
6042 | (AARCH64_DWARF_SVE_Z0): Likewise. | |
6043 | ||
f868386e AH |
6044 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
6045 | ||
6046 | * common/common-regcache.h (raw_compare): New function. | |
6047 | * regcache.c (regcache::raw_compare): Likewise. | |
6048 | * regcache.h (regcache::raw_compare): New declaration. | |
6049 | ||
9c861883 AH |
6050 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
6051 | ||
6052 | * common/common-regcache.h (reg_buffer_common): New structure. | |
6053 | * regcache.c (reg_buffer::invalidate): Move from detached_regcache. | |
6054 | (reg_buffer::raw_supply): Likewise. | |
6055 | (reg_buffer::raw_supply_integer): Likewise. | |
6056 | (reg_buffer::raw_supply_zeroed): Likewise. | |
6057 | (reg_buffer::raw_collect): Likewise. | |
6058 | (reg_buffer::raw_collect_integer): Likewise. | |
6059 | * regcache.h (reg_buffer::invalidate): Move from detached_regcache. | |
6060 | (reg_buffer::raw_supply): Likewise. | |
6061 | (reg_buffer::raw_supply_integer): Likewise. | |
6062 | (reg_buffer::raw_supply_zeroed): Likewise. | |
6063 | (reg_buffer::raw_collect): Likewise. | |
6064 | (reg_buffer::raw_collect_integer): Likewise. | |
6065 | ||
953edf2b TT |
6066 | 2018-06-10 Tom Tromey <tom@tromey.com> |
6067 | ||
6068 | * remote.c (stop_reply_p): Remove typedef. Don't declare queue. | |
6069 | (class remote_state) <stop_reply_queue>: Now std::vector. | |
6070 | (remote_state::~remote_state) | |
6071 | (remote_target::stop_reply_queue_length): Update. | |
6072 | (struct queue_iter_param, remove_child_of_pending_fork) | |
6073 | (struct check_pending_event_prevents_wildcard_vcont_callback_data) | |
6074 | (check_pending_event_prevents_wildcard_vcont_callback) | |
6075 | (remove_stop_reply_for_inferior) | |
6076 | (remove_stop_reply_of_remote_state) | |
6077 | (remote_notif_remove_once_on_match) | |
6078 | (stop_reply_match_ptid_and_ws) | |
6079 | (remote_kill_child_of_pending_fork): Remove. | |
6080 | (remote_target::remove_new_fork_children) | |
6081 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
6082 | (remote_target::discard_pending_stop_replies) | |
6083 | (remote_target::discard_pending_stop_replies_in_queue) | |
6084 | (remote_target::remote_notif_remove_queued_reply) | |
6085 | (remote_target::queued_stop_reply) | |
6086 | (remote_target::push_stop_reply, remote_target::peek_stop_reply) | |
6087 | (remote_target::wait, remote_target::kill_new_fork_children) | |
6088 | (remote_target::async): Update. | |
6089 | ||
1ddbba9d TT |
6090 | 2018-06-10 Tom Tromey <tom@tromey.com> |
6091 | ||
6092 | * record-full.c (record_full_arch_list_cleanups): Remove. | |
6093 | (record_full_message): Use try/catch. | |
6094 | (record_full_wait_cleanups): Remove. | |
6095 | (record_full_wait_1): Use try/catch. | |
6096 | (record_full_restore): Likewise. | |
6097 | ||
219605fd TT |
6098 | 2018-06-10 Tom Tromey <tom@tromey.com> |
6099 | ||
6100 | * record-full.c (record_full_breakpoint_p): Remove typedef. Don't | |
6101 | declare VEC. Add constructor. | |
6102 | <in_target_beneath>: Now bool. | |
6103 | (record_full_breakpoints): Now a std::vector, static. | |
6104 | (record_full_sync_record_breakpoints) | |
6105 | (record_full_init_record_breakpoints) | |
6106 | (record_full_target::insert_breakpoint) | |
6107 | (record_full_target::remove_breakpoint): Update. Don't use XNEW. | |
6108 | ||
71b73764 SM |
6109 | 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
6110 | ||
6111 | * dwarf2read.c (process_cu_includes): Remove struct keyword. | |
6112 | * serial.c (serial_interface_lookup): Remove struct keyword. | |
6113 | ||
4360561f TT |
6114 | 2018-06-10 Tom Tromey <tom@tromey.com> |
6115 | ||
6116 | * procfs.c (procfs_target::xfer_partial): Use "beneath" as a | |
6117 | method. | |
6118 | * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as | |
6119 | a method. | |
6120 | * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a | |
6121 | method. | |
6122 | * arm-linux-nat.c (arm_linux_nat_target::read_description): Use | |
6123 | "beneath" as a method. | |
6124 | * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description): | |
6125 | Use "beneath" as a method. | |
6126 | ||
d14b92bf TT |
6127 | 2018-06-10 Tom Tromey <tom@tromey.com> |
6128 | ||
6129 | * tracefile.c (struct trace_file_writer_deleter): New. | |
6130 | <operator()>: Rename from trace_file_writer_xfree. | |
6131 | (trace_file_writer_up): New typedef. | |
6132 | (tsave_command, trace_save_tfile, trace_save_ctf): Update. | |
6133 | ||
835dcf92 SM |
6134 | 2018-06-09 Simon Marchi <simon.marchi@ericsson.com> |
6135 | ||
6136 | * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor. | |
6137 | <m_registers, m_register_status>: Change type to | |
6138 | std::unique_ptr. | |
6139 | * regcache.c (reg_buffer::reg_buffer): Use new instead of | |
6140 | XCNEWVEC. | |
6141 | ||
aac0d564 SM |
6142 | 2018-06-09 Simon Marchi <simon.marchi@ericsson.com> |
6143 | ||
6144 | * common/common-regcache.h (enum register_status): Add | |
6145 | underlying type "signed char". | |
6146 | * regcache.h (reg_buffer) <m_register_status>: Change type to | |
6147 | register_status *. | |
6148 | * regcache.c (reg_buffer::reg_buffer): Alocate arrays of | |
6149 | register_status instead of signed char. | |
6150 | (reg_buffer::save): Use REG_UNKNOWN instead of 0. | |
6151 | (reg_buffer::get_register_status): Remove cast. | |
6152 | (readable_regcache::raw_read): Remove cast. | |
6153 | (readable_regcache::cooked_read): Remove cast. | |
6154 | ||
77ad7394 TT |
6155 | 2018-06-09 Tom Tromey <tom@tromey.com> |
6156 | ||
6157 | * source.c (reverse_search_command, forward_search_command): Use | |
6158 | scoped_fd. | |
6159 | ||
191cca63 TT |
6160 | 2018-06-09 Tom Tromey <tom@tromey.com> |
6161 | ||
6162 | * serial.c (serial_ops_p): Remove typedef. Don't declare VEC. | |
6163 | (serial_ops_list): Now static, std::vector. | |
6164 | (serial_interface_lookup, serial_add_interface): Update. | |
6165 | ||
c5d0225d TT |
6166 | 2018-06-09 Tom Tromey <tom@tromey.com> |
6167 | ||
6168 | * dwarf2read.c (process_cu_includes): Update. | |
6169 | (process_full_comp_unit): Update. | |
6170 | * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a | |
6171 | std::vector. | |
6172 | ||
aeab5128 PK |
6173 | 2018-06-08 Paul Koning <paul_koning@dell.com> |
6174 | ||
6175 | PR gdb/23252 | |
6176 | ||
6177 | * python/python.c (do_start_initialization): | |
6178 | Avoid call to internal Python API. | |
6179 | (init__gdb_module): New function. | |
6180 | ||
5045b3d7 GB |
6181 | 2018-06-08 Gary Benson <gbenson@redhat.com> |
6182 | ||
6183 | * linux-thread-db.c (valprint.h): New include. | |
6184 | (struct check_thread_db_info): New structure. | |
6185 | (check_thread_db_on_load, tdb_testinfo): New static globals. | |
6186 | (check_thread_db, check_thread_db_callback): New functions. | |
6187 | (try_thread_db_load_1): Run integrity checks if requested. | |
6188 | (maintenance_check_libthread_db): New function. | |
6189 | (_initialize_thread_db): Register "maint check libthread-db" | |
6190 | and "maint set/show check-libthread-db". | |
6191 | * NEWS: Mention the above new commands. | |
6192 | ||
2f4f025f TT |
6193 | 2018-06-08 Tom Tromey <tom@tromey.com> |
6194 | ||
6195 | * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is | |
6196 | now a method. | |
6197 | ||
343b0027 TT |
6198 | 2018-06-08 Tom Tromey <tom@tromey.com> |
6199 | ||
6200 | * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr. | |
6201 | ||
8dcc53b3 TT |
6202 | 2018-06-08 Tom Tromey <tom@tromey.com> |
6203 | ||
6204 | * common/btrace-common.h (struct btrace_data): Add constructor, | |
6205 | destructor, move assignment operator. | |
6206 | <empty, clear, fini>: New methods. | |
6207 | <format>: Initialize. | |
6208 | (btrace_data_init, btrace_data_fini, btrace_data_clear) | |
6209 | (btrace_data_empty): Don't declare. | |
6210 | * common/btrace-common.c (btrace_data_init): Remove. | |
6211 | (btrace_data::fini): Rename from btrace_data_fini. | |
6212 | (btrace_data::empty): Rename from btrace_data_empty. | |
6213 | (btrace_data::clear): Rename from btrace_data_clear. Return | |
6214 | bool. | |
6215 | * btrace.h (make_cleanup_btrace_data): Don't declare. | |
6216 | * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear) | |
6217 | (parse_xml_btrace): Update. | |
6218 | (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove. | |
6219 | (maint_btrace_clear_packet_history_cmd): Update. | |
6220 | ||
a1740ee1 PA |
6221 | 2018-06-07 Pedro Alves <palves@redhat.com> |
6222 | ||
6223 | * target.h (target_ops) <beneath>: Now a method. All references | |
6224 | updated. | |
6225 | (class target_stack): New. | |
6226 | * target.c (g_target_stack): New. | |
6227 | (g_current_top_target): Delete. | |
6228 | (current_top_target): Get the top target out of g_target_stack. | |
6229 | (target_stack::push, target_stack::unpush): New. | |
6230 | (push_target, unpush_target): Reimplement. | |
6231 | (target_is_pushed): Reimplement in terms of g_target_stack. | |
6232 | (target_ops::beneath, target_stack::find_beneath): New. | |
6233 | ||
d6ca69cd PA |
6234 | 2018-06-07 Pedro Alves <palves@redhat.com> |
6235 | ||
6236 | * target.h (find_target_beneath): Delete declaration. | |
6237 | * target.c (find_target_beneath): Delete definition. | |
6238 | * aix-thread.c: All callers of find_target_beneath adjusted to | |
6239 | call target_ops::beneath instead. | |
6240 | * bsd-uthread.c: Likewise. | |
6241 | * linux-thread-db.c: Likewise. | |
6242 | * ravenscar-thread.c: Likewise. | |
6243 | * sol-thread.c: Likewise. | |
6244 | * spu-multiarch.c: Likewise. | |
6245 | ||
b6a8c27b PA |
6246 | 2018-06-07 Pedro Alves <palves@redhat.com> |
6247 | ||
6248 | * target.h (target_ops) <beneath>: Now a method. All references | |
6249 | updated. | |
6250 | (target_ops) <m_beneath>: New. | |
6251 | * target.c (target_ops::beneath): New. | |
6252 | * corelow.c: Adjust all references to target_ops::beneath. | |
6253 | * linux-thread-db.c: Likewise. | |
6254 | * make-target-delegates: Likewise. | |
6255 | * record-btrace.c: Likewise. | |
6256 | * record-full.c: Likewise. | |
6257 | * remote.c: Likewise. | |
6258 | * target.c: Likewise. | |
6259 | * target-delegates.c: Regenerate. | |
6260 | ||
8b88a78e PA |
6261 | 2018-06-07 Pedro Alves <palves@redhat.com> |
6262 | ||
6263 | * target.h (target_stack): Delete. | |
6264 | (current_top_target): Declare function. | |
6265 | * target.c (target_stack): Delete. | |
6266 | (g_current_top_target): New. | |
6267 | (current_top_target): New function. | |
6268 | * auxv.c: Use current_top_target instead of target_stack | |
6269 | throughout. | |
6270 | * avr-tdep.c: Likewise. | |
6271 | * breakpoint.c: Likewise. | |
6272 | * corefile.c: Likewise. | |
6273 | * elfread.c: Likewise. | |
6274 | * eval.c: Likewise. | |
6275 | * exceptions.c: Likewise. | |
6276 | * frame.c: Likewise. | |
6277 | * gdbarch-selftests.c: Likewise. | |
6278 | * gnu-v3-abi.c: Likewise. | |
6279 | * ia64-tdep.c: Likewise. | |
6280 | * ia64-vms-tdep.c: Likewise. | |
6281 | * infcall.c: Likewise. | |
6282 | * infcmd.c: Likewise. | |
6283 | * infrun.c: Likewise. | |
6284 | * linespec.c: Likewise. | |
6285 | * linux-tdep.c: Likewise. | |
6286 | * minsyms.c: Likewise. | |
6287 | * ppc-linux-nat.c: Likewise. | |
6288 | * ppc-linux-tdep.c: Likewise. | |
6289 | * procfs.c: Likewise. | |
6290 | * regcache.c: Likewise. | |
6291 | * remote.c: Likewise. | |
6292 | * rs6000-tdep.c: Likewise. | |
6293 | * s390-linux-nat.c: Likewise. | |
6294 | * s390-tdep.c: Likewise. | |
6295 | * solib-aix.c: Likewise. | |
6296 | * solib-darwin.c: Likewise. | |
6297 | * solib-dsbt.c: Likewise. | |
6298 | * solib-spu.c: Likewise. | |
6299 | * solib-svr4.c: Likewise. | |
6300 | * solib-target.c: Likewise. | |
6301 | * sparc-tdep.c: Likewise. | |
6302 | * sparc64-tdep.c: Likewise. | |
6303 | * spu-tdep.c: Likewise. | |
6304 | * symfile.c: Likewise. | |
6305 | * symtab.c: Likewise. | |
6306 | * target-descriptions.c: Likewise. | |
6307 | * target-memory.c: Likewise. | |
6308 | * target.c: Likewise. | |
6309 | * target.h: Likewise. | |
6310 | * tracefile-tfile.c: Likewise. | |
6311 | * tracepoint.c: Likewise. | |
6312 | * valops.c: Likewise. | |
6313 | * valprint.c: Likewise. | |
6314 | * value.c: Likewise. | |
6315 | * windows-tdep.c: Likewise. | |
6316 | * mi/mi-main.c: Likewise. | |
6317 | ||
c7110220 TT |
6318 | 2018-06-07 Tom Tromey <tom@tromey.com> |
6319 | ||
6320 | * valprint.h (build_address_symbolic): Declare. | |
6321 | * printcmd.c (print_address_symbolic): Update. | |
6322 | (build_address_symbolic): Change "name" and "filename" to | |
6323 | std::string. | |
6324 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): | |
6325 | Update. | |
6326 | * defs.h (build_address_symbolic): Remove declaration. | |
6327 | ||
63bad7b6 AH |
6328 | 2018-06-07 Alan Hayward <alan.hayward@arm.com> |
6329 | ||
6330 | * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define. | |
6331 | (aarch64_vnv_type): Add function. | |
6332 | (aarch64_pseudo_register_name): Add V regs for SVE. | |
6333 | (aarch64_pseudo_register_type): Likewise. | |
6334 | (aarch64_pseudo_register_reggroup_p): Likewise. | |
6335 | (aarch64_pseudo_read_value_2): Use V0 offset for SVE | |
6336 | (aarch64_pseudo_read_value): Add V regs for SVE. | |
6337 | (aarch64_pseudo_write_2): Use V0 offset for SVE | |
6338 | (aarch64_pseudo_write): Add V regs for SVE. | |
6339 | * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type. | |
6340 | ||
13e3c608 SDJ |
6341 | 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com> |
6342 | ||
6343 | * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef. | |
6344 | (sve_vl_from_vq): Likewise. | |
6345 | ||
c61b06a1 TT |
6346 | 2018-06-05 Tom Tromey <tom@tromey.com> |
6347 | ||
6348 | * cli/cli-cmds.c (show_version): Update. | |
6349 | * top.c (print_gdb_version): Add "interactive" parameter. | |
6350 | Update. | |
6351 | * main.c (captured_main_1): Update. | |
6352 | * top.h (print_gdb_version): Add "interactive" parameter and a | |
6353 | comment. | |
6354 | ||
115f7325 DM |
6355 | 2018-06-05 David Malcolm <dmalcolm@redhat.com> |
6356 | ||
6357 | * common/enum-flags.h: Add trailing semicolon to example in | |
6358 | comment. | |
6359 | ||
eb6af809 TT |
6360 | 2018-06-05 Tom Tromey <tom@tromey.com> |
6361 | ||
6362 | PR cli/12326: | |
6363 | * NEWS: Add entry about pager. | |
6364 | * utils.c (pagination_disabled_for_command): New global. | |
6365 | (prompt_for_continue): Allow "c" response to prompt. | |
6366 | (reinitialize_more_filter): Clear | |
6367 | pagination_disabled_for_command. | |
6368 | (fputs_maybe_filtered): Check pagination_disabled_for_command. | |
6369 | ||
54d343a2 TT |
6370 | 2018-06-04 Tom Tromey <tom@tromey.com> |
6371 | ||
6372 | * ada-lang.h (ada_lookup_symbol_list): Update. | |
6373 | * ada-lang.c (resolve_subexp): Update. | |
6374 | (symbols_are_identical_enums): Change type of syms. Remove nsyms | |
6375 | parameter. | |
6376 | (remove_extra_symbols, remove_irrelevant_renamings): Likewise. | |
6377 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change | |
6378 | results parameter to std::vector. | |
6379 | (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value): | |
6380 | Update. | |
6381 | * ada-exp.y (block_lookup): Update. | |
6382 | (select_possible_type_sym): Change type of syms. Remove nsyms | |
6383 | parameter. | |
6384 | (write_var_or_type, write_name_assoc): Update. | |
6385 | ||
178d6a63 JB |
6386 | 2018-06-04 Joel Brobecker <brobecker@adacore.com> |
6387 | ||
6388 | * windows-nat.c (windows_nat_target::xfer_partial): Return | |
6389 | TARGET_XFER_E_IO if we need to delegate to the target beneath | |
6390 | but BENEATH is NULL. | |
6391 | ||
baf00c2d SM |
6392 | 2018-06-04 Simon Marchi <simon.marchi@ericsson.com> |
6393 | ||
6394 | * Makefile.in (config.status): Add configure.nat as a | |
6395 | dependency. | |
6396 | ||
214b073c TT |
6397 | 2018-06-04 Tom Tromey <tom@tromey.com> |
6398 | ||
6399 | * cp-name-parser.y (cpname_state): Add method declarations. | |
6400 | (HANDLE_QUAL): Update. | |
6401 | (cpname_state::d_grab, cpname_state::fill_comp) | |
6402 | (cpname_state::make_operator, cpname_state::make_dtor) | |
6403 | (cpname_state::make_builtin_type, cpname_state::make_name) | |
6404 | (cpname_state::d_qualify, cpname_state::d_int_type) | |
6405 | (cpname_state::d_unary, cpname_state::d_binary): Now methods. | |
6406 | (%union): Move earlier. | |
6407 | ||
62b74cb8 AH |
6408 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
6409 | ||
6410 | * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT. | |
6411 | ||
3c5cd5c3 AH |
6412 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
6413 | ||
6414 | * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func. | |
6415 | (aarch64_pseudo_write_1): Likewise. | |
6416 | (aarch64_pseudo_read_value): Use helper. | |
6417 | (aarch64_pseudo_write): Likewise. | |
6418 | ||
59f413d5 PA |
6419 | 2018-06-04 Pedro Alves <palves@redhat.com> |
6420 | ||
6421 | * darwin-nat.c (darwin_ops): Delete. | |
6422 | (darwin_attach_pid): Use get_native_target. | |
6423 | ||
1332a140 AH |
6424 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
6425 | ||
6426 | * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ. | |
6427 | * aarch64-tdep.h (struct gdbarch_tdep): Likewise. | |
6428 | ||
ba2d2bb2 AH |
6429 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
6430 | ||
6431 | * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE. | |
6432 | * aarch64-tdep.c (aarch64_get_tdesc_vq): New function. | |
6433 | (aarch64_gdbarch_init): Check for SVE. | |
6434 | * aarch64-tdep.h (gdbarch_tdep::has_sve): New function. | |
6435 | ||
6436 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> | |
39bfb937 AH |
6437 | |
6438 | * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ. | |
6439 | * aarch64-tdep.h (aarch64_read_description): Likewise. | |
6440 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
6441 | * arch/aarch64.h (aarch64_create_target_description): Likewise. | |
6442 | * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise. | |
6443 | * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise. | |
6444 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise. | |
6445 | ||
41c60b4b SM |
6446 | 2018-06-02 Simon Marchi <simon.marchi@ericsson.com> |
6447 | ||
6448 | * value.c (value_fetch_lazy_bitfield): New. | |
6449 | (value_fetch_lazy_memory): New. | |
6450 | (value_fetch_lazy_register): New. | |
6451 | (value_fetch_lazy): Factor out to smaller functions. | |
6452 | ||
7b640f72 TT |
6453 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6454 | ||
6455 | * cp-name-parser.y (backslashable, represented): Now const. | |
6456 | ||
98e69eb3 TT |
6457 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6458 | ||
6459 | * cp-name-parser.y: Include parser-defs.h. | |
6460 | (parser_fprintf): Remove declaration. | |
6461 | ||
49265499 TT |
6462 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6463 | ||
6464 | * cp-name-parser.y: Use %pure-parser, %lex-param, and | |
6465 | %parse-param. | |
6466 | (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info) | |
6467 | (global_result): Remove globals. | |
6468 | (struct cpname_state): New. | |
6469 | (yyparse): Don't declare. | |
6470 | (yylex, yyerror): Move declarations after %union. | |
6471 | (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type) | |
6472 | (make_name): Add state parameter. | |
6473 | Update all callers. | |
6474 | (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state | |
6475 | parameter. | |
6476 | (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3): | |
6477 | Update. | |
6478 | (yylex): Add lvalp, state parameters. | |
6479 | (yyerror): Add state parameter. | |
6480 | (cp_demangled_name_to_comp): Update. | |
6481 | ||
55b6c984 TT |
6482 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6483 | ||
6484 | * cp-name-parser.y (parser_fprintf): Declare. | |
6485 | (GDB_YY_REMAP_PREFIX): Define. | |
6486 | Include yy-remap.h. Don't redefine yy* identifiers. | |
6487 | ||
3513a6bb TT |
6488 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6489 | ||
6490 | * python/py-type.c (typy_legacy_template_argument): Update. | |
6491 | * cp-support.h (cp_demangled_name_to_comp): Update. | |
6492 | * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg | |
6493 | parameter to be a "std::string *". | |
6494 | (main): Update. | |
6495 | ||
e9cb46ab L |
6496 | 2018-06-01 H.J. Lu <hongjiu.lu@intel.com> |
6497 | ||
6498 | * ada-lex.l: Include "diagnostics.h" instead of | |
6499 | "common/diagnostics.h". | |
6500 | * unittests/environ-selftests.c: Likewise. | |
6501 | * common/diagnostics.h: Moved to ../include. | |
6502 | ||
8e817061 JB |
6503 | 2018-06-01 Joel Brobecker <brobecker@adacore.com> |
6504 | ||
6505 | * breakpoint.c (breakpoint_re_set): Temporarily force language_mode | |
6506 | to language_mode_manual while calling breakpoint_re_set_one. | |
6507 | ||
a737d952 TT |
6508 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6509 | ||
6510 | * valops.c (value_cast_structs, destructor_name_p): Update. | |
6511 | * symtab.c (gdb_mangle_name): Update. | |
6512 | * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses): | |
6513 | Update. | |
6514 | * p-valprint.c (pascal_object_is_vtbl_ptr_type) | |
6515 | (pascal_object_print_value_fields, pascal_object_print_value): | |
6516 | Update. | |
6517 | * p-typeprint.c (pascal_type_print_derivation_info): Update. | |
6518 | * linespec.c (find_methods): Update. | |
6519 | * gdbtypes.h (type_name_no_tag): Remove. | |
6520 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
6521 | * gdbtypes.c (type_name_no_tag): Remove. | |
6522 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
6523 | (lookup_struct_elt_type, check_typedef): Update. | |
6524 | * expprint.c (print_subexp_standard): Update. | |
6525 | * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update. | |
6526 | * d-namespace.c (d_lookup_nested_symbol): Update. | |
6527 | * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields) | |
6528 | (cp_print_class_member): Update. | |
6529 | * cp-namespace.c (cp_lookup_nested_symbol): Update. | |
6530 | * completer.c (add_struct_fields): Update. | |
6531 | * c-typeprint.c (cp_type_print_derivation_info) | |
6532 | (c_type_print_varspec_prefix, c_type_print_base_struct_union): | |
6533 | Update. | |
6534 | * ada-lang.c (parse_old_style_renaming, xget_renaming_scope) | |
6535 | (ada_prefer_type, ada_is_exception_sym): Update. | |
6536 | ||
e86ca25f TT |
6537 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6538 | ||
6539 | * valops.c (enum_constant_from_type, value_namespace_elt) | |
6540 | (value_maybe_namespace_elt): Update. | |
6541 | * valarith.c (find_size_for_pointer_math): Update. | |
6542 | * target-descriptions.c (make_gdb_type): Update. | |
6543 | * symmisc.c (print_symbol): Update. | |
6544 | * stabsread.c (define_symbol, read_type) | |
6545 | (complain_about_struct_wipeout, add_undefined_type) | |
6546 | (cleanup_undefined_types_1): Update. | |
6547 | * rust-lang.c (rust_tuple_type_p, rust_slice_type_p) | |
6548 | (rust_range_type_p, val_print_struct, rust_print_struct_def) | |
6549 | (rust_internal_print_type, rust_composite_type) | |
6550 | (rust_evaluate_funcall, rust_evaluate_subexp) | |
6551 | (rust_inclusive_range_type_p): Update. | |
6552 | * python/py-type.c (typy_get_tag): Update. | |
6553 | * p-typeprint.c (pascal_type_print_base): Update. | |
6554 | * mdebugread.c (parse_symbol, parse_type): Update. | |
6555 | * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum): | |
6556 | Update. | |
6557 | * guile/scm-type.c (gdbscm_type_tag): Update. | |
6558 | * go-lang.c (sixg_string_p): Update. | |
6559 | * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type): | |
6560 | Update. | |
6561 | * gdbtypes.h (struct main_type) <tag_name>: Remove. | |
6562 | (TYPE_TAG_NAME): Remove. | |
6563 | * gdbtypes.c (type_name_no_tag): Simplify. | |
6564 | (check_typedef, check_types_equal, recursive_dump_type) | |
6565 | (copy_type_recursive, arch_composite_type): Update. | |
6566 | * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix | |
6567 | in summary mode when needed. | |
6568 | * eval.c (evaluate_funcall): Update. | |
6569 | * dwarf2read.c (fixup_go_packaging, read_structure_type) | |
6570 | (process_structure_scope, read_enumeration_type) | |
6571 | (read_namespace_type, read_module_type, determine_prefix): Update. | |
6572 | * cp-support.c (inspect_type): Update. | |
6573 | * coffread.c (process_coff_symbol, decode_base_type): Update. | |
6574 | * c-varobj.c (c_is_path_expr_parent): Update. | |
6575 | * c-typeprint.c (c_type_print_base_struct_union): Update. | |
6576 | (c_type_print_base_1): Update. Print struct/class/union/enum in | |
6577 | summary when using C language. | |
6578 | * ax-gdb.c (gen_struct_ref, gen_namespace_elt) | |
6579 | (gen_maybe_namespace_elt): Update. | |
6580 | * ada-lang.c (ada_type_name): Simplify. | |
6581 | (empty_record, ada_template_to_fixed_record_type_1) | |
6582 | (template_to_static_fixed_type) | |
6583 | (to_record_with_fixed_variant_part, ada_check_typedef): Update. | |
6584 | ||
c1ec8cea TT |
6585 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6586 | ||
6587 | * dwarf2read.c (dwarf2_compute_name): Pass CU's language to | |
6588 | c_print_type. | |
6589 | * c-typeprint.c (c_print_type_1): Add "language" parameter. | |
6590 | (c_print_type): Update. | |
6591 | (c_print_type): New overload. | |
6592 | (c_type_print_varspec_prefix, c_type_print_args) | |
6593 | (c_type_print_varspec_suffix, c_print_type_no_offsets) | |
6594 | (c_type_print_base_struct_union, c_type_print_base_1) | |
6595 | (cp_type_print_method_args): Add "language" parameter. | |
6596 | (c_type_print_base): Update. | |
6597 | * c-lang.h (c_print_type): Add new overload. | |
6598 | ||
bc8453a7 TT |
6599 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6600 | ||
6601 | * typeprint.h (c_type_print_varspec_suffix): Don't declare. | |
6602 | * c-typeprint.c (c_type_print_varspec_suffix): Now static. | |
6603 | ||
739e8682 AH |
6604 | 2018-06-01 Alan Hayward <alan.hayward@arm.com> |
6605 | ||
6606 | * aarch64-tdep.c (aarch64_sve_register_names): New const | |
6607 | var. | |
6608 | * arch/aarch64.h (enum aarch64_regnum): Add SVE entries. | |
6609 | (AARCH64_SVE_Z_REGS_NUM): New define. | |
6610 | (AARCH64_SVE_P_REGS_NUM): Likewise. | |
6611 | (AARCH64_SVE_NUM_REGS): Likewise. | |
6612 | ||
8a60efe7 UB |
6613 | 2018-05-31 Uros Bizjak <ubizjak@gmail.com> |
6614 | ||
6615 | * nat/linux-ptrace.h [__alpha__] | |
6616 | (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove | |
6617 | definitions. | |
6618 | ||
4b2dfa9d MR |
6619 | 2018-05-31 Maciej W. Rozycki <macro@mips.com> |
6620 | ||
6621 | * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to | |
6622 | the endianness selected. | |
6623 | * NEWS: Document `set endian auto' mode operation update. | |
6624 | ||
122394f1 AH |
6625 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
6626 | ||
6627 | * Makefile.in: Add new header. | |
6628 | * gdb/arch/aarch64.h (sve_vg_from_vl): New macro. | |
6629 | (sve_vl_from_vg): Likewise. | |
6630 | (sve_vq_from_vl): Likewise. | |
6631 | (sve_vl_from_vq): Likewise. | |
6632 | (sve_vq_from_vg): Likewise. | |
6633 | (sve_vg_from_vq): Likewise. | |
6634 | * configure.nat: Add new c file. | |
6635 | * nat/aarch64-sve-linux-ptrace.c: New file. | |
6636 | * nat/aarch64-sve-linux-ptrace.h: New file. | |
6637 | ||
95228a0d AH |
6638 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
6639 | ||
6640 | * aarch64-linux-nat.c (aarch64_linux_read_description): | |
6641 | Add parmeter zero. | |
6642 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
6643 | Likewise. | |
6644 | * aarch64-tdep.c (tdesc_aarch64_list): Add. | |
6645 | (aarch64_read_description): Use VQ to index tdesc_aarch64_list. | |
6646 | (aarch64_gdbarch_init): Add parmeter zero. | |
6647 | * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter. | |
6648 | * arch/aarch64.c (aarch64_create_target_description): Check VQ. | |
6649 | * arch/aarch64.h (aarch64_create_target_description): Add VQ. | |
6650 | parmeter. | |
6651 | * doc/gdb.texinfo: Describe SVE feature | |
6652 | * features/aarch64-sve.c: New file. | |
6653 | ||
5969f0db OJ |
6654 | 2018-05-31 Omair Javaid <omair.javaid@linaro.org> |
6655 | ||
6656 | PR gdb/23210 | |
6657 | * gdbarch.sh (significant_addr_bit): Default to zero when | |
6658 | not set by target architecture. | |
6659 | * gdbarch.c: Re-generated. | |
6660 | * utils.c (address_significant): Update. | |
6661 | ||
61367c61 JB |
6662 | 2018-05-30 Joel Brobecker <brobecker@adacore.com> |
6663 | ||
6664 | * stack.c (func_command): Remove trailing newline in call to error. | |
6665 | ||
34a79281 SM |
6666 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6667 | ||
6668 | * regcache.h (regcache_raw_collect): Remove, update callers to | |
6669 | use regcache::raw_collect. | |
6670 | * regcache.c (regcache_raw_collect): Remove. | |
6671 | ||
73e1c03f SM |
6672 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6673 | ||
6674 | * regcache.h (regcache_raw_supply): Remove, update callers to | |
6675 | use detached_regcache::raw_supply. | |
6676 | * regcache.c (regcache_raw_supply): Remove. | |
6677 | ||
e4c4a59b SM |
6678 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6679 | ||
6680 | * regcache.h (regcache_cooked_write_part): Remove, update | |
6681 | callers to use regcache::cooked_write_part. | |
6682 | * regcache.c (regcache_cooked_write_part): Remove. | |
6683 | ||
73bb0000 SM |
6684 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6685 | ||
6686 | * regcache.h (regcache_cooked_read_part): Remove, update callers | |
6687 | to use readable_regcache::cooked_read_part. | |
6688 | * regcache.c (regcache_cooked_read_part): Remove. | |
6689 | ||
46a45e9d SM |
6690 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6691 | ||
6692 | * regcache.h (regcache_cooked_read_value): Remove, update | |
6693 | callers to use readable_regcache::cooked_read_value. | |
6694 | * regcache.c (regcache_cooked_read_value): Remove. | |
6695 | ||
b66f5587 SM |
6696 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6697 | ||
6698 | * regcache.h (regcache_cooked_write): Remove, update callers to | |
6699 | use regcache::cooked_write. | |
6700 | * regcache.c (regcache_cooked_write): Remove. | |
6701 | ||
6aa7d724 SM |
6702 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6703 | ||
6704 | * regcache.h (regcache_invalidate): Remove, update callers to | |
6705 | use detached_regcache::invalidate instead. | |
6706 | * regcache.c (regcache_invalidate): Remove. | |
6707 | ||
4f0420fd SM |
6708 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6709 | ||
6710 | * regcache.h (regcache_raw_write_part): Remove, update callers | |
6711 | to use regcache::raw_write_part instead. | |
6712 | * regcache.c (regcache_raw_write_part): Remove. | |
6713 | ||
502fe83e SM |
6714 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6715 | ||
6716 | * regcache.h (regcache_raw_read_part): Remove, update callers to | |
6717 | use readable_regcache::raw_read_part instead. | |
6718 | * regcache.c (regcache_raw_read_part): Remove. | |
6719 | ||
dca08e1f SM |
6720 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6721 | ||
6722 | * regcache.h (regcache_cooked_read): Remove, update callers to | |
6723 | use readable_regcache::cooked_read instead. | |
6724 | * regcache.c (regcache_cooked_read): Remove. | |
6725 | ||
10eaee5f SM |
6726 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6727 | ||
6728 | * regcache.h (regcache_raw_write): Remove, update callers to use | |
6729 | regcache::raw_write instead. | |
6730 | * regcache.c (regcache_raw_write): Remove. | |
6731 | ||
0b883586 SM |
6732 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6733 | ||
6734 | * regcache.h (regcache_raw_read): Remove, update callers to use | |
6735 | readable_regcache::raw_read instead. | |
6736 | * regcache.c (regcache_raw_read): Remove. | |
6737 | ||
0b47d985 SM |
6738 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6739 | ||
6740 | * regcache.h (regcache_raw_update): Remove, update callers to | |
6741 | use readable_regcache::raw_update instead. | |
6742 | * regcache.c (regcache_raw_update): Remove. | |
6743 | ||
0ec9f114 SM |
6744 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6745 | ||
6746 | * regcache.h (regcache_register_status): Remove, update callers | |
6747 | to use reg_buffer::get_register_status directly instead. | |
6748 | * regcache.c (regcache_register_status): Remove. | |
6749 | ||
222312d3 SM |
6750 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6751 | ||
6752 | * regcache.h (regcache_get_ptid): Remove, update all callers to | |
6753 | call regcache::ptid instead. | |
6754 | * regcache.c (regcache_get_ptid): Remove. | |
6755 | ||
fdbe37e3 SM |
6756 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6757 | ||
6758 | * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o. | |
6759 | ||
f7c6f423 PA |
6760 | 2018-05-30 Pedro Alves <palves@redhat.com> |
6761 | ||
6762 | * common/common-exceptions.h (exception_rethrow): Use | |
6763 | ATTRIBUTE_NORETURN. | |
6764 | ||
52941706 SM |
6765 | 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca> |
6766 | ||
6767 | * breakpoint.c (print_solib_event, check_status_catch_solib): | |
6768 | Remove struct keyword in range-based for loops. | |
6769 | * dbxread.c (find_corresponding_bincl_psymtab): Likewise. | |
6770 | * dwarf2read.c (compute_delayed_physnames, rust_union_quirks); | |
6771 | Likewise. | |
6772 | * linespec.c (find_superclass_methods, search_minsyms_for_name): | |
6773 | Likewise. | |
6774 | * symfile.c (addr_info_make_relative): Likewise. | |
6775 | * thread.c (value_in_thread_stack_temporaries): Likewise. | |
6776 | ||
bf2977b5 WP |
6777 | 2018-06-12 Weimin Pan <weimin.pan@oracle.com> |
6778 | ||
6779 | PR gdb/16841 | |
6780 | * valops.c (value_struct_elt_for_reference): Call check_typedef on | |
6781 | aggregate type to get its real type before accessing it. | |
6782 | ||
64cc34d8 WP |
6783 | 2018-05-29 Weimin Pan <weimin.pan@oracle.com> |
6784 | ||
6785 | * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration. | |
6786 | * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition. | |
6787 | * coff-pe-read.c (add_pe_forwarded_sym): Replace | |
6788 | lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol. | |
6789 | * glibc-tdep.c (glibc_skip_solib_resolver): Likewise. | |
6790 | * jit.c (jit_breakpoint_re_set_internal): Likewise. | |
6791 | * printcmd.c (info_address_command): Likewise. | |
6792 | ||
e7ec8713 TT |
6793 | 2018-05-29 Tom Tromey <tom@tromey.com> |
6794 | ||
6795 | * windows-nat.c (handle_exception): Update fall-through comment. | |
6796 | ||
bcb430e4 TT |
6797 | 2018-05-29 Tom Tromey <tom@tromey.com> |
6798 | ||
6799 | * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC. | |
6800 | (struct program_space) <added_solibs>: Now a std::vector. | |
6801 | * breakpoint.c (print_solib_event): Update. | |
6802 | (check_status_catch_solib): Update. | |
6803 | * progspace.c (clear_program_space_solib_cache): Update. | |
6804 | * solib.c (update_solib_list): Update. | |
6805 | ||
894882e3 TT |
6806 | 2018-05-29 Tom Tromey <tom@tromey.com> |
6807 | ||
6808 | * python/py-type.c (typy_richcompare): Update. | |
6809 | * guile/scm-type.c (tyscm_equal_p_type_smob): Update. | |
6810 | * gdbtypes.h (types_deeply_equal): Return bool. | |
6811 | (types_equal): Likewise. | |
6812 | * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't | |
6813 | declare VEC. | |
6814 | (check_types_equal): Change worklist to std::vector. Return | |
6815 | bool. | |
6816 | (struct type_equality_entry): Add constructor. | |
6817 | (compare_maybe_null_strings): Return bool. | |
6818 | (check_types_worklist): Return bool. Change worklist to | |
6819 | std::vector. | |
6820 | (types_deeply_equal): Use std::vector. | |
6821 | (types_equal): Return bool. | |
6822 | (compare_maybe_null_strings): Simplify. | |
6823 | ||
10b2ded4 TT |
6824 | 2018-05-29 Tom Tromey <tom@tromey.com> |
6825 | ||
6826 | * record-btrace.c (tp_t): Remove typedef. Don't declare VEC. | |
6827 | ||
4f7deebe TT |
6828 | 2018-05-29 Tom Tromey <tom@tromey.com> |
6829 | ||
6830 | * objc-lang.h: Don't include cp-support.h. | |
6831 | * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't | |
6832 | declare VEC. | |
6833 | ||
b8283aea TT |
6834 | 2018-05-27 Tom Tromey <tom@tromey.com> |
6835 | ||
6836 | * Makefile.in (DEPFILES): Don't reference REMOTE_OBS. | |
6837 | ||
41a883c8 TT |
6838 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6839 | ||
6840 | * value.c (value::location): Initialize. | |
6841 | ||
bf259e25 TT |
6842 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6843 | ||
6844 | * dbxread.c (init_bincl_list): Remove. | |
6845 | (bincl_list): Now a std::vector. | |
6846 | (bincls_allocated, next_bincl): Remove. | |
6847 | (free_bincl_list, do_free_bincl_list_cleanup) | |
6848 | (make_cleanup_free_bincl_list): Remove. | |
6849 | (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore, | |
6850 | unique_xmalloc_ptr. | |
6851 | (find_corresponding_bincl_psymtab, read_dbx_symtab): Update. | |
6852 | (struct header_file_location): Add constructor. | |
6853 | (add_bincl_to_list): Remove. | |
6854 | ||
d525a99b TT |
6855 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6856 | ||
6857 | * tui/tui.c (tui_enable): Update. | |
6858 | * mi/mi-interp.c (mi_interp::init): Update. | |
6859 | * interps.h (class interp) <name>: New method. | |
6860 | <m_name>: Rename from name. | |
6861 | (~scoped_restore_interp): Update. | |
6862 | * interps.c (interp::interp): Update. | |
6863 | (interp_add, interp_set, interp_lookup_existing) | |
6864 | (current_interp_named_p): Update. | |
6865 | ||
da505cff TT |
6866 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6867 | ||
6868 | * interps.c (interp_name): Remove. | |
6869 | * mi/mi-interp.c (mi_interp::init): Update. | |
6870 | * interps.h (interp_name): Remove. | |
6871 | (~scoped_restore_interp): Update. | |
6872 | * tui/tui.c (tui_enable): Update. | |
6873 | ||
29f94340 TT |
6874 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6875 | ||
6876 | * utils.c (fputs_maybe_filtered): Update. | |
6877 | * linespec.c (decode_line_full): Update. | |
6878 | * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified) | |
6879 | (mi_print_breakpoint_for_event, mi_solib_loaded) | |
6880 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
6881 | (mi_user_selected_context_changed): Update. | |
6882 | * mi/mi-main.c (mi_execute_command): Update. | |
6883 | * cli/cli-script.c (execute_control_command): Update. | |
6884 | * python/python.c (execute_gdb_command): Update. | |
6885 | * solib.c (info_sharedlibrary_command): Update. | |
6886 | * interps.c (interp_ui_out): Remove. | |
6887 | * interps.h (interp_ui_out): Remove. | |
6888 | ||
716b8bc5 TT |
6889 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6890 | ||
6891 | * tui/tui-interp.c (as_tui_interp): Use dynamic_cast. | |
6892 | * mi/mi-interp.c (as_mi_interp): Use dynamic_cast. | |
6893 | * cli/cli-interp.c (as_cli_interp): Use dynamic_cast. | |
6894 | ||
753ff9bd TT |
6895 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6896 | ||
6897 | * cli/cli-interp.c (safe_execute_command): Use scoped_restore. | |
6898 | * interps.c (interp_exec): Use scoped_restore. | |
6899 | ||
5ca3b260 TT |
6900 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6901 | ||
6902 | * remote.c (remote_target::remote_file_get): Use | |
6903 | gdb::byte_vector. | |
6904 | (remote_target::remote_file_put): Likewise. | |
6905 | ||
3173aa2f TT |
6906 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6907 | ||
6908 | * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now | |
6909 | a std::string. | |
6910 | (get_pe_section_index, add_pe_exported_sym): Update. | |
6911 | (read_pe_exported_syms): Use gdb::def_vector. | |
6912 | ||
09a5e1b5 TT |
6913 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6914 | ||
6915 | * frame.c (remove_prev_frame): Remove. | |
6916 | (get_prev_frame_if_no_cycle): Use TRY/CATCH. | |
6917 | ||
d8dab6c3 MR |
6918 | 2018-05-25 Maciej W. Rozycki <macro@mips.com> |
6919 | ||
6920 | * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset): | |
6921 | Remove prototypes. | |
6922 | * mips-linux-nat.c (supply_fpregset): Always call | |
6923 | `mips64_supply_fpregset' rather than `mips_supply_fpregset'. | |
6924 | (fill_fpregset): Always call `mips64_fill_fpregset' rather than | |
6925 | `mips_fill_fpregset'. | |
6926 | * mips-linux-tdep.c (mips_supply_fpregset) | |
6927 | (mips_supply_fpregset_wrapper, mips_fill_fpregset) | |
6928 | (mips_fill_fpregset_wrapper): Remove functions. | |
6929 | (mips64_supply_fpregset, mips64_fill_fpregset): Update comments. | |
6930 | (mips_linux_fpregset): Remove variable. | |
6931 | (mips_linux_iterate_over_regset_sections): Use | |
6932 | `mips64_linux_fpregset' in place of `mips_linux_fpregset'. | |
6933 | (mips_linux_o32_sigframe_init): Remove comment. | |
6934 | ||
3c69da40 PA |
6935 | 2018-05-25 Pedro Alves <palves@redhat.com> |
6936 | ||
6937 | * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS) | |
6938 | (struct readahead_cache, struct packet_reg, struct | |
6939 | remote_arch_state, class remote_state): Move higher up in the | |
6940 | file. | |
6941 | (remote_target::m_remote_state): Now an object instead of a pointer. | |
6942 | (remote_target::get_remote_state): Adjust. | |
6943 | ||
39f0c204 AB |
6944 | 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> |
6945 | ||
6946 | * stack.c (select_and_print_frame): Delete. | |
6947 | (struct function_bounds): Move struct within function. | |
6948 | (func_command): Most content moved into new function | |
6949 | find_frame_for_function, use new function, print result, add | |
6950 | function comment. | |
6951 | (find_frame_for_function): New function, now returns a result. | |
6952 | ||
d392224a PW |
6953 | 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6954 | ||
6955 | * stack.c (iterate_over_block_arg_vars): Fix comment. | |
6956 | (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout. | |
6957 | ||
45f25d6c AB |
6958 | 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> |
6959 | ||
6960 | PR gdb/23203 | |
6961 | * frame.c | |
6962 | (scoped_restore_selected_frame::scoped_restore_selected_frame): | |
6963 | Define. | |
6964 | (scoped_restore_selected_frame::~scoped_restore_selected_frame): | |
6965 | Define. | |
6966 | * frame.h (class scoped_restore_selected_frame): New class. | |
6967 | * stack.c (print_frame_local_vars): Remove catching and rethrowing | |
6968 | of any exception, use scoped_restore_selected_frame to restore the | |
6969 | frame instead. | |
6970 | ||
da05d921 PA |
6971 | 2018-05-24 Pedro Alves <palves@redhat.com> |
6972 | ||
6973 | * darwin-nat.h (darwin_nat_target::create_inferior): Mark with | |
6974 | override. | |
6975 | ||
a8be540e TT |
6976 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6977 | ||
6978 | * complaints.c (struct complaints): Remove. | |
6979 | (symfile_complaint_book): Remove. | |
6980 | (series): New global. | |
6981 | (complaint_internal): Update. | |
6982 | (clear_complaints): Update. | |
6983 | ||
ff1cf532 TT |
6984 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6985 | ||
6986 | * complaints.c (counters): New global. | |
6987 | (struct complain): Remove. | |
6988 | (struct complaints) <root>: Remove. | |
6989 | (complaint_sentinel): Remove. | |
6990 | (symfile_complaint_book): Update. | |
6991 | (find_complaint) Remove. | |
6992 | (complaint_internal, clear_complaints): Update. | |
6993 | ||
7ff88174 TT |
6994 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6995 | ||
6996 | * complaints.c (struct complain) <file, line>: Remove. | |
6997 | (find_complaint): Remove file, line parameters. | |
6998 | (complaint_internal): Update. | |
6999 | ||
de54e1a5 TT |
7000 | 2018-05-23 Tom Tromey <tom@tromey.com> |
7001 | ||
7002 | * complaints.c (vcomplaint): Remove. | |
7003 | (complaint_internal) Merge in contents of vcomplaint. | |
7004 | ||
2ac237e5 TT |
7005 | 2018-05-23 Tom Tromey <tom@tromey.com> |
7006 | ||
7007 | * complaints.c (struct complaints) <explanation>: Remove. | |
7008 | (symfile_explanations): Remove. | |
7009 | (symfile_complaint_book): Update. | |
7010 | (vcomplaint): Update. | |
7011 | (struct explanation): Remove. | |
7012 | ||
b98664d3 TT |
7013 | 2018-05-23 Tom Tromey <tom@tromey.com> |
7014 | ||
7015 | * complaints.c (symfile_complaints): Remove. | |
7016 | (complaint_internal): Remove "complaints" parameter. | |
7017 | (clear_complaints, vcomplaint): Remove "c" parameter. | |
7018 | (get_complaints): Remove. | |
7019 | * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint) | |
7020 | (dwarf2_debug_line_missing_file_complaint) | |
7021 | (dwarf2_debug_line_missing_end_sequence_complaint) | |
7022 | (dwarf2_complex_location_expr_complaint) | |
7023 | (dwarf2_const_value_length_mismatch_complaint) | |
7024 | (dwarf2_section_buffer_overflow_complaint) | |
7025 | (dwarf2_macro_malformed_definition_complaint) | |
7026 | (dwarf2_invalid_attrib_class_complaint) | |
7027 | (create_addrmap_from_index, dw2_symtab_iter_next) | |
7028 | (dw2_expand_marked_cus) | |
7029 | (dw2_debug_names_iterator::find_vec_in_debug_names) | |
7030 | (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next) | |
7031 | (create_debug_type_hash_table, init_cutu_and_read_dies) | |
7032 | (partial_die_parent_scope, add_partial_enumeration) | |
7033 | (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die) | |
7034 | (dwarf2_compute_name, dwarf2_physname, read_namespace_alias) | |
7035 | (read_import_statement, read_file_scope, create_dwo_cu_reader) | |
7036 | (create_cus_hash_table, create_dwp_hash_table) | |
7037 | (inherit_abstract_dies, read_func_scope, read_call_site_scope) | |
7038 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
7039 | (dwarf2_add_type_defn, dwarf2_attach_fields_to_type) | |
7040 | (dwarf2_add_member_fn, get_alignment, maybe_set_alignment) | |
7041 | (handle_struct_member_die, process_structure_scope) | |
7042 | (read_array_type, read_common_block, read_module_type) | |
7043 | (read_tag_pointer_type, read_typedef, read_base_type) | |
7044 | (read_subrange_type, load_partial_dies, partial_die_info::read) | |
7045 | (partial_die_info::read, partial_die_info::read) | |
7046 | (partial_die_info::read, read_checked_initial_length_and_offset) | |
7047 | (dwarf2_string_attr, read_formatted_entries) | |
7048 | (dwarf_decode_line_header) | |
7049 | (lnp_state_machine::check_line_address, dwarf_decode_lines_1) | |
7050 | (new_symbol, dwarf2_const_value_attr, lookup_die_type) | |
7051 | (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset) | |
7052 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
7053 | (get_signatured_type, get_DW_AT_signature_type) | |
7054 | (decode_locdesc, file_file_name, consume_improper_spaces) | |
7055 | (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header) | |
7056 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
7057 | (dwarf2_symbol_mark_computed, set_die_type) | |
7058 | (read_attribute_value): Update. | |
7059 | * stap-probe.c (handle_stap_probe, get_stap_base_address): | |
7060 | Update. | |
7061 | * dbxread.c (unknown_symtype_complaint) | |
7062 | (lbrac_mismatch_complaint, repeated_header_complaint) | |
7063 | (set_namestring, function_outside_compilation_unit_complaint) | |
7064 | (read_dbx_symtab, process_one_symbol): Update. | |
7065 | * gdbtypes.c (stub_noname_complaint): Update. | |
7066 | * windows-nat.c (handle_unload_dll): Update. | |
7067 | * coffread.c (coff_symtab_read, enter_linenos, decode_type) | |
7068 | (decode_base_type): Update. | |
7069 | * xcoffread.c (bf_notfound_complaint, ef_complaint) | |
7070 | (eb_complaint, record_include_begin, record_include_end) | |
7071 | (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab) | |
7072 | (process_xcoff_symbol, read_symbol) | |
7073 | (function_outside_compilation_unit_complaint) | |
7074 | (scan_xcoff_symtab): Update. | |
7075 | * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update. | |
7076 | * buildsym.c (finish_block_internal, make_blockvector) | |
7077 | (end_symtab_get_static_block, augment_type_symtab): Update. | |
7078 | * dtrace-probe.c (dtrace_process_dof) | |
7079 | (dtrace_static_probe_ops::get_probes): Update. | |
7080 | * complaints.h (struct complaint): Don't declare. | |
7081 | (symfile_complaints): Remove. | |
7082 | (complaint_internal): Remove "complaints" parameter. | |
7083 | (complaint): Likewise. | |
7084 | (clear_complaints): Likewise. | |
7085 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
7086 | (reread_symbols): Update. | |
7087 | * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) | |
7088 | (dwarf2_frame_cache, decode_frame_entry): Update. | |
7089 | * dwarf2loc.c (dwarf_reg_to_regnum): Update. | |
7090 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
7091 | (info_selectors_command): Update. | |
7092 | * macrotab.c (macro_include, check_for_redefinition) | |
7093 | (macro_undef): Update. | |
7094 | * objfiles.c (filter_overlapping_sections): Update. | |
7095 | * stabsread.c (invalid_cpp_abbrev_complaint) | |
7096 | (reg_value_complaint, stabs_general_complaint, dbx_lookup_type) | |
7097 | (define_symbol, error_type, read_type, rs6000_builtin_type) | |
7098 | (stabs_method_name_from_physname, read_member_functions) | |
7099 | (read_cpp_abbrev, read_baseclasses, read_tilde_fields) | |
7100 | (attach_fields_to_type, complain_about_struct_wipeout) | |
7101 | (read_range_type, read_args, common_block_start) | |
7102 | (common_block_end, cleanup_undefined_types_1, scan_file_globals): | |
7103 | Update. | |
7104 | * mdebugread.c (index_complaint, unknown_ext_complaint) | |
7105 | (basic_type_complaint, bad_tag_guess_complaint) | |
7106 | (bad_rfd_entry_complaint, unexpected_type_code_complaint) | |
7107 | (reg_value_complaint, parse_symbol, parse_type, upgrade_type) | |
7108 | (parse_procedure, parse_lines) | |
7109 | (function_outside_compilation_unit_complaint) | |
7110 | (parse_partial_symbols, psymtab_to_symtab_1, cross_ref) | |
7111 | (bad_tag_guess_complaint, reg_value_complaint): Update. | |
7112 | * cp-support.c (demangled_name_complaint): Update. | |
7113 | * macroscope.c (sal_macro_scope): Update. | |
7114 | * dwarf-index-write.c (class debug_names): Update. | |
7115 | ||
4e9668d0 TT |
7116 | 2018-05-23 Tom Tromey <tom@tromey.com> |
7117 | ||
7118 | * complaints.c (clear_complaints): Remove "noisy" parameter. | |
7119 | * complaints.h (clear_complaints): Update. | |
7120 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
7121 | (reread_symbols): Update. | |
7122 | ||
43ba33c7 TT |
7123 | 2018-05-23 Tom Tromey <tom@tromey.com> |
7124 | ||
7125 | * complaints.c (enum complaint_series): Remove FIRST_MESSAGE, | |
7126 | SUBSEQUENT_MESSAGE. | |
7127 | (vcomplaint, clear_complaints): Update. | |
7128 | (symfile_explanations): Remove some messages. | |
7129 | ||
2b9496b2 TT |
7130 | 2018-05-23 Tom Tromey <tom@tromey.com> |
7131 | ||
7132 | * complaints.c (internal_complaint): Remove. | |
7133 | * complaints.h (internal_complaint): Remove. | |
7134 | ||
35f1fea3 MR |
7135 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
7136 | ||
7137 | * i387-tdep.c (i387_collect_xsave): Make `i' unsigned. | |
7138 | ||
6b8edb51 PA |
7139 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7140 | ||
7141 | * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror) | |
7142 | (remote_fileio_badfd, remote_fileio_return_errno) | |
7143 | (remote_fileio_return_success, remote_fileio_func_open) | |
7144 | (remote_fileio_func_open, remote_fileio_func_close) | |
7145 | (remote_fileio_func_read, remote_fileio_func_write) | |
7146 | (remote_fileio_func_lseek, remote_fileio_func_rename) | |
7147 | (remote_fileio_func_unlink, remote_fileio_func_stat) | |
7148 | (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) | |
7149 | (remote_fileio_func_isatty, remote_fileio_func_system): Add | |
7150 | remote_target parameter. | |
7151 | (remote_fio_func_map) <func>: Add remote_target parameter. | |
7152 | (do_remote_fileio_request, remote_fileio_request): | |
7153 | * remote-fileio.h (remote_fileio_request): | |
7154 | * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add | |
7155 | remote_target parameter. | |
7156 | (remote_notif_process, handle_notification): Adjust to pass down | |
7157 | the remote. | |
7158 | (remote_notif_state_allocate): Add remote_target parameter. Save | |
7159 | it. | |
7160 | * remote-notif.h (struct remote_target): Forward declare. | |
7161 | (struct notif_client) <parse, ack, can_get_pending_events>: Add | |
7162 | remote_target parameter. | |
7163 | (struct remote_notif_state) <remote>: New field. | |
7164 | (remote_notif_ack, remote_notif_parse): Add remote_target | |
7165 | parameter. | |
7166 | (remote_notif_state_allocate, remote_notif_state_allocate): Add | |
7167 | remote_target parameter. | |
7168 | * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info) | |
7169 | (threads_listing_context, rmt_thread_action, protocol_feature) | |
7170 | (packet_reg, stop_reply, stop_reply_p, enum packet_support) | |
7171 | (packet_result, struct threads_listing_context, remote_state): | |
7172 | Move definitions and declarations higher up. | |
7173 | (remote_target) <~remote_target>: Declare. | |
7174 | (remote_download_command_source, remote_file_put, remote_file_get) | |
7175 | (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite) | |
7176 | (remote_hostio_pread_vFile, remote_hostio_send_command) | |
7177 | (remote_hostio_set_filesystem, remote_hostio_open) | |
7178 | (remote_hostio_close, remote_hostio_unlink, remote_state) | |
7179 | (get_remote_state, get_remote_packet_size, get_memory_packet_size) | |
7180 | (get_memory_write_packet_size, get_memory_read_packet_size) | |
7181 | (append_pending_thread_resumptions, remote_detach_1) | |
7182 | (append_resumption, remote_resume_with_vcont) | |
7183 | (add_current_inferior_and_thread, wait_ns, wait_as) | |
7184 | (process_stop_reply, remote_notice_new_inferior) | |
7185 | (process_initial_stop_replies, remote_add_thread) | |
7186 | (btrace_sync_conf, remote_btrace_maybe_reopen) | |
7187 | (remove_new_fork_children, kill_new_fork_children) | |
7188 | (discard_pending_stop_replies, stop_reply_queue_length) | |
7189 | (check_pending_events_prevent_wildcard_vcont) | |
7190 | (discard_pending_stop_replies_in_queue, stop_reply) | |
7191 | (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply) | |
7192 | (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns) | |
7193 | (remote_interrupt_as, remote_interrupt_ns) | |
7194 | (remote_get_noisy_reply, remote_query_attached) | |
7195 | (remote_add_inferior, remote_current_thread, get_current_thread) | |
7196 | (set_thread, set_general_thread, set_continue_thread) | |
7197 | (set_general_process, write_ptid) | |
7198 | (remote_unpack_thread_info_response, remote_get_threadinfo) | |
7199 | (parse_threadlist_response, remote_get_threadlist) | |
7200 | (remote_threadlist_iterator, remote_get_threads_with_ql) | |
7201 | (remote_get_threads_with_qxfer) | |
7202 | (remote_get_threads_with_qthreadinfo, extended_remote_restart) | |
7203 | (get_offsets, remote_check_symbols, remote_supported_packet) | |
7204 | (remote_query_supported, remote_packet_size) | |
7205 | (remote_serial_quit_handler, remote_detach_pid) | |
7206 | (remote_vcont_probe, remote_resume_with_hc) | |
7207 | (send_interrupt_sequence, interrupt_query) | |
7208 | (remote_notif_get_pending_events, fetch_register_using_p) | |
7209 | (send_g_packet, process_g_packet, fetch_registers_using_g) | |
7210 | (store_register_using_P, store_registers_using_G) | |
7211 | (set_remote_traceframe, check_binary_download) | |
7212 | (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1) | |
7213 | (remote_xfer_live_readonly_partial, remote_read_bytes) | |
7214 | (remote_send_printf, remote_flash_write, readchar) | |
7215 | (remote_serial_write, putpkt, putpkt_binary, skip_frame) | |
7216 | (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane) | |
7217 | (getpkt_or_notif_sane, remote_vkill, remote_kill_k) | |
7218 | (extended_remote_disable_randomization, extended_remote_run) | |
7219 | (send_environment_packet, extended_remote_environment_support) | |
7220 | (extended_remote_set_inferior_cwd, remote_write_qxfer) | |
7221 | (remote_read_qxfer, push_stop_reply, vcont_r_supported) | |
7222 | (packet_command): Now methods of ... | |
7223 | (remote_target): ... this class. | |
7224 | (m_remote_state) <remote_target>: New field. | |
7225 | (struct remote_state) <stop_reply_queue, | |
7226 | remote_async_inferior_event_token, wait_forever_enabled_p>: New | |
7227 | fields. | |
7228 | (remote_state::remote_state): Allocate stop_reply_queue. | |
7229 | (remote_state): Delete global. | |
7230 | (get_remote_state_raw): Delete. | |
7231 | (remote_target::get_remote_state): Allocate m_remote_state on | |
7232 | demand. | |
7233 | (get_current_remote_target): New. | |
7234 | (remote_ops, extended_remote_ops): Delete. | |
7235 | (wait_forever_enabled_p, remote_async_inferior_event_token): | |
7236 | Delete, moved to struct remote_state. | |
7237 | (remote_target::close): Delete self. Destruction bits split to | |
7238 | ... | |
7239 | (remote_target::~remote_target): ... this. | |
7240 | (show_memory_packet_size): Adjust to use | |
7241 | get_current_remote_target. | |
7242 | (struct protocol_feature) <func>: Add remote_target parameter. | |
7243 | All callers adjusted. | |
7244 | (curr_quit_handler_target): New. | |
7245 | (remote_serial_quit_handler): Reimplement. | |
7246 | (remote_target::open_1): Adjust to use get_current_remote_target. | |
7247 | Heap-allocate remote_target/extended_remote_target instances. | |
7248 | (vcont_builder::vcont_builder): Add remote_target parameter, and | |
7249 | save it in m_remote. All callers adjusted. | |
7250 | (vcont_builder::m_remote): New field. | |
7251 | (vcont_builder::restart, vcont_builder::flush) | |
7252 | (vcont_builder::push_action): Use it. | |
7253 | (remote_target::commit_resume): Use it. | |
7254 | (struct queue_iter_param) <remote>: New field. | |
7255 | (remote_target::remove_new_fork_children): Fill in 'remote' field. | |
7256 | (check_pending_event_prevents_wildcard_vcont_callback_data): New. | |
7257 | (check_pending_event_prevents_wildcard_vcont_callback) | |
7258 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
7259 | (remote_target::discard_pending_stop_replies) | |
7260 | (remote_target::discard_pending_stop_replies_in_queue) | |
7261 | (remote_target::remote_notif_remove_queued_reply): Fill in | |
7262 | 'remote' field. | |
7263 | (remote_notif_get_pending_events): New. | |
7264 | (remote_target::readchar, remote_target::remote_serial_write): | |
7265 | Save/restore curr_quit_handler_target. | |
7266 | (putpkt): New. | |
7267 | (kill_new_fork_children): Fill in 'remote' field. | |
7268 | (packet_command): Use get_current_remote_target, defer to | |
7269 | remote_target method of same name. | |
7270 | (scoped_remote_fd::scoped_remote_fd): Add 'remote_target' | |
7271 | parameter, and save it in m_remote. All callers adjusted. | |
7272 | (scoped_remote_fd::release): Use m_remote. | |
7273 | (scoped_remote_fd::m_remote): New field. | |
7274 | (remote_file_put, remote_file_get, remote_file_delete): Use | |
7275 | get_current_remote_target, defer to remote_target method of same | |
7276 | name. | |
7277 | (remote_btrace_reset): Add remote_state paremeter. Update all | |
7278 | callers. | |
7279 | (remote_async_inferior_event_handler). Pass down 'data'. | |
7280 | (remote_new_objfile): Use get_current_remote_target. | |
7281 | (remote_target::vcont_r_supported): New. | |
7282 | (set_range_stepping): Use get_current_remote_target and | |
7283 | remote_target::vcont_r_supported. | |
7284 | (_initialize_remote): Don't allocate 'remote_state' and | |
7285 | 'stop_reply_queue' globals. | |
7286 | * remote.h (struct remote_target): Forward declare. | |
7287 | (getpkt, putpkt, remote_notif_get_pending_events): Add | |
7288 | 'remote_target' parameter. | |
7289 | ||
f5db4863 PA |
7290 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7291 | ||
7292 | * remote.c (vcont_builder): Now a class. Make all data members | |
7293 | private. | |
7294 | (vcont_builder) <vcont_builder, restart, flush, push_action>: | |
7295 | Declare methods. | |
7296 | (vcont_builder_restart): Rename to ... | |
7297 | (vcont_builder::restart): ... this. | |
7298 | (vcont_builder_flush): Rename to ... | |
7299 | (vcont_builder::flush): ... this. | |
7300 | (vcont_builder_push_action): Rename to ... | |
7301 | (vcont_builder::push_action): ... this. | |
7302 | (remote_target::commit_resume): Adjust. | |
7303 | ||
cc0be08f PA |
7304 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7305 | ||
7306 | * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ... | |
7307 | (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this. | |
7308 | (get_fixed_memory_packet_size): New. | |
7309 | (get_memory_packet_size): Use it. | |
7310 | (set_memory_packet_size): Don't override the config size with | |
7311 | DEFAULT_MAX_MEMORY_PACKET_SIZE. | |
7312 | (show_memory_packet_size): Use get_fixed_memory_packet_size. | |
7313 | Don't refer to get_memory_packet_size if not connected to a remote | |
7314 | target. Show "(default)" if configured size is 0. | |
7315 | ||
9607784a PA |
7316 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7317 | ||
7318 | * remote.c (remote_target::mourn_inferior): Move | |
7319 | discard_pending_stop_replies call here from ... | |
7320 | (_initialize_remote): ... here. | |
7321 | ||
0e9a6b2f PA |
7322 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7323 | ||
7324 | * remote.c (compare_section_command): Remove set_general_process | |
7325 | call. | |
7326 | ||
43c3a0e4 PA |
7327 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7328 | ||
7329 | * remote.c (struct packet_reg, struct remote_arch_state): | |
7330 | Move higher up in the file. | |
7331 | (remote_state) <m_arch_states>: Store remote_arch_state values | |
7332 | instead of remote_arch_state pointers. | |
7333 | (remote_state::get_remote_arch_state): Adjust. | |
7334 | ||
9d6eea31 PA |
7335 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7336 | ||
7337 | * remote.c: Include <unordered_map>. | |
7338 | (remote_state): Now a class. | |
7339 | (remote_state) <get_remote_arch_state>: Declare method. | |
7340 | <get_remote_arch_state>: New field. | |
7341 | (remote_arch_state) <remote_arch_state>: Declare ctor. | |
7342 | <regs>: Now a unique_ptr. | |
7343 | (remote_gdbarch_data_handle): Delete. | |
7344 | (get_remote_arch_state): Delete. | |
7345 | (remote_state::get_remote_arch_state): New. | |
7346 | (get_remote_state): Adjust to call remote_state's | |
7347 | get_remote_arch_state method. | |
7348 | (init_remote_state): Delete, bits factored out to ... | |
7349 | (remote_arch_state::remote_arch_state): ... this new method. | |
7350 | (get_remote_packet_size, get_memory_packet_size) | |
7351 | (process_g_packet, remote_target::fetch_registers) | |
7352 | (remote_target::prepare_to_store, store_registers_using_G) | |
7353 | (remote_target::store_registers, remote_target::get_trace_status): | |
7354 | Adjust to call remote_state's method. | |
7355 | (_initialize_remote): Remove reference to | |
7356 | remote_gdbarch_data_handle. | |
7357 | ||
dd194f6b PA |
7358 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7359 | ||
7360 | * remote.c (struct readahead_cache) <invalidate, invalidate_fd, | |
7361 | pread>: New method declarations. | |
7362 | (remote_target::open_1): Adjust. | |
7363 | (readahead_cache_invalidate): Rename to ... | |
7364 | (readahead_cache::invalidate): ... this, and adjust to be a class | |
7365 | method. | |
7366 | (readahead_cache_invalidate_fd): Rename to ... | |
7367 | (readahead_cache::invalidate_fd): ... this, and adjust to be a | |
7368 | class method. | |
7369 | (remote_hostio_pwrite): Adjust. | |
7370 | (remote_hostio_pread_from_cache): Rename to ... | |
7371 | (readahead_cache::pread): ... this, and adjust to be a class | |
7372 | method. | |
7373 | (remote_hostio_close): Adjust. | |
7374 | ||
440b7aec PA |
7375 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7376 | ||
7377 | * remote.c (remote_hostio_close_cleanup): Delete. | |
7378 | (class scoped_remote_fd): New. | |
7379 | (remote_file_put, remote_file_get): Use it. | |
7380 | ||
de44f5a7 PA |
7381 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7382 | ||
7383 | (struct vCont_action_support): Use bool and initialize all fields. | |
7384 | (struct readahead_cache): Initialize all fields. | |
7385 | (remote_state): Use bool and initialize all fields. | |
7386 | (remote_state::remote_state, remote_state::~remote_state): New. | |
7387 | (new_remote_state): Delete. | |
7388 | (_initialize_remote): Use new to allocate remote_state. | |
7389 | ||
b1b60145 PA |
7390 | 2018-05-22 Pedro Alves <palves@redhat.com> |
7391 | 張俊芝 <zjz@zjz.name> | |
7392 | ||
7393 | PR gdb/22973 | |
7394 | * c-exp.y: Include "c-support.h". | |
7395 | (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead | |
7396 | of tolower. Use c_ident_is_alpha to scan names. | |
7397 | * c-lang.c: Include "c-support.h". | |
7398 | (convert_ucn, convert_octal, convert_hex, convert_escape): Use | |
7399 | ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit. | |
7400 | * c-support.h: New file, with bits factored out from ... | |
7401 | * cp-name-parser.y: ... this file. | |
7402 | Include "c-support.h". | |
7403 | (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to | |
7404 | c-support.h and renamed. | |
7405 | (symbol_end, yylex): Adjust. | |
7406 | ||
0ec848ad PFC |
7407 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
7408 | ||
7409 | * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the | |
7410 | parameter type to CORE_ADDR. | |
7411 | * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the | |
7412 | parameter type in declaration to CORE_ADDR. | |
7413 | * ppc-linux-tdep.c (ppc_linux_core_read_description): Call | |
7414 | target_auxv_search to get AT_HWCAP and use the result to get the | |
7415 | target description. | |
7416 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type | |
7417 | to CORE_ADDR. Remove the cast of the return value to unsigned | |
7418 | long. Fix error predicate of target_auxv_search. | |
7419 | (ppc_linux_nat_target::read_description): Change the type of the | |
7420 | hwcap variable to CORE_ADDR. | |
7421 | ||
0fb2aaa1 PFC |
7422 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
7423 | ||
7424 | * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only | |
7425 | if the size of fpscr is larger than 32 bits. | |
7426 | ||
2c3305f6 PFC |
7427 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
7428 | ||
7429 | * ppc-linux-tdep.c (ppc_linux_vsxregset): New function. | |
7430 | (ppc32_linux_vsxregmap): New global. | |
7431 | (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap, | |
7432 | regcache_supply_regset, and regcache_collect_regset. | |
7433 | * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare. | |
7434 | * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove. | |
7435 | (fetch_vsx_register, store_vsx_register): Remove. | |
7436 | (fetch_vsx_registers): Add regno parameter. Get regset using | |
7437 | ppc_linux_vsxregset. Use regset to supply registers. | |
7438 | (store_vsx_registers): Add regno parameter. Get regset using | |
7439 | ppc_linux_vsxregset. Use regset to collect registers. | |
7440 | (fetch_register): Call fetch_vsx_registers instead of | |
7441 | fetch_vsx_register. | |
7442 | (store_register): Call store_vsx_registers instead of | |
7443 | store_vsx_register. | |
7444 | (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the | |
7445 | new regno parameter. | |
7446 | (store_ppc_registers): Call store_vsx_registers with -1 for the | |
7447 | new regno parameter. | |
7448 | * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget) | |
7449 | (ppc_collect_vsxregset): Remove. | |
7450 | ||
1d75a658 PFC |
7451 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
7452 | ||
7453 | * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register | |
7454 | offset fields. | |
7455 | * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers | |
7456 | for vector register offset fields. | |
7457 | (ppc64_fbsd_reg_offsets): Likewise. | |
7458 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
7459 | to vector register offset fields. | |
7460 | * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
7461 | to vector register offset fields. | |
7462 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to | |
7463 | vector register offset fields. | |
7464 | * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove | |
7465 | initializers for vector register offset fields. | |
7466 | (rs6000_aix64_reg_offsets): Likewise. | |
7467 | * rs6000-tdep.c (ppc_vrreg_offset): Remove. | |
7468 | (ppc_supply_vrregset): Remove. | |
7469 | (ppc_collect_vrregset): Remove. | |
7470 | * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function. | |
7471 | (ppc_linux_vrregset) : New function. | |
7472 | (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap) | |
7473 | (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals. | |
7474 | (ppc32_linux_vrregset): Remove. | |
7475 | (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset | |
7476 | and use result instead of ppc32_linux_vrregset. | |
7477 | (ppc32_linux_reg_offsets): Remove initializers for vector register | |
7478 | offset fields. | |
7479 | (ppc64_linux_reg_offsets): Likewise. | |
7480 | * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration. | |
7481 | * ppc-linux-nat.c: Include regset.h. | |
7482 | (gdb_vrregset_t): Adjust comment to account for little-endian | |
7483 | mode. | |
7484 | (supply_vrregset, fill_vrregset): Remove. | |
7485 | (fetch_altivec_register, store_altivec_register): Remove. | |
7486 | (fetch_altivec_registers): Add regno parameter. Get regset using | |
7487 | ppc_linux_vrregset. Use regset to supply registers. | |
7488 | (store_altivec_registers): Add regno parameter. Get regset using | |
7489 | ppc_linux_vrregset. Use regset to collect registers. | |
7490 | (fetch_register): Call fetch_altivec_registers instead of | |
7491 | fetch_altivec_register. | |
7492 | (store_register): Call store_altivec_registers instead of | |
7493 | store_altivec_register. | |
7494 | (fetch_ppc_registers): Call fetch_altivec_registers with -1 for | |
7495 | the new regno parameter. | |
7496 | (store_ppc_registers): Call store_altivec_registers with -1 for | |
7497 | the new regno parameter. | |
7498 | ||
d078308a PFC |
7499 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
7500 | ||
7501 | * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET) | |
7502 | (PPC_LINUX_SIZEOF_VSXREGSET): Define. | |
7503 | * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove. | |
7504 | (gdb_vrregset_t): Change array type size to | |
7505 | PPC_LINUX_SIZEOF_VRREGSET. | |
7506 | (gdb_vsxregset_t): Change array type size to | |
7507 | PPC_LINUX_SIZEOF_VSXREGSET. | |
7508 | * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): | |
7509 | Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and | |
7510 | PPC_LINUX_SIZEOF_VSXREGSET. | |
7511 | ||
2e077f5e PFC |
7512 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
7513 | ||
7514 | * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES. | |
7515 | * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to | |
7516 | nat/ppc-linux.c. | |
7517 | (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call | |
7518 | ppc_linux_target_wordsize with tid. | |
7519 | (ppc_linux_nat_target::read_description): Call ppc_linux_target | |
7520 | wordsize with tid. | |
7521 | * nat/ppc-linux.c: Include nat/gdb_ptrace.h. | |
7522 | (ppc64_64bit_inferior_p): Add static and inline specifiers. | |
7523 | (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add | |
7524 | tid parameter. Remove static specifier. | |
7525 | * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration. | |
7526 | (ppc_linux_target_wordsize): New declaration. | |
7527 | ||
bd64614e PFC |
7528 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
7529 | ||
7530 | * arch/ppc-linux-common.c: New file. | |
7531 | * arch/ppc-linux-common.h: New file. | |
7532 | * arch/ppc-linux-tdesc.h: New file. | |
7533 | * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o. | |
7534 | * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o. | |
7535 | (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and | |
7536 | arch/ppc-linux-tdesc.h. | |
7537 | * ppc-linux-nat.c: Include arch/ppc-linux-common.h and | |
7538 | arch/ppc-linux-tdesc.h. | |
7539 | (ppc_linux_nat_target::read_description): Remove target | |
7540 | description matching code. Fill a ppc_linux_features struct and | |
7541 | call ppc_linux_match_description with it. Move comment about ISA | |
7542 | 2.05 to ppc-linux-common.c. | |
7543 | * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and | |
7544 | arch/ppc-linux-tdesc.h. | |
7545 | (ppc_linux_core_read_description): Remove target description | |
7546 | matching code. Fill a ppc_linux_features struct and call | |
7547 | ppc_linux_match_description with it. | |
7548 | * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l) | |
7549 | (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l) | |
7550 | (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l) | |
7551 | (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l) | |
7552 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l) | |
7553 | (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l) | |
7554 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l) | |
7555 | (tdesc_powerpc_e500l): Remove. | |
7556 | ||
241db429 JB |
7557 | 2018-05-22 Joel Brobecker <brobecker@adacore.com> |
7558 | ||
7559 | * ada-lang.c (catch_assert_command): Pass empty string instead | |
7560 | of NULL for excep_string argument. | |
7561 | ||
75d74cca MR |
7562 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
7563 | ||
7564 | * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if | |
7565 | the width of the requested register exceeds the width of the | |
7566 | `ptrace' data type. | |
7567 | ||
122b53ea TT |
7568 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7569 | ||
7570 | * printcmd.c (output_command): Remove. | |
7571 | (output_command_const): Rename to output_command. | |
7572 | * valprint.h (output_command): Rename from output_command_const. | |
7573 | * tracepoint.c (trace_dump_actions): Call output_command. | |
7574 | ||
bc18fbb5 TT |
7575 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7576 | ||
7577 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
7578 | (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update. | |
7579 | * ada-lang.h (create_ada_exception_catchpoint): Update. | |
7580 | * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a | |
7581 | std::string. | |
7582 | (create_excep_cond_exprs, ~ada_catchpoint) | |
7583 | (should_stop_exception, print_one_exception) | |
7584 | (print_mention_exception, print_recreate_exception): Update. | |
7585 | (ada_get_next_arg): Remove. | |
7586 | (catch_ada_exception_command_split): Use std::string. Change type | |
7587 | of "excep_string", "cond_string". | |
7588 | (catch_ada_exception_command): Update. | |
7589 | (create_ada_exception_catchpoint): Change type of excep_string. | |
7590 | (ada_exception_sal): Remove excep_string parameter. | |
7591 | (~ada_catchpoint): Remove. | |
7592 | ||
790217f6 TT |
7593 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7594 | ||
7595 | * ada-lang.c (ada_collect_symbol_completion_matches): Remove | |
7596 | cleanup. | |
7597 | ||
6f46ac85 TT |
7598 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7599 | ||
7600 | * ada-lang.c (ada_exception_message_1, ada_exception_message): | |
7601 | Return unique_xmalloc_ptr. | |
7602 | (print_it_exception): Update. | |
7603 | ||
15b6611c TT |
7604 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7605 | ||
7606 | * tracepoint.c (trace_dump_actions): Use std::string. | |
7607 | ||
c0c9f665 TT |
7608 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7609 | ||
7610 | * symfile.c (reread_symbols): Use std::string for original_name. | |
7611 | ||
22ca247e TT |
7612 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7613 | ||
7614 | * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr. | |
7615 | (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default | |
7616 | constructor. | |
7617 | ||
184cde75 SM |
7618 | 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca> |
7619 | ||
7620 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong | |
7621 | instance to... | |
7622 | (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this. | |
7623 | * objfiles.c (get_objfile_bfd_data): Allocate | |
7624 | objfile_per_bfd_storage with obstack_new when allocating on | |
7625 | obstack. | |
7626 | ||
e39db4db SM |
7627 | 2018-05-20 Simon Marchi <simon.marchi@ericsson.com> |
7628 | ||
7629 | * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or | |
7630 | OBSTACK_ZALLOC. | |
7631 | * dwarf2-frame.c (dwarf2_build_frame_info): Likewise. | |
7632 | * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise. | |
7633 | * mdebugread.c (mdebug_build_psymtabs): Likewise. | |
7634 | (add_pending): Likewise. | |
7635 | (parse_symbol): Likewise. | |
7636 | (parse_partial_symbols): Likewise. | |
7637 | (psymtab_to_symtab_1): Likewise. | |
7638 | (new_psymtab): Likewise. | |
7639 | (elfmdebug_build_psymtabs): Likewise. | |
7640 | * minsyms.c (terminate_minimal_symbol_table): Likewise. | |
7641 | * objfiles.c (get_objfile_bfd_data): Likewise. | |
7642 | (objfile_register_static_link): Likewise. | |
7643 | * psymtab.c (allocate_psymtab): Likewise. | |
7644 | * stabsread.c (read_member_functions): Likewise. | |
7645 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
7646 | ||
284a0e3c SM |
7647 | 2018-05-20 Simon Marchi <simon.marchi@ericsson.com> |
7648 | ||
7649 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if | |
7650 | compiler supports std::is_trivially_constructible. | |
7651 | * common/poison.h: Include obstack.h. | |
7652 | (IsMallocable): Define to is_trivially_constructible if the | |
7653 | compiler supports it, define to true_type otherwise. | |
7654 | (xobnew): New. | |
7655 | (XOBNEW): Redefine. | |
7656 | (xobnewvec): New. | |
7657 | (XOBNEWVEC): Redefine. | |
7658 | * gdb_obstack.h (obstack_zalloc): New. | |
7659 | (OBSTACK_ZALLOC): Redefine. | |
7660 | (obstack_calloc): New. | |
7661 | (OBSTACK_CALLOC): Redefine. | |
7662 | (obstack_new): New. | |
7663 | * gdbarch.sh: Include gdb_obstack in gdbarch.h. | |
7664 | (gdbarch_obstack): New declaration in gdbarch.h, definition in | |
7665 | gdbarch.c. | |
7666 | (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use | |
7667 | obstack_calloc/obstack_zalloc. | |
7668 | (gdbarch_obstack_zalloc): Remove. | |
7669 | * target-descriptions.c (tdesc_data_init): Use obstack_new. | |
7670 | ||
59f66be3 PW |
7671 | 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
7672 | ||
7673 | * stack.c (backtrace_command_1): Remove useless variable int i. | |
7674 | ||
50c65c2d PW |
7675 | 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
7676 | ||
7677 | * stack.c (print_frame_info): Fix comment. | |
7678 | ||
7ff8cb8c TT |
7679 | 2018-05-18 Tom Tromey <tom@tromey.com> |
7680 | ||
7681 | * dwarf2read.c (struct dwz_file): Add constructor, initializers. | |
7682 | <dwz_bfd>: Now a gdb_bfd_ref_ptr. | |
7683 | (~dwarf2_per_objfile): Update | |
7684 | (dwarf2_get_dwz_file): Use new. | |
7685 | * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a | |
7686 | unique_ptr. | |
7687 | ||
400174b1 TT |
7688 | 2018-05-18 Tom Tromey <tom@tromey.com> |
7689 | ||
7690 | * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a | |
7691 | unique_ptr. | |
7692 | * dwarf2read.c (struct dwp_file): Add constructor and | |
7693 | initializers. | |
7694 | (open_and_init_dwp_file): Return a unique_ptr. | |
7695 | (dwarf2_per_objfile, create_dwp_hash_table) | |
7696 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2) | |
7697 | (lookup_dwo_unit_in_dwp): Update. | |
7698 | (open_and_init_dwp_file, get_dwp_file): Update. | |
7699 | ||
3063847f TT |
7700 | 2018-05-18 Tom Tromey <tom@tromey.com> |
7701 | ||
7702 | * dwarf2read.c (dwarf2_per_objfile): Update. | |
7703 | (struct mapped_index): Add initializers. | |
7704 | (dwarf2_read_index): Use new. | |
7705 | (dw2_symtab_iter_init): Update. | |
7706 | * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a | |
7707 | unique_ptr. | |
7708 | ||
d3d02dee SM |
7709 | 2018-05-18 Simon Marchi <simon.marchi@ericsson.com> |
7710 | ||
7711 | * dwarf2read.c (mapped_index) <total_size>: Remove. | |
7712 | ||
1d143c36 SM |
7713 | 2018-05-18 Simon Marchi <simon.marchi@ericsson.com> |
7714 | ||
7715 | * unittests/format_pieces-selftests.c (test_format_specifier): | |
7716 | Add ARI comments. | |
7717 | ||
ce1e8424 TT |
7718 | 2018-05-18 Tom Tromey <tom@tromey.com> |
7719 | ||
7720 | * c-typeprint.c (maybe_print_hole): New function. | |
7721 | (c_print_type_struct_field_offset): Update. | |
7722 | (c_type_print_base_struct_union): Call maybe_print_hole. | |
7723 | ||
ddfe970e KS |
7724 | 2018-05-17 Keith Seitz <keiths@redhat.com> |
7725 | ||
7726 | * breakpoint.c (build_bpstat_chain): New function, moved from | |
7727 | bpstat_stop_status. | |
7728 | (bpstat_stop_status): Add optional parameter, `stop_chain'. | |
7729 | If no stop chain is passed, call build_bpstat_chain to build it. | |
7730 | * breakpoint.h (build_bpstat_chain): Declare. | |
7731 | (bpstat_stop_status): Move documentation here from breakpoint.c. | |
7732 | * infrun.c (handle_signal_stop): Before eliding inlined frames, | |
7733 | build the stop chain and pass it to skip_inline_frames. | |
7734 | Pass this stop chain to bpstat_stop_status. | |
7735 | * inline-frame.c: Include breakpoint.h. | |
7736 | (stopped_by_user_bp_inline_frame): New function. | |
7737 | (skip_inline_frames): Add parameter `stop_chain'. | |
7738 | Move documention to inline-frame.h. | |
7739 | If non-NULL, use stopped_by_user_bp_inline_frame to determine | |
7740 | whether the frame should be elided. | |
7741 | * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'. | |
7742 | Add moved documentation and update for new parameter. | |
7743 | ||
b17992c1 SM |
7744 | 2018-05-17 Simon Marchi <simon.marchi@ericsson.com> |
7745 | ||
7746 | PR cli/14975 | |
7747 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
7748 | unittests/format_pieces-selftests.c. | |
7749 | * common/format.h (format_piece) <operator==>: New. | |
7750 | (format_pieces) <operator[]>: Remove. | |
7751 | * common/format.c (format_pieces::format_pieces): Handle \e. | |
7752 | * unittests/format_pieces-selftests.c: New. | |
7753 | ||
58f0c718 TT |
7754 | 2018-05-17 Tom Tromey <tom@tromey.com> |
7755 | ||
7756 | PR symtab/23010: | |
7757 | * dwarf2read.c (load_cu, dw2_do_instantiate_symtab) | |
7758 | (dw2_instantiate_symtab): Add skip_partial parameter. | |
7759 | (dw2_find_last_source_symtab, dw2_map_expand_apply) | |
7760 | (dw2_lookup_symbol, dw2_expand_symtabs_for_function) | |
7761 | (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname) | |
7762 | (dw2_expand_symtabs_matching_one) | |
7763 | (dw2_find_pc_sect_compunit_symtab) | |
7764 | (dw2_debug_names_lookup_symbol) | |
7765 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
7766 | (init_cutu_and_read_dies): Add skip_partial parameter. | |
7767 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
7768 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
7769 | (psymtab_to_symtab_1): Update. | |
7770 | (load_full_comp_unit): Add skip_partial parameter. | |
7771 | (process_imported_unit_die, dwarf2_read_addr_index) | |
7772 | (follow_die_offset, dwarf2_fetch_die_loc_sect_off) | |
7773 | (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off) | |
7774 | (read_signatured_type): Update. | |
7775 | ||
3e618834 SM |
7776 | 2018-05-17 Simon Marchi <simon.marchi@ericsson.com> |
7777 | ||
7778 | * value.c (release_value): Remove unused variable. | |
7779 | (record_latest_value): Likewise. | |
7780 | (access_value_history): Likewise. | |
7781 | (preserve_values): Likewise. | |
7782 | ||
fe10fe31 TT |
7783 | 2018-05-17 Tom Tromey <tom@tromey.com> |
7784 | ||
7785 | * extension.h (struct ext_lang_type_printers) <py_type_printers>: | |
7786 | Initialize. | |
7787 | ||
1d761124 MR |
7788 | 2018-05-16 Maciej W. Rozycki <macro@mips.com> |
7789 | ||
7790 | PR gdb/22286 | |
7791 | * linux-nat-trad.c (linux_nat_trad_target::fetch_register): | |
7792 | Also handle registers whose width is not a multiple of | |
7793 | PTRACE_TYPE_RET. | |
7794 | (linux_nat_trad_target::store_register): Likewise. | |
7795 | ||
06333fea TT |
7796 | 2018-05-16 Tom Tromey <tom@tromey.com> |
7797 | ||
7798 | * gdbcore.h (core_bfd): Redefine. | |
7799 | * corelow.c (core_target::close): Update. | |
7800 | (core_target_open): Update. | |
7801 | * progspace.h (struct program_space) <cbfd>: Now a | |
7802 | gdb_bfd_ref_ptr. | |
7803 | ||
921222e2 TT |
7804 | 2018-05-16 Tom Tromey <tom@tromey.com> |
7805 | ||
7806 | PR cli/19551: | |
7807 | * symfile-add-flags.h (enum symfile_add_flags) | |
7808 | <SYMFILE_NOT_FILENAME>: New constant. | |
7809 | * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get | |
7810 | objfile name from BFD. | |
7811 | (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME. | |
7812 | * minidebug.c (find_separate_debug_file_in_section): Put | |
7813 | ".gnu_debugdata" into BFD's file name. | |
7814 | ||
3acb7083 SM |
7815 | 2018-05-16 Simon Marchi <simon.marchi@ericsson.com> |
7816 | ||
7817 | * regcache.c (regcache_read_ftype, regcache_write_ftype): | |
7818 | Remove. | |
7819 | ||
561a72d4 TC |
7820 | 2018-05-15 Tamar Christina <tamar.christina@arm.com> |
7821 | ||
7822 | PR binutils/21446 | |
7823 | * aarch64-tdep.c (aarch64_analyze_prologue, | |
7824 | aarch64_software_single_step, aarch64_displaced_step_copy_insn): | |
7825 | Indicate not interested in errors. | |
7826 | ||
4e6ff0e1 MR |
7827 | 2018-05-15 Maciej W. Rozycki <macro@mips.com> |
7828 | ||
7829 | * mips-linux-nat.c (mips_linux_nat_target::fetch_registers): | |
7830 | Supply the MIPS_ZERO_REGNUM register. | |
7831 | ||
ea33cd92 MR |
7832 | 2018-05-15 Maciej W. Rozycki <macro@mips.com> |
7833 | ||
7834 | * mips-tdep.c (mask_address_var): Make variable static. | |
7835 | ||
2d79090e TT |
7836 | 2018-05-14 Tom Tromey <tom@tromey.com> |
7837 | ||
7838 | * dwarf2read.c (rust_union_quirks): Clear rust_unions. | |
7839 | ||
cf4912ae AB |
7840 | 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com> |
7841 | ||
7842 | * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not | |
7843 | FXSAVE_ADDR for the mxcsr register. | |
7844 | ||
67e6f569 MF |
7845 | 2018-05-11 Max Filippov <jcmvbkbc@gmail.com> |
7846 | ||
7847 | * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition. | |
7848 | ||
15244507 PA |
7849 | 2018-05-11 Pedro Alves <palves@redhat.com> |
7850 | ||
7851 | * corelow.c (core_target) <core_target>: No longer inline. | |
7852 | Initialize m_core_gdbarch, m_core_vec and build the section table | |
7853 | here. | |
7854 | <~core_target>: New. | |
7855 | <core_gdbarch, get_core_register_section>: New methods. | |
7856 | <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields, | |
7857 | factored out from ... | |
7858 | <core_data, core_vec, core_gdbarch>: ... these deleted globals. | |
7859 | (core_ops): Delete. | |
7860 | (sniff_core_bfd): Add gdbarch parameter. | |
7861 | (core_close): Delete, merged into ... | |
7862 | (core_target::close): ... here. Delete self. | |
7863 | (core_close_cleanup): Delete. | |
7864 | (core_target_open): Allocate a core_target on the heap. Use a | |
7865 | unique_ptr instead of a cleanup. Bits moved into the core_target | |
7866 | ctor. Adjust to use core_target methods instead of globals. | |
7867 | (get_core_register_section): Rename to ... | |
7868 | (core_target::get_core_register_section): ... this and adjust. | |
7869 | (struct get_core_registers_cb_data): New. | |
7870 | (get_core_registers_cb): Use it. Use bool. | |
7871 | (core_target::fetch_registers, core_target::files_info) | |
7872 | (core_target::xfer_partial, core_target::read_description) | |
7873 | (core_target::pid_to, core_target::thread_name): Adjust to | |
7874 | reference class fields instead of globals. | |
7875 | * target.h (struct target_ops_deleter, target_ops_up): New. | |
7876 | ||
451953fa PA |
7877 | 2018-05-11 Pedro Alves <palves@redhat.com> |
7878 | ||
7879 | * corefile.c (core_file_command): Move to corelow.c. | |
7880 | * corelow.c (the_core_target): Delete. | |
7881 | (core_file_command): Moved from corefile.c. Check exec_bfd | |
7882 | instead of the_core_target. Use target_detach instead of calling | |
7883 | into the_core_target directly. | |
7884 | (maybe_say_no_core_file_now): New. | |
7885 | (core_target::detach): Use it. | |
7886 | (_initialize_corelow): Remove references to the_core_target. | |
7887 | * gdbcore.h (the_core_target): Delete. | |
7888 | ||
e540a5a2 | 7889 | 2018-05-11 Tom Tromey <tromey@redhat.com> |
3afc23a6 | 7890 | Pedro Alves <palves@redhat.com> |
e540a5a2 TT |
7891 | |
7892 | * corefile.c (core_bfd): Remove. | |
7893 | * gdbcore.h (core_bfd): Now a macro. | |
7894 | * progspace.h (struct program_space) <cbfd>: New field. | |
7895 | ||
633cf254 TT |
7896 | 2018-05-11 Tom Tromey <tom@tromey.com> |
7897 | ||
7898 | * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use | |
7899 | gdb::def_vector. | |
7900 | ||
1a34f210 TT |
7901 | 2018-05-10 Tom Tromey <tom@tromey.com> |
7902 | ||
7903 | * configure: Rebuild. | |
7904 | * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3. | |
7905 | ||
190852c8 JB |
7906 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
7907 | ||
7908 | PR server/23158: | |
7909 | * regformats/regdat.sh: Adjust script, following the addition | |
7910 | of the new expedite_regs parameter to init_target_desc. | |
7911 | ||
8727de56 OJ |
7912 | 2018-05-10 Omair Javaid <omair.javaid@linaro.org> |
7913 | ||
7914 | PR gdb/23127 | |
7915 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to | |
7916 | set_gdbarch_significant_addr_bit. | |
7917 | * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to | |
7918 | set_gdbarch_significant_addr_bit. | |
7919 | * utils.c (address_significant): Update to sign extend addr. | |
7920 | ||
37d9e062 MF |
7921 | 2018-05-09 Max Filippov <jcmvbkbc@gmail.com> |
7922 | ||
7923 | * xtensa-linux-tdep.c (xtensa-tdep.h): New include. | |
7924 | (xtensa_linux_init_abi): Limit tdep->num_regs by | |
7925 | tdep->num_nopriv_regs. | |
7926 | * xtensa-tdep.c (xtensa_derive_tdep): Calculate | |
7927 | tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's | |
7928 | not initialized. | |
7929 | ||
7402fbca SM |
7930 | 2018-05-08 Simon Marchi <simon.marchi@ericsson.com> |
7931 | ||
7932 | * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE. | |
7933 | ||
8ee22052 AB |
7934 | 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com> |
7935 | ||
7936 | * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant. | |
7937 | (I387_MXCSR_INIT_VAL): New constant. | |
7938 | * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave | |
7939 | buffer if it was supplied by the inferior. | |
7940 | * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL. | |
7941 | (i387_xsave_get_clear_bv): New function. | |
7942 | (i387_supply_xsave): Only read x87 control registers from the | |
7943 | xsave buffer if the feature is enabled, and the state will have | |
7944 | been written, otherwise, provide a suitable default. | |
7945 | (i387_collect_xsave): Pre-clear all registers in xsave buffer, | |
7946 | including x87 control registers. Update control registers if they | |
7947 | have changed from the default value, and mark features as enabled | |
7948 | as required. | |
7949 | * i387-tdep.h (i387_xsave_get_clear_bv): Declare. | |
7950 | ||
968ae51b UW |
7951 | 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
7952 | ||
7953 | * spu-tdep.c (info_spu_event_command): Fix output formatting. | |
7954 | ||
aff689d3 TT |
7955 | 2018-05-07 Tom Tromey <tom@tromey.com> |
7956 | ||
7957 | * configure: Rebuild. | |
7958 | * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond. | |
7959 | ||
ce887586 TT |
7960 | 2018-05-07 Tom Tromey <tom@tromey.com> |
7961 | ||
7962 | PR tdep/20362: | |
7963 | * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D | |
7964 | bit. Use correct value for VDIV. | |
7965 | ||
85e26832 TT |
7966 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7967 | ||
7968 | * configure: Rebuild. | |
7969 | * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough. | |
7970 | ||
449b1ac7 TT |
7971 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7972 | ||
7973 | * linux-record.c (record_linux_system_call) <case | |
7974 | RECORD_SYS_RECVFROM>: Add "break". | |
7975 | ||
15c9ffd6 TT |
7976 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7977 | ||
7978 | * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>: | |
7979 | Add missing "break". | |
7980 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>: | |
7981 | Add missing "break". | |
7982 | ||
e3829d13 TT |
7983 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7984 | ||
7985 | * rs6000-tdep.c (ppc_process_record_op4) | |
7986 | (ppc_process_record_op63): Add fall-through comment. | |
7987 | ||
da0e1563 TT |
7988 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7989 | ||
7990 | * i386-tdep.c (i386_process_record): Add fall-through comment. | |
7991 | ||
0019cd49 TT |
7992 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7993 | ||
7994 | * stabsread.c (define_symbol) <case 'p'>: Add fall-through | |
7995 | comment. | |
7996 | ||
565e0eda TT |
7997 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7998 | ||
7999 | * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment. | |
8000 | * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment. | |
8001 | * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through | |
8002 | comment. | |
8003 | * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through | |
8004 | comment. | |
8005 | * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through | |
8006 | comment. | |
8007 | ||
621846f4 TT |
8008 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8009 | ||
8010 | * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN. | |
8011 | ||
86a73007 TT |
8012 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8013 | ||
8014 | * s390-tdep.c (s390_process_record): Fix fall-through comments. | |
8015 | * xcoffread.c (scan_xcoff_symtab): Move comment later. | |
8016 | * symfile.c (section_is_mapped): Fix fall-through comment. | |
8017 | * stabsread.c (define_symbol, read_member_functions): Fix | |
8018 | fall-through comment. | |
8019 | * s390-linux-tdep.c (s390_process_record): Fix fall-through | |
8020 | comment. | |
8021 | * remote.c (remote_wait_as): Fix fall-through comment. | |
8022 | * p-exp.y (yylex): Fix fall-through comment. | |
8023 | * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through | |
8024 | comment. | |
8025 | * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment. | |
8026 | * mdebugread.c (parse_partial_symbols): Fix fall-through comment. | |
8027 | * jv-exp.y (yylex): Fix fall-through comment. | |
8028 | * go-exp.y (lex_one_token): Fix fall-through comment. | |
8029 | * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix | |
8030 | fall-through comment. | |
8031 | * f-exp.y (yylex): Fix fall-through comment. | |
8032 | * dwarf2read.c (process_die): Fix fall-through comments. | |
8033 | * dbxread.c (process_one_symbol): Fix fall-through comment. | |
8034 | * d-exp.y (lex_one_token): Fix fall-through comment. | |
8035 | * cp-name-parser.y (yylex): Fix fall-through comment. | |
8036 | * coffread.c (coff_symtab_read): Fix fall-through comment. | |
8037 | * c-exp.y (lex_one_token): Fix fall-through comment. | |
8038 | * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through | |
8039 | comment. | |
8040 | * arch/arm.c (arm_instruction_changes_pc): Fix fall-through | |
8041 | comment. | |
8042 | ||
56bcdbea TT |
8043 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8044 | ||
8045 | PR python/22730: | |
8046 | * NEWS: Mention gdb.execute change. | |
8047 | * gdbcmd.h (execute_control_command): Don't declare. | |
8048 | * python/python.c (execute_gdb_command): Use read_command_lines_1, | |
8049 | execute_control_commands, execute_control_commands_to_string. | |
8050 | * cli/cli-script.h (execute_control_commands) | |
8051 | (execute_control_commands_to_string): Declare. | |
8052 | (execute_control_command): Add from_tty parameter. | |
8053 | * cli/cli-script.c (execute_control_commands) | |
8054 | (execute_control_commands_to_string): New functions. | |
8055 | (execute_user_command): Use execute_control_commands. | |
8056 | (execute_control_command_1): Add "from_tty" parameter. Update. | |
8057 | (execute_control_command): Likewise. | |
8058 | ||
a913fffb TT |
8059 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8060 | ||
8061 | PR python/22731: | |
8062 | * NEWS: Mention that breakpoint commands are writable. | |
8063 | * python/py-breakpoint.c (bppy_set_commands): New function. | |
8064 | (breakpoint_object_getset) <"commands">: Use it. | |
8065 | ||
60b3cef2 TT |
8066 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8067 | ||
8068 | * tracepoint.c (actions_command): Update. | |
8069 | * mi/mi-cmd-break.c (mi_command_line_array) | |
8070 | (mi_command_line_array_cnt, mi_command_line_array_ptr) | |
8071 | (mi_read_next_line): Remove. | |
8072 | (mi_cmd_break_commands): Update. | |
8073 | * cli/cli-script.h (read_command_lines, read_command_lines_1): Use | |
8074 | function_view. | |
8075 | * cli/cli-script.c (get_command_line): Update. | |
8076 | (process_next_line): Use function_view. Constify. | |
8077 | (recurse_read_control_structure, read_command_lines) | |
8078 | (read_command_lines_1): Change argument types to function_view. | |
8079 | (do_define_command, document_command): Update. | |
8080 | * breakpoint.h (check_tracepoint_command): Don't declare. | |
8081 | * breakpoint.c (check_tracepoint_command): Remove. | |
8082 | (commands_command_1, create_tracepoint_from_upload): Update. | |
8083 | ||
7a2c85f2 TT |
8084 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8085 | ||
8086 | PR gdb/11750: | |
8087 | * cli/cli-script.h (enum command_control_type) <define_control>: | |
8088 | New constant. | |
8089 | * cli/cli-script.c (multi_line_command_p): Handle define_control. | |
8090 | (build_command_line, execute_control_command_1) | |
8091 | (process_next_line): Likewise. | |
8092 | (do_define_command): New function, extracted from define_command. | |
8093 | (define_command): Use it. | |
8094 | ||
295dc222 TT |
8095 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8096 | ||
8097 | * tracepoint.c (actions_command): Update. | |
8098 | * cli/cli-script.h (read_command_lines): Update. | |
8099 | * cli/cli-script.c (read_command_lines): Constify prompt_arg. | |
8100 | (MAX_TMPBUF): Remove define. | |
8101 | (define_command): Use string_printf. | |
8102 | (document_command): Likewise. | |
8103 | * breakpoint.c (commands_command_1): Update. | |
8104 | ||
1263a9d5 TT |
8105 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8106 | ||
8107 | * top.c (execute_command): Update. | |
8108 | * cli/cli-script.h (print_command_lines): Now varargs. | |
8109 | * cli/cli-script.c (print_command_lines): Now varargs. | |
8110 | (execute_control_command_1) <case while_control, case if_control>: | |
8111 | Update. | |
8112 | ||
12973681 TT |
8113 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8114 | ||
8115 | * tracepoint.c (all_tracepoint_actions): Rename from | |
8116 | all_tracepoint_actions_and_cleanup. Change return type. | |
8117 | (actions_command, encode_actions_1, encode_actions) | |
8118 | (trace_dump_actions, tdump_command): Update. | |
8119 | * remote.c (remote_download_command_source): Update. | |
8120 | * python/python.c (gdbpy_eval_from_control_command) | |
8121 | (python_command, python_interactive_command): Update. | |
8122 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
8123 | * guile/guile.c (guile_command) | |
8124 | (gdbscm_eval_from_control_command, guile_command): Update. | |
8125 | * compile/compile.c (compile_code_command) | |
8126 | (compile_print_command, compile_to_object): Update. | |
8127 | * cli/cli-script.h (struct command_lines_deleter): New. | |
8128 | (counted_command_line): New typedef. | |
8129 | (struct command_line): Add constructor, destructor. | |
8130 | <body_list>: Remove. | |
8131 | <body_list_0, body_list_1>: New members. | |
8132 | (command_line_up): Remove typedef. | |
8133 | (read_command_lines, read_command_lines_1, get_command_line): | |
8134 | Update. | |
8135 | (copy_command_lines): Don't declare. | |
8136 | * cli/cli-script.c (build_command_line): Use "new". | |
8137 | (get_command_line): Return counted_command_line. | |
8138 | (print_command_lines, execute_user_command) | |
8139 | (execute_control_command_1, while_command, if_command): Update. | |
8140 | (realloc_body_list): Remove. | |
8141 | (process_next_line, recurse_read_control_structure): Update. | |
8142 | (read_command_lines, read_command_lines_1): Return counted_command_line. | |
8143 | (free_command_lines): Use "delete". | |
8144 | (copy_command_lines): Remove. | |
8145 | (define_command, document_command, show_user_1): Update. | |
8146 | * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now | |
8147 | a counted_command_line. | |
8148 | * breakpoint.h (counted_command_line): Remove typedef. | |
8149 | (breakpoint_set_commands): Update. | |
8150 | * breakpoint.c (check_no_tracepoint_commands) | |
8151 | (validate_commands_for_breakpoint): Update. | |
8152 | (breakpoint_set_commands): Change commands to be a | |
8153 | counted_command_line. | |
8154 | (commands_command_1, update_dprintf_command_list) | |
8155 | (create_tracepoint_from_upload): Update. | |
8156 | ||
e2fc72e2 TT |
8157 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8158 | ||
8159 | * cli/cli-decode.h (cmd_list_element): New constructor. | |
8160 | (~cmd_list_element): New destructor. | |
8161 | (struct cmd_list_element): Add initializers. | |
8162 | * cli/cli-decode.c (do_add_cmd): Use "new". | |
8163 | (delete_cmd): Use "delete". | |
8164 | ||
a3b60e45 JK |
8165 | 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
8166 | Pedro Alves <palves@redhat.com> | |
8167 | ||
8168 | PR breakpoints/19806 and support for PR external/20207. | |
8169 | * NEWS: Mention Aarch64 watchpoint improvements. | |
8170 | * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed | |
8171 | watchpoints and PR external/20207 watchpoints. | |
8172 | * nat/aarch64-linux-hw-point.c | |
8173 | (kernel_supports_any_contiguous_range): New. | |
8174 | (aarch64_watchpoint_offset): New. | |
8175 | (aarch64_watchpoint_length): Support PR external/20207 watchpoints. | |
8176 | (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts. | |
8177 | (aarch64_point_is_aligned): Support PR external/20207 watchpoints. | |
8178 | (aarch64_align_watchpoint): New parameters aligned_offset_p and | |
8179 | next_addr_orig_p. Support PR external/20207 watchpoints. | |
8180 | (aarch64_downgrade_regs): New. | |
8181 | (aarch64_dr_state_insert_one_point): New parameters offset and | |
8182 | addr_orig. | |
8183 | (aarch64_dr_state_remove_one_point): Likewise. | |
8184 | (aarch64_handle_breakpoint): Update caller. | |
8185 | (aarch64_handle_aligned_watchpoint): Likewise. | |
8186 | (aarch64_handle_unaligned_watchpoint): Support addr_orig and | |
8187 | aligned_offset. | |
8188 | (aarch64_linux_set_debug_regs): Remove const from state. Call | |
8189 | aarch64_downgrade_regs. | |
8190 | (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp. | |
8191 | * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ... | |
8192 | (DR_CONTROL_MASK): ... this. | |
8193 | (struct aarch64_debug_reg_state): New field dr_addr_orig_wp. | |
8194 | (unsigned int aarch64_watchpoint_offset): New prototype. | |
8195 | (aarch64_linux_set_debug_regs): Remove const from state. | |
8196 | * utils.c (align_up, align_down): Move to ... | |
8197 | * common/common-utils.c (align_up, align_down): ... here. | |
8198 | * utils.h (align_up, align_down): Move to ... | |
8199 | * common/common-utils.h (align_up, align_down): ... here. | |
8200 | ||
05bc7456 JB |
8201 | 2018-05-04 Joel Brobecker <brobecker@adacore.com> |
8202 | ||
8203 | * sparc-tdep.c (sparc_structure_return_p): Re-implement to | |
8204 | match the ABI as summarized in GCC's gcc/config/sparc/sparc.c. | |
8205 | (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p. | |
8206 | Re-implement to match the ABI as summarized in GCC's | |
8207 | gcc/config/sparc/sparc.c. All callers updated. | |
8208 | (sparc32_store_arguments): Remove assertion. | |
8209 | ||
2f433492 TT |
8210 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8211 | ||
8212 | * printcmd.c: Don't include tui.h. | |
8213 | (decode_format): Use skip_spaces. | |
8214 | ||
9be2ae8f TT |
8215 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8216 | ||
8217 | PR gdb/22619: | |
8218 | * printcmd.c (last_count): New global. | |
8219 | (x_command): Use saved count when repeating. | |
8220 | ||
f0b3976b TT |
8221 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8222 | ||
8223 | * nto-procfs.c (do_closedir_cleanup): Remove. | |
8224 | (procfs_pidlist): Use gdb_dir_up. | |
8225 | * procfs.c (do_closedir_cleanup): Remove. | |
8226 | (proc_update_threads): Use gdb_dir_up. | |
8227 | * common/filestuff.h (struct gdb_dir_deleter): New. | |
8228 | (gdb_dir_up): New typedef. | |
8229 | ||
862d101a TT |
8230 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8231 | ||
8232 | * ada-lang.c (print_mention_exception): Use std::string. | |
8233 | ||
cb7de75e TT |
8234 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8235 | ||
8236 | * ada-lang.c (create_excep_cond_exprs): Update. | |
8237 | (ada_exception_catchpoint_cond_string): Use std::string. | |
8238 | ||
49d83361 TT |
8239 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8240 | ||
8241 | * ada-lang.c (xget_renaming_scope): Return std::string. | |
8242 | (old_renaming_is_invisible): Update. | |
8243 | ||
ade72a34 TT |
8244 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8245 | ||
8246 | * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr. | |
8247 | (target_bfd::target_bfd, target_bfd::~target_bfd): Update. | |
8248 | ||
2be4d7f0 UW |
8249 | 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com> |
8250 | ||
8251 | * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error. | |
8252 | ||
69b6ecb0 TT |
8253 | 2018-05-04 Tom Tromey <tom@tromey.com> |
8254 | ||
8255 | * remote.c (remote_query_supported_append): Change type. | |
8256 | (remote_check_symbols): Update. | |
8257 | ||
bf27f0e2 PP |
8258 | 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com> |
8259 | ||
8260 | PR gdb/11420 | |
8261 | * configure.ac: Prepend libpython. | |
8262 | * python/python-config.py: Likewise. | |
8263 | * configure: Regenerate. | |
8264 | ||
4ea17de8 SM |
8265 | 2018-05-03 Simon Marchi <simon.marchi@ericsson.com> |
8266 | ||
8267 | * Makefile.in (%.c: %.l): Use -t instead of --stdout. | |
8268 | ||
bd732259 PA |
8269 | 2018-05-03 Pedro Alves <palves@redhat.com> |
8270 | ||
8271 | * s390-linux-nat.c | |
8272 | (s390_linux_nat_target::have_continuable_watchpoint): Mark with | |
8273 | override. Write 'true' instead of '1'. | |
8274 | (s390_linux_nat_target::watchpoint_addr_within_range): Remove | |
8275 | declaration. | |
8276 | ||
d9f719f1 PA |
8277 | 2018-05-02 Pedro Alves <palves@redhat.com> |
8278 | ||
8279 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use | |
8280 | add_inf_child_target. | |
8281 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use | |
8282 | add_inf_child_target. | |
8283 | * aix-thread.c (aix_thread_target_info): New. | |
8284 | (aix_thread_target) <shortname, longname, doc>: Delete. | |
8285 | <info>: New. | |
8286 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use | |
8287 | add_inf_child_target. | |
8288 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use | |
8289 | add_inf_child_target. | |
8290 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use | |
8291 | add_inf_child_target. | |
8292 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use | |
8293 | add_inf_child_target. | |
8294 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use | |
8295 | add_inf_child_target. | |
8296 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use | |
8297 | add_inf_child_target. | |
8298 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use | |
8299 | add_inf_child_target. | |
8300 | * arm-linux-nat.c (_initialize_arm_linux_nat): Use | |
8301 | add_inf_child_target. | |
8302 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use | |
8303 | add_inf_child_target. | |
8304 | * bfd-target.c (target_bfd_target_info): New. | |
8305 | (target_bfd) <shortname, longname, doc>: Delete. | |
8306 | <info>: New. | |
8307 | * bsd-kvm.c (bsd_kvm_target_info): New. | |
8308 | (bsd_kvm_target) <shortname, longname, doc>: Delete. | |
8309 | <info>: New. | |
8310 | (bsd_kvm_target::open): Rename to ... | |
8311 | (bsd_kvm_target_open): ... this. Adjust. | |
8312 | * bsd-uthread.c (bsd_uthread_target_info): New. | |
8313 | (bsd_uthread_target) <shortname, longname, doc>: Delete. | |
8314 | <info>: New. | |
8315 | * corefile.c (core_file_command): Adjust. | |
8316 | * corelow.c (core_target_info): New. | |
8317 | (core_target) <shortname, longname, doc>: Delete. | |
8318 | <info>: New. | |
8319 | (core_target::open): Rename to ... | |
8320 | (core_target_open): ... this. Adjust. | |
8321 | * ctf.c (ctf_target_info): New. | |
8322 | (ctf_target) <shortname, longname, doc>: Delete. | |
8323 | <info>: New. | |
8324 | (ctf_target::open): Rename to ... | |
8325 | (ctf_target_open): ... this. | |
8326 | (_initialize_ctf): Adjust. | |
8327 | * exec.c (exec_target_info): New. | |
8328 | (exec_target) <shortname, longname, doc>: Delete. | |
8329 | <info>: New. | |
8330 | (exec_target::open): Rename to ... | |
8331 | (exec_target_open): ... this. | |
8332 | * gdbcore.h (core_target_open): Declare. | |
8333 | * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target. | |
8334 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use | |
8335 | add_inf_child_target. | |
8336 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use | |
8337 | add_inf_child_target. | |
8338 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use | |
8339 | add_inf_child_target. | |
8340 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use | |
8341 | add_inf_child_target. | |
8342 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use | |
8343 | add_inf_child_target. | |
8344 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Use | |
8345 | add_inf_child_target. | |
8346 | * i386-linux-nat.c (_initialize_i386_linux_nat): Use | |
8347 | add_inf_child_target. | |
8348 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use | |
8349 | add_inf_child_target. | |
8350 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Use | |
8351 | add_inf_child_target. | |
8352 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use | |
8353 | add_inf_child_target. | |
8354 | * inf-child.c (inf_child_target_info): New. | |
8355 | (inf_child_target::info): New. | |
8356 | (inf_child_open_target): Remove 'target' parameter. Use | |
8357 | get_native_target instead. | |
8358 | (inf_child_target::open): Delete. | |
8359 | (add_inf_child_target): New. | |
8360 | * inf-child.h (inf_child_target) <shortname, longname, doc, open>: | |
8361 | Delete. | |
8362 | <info>: New. | |
8363 | (add_inf_child_target): Declare. | |
8364 | (inf_child_open_target): Declare. | |
8365 | * linux-thread-db.c (thread_db_target_info): New. | |
8366 | (thread_db_target) <shortname, longname, doc>: Delete. | |
8367 | <info>: New. | |
8368 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use | |
8369 | add_inf_child_target. | |
8370 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use | |
8371 | add_inf_child_target. | |
8372 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use | |
8373 | add_inf_child_target. | |
8374 | * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use | |
8375 | add_inf_child_target. | |
8376 | * make-target-delegates (print_class): Adjust. | |
8377 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use | |
8378 | add_inf_child_target. | |
8379 | * mips-linux-nat.c (_initialize_mips_linux_nat): Use | |
8380 | add_inf_child_target. | |
8381 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use | |
8382 | add_inf_child_target. | |
8383 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use | |
8384 | add_inf_child_target. | |
8385 | * nto-procfs.c (nto_native_target_info): New. | |
8386 | (nto_procfs_target_native) <shortname, longname, doc>: | |
8387 | Delete. | |
8388 | <info>: New. | |
8389 | (nto_procfs_target_info): New. | |
8390 | (nto_procfs_target_procfs) <shortname, longname, doc>: | |
8391 | Delete. | |
8392 | <info>: New. | |
8393 | (init_procfs_targets): Adjust. | |
8394 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use | |
8395 | add_inf_child_target. | |
8396 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use | |
8397 | add_inf_child_target. | |
8398 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use | |
8399 | add_inf_child_target. | |
8400 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use | |
8401 | add_inf_child_target. | |
8402 | * ravenscar-thread.c (ravenscar_target_info): New. | |
8403 | (ravenscar_thread_target) <shortname, longname, doc>: | |
8404 | Delete. | |
8405 | <info>: New. | |
8406 | * record-btrace.c (record_btrace_target_info): | |
8407 | (record_btrace_target) <shortname, longname, doc>: Delete. | |
8408 | <info>: New. | |
8409 | (record_btrace_target::open): Rename to ... | |
8410 | (record_btrace_target_open): ... this. Adjust. | |
8411 | * record-full.c (record_longname, record_doc): New. | |
8412 | (record_full_base_target) <shortname, longname, doc>: Delete. | |
8413 | <info>: New. | |
8414 | (record_full_target_info): New. | |
8415 | (record_full_target): <shortname>: Delete. | |
8416 | <info>: New. | |
8417 | (record_full_core_open_1, record_full_open_1): Update comments. | |
8418 | (record_full_base_target::open): Rename to ... | |
8419 | (record_full_open): ... this. | |
8420 | (cmd_record_full_restore): Update. | |
8421 | (_initialize_record_full): Update. | |
8422 | * remote-sim.c (remote_sim_target_info): New. | |
8423 | (gdbsim_target) <shortname, longname, doc>: Delete. | |
8424 | <info>: New. | |
8425 | (gdbsim_target::open): Rename to ... | |
8426 | (gdbsim_target_open): ... this. | |
8427 | (_initialize_remote_sim): Adjust. | |
8428 | * remote.c (remote_doc): New. | |
8429 | (remote_target_info): New. | |
8430 | (remote_target) <shortname, longname, doc>: Delete. | |
8431 | <info>: New. | |
8432 | (extended_remote_target_info): New. | |
8433 | (extended_remote_target) <shortname, longname, doc>: Delete. | |
8434 | <info>: New. | |
8435 | (remote_target::open_1): Make static. Adjust. | |
8436 | * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target. | |
8437 | * s390-linux-nat.c (_initialize_s390_nat): Use | |
8438 | add_inf_child_target. | |
8439 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use | |
8440 | add_inf_child_target. | |
8441 | * sol-thread.c (thread_db_target_info): New. | |
8442 | (sol_thread_target) <shortname, longname, doc>: Delete. | |
8443 | <info>: New. | |
8444 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use | |
8445 | add_inf_child_target. | |
8446 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use | |
8447 | add_inf_child_target. | |
8448 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use | |
8449 | add_inf_child_target. | |
8450 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use | |
8451 | add_inf_child_target. | |
8452 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use | |
8453 | add_inf_child_target. | |
8454 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use | |
8455 | add_inf_child_target. | |
8456 | * spu-linux-nat.c (_initialize_spu_nat): Use | |
8457 | add_inf_child_target. | |
8458 | * spu-multiarch.c (spu_multiarch_target_info): New. | |
8459 | (spu_multiarch_target) <shortname, longname, doc>: Delete. | |
8460 | <info>: New. | |
8461 | * target-delegates.c: Regenerate. | |
8462 | * target.c: Include <unordered_map>. | |
8463 | (target_ops_p): Delete. | |
8464 | (DEF_VEC_P(target_ops_p)): Delete. | |
8465 | (target_factories): New. | |
8466 | (test_target_info): New. | |
8467 | (test_target_ops::info): New. | |
8468 | (open_target): Adjust to use target_factories. | |
8469 | (add_target_with_completer): Rename to ... | |
8470 | (add_target): ... this. Change prototype. Register target_info | |
8471 | and open callback in target_factories. Register target_info in | |
8472 | command context instead of target_ops. | |
8473 | (add_target): Delete old implementation. | |
8474 | (add_deprecated_target_alias): Change prototype. Adjust. | |
8475 | (the_native_target): New. | |
8476 | (set_native_target, get_native_target): New. | |
8477 | (find_default_run_target): Use the_native_target. | |
8478 | (find_attach_target, find_run_target): Simplify. | |
8479 | (target_ops::open): Delete. | |
8480 | (dummy_target_info): New. | |
8481 | (dummy_target::shortname, dummy_target::longname) | |
8482 | (dummy_target::doc): Delete. | |
8483 | (dummy_target::info): New. | |
8484 | (debug_target::shortname, debug_target::longname) | |
8485 | (debug_target::doc): Delete. | |
8486 | (debug_target::info): New. | |
8487 | * target.h (struct target_info): New. | |
8488 | (target_ops::~target_ops): Add comment. | |
8489 | (target_ops::info): New. | |
8490 | (target_ops::shortname, target_ops::longname, target_ops::doc): No | |
8491 | longer virtual. Implement in terms of target_info. | |
8492 | (set_native_target, get_native_target): Declare. | |
8493 | (target_open_ftype): New. | |
8494 | (add_target, add_target_with_completer) | |
8495 | (add_deprecated_target_alias): Change prototype. | |
8496 | (test_target) <shortname, longname, doc>: Delete. | |
8497 | <info>: New. | |
8498 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use | |
8499 | add_inf_child_target. | |
8500 | * tracefile-tfile.c (tfile_target_info): New. | |
8501 | (tfile_target) <shortname, longname, doc>: Delete. | |
8502 | <info>: New. | |
8503 | (tfile_target::open): Rename to ... | |
8504 | (tfile_target_open): ... this. | |
8505 | (_initialize_tracefile_tfile): Adjust. | |
8506 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use | |
8507 | add_inf_child_target. | |
8508 | * windows-nat.c (_initialize_windows_nat): Use | |
8509 | add_inf_child_target. | |
8510 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use | |
8511 | add_inf_child_target. | |
8512 | ||
135340af PA |
8513 | 2018-05-02 Pedro Alves <palves@redhat.com> |
8514 | ||
8515 | * linux-nat.h (linux_nat_target) <low_new_thread, | |
8516 | low_delete_thread, low_new_fork, low_forget_process, | |
8517 | low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>: | |
8518 | New virtual methods. | |
8519 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
8520 | (linux_nat_new_fork_ftype, linux_nat_set_new_fork) | |
8521 | (linux_nat_forget_process_ftype, linux_nat_set_forget_process) | |
8522 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
8523 | (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event): | |
8524 | Delete. | |
8525 | * linux-fork.c (delete_fork): Adjust to call low method. | |
8526 | * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread) | |
8527 | (linux_nat_new_fork, linux_nat_forget_process_hook) | |
8528 | (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup) | |
8529 | (linux_nat_status_is_event): | |
8530 | (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp) | |
8531 | (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust | |
8532 | to call low method. | |
8533 | (sigtrap_is_event): Rename to ... | |
8534 | (linux_nat_target::low_status_is_event): ... this. | |
8535 | (linux_nat_set_status_is_event): Delete. | |
8536 | (save_stop_reason, linux_nat_wait_1) | |
8537 | (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call | |
8538 | low methods. | |
8539 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
8540 | (linux_nat_set_new_fork, linux_nat_set_forget_process) | |
8541 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
8542 | (linux_nat_set_prepare_to_resume): Delete. | |
8543 | * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to | |
8544 | low virtual methods. | |
8545 | * amd64-linux-nat.c: Likewise. | |
8546 | * arm-linux-nat.c: Likewise. | |
8547 | * i386-linux-nat.c: Likewise. | |
8548 | * ia64-linux-nat.c: Likewise. | |
8549 | * mips-linux-nat.c: Likewise. | |
8550 | * ppc-linux-nat.c: Likewise. | |
8551 | * s390-linux-nat.c: Likewise. | |
8552 | * sparc64-linux-nat.c: Likewise. | |
8553 | * x86-linux-nat.c: Likewise. | |
8554 | * x86-linux-nat.h: Include "nat/x86-linux.h". | |
8555 | (x86_linux_nat_target) <low_new_fork, low_forget_process, | |
8556 | low_prepare_to_resume, low_new_thread, low_delete_thread>: | |
8557 | Override methods. | |
8558 | ||
57810aa7 PA |
8559 | 2018-05-02 Pedro Alves <palves@redhat.com> |
8560 | ||
8561 | * target.h (target_ops) | |
8562 | <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, | |
8563 | stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint, | |
8564 | stopped_by_watchpoint, have_continuable_watchpoint, | |
8565 | stopped_data_address, watchpoint_addr_within_range, | |
8566 | can_accel_watchpoint_condition, can_run, thread_alive, | |
8567 | has_all_memory, has_memory, has_stack, has_registers, | |
8568 | has_execution, can_async_p, is_async_p, supports_non_stop, | |
8569 | always_non_stop_p, can_execute_reverse, supports_multi_process, | |
8570 | supports_enable_disable_tracepoint, | |
8571 | supports_disable_randomization, supports_string_tracing, | |
8572 | supports_evaluation_of_breakpoint_conditions, | |
8573 | can_run_breakpoint_commands, filesystem_is_local, | |
8574 | can_download_tracepoint, get_trace_state_variable_value, | |
8575 | set_trace_notes, get_tib_address, use_agent, can_use_agent, | |
8576 | record_is_replaying, record_will_replay, | |
8577 | augmented_libraries_svr4_read>: Adjust to return bool. | |
8578 | * aarch64-linux-nat.c: All implementations adjusted. | |
8579 | * aix-thread.c: All implementations adjusted. | |
8580 | * arm-linux-nat.c: All implementations adjusted. | |
8581 | * breakpoint.c: All implementations adjusted. | |
8582 | * bsd-kvm.c: All implementations adjusted. | |
8583 | * bsd-uthread.c: All implementations adjusted. | |
8584 | * corelow.c: All implementations adjusted. | |
8585 | * ctf.c: All implementations adjusted. | |
8586 | * darwin-nat.c: All implementations adjusted. | |
8587 | * darwin-nat.h: All implementations adjusted. | |
8588 | * exec.c: All implementations adjusted. | |
8589 | * fbsd-nat.c: All implementations adjusted. | |
8590 | * fbsd-nat.h: All implementations adjusted. | |
8591 | * gnu-nat.c: All implementations adjusted. | |
8592 | * gnu-nat.h: All implementations adjusted. | |
8593 | * go32-nat.c: All implementations adjusted. | |
8594 | * ia64-linux-nat.c: All implementations adjusted. | |
8595 | * inf-child.c: All implementations adjusted. | |
8596 | * inf-child.h: All implementations adjusted. | |
8597 | * inf-ptrace.c: All implementations adjusted. | |
8598 | * inf-ptrace.h: All implementations adjusted. | |
8599 | * linux-nat.c: All implementations adjusted. | |
8600 | * linux-nat.h: All implementations adjusted. | |
8601 | * mips-linux-nat.c: All implementations adjusted. | |
8602 | * nto-procfs.c: All implementations adjusted. | |
8603 | * ppc-linux-nat.c: All implementations adjusted. | |
8604 | * procfs.c: All implementations adjusted. | |
8605 | * ravenscar-thread.c: All implementations adjusted. | |
8606 | * record-btrace.c: All implementations adjusted. | |
8607 | * record-full.c: All implementations adjusted. | |
8608 | * remote-sim.c: All implementations adjusted. | |
8609 | * remote.c: All implementations adjusted. | |
8610 | * s390-linux-nat.c: All implementations adjusted. | |
8611 | * sol-thread.c: All implementations adjusted. | |
8612 | * spu-multiarch.c: All implementations adjusted. | |
8613 | * target-delegates.c: All implementations adjusted. | |
8614 | * target.c: All implementations adjusted. | |
8615 | * target.h: All implementations adjusted. | |
8616 | * tracefile-tfile.c: All implementations adjusted. | |
8617 | * tracefile.c: All implementations adjusted. | |
8618 | * tracefile.h: All implementations adjusted. | |
8619 | * windows-nat.c: All implementations adjusted. | |
8620 | * x86-linux-nat.h: All implementations adjusted. | |
8621 | * x86-nat.h: All implementations adjusted. | |
8622 | ||
ad6a4e2d PA |
8623 | 2018-05-02 Pedro Alves <palves@redhat.com> |
8624 | ||
8625 | * make-target-delegates (scan_target_h): Don't trim lines here. | |
8626 | Replace sequences of tabs and/or whitespace with a single | |
8627 | whitespace. | |
8628 | (top level, parsing methods): Trim each line before processing it | |
8629 | here. | |
8630 | ||
f6ac5f3d PA |
8631 | 2018-05-02 Pedro Alves <palves@redhat.com> |
8632 | John Baldwin <jhb@freebsd.org> | |
8633 | ||
8634 | * target.h (enum strata) <debug_stratum>: New. | |
8635 | (struct target_ops) <all delegation methods>: Replace by C++ | |
8636 | virtual methods, and drop "to_" prefix. All references updated | |
8637 | throughout. | |
8638 | <to_shortname, to_longname, to_doc, to_data, | |
8639 | to_have_steppable_watchpoint, to_have_continuable_watchpoint, | |
8640 | to_has_thread_control, to_attach_no_wait>: Delete, replaced by | |
8641 | virtual methods. All references updated throughout. | |
8642 | <can_attach, supports_terminal_ours, can_create_inferior, | |
8643 | get_thread_control_capabilities, attach_no_wait>: New | |
8644 | virtual methods. | |
8645 | <insert_breakpoint, remove_breakpoint>: Now | |
8646 | TARGET_DEFAULT_NORETURN methods. | |
8647 | <info_proc>: Now returns bool. | |
8648 | <to_magic>: Delete. | |
8649 | (OPS_MAGIC): Delete. | |
8650 | (current_target): Delete. All references replaced by references | |
8651 | to ... | |
8652 | (target_stack): ... this. New. | |
8653 | (target_shortname, target_longname): Adjust. | |
8654 | (target_can_run): Now a function declaration. | |
8655 | (default_child_has_all_memory, default_child_has_memory) | |
8656 | (default_child_has_stack, default_child_has_registers) | |
8657 | (default_child_has_execution): Remove target_ops parameter. | |
8658 | (complete_target_initialization): Delete. | |
8659 | (memory_breakpoint_target): New template class. | |
8660 | (test_target_ops): Refactor as a C++ class with virtual methods. | |
8661 | * make-target-delegates (NAME_PART): Tighten. | |
8662 | (POINTER_PART, CP_SYMBOL): New. | |
8663 | (SIMPLE_RETURN_PART): Reimplement. | |
8664 | (VEC_RETURN_PART): Expect less. | |
8665 | (RETURN_PART, VIRTUAL_PART): New. | |
8666 | (METHOD): Adjust to C++ virtual methods. | |
8667 | (scan_target_h): Remove reference to C99. | |
8668 | (dname): Output "target_ops::" prefix. | |
8669 | (write_function_header): Adjust to output a C++ class method. | |
8670 | (write_declaration): New. | |
8671 | (write_delegator): Adjust to output a C++ class method. | |
8672 | (tdname): Output "dummy_target::" prefix. | |
8673 | (write_tdefault, write_debugmethod): Adjust to output a C++ class | |
8674 | method. | |
8675 | (tdefault_names, debug_names): Delete. | |
8676 | (return_types, tdefaults, styles, argtypes_array): New. | |
8677 | (top level): All methods are delegators. | |
8678 | (print_class): New. | |
8679 | (top level): Print dummy_target and debug_target classes. | |
8680 | * target-delegates.c: Regenerate. | |
8681 | * target-debug.h (target_debug_print_enum_info_proc_what) | |
8682 | (target_debug_print_thread_control_capabilities) | |
8683 | (target_debug_print_thread_info_p): New. | |
8684 | * target.c (dummy_target): Delete. | |
8685 | (the_dummy_target, the_debug_target): New. | |
8686 | (target_stack): Now extern. | |
8687 | (set_targetdebug): Push/unpush debug target. | |
8688 | (default_child_has_all_memory, default_child_has_memory) | |
8689 | (default_child_has_stack, default_child_has_registers) | |
8690 | (default_child_has_execution): Remove target_ops parameter. | |
8691 | (complete_target_initialization): Delete. | |
8692 | (add_target_with_completer): No longer call | |
8693 | complete_target_initialization. | |
8694 | (target_supports_terminal_ours): Use regular delegation. | |
8695 | (update_current_target): Delete. | |
8696 | (push_target): No longer check magic number. Don't call | |
8697 | update_current_target. | |
8698 | (unpush_target): Don't call update_current_target. | |
8699 | (target_is_pushed): No longer check magic number. | |
8700 | (target_require_runnable): Skip for all stratums over | |
8701 | process_stratum. | |
8702 | (target_ops::info_proc): New. | |
8703 | (target_info_proc): Use find_target_at and | |
8704 | find_default_run_target. | |
8705 | (target_supports_disable_randomization): Use regular delegation. | |
8706 | (target_get_osdata): Use find_target_at. | |
8707 | (target_ops::open, target_ops::close, target_ops::can_attach) | |
8708 | (target_ops::attach, target_ops::can_create_inferior) | |
8709 | (target_ops::create_inferior, target_ops::can_run) | |
8710 | (target_can_run): New. | |
8711 | (default_fileio_target): Use regular delegation. | |
8712 | (target_ops::fileio_open, target_ops::fileio_pwrite) | |
8713 | (target_ops::fileio_pread, target_ops::fileio_fstat) | |
8714 | (target_ops::fileio_close, target_ops::fileio_unlink) | |
8715 | (target_ops::fileio_readlink): New. | |
8716 | (target_fileio_open_1, target_fileio_unlink) | |
8717 | (target_fileio_readlink): Always call the target method. Handle | |
8718 | FILEIO_ENOSYS. | |
8719 | (return_zero, return_zero_has_execution): Delete. | |
8720 | (init_dummy_target): Delete. | |
8721 | (dummy_target::dummy_target, dummy_target::shortname) | |
8722 | (dummy_target::longname, dummy_target::doc) | |
8723 | (debug_target::debug_target, debug_target::shortname) | |
8724 | (debug_target::longname, debug_target::doc): New. | |
8725 | (target_supports_delete_record): Use regular delegation. | |
8726 | (setup_target_debug): Delete. | |
8727 | (maintenance_print_target_stack): Skip debug_stratum. | |
8728 | (initialize_targets): Instantiate the_dummy_target and | |
8729 | the_debug_target. | |
8730 | * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to | |
8731 | use target_stack. | |
8732 | (target_auxv_search, fprint_target_auxv): Adjust. | |
8733 | (info_auxv_command): Adjust to use target_stack. | |
8734 | * auxv.h (target_auxv_parse): Remove 'ops' parameter. | |
8735 | * exceptions.c (print_flush): Handle a NULL target_stack. | |
8736 | * regcache.c (target_ops_no_register): Refactor as class with | |
8737 | virtual methods. | |
8738 | ||
8739 | * exec.c (exec_target): New class. | |
8740 | (exec_ops): Now an exec_target. | |
8741 | (exec_open, exec_close_1, exec_get_section_table) | |
8742 | (exec_xfer_partial, exec_files_info, exec_has_memory) | |
8743 | (exec_make_note_section): Refactor as exec_target methods. | |
8744 | (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops): | |
8745 | Delete. | |
8746 | (exec_target::find_memory_regions): New. | |
8747 | (_initialize_exec): Don't call init_exec_ops. | |
8748 | * gdbcore.h (exec_file_clear): Delete. | |
8749 | ||
8750 | * corefile.c (core_target): Delete. | |
8751 | (core_file_command): Adjust. | |
8752 | * corelow.c (core_target): New class. | |
8753 | (the_core_target): New. | |
8754 | (core_close): Remove target_ops parameter. | |
8755 | (core_close_cleanup): Adjust. | |
8756 | (core_target::close): New. | |
8757 | (core_open, core_detach, get_core_registers, core_files_info) | |
8758 | (core_xfer_partial, core_thread_alive, core_read_description) | |
8759 | (core_pid_to_str, core_thread_name, core_has_memory) | |
8760 | (core_has_stack, core_has_registers, core_info_proc): Rework as | |
8761 | core_target methods. | |
8762 | (ignore, core_remove_breakpoint, init_core_ops): Delete. | |
8763 | (_initialize_corelow): Initialize the_core_target. | |
8764 | * gdbcore.h (core_target): Delete. | |
8765 | (the_core_target): New. | |
8766 | ||
8767 | * ctf.c: (ctf_target): New class. | |
8768 | (ctf_ops): Now a ctf_target. | |
8769 | (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers) | |
8770 | (ctf_xfer_partial, ctf_get_trace_state_variable_value) | |
8771 | (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target | |
8772 | methods. | |
8773 | (init_ctf_ops): Delete. | |
8774 | (_initialize_ctf): Don't call it. | |
8775 | * tracefile-tfile.c (tfile_target): New class. | |
8776 | (tfile_ops): Now a tfile_target. | |
8777 | (tfile_open, tfile_close, tfile_files_info) | |
8778 | (tfile_get_tracepoint_status, tfile_trace_find) | |
8779 | (tfile_fetch_registers, tfile_xfer_partial) | |
8780 | (tfile_get_trace_state_variable_value, tfile_traceframe_info): | |
8781 | Refactor as tfile_target methods. | |
8782 | (tfile_xfer_partial_features): Remove target_ops parameter. | |
8783 | (init_tfile_ops): Delete. | |
8784 | (_initialize_tracefile_tfile): Don't call it. | |
8785 | * tracefile.c (tracefile_has_all_memory, tracefile_has_memory) | |
8786 | (tracefile_has_stack, tracefile_has_registers) | |
8787 | (tracefile_thread_alive, tracefile_get_trace_status): Refactor as | |
8788 | tracefile_target methods. | |
8789 | (init_tracefile_ops): Delete. | |
8790 | (tracefile_target::tracefile_target): New. | |
8791 | * tracefile.h: Include "target.h". | |
8792 | (tracefile_target): New class. | |
8793 | (init_tracefile_ops): Delete. | |
8794 | ||
8795 | * spu-multiarch.c (spu_multiarch_target): New class. | |
8796 | (spu_ops): Now a spu_multiarch_target. | |
8797 | (spu_thread_architecture, spu_region_ok_for_hw_watchpoint) | |
8798 | (spu_fetch_registers, spu_store_registers, spu_xfer_partial) | |
8799 | (spu_search_memory, spu_mourn_inferior): Refactor as | |
8800 | spu_multiarch_target methods. | |
8801 | (init_spu_ops): Delete. | |
8802 | (_initialize_spu_multiarch): Remove references to init_spu_ops, | |
8803 | complete_target_initialization. | |
8804 | ||
8805 | * ravenscar-thread.c (ravenscar_thread_target): New class. | |
8806 | (ravenscar_ops): Now a ravenscar_thread_target. | |
8807 | (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list) | |
8808 | (ravenscar_thread_alive, ravenscar_pid_to_str) | |
8809 | (ravenscar_fetch_registers, ravenscar_store_registers) | |
8810 | (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint) | |
8811 | (ravenscar_stopped_by_hw_breakpoint) | |
8812 | (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address) | |
8813 | (ravenscar_mourn_inferior, ravenscar_core_of_thread) | |
8814 | (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target | |
8815 | methods. | |
8816 | (init_ravenscar_thread_ops): Delete. | |
8817 | (_initialize_ravenscar): Remove references to | |
8818 | init_ravenscar_thread_ops and complete_target_initialization. | |
8819 | ||
8820 | * bsd-uthread.c (bsd_uthread_ops_hack): Delete. | |
8821 | (bsd_uthread_target): New class. | |
8822 | (bsd_uthread_ops): Now a bsd_uthread_target. | |
8823 | (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops. | |
8824 | (bsd_uthread_close, bsd_uthread_mourn_inferior) | |
8825 | (bsd_uthread_fetch_registers, bsd_uthread_store_registers) | |
8826 | (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive) | |
8827 | (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info) | |
8828 | (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods. | |
8829 | (bsd_uthread_target): Delete function. | |
8830 | (_initialize_bsd_uthread): Remove reference to | |
8831 | complete_target_initialization. | |
8832 | ||
8833 | * bfd-target.c (target_bfd_data): Delete. Fields folded into ... | |
8834 | (target_bfd): ... this new class. | |
8835 | (target_bfd_xfer_partial, target_bfd_get_section_table) | |
8836 | (target_bfd_close): Refactor as target_bfd methods. | |
8837 | (target_bfd::~target_bfd): New. | |
8838 | (target_bfd_reopen): Adjust. | |
8839 | (target_bfd::close): New. | |
8840 | ||
8841 | * record-btrace.c (record_btrace_target): New class. | |
8842 | (record_btrace_ops): Now a record_btrace_target. | |
8843 | (record_btrace_open, record_btrace_stop_recording) | |
8844 | (record_btrace_disconnect, record_btrace_close) | |
8845 | (record_btrace_async, record_btrace_info) | |
8846 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
8847 | (record_btrace_insn_history_from, record_btrace_call_history) | |
8848 | (record_btrace_call_history_range) | |
8849 | (record_btrace_call_history_from, record_btrace_record_method) | |
8850 | (record_btrace_is_replaying, record_btrace_will_replay) | |
8851 | (record_btrace_xfer_partial, record_btrace_insert_breakpoint) | |
8852 | (record_btrace_remove_breakpoint, record_btrace_fetch_registers) | |
8853 | (record_btrace_store_registers, record_btrace_prepare_to_store) | |
8854 | (record_btrace_to_get_unwinder) | |
8855 | (record_btrace_to_get_tailcall_unwinder, record_btrace_resume) | |
8856 | (record_btrace_commit_resume, record_btrace_wait) | |
8857 | (record_btrace_stop, record_btrace_can_execute_reverse) | |
8858 | (record_btrace_stopped_by_sw_breakpoint) | |
8859 | (record_btrace_supports_stopped_by_sw_breakpoint) | |
8860 | (record_btrace_stopped_by_hw_breakpoint) | |
8861 | (record_btrace_supports_stopped_by_hw_breakpoint) | |
8862 | (record_btrace_update_thread_list, record_btrace_thread_alive) | |
8863 | (record_btrace_goto_begin, record_btrace_goto_end) | |
8864 | (record_btrace_goto, record_btrace_stop_replaying_all) | |
8865 | (record_btrace_execution_direction) | |
8866 | (record_btrace_prepare_to_generate_core) | |
8867 | (record_btrace_done_generating_core): Refactor as | |
8868 | record_btrace_target methods. | |
8869 | (init_record_btrace_ops): Delete. | |
8870 | (_initialize_record_btrace): Remove reference to | |
8871 | init_record_btrace_ops. | |
8872 | * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to | |
8873 | the execution_direction global. | |
8874 | (record_full_base_target, record_full_target) | |
8875 | (record_full_core_target): New classes. | |
8876 | (record_full_ops): Now a record_full_target. | |
8877 | (record_full_core_ops): Now a record_full_core_target. | |
8878 | (record_full_target::detach, record_full_target::disconnect) | |
8879 | (record_full_core_target::disconnect) | |
8880 | (record_full_target::mourn_inferior, record_full_target::kill): | |
8881 | New. | |
8882 | (record_full_open, record_full_close, record_full_async): Refactor | |
8883 | as methods of the record_full_base_target class. | |
8884 | (record_full_resume, record_full_commit_resume): Refactor | |
8885 | as methods of the record_full_target class. | |
8886 | (record_full_wait, record_full_stopped_by_watchpoint) | |
8887 | (record_full_stopped_data_address) | |
8888 | (record_full_stopped_by_sw_breakpoint) | |
8889 | (record_full_supports_stopped_by_sw_breakpoint) | |
8890 | (record_full_stopped_by_hw_breakpoint) | |
8891 | (record_full_supports_stopped_by_hw_breakpoint): Refactor as | |
8892 | methods of the record_full_base_target class. | |
8893 | (record_full_store_registers, record_full_xfer_partial) | |
8894 | (record_full_insert_breakpoint, record_full_remove_breakpoint): | |
8895 | Refactor as methods of the record_full_target class. | |
8896 | (record_full_can_execute_reverse, record_full_get_bookmark) | |
8897 | (record_full_goto_bookmark, record_full_execution_direction) | |
8898 | (record_full_record_method, record_full_info, record_full_delete) | |
8899 | (record_full_is_replaying, record_full_will_replay) | |
8900 | (record_full_goto_begin, record_full_goto_end, record_full_goto) | |
8901 | (record_full_stop_replaying): Refactor as methods of the | |
8902 | record_full_base_target class. | |
8903 | (record_full_core_resume, record_full_core_kill) | |
8904 | (record_full_core_fetch_registers) | |
8905 | (record_full_core_prepare_to_store) | |
8906 | (record_full_core_store_registers, record_full_core_xfer_partial) | |
8907 | (record_full_core_insert_breakpoint) | |
8908 | (record_full_core_remove_breakpoint) | |
8909 | (record_full_core_has_execution): Refactor | |
8910 | as methods of the record_full_core_target class. | |
8911 | (record_full_base_target::supports_delete_record): New. | |
8912 | (init_record_full_ops): Delete. | |
8913 | (init_record_full_core_ops): Delete. | |
8914 | (record_full_save): Refactor as method of the | |
8915 | record_full_base_target class. | |
8916 | (_initialize_record_full): Remove references to | |
8917 | init_record_full_ops and init_record_full_core_ops. | |
8918 | ||
8919 | * remote.c (remote_target, extended_remote_target): New classes. | |
8920 | (remote_ops): Now a remote_target. | |
8921 | (extended_remote_ops): Now an extended_remote_target. | |
8922 | (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint) | |
8923 | (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint) | |
8924 | (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint) | |
8925 | (remote_pass_signals, remote_set_syscall_catchpoint) | |
8926 | (remote_program_signals, ) | |
8927 | (remote_thread_always_alive): Remove target_ops parameter. | |
8928 | (remote_thread_alive, remote_thread_name) | |
8929 | (remote_update_thread_list, remote_threads_extra_info) | |
8930 | (remote_static_tracepoint_marker_at) | |
8931 | (remote_static_tracepoint_markers_by_strid) | |
8932 | (remote_get_ada_task_ptid, remote_close, remote_start_remote) | |
8933 | (remote_open): Refactor as methods of remote_target. | |
8934 | (extended_remote_open, extended_remote_detach) | |
8935 | (extended_remote_attach, extended_remote_post_attach): | |
8936 | (extended_remote_supports_disable_randomization) | |
8937 | (extended_remote_create_inferior): : Refactor as method of | |
8938 | extended_remote_target. | |
8939 | (remote_set_permissions, remote_open_1, remote_detach) | |
8940 | (remote_follow_fork, remote_follow_exec, remote_disconnect) | |
8941 | (remote_resume, remote_commit_resume, remote_stop) | |
8942 | (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior) | |
8943 | (remote_terminal_ours, remote_wait, remote_fetch_registers) | |
8944 | (remote_prepare_to_store, remote_store_registers) | |
8945 | (remote_flash_erase, remote_flash_done, remote_files_info) | |
8946 | (remote_kill, remote_mourn, remote_insert_breakpoint) | |
8947 | (remote_remove_breakpoint, remote_insert_watchpoint) | |
8948 | (remote_watchpoint_addr_within_range) | |
8949 | (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint) | |
8950 | (remote_check_watch_resources, remote_stopped_by_sw_breakpoint) | |
8951 | (remote_supports_stopped_by_sw_breakpoint) | |
8952 | (remote_stopped_by_hw_breakpoint) | |
8953 | (remote_supports_stopped_by_hw_breakpoint) | |
8954 | (remote_stopped_by_watchpoint, remote_stopped_data_address) | |
8955 | (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint) | |
8956 | (remote_verify_memory): Refactor as methods of remote_target. | |
8957 | (remote_write_qxfer, remote_read_qxfer): Remove target_ops | |
8958 | parameter. | |
8959 | (remote_xfer_partial, remote_get_memory_xfer_limit) | |
8960 | (remote_search_memory, remote_rcmd, remote_memory_map) | |
8961 | (remote_pid_to_str, remote_get_thread_local_address) | |
8962 | (remote_get_tib_address, remote_read_description): Refactor as | |
8963 | methods of remote_target. | |
8964 | (remote_target::fileio_open, remote_target::fileio_pwrite) | |
8965 | (remote_target::fileio_pread, remote_target::fileio_close): New. | |
8966 | (remote_hostio_readlink, remote_hostio_fstat) | |
8967 | (remote_filesystem_is_local, remote_can_execute_reverse) | |
8968 | (remote_supports_non_stop, remote_supports_disable_randomization) | |
8969 | (remote_supports_multi_process, remote_supports_cond_breakpoints) | |
8970 | (remote_supports_enable_disable_tracepoint) | |
8971 | (remote_supports_string_tracing) | |
8972 | (remote_can_run_breakpoint_commands, remote_trace_init) | |
8973 | (remote_download_tracepoint, remote_can_download_tracepoint) | |
8974 | (remote_download_trace_state_variable, remote_enable_tracepoint) | |
8975 | (remote_disable_tracepoint, remote_trace_set_readonly_regions) | |
8976 | (remote_trace_start, remote_get_trace_status) | |
8977 | (remote_get_tracepoint_status, remote_trace_stop) | |
8978 | (remote_trace_find, remote_get_trace_state_variable_value) | |
8979 | (remote_save_trace_data, remote_get_raw_trace_data) | |
8980 | (remote_set_disconnected_tracing, remote_core_of_thread) | |
8981 | (remote_set_circular_trace_buffer, remote_traceframe_info) | |
8982 | (remote_get_min_fast_tracepoint_insn_len) | |
8983 | (remote_set_trace_buffer_size, remote_set_trace_notes) | |
8984 | (remote_use_agent, remote_can_use_agent, remote_enable_btrace) | |
8985 | (remote_disable_btrace, remote_teardown_btrace) | |
8986 | (remote_read_btrace, remote_btrace_conf) | |
8987 | (remote_augmented_libraries_svr4_read, remote_load) | |
8988 | (remote_pid_to_exec_file, remote_can_do_single_step) | |
8989 | (remote_execution_direction, remote_thread_handle_to_thread_info): | |
8990 | Refactor as methods of remote_target. | |
8991 | (init_remote_ops, init_extended_remote_ops): Delete. | |
8992 | (remote_can_async_p, remote_is_async_p, remote_async) | |
8993 | (remote_thread_events, remote_upload_tracepoints) | |
8994 | (remote_upload_trace_state_variables): Refactor as methods of | |
8995 | remote_target. | |
8996 | (_initialize_remote): Remove references to init_remote_ops and | |
8997 | init_extended_remote_ops. | |
8998 | ||
8999 | * remote-sim.c (gdbsim_target): New class. | |
9000 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill) | |
9001 | (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close) | |
9002 | (gdbsim_detach, gdbsim_resume, gdbsim_interrupt) | |
9003 | (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial) | |
9004 | (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive) | |
9005 | (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory): | |
9006 | Refactor as methods of gdbsim_target. | |
9007 | (gdbsim_ops): Now a gdbsim_target. | |
9008 | (init_gdbsim_ops): Delete. | |
9009 | (gdbsim_cntrl_c): Adjust. | |
9010 | (_initialize_remote_sim): Remove reference to init_gdbsim_ops. | |
9011 | ||
9012 | * amd64-linux-nat.c (amd64_linux_nat_target): New class. | |
9013 | (the_amd64_linux_nat_target): New. | |
9014 | (amd64_linux_fetch_inferior_registers) | |
9015 | (amd64_linux_store_inferior_registers): Refactor as methods of | |
9016 | amd64_linux_nat_target. | |
9017 | (_initialize_amd64_linux_nat): Adjust. Set linux_target. | |
9018 | * i386-linux-nat.c: Don't include "linux-nat.h". | |
9019 | (i386_linux_nat_target): New class. | |
9020 | (the_i386_linux_nat_target): New. | |
9021 | (i386_linux_fetch_inferior_registers) | |
9022 | (i386_linux_store_inferior_registers, i386_linux_resume): Refactor | |
9023 | as methods of i386_linux_nat_target. | |
9024 | (_initialize_i386_linux_nat): Adjust. Set linux_target. | |
9025 | * inf-child.c (inf_child_ops): Delete. | |
9026 | (inf_child_fetch_inferior_registers) | |
9027 | (inf_child_store_inferior_registers): Delete. | |
9028 | (inf_child_post_attach, inf_child_prepare_to_store): Refactor as | |
9029 | methods of inf_child_target. | |
9030 | (inf_child_target::supports_terminal_ours) | |
9031 | (inf_child_target::terminal_init) | |
9032 | (inf_child_target::terminal_inferior) | |
9033 | (inf_child_target::terminal_ours_for_output) | |
9034 | (inf_child_target::terminal_ours, inf_child_target::interrupt) | |
9035 | (inf_child_target::pass_ctrlc, inf_child_target::terminal_info): | |
9036 | New. | |
9037 | (inf_child_open, inf_child_disconnect, inf_child_close) | |
9038 | (inf_child_mourn_inferior, inf_child_maybe_unpush_target) | |
9039 | (inf_child_post_startup_inferior, inf_child_can_run) | |
9040 | (inf_child_pid_to_exec_file): Refactor as methods of | |
9041 | inf_child_target. | |
9042 | (inf_child_follow_fork): Delete. | |
9043 | (inf_child_target::can_create_inferior) | |
9044 | (inf_child_target::can_attach): New. | |
9045 | (inf_child_target::has_all_memory, inf_child_target::has_memory) | |
9046 | (inf_child_target::has_stack, inf_child_target::has_registers) | |
9047 | (inf_child_target::has_execution): New. | |
9048 | (inf_child_fileio_open, inf_child_fileio_pwrite) | |
9049 | (inf_child_fileio_pread, inf_child_fileio_fstat) | |
9050 | (inf_child_fileio_close, inf_child_fileio_unlink) | |
9051 | (inf_child_fileio_readlink, inf_child_use_agent) | |
9052 | (inf_child_can_use_agent): Refactor as methods of | |
9053 | inf_child_target. | |
9054 | (return_zero, inf_child_target): Delete. | |
9055 | (inf_child_target::inf_child_target): New. | |
9056 | * inf-child.h: Include "target.h". | |
9057 | (inf_child_target): Delete function prototype. | |
9058 | (inf_child_target): New class. | |
9059 | (inf_child_open_target, inf_child_mourn_inferior) | |
9060 | (inf_child_maybe_unpush_target): Delete. | |
9061 | * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New. | |
9062 | (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint) | |
9063 | (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior) | |
9064 | (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior) | |
9065 | (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach) | |
9066 | (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume) | |
9067 | (inf_ptrace_wait, inf_ptrace_xfer_partial) | |
9068 | (inf_ptrace_thread_alive, inf_ptrace_files_info) | |
9069 | (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as | |
9070 | methods of inf_ptrace_target. | |
9071 | (inf_ptrace_target): Delete function. | |
9072 | * inf-ptrace.h: Include "inf-child.h". | |
9073 | (inf_ptrace_target): Delete function declaration. | |
9074 | (inf_ptrace_target): New class. | |
9075 | (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete. | |
9076 | * linux-nat.c (linux_target): New. | |
9077 | (linux_ops, linux_ops_saved, super_xfer_partial): Delete. | |
9078 | (linux_nat_target::~linux_nat_target): New. | |
9079 | (linux_child_post_attach, linux_child_post_startup_inferior) | |
9080 | (linux_child_follow_fork, linux_child_insert_fork_catchpoint) | |
9081 | (linux_child_remove_fork_catchpoint) | |
9082 | (linux_child_insert_vfork_catchpoint) | |
9083 | (linux_child_remove_vfork_catchpoint) | |
9084 | (linux_child_insert_exec_catchpoint) | |
9085 | (linux_child_remove_exec_catchpoint) | |
9086 | (linux_child_set_syscall_catchpoint, linux_nat_pass_signals) | |
9087 | (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach) | |
9088 | (linux_nat_resume, linux_nat_stopped_by_watchpoint) | |
9089 | (linux_nat_stopped_data_address) | |
9090 | (linux_nat_stopped_by_sw_breakpoint) | |
9091 | (linux_nat_supports_stopped_by_sw_breakpoint) | |
9092 | (linux_nat_stopped_by_hw_breakpoint) | |
9093 | (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait) | |
9094 | (linux_nat_kill, linux_nat_mourn_inferior) | |
9095 | (linux_nat_xfer_partial, linux_nat_thread_alive) | |
9096 | (linux_nat_update_thread_list, linux_nat_pid_to_str) | |
9097 | (linux_nat_thread_name, linux_child_pid_to_exec_file) | |
9098 | (linux_child_static_tracepoint_markers_by_strid) | |
9099 | (linux_nat_is_async_p, linux_nat_can_async_p) | |
9100 | (linux_nat_supports_non_stop, linux_nat_always_non_stop_p) | |
9101 | (linux_nat_supports_multi_process) | |
9102 | (linux_nat_supports_disable_randomization, linux_nat_async) | |
9103 | (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space) | |
9104 | (linux_nat_core_of_thread, linux_nat_filesystem_is_local) | |
9105 | (linux_nat_fileio_open, linux_nat_fileio_readlink) | |
9106 | (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as | |
9107 | methods of linux_nat_target. | |
9108 | (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial) | |
9109 | (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops | |
9110 | parameter. | |
9111 | (check_stopped_by_watchpoint): Adjust. | |
9112 | (linux_xfer_partial): Delete. | |
9113 | (linux_target_install_ops, linux_target, linux_nat_add_target): | |
9114 | Delete. | |
9115 | (linux_nat_target::linux_nat_target): New. | |
9116 | * linux-nat.h: Include "inf-ptrace.h". | |
9117 | (linux_nat_target): New. | |
9118 | (linux_target, linux_target_install_ops, linux_nat_add_target): | |
9119 | Delete function declarations. | |
9120 | (linux_target): Declare global. | |
9121 | * linux-thread-db.c (thread_db_target): New. | |
9122 | (thread_db_target::thread_db_target): New. | |
9123 | (thread_db_ops): Delete. | |
9124 | (the_thread_db_target): New. | |
9125 | (thread_db_detach, thread_db_wait, thread_db_mourn_inferior) | |
9126 | (thread_db_update_thread_list, thread_db_pid_to_str) | |
9127 | (thread_db_extra_thread_info) | |
9128 | (thread_db_thread_handle_to_thread_info) | |
9129 | (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid) | |
9130 | (thread_db_resume): Refactor as methods of thread_db_target. | |
9131 | (init_thread_db_ops): Delete. | |
9132 | (_initialize_thread_db): Remove reference to init_thread_db_ops. | |
9133 | * x86-linux-nat.c: Don't include "linux-nat.h". | |
9134 | (super_post_startup_inferior): Delete. | |
9135 | (x86_linux_nat_target::~x86_linux_nat_target): New. | |
9136 | (x86_linux_child_post_startup_inferior) | |
9137 | (x86_linux_read_description, x86_linux_enable_btrace) | |
9138 | (x86_linux_disable_btrace, x86_linux_teardown_btrace) | |
9139 | (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as | |
9140 | methods of x86_linux_nat_target. | |
9141 | (x86_linux_create_target): Delete. Bits folded ... | |
9142 | (x86_linux_add_target): ... here. Now takes a linux_nat_target | |
9143 | pointer. | |
9144 | * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h". | |
9145 | (x86_linux_nat_target): New class. | |
9146 | (x86_linux_create_target): Delete. | |
9147 | (x86_linux_add_target): Now takes a linux_nat_target pointer. | |
9148 | * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint) | |
9149 | (x86_region_ok_for_watchpoint, x86_stopped_data_address) | |
9150 | (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint) | |
9151 | (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint) | |
9152 | (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and | |
9153 | make extern. | |
9154 | (x86_use_watchpoints): Delete. | |
9155 | * x86-nat.h: Include "breakpoint.h" and "target.h". | |
9156 | (x86_use_watchpoints): Delete. | |
9157 | (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint) | |
9158 | (x86_stopped_by_watchpoint, x86_stopped_data_address) | |
9159 | (x86_insert_watchpoint, x86_remove_watchpoint) | |
9160 | (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint) | |
9161 | (x86_stopped_by_hw_breakpoint): New declarations. | |
9162 | (x86_nat_target): New template class. | |
9163 | ||
9164 | * ppc-linux-nat.c (ppc_linux_nat_target): New class. | |
9165 | (the_ppc_linux_nat_target): New. | |
9166 | (ppc_linux_fetch_inferior_registers) | |
9167 | (ppc_linux_can_use_hw_breakpoint) | |
9168 | (ppc_linux_region_ok_for_hw_watchpoint) | |
9169 | (ppc_linux_ranged_break_num_registers) | |
9170 | (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) | |
9171 | (ppc_linux_insert_mask_watchpoint) | |
9172 | (ppc_linux_remove_mask_watchpoint) | |
9173 | (ppc_linux_can_accel_watchpoint_condition) | |
9174 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint) | |
9175 | (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint) | |
9176 | (ppc_linux_watchpoint_addr_within_range) | |
9177 | (ppc_linux_masked_watch_num_registers) | |
9178 | (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse) | |
9179 | (ppc_linux_read_description): Refactor as methods of | |
9180 | ppc_linux_nat_target. | |
9181 | (_initialize_ppc_linux_nat): Adjust. Set linux_target. | |
9182 | ||
9183 | * procfs.c (procfs_xfer_partial): Delete forward declaration. | |
9184 | (procfs_target): New class. | |
9185 | (the_procfs_target): New. | |
9186 | (procfs_target): Delete function. | |
9187 | (procfs_auxv_parse, procfs_attach, procfs_detach) | |
9188 | (procfs_fetch_registers, procfs_store_registers, procfs_wait) | |
9189 | (procfs_xfer_partial, procfs_resume, procfs_pass_signals) | |
9190 | (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior) | |
9191 | (procfs_create_inferior, procfs_update_thread_list) | |
9192 | (procfs_thread_alive, procfs_pid_to_str) | |
9193 | (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint) | |
9194 | (procfs_stopped_data_address, procfs_insert_watchpoint) | |
9195 | (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint) | |
9196 | (proc_find_memory_regions, procfs_info_proc) | |
9197 | (procfs_make_note_section): Refactor as methods of procfs_target. | |
9198 | (_initialize_procfs): Adjust. | |
9199 | * sol-thread.c (sol_thread_target): New class. | |
9200 | (sol_thread_ops): Now a sol_thread_target. | |
9201 | (sol_thread_detach, sol_thread_resume, sol_thread_wait) | |
9202 | (sol_thread_fetch_registers, sol_thread_store_registers) | |
9203 | (sol_thread_xfer_partial, sol_thread_mourn_inferior) | |
9204 | (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list) | |
9205 | (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target. | |
9206 | (init_sol_thread_ops): Delete. | |
9207 | (_initialize_sol_thread): Adjust. Remove references to | |
9208 | init_sol_thread_ops and complete_target_initialization. | |
9209 | ||
9210 | * windows-nat.c (windows_nat_target): New class. | |
9211 | (windows_fetch_inferior_registers) | |
9212 | (windows_store_inferior_registers, windows_resume, windows_wait) | |
9213 | (windows_attach, windows_detach, windows_pid_to_exec_file) | |
9214 | (windows_files_info, windows_create_inferior) | |
9215 | (windows_mourn_inferior, windows_interrupt, windows_kill_inferior) | |
9216 | (windows_close, windows_pid_to_str, windows_xfer_partial) | |
9217 | (windows_get_tib_address, windows_get_ada_task_ptid) | |
9218 | (windows_thread_name, windows_thread_alive): Refactor as | |
9219 | windows_nat_target methods. | |
9220 | (do_initial_windows_stuff): Adjust. | |
9221 | (windows_target): Delete function. | |
9222 | (_initialize_windows_nat): Adjust. | |
9223 | ||
9224 | * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt) | |
9225 | (darwin_mourn_inferior, darwin_kill_inferior) | |
9226 | (darwin_create_inferior, darwin_attach, darwin_detach) | |
9227 | (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial) | |
9228 | (darwin_pid_to_exec_file, darwin_get_ada_task_ptid) | |
9229 | (darwin_supports_multi_process): Refactor as darwin_nat_target | |
9230 | methods. | |
9231 | (darwin_resume_to, darwin_files_info): Delete. | |
9232 | (_initialize_darwin_inferior): Rename to ... | |
9233 | (_initialize_darwin_nat): ... this. Adjust to C++ification. | |
9234 | * darwin-nat.h: Include "inf-child.h". | |
9235 | (darwin_nat_target): New class. | |
9236 | (darwin_complete_target): Delete. | |
9237 | * i386-darwin-nat.c (i386_darwin_nat_target): New class. | |
9238 | (darwin_target): New. | |
9239 | (i386_darwin_fetch_inferior_registers) | |
9240 | (i386_darwin_store_inferior_registers): Refactor as methods of | |
9241 | darwin_nat_target. | |
9242 | (darwin_complete_target): Delete, with ... | |
9243 | (_initialize_i386_darwin_nat): ... bits factored out here. | |
9244 | ||
9245 | * alpha-linux-nat.c (alpha_linux_nat_target): New class. | |
9246 | (the_alpha_linux_nat_target): New. | |
9247 | (alpha_linux_register_u_offset): Refactor as | |
9248 | alpha_linux_nat_target method. | |
9249 | (_initialize_alpha_linux_nat): Adjust. | |
9250 | * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete. | |
9251 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
9252 | (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as | |
9253 | methods of linux_nat_trad_target. | |
9254 | (linux_trad_target): Delete. | |
9255 | * linux-nat-trad.h (linux_trad_target): Delete function. | |
9256 | (linux_nat_trad_target): New class. | |
9257 | * mips-linux-nat.c (mips_linux_nat_target): New class. | |
9258 | (super_fetch_registers, super_store_registers, super_close): | |
9259 | Delete. | |
9260 | (the_mips_linux_nat_target): New. | |
9261 | (mips64_linux_regsets_fetch_registers) | |
9262 | (mips64_linux_regsets_store_registers) | |
9263 | (mips64_linux_fetch_registers, mips64_linux_store_registers) | |
9264 | (mips_linux_register_u_offset, mips_linux_read_description) | |
9265 | (mips_linux_can_use_hw_breakpoint) | |
9266 | (mips_linux_stopped_by_watchpoint) | |
9267 | (mips_linux_stopped_data_address) | |
9268 | (mips_linux_region_ok_for_hw_watchpoint) | |
9269 | (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint) | |
9270 | (mips_linux_close): Refactor as methods of mips_linux_nat. | |
9271 | (_initialize_mips_linux_nat): Adjust to C++ification. | |
9272 | ||
9273 | * aix-thread.c (aix_thread_target): New class. | |
9274 | (aix_thread_ops): Now an aix_thread_target. | |
9275 | (aix_thread_detach, aix_thread_resume, aix_thread_wait) | |
9276 | (aix_thread_fetch_registers, aix_thread_store_registers) | |
9277 | (aix_thread_xfer_partial, aix_thread_mourn_inferior) | |
9278 | (aix_thread_thread_alive, aix_thread_pid_to_str) | |
9279 | (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid): | |
9280 | Refactor as methods of aix_thread_target. | |
9281 | (init_aix_thread_ops): Delete. | |
9282 | (_initialize_aix_thread): Remove references to init_aix_thread_ops | |
9283 | and complete_target_initialization. | |
9284 | * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete. | |
9285 | (rs6000_nat_target): New class. | |
9286 | (the_rs6000_nat_target): New. | |
9287 | (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers) | |
9288 | (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior) | |
9289 | (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods. | |
9290 | (super_create_inferior): Delete. | |
9291 | (_initialize_rs6000_nat): Adjust to C++ification. | |
9292 | ||
9293 | * arm-linux-nat.c (arm_linux_nat_target): New class. | |
9294 | (the_arm_linux_nat_target): New. | |
9295 | (arm_linux_fetch_inferior_registers) | |
9296 | (arm_linux_store_inferior_registers, arm_linux_read_description) | |
9297 | (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint) | |
9298 | (arm_linux_remove_hw_breakpoint) | |
9299 | (arm_linux_region_ok_for_hw_watchpoint) | |
9300 | (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint) | |
9301 | (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint) | |
9302 | (arm_linux_watchpoint_addr_within_range): Refactor as methods of | |
9303 | arm_linux_nat_target. | |
9304 | (_initialize_arm_linux_nat): Adjust to C++ification. | |
9305 | ||
9306 | * aarch64-linux-nat.c (aarch64_linux_nat_target): New class. | |
9307 | (the_aarch64_linux_nat_target): New. | |
9308 | (aarch64_linux_fetch_inferior_registers) | |
9309 | (aarch64_linux_store_inferior_registers) | |
9310 | (aarch64_linux_child_post_startup_inferior) | |
9311 | (aarch64_linux_read_description) | |
9312 | (aarch64_linux_can_use_hw_breakpoint) | |
9313 | (aarch64_linux_insert_hw_breakpoint) | |
9314 | (aarch64_linux_remove_hw_breakpoint) | |
9315 | (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint) | |
9316 | (aarch64_linux_region_ok_for_hw_watchpoint) | |
9317 | (aarch64_linux_stopped_data_address) | |
9318 | (aarch64_linux_stopped_by_watchpoint) | |
9319 | (aarch64_linux_watchpoint_addr_within_range) | |
9320 | (aarch64_linux_can_do_single_step): Refactor as methods of | |
9321 | aarch64_linux_nat_target. | |
9322 | (super_post_startup_inferior): Delete. | |
9323 | (_initialize_aarch64_linux_nat): Adjust to C++ification. | |
9324 | ||
9325 | * hppa-linux-nat.c (hppa_linux_nat_target): New class. | |
9326 | (the_hppa_linux_nat_target): New. | |
9327 | (hppa_linux_fetch_inferior_registers) | |
9328 | (hppa_linux_store_inferior_registers): Refactor as methods of | |
9329 | hppa_linux_nat_target. | |
9330 | (_initialize_hppa_linux_nat): Adjust to C++ification. | |
9331 | ||
9332 | * ia64-linux-nat.c (ia64_linux_nat_target): New class. | |
9333 | (the_ia64_linux_nat_target): New. | |
9334 | (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint) | |
9335 | (ia64_linux_stopped_data_address) | |
9336 | (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers) | |
9337 | (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as | |
9338 | ia64_linux_nat_target methods. | |
9339 | (super_xfer_partial): Delete. | |
9340 | (_initialize_ia64_linux_nat): Adjust to C++ification. | |
9341 | ||
9342 | * m32r-linux-nat.c (m32r_linux_nat_target): New class. | |
9343 | (the_m32r_linux_nat_target): New. | |
9344 | (m32r_linux_fetch_inferior_registers) | |
9345 | (m32r_linux_store_inferior_registers): Refactor as | |
9346 | m32r_linux_nat_target methods. | |
9347 | (_initialize_m32r_linux_nat): Adjust to C++ification. | |
9348 | ||
9349 | * m68k-linux-nat.c (m68k_linux_nat_target): New class. | |
9350 | (the_m68k_linux_nat_target): New. | |
9351 | (m68k_linux_fetch_inferior_registers) | |
9352 | (m68k_linux_store_inferior_registers): Refactor as | |
9353 | m68k_linux_nat_target methods. | |
9354 | (_initialize_m68k_linux_nat): Adjust to C++ification. | |
9355 | ||
9356 | * s390-linux-nat.c (s390_linux_nat_target): New class. | |
9357 | (the_s390_linux_nat_target): New. | |
9358 | (s390_linux_fetch_inferior_registers) | |
9359 | (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint) | |
9360 | (s390_insert_watchpoint, s390_remove_watchpoint) | |
9361 | (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint) | |
9362 | (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint) | |
9363 | (s390_auxv_parse, s390_read_description): Refactor as methods of | |
9364 | s390_linux_nat_target. | |
9365 | (_initialize_s390_nat): Adjust to C++ification. | |
9366 | ||
9367 | * sparc-linux-nat.c (sparc_linux_nat_target): New class. | |
9368 | (the_sparc_linux_nat_target): New. | |
9369 | (_initialize_sparc_linux_nat): Adjust to C++ification. | |
9370 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
9371 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
9372 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
9373 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
9374 | * sparc64-linux-nat.c (sparc64_linux_nat_target): New class. | |
9375 | (the_sparc64_linux_nat_target): New. | |
9376 | (_initialize_sparc64_linux_nat): Adjust to C++ification. | |
9377 | ||
9378 | * spu-linux-nat.c (spu_linux_nat_target): New class. | |
9379 | (the_spu_linux_nat_target): New. | |
9380 | (spu_child_post_startup_inferior, spu_child_post_attach) | |
9381 | (spu_child_wait, spu_fetch_inferior_registers) | |
9382 | (spu_store_inferior_registers, spu_xfer_partial) | |
9383 | (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target | |
9384 | methods. | |
9385 | (_initialize_spu_nat): Adjust to C++ification. | |
9386 | ||
9387 | * tilegx-linux-nat.c (tilegx_linux_nat_target): New class. | |
9388 | (the_tilegx_linux_nat_target): New. | |
9389 | (fetch_inferior_registers, store_inferior_registers): | |
9390 | Refactor as methods. | |
9391 | (_initialize_tile_linux_nat): Adjust to C++ification. | |
9392 | ||
9393 | * xtensa-linux-nat.c (xtensa_linux_nat_target): New class. | |
9394 | (the_xtensa_linux_nat_target): New. | |
9395 | (xtensa_linux_fetch_inferior_registers) | |
9396 | (xtensa_linux_store_inferior_registers): Refactor as | |
9397 | xtensa_linux_nat_target methods. | |
9398 | (_initialize_xtensa_linux_nat): Adjust to C++ification. | |
9399 | ||
9400 | * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete. | |
9401 | (fbsd_pid_to_exec_file, fbsd_find_memory_regions) | |
9402 | (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial) | |
9403 | (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name) | |
9404 | (fbsd_update_thread_list, fbsd_resume, fbsd_wait) | |
9405 | (fbsd_stopped_by_sw_breakpoint) | |
9406 | (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork) | |
9407 | (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint) | |
9408 | (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint) | |
9409 | (fbsd_post_startup_inferior, fbsd_post_attach) | |
9410 | (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint) | |
9411 | (fbsd_set_syscall_catchpoint) | |
9412 | (super_xfer_partial, super_resume, super_wait) | |
9413 | (fbsd_supports_stopped_by_hw_breakpoint): Delete. | |
9414 | (fbsd_handle_debug_trap): Remove target_ops parameter. | |
9415 | (fbsd_nat_add_target): Delete. | |
9416 | * fbsd-nat.h: Include "inf-ptrace.h". | |
9417 | (fbsd_nat_add_target): Delete. | |
9418 | (USE_SIGTRAP_SIGINFO): Define. | |
9419 | (fbsd_nat_target): New class. | |
9420 | ||
9421 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers) | |
9422 | (amd64bsd_store_inferior_registers): Remove target_ops parameter. | |
9423 | (amd64bsd_target): Delete. | |
9424 | * amd64-bsd-nat.h: New file. | |
9425 | * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of | |
9426 | "x86-bsd-nat.h". | |
9427 | (amd64_fbsd_nat_target): New class. | |
9428 | (the_amd64_fbsd_nat_target): New. | |
9429 | (amd64fbsd_read_description): Refactor as method of | |
9430 | amd64_fbsd_nat_target. | |
9431 | (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
9432 | (_initialize_amd64fbsd_nat): Adjust to C++ification. | |
9433 | * amd64-nat.h (amd64bsd_target): Delete function declaration. | |
9434 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers) | |
9435 | (i386bsd_store_inferior_registers): Remove target_ops parameter. | |
9436 | (i386bsd_target): Delete. | |
9437 | * i386-bsd-nat.h (i386bsd_target): Delete function declaration. | |
9438 | (i386bsd_fetch_inferior_registers) | |
9439 | (i386bsd_store_inferior_registers): Declare. | |
9440 | (i386_bsd_nat_target): New class. | |
9441 | * i386-fbsd-nat.c (i386_fbsd_nat_target): New class. | |
9442 | (the_i386_fbsd_nat_target): New. | |
9443 | (i386fbsd_resume, i386fbsd_read_description): Refactor as | |
9444 | i386_fbsd_nat_target methods. | |
9445 | (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
9446 | (_initialize_i386fbsd_nat): Adjust to C++ification. | |
9447 | * x86-bsd-nat.c (super_mourn_inferior): Delete. | |
9448 | (x86bsd_mourn_inferior, x86bsd_target): Delete. | |
9449 | (_initialize_x86_bsd_nat): Adjust to C++ification. | |
9450 | * x86-bsd-nat.h: Include "x86-nat.h". | |
9451 | (x86bsd_target): Delete declaration. | |
9452 | (x86bsd_nat_target): New class. | |
9453 | ||
9454 | * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class. | |
9455 | (the_aarch64_fbsd_nat_target): New. | |
9456 | (aarch64_fbsd_fetch_inferior_registers) | |
9457 | (aarch64_fbsd_store_inferior_registers): Refactor as methods of | |
9458 | aarch64_fbsd_nat_target. | |
9459 | (_initialize_aarch64_fbsd_nat): Adjust to C++ification. | |
9460 | * alpha-bsd-nat.c (alpha_bsd_nat_target): New class. | |
9461 | (the_alpha_bsd_nat_target): New. | |
9462 | (alphabsd_fetch_inferior_registers) | |
9463 | (alphabsd_store_inferior_registers): Refactor as | |
9464 | alpha_bsd_nat_target methods. | |
9465 | (_initialize_alphabsd_nat): Refactor as methods of | |
9466 | alpha_bsd_nat_target. | |
9467 | * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h". | |
9468 | (the_amd64_nbsd_nat_target): New. | |
9469 | (_initialize_amd64nbsd_nat): Adjust to C++ification. | |
9470 | * amd64-obsd-nat.c: Include "amd64-bsd-nat.h". | |
9471 | (the_amd64_obsd_nat_target): New. | |
9472 | (_initialize_amd64obsd_nat): Adjust to C++ification. | |
9473 | * arm-fbsd-nat.c (arm_fbsd_nat_target): New. | |
9474 | (the_arm_fbsd_nat_target): New. | |
9475 | (arm_fbsd_fetch_inferior_registers) | |
9476 | (arm_fbsd_store_inferior_registers, arm_fbsd_read_description): | |
9477 | (_initialize_arm_fbsd_nat): Refactor as methods of | |
9478 | arm_fbsd_nat_target. | |
9479 | (_initialize_arm_fbsd_nat): Adjust to C++ification. | |
9480 | * arm-nbsd-nat.c (arm_netbsd_nat_target): New class. | |
9481 | (the_arm_netbsd_nat_target): New. | |
9482 | (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as | |
9483 | arm_netbsd_nat_target. | |
9484 | (_initialize_arm_netbsd_nat): Adjust to C++ification. | |
9485 | * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class. | |
9486 | (the_hppa_nbsd_nat_target): New. | |
9487 | (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as | |
9488 | hppa_nbsd_nat_target methods. | |
9489 | (_initialize_hppanbsd_nat): Adjust to C++ification. | |
9490 | * hppa-obsd-nat.c (hppa_obsd_nat_target): New class. | |
9491 | (the_hppa_obsd_nat_target): New. | |
9492 | (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as | |
9493 | methods of hppa_obsd_nat_target. | |
9494 | (_initialize_hppaobsd_nat): Adjust to C++ification. Use | |
9495 | add_target. | |
9496 | * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New. | |
9497 | (_initialize_i386nbsd_nat): Adjust to C++ification. Use | |
9498 | add_target. | |
9499 | * i386-obsd-nat.c (the_i386_obsd_nat_target): New. | |
9500 | (_initialize_i386obsd_nat): Use add_target. | |
9501 | * m68k-bsd-nat.c (m68k_bsd_nat_target): New class. | |
9502 | (the_m68k_bsd_nat_target): New. | |
9503 | (m68kbsd_fetch_inferior_registers) | |
9504 | (m68kbsd_store_inferior_registers): Refactor as methods of | |
9505 | m68k_bsd_nat_target. | |
9506 | (_initialize_m68kbsd_nat): Adjust to C++ification. | |
9507 | * mips-fbsd-nat.c (mips_fbsd_nat_target): New class. | |
9508 | (the_mips_fbsd_nat_target): New. | |
9509 | (mips_fbsd_fetch_inferior_registers) | |
9510 | (mips_fbsd_store_inferior_registers): Refactor as methods of | |
9511 | mips_fbsd_nat_target. | |
9512 | (_initialize_mips_fbsd_nat): Adjust to C++ification. Use | |
9513 | add_target. | |
9514 | * mips-nbsd-nat.c (mips_nbsd_nat_target): New class. | |
9515 | (the_mips_nbsd_nat_target): New. | |
9516 | (mipsnbsd_fetch_inferior_registers) | |
9517 | (mipsnbsd_store_inferior_registers): Refactor as methods of | |
9518 | mips_nbsd_nat_target. | |
9519 | (_initialize_mipsnbsd_nat): Adjust to C++ification. | |
9520 | * mips64-obsd-nat.c (mips64_obsd_nat_target): New class. | |
9521 | (the_mips64_obsd_nat_target): New. | |
9522 | (mips64obsd_fetch_inferior_registers) | |
9523 | (mips64obsd_store_inferior_registers): Refactor as methods of | |
9524 | mips64_obsd_nat_target. | |
9525 | (_initialize_mips64obsd_nat): Adjust to C++ification. Use | |
9526 | add_target. | |
9527 | * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of | |
9528 | nbsd_nat_target. | |
9529 | * nbsd-nat.h: Include "inf-ptrace.h". | |
9530 | (nbsd_nat_target): New class. | |
9531 | * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list) | |
9532 | (obsd_wait): Refactor as methods of obsd_nat_target. | |
9533 | (obsd_add_target): Delete. | |
9534 | * obsd-nat.h: Include "inf-ptrace.h". | |
9535 | (obsd_nat_target): New class. | |
9536 | * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class. | |
9537 | (the_ppc_fbsd_nat_target): New. | |
9538 | (ppcfbsd_fetch_inferior_registers) | |
9539 | (ppcfbsd_store_inferior_registers): Refactor as methods of | |
9540 | ppc_fbsd_nat_target. | |
9541 | (_initialize_ppcfbsd_nat): Adjust to C++ification. Use | |
9542 | add_target. | |
9543 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class. | |
9544 | (the_ppc_nbsd_nat_target): New. | |
9545 | (ppcnbsd_fetch_inferior_registers) | |
9546 | (ppcnbsd_store_inferior_registers): Refactor as methods of | |
9547 | ppc_nbsd_nat_target. | |
9548 | (_initialize_ppcnbsd_nat): Adjust to C++ification. | |
9549 | * ppc-obsd-nat.c (ppc_obsd_nat_target): New class. | |
9550 | (the_ppc_obsd_nat_target): New. | |
9551 | (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as | |
9552 | methods of ppc_obsd_nat_target. | |
9553 | (_initialize_ppcobsd_nat): Adjust to C++ification. Use | |
9554 | add_target. | |
9555 | * sh-nbsd-nat.c (sh_nbsd_nat_target): New class. | |
9556 | (the_sh_nbsd_nat_target): New. | |
9557 | (shnbsd_fetch_inferior_registers) | |
9558 | (shnbsd_store_inferior_registers): Refactor as methods of | |
9559 | sh_nbsd_nat_target. | |
9560 | (_initialize_shnbsd_nat): Adjust to C++ification. | |
9561 | * sparc-nat.c (sparc_xfer_wcookie): Make extern. | |
9562 | (inf_ptrace_xfer_partial): Delete. | |
9563 | (sparc_xfer_partial, sparc_target): Delete. | |
9564 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
9565 | (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare. | |
9566 | (sparc_target): Delete function declaration. | |
9567 | (sparc_target): New template class. | |
9568 | * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New. | |
9569 | (_initialize_sparcnbsd_nat): Adjust to C++ification. | |
9570 | * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New. | |
9571 | (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use | |
9572 | add_target. | |
9573 | * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New. | |
9574 | (_initialize_sparc64nbsd_nat): Adjust to C++ification. | |
9575 | * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New. | |
9576 | (_initialize_sparc64obsd_nat): Adjust to C++ification. Use | |
9577 | add_target. | |
9578 | * vax-bsd-nat.c (vax_bsd_nat_target): New class. | |
9579 | (the_vax_bsd_nat_target): New. | |
9580 | (vaxbsd_fetch_inferior_registers) | |
9581 | (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target | |
9582 | methods. | |
9583 | (_initialize_vaxbsd_nat): Adjust to C++ification. | |
9584 | ||
9585 | * bsd-kvm.c (bsd_kvm_target): New class. | |
9586 | (bsd_kvm_ops): Now a bsd_kvm_target. | |
9587 | (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial) | |
9588 | (bsd_kvm_files_info, bsd_kvm_fetch_registers) | |
9589 | (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of | |
9590 | bsd_kvm_target. | |
9591 | (bsd_kvm_return_one): Delete. | |
9592 | (bsd_kvm_add_target): Adjust to C++ification. | |
9593 | ||
9594 | * nto-procfs.c (nto_procfs_target, nto_procfs_target_native) | |
9595 | (nto_procfs_target_procfs): New classes. | |
9596 | (procfs_open_1, procfs_thread_alive, procfs_update_thread_list) | |
9597 | (procfs_files_info, procfs_pid_to_exec_file, procfs_attach) | |
9598 | (procfs_post_attach, procfs_wait, procfs_fetch_registers) | |
9599 | (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint) | |
9600 | (procfs_remove_breakpoint, procfs_insert_hw_breakpoint) | |
9601 | (procfs_remove_hw_breakpoint, procfs_resume) | |
9602 | (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt) | |
9603 | (procfs_kill_inferior, procfs_store_registers) | |
9604 | (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor | |
9605 | as methods of nto_procfs_target. | |
9606 | (nto_procfs_ops): Now an nto_procfs_target_procfs. | |
9607 | (nto_native_ops): Delete. | |
9608 | (procfs_open, procfs_native_open): Delete. | |
9609 | (nto_native_ops): Now an nto_procfs_target_native. | |
9610 | (init_procfs_targets): Adjust to C++ification. | |
9611 | (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint) | |
9612 | (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint): | |
9613 | Refactor as methods of nto_procfs_target. | |
9614 | ||
9615 | * go32-nat.c (go32_nat_target): New class. | |
9616 | (the_go32_nat_target): New. | |
9617 | (go32_attach, go32_resume, go32_wait, go32_fetch_registers) | |
9618 | (go32_store_registers, go32_xfer_partial, go32_files_info) | |
9619 | (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior) | |
9620 | (go32_terminal_init, go32_terminal_info, go32_terminal_inferior) | |
9621 | (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive) | |
9622 | (go32_pid_to_str): Refactor as methods of go32_nat_target. | |
9623 | (go32_target): Delete. | |
9624 | (_initialize_go32_nat): Adjust to C++ification. | |
9625 | ||
9626 | * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior) | |
9627 | (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach) | |
9628 | (gnu_stop, gnu_thread_alive, gnu_xfer_partial) | |
9629 | (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of | |
9630 | gnu_nat_target. | |
9631 | (gnu_target): Delete. | |
9632 | * gnu-nat.h (gnu_target): Delete. | |
9633 | (gnu_nat_target): New class. | |
9634 | * i386-gnu-nat.c (gnu_base_target): New. | |
9635 | (i386_gnu_nat_target): New class. | |
9636 | (the_i386_gnu_nat_target): New. | |
9637 | (_initialize_i386gnu_nat): Adjust to C++ification. | |
9638 | ||
3fffc070 PA |
9639 | 2018-05-02 Pedro Alves <palves@redhat.com> |
9640 | ||
9641 | * bfd-target.c (target_bfd_xclose): Rename to ... | |
9642 | (target_bfd_close): ... this. | |
9643 | (target_bfd_reopen): Adjust. | |
9644 | * target.c (target_close): Remove references to to_xclose. | |
9645 | * target.h (target_ops::to_xclose): Delete. | |
9646 | (target_ops::to_close): Update comments. | |
9647 | ||
6798487f PA |
9648 | 2018-05-02 Pedro Alves <palves@redhat.com> |
9649 | ||
9650 | * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of | |
9651 | "linux-nat.h". | |
9652 | * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o. | |
9653 | * inf-ptrace.c (inf_ptrace_register_u_offset) | |
9654 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
9655 | (inf_ptrace_store_register, inf_ptrace_store_registers) | |
9656 | (inf_ptrace_trad_target): Move to ... | |
9657 | * linux-nat-trad.c: ... this new file. | |
9658 | * linux-nat-trad.h: New file. | |
9659 | * linux-nat.c (linux_target_install_ops): Make extern. | |
9660 | (linux_trad_target): Delete. | |
9661 | * linux-nat.h (linux_trad_target): Delete declaration. | |
9662 | (linux_target_install_ops): Declare. | |
9663 | * mips-linux-nat.c: Include "linux-nat-trad.h" instead of | |
9664 | "linux-nat.h". | |
9665 | ||
c1955e17 PA |
9666 | 2018-05-02 Pedro Alves <palves@redhat.com> |
9667 | ||
9668 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
9669 | procfs_target/add_target here. | |
9670 | * procfs.c (procfs_target): Make static. | |
9671 | (_initialize_procfs): Call add_target here. | |
9672 | * procfs.h (struct target_ops): Remove forward declaration. | |
9673 | (procfs_target): Remove declaration. | |
9674 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete. | |
9675 | ||
b5c8fcb1 PA |
9676 | 2018-05-02 Pedro Alves <palves@redhat.com> |
9677 | ||
9678 | * procfs.c (procfs_stopped_by_watchpoint) | |
9679 | (procfs_insert_watchpoint, procfs_remove_watchpoint) | |
9680 | (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address): | |
9681 | Forward declare. | |
9682 | (procfs_use_watchpoints): Delete, move contents... | |
9683 | (procfs_target): ... here. | |
9684 | * procfs.h (procfs_use_watchpoints): Delete declaration. | |
9685 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
9686 | procfs_use_watchpoints. | |
9687 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call | |
9688 | procfs_use_watchpoints. | |
9689 | ||
0489430a TT |
9690 | 2018-05-02 Tom Tromey <tom@tromey.com> |
9691 | ||
9692 | PR python/20084: | |
9693 | * python/python.c (gdbpy_parameter_value): Handle var_zuinteger | |
9694 | and var_zuinteger_unlimited. | |
9695 | * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER | |
9696 | and PARAM_ZUINTEGER_UNLIMITED. | |
9697 | (set_parameter_value): Handle var_zuinteger and | |
9698 | var_zuinteger_unlimited. | |
9699 | (add_setshow_generic): Likewise. | |
9700 | (parmpy_init): Likewise. | |
9701 | ||
1632f8ba DR |
9702 | 2018-04-28 Dan Robertson <danlrobertson89@gmail.com> |
9703 | ||
9704 | PR rust/23124 | |
9705 | * gdb/rust-exp.y (convert_params_to_types): Ensure that the params | |
9706 | pointer is not null before dereferencing it. | |
9707 | ||
76761936 TT |
9708 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9709 | ||
9710 | * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of | |
9711 | is_mi_like_p. | |
9712 | ||
2d33446d TT |
9713 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9714 | ||
9715 | * breakpoint.c (mention): Remove use of is_mi_like_p. | |
9716 | (print_mention_ranged_breakpoint): Likewise. | |
9717 | * break-catch-throw.c (print_it_exception_catchpoint): Remove use | |
9718 | of is_mi_like_p. | |
9719 | ||
f3c6abab TT |
9720 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9721 | ||
9722 | * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p. | |
9723 | ||
40c03530 TT |
9724 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9725 | ||
9726 | * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist) | |
9727 | (info_spu_event_command): Remove some uses of is_mi_like_p. | |
9728 | ||
2038b7fd TT |
9729 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9730 | ||
9731 | * python/py-framefilter.c (py_print_single_arg) | |
9732 | (enumerate_locals, py_print_args, py_print_frame): Remove some | |
9733 | uses of is_mi_like_p. | |
9734 | ||
4904c3c6 TT |
9735 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9736 | ||
9737 | * ui-out.c: Update. | |
9738 | * cli-out.h (cli_ui_out::do_is_mi_like_p): Update. | |
9739 | * ui-out.h (ui_out::is_mi_like_p): Now const. | |
9740 | (ui_out::do_is_mi_like_p): Now const. | |
9741 | * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update. | |
9742 | ||
7c66fffc TT |
9743 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9744 | ||
9745 | * varobj.c (varobj_set_visualizer): Use new_reference. | |
9746 | * python/python.c (gdbpy_decode_line): Use new_reference. | |
9747 | * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use | |
9748 | new_reference. | |
9749 | ||
bbfa6f00 TT |
9750 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9751 | ||
9752 | * varobj.c (install_new_value): Use new_reference. | |
9753 | * value.h (value_incref): Return void. Swap intro comment with | |
9754 | value_decref. | |
9755 | * value.c (set_value_parent): Use new_reference. | |
9756 | (value_incref): Return void. Update intro comment. | |
9757 | (release_value): Use new_reference. | |
9758 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference. | |
9759 | ||
1831a9f9 TT |
9760 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9761 | ||
9762 | * symfile-mem.c (symbol_file_add_from_memory): Use new_reference. | |
9763 | * gdb_bfd.h (new_bfd_ref): Remove. | |
9764 | (gdb_bfd_open): Update comment. | |
9765 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
9766 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion) | |
9767 | (gdb_bfd_fdopenr): Use new_reference. | |
9768 | * exec.c (exec_file_attach): Use new_reference. | |
9769 | ||
7c1b5f3d TT |
9770 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9771 | ||
9772 | * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static | |
9773 | method. | |
9774 | ||
e11fb955 TT |
9775 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9776 | ||
9777 | * jit.c (jit_read_code_entry): Use type_align. | |
9778 | * i386-tdep.c (i386_gdbarch_init): Don't call | |
9779 | set_gdbarch_long_long_align_bit. | |
9780 | * gdbarch.sh: Remove long_long_align_bit. | |
9781 | * gdbarch.c, gdbarch.h: Rebuild. | |
9782 | * arc-tdep.c (arc_type_align): New function. | |
9783 | (arc_gdbarch_init): Use arc_type_align. Don't call | |
9784 | set_gdbarch_long_long_align_bit. | |
9785 | ||
2fff16dd TT |
9786 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9787 | ||
9788 | * rust-lang.c (rust_type_alignment): Remove. | |
9789 | (rust_composite_type): Use type_align. | |
9790 | ||
6d7bb824 TT |
9791 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9792 | ||
9793 | * NEWS: Mention Type.align. | |
9794 | * python/py-type.c (typy_get_alignof): New function. | |
9795 | (type_object_getset): Add "alignof". | |
9796 | ||
007e1530 TT |
9797 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9798 | ||
9799 | PR exp/17095: | |
9800 | * NEWS: Update. | |
9801 | * std-operator.def (UNOP_ALIGNOF): New operator. | |
9802 | * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>: | |
9803 | New. | |
9804 | * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New. | |
9805 | * c-lang.c (c_op_print_tab): Add alignof. | |
9806 | * c-exp.y (ALIGNOF): New token. | |
9807 | (exp): Add "ALIGNOF" production. | |
9808 | (ident_tokens): Add _Alignof and alignof. | |
9809 | ||
2b4424c3 TT |
9810 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9811 | ||
9812 | * i386-tdep.c (i386_type_align): New function. | |
9813 | (i386_gdbarch_init): Update. | |
9814 | * gdbarch.sh (type_align): New method. | |
9815 | * gdbarch.c, gdbarch.h: Rebuild. | |
9816 | * arch-utils.h (default_type_align): Declare. | |
9817 | * arch-utils.c (default_type_align): New function. | |
9818 | * gdbtypes.h (TYPE_ALIGN_BITS): New define. | |
9819 | (struct type) <align_log2>: New field. | |
9820 | <instance_flags>: Now a bitfield. | |
9821 | (TYPE_RAW_ALIGN): New macro. | |
9822 | (type_align, type_raw_align, set_type_align): Declare. | |
9823 | * gdbtypes.c (type_align, type_raw_align, set_type_align): New | |
9824 | functions. | |
9825 | * dwarf2read.c (quirk_rust_enum): Set type alignment. | |
9826 | (get_alignment, maybe_set_alignment): New functions. | |
9827 | (read_structure_type, read_enumeration_type, read_array_type) | |
9828 | (read_set_type, read_tag_pointer_type, read_tag_reference_type) | |
9829 | (read_subrange_type, read_base_type): Set type alignment. | |
9830 | ||
d33bc52e SM |
9831 | 2018-04-30 Simon Marchi <simon.marchi@ericsson.com> |
9832 | ||
9833 | * dwarf2read.c (read_index_from_section): Use bool. | |
9834 | ||
e28b63a9 FG |
9835 | 2018-04-29 Fabian Groffen <grobian@gentoo.org> |
9836 | ||
9837 | PR gdb/22950 | |
9838 | * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys | |
9839 | with #ifdef. | |
9840 | ||
cd8c76e4 JR |
9841 | 2018-04-29 John Reiser <jreiser@BitWagon.com> |
9842 | ||
9843 | PR build/22873 | |
9844 | * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the | |
9845 | last step, and do it atomically. | |
9846 | ||
476d250e AO |
9847 | 2018-04-27 Alexandre Oliva <aoliva@redhat.com> |
9848 | ||
9849 | * compile/compile-c-types.c (convert_int, convert_float): | |
9850 | Update for C FE v1. | |
9851 | ||
6873858b TT |
9852 | 2018-04-27 Tom Tromey <tom@tromey.com> |
9853 | ||
9854 | PR rust/22545: | |
9855 | * rust-lang.c (rust_inclusive_range_type_p): New function. | |
9856 | (rust_range): Handle inclusive ranges. | |
9857 | (rust_compute_range): Likewise. | |
9858 | * rust-exp.y (struct rust_op) <inclusive>: New field. | |
9859 | (DOTDOTEQ): New constant. | |
9860 | (range_expr): Add "..=" productions. | |
9861 | (operator_tokens): Add "..=" token. | |
9862 | (ast_range): Add "inclusive" parameter. | |
9863 | (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive | |
9864 | ranges. | |
9865 | * parse.c (operator_length_standard) <case OP_RANGE>: Handle new | |
9866 | bounds values. | |
9867 | * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE, | |
9868 | LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants. | |
9869 | Update comments. | |
9870 | * expprint.c (print_subexp_standard): Handle new bounds values. | |
9871 | (dump_subexp_body_standard): Likewise. | |
9872 | ||
632e107b TT |
9873 | 2018-04-27 Tom Tromey <tom@tromey.com> |
9874 | ||
9875 | * configure: Rebuild. | |
9876 | * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override. | |
9877 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not | |
9878 | "OVERRIDE". | |
9879 | (class symbol_needs_eval_context): Likewise. | |
9880 | * dwarf2read.c (mock_mapped_index::symbol_name_count) | |
9881 | (mock_mapped_index::symbol_name_at): Use "override". Remove | |
9882 | "virtual". | |
9883 | * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use | |
9884 | "override". | |
9885 | (class dwarf_expr_executor): Use "override", not "OVERRIDE". | |
9886 | * aarch64-tdep.c (instruction_reader::read): Use "override". | |
9887 | (instruction_reader_test::read): Likewise. | |
9888 | * arm-tdep.c (instruction_reader::read): Use "override". | |
9889 | (instruction_reader_thumb::read): Likewise. | |
9890 | ||
b75abf5b AK |
9891 | 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> |
9892 | ||
9893 | PR remote/9665 | |
9894 | * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result | |
9895 | instead of remote_send. | |
9896 | (remote_send): Remove. | |
9897 | ||
79188d8d PA |
9898 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9899 | ||
9900 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use | |
9901 | find_function_start_sal instead of find_pc_line. | |
9902 | ||
f50776aa PA |
9903 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9904 | ||
9905 | * breakpoint.c (set_breakpoint_location_function): Handle | |
9906 | mst_data_gnu_ifunc. | |
9907 | * c-exp.y (variable production): Handle mst_data_gnu_ifunc. | |
9908 | * elfread.c (elf_symtab_read): Give data symbols with | |
9909 | BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. | |
9910 | (elf_rel_plt_read): Update comment. | |
9911 | * linespec.c (convert_linespec_to_sals): Handle | |
9912 | mst_data_gnu_ifunc. | |
9913 | (minsym_found): Handle mst_data_gnu_ifunc. | |
9914 | * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) | |
9915 | (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. | |
9916 | * parse.c (find_minsym_type_and_address): Handle | |
9917 | mst_data_gnu_ifunc. | |
9918 | * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. | |
9919 | * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. | |
9920 | * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update | |
9921 | comment. | |
9922 | <mst_data_gnu_ifunc>: New enumerator. | |
9923 | ||
20944a6e PA |
9924 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9925 | ||
9926 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ... | |
9927 | (lookup_minimal_symbol_by_pc_section): ... this. Replace | |
9928 | 'want_trampoline' parameter by a lookup_msym_prefer parameter. | |
9929 | Handle it. | |
9930 | (lookup_minimal_symbol_by_pc_section): Delete old implementation. | |
9931 | (lookup_minimal_symbol_by_pc): Adjust. | |
9932 | (in_gnu_ifunc_stub): Prefer GNU ifunc symbols. | |
9933 | (lookup_solib_trampoline_symbol_by_pc): Adjust. | |
9934 | * minsyms.h (lookup_msym_prefer): New enum. | |
9935 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
9936 | parameter by a lookup_msym_prefer parameter. | |
9937 | ||
1adeb822 PA |
9938 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9939 | ||
9940 | * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name | |
9941 | ends in "@plt" instead of looking at the symbol's section. | |
9942 | ||
a0aca7b0 PA |
9943 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9944 | ||
9945 | * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove | |
9946 | all references. | |
9947 | (find_pc_partial_function_gnu_ifunc): Rename to ... | |
9948 | (find_pc_partial_function): ... this, and remove references to | |
9949 | 'is_gnu_ifunc_p'. | |
9950 | (find_pc_partial_function): Delete old implementation. | |
9951 | * symtab.h (find_pc_partial_function_gnu_ifunc): Delete. | |
9952 | ||
76af0f26 PA |
9953 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9954 | ||
9955 | * linespec.c (struct bound_minimal_symbol_search_key): New. | |
9956 | (convert_linespec_to_sals): Sort minimal symbols earlier. Don't | |
9957 | skip first line if we found a GNU ifunc minimal symbol by name. | |
9958 | (compare_msymbols): Change parameters to work with a destructured | |
9959 | lhs minsym. | |
9960 | (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New | |
9961 | functions. | |
9962 | ||
3467ec66 PA |
9963 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9964 | ||
9965 | * breakpoint.c (set_breakpoint_location_function): Don't resolve | |
9966 | ifunc targets here. Instead, if we have an ifunc minsym, use its | |
9967 | address/name. | |
9968 | (add_location_to_breakpoint): Store the minsym and the objfile in | |
9969 | the breakpoint location. | |
9970 | * breakpoint.h (bp_location) <msymbol, objfile>: New fields. | |
9971 | * linespec.c (minsym_found): Resolve GNU ifunc targets here. | |
9972 | Record the minsym in the sal. | |
9973 | * symtab.h (symtab_and_line) <msymbol>: New field. | |
9974 | ||
28f4fa4d PA |
9975 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9976 | ||
9977 | * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P | |
9978 | unless we actually resolved the ifunc. | |
9979 | ||
ca31ab1d PA |
9980 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9981 | ||
9982 | * c-exp.y (variable production): Prefer ifunc minsyms over | |
9983 | regular function symbols. | |
9984 | * symtab.c (find_gnu_ifunc): New function. | |
9985 | * minsyms.h (lookup_msym_prefer): New enum. | |
9986 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
9987 | parameter by a lookup_msym_prefer parameter. | |
9988 | * symtab.h (find_gnu_ifunc): New declaration. | |
9989 | ||
8388016d PA |
9990 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9991 | ||
9992 | * blockframe.c (find_gnu_ifunc_target_type): New function. | |
9993 | (find_function_type): New. | |
9994 | * eval.c (evaluate_var_msym_value): For GNU ifunc types, always | |
9995 | return a value with a memory address. | |
9996 | (eval_call): For calls to GNU ifunc functions, try to find the | |
9997 | type of the target function from the type that the resolver | |
9998 | returns. | |
9999 | * gdbtypes.c (objfile_type): Don't install a return type for ifunc | |
10000 | symbols. | |
10001 | * infcall.c (find_function_return_type): Delete. | |
10002 | (find_function_addr): Add 'function_type' parameter. For calls to | |
10003 | GNU ifunc functions, try to find the type of the target function | |
10004 | from the type that the resolver returns, and return it via | |
10005 | FUNCTION_TYPE. | |
10006 | (call_function_by_hand_dummy): Adjust to use the function type | |
10007 | returned by find_function_addr. | |
10008 | (find_function_addr): Add 'function_type' parameter and move | |
10009 | description here. | |
10010 | * symtab.h (find_function_type, find_gnu_ifunc_target_type): New | |
10011 | declarations. | |
10012 | ||
a376e11d PA |
10013 | 2018-04-26 Pedro Alves <palves@redhat.com> |
10014 | ||
10015 | * c-exp.y (variable production): Skip finding an alias for ifunc | |
10016 | symbols. | |
10017 | ||
02e169e2 PA |
10018 | 2018-04-26 Pedro Alves <palves@redhat.com> |
10019 | ||
10020 | * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too. | |
10021 | ||
249b5733 PA |
10022 | 2018-04-25 Pedro Alves <palves@redhat.com> |
10023 | ||
10024 | * infcmd.c (kill_command): Print the pid as string, not the whole | |
10025 | thread's ptid. Add comment. s/has been killed/killed/ in output | |
10026 | message. | |
10027 | * remote.c (remote_detach_1): Print the pid as string, not the | |
10028 | whole thread's ptid. | |
10029 | ||
f67c0c91 SDJ |
10030 | 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
10031 | Sergio Durigan Junior <sergiodj@redhat.com> | |
10032 | Pedro Alves <palves@redhat.com> | |
10033 | ||
10034 | * infcmd.c (kill_command): Print message when inferior has | |
10035 | been killed. | |
10036 | * inferior.c (print_inferior_events): Remove 'static'. Set as | |
10037 | '1'. | |
10038 | (add_inferior): Improve message printed when | |
10039 | 'print_inferior_events' is on. | |
10040 | (exit_inferior): Remove message printed when | |
10041 | 'print_inferior_events' is on. | |
10042 | (detach_inferior): Improve message printed when | |
10043 | 'print_inferior_events' is on. | |
10044 | (initialize_inferiors): Use 'add_inferior_silent' to set | |
10045 | 'current_inferior_'. | |
10046 | * inferior.h (print_inferior_events): Declare here as | |
10047 | 'extern'. | |
10048 | * infrun.c (follow_fork_inferior): Print '[Attaching...]' or | |
10049 | '[Detaching...]' messages when 'print_inferior_events' is on. | |
10050 | Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']' | |
10051 | as prefix/suffix for messages. Remove periods. Fix erroneous | |
10052 | 'Detaching after fork from child...', replace it by '... from | |
10053 | parent...'. | |
10054 | (handle_vfork_child_exec_or_exit): Add '[' and ']' as | |
10055 | prefix/suffix when printing 'Detaching...' messages. Print | |
10056 | them when 'print_inferior_events' is on. | |
10057 | * remote.c (remote_detach_1): Print message when detaching | |
10058 | from inferior and '!is_fork_parent'. | |
10059 | ||
e427af18 TT |
10060 | 2018-04-24 Tom Tromey <tom@tromey.com> |
10061 | ||
10062 | * cli-out.h: Reindent. | |
10063 | ||
05b1d8d6 TT |
10064 | 2018-04-24 Tom Tromey <tom@tromey.com> |
10065 | ||
10066 | * cli-out.c (cli_ui_out::out_field_fmt): Remove. | |
10067 | (cli_ui_out::do_field_string): Use fputs_filtered. | |
10068 | * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove. | |
10069 | ||
a95c7dab TT |
10070 | 2018-04-23 Tom Tromey <tom@tromey.com> |
10071 | ||
10072 | * guile/scm-frame.c (gdbscm_frame_read_var): Use | |
10073 | gdb::unique_xmalloc_ptr. | |
10074 | ||
458412c3 TT |
10075 | 2018-04-23 Tom Tromey <tom@tromey.com> |
10076 | ||
10077 | * configure: Rebuild. | |
10078 | ||
db86b02b RS |
10079 | 2018-04-22 Rajendra SY <rajendra.sy@gmail.com> |
10080 | ||
10081 | PR gdb/23095 | |
10082 | * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to | |
10083 | prepare_for_testing. Set normal_bp to r_debug_state if target | |
10084 | is bsd. | |
10085 | ||
00aecdcf PA |
10086 | 2018-04-21 Pedro Alves <palves@redhat.com> |
10087 | Rajendra SY <rajendra.sy@gmail.com> | |
10088 | ||
10089 | * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing. | |
10090 | * remote.c (extended_remote_attach): In all-stop mode, mark the | |
10091 | thread as executing. | |
10092 | ||
224608c3 PW |
10093 | 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
10094 | ||
10095 | * thread.c (thread_apply_all_command): Fix comment. | |
10096 | (thread_command): Fix comment. | |
10097 | ||
3b74854b AH |
10098 | 2018-04-10 Alan Hayward <alan.hayward@arm.com> |
10099 | ||
10100 | * common/tdesc.h (tdesc_create_feature): Remove xml filename | |
10101 | parameter. | |
10102 | * features/aarch64-core.c (create_feature_aarch64_core): | |
10103 | Regenerate. | |
10104 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): | |
10105 | Likewise. | |
10106 | * features/i386/32bit-avx.c (create_feature_i386_32bit_avx): | |
10107 | Likewise. | |
10108 | * features/i386/32bit-avx512.c | |
10109 | (create_feature_i386_32bit_avx512): Likewise. | |
10110 | * features/i386/32bit-core.c (create_feature_i386_32bit_core): | |
10111 | Likewise. | |
10112 | * features/i386/32bit-linux.c (create_feature_i386_32bit_linux): | |
10113 | Likewise. | |
10114 | * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx): | |
10115 | Likewise. | |
10116 | * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys): | |
10117 | Likewise. | |
10118 | * features/i386/32bit-sse.c (create_feature_i386_32bit_sse): | |
10119 | Likewise. | |
10120 | * features/i386/64bit-avx.c (create_feature_i386_64bit_avx): | |
10121 | Likewise. | |
10122 | * features/i386/64bit-avx512.c | |
10123 | (create_feature_i386_64bit_avx512): Likewise. | |
10124 | * features/i386/64bit-core.c (create_feature_i386_64bit_core): | |
10125 | Likewise. | |
10126 | * features/i386/64bit-linux.c (create_feature_i386_64bit_linux): | |
10127 | Likewise. | |
10128 | * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx): | |
10129 | Likewise. | |
10130 | * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys): | |
10131 | Likewise. | |
10132 | * features/i386/64bit-segments.c | |
10133 | (create_feature_i386_64bit_segments): Likewise. | |
10134 | * features/i386/64bit-sse.c (create_feature_i386_64bit_sse): | |
10135 | Likewise. | |
10136 | * features/i386/x32-core.c | |
10137 | (create_feature_i386_x32_core): Likewise. | |
10138 | * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise. | |
10139 | * features/tic6x-core.c (create_feature_tic6x_core): Likewise. | |
10140 | * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise. | |
10141 | * target-descriptions.c: In generated code, don't pass xml | |
10142 | filename. | |
10143 | ||
e98577a9 AH |
10144 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
10145 | ||
10146 | * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing. | |
10147 | (print_xml_feature::visit_post): Likewise. | |
10148 | (print_xml_feature::visit): Likewise. | |
10149 | * common/tdesc.h (tdesc_get_features_xml): Use const tdesc. | |
10150 | (print_xml_feature): Add new class. | |
10151 | * regformats/regdat.sh: Null xmltarget on feature targets. | |
10152 | * target-descriptions.c (struct target_desc): Add xmltarget. | |
10153 | (maintenance_check_tdesc_xml_convert): Add unittest function. | |
10154 | (tdesc_get_features_xml): Add function to get xml. | |
10155 | (maintenance_check_xml_descriptions): Test xml generation. | |
10156 | * xml-tdesc.c (string_read_description_xml): Add function. | |
10157 | * xml-tdesc.h (string_read_description_xml): Add declaration. | |
10158 | ||
ad7fc756 AH |
10159 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
10160 | ||
10161 | * features/Makefile: Add feature marker to targets with new style | |
10162 | target descriptions. | |
10163 | * regformats/aarch64.dat: Regenerate. | |
10164 | * regformats/i386/amd64-avx-avx512-linux.dat: Likewise. | |
10165 | * regformats/i386/amd64-avx-linux.dat: Likewise. | |
10166 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise. | |
10167 | * regformats/i386/amd64-avx-mpx-linux.dat: Likewise. | |
10168 | * regformats/i386/amd64-linux.dat: Likewise. | |
10169 | * regformats/i386/amd64-mpx-linux.dat: Likewise. | |
10170 | * regformats/i386/amd64.dat: Likewise. | |
10171 | * regformats/i386/i386-avx-avx512-linux.dat: Likewise. | |
10172 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
10173 | * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise. | |
10174 | * regformats/i386/i386-avx-mpx-linux.dat: Likewise. | |
10175 | * regformats/i386/i386-linux.dat: Likewise. | |
10176 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
10177 | * regformats/i386/i386-mpx-linux.dat: Likewise. | |
10178 | * regformats/i386/i386.dat: Likewise. | |
10179 | * regformats/i386/x32-avx-avx512-linux.dat: Likewise. | |
10180 | * regformats/i386/x32-avx-linux.dat: Likewise. | |
10181 | * regformats/i386/x32-linux.dat: Likewise. | |
10182 | * regformats/tic6x-c62x-linux.dat: Likewise. | |
10183 | * regformats/tic6x-c64x-linux.dat: Likewise. | |
10184 | * regformats/tic6x-c64xp-linux.dat: Likewise. | |
10185 | * regformats/regdat.sh: Parse feature marker. | |
10186 | ||
d278f585 AH |
10187 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
10188 | ||
10189 | * common/tdesc.h (tdesc_architecture_name): Add new declaration. | |
10190 | (tdesc_osabi_name): Likewise. | |
10191 | * target-descriptions.c (tdesc_architecture_name): Add new | |
10192 | function. | |
10193 | (tdesc_osabi_name): Likewise. | |
10194 | ||
eee8a18d AH |
10195 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
10196 | ||
10197 | * common/tdesc.c (tdesc_predefined_type): Move to here. | |
10198 | (tdesc_named_type): Likewise. | |
10199 | (tdesc_create_vector): Likewise. | |
10200 | (tdesc_create_struct): Likewise. | |
10201 | (tdesc_set_struct_size): Likewise. | |
10202 | (tdesc_create_union): Likewise. | |
10203 | (tdesc_create_flags): Likewise. | |
10204 | (tdesc_create_enum): Likewise. | |
10205 | (tdesc_add_field): Likewise. | |
10206 | (tdesc_add_typed_bitfield): Likewise. | |
10207 | (tdesc_add_bitfield): Likewise. | |
10208 | (tdesc_add_flag): Likewise. | |
10209 | (tdesc_add_enum_value): Likewise. | |
10210 | * common/tdesc.h (struct tdesc_type_builtin): Likewise. | |
10211 | (struct tdesc_type_vector): Likewise. | |
10212 | (struct tdesc_type_field): Likewise. | |
10213 | (struct tdesc_type_with_fields): Likewise. | |
10214 | (tdesc_create_enum): Add declaration. | |
10215 | (tdesc_add_typed_bitfield): Likewise. | |
10216 | (tdesc_add_enum_value): Likewise. | |
10217 | * target-descriptions.c (tdesc_type_field): Move from here. | |
10218 | (tdesc_type_builtin): Likewise. | |
10219 | (tdesc_type_vector): Likewise. | |
10220 | (tdesc_type_with_fields): Likewise. | |
10221 | (tdesc_predefined_types): Likewise. | |
10222 | (tdesc_named_type): Likewise. | |
10223 | (tdesc_create_vector): Likewise. | |
10224 | (tdesc_create_struct): Likewise. | |
10225 | (tdesc_set_struct_size): Likewise. | |
10226 | (tdesc_create_union): Likewise. | |
10227 | (tdesc_create_flags): Likewise. | |
10228 | (tdesc_create_enum): Likewise. | |
10229 | (tdesc_add_field): Likewise. | |
10230 | (tdesc_add_typed_bitfield): Likewise. | |
10231 | (tdesc_add_bitfield): Likewise. | |
10232 | (tdesc_add_flag): Likewise. | |
10233 | (tdesc_add_enum_value): Likewise. | |
10234 | * gdb/target-descriptions.h (tdesc_create_enum): Likewise. | |
10235 | (tdesc_add_typed_bitfield): Likewise. | |
10236 | (tdesc_add_enum_value): Likewise. | |
10237 | ||
82ec9bc7 AH |
10238 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
10239 | ||
10240 | * common/tdesc.c (tdesc_feature::accept): Move to here. | |
10241 | (tdesc_feature::operator==): Likewise. | |
10242 | (tdesc_create_reg): Likewise. | |
10243 | * common/tdesc.h (tdesc_type_kind): Likewise. | |
10244 | (struct tdesc_type): Likewise. | |
10245 | (struct tdesc_feature): Likewise. | |
10246 | * regformats/regdat.sh: Create a feature. | |
10247 | * target-descriptions.c (tdesc_type_kind): Move from here. | |
10248 | (tdesc_type): Likewise. | |
10249 | (tdesc_type_up): Likewise. | |
10250 | (tdesc_feature): Likewise. | |
10251 | (tdesc_create_reg): Likewise. | |
10252 | ||
ea3e7d71 AH |
10253 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
10254 | ||
10255 | * Makefile.in: Add arch/tdesc.c | |
10256 | * common/tdesc.c: New file. | |
10257 | * common/tdesc.h (tdesc_element_visitor): Move to here. | |
10258 | (tdesc_element): Likewise. | |
10259 | (tdesc_reg): Likewise. | |
10260 | (tdesc_reg_up): Likewise. | |
10261 | * regformats/regdef.h (reg): Add offset to constructors. | |
10262 | * target-descriptions.c (tdesc_element_visitor): Move from here. | |
10263 | (tdesc_element): Likewise. | |
10264 | (tdesc_reg): Likewise. | |
10265 | (tdesc_reg_up): Likewise. | |
10266 | ||
bedda9ac TT |
10267 | 2018-04-17 Tom Tromey <tom@tromey.com> |
10268 | ||
10269 | * dwarf2read.c (quirk_rust_enum): Conditionally drop the | |
10270 | discriminant field. | |
10271 | ||
a037790e TT |
10272 | 2018-04-17 Tom Tromey <tom@tromey.com> |
10273 | ||
10274 | * dwarf2read.c (quirk_rust_enum): Handle unions correctly. | |
10275 | ||
c7dcbf88 AA |
10276 | 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10277 | ||
10278 | * symtab.c (print_symbol_info): Skip printing filename and line | |
10279 | number when `last' is NULL. | |
10280 | (symtab_symbol_info): Use empty string instead of NULL for first | |
10281 | invocation of print_symbol_info. | |
10282 | (rbreak_command): Pass NULL to `last' parameter of | |
10283 | print_symbol_info. | |
10284 | ||
07d28c77 SM |
10285 | 2018-04-16 Simon Marchi <simon.marchi@ericsson.com> |
10286 | ||
10287 | * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data | |
10288 | instead of nullptr. | |
10289 | ||
8a3de5e1 PA |
10290 | 2018-04-16 Pedro Alves <palves@redhat.com> |
10291 | ||
10292 | * MAINTAINERS (sh): Remove. | |
10293 | * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. | |
10294 | (HFILES_NO_SRCDIR): Remove sh64-tdep.h. | |
10295 | (ALLDEPFILES): Remove sh64-tdep.c. | |
10296 | * NEWS: Mentions that support for SH-5/SH64 is removed. | |
10297 | * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. | |
10298 | (sh*-*-openbsd*): Ditto. | |
10299 | (sh64-*-elf*): Remove. | |
10300 | (sh*): Remove. | |
10301 | * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. | |
10302 | * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. | |
10303 | * sh-tdep.c: No longer include "sh64-tdep.h". | |
10304 | (sh_gdbarch_init): Remove reference to bfd_mach_sh5. | |
10305 | * sh64-tdep.c, sh64-tdep.h: Remove files. | |
10306 | ||
a2a79012 PA |
10307 | 2018-04-16 Pedro Alves <palves@redhat.com> |
10308 | ||
10309 | * MAINTAINERS: Remove m88k. | |
10310 | * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o. | |
10311 | (HFILES_NO_SRCDIR): Remove m88k-tdep.h. | |
10312 | (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c. | |
10313 | * NEWS: Mention that support for m88k was removed. | |
10314 | * configure.host (m88*-*-*): Remove support. | |
10315 | * configure.nat (m88k-*-*): Remove support. | |
10316 | * configure.tgt (m88*-*-openbsd*): Remove. | |
10317 | * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete. | |
10318 | ||
eda4efb1 SM |
10319 | 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca> |
10320 | ||
10321 | * configure.tgt (x86_tobjs): New variable. | |
10322 | (amd64_tobjs, i386_tobjs): Use it. | |
10323 | ||
b744723f AA |
10324 | 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10325 | ||
10326 | * symtab.c (print_symbol_info): Precede the symbol definition by | |
10327 | the line number when available. | |
10328 | * NEWS: Advertise this enhancement. | |
10329 | ||
4a4495d6 MM |
10330 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
10331 | ||
10332 | * NEWS (New options): announce set/show record btrace cpu. | |
10333 | * btrace.c: Include record-btrace.h. | |
10334 | (btrace_compute_ftrace_pt): Skip enabling errata workarounds if | |
10335 | the vendor is unknown. | |
10336 | (btrace_compute_ftrace_1): Add cpu parameter. Update callers. | |
10337 | Maybe overwrite the btrace configuration's cpu. | |
10338 | (btrace_compute_ftrace): Add cpu parameter. Update callers. | |
10339 | (btrace_fetch): Add cpu parameter. Update callers. | |
10340 | (btrace_maint_update_pt_packets): Call record_btrace_get_cpu. | |
10341 | Maybe overwrite the btrace configuration's cpu. Skip enabling | |
10342 | errata workarounds if the vendor is unknown. | |
10343 | * python/py-record-btrace.c: Include record-btrace.h. | |
10344 | (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history) | |
10345 | (recpy_bt_function_call_history): Call record_btrace_get_cpu. | |
10346 | * record-btrace.c (record_btrace_cpu_state_kind): New. | |
10347 | (record_btrace_cpu): New. | |
10348 | (set_record_btrace_cpu_cmdlist): New. | |
10349 | (record_btrace_get_cpu): New. | |
10350 | (require_btrace_thread, record_btrace_info) | |
10351 | (record_btrace_resume_thread): Call record_btrace_get_cpu. | |
10352 | (cmd_set_record_btrace_cpu_none): New. | |
10353 | (cmd_set_record_btrace_cpu_auto): New. | |
10354 | (cmd_set_record_btrace_cpu): New. | |
10355 | (cmd_show_record_btrace_cpu): New. | |
10356 | (_initialize_record_btrace): Initialize set/show record btrace cpu | |
10357 | commands. | |
10358 | * record-btrace.h (record_btrace_get_cpu): New. | |
10359 | ||
69f90c75 MM |
10360 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
10361 | ||
10362 | * record.c (set_record_command): Fix typo in message. | |
10363 | ||
b85310e1 MM |
10364 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
10365 | ||
10366 | * record-btrace.c (cmd_set_record_btrace): Print sub-commands. | |
10367 | ||
1d509aa6 MM |
10368 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
10369 | ||
10370 | * infrun.c (process_event_stop_test): Call | |
10371 | gdbarch_in_indirect_branch_thunk. | |
10372 | * gdbarch.sh (in_indirect_branch_thunk): New. | |
10373 | * gdbarch.c: Regenerated. | |
10374 | * gdbarch.h: Regenerated. | |
10375 | * x86-tdep.h: New. | |
10376 | * x86-tdep.c: New. | |
10377 | * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o. | |
10378 | (HFILES_NO_SRCDIR): Add x86-tdep.h. | |
10379 | (ALLDEPFILES): Add x86-tdep.c. | |
10380 | * arch-utils.h (default_in_indirect_branch_thunk): New. | |
10381 | * arch-utils.c (default_in_indirect_branch_thunk): New. | |
10382 | * i386-tdep: Include x86-tdep.h. | |
10383 | (i386_in_indirect_branch_thunk): New. | |
10384 | (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch | |
10385 | function. | |
10386 | * amd64-tdep: Include x86-tdep.h. | |
10387 | (amd64_in_indirect_branch_thunk): New. | |
10388 | (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function. | |
10389 | ||
b4be9bfd JK |
10390 | 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
10391 | ||
10392 | PR gdb/23053 | |
10393 | * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type) | |
10394 | (recursively_write_psymbols) (debug_names::recursively_write_psymbols) | |
10395 | (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG | |
10396 | regression. | |
10397 | ||
53d7df28 TT |
10398 | 2018-04-12 Tom Tromey <tom@tromey.com> |
10399 | ||
10400 | * rust-lang.c (rust_print_struct_def): Remove univariant code. | |
10401 | (rust_evaluate_subexp): Likewise. | |
10402 | ||
70b33f19 PA |
10403 | 2018-04-12 Pedro Alves <palves@redhat.com> |
10404 | ||
10405 | * procfs.c (procfs_detach): Make forward declaration's prototype | |
10406 | match definition's protototype. | |
10407 | (proc_get_LDT_entry): Remove stale do_cleanups call. | |
10408 | ||
436411b1 PA |
10409 | 2018-04-12 Pedro Alves <palves@redhat.com> |
10410 | ||
10411 | * target.h (target_ops::to_has_exited): Delete. | |
10412 | (target_has_exited): Delete. | |
10413 | * target-delegates.c: Regenerate. | |
10414 | ||
20db9c52 PA |
10415 | 2018-04-11 Pedro Alves <palves@redhat.com> |
10416 | ||
10417 | * target.c (fileio_fh_t::t): Add comment. | |
10418 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
10419 | (target_fileio_close): Handle a NULL target. | |
10420 | (invalidate_fileio_fh): New. | |
10421 | (target_close): Call it. | |
10422 | * remote.c (remote_hostio_send_command): No longer check whether | |
10423 | remote_desc is open. | |
10424 | ||
5ff79300 PA |
10425 | 2018-04-11 Pedro Alves <palves@redhat.com> |
10426 | ||
10427 | * target.c (fileio_fh_t): Make it a named struct instead of a | |
10428 | typedef. | |
10429 | (fileio_fh_t::is_closed): New method. | |
10430 | (DEF_VEC_O (fileio_fh_t)): Remove. | |
10431 | (fileio_fhandles): Now a std::vector. | |
10432 | (is_closed_fileio_fh): Delete. | |
10433 | (acquire_fileio_fd): Adjust. Rename parameters. | |
10434 | (release_fileio_fd): Adjust. | |
10435 | (fileio_fd_to_fh): Reimplement as a function instead of a macro. | |
10436 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
10437 | (target_fileio_close): Adjust. | |
10438 | ||
6e22e10d SM |
10439 | 2018-04-10 Simon Marchi <simon.marchi@ericsson.com> |
10440 | ||
10441 | * auto-load.c (auto_load_safe_path_vec_update): Iterate by | |
10442 | index. | |
10443 | ||
731f534f PA |
10444 | 2018-04-10 Pedro Alves <palves@redhat.com> |
10445 | ||
10446 | * gdbthread.h (finish_thread_state_cleanup): Delete declaration. | |
10447 | (scoped_finish_thread_state): New class. | |
10448 | * infcmd.c (run_command_1): Use it instead of finish_thread_state | |
10449 | cleanup. | |
10450 | * infrun.c (proceed, prepare_for_detach, wait_for_inferior) | |
10451 | (fetch_inferior_event, normal_stop): Likewise. | |
10452 | * thread.c (finish_thread_state_cleanup): Delete. | |
10453 | ||
d5f4488f SM |
10454 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10455 | Pedro Alves <palves@redhat.com> | |
10456 | ||
10457 | * value.c: Include "selftest.h" and "common/array-view.h". | |
10458 | (struct range) <operator ==>: New. | |
10459 | (test_ranges_contain): New. | |
10460 | (check_ranges_vector): New. | |
10461 | (test_insert_into_bit_range_vector): New. | |
10462 | (_initialize_values): Register selftests. | |
10463 | * common/array-view.h (operator==, operator!=): New. | |
10464 | ||
b24531ed SM |
10465 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10466 | ||
10467 | * common/gdb_vecs.h (unordered_remove): Add overload that takes | |
10468 | an iterator. | |
10469 | * inline-frame.c: Include <algorithm>. | |
10470 | (struct inline_state): Add constructor. | |
10471 | (inline_state_s): Remove. | |
10472 | (DEF_VEC_O(inline_state_s)): Remove. | |
10473 | (inline_states): Change type to std::vector. | |
10474 | (find_inline_frame_state): Adjust to std::vector. | |
10475 | (allocate_inline_frame_state): Remove. | |
10476 | (clear_inline_frame_state): Adjust to std::vector. | |
10477 | (skip_inline_frames): Adjust to std::vector. | |
10478 | ||
c252925c SM |
10479 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10480 | ||
10481 | * tracepoint.h (struct trace_state_variable): Add constructor. | |
10482 | <name>: Change type to std::string. | |
10483 | * tracepoint.c (tsv_s): Remove. | |
10484 | (DEF_VEC_O(tsv_s)): Remove. | |
10485 | (tvariables): Change to std::vector. | |
10486 | (create_trace_state_variable): Adjust to std::vector. | |
10487 | (find_trace_state_variable): Likewise. | |
10488 | (find_trace_state_variable_by_number): Likewise. | |
10489 | (delete_trace_state_variable): Likewise. | |
10490 | (trace_variable_command): Adjust to std::string. | |
10491 | (delete_trace_variable_command): Likewise. | |
10492 | (tvariables_info_1): Adjust to std::vector. | |
10493 | (save_trace_state_variables): Likewise. | |
10494 | (start_tracing): Likewise. | |
10495 | (merge_uploaded_trace_state_variables): Adjust to std::vector | |
10496 | and std::string. | |
10497 | * target.h (struct target_ops) | |
10498 | <to_download_trace_state_variable>: Pass reference to | |
10499 | trace_state_variable. | |
10500 | * target-debug.h (target_debug_print_const_trace_state_variable_r): New. | |
10501 | * target-delegates.c: Re-generate. | |
10502 | * mi/mi-interp.c (mi_tsv_created): Adjust to std::string. | |
10503 | (mi_tsv_deleted): Likewise. | |
10504 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. | |
10505 | * remote.c (remote_download_trace_state_variable): Change | |
10506 | pointer to reference and adjust. | |
10507 | * make-target-delegates (parse_argtypes): Handle references. | |
10508 | (write_function_header): Likewise. | |
10509 | (munge_type): Likewise. | |
10510 | ||
c9638d26 SM |
10511 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10512 | ||
10513 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
10514 | string_view-selftests.c. | |
10515 | * unittests/basic_string_view/capacity/1.cc: Adapt to GDB | |
10516 | testsuite. | |
10517 | * unittests/basic_string_view/cons/char/1.cc: Likewise. | |
10518 | * unittests/basic_string_view/cons/char/2.cc: Likewise. | |
10519 | * unittests/basic_string_view/cons/char/3.cc: Likewise. | |
10520 | * unittests/basic_string_view/element_access/char/1.cc: | |
10521 | Likewise. | |
10522 | * unittests/basic_string_view/element_access/char/empty.cc: | |
10523 | Likewise. | |
10524 | * unittests/basic_string_view/element_access/char/front_back.cc: | |
10525 | Likewise. | |
10526 | * unittests/basic_string_view/inserters/char/2.cc: Likewise. | |
10527 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: | |
10528 | Likewise. | |
10529 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: | |
10530 | Likewise. | |
10531 | * unittests/basic_string_view/modifiers/swap/char/1.cc: | |
10532 | Likewise. | |
10533 | * unittests/basic_string_view/operations/compare/char/1.cc: | |
10534 | Likewise. | |
10535 | * unittests/basic_string_view/operations/compare/char/13650.cc: | |
10536 | Likewise. | |
10537 | * unittests/basic_string_view/operations/copy/char/1.cc: | |
10538 | Likewise. | |
10539 | * unittests/basic_string_view/operations/data/char/1.cc: | |
10540 | Likewise. | |
10541 | * unittests/basic_string_view/operations/find/char/1.cc: | |
10542 | Likewise. | |
10543 | * unittests/basic_string_view/operations/find/char/2.cc: | |
10544 | Likewise. | |
10545 | * unittests/basic_string_view/operations/find/char/3.cc: | |
10546 | Likewise. | |
10547 | * unittests/basic_string_view/operations/find/char/4.cc: | |
10548 | Likewise. | |
10549 | * unittests/basic_string_view/operations/rfind/char/1.cc: | |
10550 | Likewise. | |
10551 | * unittests/basic_string_view/operations/rfind/char/2.cc: | |
10552 | Likewise. | |
10553 | * unittests/basic_string_view/operations/rfind/char/3.cc: | |
10554 | Likewise. | |
10555 | * unittests/basic_string_view/operations/substr/char/1.cc: | |
10556 | Likewise. | |
10557 | * unittests/basic_string_view/operators/char/2.cc: Likewise. | |
10558 | * unittests/string_view-selftests.c: New file. | |
10559 | ||
fdc11678 SM |
10560 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10561 | ||
10562 | * unittests/basic_string_view/capacity/1.cc: New file. | |
10563 | * unittests/basic_string_view/capacity/empty_neg.cc: New file. | |
10564 | * unittests/basic_string_view/cons/char/1.cc: New file. | |
10565 | * unittests/basic_string_view/cons/char/2.cc: New file. | |
10566 | * unittests/basic_string_view/cons/char/3.cc: New file. | |
10567 | * unittests/basic_string_view/cons/wchar_t/1.cc: New file. | |
10568 | * unittests/basic_string_view/cons/wchar_t/2.cc: New file. | |
10569 | * unittests/basic_string_view/cons/wchar_t/3.cc: New file. | |
10570 | * unittests/basic_string_view/element_access/char/1.cc: New file. | |
10571 | * unittests/basic_string_view/element_access/char/2.cc: New file. | |
10572 | * unittests/basic_string_view/element_access/char/empty.cc: New file. | |
10573 | * unittests/basic_string_view/element_access/char/front_back.cc: New file. | |
10574 | * unittests/basic_string_view/element_access/wchar_t/1.cc: New file. | |
10575 | * unittests/basic_string_view/element_access/wchar_t/2.cc: New file. | |
10576 | * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file. | |
10577 | * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file. | |
10578 | * unittests/basic_string_view/include.cc: New file. | |
10579 | * unittests/basic_string_view/inserters/char/1.cc: New file. | |
10580 | * unittests/basic_string_view/inserters/char/2.cc: New file. | |
10581 | * unittests/basic_string_view/inserters/char/3.cc: New file. | |
10582 | * unittests/basic_string_view/inserters/pod/10081-out.cc: New file. | |
10583 | * unittests/basic_string_view/inserters/wchar_t/1.cc: New file. | |
10584 | * unittests/basic_string_view/inserters/wchar_t/2.cc: New file. | |
10585 | * unittests/basic_string_view/inserters/wchar_t/3.cc: New file. | |
10586 | * unittests/basic_string_view/literals/types.cc: New file. | |
10587 | * unittests/basic_string_view/literals/values.cc: New file. | |
10588 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file. | |
10589 | * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file. | |
10590 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file. | |
10591 | * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file. | |
10592 | * unittests/basic_string_view/modifiers/swap/char/1.cc: New file. | |
10593 | * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file. | |
10594 | * unittests/basic_string_view/operations/compare/char/1.cc: New file. | |
10595 | * unittests/basic_string_view/operations/compare/char/13650.cc: New file. | |
10596 | * unittests/basic_string_view/operations/compare/char/2.cc: New file. | |
10597 | * unittests/basic_string_view/operations/compare/char/70483.cc: New file. | |
10598 | * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file. | |
10599 | * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file. | |
10600 | * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file. | |
10601 | * unittests/basic_string_view/operations/copy/char/1.cc: New file. | |
10602 | * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file. | |
10603 | * unittests/basic_string_view/operations/data/char/1.cc: New file. | |
10604 | * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file. | |
10605 | * unittests/basic_string_view/operations/find/char/1.cc: New file. | |
10606 | * unittests/basic_string_view/operations/find/char/2.cc: New file. | |
10607 | * unittests/basic_string_view/operations/find/char/3.cc: New file. | |
10608 | * unittests/basic_string_view/operations/find/char/4.cc: New file. | |
10609 | * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file. | |
10610 | * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file. | |
10611 | * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file. | |
10612 | * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file. | |
10613 | * unittests/basic_string_view/operations/rfind/char/1.cc: New file. | |
10614 | * unittests/basic_string_view/operations/rfind/char/2.cc: New file. | |
10615 | * unittests/basic_string_view/operations/rfind/char/3.cc: New file. | |
10616 | * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file. | |
10617 | * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file. | |
10618 | * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file. | |
10619 | * unittests/basic_string_view/operations/string_conversion/1.cc: New file. | |
10620 | * unittests/basic_string_view/operations/substr/char/1.cc: New file. | |
10621 | * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file. | |
10622 | * unittests/basic_string_view/operators/char/2.cc: New file. | |
10623 | * unittests/basic_string_view/operators/wchar_t/2.cc: New file. | |
10624 | * unittests/basic_string_view/range_access/char/1.cc: New file. | |
10625 | * unittests/basic_string_view/range_access/wchar_t/1.cc: New file. | |
10626 | * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file. | |
10627 | * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file. | |
10628 | * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file. | |
10629 | * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file. | |
10630 | * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file. | |
10631 | * unittests/basic_string_view/requirements/typedefs.cc: New file. | |
10632 | * unittests/basic_string_view/typedefs.cc: New file. | |
10633 | * unittests/basic_string_view/types/1.cc: New file. | |
10634 | ||
8345c4a2 SM |
10635 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10636 | ||
10637 | * common/gdb_string_view.h: Remove libstdc++ implementation | |
10638 | details, adjust to gdb reality. | |
10639 | * common/gdb_string_view.tcc: Likewise. | |
10640 | * cli/cli-script.c (struct string_view): Remove. | |
10641 | (user_args) <m_args>: Change element type to gdb::string_view. | |
10642 | (user_args::insert_args): Adjust. | |
10643 | ||
7adcdf08 SM |
10644 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10645 | ||
10646 | * common/gdb_string_view.h: New file. | |
10647 | * common/gdb_string_view.tcc: New file. | |
10648 | ||
41260ac2 SM |
10649 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10650 | ||
10651 | * ax_cxx_compile_stdcxx.m4: Sync with upstream. | |
10652 | * configure: Re-generate. | |
10653 | ||
0bee6dd4 PA |
10654 | 2018-04-09 Pedro Alves <palves@redhat.com> |
10655 | ||
10656 | * gdbarch.sh: Include "observable.h" instead of "observer.h". | |
10657 | (set_target_gdbarch): Call | |
10658 | gdb::observers::architecture_changed.notify instead of | |
10659 | observer_notify_architecture_changed. | |
10660 | ||
6f14adc5 SM |
10661 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10662 | ||
10663 | * tracepoint.c (struct current_traceframe_cleanup): Remove. | |
10664 | (do_restore_current_traceframe_cleanup): Remove. | |
10665 | (restore_current_traceframe_cleanup_dtor): Remove. | |
10666 | (make_cleanup_restore_current_traceframe): Remove. | |
10667 | (scoped_restore_current_traceframe::scoped_restore_current_traceframe): | |
10668 | New. | |
10669 | * tracepoint.h (struct scoped_restore_current_traceframe): New. | |
10670 | * infrun.c (fetch_inferior_event): Use | |
10671 | scoped_restore_current_traceframe. | |
10672 | ||
b2bdb8cf SM |
10673 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10674 | ||
10675 | * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>: | |
10676 | Remove. | |
10677 | <n_allocated_type_units>: Remove. | |
10678 | <all_type_units>: Change to std::vector. | |
10679 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
10680 | to std::vector change. | |
10681 | (dwarf2_per_objfile::get_cutu): Likewise. | |
10682 | (dwarf2_per_objfile::get_tu): Likewise. | |
10683 | (create_signatured_type_table_from_index): Likewise. | |
10684 | (create_signatured_type_table_from_debug_names): Likewise. | |
10685 | (dw2_symtab_iter_next): Likewise. | |
10686 | (dw2_print_stats): Likewise. | |
10687 | (dw2_expand_all_symtabs): Likewise. | |
10688 | (dw2_expand_marked_cus): Likewise. | |
10689 | (dw2_debug_names_iterator::next): Likewise. | |
10690 | (dwarf2_initialize_objfile): Likewise. | |
10691 | (add_signatured_type_cu_to_table): Likewise. | |
10692 | (create_all_type_units): Likewise. | |
10693 | (add_type_unit): Likewise. | |
10694 | (struct tu_abbrev_offset): Add constructor. | |
10695 | (build_type_psymtabs_1): Adjust to std::vector change. | |
10696 | (print_tu_stats): Likewise. | |
10697 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
10698 | (write_debug_names): Likewise. | |
10699 | ||
b76e467d SM |
10700 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10701 | ||
10702 | * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise. | |
10703 | Make an std::vector. | |
10704 | <n_comp_units>: Remove. | |
10705 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
10706 | to std::vector change. | |
10707 | (dwarf2_per_objfile::get_cutu): Likewise. | |
10708 | (dwarf2_per_objfile::get_cu): Likewise. | |
10709 | (create_cus_from_index): Likewise. | |
10710 | (create_addrmap_from_index): Likewise. | |
10711 | (create_addrmap_from_aranges): Likewise. | |
10712 | (dwarf2_read_index): Likewise. | |
10713 | (dw2_find_last_source_symtab): Likewise. | |
10714 | (dw2_map_symtabs_matching_filename): Likewise. | |
10715 | (dw2_symtab_iter_next): Likewise. | |
10716 | (dw2_print_stats): Likewise. | |
10717 | (dw2_expand_all_symtabs): Likewise. | |
10718 | (dw2_expand_symtabs_with_fullname): Likewise. | |
10719 | (dw2_expand_marked_cus): Likewise. | |
10720 | (dw2_map_symbol_filenames): Likewise. | |
10721 | (create_cus_from_debug_names): Likewise. | |
10722 | (dwarf2_read_debug_names): Likewise. | |
10723 | (dw2_debug_names_iterator::next): Likewise. | |
10724 | (dwarf2_initialize_objfile): Likewise. | |
10725 | (set_partial_user): Likewise. | |
10726 | (dwarf2_build_psymtabs_hard): Likewise. | |
10727 | (read_comp_units_from_section): Remove arguments, adjust to | |
10728 | std::vector change. | |
10729 | (create_all_comp_units): Adjust to std::vector and | |
10730 | read_comp_units_from_section changes. | |
10731 | (dwarf2_find_containing_comp_unit): Adjust to std::vector | |
10732 | change. | |
10733 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
10734 | (psyms_seen_size): Likewise. | |
10735 | (write_gdbindex): Likewise. | |
10736 | (write_debug_names): Likewise. | |
10737 | ||
12359b5e SM |
10738 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10739 | ||
10740 | * dwarf2read.c (create_cus_from_index_list): Replace objfile arg | |
10741 | with dwarf2_per_objfile. | |
10742 | (create_cus_from_index): Likewise. | |
10743 | (create_signatured_type_table_from_index): Likewise. | |
10744 | (dwarf2_read_index): Likewise. | |
10745 | (dwarf2_initialize_objfile): Likewise. | |
10746 | (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from | |
10747 | per_cu rather than get_dwarf2_per_objfile. | |
10748 | ||
ff4c9fec SM |
10749 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10750 | ||
10751 | * dwarf2read.h (struct signatured_type): Forward declare. | |
10752 | (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>: | |
10753 | New methods. | |
10754 | * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from... | |
10755 | (dw2_get_cutu): ...this. | |
10756 | (dwarf2_per_objfile::get_cu): Rename from... | |
10757 | (dw2_get_cu): ...this. | |
10758 | (dwarf2_per_objfile::get_tu): New. | |
10759 | (create_addrmap_from_index): Adjust. | |
10760 | (create_addrmap_from_aranges): Adjust. | |
10761 | (dw2_find_last_source_symtab): Adjust. | |
10762 | (dw2_map_symtabs_matching_filename): Adjust. | |
10763 | (dw2_symtab_iter_next): Adjust. | |
10764 | (dw2_print_stats): Adjust. | |
10765 | (dw2_expand_all_symtabs): Adjust. | |
10766 | (dw2_expand_symtabs_with_fullname): Adjust. | |
10767 | (dw2_expand_marked_cus): Adjust. | |
10768 | (dw_expand_symtabs_matching_file_matcher): Adjust. | |
10769 | (dw2_map_symbol_filenames): Adjust. | |
10770 | (dw2_debug_names_iterator::next): Adjust. | |
10771 | (dwarf2_initialize_objfile): Adjust. | |
10772 | (set_partial_user): Adjust. | |
10773 | (dwarf2_build_psymtabs_hard): Adjust. | |
10774 | ||
5ca3fcb6 SM |
10775 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10776 | ||
10777 | * dwarf2read.c (create_signatured_type_table_from_debug_names): | |
10778 | Remove unused variables. | |
10779 | (dw2_map_symtabs_matching_filename): Likewise. | |
10780 | (dwarf2_record_block_ranges): Likewise. | |
10781 | (dwarf2_read_addr_index): Likewise. | |
10782 | (follow_die_offset): Likewise. | |
10783 | ||
b2e586e8 SM |
10784 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10785 | ||
10786 | * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET | |
10787 | to symbol_file_add_main. | |
10788 | ||
7c4e78cf SM |
10789 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10790 | ||
10791 | PR mi/22299 | |
10792 | * mi/mi-console.c (do_fputc_async_safe): New. | |
10793 | (mi_console_file::write_async_safe): New. | |
10794 | (mi_console_file::flush): Adjust calls to fputstrn_unfiltered. | |
10795 | * mi/mi-console.h (class mi_console_file) <write_async_safe>: | |
10796 | New. | |
10797 | * ui-file.c (ui_file::putstrn): Adjust call to | |
10798 | fputstrn_unfiltered. | |
10799 | * utils.c (printchar): Replace do_fputs and do_fprintf | |
10800 | parameters by do_fputc. | |
10801 | (fputstr_filtered): Adjust call to printchar. | |
10802 | (fputstr_unfiltered): Likewise. | |
10803 | (fputstrn_filtered): Likewise. | |
10804 | (fputstrn_unfiltered): Add do_fputc parameter, pass to | |
10805 | printchar. | |
10806 | * utils.h (do_fputc_ftype): New typedef. | |
10807 | (fputstrn_unfiltered): Add do_fputc parameter. | |
10808 | ||
5dc026d3 SM |
10809 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10810 | ||
10811 | * regformats/i386/i386-avx.dat: Remove. | |
10812 | ||
c912f608 SM |
10813 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
10814 | ||
10815 | PR gdb/22979 | |
10816 | * amd64-tdep.c (amd64_none_init_abi): New function. | |
10817 | (amd64_x32_none_init_abi): New function. | |
10818 | (_initialize_amd64_tdep): Register handlers for x86-64 and | |
10819 | x64_32 with GDB_OSABI_NONE. | |
10820 | * osabi.c (gdbarch_init_osabi): Allow running handlers for the | |
10821 | GDB_OSABI_NONE osabi. | |
10822 | ||
26540402 SM |
10823 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
10824 | ||
10825 | PR gdb/22980 | |
10826 | * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add | |
10827 | GDB_OSABI_NONE. | |
10828 | * arch-utils.c (gdbarch_info_init): Don't set info->osabi. | |
10829 | * osabi.c (gdb_osabi_names): Add "unknown" entry. | |
10830 | ||
9018be22 SM |
10831 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
10832 | ||
10833 | * common/byte-vector.h (char_vector): New type. | |
10834 | * target.h (target_read_alloc): Return | |
10835 | gdb::optional<byte_vector>. | |
10836 | (target_read_stralloc): Return gdb::optional<char_vector>. | |
10837 | (target_get_osdata): Return gdb::optional<char_vector>. | |
10838 | * target.c (target_read_alloc_1): Templatize. Replacement | |
10839 | manual memory management with vector. | |
10840 | (target_read_alloc): Change return type, adjust. | |
10841 | (target_read_stralloc): Change return type, adjust. | |
10842 | (target_get_osdata): Change return type, adjust. | |
10843 | * auxv.c (struct auxv_info) <length>: Remove. | |
10844 | <data>: Change type to gdb::optional<byte_vector>. | |
10845 | (auxv_inferior_data_cleanup): Free auxv_info with delete. | |
10846 | (get_auxv_inferior_data): Allocate auxv_info with new, adjust. | |
10847 | (target_auxv_search): Adjust. | |
10848 | (fprint_target_auxv): Adjust. | |
10849 | * avr-tdep.c (avr_io_reg_read_command): Adjust. | |
10850 | * linux-tdep.c (linux_spu_make_corefile_notes): Adjust. | |
10851 | (linux_make_corefile_notes): Adjust. | |
10852 | * osdata.c (get_osdata): Adjust. | |
10853 | * remote.c (remote_get_threads_with_qxfer): Adjust. | |
10854 | (remote_memory_map): Adjust. | |
10855 | (remote_traceframe_info): Adjust. | |
10856 | (btrace_read_config): Adjust. | |
10857 | (remote_read_btrace): Adjust. | |
10858 | (remote_pid_to_exec_file): Adjust. | |
10859 | * solib-aix.c (solib_aix_get_library_list): Adjust. | |
10860 | * solib-dsbt.c (decode_loadmap): Don't free buf. | |
10861 | (dsbt_get_initial_loadmaps): Adjust. | |
10862 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust. | |
10863 | * solib-target.c (solib_target_current_sos): Adjust. | |
10864 | * tracepoint.c (sdata_make_value): Adjust. | |
10865 | * xml-support.c (xinclude_start_include): Adjust. | |
10866 | (xml_fetch_content_from_file): Adjust. | |
10867 | * xml-support.h (xml_fetch_another): Change return type. | |
10868 | (xml_fetch_content_from_file): Change return type. | |
10869 | * xml-syscall.c (xml_init_syscalls_info): Adjust. | |
10870 | * xml-tdesc.c (file_read_description_xml): Adjust. | |
10871 | (fetch_available_features_from_target): Change return type. | |
10872 | (target_fetch_description_xml): Adjust. | |
10873 | (target_read_description_xml): Adjust. | |
10874 | ||
14c88955 TT |
10875 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10876 | ||
10877 | * value.c (~value): Update. | |
10878 | (struct value) <contents>: Now unique_xmalloc_ptr. | |
10879 | (value_contents_bits_eq, allocate_value_contents) | |
10880 | (value_contents_raw, value_contents_all_raw) | |
10881 | (value_contents_for_printing, value_contents_for_printing_const) | |
10882 | (set_value_enclosing_type): Update. | |
10883 | ||
0c7e6dd8 TT |
10884 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10885 | ||
10886 | * value.c (range_s): Remove typedef, VEC. | |
10887 | (struct range): Add operator<. | |
10888 | (range_lessthan): Remove. | |
10889 | (ranges_contain): Change type. | |
10890 | (~value): Update. | |
10891 | (struct value) <unavailable, optimized_out>: Now std::vector. | |
10892 | (value_entirely_available) | |
10893 | (value_entirely_covered_by_range_vector) | |
10894 | (value_entirely_unavailable, value_entirely_optimized_out): | |
10895 | Update. | |
10896 | (insert_into_bit_range_vector): Change argument type. | |
10897 | (find_first_range_overlap): Likewise. | |
10898 | (struct ranges_and_idx, value_contents_bits_eq) | |
10899 | (require_not_optimized_out, require_available): Update. | |
10900 | (ranges_copy_adjusted): Change argument types. | |
10901 | (value_optimized_out, value_copy, value_fetch_lazy): Update. | |
10902 | ||
2c8331b9 TT |
10903 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10904 | ||
10905 | * value.c (~value): Update. | |
10906 | (struct value) <parent>: Now a value_ref_ptr. | |
10907 | (value_parent, set_value_parent, value_address, value_copy): | |
10908 | Update. | |
10909 | ||
466ce3ae TT |
10910 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10911 | ||
10912 | * value.c (struct value): Add constructor, destructor, and member | |
10913 | initializers. | |
10914 | (allocate_value_lazy, value_decref): Update. | |
10915 | ||
062d818d TT |
10916 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10917 | ||
10918 | * value.c (struct value) <released, next>: Remove. | |
10919 | (all_values): Now a std::vector. | |
10920 | (allocate_value_lazy): Update. | |
10921 | (value_next): Remove. | |
10922 | (value_mark, value_free_to_mark, release_value) | |
10923 | (value_release_to_mark): Update. | |
10924 | ||
a6535de1 TT |
10925 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10926 | ||
10927 | * value.h (fetch_subexp_value, value_release_to_mark): Update. | |
10928 | (free_value_chain): Remove. | |
10929 | * value.c (free_value_chain): Remove. | |
10930 | (value_release_to_mark): Return a std::vector. | |
10931 | * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a | |
10932 | std::vector. | |
10933 | (check_condition): Update. | |
10934 | * eval.c (fetch_subexp_value): Change "val_chain" to a | |
10935 | std::vector. | |
10936 | * breakpoint.c (update_watchpoint): Update. | |
10937 | (can_use_hardware_watchpoint): Change "vals" to a std::vector. | |
10938 | ||
b5621201 TT |
10939 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10940 | ||
10941 | * value.h (free_all_values): Remove. | |
10942 | * value.c (free_all_values): Remove. | |
10943 | ||
4d0266a0 TT |
10944 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10945 | ||
10946 | * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk) | |
10947 | (value_history_chain, value_history_count): Remove. | |
10948 | (value_history): New global. | |
10949 | (record_latest_value, access_value_history, show_values) | |
10950 | (preserve_values): Update. | |
10951 | ||
b4d61099 TT |
10952 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10953 | ||
10954 | * varobj.h (struct varobj) <value>: Now a value_ref_ptr. | |
10955 | * varobj.c (varobj_set_display_format, varobj_set_value) | |
10956 | (install_default_visualizer, construct_visualizer) | |
10957 | (install_new_value, ~varobj, varobj_get_value_type) | |
10958 | (my_value_of_variable, varobj_editable_p): Update. | |
10959 | * c-varobj.c (c_describe_child, c_value_of_variable) | |
10960 | (cplus_number_of_children, cplus_describe_child): Update. | |
10961 | * ada-varobj.c (ada_number_of_children, ada_name_of_child) | |
10962 | (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child) | |
10963 | (ada_value_of_variable, ada_value_is_changeable_p): Update. | |
10964 | ||
9b558729 TT |
10965 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10966 | ||
10967 | * printcmd.c (last_examine_address): Change type to | |
10968 | value_ref_ptr. | |
10969 | (do_examine, x_command): Update. | |
10970 | ||
850645cf TT |
10971 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10972 | ||
10973 | * value.c (release_value): Update. | |
10974 | * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr. | |
10975 | (struct bpstats) <val>: Now a value_ref_ptr. | |
10976 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
10977 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
10978 | (~watchpoint, print_it_watchpoint, watch_command_1) | |
10979 | (invalidate_bp_value_on_memory_change): Update. | |
10980 | ||
22bc8444 TT |
10981 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10982 | ||
10983 | * varobj.c (varobj_clear_saved_item) | |
10984 | (update_dynamic_varobj_children, install_new_value, ~varobj): | |
10985 | Update. | |
10986 | * value.h (value_incref): Move declaration earlier. | |
10987 | (value_decref): Rename from value_free. | |
10988 | (struct value_ref_policy): New. | |
10989 | (value_ref_ptr): New typedef. | |
10990 | (struct value_deleter): Remove. | |
10991 | (gdb_value_up): Remove typedef. | |
10992 | (release_value): Change return type. | |
10993 | (release_value_or_incref): Remove. | |
10994 | * value.c (set_value_parent): Update. | |
10995 | (value_incref): Change return type. | |
10996 | (value_decref): Rename from value_free. | |
10997 | (value_free_to_mark, free_all_values, free_value_chain): Update. | |
10998 | (release_value): Return value_ref_ptr. | |
10999 | (release_value_or_incref): Remove. | |
11000 | (record_latest_value, set_internalvar, clear_internalvar): | |
11001 | Update. | |
11002 | * stack.c (info_frame_command): Don't call value_free. | |
11003 | * python/py-value.c (valpy_dealloc, valpy_new) | |
11004 | (value_to_value_object): Update. | |
11005 | * printcmd.c (do_examine): Update. | |
11006 | * opencl-lang.c (lval_func_free_closure): Update. | |
11007 | * mi/mi-main.c (register_changed_p): Don't call value_free. | |
11008 | * mep-tdep.c (mep_frame_prev_register): Don't call value_free. | |
11009 | * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free. | |
11010 | * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call | |
11011 | value_free. | |
11012 | * guile/scm-value.c (vlscm_free_value_smob) | |
11013 | (vlscm_scm_from_value): Update. | |
11014 | * frame.c (frame_register_unwind, frame_unwind_register_signed) | |
11015 | (frame_unwind_register_unsigned, get_frame_register_bytes) | |
11016 | (put_frame_register_bytes): Don't call value_free. | |
11017 | * findvar.c (address_from_register): Don't call value_free. | |
11018 | * dwarf2read.c (dwarf2_compute_name): Don't call value_free. | |
11019 | * dwarf2loc.c (entry_data_value_free_closure) | |
11020 | (value_of_dwarf_reg_entry, free_pieced_value_closure) | |
11021 | (dwarf2_evaluate_loc_desc_full): Update. | |
11022 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
11023 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
11024 | (~watchpoint, watch_command_1) | |
11025 | (invalidate_bp_value_on_memory_change): Update. | |
11026 | * alpha-tdep.c (alpha_register_to_value): Don't call value_free. | |
11027 | ||
7f8a5d38 SM |
11028 | 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca> |
11029 | ||
11030 | PR gdb/23022 | |
11031 | * warning.m4: Add -Wno-error=deprecated-register. | |
11032 | * configure: Re-generate. | |
11033 | ||
8a76bd3b TT |
11034 | 2018-04-05 Tom Tromey <tom@tromey.com> |
11035 | ||
11036 | * linespec.h: Remove include of "vec.h". | |
11037 | ||
8e8d776e TT |
11038 | 2018-04-05 Tom Tromey <tom@tromey.com> |
11039 | ||
11040 | * linespec.c (typep): Remove typedef. | |
11041 | (find_methods, find_superclass_methods): Take a std::vector. | |
11042 | (find_method): Use std::vector. | |
11043 | ||
9b2f8581 TT |
11044 | 2018-04-05 Tom Tromey <tom@tromey.com> |
11045 | ||
11046 | * utils.c (compare_strings): Remove. | |
11047 | * utils.h (compare_strings): Remove. | |
11048 | * objc-lang.h (find_imps): Update. | |
11049 | * objc-lang.c (find_methods): Take a std::vector. | |
11050 | (uniquify_strings, find_imps): Likewise. | |
11051 | * linespec.c (find_methods): Take a std::vector. | |
11052 | (decode_objc): Use std::vector. | |
11053 | (add_all_symbol_names_from_pspace, find_superclass_methods): Take | |
11054 | a std::vector. | |
11055 | (find_method, find_function_symbols): Use std::vector. | |
11056 | ||
459a2e4c TT |
11057 | 2018-04-05 Tom Tromey <tom@tromey.com> |
11058 | ||
11059 | * completer.c (completion_tracker::completion_tracker): Remove | |
11060 | cast. | |
11061 | (completion_tracker::discard_completions): Likewise. | |
11062 | * breakpoint.c (ambiguous_names_p): Remove cast. | |
11063 | * ada-lang.c (_initialize_ada_language): Remove cast. | |
11064 | * utils.h (streq): Update. | |
11065 | (streq_hash): Add new declaration. | |
11066 | * utils.c (streq): Return bool. | |
11067 | (streq_hash): New function. | |
11068 | ||
9be2c17a TT |
11069 | 2018-04-05 Tom Tromey <tom@tromey.com> |
11070 | ||
11071 | * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>: | |
11072 | Remove a string copy. | |
11073 | ||
f73c6ece TT |
11074 | 2018-04-05 Tom Tromey <tom@tromey.com> |
11075 | ||
11076 | * linespec.c (filter_results): Use std::vector. | |
11077 | (decode_line_2, decode_line_full): Update. | |
11078 | ||
53a0f8a2 TT |
11079 | 2018-04-05 Tom Tromey <tom@tromey.com> |
11080 | ||
11081 | * linespec.c (canonical_to_fullform): Return std::string. | |
11082 | (filter_results): Update. | |
11083 | (struct decode_line_2_item): Add constructor. | |
11084 | <fullform, displayform>: Now std::string. | |
11085 | (decode_line_2_compare_items): Now a std::sort comparator. | |
11086 | (decode_line_2): Update. | |
11087 | ||
a5b5adf5 TT |
11088 | 2018-04-05 Tom Tromey <tom@tromey.com> |
11089 | ||
11090 | * linespec.c (copy_token_string): Return a unique_xmalloc_ptr. | |
11091 | (unexpected_linespec_error): Update. | |
11092 | (linespec_parse_basic, parse_linespec): Update. | |
11093 | ||
6a307fc5 TT |
11094 | 2018-04-05 Tom Tromey <tom@tromey.com> |
11095 | ||
11096 | * linespec.c (linespec_parse_basic): Reindent. | |
11097 | ||
41c1efc6 TT |
11098 | 2018-04-05 Tom Tromey <tom@tromey.com> |
11099 | ||
11100 | * minsyms.h (iterate_over_minimal_symbols): Update. | |
11101 | * minsyms.c (iterate_over_minimal_symbols): Take a | |
11102 | gdb::function_view. | |
11103 | * linespec.c (struct collect_minsyms): Remove. | |
11104 | (compare_msyms): Now a std::sort comparator. | |
11105 | (add_minsym): Add parameters. | |
11106 | (search_minsyms_for_name): Update. Use std::vector. | |
11107 | ||
c5edbf3d TT |
11108 | 2018-04-03 Tom Tromey <tom@tromey.com> |
11109 | ||
11110 | * mipsread.c (read_alphacoff_dynamic_symtab): Use | |
11111 | gdb::byte_vector. | |
11112 | ||
b39efc48 WP |
11113 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
11114 | ||
11115 | * MAINTAINERS (Write After Approval): Add Weimin Pan. | |
11116 | ||
121ad66c | 11117 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
79f18731 WP |
11118 | |
11119 | PR gdb/16959 | |
11120 | * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when | |
11121 | printing static type. | |
11122 | ||
09473be8 TT |
11123 | 2018-04-01 Tom Tromey <tom@tromey.com> |
11124 | ||
11125 | * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector. | |
11126 | (rs6000_xfer_shared_libraries): Update. | |
11127 | ||
ec1f2d91 SM |
11128 | 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
11129 | ||
11130 | * common/gdb_vecs.h (char_ptr): Remove. | |
11131 | * tracepoint.c (encode_actions_1): Remove usage of char_ptr. | |
11132 | ||
d8611974 SM |
11133 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
11134 | ||
11135 | * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC | |
11136 | with std::vector. | |
11137 | * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove. | |
11138 | ||
a18ba4e4 SM |
11139 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
11140 | ||
11141 | * tracepoint.h (struct uploaded_tp): Initialize fields. | |
11142 | <actions, step_actions, cmd_strings>: Change type to | |
11143 | std::vector<char *>. | |
11144 | * tracepoint.c (get_uploaded_tp): Allocate with new. | |
11145 | (free_uploaded_tps): Free with delete. | |
11146 | (parse_tracepoint_definition): Adjust to std::vector change. | |
11147 | * breakpoint.c (read_uploaded_action): Likewise. | |
11148 | (create_tracepoint_from_upload): Likewise. | |
11149 | * ctf.c (ctf_write_uploaded_tp): Likewise. | |
11150 | (SET_ARRAY_FIELD): Likewise. | |
11151 | * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise. | |
11152 | ||
a7961323 TT |
11153 | 2018-03-30 Tom Tromey <tom@tromey.com> |
11154 | ||
11155 | * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return | |
11156 | std::unique_ptr. | |
11157 | (svr4_keep_data_in_core): Update. | |
11158 | (svr4_read_so_list): Update. | |
11159 | ||
e83e4e24 TT |
11160 | 2018-03-30 Tom Tromey <tom@tromey.com> |
11161 | ||
11162 | * windows-nat.c (handle_output_debug_string, handle_exception): | |
11163 | Update. | |
11164 | * target.h (target_read_string): Update. | |
11165 | * target.c (target_read_string): Change "string" to | |
11166 | unique_xmalloc_ptr. | |
11167 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
11168 | Update. | |
11169 | * solib-frv.c (frv_current_sos): Update. | |
11170 | * solib-dsbt.c (dsbt_current_sos): Update. | |
11171 | * solib-darwin.c (darwin_current_sos): Update. | |
11172 | * linux-thread-db.c (inferior_has_bug): Update. | |
11173 | * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>: | |
11174 | Update. Remove alloca. | |
11175 | * ada-lang.c (ada_main_name): Update. | |
11176 | ||
263db9a1 TT |
11177 | 2018-03-30 Tom Tromey <tom@tromey.com> |
11178 | ||
11179 | * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove. | |
11180 | (struct dwo_file_deleter): New. | |
11181 | (dwo_file_up): New typedef. | |
11182 | (open_and_init_dwo_file): Use dwo_file_up. | |
11183 | (free_dwo_file_cleanup): Remove. | |
11184 | ||
5dafb3d1 TT |
11185 | 2018-03-30 Tom Tromey <tom@tromey.com> |
11186 | ||
11187 | * dwarf2read.c (free_dwo_file): Remove "objfile" parameter. | |
11188 | (free_dwo_file_cleanup, free_dwo_file_from_slot): Update. | |
11189 | ||
11ed8cad TT |
11190 | 2018-03-30 Tom Tromey <tom@tromey.com> |
11191 | ||
11192 | * dwarf2read.c (class free_cached_comp_units): New class. | |
11193 | (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it. | |
11194 | (free_cached_comp_units): Remove function. | |
11195 | ||
9ae79dac TT |
11196 | 2018-03-30 Tom Tromey <tom@tromey.com> |
11197 | ||
11198 | * utils.h (make_cleanup_unpush_target): Remove. | |
11199 | * inf-ptrace.c (struct target_unpusher): New. | |
11200 | (target_unpush_up) New typedef. | |
11201 | (inf_ptrace_create_inferior, inf_ptrace_attach): Use | |
11202 | target_unpush_up. | |
11203 | * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove. | |
11204 | ||
5aa89276 TT |
11205 | 2018-03-27 Tom Tromey <tom@tromey.com> |
11206 | ||
11207 | * utils.c (prompt_for_continue): Use unique_xmalloc_ptr. | |
11208 | ||
1dbeed45 TT |
11209 | 2018-03-27 Pedro Alves <palves@redhat.com> |
11210 | Tom Tromey <tom@tromey.com> | |
11211 | ||
11212 | * top.c (class gdb_readline_wrapper_cleanup): Add constructor, | |
11213 | destructor. Now a class. | |
11214 | (gdb_readline_wrapper_cleanup): Remove function. | |
11215 | (gdb_readline_wrapper): Remove cleanups. | |
11216 | ||
c819b2c0 TT |
11217 | 2018-03-27 Tom Tromey <tom@tromey.com> |
11218 | ||
11219 | * typeprint.h (struct type_print_options) <local_typedefs, | |
11220 | global_typedefs>: Remove "struct" keyword. | |
11221 | (class typedef_hash_table): New class. | |
11222 | (recursively_update_typedef_hash, add_template_parameters) | |
11223 | (create_typedef_hash, free_typedef_hash, copy_typedef_hash) | |
11224 | (find_typedef_in_hash): Don't declare. | |
11225 | * typeprint.c (struct typedef_hash_table): Move to typeprint.h. | |
11226 | (typedef_hash_table::recursively_update): Rename from | |
11227 | recursively_update_typedef_hash. Now a member. | |
11228 | (typedef_hash_table::add_template_parameters): Rename from | |
11229 | add_template_parameters. Now a member. | |
11230 | (typedef_hash_table::typedef_hash_table): Now a constructor; | |
11231 | rename from create_typedef_hash. | |
11232 | (typedef_hash_table::~typedef_hash_table): Now a destructor; | |
11233 | rename from free_typedef_hash. | |
11234 | (do_free_typedef_hash, make_cleanup_free_typedef_hash) | |
11235 | (do_free_global_table): Remove. | |
11236 | (typedef_hash_table::typedef_hash_table): New constructor; renamed | |
11237 | from copy_type_recursive. | |
11238 | (create_global_typedef_table): Remove. | |
11239 | (typedef_hash_table::find_global_typedef): Now a member of | |
11240 | typedef_hash_table. | |
11241 | (typedef_hash_table::find_typedef): Rename from | |
11242 | find_typedef_in_hash; now a member. | |
11243 | (whatis_exp): Update. | |
11244 | * extension.h (struct ext_lang_type_printers): Add constructor and | |
11245 | destructor. | |
11246 | (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't | |
11247 | declare. | |
11248 | * extension.c (ext_lang_type_printers::ext_lang_type_printers): | |
11249 | Now a constructor; rename from start_ext_lang_type_printers. | |
11250 | (ext_lang_type_printers): Now a destructor; rename from | |
11251 | free_ext_lang_type_printers. | |
11252 | * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1): | |
11253 | Update. | |
11254 | (c_type_print_base_struct_union): Update. Remove cleanups. | |
11255 | ||
608219fb TT |
11256 | 2018-03-27 Tom Tromey <tom@tromey.com> |
11257 | ||
11258 | * dwarf-index-write.c: Include <cmath>. | |
11259 | ||
3fcded8f JB |
11260 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
11261 | ||
11262 | * NEWS: Add entry describing new "set|show varsize-limit" command. | |
11263 | * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit" | |
11264 | command. | |
11265 | * printcmd.c (_initialize_printcmd): Add "set var" alias of | |
11266 | "set variable". | |
11267 | ||
cd4fb1b2 SM |
11268 | 2018-03-27 Simon Marchi <simon.marchi@ericsson.com> |
11269 | ||
11270 | * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and | |
11271 | dwarf-index-write.c | |
11272 | (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h. | |
11273 | * dwarf-index-common.c: New file. | |
11274 | * dwarf-index-common.h: New file. | |
11275 | * dwarf-index-write.c: New file. | |
11276 | * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h. | |
11277 | (struct dwarf2_section_info): Move from here. | |
11278 | (dwarf2_section_info_def): Likewise. | |
11279 | (DEF_VEC_O (dwarf2_section_info_def)): Likewise. | |
11280 | (offset_type): Likewise. | |
11281 | (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise. | |
11282 | (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise. | |
11283 | (DW2_GDB_INDEX_CU_SET_VALUE): Likewise. | |
11284 | (byte_swap): Likewise. | |
11285 | (MAYBE_SWAP): Likewise. | |
11286 | (dwarf2_per_cu_ptr): Likewise. | |
11287 | (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise. | |
11288 | (struct tu_stats): Likewise. | |
11289 | (struct dwarf2_per_objfile): Likewise. | |
11290 | (struct dwarf2_per_cu_data): Likewise. | |
11291 | (struct signatured_type): Likewise. | |
11292 | (sig_type_ptr): Likewise. | |
11293 | (DEF_VEC_P (sig_type_ptr)): Likewise. | |
11294 | (INDEX4_SUFFIX): Likewise. | |
11295 | (INDEX5_SUFFIX): Likewise. | |
11296 | (DEBUG_STR_SUFFIX): Likewise. | |
11297 | (dwarf2_read_section): Make non-static. | |
11298 | (mapped_index_string_hash): Move from here. | |
11299 | (dwarf5_djb_hash): Likewise. | |
11300 | (file_write): Likewise. | |
11301 | (class data_buf): Likewise. | |
11302 | (struct symtab_index_entry): Likewise. | |
11303 | (struct mapped_symtab): Likewise. | |
11304 | (find_slot): Likewise. | |
11305 | (hash_expand): Likewise. | |
11306 | (add_index_entry): Likewise. | |
11307 | (uniquify_cu_indices): Likewise. | |
11308 | (class c_str_view): Likewise. | |
11309 | (class c_str_view_hasher): Likewise. | |
11310 | (class vector_hasher): Likewise. | |
11311 | (write_hash_table): Likewise. | |
11312 | (psym_index_map): Likewise. | |
11313 | (struct addrmap_index_data): Likewise. | |
11314 | (add_address_entry): Likewise. | |
11315 | (add_address_entry_worker): Likewise. | |
11316 | (write_address_map): Likewise. | |
11317 | (symbol_kind): Likewise. | |
11318 | (write_psymbols): Likewise. | |
11319 | (struct signatured_type_index_data): Likewise. | |
11320 | (write_one_signatured_type): Likewise. | |
11321 | (recursively_count_psymbols): Likewise. | |
11322 | (recursively_write_psymbols): Likewise. | |
11323 | (class debug_names): Likewise. | |
11324 | (check_dwarf64_offsets): Likewise. | |
11325 | (psyms_seen_size): Likewise. | |
11326 | (write_gdbindex): Likewise. | |
11327 | (write_debug_names): Likewise. | |
11328 | (assert_file_size): Likewise. | |
11329 | (write_psymtabs_to_index): Likewise. | |
11330 | (save_gdb_index_command): Likewise. | |
11331 | (_initialize_dwarf2_read): Don't register the "save gdb-index" | |
11332 | command. | |
11333 | * dwarf2read.h: New file. | |
11334 | ||
59cc4834 JB |
11335 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
11336 | ||
11337 | PR gdb/22670 | |
11338 | * dwarf2read.c (dwarf2_physname): Do not return the demangled | |
11339 | symbol name if the CU's language stores symbol names in linkage | |
11340 | format. | |
11341 | * language.h (struct language_defn) | |
11342 | <la_store_sym_names_in_linkage_form_p>: New field. Adjust | |
11343 | all instances of this struct. | |
11344 | ||
67501539 TT |
11345 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11346 | ||
11347 | * stack.c (backtrace_command_1): Remove verbose code. | |
11348 | ||
76c939ac TT |
11349 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11350 | ||
11351 | * python/py-framefilter.c (py_print_type): Don't catch | |
11352 | exceptions. Return void. | |
11353 | (py_print_value): Likewise. | |
11354 | (py_print_single_arg): Likewise. | |
11355 | (enumerate_args): Don't catch exceptions. | |
11356 | (py_print_args): Likewise. | |
11357 | (py_print_frame): Likewise. | |
11358 | (gdbpy_apply_frame_filter): Catch exceptions here. | |
11359 | ||
9507b29c TT |
11360 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11361 | ||
11362 | * stack.c (_initialize_stack): Remove trailing newlines from help | |
11363 | text. Add "Usage" line to "backtrace" help. | |
11364 | ||
eb68e487 TT |
11365 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11366 | ||
11367 | PR python/16486: | |
11368 | * python/py-framefilter.c (py_print_args): Call wrap_hint. | |
11369 | ||
1f111921 TT |
11370 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11371 | ||
11372 | * python/py-framefilter.c (py_print_single_arg): Return | |
11373 | EXT_LANG_BT_ERROR from catch. | |
11374 | ||
fb7eb8b5 TT |
11375 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11376 | ||
11377 | PR backtrace/15584: | |
11378 | * stack.c (backtrace_command_1): Move some code into no-filters | |
11379 | "if". | |
11380 | ||
4ca59a9f TT |
11381 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11382 | ||
11383 | * python/py-framefilter.c (throw_quit_or_print_exception): New | |
11384 | function. | |
11385 | (gdbpy_apply_frame_filter): Use it. | |
11386 | ||
92256134 TT |
11387 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11388 | ||
11389 | PR cli/17716: | |
11390 | * python/py-framefilter.c (py_print_type, py_print_value) | |
11391 | (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use | |
11392 | RETURN_MASK_ERROR. | |
11393 | ||
7a630bc2 TT |
11394 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11395 | ||
11396 | * python/py-framefilter.c (enumerate_args): Use | |
11397 | gdb::unique_xmalloc_ptr. | |
11398 | ||
63283d4a TT |
11399 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11400 | ||
11401 | * python/py-framefilter.c (py_print_frame): Return | |
11402 | EXT_LANG_BT_OK. | |
11403 | (gdbpy_apply_frame_filter): Update comment. | |
11404 | * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>: | |
11405 | Remove. | |
11406 | <EXT_LANG_BT_NO_FILTERS>: Change value. | |
11407 | ||
978d6c75 TT |
11408 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11409 | ||
11410 | PR backtrace/15582: | |
11411 | * stack.c (backtrace_command): Parse "hide" argument. | |
11412 | * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE. | |
11413 | * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New | |
11414 | constant. | |
11415 | ||
1cf7e640 TT |
11416 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11417 | ||
11418 | * stack.c (backtrace_command_1): Remove "show_locals" parameter, | |
11419 | add "flags". | |
11420 | (backtrace_command): Remove "fulltrace", add "flags". | |
11421 | ||
ea3b0687 TT |
11422 | 2018-03-26 Tom Tromey <tom@tromey.com> |
11423 | ||
11424 | * stack.c (backtrace_command): Rewrite command line parsing. | |
11425 | ||
9f034d75 SM |
11426 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
11427 | ||
11428 | * dwarf2read.c (DEF_VEC_I(offset_type)): Remove. | |
11429 | ||
ce1459e5 SM |
11430 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
11431 | ||
11432 | * filename-seen-cache.h: Add include guard. | |
11433 | ||
4f7ae6f5 KS |
11434 | 2018-03-26 Keith Seitz <keiths@redhat.com> |
11435 | ||
11436 | * symfile.c (place_section): Remove "struct" from section_addr_info | |
11437 | in comment. | |
11438 | * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove | |
11439 | "struct" keyword from section_addr_info. | |
11440 | ||
5cd3e386 AH |
11441 | 2018-03-26 Alan Hayward <alan.hayward@arm.com> |
11442 | ||
11443 | * regformats/regdef.h (reg): Add constructors. | |
11444 | ||
3e5ef9a4 PA |
11445 | 2018-03-25 Pedro Alves <palves@redhat.com> |
11446 | ||
11447 | * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE | |
11448 | if then/else bodies in var_func_name extraction. | |
11449 | ||
c88d2fcc | 11450 | 2018-03-23 Weimin Pan <weimin.pan@oracle.com> |
bce02d88 WP |
11451 | |
11452 | * minsyms.c (lookup_minimal_symbol_and_objfile): Use | |
11453 | lookup_minimal_symbol() to find symbol entry. | |
11454 | * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment. | |
11455 | ||
b7fee5a3 KS |
11456 | 2018-03-23 Keith Seitz <keiths@redhat.com> |
11457 | ||
11458 | PR c++/22968 | |
11459 | * dwarf2read.c (scan_partial_symbols): Scan structs/classes for | |
11460 | nested type definitions for C++, too. | |
11461 | ||
2cc9b304 TT |
11462 | 2018-03-23 Tom Tromey <tom@tromey.com> |
11463 | ||
11464 | * machoread.c (struct oso_el): Add a constructor. Don't define as | |
11465 | a typedef. | |
11466 | (macho_register_oso): Remove. | |
11467 | (macho_symtab_read): Take a std::vector. | |
11468 | (oso_el_compare_name): Now a std::sort comparator. | |
11469 | (macho_symfile_read_all_oso): Take a std::vector. | |
11470 | (macho_symfile_read): Use std::vector. Remove cleanups. | |
11471 | ||
a2b2bc12 TT |
11472 | 2018-03-22 Tom Tromey <tom@tromey.com> |
11473 | ||
11474 | * record-full.c (record_full_exec_insn): Use gdb::byte_vector. | |
11475 | (record_full_goto_bookmark): Use std::string. | |
11476 | ||
7a8f494c PFC |
11477 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
11478 | ||
11479 | PR tdep/18295 | |
11480 | * rs6000-tdep.c (skip_prologue): Match both stwux and stdux | |
11481 | a single mask. | |
11482 | ||
dd6d677f PFC |
11483 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
11484 | ||
11485 | * rs6000-tdep.c (store_insn_p): New function. | |
11486 | (skip_prologue): New variable alloca_reg_offset. Set lr_reg | |
11487 | and cr_reg to their unshifted values. Use store_insn_p to | |
11488 | match LR saves using either R1 or fdata->alloca_reg. Use | |
11489 | store_insn_p to match CR saves. Set alloca_reg_offset | |
11490 | when alloca_reg and framep are set. Remove lr_reg shift | |
11491 | when assigning to fdata->lr_register. | |
11492 | ||
26d6cec4 AA |
11493 | 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11494 | ||
11495 | * linux-tdep.c (linux_info_proc): For "info proc cmdline", print | |
11496 | command line args instead of emitting a warning. | |
11497 | ||
5d9310c4 SM |
11498 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
11499 | ||
11500 | * tracepoint.h (struct static_tracepoint_marker): Initialize | |
11501 | fields, define default constructor, move constructor and move | |
11502 | assignment, disable the rest. | |
11503 | <str_id, extra>: Make std::string. | |
11504 | (release_static_tracepoint_marker): Remove. | |
11505 | (free_current_marker): Remove. | |
11506 | * tracepoint.c (free_current_marker): Remove. | |
11507 | (parse_static_tracepoint_marker_definition): Adjust to | |
11508 | std::string, use new hex2str overload. | |
11509 | (release_static_tracepoint_marker): Remove. | |
11510 | (print_one_static_tracepoint_marker): Get marker by reference | |
11511 | and adjust to std::string. | |
11512 | (info_static_tracepoint_markers_command): Adjust to std::vector | |
11513 | changes | |
11514 | * target.h (static_tracepoint_marker_p): Remove typedef. | |
11515 | (DEF_VEC_P(static_tracepoint_marker_p)): Remove. | |
11516 | (struct target_ops) <to_static_tracepoint_marker_at>: Return | |
11517 | bool. | |
11518 | <to_static_tracepoint_markers_by_strid>: Return std::vector. | |
11519 | * target-debug.h | |
11520 | (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove. | |
11521 | (target_debug_print_std_vector_static_tracepoint_marker): New. | |
11522 | (target_debug_print_struct_static_tracepoint_marker_p): Rename | |
11523 | to... | |
11524 | (target_debug_print_static_tracepoint_marker_p): ... this. | |
11525 | * target-delegates.c: Re-generate. | |
11526 | * breakpoint.h (struct tracepoint) <static_trace_marker_id>: | |
11527 | Make std::string. | |
11528 | * breakpoint.c (init_breakpoint_sal): Adjust to std::string. | |
11529 | (decode_static_tracepoint_spec): Adjust to std::vector. | |
11530 | (tracepoint_print_one_detail): Adjust to std::string. | |
11531 | (strace_marker_decode_location): Adjust to std::string. | |
11532 | (update_static_tracepoint): Adjust to std::string, remove call | |
11533 | to release_static_tracepoint_marker. | |
11534 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
11535 | Adjust to std::vector. | |
11536 | * remote.c (remote_static_tracepoint_marker_at): Return bool. | |
11537 | (remote_static_tracepoint_markers_by_strid): Adjust to | |
11538 | std::vector. | |
11539 | * common/rsp-low.h (hex2str): New overload with explicit count | |
11540 | of bytes. | |
11541 | * common/rsp-low.c (hex2str): New overload with explicit count | |
11542 | of bytes. | |
11543 | * unittests/rsp-low-selftests.c (test_hex2str): New function. | |
11544 | (_initialize_rsp_low_selftests): Add test_hex2str test. | |
11545 | * unittests/tracepoint-selftests.c | |
11546 | (test_parse_static_tracepoint_marker_definition): Adjust to | |
11547 | std::string. | |
11548 | ||
62c222b6 SM |
11549 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
11550 | ||
11551 | * tracepoint.c (parse_static_tracepoint_marker_definition): | |
11552 | Consider case where the definition is followed by more | |
11553 | definitions. | |
11554 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
11555 | tracepoint-selftests.c. | |
11556 | * unittests/tracepoint-selftests.c: New. | |
11557 | ||
7eb2418f PFC |
11558 | 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
11559 | ||
11560 | * MAINTAINERS (Write After Approval): Add Pedro Franco de | |
11561 | Carvalho. | |
11562 | ||
7cbe16e9 SR |
11563 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
11564 | ||
3d6b3b82 | 11565 | * symtab.c (find_pc_sect_line): fixed indentation. |
7cbe16e9 | 11566 | |
4ee89e90 SR |
11567 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
11568 | ||
3d6b3b82 | 11569 | * symtab.c (find_pc_sect_line): now uses binary search. |
4ee89e90 | 11570 | |
92630041 TT |
11571 | 2018-03-19 Tom Tromey <tom@tromey.com> |
11572 | ||
11573 | * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain | |
11574 | "IDENT" production. | |
11575 | ||
76727919 TT |
11576 | 2018-03-19 Pedro Alves <palves@redhat.com> |
11577 | Tom Tromey <tom@tromey.com> | |
11578 | ||
11579 | * unittests/observable-selftests.c: New file. | |
11580 | * common/observable.h: New file. | |
11581 | * observable.h: New file. | |
11582 | * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c, | |
11583 | arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c, | |
11584 | breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c, | |
11585 | corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c, | |
11586 | extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c, | |
11587 | infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c, | |
11588 | linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c, | |
11589 | mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c, | |
11590 | ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c, | |
11591 | python/py-breakpoint.c, python/py-finishbreakpoint.c, | |
11592 | python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c, | |
11593 | record-btrace.c, record-full.c, record.c, regcache.c, remote.c, | |
11594 | riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c, | |
11595 | spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c, | |
11596 | symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c, | |
11597 | tui/tui-interp.c, valops.c: Update all users. | |
11598 | * tui/tui-hooks.c (tui_bp_created_observer) | |
11599 | (tui_bp_deleted_observer, tui_bp_modified_observer) | |
11600 | (tui_inferior_exit_observer, tui_before_prompt_observer) | |
11601 | (tui_normal_stop_observer, tui_register_changed_observer): | |
11602 | Remove. | |
11603 | (tui_observers_token): New global. | |
11604 | (attach_or_detach, tui_attach_detach_observers): New functions. | |
11605 | (tui_install_hooks, tui_remove_hooks): Use | |
11606 | tui_attach_detach_observers. | |
11607 | * record-btrace.c (record_btrace_thread_observer): Remove. | |
11608 | (record_btrace_thread_observer_token): New global. | |
11609 | * observer.sh: Remove. | |
11610 | * observer.c: Rename to observable.c. | |
11611 | * observable.c (namespace gdb_observers): Define new objects. | |
11612 | (observer_debug): Move into gdb_observers namespace. | |
11613 | (struct observer, struct observer_list, xalloc_observer_list_node) | |
11614 | (xfree_observer_list_node, generic_observer_attach) | |
11615 | (generic_observer_detach, generic_observer_notify): Remove. | |
11616 | (_initialize_observer): Update. | |
11617 | Don't include observer.inc. | |
11618 | * Makefile.in (generated_files): Remove observer.h, observer.inc. | |
11619 | (clean mostlyclean): Likewise. | |
11620 | (observer.h, observer.inc): Remove targets. | |
11621 | (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c. | |
11622 | (COMMON_SFILES): Use observable.c, not observer.c. | |
11623 | * .gitignore: Remove observer.h. | |
11624 | ||
1cb1f3da TT |
11625 | 2018-03-18 Tom Tromey <tom@tromey.com> |
11626 | ||
11627 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use | |
11628 | gdb::def_vector. | |
11629 | (bfd_lookup_symbol_from_dyn_symtab): Likewise. | |
11630 | ||
a06ab151 TT |
11631 | 2018-03-17 Tom Tromey <tom@tromey.com> |
11632 | ||
11633 | * auto-load.c (auto_load_objfile_script_1): Use std::string. | |
11634 | ||
770623f7 TT |
11635 | 2018-03-17 Tom Tromey <tom@tromey.com> |
11636 | ||
11637 | * target.c (class scoped_target_fd): New. | |
11638 | (target_fileio_close_cleanup): Remove. | |
11639 | (target_fileio_read_alloc_1): Use scoped_target_fd. | |
11640 | ||
39be3c7e SM |
11641 | 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> |
11642 | ||
11643 | * silent-rules.mk: New. | |
11644 | * Makefile.in: Include silent-rules.mk | |
11645 | (srcdir, VPATH, top_srcdir): Move up. | |
11646 | (COMPILE): Add ECHO_CXX. | |
11647 | (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD. | |
11648 | (init.c): Add ECHO_INIT_C. | |
11649 | (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
11650 | (version.c): Add ECHO_GEN. | |
11651 | (printcmd.o): Add ECHO_CXX. | |
11652 | (target-float.o): Add ECHO_CXX. | |
11653 | (ada-exp.o): Add ECHO_CXX. | |
11654 | (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN. | |
11655 | (insight$(EXEEXT)): Add ECHO_CXXLD. | |
11656 | * gnulib/configure.ac: Add AM_SILENT_RULES. | |
11657 | * gnulib/aclocal.m4: Re-generate. | |
11658 | * gnulib/configure: Re-generate. | |
11659 | * gnulib/import/Makefile.in: Re-generate. | |
11660 | ||
37e136b1 TT |
11661 | 2018-03-16 Tom Tromey <tom@tromey.com> |
11662 | ||
11663 | * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs". | |
11664 | * utils.h (make_cleanup_free_section_addr_info): Don't declare. | |
11665 | * utils.c (do_free_section_addr_info) | |
11666 | (make_cleanup_free_section_addr_info): Remove. | |
11667 | * symfile.h (struct other_sections): Add constructor. | |
11668 | (struct section_addr_info): Remove. | |
11669 | (section_addr_info): New typedef. | |
11670 | (struct sym_fns) <sym_offsets>: Change type of parameter. | |
11671 | (build_section_addr_info_from_objfile) | |
11672 | (relative_addr_info_to_section_offsets, addr_info_make_relative) | |
11673 | (default_symfile_offsets, symbol_file_add) | |
11674 | (symbol_file_add_from_bfd) | |
11675 | (build_section_addr_info_from_section_table): Update. | |
11676 | (alloc_section_addr_info, free_section_addr_info): Don't declare. | |
11677 | * symfile.c (alloc_section_addr_info): Remove. | |
11678 | (build_section_addr_info_from_section_table): Change return type. | |
11679 | Update. | |
11680 | (build_section_addr_info_from_bfd) | |
11681 | (build_section_addr_info_from_objfile): Likewise. | |
11682 | (free_section_addr_info): Remove. | |
11683 | (relative_addr_info_to_section_offsets): Change type of "addrs". | |
11684 | (addrs_section_compar): Now a std::sort comparator. | |
11685 | (addrs_section_sort): Change return type. | |
11686 | (addr_info_make_relative): Change type of "addrs". Update. | |
11687 | (default_symfile_offsets, syms_from_objfile_1) | |
11688 | (syms_from_objfile, symbol_file_add_with_addrs): Likewise. | |
11689 | (symbol_file_add_separate): Update. | |
11690 | (symbol_file_add): Change type of "addrs". Update. | |
11691 | (add_symbol_file_command): Update. Remove cleanups. | |
11692 | * symfile-mem.c (symbol_file_add_from_memory): Update. Remove | |
11693 | cleanups. | |
11694 | * symfile-debug.c (debug_sym_offsets): Change type of "info". | |
11695 | * solib.c (solib_read_symbols): Update. | |
11696 | * objfiles.c (objfile_relocate): Update. Remove cleanups. | |
11697 | * machoread.c (macho_symfile_offsets): Update. | |
11698 | * jit.c (jit_bfd_try_read_symtab): Update. | |
11699 | ||
03afa6ef SM |
11700 | 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
11701 | ||
11702 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
11703 | unittests/utils-selftests.c. | |
11704 | * unittests/utils-selftests.c: New file. | |
11705 | ||
3ae9ce5d TT |
11706 | 2018-03-14 Tom Tromey <tom@tromey.com> |
11707 | ||
11708 | PR cli/14977: | |
11709 | * printcmd.c (printf_c_string, printf_wide_c_string): Special case | |
11710 | for NULL. | |
11711 | ||
b8c2339b TT |
11712 | 2018-03-14 Tom Tromey <tom@tromey.com> |
11713 | ||
11714 | PR cli/19918: | |
11715 | * printcmd.c (printf_pointer): Allow "-" in format. | |
11716 | ||
80ae639d TT |
11717 | 2018-03-14 Tom Tromey <tom@tromey.com> |
11718 | ||
11719 | * printcmd.c (_initialize_printcmd): Add usage to printf. | |
11720 | ||
0d671d99 YQ |
11721 | 2018-03-14 Yao Qi <qiyao@sourceware.org> |
11722 | ||
11723 | * MAINTAINERS: Update my email address. | |
11724 | ||
b577b6af TT |
11725 | 2018-03-13 Tom Tromey <tom@tromey.com> |
11726 | ||
11727 | * machoread.c (macho_check_dsym): Change filenamep to a | |
11728 | std::string*. | |
11729 | (macho_symfile_read): Update. | |
11730 | * symfile.c (load_command): Use std::string. | |
11731 | ||
89a3b63e AB |
11732 | 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com> |
11733 | ||
11734 | * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization | |
11735 | to error message string. | |
11736 | (riscv_register_name): Use xsnprintf instead of sprintf. | |
11737 | (riscv_insn::fetch_instruction): Use gdb_assert instead of | |
11738 | internal_error. | |
11739 | (riscv_print_arg_location): Use gdb_assert_not_reached instead of | |
11740 | error. | |
11741 | (riscv_push_dummy_call): Likewise. | |
11742 | ||
984c7238 TT |
11743 | 2018-03-12 Tom Tromey <tom@tromey.com> |
11744 | ||
11745 | * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix): | |
11746 | Use gdb::byte_vector. | |
11747 | * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector. | |
11748 | ||
933522d1 YQ |
11749 | 2018-03-12 Yao Qi <yao.qi@linaro.org> |
11750 | ||
11751 | * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change | |
11752 | parameter type to readable_regcache. | |
11753 | * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update | |
11754 | the declaration. | |
11755 | ||
be2daae6 TT |
11756 | 2018-03-11 Tom Tromey <tom@tromey.com> |
11757 | ||
11758 | * dwarf2read.c (struct nextfield): Add initializers. | |
11759 | (struct nextfnfield): Remove. | |
11760 | (struct fnfieldlist): Add initializers. Remove "length" and | |
11761 | "head", use std::vector. | |
11762 | (struct decl_field_list): Remove. | |
11763 | (struct field_info): Add initializers. | |
11764 | <fields, baseclasses>: Now std::vector. | |
11765 | <nbaseclasses, nfnfields, typedef_field_list_count, | |
11766 | nested_types_list_count>: Remove. | |
11767 | (dwarf2_add_field, dwarf2_add_type_defn) | |
11768 | (dwarf2_attach_fields_to_type, dwarf2_add_member_fn) | |
11769 | (dwarf2_attach_fn_fields_to_type, handle_struct_member_die) | |
11770 | (process_structure_scope): Update. | |
11771 | ||
484cf504 TT |
11772 | 2018-03-11 Tom Tromey <tom@tromey.com> |
11773 | ||
11774 | * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable | |
11775 | for use by std::sort. | |
11776 | (build_type_psymtabs_1): Use std::vector. | |
11777 | ||
9bd8e0b0 EZ |
11778 | 2018-03-09 Eli Zaretskii <eliz@gnu.org> |
11779 | ||
11780 | * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, | |
11781 | and LIBMPFR in the printed configuration. | |
11782 | ||
5dc1a704 TT |
11783 | 2018-03-08 Tom Tromey <tom@tromey.com> |
11784 | ||
11785 | * source.c (get_filename_and_charpos): Use scoped_fd. | |
11786 | * nto-procfs.c (procfs_open_1): Use scoped_fd. | |
11787 | (procfs_pidlist): Likewise. | |
11788 | * procfs.c (proc_get_LDT_entry): Use scoped_fd. | |
11789 | (iterate_over_mappings): Likewise. | |
11790 | ||
fdf07f3a TT |
11791 | 2018-03-08 Tom Tromey <tom@tromey.com> |
11792 | ||
11793 | * infcall.c (struct call_return_meta_info) | |
11794 | <stack_temporaries_enabled>: Remove. | |
11795 | (get_call_return_value, call_function_by_hand_dummy): Update. | |
11796 | * thread.c (disable_thread_stack_temporaries): Remove. | |
11797 | (enable_thread_stack_temporaries): Remove. | |
11798 | (thread_stack_temporaries_enabled_p): Return bool. | |
11799 | (push_thread_stack_temporary, value_in_thread_stack_temporaries) | |
11800 | (get_last_thread_stack_temporary): Update. | |
11801 | * eval.c (evaluate_subexp): Update. | |
11802 | * gdbthread.h (class enable_thread_stack_temporaries): Now a | |
11803 | class, not a function. | |
11804 | (value_ptr, value_vec): Remove typedefs. | |
11805 | (class thread_info) <stack_temporaries_enabled>: Now bool. | |
11806 | <stack_temporaries>: Now a std::vector. | |
11807 | (thread_stack_temporaries_enabled_p) | |
11808 | (value_in_thread_stack_temporaries): Return bool. | |
11809 | ||
567a3e54 SM |
11810 | 2018-03-08 Simon Marchi <simon.marchi@ericsson.com> |
11811 | ||
11812 | * remote.c (putpkt_binary): Fix omitted bytes reporting. | |
11813 | (getpkt_or_notif_sane_1): Likewise. | |
11814 | ||
00b40057 SM |
11815 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
11816 | ||
11817 | * build-id.c (build_id_to_debug_bfd): Use std::string. | |
11818 | ||
a8dbfd58 SM |
11819 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
11820 | ||
11821 | * build-id.c (find_separate_debug_file_by_buildid): Return | |
11822 | std::string. | |
11823 | * build-id.h (find_separate_debug_file_by_buildid): Return | |
11824 | std::string. | |
11825 | * coffread.c (coff_symfile_read): Adjust to std::string. | |
11826 | * elfread.c (elf_symfile_read): Adjust to std::string. | |
11827 | * symfile.c (separate_debug_file_exists): Change parameter to | |
11828 | std::string. | |
11829 | (find_separate_debug_file): Return std::string. | |
11830 | (find_separate_debug_file_by_debuglink): Return std::string. | |
11831 | * symfile.h (find_separate_debug_file_by_debuglink): Return | |
11832 | std::string. | |
11833 | ||
e6a58aa8 SM |
11834 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
11835 | ||
11836 | * common/xml-utils.c (xml_escape_text): Move code to... | |
11837 | (xml_escape_text_append): ... this new function. | |
11838 | * common/xml-utils.h (xml_escape_text_append): New declaration. | |
11839 | * unittests/xml-utils-selftests.c (test_xml_escape_text_append): | |
11840 | New function. | |
11841 | (_initialize_xml_utils): register test_xml_escape_text_append as | |
11842 | a selftest. | |
11843 | ||
4ef0bef6 AH |
11844 | 2018-03-07 Alan Hayward <alan.hayward@arm.com> |
11845 | ||
11846 | * defs.h: Remove MAX_REGISTER_SIZE. | |
11847 | * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE | |
11848 | asserts. | |
11849 | * python/py-unwind.c (pyuw_sniffer): Likewise. | |
11850 | ||
e0d3522b TT |
11851 | 2018-03-07 Tom Tromey <tom@tromey.com> |
11852 | ||
11853 | * linux-tdep.c (linux_info_proc): Update. | |
11854 | * target.h (struct target_ops) <to_fileio_readlink>: Return | |
11855 | optional<string>. | |
11856 | (target_fileio_readlink): Return optional<string>. | |
11857 | * remote.c (remote_hostio_readlink): Return optional<string>. | |
11858 | * inf-child.c (inf_child_fileio_readlink): Return | |
11859 | optional<string>. | |
11860 | * target.c (target_fileio_readlink): Return optional<string>. | |
11861 | ||
ea005f31 AB |
11862 | 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com> |
11863 | ||
11864 | * regcache.c (cooked_read_test): Add riscv to the list of | |
11865 | architectures that have a save_reggroup. | |
11866 | ||
e95a97d4 AA |
11867 | 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11868 | ||
11869 | * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given | |
11870 | value is not a dynamic class object. | |
11871 | ||
d8344f3d TT |
11872 | 2018-03-06 Tom Tromey <tom@tromey.com> |
11873 | ||
11874 | * rust-exp.y: Formatting fixes. | |
11875 | ||
9add17f2 AB |
11876 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11877 | ||
11878 | * riscv-tdep.c (riscv_register_name): Remove target description | |
11879 | support. | |
11880 | (riscv_gdbarch_init): Remove target description check. | |
11881 | ||
c9486dfe AB |
11882 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11883 | ||
11884 | * riscv-tdep.c: Remove 'Contributed by ...' lines from header | |
11885 | comment. | |
11886 | * riscv-tdep.h: Likewise. | |
11887 | ||
d74aff3d AB |
11888 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11889 | ||
11890 | * riscv-tdep.c (riscv_pseudo_register_read): Delete. | |
11891 | (riscv_pseudo_register_write): Delete. | |
11892 | (riscv_gdbarch_init): Remove all use of pseudo registers. | |
11893 | ||
7ea78b59 SM |
11894 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
11895 | ||
11896 | * record-btrace.c (btrace_print_lines): Replace cleanup | |
11897 | parameter with RAII equivalents. | |
11898 | (btrace_insn_history): Replace cleanup with RAII equivalents. | |
11899 | * ui-out.h (make_cleanup_ui_out_list_begin_end, | |
11900 | make_cleanup_ui_out_tuple_begin_end): Remove. | |
11901 | * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end, | |
11902 | make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end, | |
11903 | make_cleanup_ui_out_list_begin_end): Remove. | |
11904 | ||
53127008 SM |
11905 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
11906 | ||
11907 | * record-btrace.c (record_btrace_maybe_mark_async_event): Change | |
11908 | parameter types to std::vector. Use bool. | |
11909 | (record_btrace_wait): Replace VEC(tp_t) with | |
11910 | std::vector<thread_info *>. | |
11911 | * common/gdb_vecs.h (unordered_remove, ordered_remove): New. | |
11912 | ||
228f1508 SM |
11913 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
11914 | ||
11915 | * record-btrace.c (record_btrace_disable_callback): Remove. | |
11916 | (struct scoped_btrace_disable): New. | |
11917 | (record_btrace_open): Use scoped_btrace_disable. | |
11918 | ||
b2970c23 AB |
11919 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11920 | ||
11921 | * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for | |
11922 | reading values from registers. | |
11923 | ||
fb294655 AB |
11924 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11925 | ||
11926 | * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz | |
11927 | where appropriate. | |
11928 | ||
cab5bb9d AB |
11929 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11930 | ||
11931 | * riscv-tdep.c (riscv_print_arg_location): Add header comment, | |
11932 | change parameter type. Use GDB's print functions, and use | |
11933 | core_addr_to_string where appropriate. | |
11934 | (riscv_push_dummy_call): Use core_addr_to_string where | |
11935 | appropriate, update call to riscv_print_arg_location, and reindent | |
11936 | a few lines. | |
11937 | (riscv_return_value): Update call to riscv_print_arg_location. | |
11938 | ||
dbbb1059 AB |
11939 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11940 | Tim Newsome <tim@sifive.com> | |
11941 | Albert Ou <a0u@eecs.berkeley.edu> | |
11942 | Darius Rad <darius@bluespec.com> | |
11943 | ||
11944 | * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o | |
11945 | (HFILES_NO_SRCDIR): Add riscv-tdep.h. | |
11946 | (ALLDEPFILES): Add riscv-tdep.c | |
11947 | * configure.tgt: Add riscv support. | |
11948 | * riscv-tdep.c: New file. | |
11949 | * riscv-tdep.h: New file. | |
11950 | * NEWS: Mention new target. | |
11951 | * MAINTAINERS: Add entry for riscv. | |
11952 | ||
5dc43913 AB |
11953 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11954 | ||
11955 | * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized | |
11956 | fields within aggregates. | |
11957 | ||
3dea1ef7 SM |
11958 | 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca> |
11959 | ||
11960 | * record-btrace.c (btrace_print_lines): Change type of flags to | |
11961 | gdb_disassembly_flags. | |
11962 | ||
7efba073 JB |
11963 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
11964 | ||
11965 | * fbsd-nat.c: Include "inf-ptrace.h". | |
11966 | (USE_SIGTRAP_SIGINFO): Conditionally define. | |
11967 | [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function. | |
11968 | (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap". | |
11969 | [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New | |
11970 | function. | |
11971 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint): | |
11972 | Likewise. | |
11973 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint): | |
11974 | Likewise. | |
11975 | (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set | |
11976 | "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint", | |
11977 | "supports_stopped_by_hw_breakpoint" target methods. | |
11978 | ||
386a8676 JB |
11979 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
11980 | ||
11981 | * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat". | |
11982 | * fbsd-nat.c (debug_fbsd_nat): New variable. | |
11983 | (show_fbsd_nat_debug): New function. | |
11984 | (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled. | |
11985 | (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command. | |
11986 | ||
12279366 JB |
11987 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
11988 | ||
11989 | * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function. | |
11990 | * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New | |
11991 | prototype. | |
11992 | * x86-nat.c (x86_stopped_by_hw_breakpoint): New function. | |
11993 | (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target | |
11994 | method. | |
11995 | ||
54693cf5 SM |
11996 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
11997 | ||
11998 | * common/gdb_vecs.c (free_char_ptr_vec): Remove. | |
11999 | * common/gdb_vecs.h (free_char_ptr_vec): Remove. | |
12000 | ||
ccb2231c SM |
12001 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
12002 | ||
12003 | * charset.c (struct charset_vector): New. | |
12004 | (charsets): Change type to charset_vector. | |
12005 | (find_charset_names): Adjust. | |
12006 | (add_one): Adjust. | |
12007 | (_initialize_charset): Adjust. | |
12008 | ||
6fb16ce6 SM |
12009 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
12010 | ||
12011 | * progspace.h (struct program_space) <deleted_solibs>: Change | |
12012 | type to std::vector<std::string>. | |
12013 | * progspace.c (clear_program_space_solib_cache): Adjust. | |
12014 | * breakpoint.c (print_solib_event): Adjust. | |
12015 | (check_status_catch_solib): Adjust. | |
12016 | * solib.c (update_solib_list): Adjust. | |
12017 | * ui-out.h (class ui_out) <field_string>: New overload. | |
12018 | * ui-out.c (ui_out::field_string): New overload. | |
12019 | ||
564b1e3f SM |
12020 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
12021 | ||
12022 | * progspace.h (struct program_space): Add constructor and | |
12023 | destructor, initialize fields. | |
12024 | (add_program_space): Remove. | |
12025 | * progspace.c (add_program_space): Rename to... | |
12026 | (program_space::program_space): ... this. | |
12027 | (release_program_space): Rename to... | |
12028 | (program_space::~program_space): ... this. | |
12029 | (delete_program_space): Use delete to delete program_space. | |
12030 | (initialize_progspace): Use new to allocate program_space. | |
12031 | * inferior.c (add_inferior_with_spaces): Likewise. | |
12032 | (clone_inferior_command): Likewise. | |
12033 | * infrun.c (follow_fork_inferior): Likewise. | |
12034 | (handle_vfork_child_exec_or_exit): Likewise. | |
12035 | ||
e80aaf61 SM |
12036 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
12037 | ||
12038 | * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove. | |
12039 | (delim_string_to_char_ptr_vec): Return std::vector of | |
12040 | gdb::unique_xmalloc_ptr. | |
12041 | (dirnames_to_char_ptr_vec_append): Take std::vector of | |
12042 | gdb::unique_xmalloc_ptr. | |
12043 | (dirnames_to_char_ptr_vec): Return std::vector of | |
12044 | gdb::unique_xmalloc_ptr. | |
12045 | * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): | |
12046 | Take std::vector of gdb::unique_xmalloc_ptr, adjust the code. | |
12047 | (delim_string_to_char_ptr_vec): Return an std::vector of | |
12048 | gdb::unique_xmalloc_ptr, adjust the code. | |
12049 | (dirnames_to_char_ptr_vec_append): Take an std::vector of | |
12050 | gdb::unique_xmalloc_ptr, adjust the code. | |
12051 | (dirnames_to_char_ptr_vec): Return an std::vector of | |
12052 | gdb::unique_xmalloc_ptr, adjust the code. | |
12053 | * auto-load.c (auto_load_safe_path_vec): Change type to | |
12054 | std::vector of gdb::unique_xmalloc_ptr. | |
12055 | (auto_load_expand_dir_vars): Return an std::vector of | |
12056 | gdb::unique_xmalloc_ptr, adjust the code. | |
12057 | (auto_load_safe_path_vec_update): Adjust. | |
12058 | (filename_is_in_auto_load_safe_path_vec): Adjust. | |
12059 | (auto_load_objfile_script_1): Adjust. | |
12060 | * build-id.c (build_id_to_debug_bfd): Adjust. | |
12061 | * linux-thread-db.c (thread_db_load_search): Adjust. | |
12062 | * source.c (add_path): Adjust. | |
12063 | (openp): Adjust. | |
12064 | * symfile.c (find_separate_debug_file): Adjust. | |
12065 | * utils.c (do_free_char_ptr_vec): Remove. | |
12066 | (make_cleanup_free_char_ptr_vec): Remove. | |
12067 | ||
ab818ade SDJ |
12068 | 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com> |
12069 | ||
12070 | PR gdb/22907 | |
12071 | * common/pathstuff.c: Conditionally include "<windows.h>". | |
12072 | ||
e1e6f073 GS |
12073 | 2018-03-01 Georg Sauthoff <mail@georg.so> |
12074 | ||
12075 | PR gdb/22888 | |
12076 | * gcore.in: Quote variables and switch interpreter to bash. | |
12077 | ||
c7b15a66 TT |
12078 | 2018-03-01 Tom Tromey <tom@tromey.com> |
12079 | ||
12080 | * dwarf2read.c (alloc_discriminant_info): Fix default_index | |
12081 | assertion. Add assertion for discriminant_index. | |
12082 | (quirk_rust_enum): Use correct base type name in univariant case. | |
12083 | ||
0cb7c7b0 SM |
12084 | 2018-03-01 Simon Marchi <simon.marchi@ericsson.com> |
12085 | ||
12086 | * record.c (get_call_history_modifiers): Return a | |
12087 | record_print_flags. | |
12088 | (cmd_record_call_history): Adjust. | |
12089 | * record-btrace.c (record_btrace_call_history): Adjust. | |
12090 | (record_btrace_call_history_range): Adjust. | |
12091 | (record_btrace_call_history_from): Adjust. | |
12092 | * target-debug.h (target_debug_print_record_print_flags): New. | |
12093 | * target-delegates.c: Re-generate. | |
12094 | * target.c (target_call_history): Change flags type. | |
12095 | (target_call_history_from): Likewise. | |
12096 | (target_call_history_range): Likewise. | |
12097 | * target.h (struct target_ops) <target_call_history>: Likewise. | |
12098 | (target_call_history_from): Likewise. | |
12099 | (target_call_history_range): Likewise. | |
12100 | ||
25e3c82c SDJ |
12101 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
12102 | Simon Marchi <simon.marchi@polymtl.ca> | |
12103 | ||
12104 | * common/common-utils.c: Include "sys/stat.h". | |
12105 | (is_regular_file): Move here from "source.c"; change return | |
12106 | type to "bool". | |
12107 | * common/common-utils.h (is_regular_file): New prototype. | |
12108 | * common/pathstuff.c (contains_dir_separator): New function. | |
12109 | * common/pathstuff.h (contains_dir_separator): New prototype. | |
12110 | * source.c: Don't include "sys/stat.h". | |
12111 | (is_regular_file): Move to "common/common-utils.c". | |
12112 | ||
b4987c95 SDJ |
12113 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
12114 | ||
12115 | * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c". | |
12116 | (HFILES_NO_SRCDIR): Add "common/pathstuff.h". | |
12117 | * auto-load.c: Include "common/pathstuff.h". | |
12118 | * common/common-def.h (current_directory): Move here. | |
12119 | * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New | |
12120 | function. | |
12121 | * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New | |
12122 | prototype. | |
12123 | * common/pathstuff.c: New file. | |
12124 | * common/pathstuff.h: New file. | |
12125 | * compile/compile.c: Include "common/pathstuff.h". | |
12126 | * defs.h (current_directory): Move to "common/common-defs.h". | |
12127 | * dwarf2read.c: Include "common/pathstuff.h". | |
12128 | * exec.c: Likewise. | |
12129 | * guile/scm-safe-call.c: Likewise. | |
12130 | * linux-thread-db.c: Likewise. | |
12131 | * main.c: Likewise. | |
12132 | * nto-tdep.c: Likewise. | |
12133 | * objfiles.c: Likewise. | |
12134 | * source.c: Likewise. | |
12135 | * symtab.c: Likewise. | |
12136 | * utils.c: Include "common/pathstuff.h". | |
12137 | (gdb_realpath): Move to "common/pathstuff.c". | |
12138 | (gdb_realpath_keepfile): Likewise. | |
12139 | (gdb_abspath): Likewise. | |
12140 | * utils.h (gdb_realpath): Move to "common/pathstuff.h". | |
12141 | (gdb_realpath_keepfile): Likewise. | |
12142 | (gdb_abspath): Likewise. | |
12143 | ||
f169cfdc JB |
12144 | 2018-02-28 John Baldwin <jhb@FreeBSD.org> |
12145 | ||
12146 | * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a | |
12147 | wildcard process pid for super_resume for kernels with a | |
12148 | specific bug. | |
12149 | ||
e05cac70 PM |
12150 | 2018-02-27 Phil Muldoon <pmuldoon@redhat.com> |
12151 | ||
12152 | * compile/compile.c (get_args): Add additional comments | |
12153 | explaining function. | |
12154 | ||
55089490 TT |
12155 | 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca> |
12156 | Tom Tromey <tom@tromey.com> | |
12157 | ||
12158 | * target.h (memory_write_request_s): Remove typedef. Don't define | |
12159 | VEC. | |
12160 | (target_write_memory_blocks): Change argument to std::vector. | |
12161 | (struct memory_write_request): Add constructor. | |
12162 | * target-memory.c (compare_block_starting_address): Return bool. | |
12163 | Change argument types. | |
12164 | (claim_memory): Change arguments to use std::vector. | |
12165 | (split_regular_and_flash_blocks, blocks_to_erase) | |
12166 | (compute_garbled_blocks): Likewise. | |
12167 | (cleanup_request_data, cleanup_write_requests_vector): Remove. | |
12168 | (target_write_memory_blocks): Change argument to std::vector. | |
12169 | * symfile.c (struct load_section_data): Add constructor and | |
12170 | destructor. Use std::vector for "requests". | |
12171 | (struct load_progress_data): Add initializers. | |
12172 | (load_section_callback): Update. Use "new". | |
12173 | (clear_memory_write_data): Remove. | |
12174 | (generic_load): Update. | |
12175 | ||
0c305b61 AH |
12176 | 2018-02-27 Alan Hayward <alan.hayward@arm.com> |
12177 | ||
12178 | * arch/aarch64.h: Use common/tdesc.h. | |
12179 | ||
c5196c92 MR |
12180 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
12181 | ||
12182 | * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD | |
12183 | architecture with a 64-bit ABI. | |
12184 | ||
37c33887 MR |
12185 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
12186 | ||
12187 | * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination | |
12188 | ahead of target description loading. | |
12189 | ||
d4dd3282 TT |
12190 | 2018-02-26 Tom Tromey <tom@tromey.com> |
12191 | ||
12192 | * stack.c (backtrace_command_1): Update. | |
12193 | * python/python-internal.h (gdbpy_apply_frame_filter): Change type | |
12194 | of "flags". | |
12195 | * python/py-framefilter.c (py_print_frame) | |
12196 | (gdbpy_apply_frame_filter): Change type of "flags". | |
12197 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type | |
12198 | of "flags". | |
12199 | (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals) | |
12200 | (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update. | |
12201 | * extension.h (enum frame_filter_flag): Rename from | |
12202 | frame_filter_flags. | |
12203 | (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE. | |
12204 | (apply_ext_lang_frame_filter): Change type of "flags". | |
12205 | * extension.c (apply_ext_lang_frame_filter): Change type of | |
12206 | "flags". | |
12207 | * extension-priv.h (struct extension_language_ops) | |
12208 | <apply_frame_filter>: Change type of "flags". | |
12209 | ||
6893c19a TT |
12210 | 2018-02-26 Tom Tromey <tom@tromey.com> |
12211 | ||
12212 | PR python/16497: | |
12213 | * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix | |
12214 | off-by-one in py_end computation. | |
12215 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle | |
12216 | PRINT_MORE_FRAMES. | |
12217 | * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New | |
12218 | constant. | |
12219 | ||
2ddeaf8a TT |
12220 | 2018-02-26 Tom Tromey <tom@tromey.com> |
12221 | ||
12222 | * dwarf2read.c (struct variant_field): New. | |
12223 | (struct nextfield) <variant>: New field. | |
12224 | (dwarf2_add_field): Handle DW_TAG_variant_part. | |
12225 | (dwarf2_attach_fields_to_type): Attach a discriminant_info to a | |
12226 | discriminated union. | |
12227 | (read_structure_type): Handle DW_TAG_variant_part. | |
12228 | (handle_struct_member_die): New function, extracted from | |
12229 | process_structure_scope. Handle DW_TAG_variant. | |
12230 | (process_structure_scope): Handle discriminated unions. Call | |
12231 | handle_struct_member_die. | |
12232 | ||
c9317f21 TT |
12233 | 2018-02-26 Tom Tromey <tom@tromey.com> |
12234 | ||
12235 | * rust-lang.h (rust_last_path_segment): Declare. | |
12236 | * rust-lang.c (rust_last_path_segment): Now public. Change | |
12237 | contract. | |
12238 | (struct disr_info): Remove. | |
12239 | (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL) | |
12240 | (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged) | |
12241 | (rust_get_disr_info, rust_tuple_variant_type_p): Remove. | |
12242 | (rust_enum_p, rust_enum_variant): New function. | |
12243 | (rust_underscore_fields): Remove "offset" parameter. | |
12244 | (rust_print_enum): New function. | |
12245 | (rust_val_print) <TYPE_CODE_UNION>: Remove enum code. | |
12246 | <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate. | |
12247 | (rust_print_struct_def): Add "for_rust_enum" parameter. Handle | |
12248 | enums. | |
12249 | (rust_internal_print_type): New function, from rust_print_type. | |
12250 | Remove enum code. | |
12251 | (rust_print_type): Call rust_internal_print_type. | |
12252 | (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>: | |
12253 | Update enum handling. | |
12254 | * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field. | |
12255 | (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum) | |
12256 | (rust_union_quirks): New functions. | |
12257 | (process_full_comp_unit, process_full_type_unit): Call | |
12258 | rust_union_quirks. | |
12259 | (process_structure_scope): Update rust_unions if necessary. | |
12260 | ||
7c22600a TT |
12261 | 2018-02-26 Tom Tromey <tom@tromey.com> |
12262 | ||
12263 | * value.h (value_union_variant): Declare. | |
12264 | * valops.c (value_union_variant): New function. | |
12265 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. | |
12266 | (struct discriminant_info): New. | |
12267 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New | |
12268 | enumerator. | |
12269 | (struct main_type) <flag_discriminated_union>: New field. | |
12270 | ||
15ce8941 TT |
12271 | 2018-02-26 Tom Tromey <tom@tromey.com> |
12272 | ||
12273 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12274 | unittests/unpack-selftests.c. | |
12275 | * unittests/unpack-selftests.c: New file. | |
12276 | * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases. | |
12277 | ||
48fbe735 YQ |
12278 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
12279 | ||
12280 | * dwarf2read.c (struct partial_die_info) <read>: New method. | |
12281 | (read_partial_die): Remove the declaration. | |
12282 | (load_partial_dies): Update. | |
12283 | (partial_die_info::partial_die_info): | |
12284 | (read_partial_die): Change it to partial_die_info::read. | |
12285 | ||
52356b79 YQ |
12286 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
12287 | ||
12288 | * dwarf2read.c (struct partial_die_info) <fixup>: New method. | |
12289 | (fixup_partial_die): Remove declaration. | |
12290 | (scan_partial_symbols): Update. | |
12291 | (partial_die_parent_scope): Likewise. | |
12292 | (partial_die_full_name): Likewise. | |
12293 | (fixup_partial_die): Change it to partial_die_info::fixup. | |
12294 | ||
35cc7ed7 YQ |
12295 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
12296 | ||
12297 | * dwarf2read.c (read_partial_die): Update the declaration. | |
12298 | (load_partial_dies): Caller update. | |
12299 | (read_partial_die): Remove one argument abbrev_len. | |
12300 | ||
6f06d47b YQ |
12301 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
12302 | ||
12303 | * dwarf2read.c (struct partial_die_info): Add ctor, delete | |
12304 | assignment operator. | |
12305 | (load_partial_dies): Use ctor and copy ctor. | |
12306 | (read_partial_die): Update. | |
12307 | (dwarf2_cu::find_partial_die): Use ctor. | |
12308 | ||
d590ff25 YQ |
12309 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
12310 | ||
12311 | * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method. | |
12312 | (find_partial_die_in_comp_unit): Change it to | |
12313 | dwarf2_cu::find_partial_die. | |
12314 | (find_partial_die): Update. | |
12315 | ||
fd0a254f YQ |
12316 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
12317 | ||
12318 | * dwarf2read.c (read_partial_die): Remove the code checking abbrev | |
12319 | is NULL. | |
12320 | ||
cd9983dd YQ |
12321 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
12322 | ||
12323 | * dwarf2read.c (load_partial_dies): Move the location of XOBNEW. | |
12324 | ||
f46cd62a AH |
12325 | 2018-02-26 Alan Hayward <alan.hayward@arm.com> |
12326 | ||
12327 | * arch/amd64.h: Use common/tdesc.h. | |
12328 | * arch/i386.c: Likewise. | |
12329 | * arch/i386.h: Likewise. | |
12330 | * arch/tic6x.c: Likewise. | |
12331 | * arch/tdesc.h: Move file from here... | |
12332 | * common/tdesc.h: ...to here. | |
12333 | * features/aarch64-core.c: Regenerate. | |
12334 | * features/aarch64-fpu.c: Regenerate. | |
12335 | * features/i386/32bit-avx.c: Regenerate. | |
12336 | * features/i386/32bit-avx512.c: Regenerate. | |
12337 | * features/i386/32bit-core.c: Regenerate. | |
12338 | * features/i386/32bit-linux.c: Regenerate. | |
12339 | * features/i386/32bit-mpx.c: Regenerate. | |
12340 | * features/i386/32bit-pkeys.c: Regenerate. | |
12341 | * features/i386/32bit-sse.c: Regenerate. | |
12342 | * features/i386/64bit-avx.c: Regenerate. | |
12343 | * features/i386/64bit-avx512.c: Regenerate. | |
12344 | * features/i386/64bit-core.c: Regenerate. | |
12345 | * features/i386/64bit-linux.c: Regenerate. | |
12346 | * features/i386/64bit-mpx.c: Regenerate. | |
12347 | * features/i386/64bit-pkeys.c: Regenerate. | |
12348 | * features/i386/64bit-segments.c: Regenerate. | |
12349 | * features/i386/64bit-sse.c: Regenerate. | |
12350 | * features/i386/x32-core.c: Regenerate. | |
12351 | * features/tic6x-c6xp.c: Regenerate. | |
12352 | * features/tic6x-core.c: Regenerate. | |
12353 | * features/tic6x-gp.c: Regenerate. | |
12354 | * target-descriptions.c: Use common/tdesc.h. | |
12355 | * target-descriptions.h: Likewise. | |
12356 | ||
9b292f68 TT |
12357 | 2018-02-24 Tom Tromey <tom@tromey.com> |
12358 | ||
12359 | * linux-thread-db.c (try_thread_db_load_from_pdir_1) | |
12360 | (try_thread_db_load_from_dir, thread_db_load_search): Use | |
12361 | std::string. | |
12362 | (info_auto_load_libthread_db_compare): Return bool. Change | |
12363 | argument types. | |
12364 | (info_auto_load_libthread_db): Use std::vector, std::string. | |
12365 | Remove cleanups. | |
12366 | ||
281d762b TT |
12367 | 2018-02-24 Tom Tromey <tom@tromey.com> |
12368 | ||
12369 | * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a | |
12370 | std::string. | |
12371 | * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a | |
12372 | std::string*. | |
12373 | * gdbarch.c: Rebuild. | |
12374 | * gdbarch.h: Rebuild. | |
12375 | * breakpoint.c (check_fast_tracepoint_sals): Use std::string. | |
12376 | * arch-utils.h (default_fast_tracepoint_valid_at): Update. | |
12377 | * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a | |
12378 | std::string*. | |
12379 | ||
9d8780f0 SM |
12380 | 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
12381 | ||
12382 | * gdbtypes.h (sect_offset): Change type to uint64_t. | |
12383 | (sect_offset_str): New function. | |
12384 | * dwarf2read.c (create_addrmap_from_aranges): Use | |
12385 | sect_offset_str. | |
12386 | (error_check_comp_unit_head): Likewise. | |
12387 | (create_debug_type_hash_table): Likewise. | |
12388 | (read_cutu_die_from_dwo): Likewise. | |
12389 | (init_cutu_and_read_dies): Likewise. | |
12390 | (init_cutu_and_read_dies_no_follow): Likewise. | |
12391 | (process_psymtab_comp_unit_reader): Likewise. | |
12392 | (partial_die_parent_scope): Likewise. | |
12393 | (peek_die_abbrev): Likewise. | |
12394 | (process_queue): Likewise. | |
12395 | (dwarf2_physname): Likewise. | |
12396 | (read_namespace_alias): Likewise. | |
12397 | (read_import_statement): Likewise. | |
12398 | (create_dwo_cu_reader): Likewise. | |
12399 | (create_cus_hash_table): Likewise. | |
12400 | (lookup_dwo_cutu): Likewise. | |
12401 | (inherit_abstract_dies): Likewise. | |
12402 | (read_func_scope): Likewise. | |
12403 | (read_call_site_scope): Likewise. | |
12404 | (dwarf2_add_member_fn): Likewise. | |
12405 | (read_common_block): Likewise. | |
12406 | (read_module_type): Likewise. | |
12407 | (read_typedef): Likewise. | |
12408 | (read_subrange_type): Likewise. | |
12409 | (load_partial_dies): Likewise. | |
12410 | (read_partial_die): Likewise. | |
12411 | (find_partial_die): Likewise. | |
12412 | (read_str_index): Likewise. | |
12413 | (dwarf2_string_attr): Likewise. | |
12414 | (build_error_marker_type): Likewise. | |
12415 | (lookup_die_type): Likewise. | |
12416 | (dump_die_shallow): Likewise. | |
12417 | (follow_die_ref): Likewise. | |
12418 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
12419 | (dwarf2_fetch_constant_bytes): Likewise. | |
12420 | (follow_die_sig): Likewise. | |
12421 | (get_signatured_type): Likewise. | |
12422 | (get_DW_AT_signature_type): Likewise. | |
12423 | (dwarf2_find_containing_comp_unit): Likewise. | |
12424 | (set_die_type): Likewise. | |
12425 | ||
8ec57239 JB |
12426 | 2018-02-21 John Baldwin <jhb@FreeBSD.org> |
12427 | ||
12428 | * arch/aarch64.c: Include "common-defs.h". | |
12429 | * arch/amd64.c: Likewise. | |
12430 | * arch/i386.c: Likewise. | |
12431 | ||
3eac2b65 TT |
12432 | 2018-02-21 Tom Tromey <tom@tromey.com> |
12433 | ||
12434 | * value.h: (extract_field_op): Update. | |
12435 | * eval.c (extract_field_op): Return a const char *. | |
12436 | * expression.h (parse_expression_for_completion): Update. | |
12437 | * completer.c (complete_expression): Update. | |
12438 | (add_struct_fields): Make fieldname const. | |
12439 | * parse.c (expout_completion_name): Now a unique_xmalloc_ptr. | |
12440 | (mark_completion_tag, parse_exp_in_context_1): Update. | |
12441 | (parse_expression_for_completion): Change "name" to | |
12442 | unique_xmalloc_ptr*. | |
12443 | ||
6ccb583f TT |
12444 | 2018-02-21 Tom Tromey <tom@tromey.com> |
12445 | ||
12446 | * infcall.c (call_function_by_hand_dummy): Use std::vector. | |
12447 | ||
c113ed0c YQ |
12448 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12449 | ||
12450 | * avr-tdep.c (avr_read_pc): Change parameter type to | |
12451 | readable_regcache. | |
12452 | * gdbarch.sh (read_pc): Likewise. | |
12453 | * gdbarch.c: Re-generated. | |
12454 | * gdbarch.h: Re-generated. | |
12455 | * hppa-tdep.c (hppa_read_pc): Change parameter type to | |
12456 | readable_regcache. | |
12457 | * ia64-tdep.c (ia64_read_pc): Likewise. | |
12458 | * mips-tdep.c (mips_read_pc): Likewise. | |
12459 | * spu-tdep.c (spu_read_pc): Likewise. | |
12460 | ||
4c74fe6b YQ |
12461 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12462 | ||
12463 | * Makefile.in (COMMON_SFILES): Add regcache-dump.c | |
12464 | * regcache-dump.c: New file. | |
12465 | * regcache.c: Move register_dump to regcache-dump.c. | |
12466 | (maintenance_print_registers): Likewise. | |
12467 | (maintenance_print_raw_registers): Likewise. | |
12468 | (maintenance_print_cooked_registers): Likewise. | |
12469 | (maintenance_print_register_groups): Likewise. | |
12470 | (maintenance_print_remote_registers): Likewise. | |
12471 | (_initialize_regcache): Likewise. | |
12472 | * regcache.h (register_dump): Moved from regcache.c. | |
12473 | ||
796bb026 YQ |
12474 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12475 | ||
12476 | * regcache.c (regcache::regcache): Update. | |
12477 | (regcache::invalidate): Move it to detached_regcache::invalidate. | |
12478 | (get_thread_arch_aspace_regcache): Update. | |
12479 | (regcache::raw_update): Update. | |
12480 | (regcache::cooked_read): Remove some code. | |
12481 | (regcache::cooked_read_value): Likewise. | |
12482 | (regcache::raw_write): Remove assert on m_readonly_p. | |
12483 | (regcache::raw_supply_integer): Move it to | |
12484 | detached_regcache::raw_supply_integer. | |
12485 | (regcache::raw_supply_zeroed): Likewise. | |
12486 | * regcache.h (detached_regcache) <raw_supply_integer>: New | |
12487 | declaration. | |
12488 | <raw_supply_zeroed, invalidate>: Likewise. | |
12489 | (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. | |
12490 | <invalidate>: Likewise. | |
12491 | <m_readonly_p>: Removed. | |
12492 | ||
215c69dc YQ |
12493 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12494 | ||
12495 | * infcmd.c (get_return_value): Let stop_regs point to | |
12496 | get_current_regcache. | |
12497 | * regcache.c (regcache::regcache): Remove. | |
12498 | (register_dump_reg_buffer): New class. | |
12499 | (regcache_print): Adjust. | |
12500 | * regcache.h (regcache): Remove constructors. | |
12501 | ||
f3384e66 YQ |
12502 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12503 | ||
12504 | * regcache.c (class register_dump): New class. | |
12505 | (register_dump_regcache, register_dump_none): New class. | |
12506 | (register_dump_remote, register_dump_groups): New class. | |
12507 | (regcache_print): Update. | |
12508 | * regcache.h (regcache_dump_what): Move it to regcache.c. | |
12509 | (regcache) <dump>: Remove. | |
12510 | ||
c8ec2f33 YQ |
12511 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12512 | ||
12513 | * jit.c (struct jit_unwind_private) <regcache>: Change its type to | |
12514 | reg_buffer_rw *. | |
12515 | (jit_unwind_reg_set_impl): Call raw_supply. | |
12516 | (jit_frame_sniffer): Use reg_buffer_rw. | |
12517 | * record-full.c (record_full_core_regbuf): Change its type. | |
12518 | (record_full_core_open_1): Use reg_buffer_rw. | |
12519 | (record_full_close): Likewise. | |
12520 | (record_full_core_fetch_registers): Use regcache->raw_supply. | |
12521 | (record_full_core_store_registers): Likewise. | |
12522 | * regcache.c (regcache::get_register_status): Move it to | |
12523 | reg_buffer. | |
12524 | (regcache_raw_set_cached_value): Remove. | |
12525 | (regcache::raw_set_cached_value): Remove. | |
12526 | (regcache::raw_write): Call raw_supply. | |
12527 | (regcache::raw_supply): Move it to reg_buffer_rw. | |
12528 | * regcache.h (regcache_raw_set_cached_value): Remove. | |
12529 | (reg_buffer_rw): New class. | |
12530 | ||
daf6667d YQ |
12531 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12532 | ||
12533 | * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use | |
12534 | readonly_detached_regcache. | |
12535 | (dummy_frame_prev_register): Use regcache->cooked_read. | |
12536 | * frame.c (frame_save_as_regcache): Change return type. | |
12537 | (frame_pop): Update. | |
12538 | * frame.h (frame_save_as_regcache): Update declaration. | |
12539 | * inferior.h (get_infcall_suspend_state_regcache): Update | |
12540 | declaration. | |
12541 | * infrun.c (infcall_suspend_state) <registers>: use | |
12542 | readonly_detached_regcache. | |
12543 | (save_infcall_suspend_state): Don't use regcache_dup. | |
12544 | (get_infcall_suspend_state_regcache): Change return type. | |
12545 | * linux-fork.c (struct fork_info) <savedregs>: Change to | |
12546 | readonly_detached_regcache. | |
12547 | <pc>: New field. | |
12548 | (fork_save_infrun_state): Don't use regcache_dup. | |
12549 | (info_checkpoints_command): Adjust. | |
12550 | * mi/mi-main.c (register_changed_p): Update declaration. | |
12551 | (mi_cmd_data_list_changed_registers): Use | |
12552 | readonly_detached_regcache. | |
12553 | (register_changed_p): Change parameter type to | |
12554 | readonly_detached_regcache. | |
12555 | * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use | |
12556 | readonly_detached_regcache. | |
12557 | (ppu2spu_sniffer): Construct a new readonly_detached_regcache. | |
12558 | * regcache.c (readonly_detached_regcache::readonly_detached_regcache): | |
12559 | New. | |
12560 | (regcache::save): Move it to reg_buffer. | |
12561 | (regcache::restore): Change parameter type. | |
12562 | (regcache_dup): Remove. | |
12563 | * regcache.h (reg_buffer) <save>: New method. | |
12564 | (readonly_detached_regcache): New class. | |
12565 | * spu-tdep.c (spu2ppu_cache) <regcache>: Use | |
12566 | readonly_detached_regcache. | |
12567 | (spu2ppu_sniffer): Construct a new readonly_detached_regcache. | |
12568 | ||
fc5b8736 YQ |
12569 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12570 | ||
12571 | * frame.c (frame_save_as_regcache): Use regcache method save. | |
12572 | (frame_pop): Use regcache method restore. | |
12573 | * infrun.c (restore_infcall_suspend_state): Likewise. | |
12574 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
12575 | * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method | |
12576 | save. | |
12577 | * regcache.c (regcache_save): Remove. | |
12578 | (regcache::restore): More asserts. | |
12579 | (regcache_cpy): Remove. | |
12580 | * regcache.h (regcache_save): Remove the declaration. | |
12581 | (regcache::restore): Move from private to public. | |
12582 | Remove the friend declaration of regcache_cpy. | |
12583 | (regcache_cpy): Remove declaration. | |
12584 | ||
849d0ba8 YQ |
12585 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12586 | ||
12587 | * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change | |
12588 | parameter type to 'readable_regcache *'. | |
12589 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
12590 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
12591 | (arm_pseudo_read): Likewise. | |
12592 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
12593 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
12594 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
12595 | * gdbarch.c: Re-generated. | |
12596 | * gdbarch.h: Re-generated. | |
12597 | * gdbarch.sh (pseudo_register_read): Change parameter type to | |
12598 | 'readable_regcache *'. | |
12599 | (pseudo_register_read_value): Likewise. | |
12600 | * h8300-tdep.c (pseudo_from_raw_register): Likewise. | |
12601 | (h8300_pseudo_register_read): Likewise. | |
12602 | * hppa-tdep.c (hppa_pseudo_register_read): Likewise. | |
12603 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
12604 | (i386_pseudo_register_read_into_value): Likewise. | |
12605 | (i386_pseudo_register_read_value): Likewise. | |
12606 | * i386-tdep.h (i386_pseudo_register_read_into_value): Update | |
12607 | declaration. | |
12608 | * ia64-tdep.c (ia64_pseudo_register_read): Likewise. | |
12609 | * m32c-tdep.c (m32c_raw_read): Likewise. | |
12610 | (m32c_read_flg): Likewise. | |
12611 | (m32c_banked_register): Likewise. | |
12612 | (m32c_banked_read): Likewise. | |
12613 | (m32c_sb_read): Likewise. | |
12614 | (m32c_part_read): Likewise. | |
12615 | (m32c_cat_read): Likewise. | |
12616 | (m32c_r3r2r1r0_read): Likewise. | |
12617 | (m32c_pseudo_register_read): Likewise. | |
12618 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
12619 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
12620 | (mep_pseudo_cr64_read): Likewise. | |
12621 | (mep_pseudo_register_read): Likewise. | |
12622 | * mips-tdep.c (mips_pseudo_register_read): Likewise. | |
12623 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
12624 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
12625 | * regcache.c (regcache::raw_read): Move it to readable_regcache. | |
12626 | (regcache::cooked_read): Likewise. | |
12627 | (regcache::cooked_read_value): Likewise. | |
12628 | (regcache_cooked_read_signed): | |
12629 | (regcache::cooked_read): Likewise. | |
12630 | * regcache.h (readable_regcache): New class. | |
12631 | (regcache): Inherit readable_regcache. Move some methods to | |
12632 | readable_regcache. | |
12633 | * rl78-tdep.c (rl78_pseudo_register_read): Change | |
12634 | parameter type to 'readable_regcache *'. | |
12635 | * rs6000-tdep.c (do_regcache_raw_read): Remove. | |
12636 | (e500_pseudo_register_read): Change parameter type to | |
12637 | 'readable_regcache *'. | |
12638 | (dfp_pseudo_register_read): Likewise. | |
12639 | (vsx_pseudo_register_read): Likewise. | |
12640 | (efpr_pseudo_register_read): Likewise. | |
12641 | * s390-tdep.c (s390_pseudo_register_read): Likewise. | |
12642 | * sh-tdep.c (sh_pseudo_register_read): Likewise. | |
12643 | * sh64-tdep.c (pseudo_register_read_portions): Likewise. | |
12644 | (sh64_pseudo_register_read): Likewise. | |
12645 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
12646 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
12647 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
12648 | (spu_pseudo_register_read): Likewise. | |
12649 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
12650 | (xtensa_pseudo_register_read): Likewise. | |
12651 | ||
31716595 YQ |
12652 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12653 | ||
12654 | * regcache.c (regcache::regcache): Call reg_buffer ctor. | |
12655 | (regcache::arch): Move it to reg_buffer::arch. | |
12656 | (regcache::register_buffer): Likewise. | |
12657 | (regcache::assert_regnum): Likewise. | |
12658 | (regcache::num_raw_registers): Likewise. | |
12659 | * regcache.h (reg_buffer): New class. | |
12660 | (regcache): Inherit reg_buffer. | |
12661 | ||
7104e59b SM |
12662 | 2018-02-20 Simon Marchi <simon.marchi@ericsson.com> |
12663 | ||
12664 | * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, | |
12665 | gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. | |
12666 | ||
2d8adcbd MM |
12667 | 2018-02-20 Markus Metzger <markus.t.metzger@intel.com> |
12668 | ||
12669 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. | |
12670 | ||
b5884fa7 AH |
12671 | 2018-02-19 Alan Hayward <alan.hayward@arm.com> |
12672 | ||
12673 | * Makefile.in: (COMMON_SFILES): Add common/*.c files. | |
12674 | (SFILES): Remove common/*.c files. | |
12675 | (COMMON_OBS): Remove some *.o files built from common/*.c files. | |
12676 | * common/common.host: Add common reference. | |
12677 | * configure.ac: Likewise. | |
12678 | * configure: Regenerate. | |
12679 | ||
fd90ace4 YQ |
12680 | 2018-02-16 Yao Qi <yao.qi@linaro.org> |
12681 | ||
12682 | * block.c (block_namespace_info): Inherit allocate_on_obstack. | |
12683 | (block_initialize_namespace): Use new. | |
12684 | * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. | |
12685 | (dwarf2_free_objfile): Use delete. | |
12686 | * gdbtypes.c (type_pair): Inherit allocate_on_obstack. | |
12687 | (copy_type_recursive): Use new. | |
12688 | * gdb_obstack.h (allocate_on_obstack): New. | |
12689 | ||
85046ae2 YQ |
12690 | 2018-02-15 Yao Qi <yao.qi@linaro.org> |
12691 | ||
12692 | PR gdb/22849 | |
12693 | * inferior.c (exit_inferior_1): Reset inf->control. | |
12694 | ||
355c559b JB |
12695 | 2018-02-15 Joel Brobecker <brobecker@adacore.com> |
12696 | ||
12697 | * ada-lang.c (ada_to_fixed_value_create): Delete advance | |
12698 | declaration. | |
12699 | ||
980548fd PA |
12700 | 2018-02-14 Pedro Alves <palves@redhat.com> |
12701 | ||
12702 | * frame-unwind.c (frame_unwind_try_unwinder): Always call | |
12703 | frame_cleanup_after_sniffer on exception. | |
12704 | ||
692d6f97 TT |
12705 | 2018-02-14 Tom Tromey <tom@tromey.com> |
12706 | ||
12707 | * solist.h (struct target_so_ops) <bfd_open>: Make pathname | |
12708 | const. | |
12709 | (solib_bfd_open): Make pathname const. | |
12710 | * solib.c (solib_bfd_open): Make pathname const. | |
12711 | * solib-spu.c (spu_bfd_fopen): Make name const. | |
12712 | (spu_bfd_open): Make pathname const. | |
12713 | * solib-darwin.c (darwin_bfd_open): Make pathname const. | |
12714 | * solib-aix.c (solib_aix_bfd_open): Make pathname const. | |
12715 | ||
e0cc99a6 TT |
12716 | 2018-02-14 Tom Tromey <tom@tromey.com> |
12717 | ||
12718 | * symfile.c (symfile_bfd_open): Update. | |
12719 | * source.h (openp, source_full_path_of, find_and_open_source): | |
12720 | Change argument type to unique_xmalloc_ptr. | |
12721 | * source.c (openp): Take a unique_xmalloc_ptr. | |
12722 | (source_full_path_of, find_and_open_source): Likewise. | |
12723 | (open_source_file, symtab_to_fullname): Update. | |
12724 | * solist.h (struct target_so_ops) <find_and_open_solib>: Take a | |
12725 | unique_xmalloc_ptr. | |
12726 | * solib.c (solib_find_1): Use unique_xmalloc_ptr. | |
12727 | (exec_file_find): Update. | |
12728 | * psymtab.c (psymtab_to_fullname): Update. | |
12729 | * nto-tdep.h (nto_find_and_open_solib): Update. | |
12730 | * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a | |
12731 | unique_xmalloc_ptr. | |
12732 | * exec.c (exec_file_attach): Update. | |
12733 | * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. | |
12734 | * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. | |
12735 | ||
b46a8d7c TT |
12736 | 2018-02-14 Tom Tromey <tom@tromey.com> |
12737 | ||
12738 | * solib.c: Include source.h. | |
12739 | * nto-tdep.c: Include source.h. | |
12740 | * mi/mi-cmd-env.c: Include source.h. | |
12741 | * infcmd.c: Include source.h. | |
12742 | * exec.c: Include source.h. | |
12743 | * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
12744 | (add_path, directory_switch, source_path, init_source_path): Move | |
12745 | declarations... | |
12746 | * source.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
12747 | (add_path, directory_switch, source_path, init_source_path): | |
12748 | ...here. | |
12749 | ||
797bc1cb TT |
12750 | 2018-02-14 Tom Tromey <tom@tromey.com> |
12751 | ||
12752 | * solist.h (exec_file_find, solib_find): Return | |
12753 | unique_xmalloc_ptr. | |
12754 | (solib_bfd_fopen): Take a const char *. | |
12755 | * solib.c (solib_find_1): Return unique_xmalloc_ptr. | |
12756 | (exec_file_find, solib_find): Likewise. | |
12757 | (solib_bfd_fopen): Do not take ownership of "pathname". | |
12758 | (solib_bfd_open): Use unique_xmalloc_ptr. | |
12759 | * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. | |
12760 | * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. | |
12761 | * infrun.c (follow_exec): Use unique_xmalloc_ptr. | |
12762 | * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. | |
12763 | ||
f98b2e33 JB |
12764 | 2018-02-14 Joel Brobecker <brobecker@adacore.com> |
12765 | ||
12766 | * ada-lang.c (name_match_type_from_name): Remove reference to | |
12767 | ada_name_for_lookup in function's documentation. | |
12768 | * ada-lang.h (ada_name_for_lookup): Delete declaration. | |
12769 | ||
24b9144d SM |
12770 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
12771 | ||
12772 | * defs.h (enum openp_flags): New enum. | |
12773 | (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): | |
12774 | Move to enum openp_flags. | |
12775 | (openp_flags): New enum flags. | |
12776 | (openp): Change parameter type to openp_flags. | |
12777 | * source.c (openp): Change parameter type to openp_flags. | |
12778 | * cli/cli-cmds.c (find_and_open_script): Use openp_flags. | |
12779 | * dwarf2read.c (try_open_dwop_file): Use openp_flags. | |
12780 | ||
387cd15b SM |
12781 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
12782 | ||
12783 | * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show | |
12784 | per-command. | |
12785 | ||
b303c6f6 AB |
12786 | 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
12787 | ||
12788 | * dwarf2read.c (dwarf2_release_queue): Delete function, move body | |
12789 | into... | |
12790 | (class dwarf2_queue_guard): ...the destructor of this new class. | |
12791 | (dw2_do_instantiate_symtab): Create instance of the new class | |
12792 | dwarf2_queue_guard, remove cleanup. | |
12793 | ||
9c3630e9 TT |
12794 | 2018-02-09 Tom Tromey <tom@tromey.com> |
12795 | ||
12796 | * source.c (find_source_lines): Don't reference past the end of | |
12797 | the vector. | |
12798 | ||
c4e12631 MM |
12799 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12800 | ||
12801 | * remote.c (remote_btrace_maybe_reopen): Change error message. | |
12802 | * btrace.c (btrace_enable): Likewise. | |
12803 | (parse_xml_btrace): Likewise. | |
12804 | (parse_xml_btrace_conf): Likewise. | |
12805 | ||
88711fbf MM |
12806 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12807 | ||
12808 | * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. | |
12809 | (linux_enable_pt, linux_enable_bts): Call | |
12810 | diagnose_perf_event_open_fail. | |
12811 | ||
17ad2a4f MM |
12812 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12813 | ||
12814 | * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. | |
12815 | Remove parameter and change return type. Update callers. Move it. | |
12816 | (linux_enable_bts, linux_enable_pt): Improve error message. | |
12817 | (linux_enable_pt): Remove zero buffer size check. | |
12818 | (linux_enable_btrace): Improve error messages. Remove NULL return | |
12819 | check. | |
12820 | ||
de6242d3 MM |
12821 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12822 | ||
12823 | * btrace.c (btrace_enable): Remove target_supports_btrace call. | |
12824 | * nat/linux-btrace.c (perf_event_pt_event_type): Move. | |
12825 | (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) | |
12826 | (linux_supports_pt, linux_supports_btrace): Remove. | |
12827 | (linux_enable_bts): Call cpu_supports_bts. | |
12828 | * nat/linux-btrace.h (linux_supports_btrace): Remove. | |
12829 | * remote.c (remote_supports_btrace): Remove. | |
12830 | (init_remote_ops): Remove remote_supports_btrace. | |
12831 | * target-delegates.c: Regenerated. | |
12832 | * target.c (target_supports_btrace): Remove. | |
12833 | * target.h (target_ops) <to_supports_btrace>: Remove | |
12834 | (target_supports_btrace): Remove. | |
12835 | * x86-linux-nat.c (x86_linux_create_target): Remove | |
12836 | linux_supports_btrace. | |
12837 | ||
9ee23a85 MM |
12838 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12839 | ||
12840 | * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling | |
12841 | btrace failed. | |
12842 | * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling | |
12843 | exception and use message in own exception. | |
12844 | ||
5c3284c1 MM |
12845 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12846 | ||
12847 | * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. | |
12848 | (perf_event_pt_event_type): Use gdb_file_up. | |
12849 | (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, | |
12850 | scoped_fd, and scoped_mmap. | |
12851 | ||
84696f37 MM |
12852 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12853 | ||
12854 | * common/scoped_mmap.h: New. | |
12855 | * unittests/scoped_mmap-selftest.c: New. | |
12856 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12857 | unittests/scoped_mmap-selftest.c. | |
12858 | ||
ea4a0888 MM |
12859 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12860 | ||
12861 | * common/scoped_fd.h: New. | |
12862 | * unittests/scoped_fd-selftest.c: New. | |
12863 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12864 | unittests/scoped_fd-selftest.c. | |
12865 | ||
869e8290 TT |
12866 | 2018-02-09 Tom Tromey <tom@tromey.com> |
12867 | ||
12868 | * auto-load.c (auto_load_section_scripts): Use | |
12869 | gdb::unique_xmalloc_ptr. | |
12870 | ||
a37a2ae7 TT |
12871 | 2018-02-09 Tom Tromey <tom@tromey.com> |
12872 | ||
12873 | * auto-load.c (execute_script_contents): Use std::string. | |
12874 | ||
4e725347 JB |
12875 | 2018-02-09 Joel Brobecker <brobecker@adacore.com> |
12876 | ||
12877 | * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new | |
12878 | Python function, rather than a new command. | |
12879 | ||
9a897d43 TT |
12880 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12881 | ||
12882 | * solib.c (solib_find_1): Use std::string. | |
12883 | (solib_bfd_fopen): Use unique_xmalloc_ptr. | |
12884 | ||
58ef3771 TT |
12885 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12886 | ||
12887 | * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. | |
12888 | ||
a9abc434 TT |
12889 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12890 | ||
12891 | * source.c (find_source_lines): Use gdb::def_vector. | |
12892 | ||
84f27c6f TT |
12893 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12894 | ||
12895 | * macrocmd.c (struct temporary_macro_definition): New. | |
12896 | (macro_define_command): Use temporary_macro_definition. Remove | |
12897 | cleanups. | |
12898 | (free_macro_definition_ptr): Remove. | |
12899 | ||
0354904b TT |
12900 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12901 | ||
12902 | * macroexp.c (maybe_expand): Use std::string. | |
12903 | ||
1739cf24 TT |
12904 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12905 | ||
12906 | * macroexp.c (struct macro_buffer): Add initializers for some | |
12907 | members. | |
12908 | (init_buffer, init_shared_buffer, free_buffer) | |
12909 | (free_buffer_return_text): Remove. | |
12910 | (macro_buffer): New constructors. | |
12911 | (~macro_buffer): New destructor. | |
12912 | (macro_buffer::set_shared): New method. | |
12913 | (macro_buffer::resize_buffer, macro_buffer::appendc) | |
12914 | (macro_buffer::appendmem): Now methods, not free functions. | |
12915 | (set_token, append_tokens_without_splicing, stringify) | |
12916 | (macro_stringify): Update. | |
12917 | (gather_arguments): Change return type. Remove argc_p argument, | |
12918 | add args_ptr argument. Use std::vector. | |
12919 | (substitute_args): Remove argc argument. Accept std::vector. | |
12920 | (expand): Update. Use std::vector. | |
12921 | (scan, macro_expand, macro_expand_next): Update. | |
12922 | ||
f6c2623e TT |
12923 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12924 | ||
12925 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
12926 | Use unique_xmalloc_ptr. | |
12927 | * macroscope.h: (sal_macro_scope, user_macro_scope) | |
12928 | (default_macro_scope): Return unique_xmalloc_ptr. | |
12929 | * macroscope.c (sal_macro_scope, user_macro_scope) | |
12930 | (default_macro_scope): Return unique_xmalloc_ptr. | |
12931 | * macroexp.h (macro_expand, macro_expand_once): Return | |
12932 | unique_xmalloc_ptr. | |
12933 | * macroexp.c (macro_expand, macro_expand_once): Return | |
12934 | unique_xmalloc_ptr. | |
12935 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
12936 | (info_macro_command, info_macros_command): Use | |
12937 | unique_xmalloc_ptr. | |
12938 | * compile/compile-c-support.c (write_macro_definitions): Use | |
12939 | unique_xmalloc_ptr. | |
12940 | * c-exp.y (c_parse): Use unique_xmalloc_ptr. | |
12941 | ||
c2e0e465 SM |
12942 | 2018-02-07 Simon Marchi <simon.marchi@ericsson.com> |
12943 | ||
12944 | * value.c (value_static_field): Assign field type instead of | |
12945 | containing type when returning an optimized out value. | |
12946 | ||
3f8c94b4 YQ |
12947 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
12948 | ||
12949 | * ft32-tdep.c (ft32_read_pc): Remove. | |
12950 | (ft32_write_pc): Remove. | |
12951 | (ft32_gdbarch_init): Update. | |
12952 | * m32r-tdep.c (m32r_read_pc): Remove. | |
12953 | (m32r_gdbarch_init): Update. | |
12954 | * mep-tdep.c (mep_read_pc): Remove. | |
12955 | (mep_gdbarch_init): Update. | |
12956 | * microblaze-tdep.c (microblaze_write_pc): Remove. | |
12957 | (microblaze_gdbarch_init): Update. | |
12958 | * mn10300-tdep.c (mn10300_read_pc): Remove. | |
12959 | (mn10300_write_pc): Remove. | |
12960 | (mn10300_gdbarch_init): Update. | |
12961 | * moxie-tdep.c (moxie_read_pc): Remove. | |
12962 | (moxie_write_pc): Remove. | |
12963 | (moxie_gdbarch_init): Update. | |
12964 | ||
bca65a23 YQ |
12965 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
12966 | ||
12967 | * expprint.c (print_subexp_standard): Handle | |
12968 | OP_F77_UNDETERMINED_ARGLIST. | |
12969 | (dump_subexp_body_standard): Likewise. | |
12970 | ||
583e3f90 | 12971 | 2018-02-05 Alan Hayward <alan.hayward@arm.com> |
b8df6ca7 | 12972 | |
583e3f90 YQ |
12973 | * target-descriptions.c (tdesc_element_visitor) Add empty |
12974 | implementations. | |
b8df6ca7 AH |
12975 | (tdesc_type): Move make_gdb_type from here. |
12976 | (tdesc_type_builtin): Likewise. | |
12977 | (tdesc_type_vector): Likewise. | |
12978 | (tdesc_type_with_fields): Move make_gdb_type_ functions from here. | |
12979 | (make_gdb_type_struct): Move from tdesc_type_with_fields. | |
12980 | (make_gdb_type_union): Likewise. | |
12981 | (make_gdb_type_flags): Likewise. | |
12982 | (make_gdb_type_enum): Likewise. | |
12983 | (make_gdb_type): New function. | |
12984 | (tdesc_register_type): Use static make_gdb_type. | |
12985 | ||
e813d34a RK |
12986 | 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com> |
12987 | ||
12988 | * infcmd.c (default_print_one_register_info): Align natural-format | |
12989 | column values consistently one under another. | |
12990 | (pad_to_column): New function. | |
12991 | ||
0eb876f5 JB |
12992 | 2018-02-05 Joel Brobecker <brobecker@adacore.com> |
12993 | ||
12994 | * dwarf2read.c (dwarf2_physname): Move commment. | |
12995 | ||
0625771b LS |
12996 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
12997 | ||
12998 | * varobj.c (varobj_formatted_print_options): Allow recursive | |
12999 | pretty printing if pretty printing is enabled. | |
13000 | ||
59498c30 LS |
13001 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
13002 | ||
13003 | * c-exp.y (lex_one_token, classify_name, yylex): Don't classify | |
13004 | names after a structop as a filename. | |
13005 | ||
2d9e6acb YQ |
13006 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
13007 | ||
13008 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. | |
13009 | (arm_record_coproc_data_proc): Likewise. | |
13010 | ||
df95a9cf YQ |
13011 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
13012 | ||
13013 | * arm-tdep.c (arm_record_extension_space): Change ret to signed. | |
13014 | ||
07e5f5cf NP |
13015 | 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com> |
13016 | ||
13017 | * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and | |
13018 | assign shifted lr_reg to fdata->lr_register when lr_reg is set. | |
13019 | ||
3045b475 PA |
13020 | 2018-01-31 Pedro Alves <palves@redhat.com> |
13021 | ||
13022 | * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. | |
13023 | * inflow.c (child_terminal_save_inferior): Wrap reference to | |
13024 | tcgetpgrp in HAVE_TERMIOS_H. | |
13025 | (child_interrupt, child_pass_ctrlc): Wrap references to signal in | |
13026 | _WIN32. | |
13027 | * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and | |
13028 | always iterate over all inferiors. | |
13029 | (gdbsim_cntrl_c): Adjust. | |
13030 | * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. | |
13031 | ||
929b5ad4 JB |
13032 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
13033 | ||
13034 | * gdbtypes.c (lookup_array_range_type): Make sure the array's | |
13035 | index type is objfile-owned if the element type is as well. | |
13036 | ||
29236ca2 JB |
13037 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
13038 | ||
13039 | GDB 8.1 released. | |
13040 | ||
c81e8879 PR |
13041 | 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13042 | ||
13043 | * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and | |
13044 | "features/s390x-linux64.c". | |
13045 | (_initialize_s390_linux_tdep): Remove initialization of tdescs | |
13046 | s390_linux32 and s390x_linux64. | |
13047 | (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set | |
13048 | default tdesc. | |
13049 | * s390-tdep.c: Include "features/s390-linux32.c" and | |
13050 | "features/s390x-linux64.c". | |
13051 | (s390_tdesc_valid): Add check for tdesc_has_registers. | |
13052 | (s390_gdbarch_init): Make sure there is always a valid tdesc. | |
13053 | (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and | |
13054 | tdesc_s390x_linux64. | |
13055 | * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and | |
13056 | tdesc_s390x_linux64 to... | |
13057 | * s390-tdep.h: ...here. | |
13058 | ||
e671cd59 PA |
13059 | 2018-01-30 Pedro Alves <palves@redhat.com> |
13060 | ||
13061 | PR gdb/13211 | |
13062 | * config.in, configure: Regenerate. | |
13063 | * configure.ac: Check for getpgid. | |
13064 | * go32-nat.c (go32_pass_ctrlc): New. | |
13065 | (go32_target): Install it. | |
13066 | * inf-child.c (inf_child_target): Install | |
13067 | child_terminal_save_inferior, child_pass_ctrlc and | |
13068 | child_interrupt. | |
13069 | * inf-ptrace.c (inf_ptrace_interrupt): Delete. | |
13070 | (inf_ptrace_target): No longer install it. | |
13071 | * infcmd.c (interrupt_target_1): Adjust. | |
13072 | * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) | |
13073 | (child_interrupt): Declare. | |
13074 | (inferior::terminal_state): New. | |
13075 | * inflow.c (struct terminal_info): Update comments. | |
13076 | (inferior_process_group): Delete. | |
13077 | (terminal_is_ours): Delete. | |
13078 | (gdb_tty_state): New. | |
13079 | (child_terminal_init): Adjust. | |
13080 | (is_gdb_terminal, sharing_input_terminal_1) | |
13081 | (sharing_input_terminal): New functions. | |
13082 | (child_terminal_inferior): Adjust. Use sharing_input_terminal. | |
13083 | Set the process's actual process group in the foreground if | |
13084 | possible. Handle is_ours_for_output/is_ours distinction. Don't | |
13085 | mark terminal as the inferior's if not sharing GDB's terminal. | |
13086 | Don't check attach_flag. | |
13087 | (child_terminal_ours_for_output, child_terminal_ours): Adjust to | |
13088 | pass down a target_terminal_state. | |
13089 | (child_terminal_save_inferior): New, factored out from ... | |
13090 | (child_terminal_ours_1): ... this. Handle | |
13091 | target_terminal_state::is_ours_for_output. | |
13092 | (child_interrupt, child_pass_ctrlc): New. | |
13093 | (inflow_inferior_exit): Clear the inferior's terminal_state. | |
13094 | (copy_terminal_info): Copy the inferior's terminal state. | |
13095 | (_initialize_inflow): Remove reference to terminal_is_ours. | |
13096 | * inflow.h (inferior_process_group): Delete. | |
13097 | * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. | |
13098 | * procfs.c (procfs_target): Don't install procfs_interrupt. | |
13099 | (procfs_interrupt): Delete. | |
13100 | * remote.c (remote_serial_quit_handler): Adjust. | |
13101 | (remote_interrupt): Remove ptid parameter. Adjust. | |
13102 | * target-delegates.c: Regenerate. | |
13103 | * target.c: Include "terminal.h". | |
13104 | (target_terminal::terminal_state): Rename to ... | |
13105 | (target_terminal::m_terminal_state): ... this. | |
13106 | (target_terminal::init): Adjust. | |
13107 | (target_terminal::inferior): Adjust to per-inferior | |
13108 | terminal_state. | |
13109 | (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. | |
13110 | (target_terminal::ours, target_terminal::ours_for_output): Use | |
13111 | target_terminal_is_ours_kind. | |
13112 | (target_interrupt): Remove ptid parameter. Adjust. | |
13113 | (default_target_pass_ctrlc): Adjust. | |
13114 | * target.h (target_ops::to_terminal_save_inferior): New field. | |
13115 | (target_ops::to_interrupt): Remove ptid_t parameter. | |
13116 | (target_interrupt): Remove ptid_t parameter. Update comment. | |
13117 | (target_pass_ctrlc): Update comment. | |
13118 | * target/target.h (target_terminal_state): New scoped enum, | |
13119 | factored out of ... | |
13120 | (target_terminal::terminal_state): ... here. | |
13121 | (target_terminal::inferior): Update comments. | |
13122 | (target_terminal::restore_inferior): New. | |
13123 | (target_terminal::is_inferior, target_terminal::is_ours) | |
13124 | (target_terminal::is_ours_for_output): Adjust. | |
13125 | (target_terminal::scoped_restore_terminal_state): Adjust to | |
13126 | rename, and call restore_inferior() instead of inferior(). | |
13127 | (target_terminal::scoped_restore_terminal_state::m_state): Change | |
13128 | type. | |
13129 | (target_terminal::terminal_state): Rename to ... | |
13130 | (target_terminal::m_terminal_state): ... this and change type. | |
13131 | ||
9c3a5d93 PA |
13132 | 2018-01-30 Pedro Alves <palves@redhat.com> |
13133 | ||
13134 | * linux-nat.c (wait_for_signal): New function. | |
13135 | (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend | |
13136 | directly. | |
13137 | (async_terminal_is_ours) | |
13138 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. | |
13139 | (linux_nat_add_target): Don't override | |
13140 | to_terminal_inferior/to_terminal_ours. | |
13141 | ||
69ab5edb SDJ |
13142 | 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com> |
13143 | ||
13144 | * remote.c (remote_follow_fork): Don't call "detach_inferior". | |
13145 | ||
fc8e7e75 SM |
13146 | 2018-01-28 Simon Marchi <simon.marchi@ericsson.com> |
13147 | ||
13148 | * dwarf2read.c (free_dwo_files): Add forward-declaration. | |
13149 | (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from | |
13150 | dwarf2_per_objfile_free here. | |
13151 | (dwarf2_per_objfile_free): Remove. | |
13152 | (_initialize_dwarf2_read): Don't register | |
13153 | dwarf2_per_objfile_free as a registry cleanup. | |
13154 | ||
b2a426e2 EZ |
13155 | 2018-01-27 Eli Zaretskii <eliz@gnu.org> |
13156 | ||
13157 | Avoid compilation errors in MinGW native builds | |
13158 | ||
13159 | The error is triggered by including python-internal.h, and the | |
13160 | error message is: | |
13161 | ||
13162 | In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, | |
13163 | from build-gnulib/import/math.h:27, | |
13164 | from d:/usr/Python26/include/pyport.h:235, | |
13165 | from d:/usr/Python26/include/Python.h:58, | |
13166 | from python/python-internal.h:94, | |
13167 | from python/py-arch.c:24: | |
13168 | d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared | |
13169 | using ::hypot; | |
13170 | ^~~~~ | |
13171 | ||
13172 | This happens because Python headers define 'hypot' to expand t | |
13173 | '_hypot' in the Windows builds. | |
13174 | * python/python-internal.h (_hypot) [__MINGW32__]: Define back to | |
13175 | 'hypoth'. This avoids a compilation error. | |
13176 | ||
0bdd8eac AH |
13177 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
13178 | ||
13179 | * MAINTAINERS (Write After Approval): Fix ordering. | |
13180 | ||
56ae9dc3 AH |
13181 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
13182 | ||
13183 | * MAINTAINERS (Write After Approval): Add Alan Hayward. | |
13184 | ||
7433498b AM |
13185 | 2018-01-26 Alan Modra <amodra@gmail.com> |
13186 | ||
13187 | * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. | |
13188 | (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. | |
13189 | Remove nop. Make const. Comment. | |
13190 | (powerpc32_plt_stub_so_2): New. | |
13191 | (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. | |
13192 | Correct count. Update uses. | |
13193 | (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. | |
13194 | Move common code reading PLT entry word. Correct | |
13195 | powerpc32_plt_stub PLT address calculation. | |
13196 | * ppc64-tdep.c (ppc64_standard_linkage1): Make const. | |
13197 | (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. | |
13198 | (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. | |
13199 | (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. | |
13200 | (ppc64_standard_linkage8): Likewise. | |
13201 | * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. | |
13202 | Correct insns description. | |
13203 | * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. | |
13204 | ||
0f59d5fc PA |
13205 | 2018-01-24 Pedro Alves <palves@redhat.com> |
13206 | ||
13207 | GCC PR libstdc++/83906 | |
13208 | * gdbtypes.c (operator==(const dynamic_prop &, | |
13209 | const dynamic_prop &)): New. | |
13210 | (operator==(const range_bounds &, const range_bounds &)): New. | |
13211 | (check_types_equal): Use them instead of memcmp. | |
13212 | * gdbtypes.h (operator==(const dynamic_prop &, | |
13213 | const dynamic_prop &)): Declare. | |
13214 | (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. | |
13215 | (operator==(const range_bounds &, const range_bounds &)): Declare. | |
13216 | (operator!=(const range_bounds &, const range_bounds &)): Declare. | |
13217 | ||
ef8914a4 PR |
13218 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13219 | ||
13220 | * s390-linux-tdep.c (s390_record_address_mask) | |
13221 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
13222 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
13223 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
13224 | (s390_process_record): Move to s390-tdep.c. | |
13225 | (s390_linux_init_abi_any): Adjust. | |
13226 | * s390-tdep.c (s390_record_address_mask) | |
13227 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
13228 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
13229 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
13230 | (s390_process_record): Moved from s390-linux-tdep.c | |
13231 | (s390_gdbarch_init): Adjust. | |
13232 | ||
d6e58945 PR |
13233 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13234 | ||
13235 | * s390-linux-nat.c (s390-tdep.h): New include. | |
13236 | * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. | |
13237 | (HFILES_NO_SRCDIR): Add s390-tdep.h. | |
13238 | (ALLDEPFILES): Add s390-tdep.c. | |
13239 | * configure.tgt (s390*-*-linux*): Add s390-tdep.o. | |
13240 | * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... | |
13241 | * s390-tdep.h: ...this. New file. | |
13242 | * s390-linux-tdep.c (s390-tdep.h): New include. | |
13243 | (_initialize_s390_tdep): Rename to... | |
13244 | (_initialize_s390_linux_tdep): ...this and adjust. | |
13245 | (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) | |
13246 | (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to | |
13247 | s390-tdep.h. | |
13248 | (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) | |
13249 | (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) | |
13250 | (s390_is_partial_instruction, s390_software_single_step) | |
13251 | (is_non_branch_ril, s390_displaced_step_copy_insn) | |
13252 | (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) | |
13253 | (s390_prologue_data, s390_addr, s390_store, s390_load) | |
13254 | (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) | |
13255 | (s390_register_call_saved, s390_guess_tracepoint_registers) | |
13256 | (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) | |
13257 | (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) | |
13258 | (s390_pseudo_register_name, s390_pseudo_register_type) | |
13259 | (s390_pseudo_register_read, s390_pseudo_register_write) | |
13260 | (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) | |
13261 | (s390_ax_pseudo_register_push_stack, s390_gen_return_address) | |
13262 | (s390_addr_bits_remove, s390_address_class_type_flags) | |
13263 | (s390_address_class_type_flags_to_name) | |
13264 | (s390_address_class_name_to_type_flags, s390_effective_inner_type) | |
13265 | (s390_function_arg_float, s390_function_arg_vector) | |
13266 | (is_power_of_two, s390_function_arg_integer, s390_arg_state) | |
13267 | (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) | |
13268 | (s390_frame_align, s390_register_return_value, s390_return_value) | |
13269 | (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) | |
13270 | (s390_unwind_pseudo_register, s390_adjust_frame_regnum) | |
13271 | (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) | |
13272 | (s390_trad_frame_prev_register, s390_unwind_cache) | |
13273 | (s390_prologue_frame_unwind_cache) | |
13274 | (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) | |
13275 | (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) | |
13276 | (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) | |
13277 | (s390_stub_frame_this_id, s390_stub_frame_prev_register) | |
13278 | (s390_stub_frame_sniffer, s390_stub_frame_unwind) | |
13279 | (s390_frame_base_address, s390_local_base_address) | |
13280 | (s390_frame_base, s390_gcc_target_options) | |
13281 | (s390_gnu_triplet_regexp, s390_stap_is_single_operand) | |
13282 | (s390_validate_reg_range, s390_tdesc_valid) | |
13283 | (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... | |
13284 | * s390-tdep.c: ...this. New file. | |
13285 | ||
9c0b896e PR |
13286 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13287 | ||
13288 | * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. | |
13289 | (s390_process_record, s390_gdbarch_tdep_alloc) | |
13290 | (s390_linux_init_abi_any): Use/set new hook. | |
13291 | ||
7042632b PR |
13292 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13293 | ||
13294 | * s390-linux-tdep.c (osabi.h): New include. | |
13295 | (s390_linux_init_abi_31, s390_linux_init_abi_64) | |
13296 | (s390_linux_init_abi_any): New functions. | |
13297 | (s390_gdbarch_init, _initialize_s390_tdep): Adjust. | |
13298 | ||
650f5e13 PR |
13299 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13300 | ||
13301 | * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for | |
13302 | tdesc_has_registers check | |
13303 | ||
47c9317e PR |
13304 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13305 | ||
13306 | * s390-linux-tdep.c (s390_tdesc_valid): New function. | |
13307 | (s390_validate_reg_range): New macro. | |
13308 | (s390_gdbarch_init): Adjust. | |
13309 | ||
095085d8 PR |
13310 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13311 | ||
13312 | * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. | |
13313 | (s390_gdbarch_tdep_alloc): Adjust. | |
13314 | (s390_gdbarch_init): Adjust. | |
13315 | ||
ab9bcc67 PR |
13316 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13317 | ||
13318 | * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> | |
13319 | <have_tdb>: Change type to bool. | |
13320 | (s390_gdbarch_tdep_alloc): Adjust. | |
13321 | (s390_gdbarch_init): Adjust. | |
13322 | ||
21f6f5ff PR |
13323 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13324 | ||
13325 | * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. | |
13326 | (gdbarch_tdep) <have_upper, have_vx>: New fields. | |
13327 | (s390_gdbarch_tdep_alloc): New function. | |
13328 | (s390_gdbarch_init): Allocate tdep at start and use its fields | |
13329 | instead of separate variables. | |
13330 | ||
0eb97953 PR |
13331 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13332 | ||
13333 | * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks | |
13334 | when looking for cached gdbarch and add comment for remaining. | |
13335 | ||
5c319bb2 PA |
13336 | 2018-01-22 Pedro Alves <palves@redhat.com> |
13337 | Sergio Durigan Junior <sergiodj@redhat.com> | |
13338 | ||
13339 | * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" | |
13340 | case. | |
13341 | ||
d65ce302 MR |
13342 | 2018-01-22 Maciej W. Rozycki <macro@mips.com> |
13343 | ||
13344 | * MAINTAINERS: Update my company e-mail address. | |
13345 | ||
ec7a5fcb YQ |
13346 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
13347 | ||
13348 | * regcache.c (cooked_write_test): New function. | |
13349 | (_initialize_regcache): Register the test. | |
13350 | ||
11f57cb6 YQ |
13351 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
13352 | ||
13353 | * ia64-tdep.c (ia64_pseudo_register_read): Call | |
13354 | regcache->cooked_read instead of regcache_cooked_read_unsigned. | |
13355 | * m32c-tdep.c (m32c_cat_read): Likewise. | |
13356 | (m32c_r3r2r1r0_read): Likewise. | |
13357 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
13358 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
13359 | ||
03f50fc8 YQ |
13360 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
13361 | ||
13362 | * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache | |
13363 | method raw_read instead of regcache_raw_read. | |
13364 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
13365 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
13366 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
13367 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
13368 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
13369 | * h8300-tdep.c (h8300_pseudo_register_read): Likewise. | |
13370 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
13371 | (i386_pseudo_register_read_into_value): Likewise. | |
13372 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
13373 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
13374 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
13375 | * rl78-tdep.c (rl78_pseudo_register_read): Likewise. | |
13376 | * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. | |
13377 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
13378 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
13379 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
13380 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
13381 | ||
dc711524 YQ |
13382 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
13383 | ||
13384 | * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. | |
13385 | * configure.tgt: Remove target mt. | |
13386 | * mt-tdep.c: Remove. | |
13387 | * regcache.c (cooked_read_test): Remove the check for mt. | |
13388 | ||
3f5a868b YQ |
13389 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
13390 | ||
13391 | * jit.c (jit_frame_prev_register): Call regcache::cooked_read | |
13392 | instead of gdbarch_pseudo_register_read_value. | |
13393 | ||
de4cb04a JB |
13394 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
13395 | ||
13396 | * dwarf2read.c (need_gnat_info): Return nonzero if the cu's | |
13397 | language is Ada. | |
13398 | ||
a9e40818 JB |
13399 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
13400 | ||
13401 | * linespec.c (create_sals_line_offset): Remove code that preserved | |
13402 | the symtab_and_line's line number. | |
13403 | ||
e707fc44 AB |
13404 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
13405 | ||
13406 | * varobj.c (varobj_create): Don't set valid_block when creating a | |
13407 | floating varobj. | |
13408 | ||
03d0bf7b AB |
13409 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
13410 | ||
13411 | * varobj.c (varobj_create): Remove out of date comment. | |
13412 | ||
ae451627 AB |
13413 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
13414 | ||
13415 | PR mi/20395 | |
13416 | * ada-exp.y (write_var_from_sym): Pass extra parameter when | |
13417 | updating innermost block. | |
13418 | * parse.c (innermost_block_tracker::update): Take extra type | |
13419 | parameter, and check types match before updating innermost block. | |
13420 | (write_dollar_variable): Update innermost block for registers. | |
13421 | * parser-defs.h (enum innermost_block_tracker_type): New enum. | |
13422 | (innermost_block_tracker::innermost_block_tracker): Initialise | |
13423 | m_types member. | |
13424 | (innermost_block_tracker::reset): Take type parameter. | |
13425 | (innermost_block_tracker::update): Take type parameter, and pass | |
13426 | type through as needed. | |
13427 | (innermost_block_tracker::m_types): New member. | |
13428 | * varobj.c (varobj_create): Pass type when reseting innermost | |
13429 | block. | |
13430 | ||
aee1fcdf AB |
13431 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
13432 | ||
13433 | * ada-exp.y (write_var_from_sym): Switch to innermost_block API. | |
13434 | * ada-lang.c (resolve_subexp): Likewise. | |
13435 | * breakpoint.c (set_breakpoint_condition) Likewise. | |
13436 | (watch_command_1) Likewise. | |
13437 | * c-exp.y (variable): Likewise. | |
13438 | * d-exp.y (PrimaryExpression): Likewise. | |
13439 | * f-exp.y (variable): Likewise. | |
13440 | * go-exp.y (variable): Likewise. | |
13441 | * m2-exp.y (variable): Likewise. | |
13442 | * objfiles.c (objfile::~objfile): Likewise. | |
13443 | * p-exp.y (variable): Likewise. | |
13444 | * parse.c (innermost_block): Change type. | |
13445 | * parser-defs.h (class innermost_block_tracker): New. | |
13446 | (innermost_block): Change to innermost_block_tracker. | |
13447 | * printcmd.c (display_command): Switch to innermost_block API. | |
13448 | (do_one_display): Likewise. | |
13449 | * rust-exp.y (do_one_display): Likewise. | |
13450 | * symfile.c (clear_symtab_users): Likewise. | |
13451 | * varobj.c (varobj_create): Switch to innermost_block API, replace | |
13452 | use of innermost_block with block stored on varobj object. | |
13453 | ||
396af9a1 AB |
13454 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
13455 | ||
13456 | * expression.h (innermost_block): Remove declaration. | |
13457 | * varobj.c: Add 'parser-defs.h' include. | |
13458 | ||
fcfcc376 TT |
13459 | 2018-01-19 Tom Tromey <tom@tromey.com> |
13460 | ||
13461 | * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified | |
13462 | symbols in the static and global blocks. | |
13463 | ||
5a6c3296 JC |
13464 | 2018-01-19 James Clarke <jrtc27@jrtc27.com> |
13465 | ||
13466 | * nat/linux-ptrace.c: Remove unnecessary reinclusion of | |
13467 | gdb_ptrace.h, and move including gdb_wait.h ... | |
13468 | * nat/linux-ptrace.h: ... to here. | |
13469 | ||
bc09b0c1 SM |
13470 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
13471 | ||
13472 | * inf-ptrace.c (inf_ptrace_detach): Adjust call to | |
13473 | inf_ptrace_detach_success. | |
13474 | (inf_ptrace_detach_success): Add inferior parameter, use it | |
13475 | instead of inferior_ptid, pass it to detach_inferior. | |
13476 | * inf-ptrace.h (inf_ptrace_detach_success): Add inferior | |
13477 | parameter. | |
13478 | * inferior.c (detach_inferior): Add overload that takes an | |
13479 | inferior object. | |
13480 | * inferior.h (detach_inferior): Likewise. | |
13481 | * linux-nat.c (linux_nat_detach): Use the inf parameter, don't | |
13482 | use inferior_ptid, adjust call to inf_ptrace_detach_success. | |
13483 | * linux-thread-db.c (thread_db_detach): Use inf parameter. | |
13484 | ||
6e1e1966 SM |
13485 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
13486 | ||
13487 | * target.h (struct target_ops) <to_detach>: Add inferior | |
13488 | parameter. | |
13489 | (target_detach): Likewise. | |
13490 | * target.c (dispose_inferior): Pass inferior down. | |
13491 | (target_detach): Pass inferior down. Assert that it is equal to | |
13492 | the current inferior. | |
13493 | * aix-thread.c (aix_thread_detach): Pass inferior down. | |
13494 | * corefile.c (core_file_command): Pass current_inferior() down. | |
13495 | * corelow.c (core_detach): Add inferior parameter. | |
13496 | * darwin-nat.c (darwin_detach): Likewise. | |
13497 | * gnu-nat.c (gnu_detach): Likewise. | |
13498 | * inf-ptrace.c (inf_ptrace_detach): Likewise. | |
13499 | * infcmd.c (detach_command): Pass current_inferior() down to | |
13500 | target_detach. | |
13501 | * infrun.c (follow_fork_inferior): Pass parent_inf to | |
13502 | target_detach. | |
13503 | (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to | |
13504 | target_detach. | |
13505 | * linux-nat.c (linux_nat_detach): Add inferior parameter. | |
13506 | * linux-thread-db.c (thread_db_detach): Likewise. | |
13507 | * nto-procfs.c (procfs_detach): Likewise. | |
13508 | * procfs.c (procfs_detach): Likewise. | |
13509 | * record.c (record_detach): Likewise. | |
13510 | * record.h (struct inferior): Forward-declare. | |
13511 | (record_detach): Add inferior parameter. | |
13512 | * remote-sim.c (gdbsim_detach): Likewise. | |
13513 | * remote.c (remote_detach_1): Likewise. | |
13514 | (remote_detach): Likewise. | |
13515 | (extended_remote_detach): Likewise. | |
13516 | * sol-thread.c (sol_thread_detach): Likewise. | |
13517 | * target-debug.h (target_debug_print_inferior_p): New macro. | |
13518 | * target-delegates.c: Re-generate. | |
13519 | * top.c (kill_or_detach): Pass inferior down to target_detach. | |
13520 | * windows-nat.c (windows_detach): Add inferior parameter. | |
13521 | ||
6bd6f3b6 SM |
13522 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
13523 | ||
13524 | * target.h (struct target_ops) <to_detach>: Remove args | |
13525 | parameter. | |
13526 | (target_detach): Likewise. | |
13527 | * target.c (dispose_inferior): Adjust. | |
13528 | (target_detach): Remove args parameter, adjust. | |
13529 | * aix-thread.c (aix_thread_detach): Adjust. | |
13530 | * corefile.c (core_file_command): Adjust. | |
13531 | * corelow.c (core_detach): Adjust. | |
13532 | * darwin-nat.c (darwin_detach): Adjust. | |
13533 | * gnu-nat.c (gnu_detach): Adjust. | |
13534 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
13535 | * infcmd.c (detach_command): Adjust | |
13536 | * infrun.c (follow_fork_inferior): Adjust. | |
13537 | (handle_vfork_child_exec_or_exit): Adjust. | |
13538 | * linux-fork.c (linux_fork_detach): Remove args parameter. | |
13539 | * linux-fork.h (linux_fork_detach): Likewise. | |
13540 | * linux-nat.c (linux_nat_detach): Likewise, and adjust. | |
13541 | * linux-thread-db.c (thread_db_detach): Likewise. | |
13542 | * nto-procfs.c (procfs_detach): Likewise. | |
13543 | * procfs.c (procfs_detach): Likewise. | |
13544 | (do_detach): Remove signo parameter. | |
13545 | * record.c (record_detach): Remove args parameter. | |
13546 | * record.h (record_detach): Likewise. | |
13547 | * remote-sim.c (gdbsim_detach): Likewise. | |
13548 | * remote.c (remote_detach_1): Likewise. | |
13549 | (remote_detach): Likewise. | |
13550 | (extended_remote_detach): Likewise. | |
13551 | * sol-thread.c (sol_thread_detach): Likewise. | |
13552 | * target-delegates.c: Re-generate. | |
13553 | * top.c (struct qt_args) <args>: Remove field. | |
13554 | (kill_or_detach): Don't pass args. | |
13555 | (quit_force): Don't set args. | |
13556 | * windows-nat.c (windows_detach): Remove args parameter. | |
13557 | ||
88af8ea8 YQ |
13558 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
13559 | ||
13560 | * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. | |
13561 | (arm_linux_init_abi): Install it. | |
13562 | ||
dea445b9 YQ |
13563 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
13564 | ||
13565 | * osabi.c (gdb_osabi_names): Extend the regexp for | |
13566 | arm-linux-gnueabihf. | |
13567 | ||
4a17f768 YQ |
13568 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
13569 | ||
13570 | * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to | |
13571 | m_abbrevs. | |
13572 | (abbrev_table::add_abbrev): Update. | |
13573 | (abbrev_table::lookup_abbrev): Update. | |
13574 | ||
d679c21a YQ |
13575 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
13576 | ||
13577 | * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. | |
13578 | ||
7d937cad SDJ |
13579 | 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> |
13580 | ||
13581 | * compile/compile.c (compile_to_object): Convert "triplet_rx" | |
13582 | to "std::string". | |
13583 | ||
9e14690d TT |
13584 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13585 | ||
13586 | * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. | |
13587 | ||
50a82047 TT |
13588 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13589 | ||
13590 | * gdbtypes.h (add_dyn_prop): Remove objfile parameter. | |
13591 | * gdbtypes.c (add_dyn_prop): Remove objfile parameter. | |
13592 | (create_array_type_with_stride): Update. | |
13593 | * dwarf2read.c (set_die_type): Update. | |
13594 | ||
c89b44cd TT |
13595 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13596 | ||
13597 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
13598 | (dwarf2_cu::method_info): Now a std::vector. | |
13599 | (add_to_method_list): Update. | |
13600 | (free_delayed_list): Remove. | |
13601 | (compute_delayed_physnames): Update. | |
13602 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
13603 | list. Remove cleanups. | |
13604 | (psymtab_include_file_name): Add name_holder parameter. Use | |
13605 | unique_xmalloc_ptr. | |
13606 | (dwarf_decode_lines): Update. | |
13607 | ||
fcd3b13d SM |
13608 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13609 | Simon Marchi <simon.marchi@ericsson.com> | |
13610 | ||
13611 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
13612 | (dwarf2_per_objfile::free_cached_comp_units) | |
13613 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
13614 | (init_cutu_and_read_dies_no_follow): Update. | |
13615 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
13616 | (dwarf2_cu::~dwarf2_cu): New. | |
13617 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
13618 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
13619 | ||
685af9cd TT |
13620 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13621 | Simon Marchi <simon.marchi@ericsson.com> | |
13622 | ||
13623 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
13624 | (struct die_reader_specs) <abbrev_table>: New member. | |
13625 | (struct abbrev_table): Add constructor. | |
13626 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
13627 | <abbrev_obstack>: Now an auto_obstack. | |
13628 | (abbrev_table_up): New typedef. | |
13629 | (init_cu_die_reader): Add abbrev_table parameter. | |
13630 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
13631 | Add result_dwo_abbrev_table. | |
13632 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
13633 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
13634 | Update. | |
13635 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
13636 | parameter. | |
13637 | (skip_children): Update. | |
13638 | (abbrev_table::alloc_abbrev): Rename from | |
13639 | abbrev_table_alloc_abbrev. | |
13640 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
13641 | (abbrev_table::lookup_abbrev): Rename from | |
13642 | abbrev_table_lookup_abbrev. | |
13643 | (abbrev_table_read_table): Return abbrev_table_up. | |
13644 | (abbrev_table_free, abbrev_table_free_cleanup) | |
13645 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
13646 | (load_partial_dies): Update. | |
13647 | ||
5e2db402 TT |
13648 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13649 | ||
13650 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
13651 | (read_func_scope, read_variable): Update. | |
13652 | (new_symbol): Remove. | |
13653 | (new_symbol_full): Rename to new_symbol. | |
13654 | ||
ee7f689e | 13655 | 2018-01-17 Mike Gulick <mgulick@mathworks.com> |
41667530 MG |
13656 | |
13657 | PR gdb/16577 | |
13658 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
13659 | a warning instead of throwing an error, set section size to 0 and return | |
13660 | NULL. | |
13661 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
13662 | ||
4d9b86e1 SM |
13663 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
13664 | ||
13665 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
13666 | std::string. | |
13667 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
13668 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
13669 | Likewise. | |
13670 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
13671 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
13672 | ||
a7b2d0fb SM |
13673 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
13674 | ||
13675 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
13676 | ||
f517c180 EA |
13677 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
13678 | ||
13679 | PR gdb/21559 | |
13680 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
13681 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
13682 | * configure: Regenerate. | |
13683 | ||
7045b1ca YQ |
13684 | 2018-01-17 Yao Qi <yao.qi@linaro.org> |
13685 | ||
13686 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
13687 | function. | |
13688 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
13689 | gcc_target_options. | |
13690 | ||
db422fb2 PA |
13691 | 2018-01-15 Pedro Alves <palves@redhat.com> |
13692 | ||
13693 | * common/signals-state-save-restore.c | |
13694 | (save_original_signals_state): Fix typos. | |
13695 | ||
ba643918 SDJ |
13696 | 2017-01-12 Tom Tromey <tom@tromey.com> |
13697 | Sergio Durigan Junior <sergiodj@redhat.com> | |
13698 | ||
13699 | * Makefile.in (install-only): Install gdb-add-index. | |
13700 | ||
906b4aac JB |
13701 | 2018-01-12 John Baldwin <jhb@FreeBSD.org> |
13702 | ||
13703 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
13704 | ||
bdf2a94a AA |
13705 | 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
13706 | ||
13707 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
13708 | insert_breakpoints fails. | |
13709 | ||
71d378ae PA |
13710 | 2018-01-11 Pedro Alves <palves@redhat.com> |
13711 | ||
13712 | PR gdb/22583 | |
13713 | * infrun.c (resume): Rename to ... | |
13714 | (resume_1): ... this. | |
13715 | (resume): Reimplement as wrapper around resume_1. | |
13716 | ||
3cada740 PA |
13717 | 2018-01-11 Pedro Alves <palves@redhat.com> |
13718 | ||
13719 | PR remote/22597 | |
13720 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
13721 | general thread instead of to 'magic_null_ptid'. | |
13722 | ||
618daa93 PA |
13723 | 2018-01-10 Pedro Alves <palves@redhat.com> |
13724 | ||
13725 | * language.h (language_get_symbol_name_matcher): Rename ... | |
13726 | (get_symbol_name_matcher): ... this. | |
13727 | * language.c (language_get_symbol_name_matcher): Ditto. | |
13728 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
13729 | callers adjusted. | |
13730 | ||
c63d3e8d PA |
13731 | 2018-01-10 Pedro Alves <palves@redhat.com> |
13732 | ||
13733 | PR gdb/22670 | |
13734 | * dwarf2read.c | |
13735 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
13736 | Adjust to use language_get_symbol_name_matcher instead of | |
13737 | language_defn::la_get_symbol_name_matcher. | |
13738 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
13739 | and the lookup name is a verbatim match, return Ada's matcher. | |
13740 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
13741 | (ada_lookup_name_info::verbatim_p):: New method. | |
13742 | ||
d4c2a405 PA |
13743 | 2018-01-10 Pedro Alves <palves@redhat.com> |
13744 | ||
13745 | PR gdb/22670 | |
13746 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
13747 | minsym's language is language_auto or language_cplus, pass down | |
13748 | language_ada instead. | |
13749 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
13750 | ||
8825213e PA |
13751 | 2018-01-10 Pedro Alves <palves@redhat.com> |
13752 | ||
13753 | PR gdb/22670 | |
13754 | * minsyms.c (linkage_name_str): New function. | |
13755 | (iterate_over_minimal_symbols): Use it. | |
13756 | ||
2d97a5d9 JB |
13757 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
13758 | ||
13759 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
13760 | ||
92fce24d JB |
13761 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
13762 | ||
13763 | * configure.ac: Check for kinfo_getfile in libutil. | |
13764 | * configure: Regenerate. | |
13765 | * config.in: Regenerate. | |
13766 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
13767 | (fbsd_fetch_cmdline): New. | |
13768 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
13769 | rather than calling error. | |
13770 | (fbsd_info_proc): New. | |
13771 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
13772 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
13773 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
13774 | ||
262f62f5 JB |
13775 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
13776 | ||
13777 | * fbsd-nat.c (struct free_deleter): Remove. | |
13778 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
13779 | ||
b999e203 JB |
13780 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
13781 | ||
13782 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
13783 | NULL for an empty pathname. | |
13784 | ||
d2176225 JB |
13785 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
13786 | ||
13787 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
13788 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
13789 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
13790 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
13791 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
13792 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
13793 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
13794 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
13795 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
13796 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
13797 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
13798 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
13799 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
13800 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
13801 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
13802 | ||
9c4ac400 ST |
13803 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
13804 | ||
13805 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
13806 | (gnu_xfer_auxv): New function. | |
13807 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
13808 | TARGET_OBJECT_AUXV. | |
13809 | ||
1e5ded6c YQ |
13810 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
13811 | Simon Marchi <simon.marchi@ericsson.com> | |
13812 | ||
13813 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
13814 | common/selftest.c. | |
13815 | (COMMON_OBS): Remove selftest.o. | |
13816 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
13817 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
13818 | * configure: Re-generated. | |
13819 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
13820 | GDB_SELF_TEST. | |
13821 | (maintenance_info_selftests): Likewise. | |
13822 | ||
04bafb1e XR |
13823 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
13824 | ||
13825 | * ada-valprint.c (val_print_packed_array_elements): Use | |
13826 | proper number of elements when printing an array indexed | |
13827 | by an enumeration type. | |
13828 | ||
518817b3 SM |
13829 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
13830 | ||
13831 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
13832 | (dw2_get_file_names_reader): Adjust. | |
13833 | (lookup_dwo_signatured_type): Adjust. | |
13834 | (lookup_dwp_signatured_type): Adjust. | |
13835 | (lookup_signatured_type): Adjust. | |
13836 | (create_type_unit_group): Adjust. | |
13837 | (get_type_unit_group): Adjust. | |
13838 | (process_psymtab_comp_unit_reader): Adjust. | |
13839 | (build_type_psymtabs_reader): Adjust. | |
13840 | (scan_partial_symbols): Adjust. | |
13841 | (add_partial_symbol): Adjust. | |
13842 | (add_partial_subprogram): Adjust. | |
13843 | (peek_die_abbrev): Adjust. | |
13844 | (fixup_go_packaging): Adjust. | |
13845 | (process_imported_unit_die): Adjust. | |
13846 | (dwarf2_compute_name): Adjust. | |
13847 | (dwarf2_physname): Adjust. | |
13848 | (read_import_statement): Adjust. | |
13849 | (handle_DW_AT_stmt_list): Adjust. | |
13850 | (read_file_scope): Adjust. | |
13851 | (read_func_scope): Adjust. | |
13852 | (read_lexical_block_scope): Adjust. | |
13853 | (read_call_site_scope): Adjust. | |
13854 | (read_variable): Adjust. | |
13855 | (dwarf2_rnglists_process): Adjust. | |
13856 | (dwarf2_ranges_process): Adjust. | |
13857 | (dwarf2_ranges_read): Adjust. | |
13858 | (dwarf2_get_pc_bounds): Adjust. | |
13859 | (dwarf2_record_block_ranges): Adjust. | |
13860 | (dwarf2_add_field): Adjust. | |
13861 | (dwarf2_add_member_fn): Adjust. | |
13862 | (read_structure_type): Adjust. | |
13863 | (process_structure_scope): Adjust. | |
13864 | (read_enumeration_type): Adjust. | |
13865 | (read_array_type): Adjust. | |
13866 | (mark_common_block_symbol_computed): Adjust. | |
13867 | (read_common_block): Adjust. | |
13868 | (read_namespace_type): Adjust. | |
13869 | (read_namespace): Adjust. | |
13870 | (read_module_type): Adjust. | |
13871 | (read_tag_pointer_type): Adjust. | |
13872 | (read_tag_ptr_to_member_type): Adjust. | |
13873 | (read_tag_string_type): Adjust. | |
13874 | (read_subroutine_type): Adjust. | |
13875 | (read_typedef): Adjust. | |
13876 | (read_base_type): Adjust. | |
13877 | (attr_to_dynamic_prop): Adjust. | |
13878 | (read_subrange_type): Adjust. | |
13879 | (read_unspecified_type): Adjust. | |
13880 | (dwarf2_read_abbrevs): Adjust. | |
13881 | (load_partial_dies): Adjust. | |
13882 | (read_partial_die): Adjust. | |
13883 | (find_partial_die): Adjust. | |
13884 | (guess_partial_die_structure_name): Adjust. | |
13885 | (fixup_partial_die): Adjust. | |
13886 | (read_attribute_value): Adjust. | |
13887 | (read_addr_index): Adjust. | |
13888 | (read_addr_index_from_leb128): Adjust. | |
13889 | (read_str_index): Adjust. | |
13890 | (dwarf2_string_attr): Adjust. | |
13891 | (get_debug_line_section): Adjust. | |
13892 | (dwarf_decode_line_header): Adjust. | |
13893 | (lnp_state_machine::check_line_address): Adjust. | |
13894 | (dwarf_decode_lines_1): Adjust. | |
13895 | (dwarf_decode_lines): Adjust. | |
13896 | (dwarf2_start_symtab): Adjust. | |
13897 | (var_decode_location): Adjust. | |
13898 | (new_symbol_full): Adjust. | |
13899 | (dwarf2_const_value_data): Adjust. | |
13900 | (dwarf2_const_value_attr): Adjust. | |
13901 | (dwarf2_const_value): Adjust. | |
13902 | (die_type): Adjust. | |
13903 | (die_containing_type): Adjust. | |
13904 | (build_error_marker_type): Adjust. | |
13905 | (lookup_die_type): Adjust. | |
13906 | (guess_full_die_structure_name): Adjust. | |
13907 | (anonymous_struct_prefix): Adjust. | |
13908 | (determine_prefix): Adjust. | |
13909 | (dwarf2_name): Adjust. | |
13910 | (follow_die_ref_or_sig): Adjust. | |
13911 | (follow_die_offset): Adjust. | |
13912 | (follow_die_ref): Adjust. | |
13913 | (follow_die_sig_1): Adjust. | |
13914 | (follow_die_sig): Adjust. | |
13915 | (get_signatured_type): Adjust. | |
13916 | (get_DW_AT_signature_type): Adjust. | |
13917 | (decode_locdesc): Adjust. | |
13918 | (dwarf_decode_macros): Adjust. | |
13919 | (cu_debug_loc_section): Adjust. | |
13920 | (fill_in_loclist_baton): Adjust. | |
13921 | (dwarf2_symbol_mark_computed): Adjust. | |
13922 | (init_one_comp_unit): Don't assign | |
13923 | dwarf2_cu::dwarf2_per_objfile. | |
13924 | (set_die_type): Adjust. | |
13925 | ||
ed2dc618 SM |
13926 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
13927 | ||
13928 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
13929 | <dwarf2_per_objfile>: New field. | |
13930 | (dwarf2_per_objfile): Remove global. | |
13931 | (get_dwarf2_per_objfile): New function. | |
13932 | (set_dwarf2_per_objfile): New function. | |
13933 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
13934 | dwarf2_per_objfile. | |
13935 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
13936 | (read_abbrev_offset): Likewise. | |
13937 | (read_indirect_string): Likewise. | |
13938 | (read_indirect_line_string): Likewise. | |
13939 | (read_indirect_string_at_offset): Likewise. | |
13940 | (read_indirect_string_from_dwz): Likewise. | |
13941 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
13942 | dwarf2_per_objfile. | |
13943 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
13944 | (create_all_comp_units): Change objfile parameter to | |
13945 | dwarf2_per_objfile. | |
13946 | (create_all_type_units): Likewise. | |
13947 | (process_queue): Add dwarf2_per_objfile parameter. | |
13948 | (read_and_check_comp_unit_head): Likewise. | |
13949 | (lookup_dwo_unit_in_dwp): Likewise. | |
13950 | (get_dwp_file): Likewise. | |
13951 | (process_cu_includes): Likewise. | |
13952 | (struct free_dwo_file_cleanup_data): New struct. | |
13953 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
13954 | set_dwarf2_per_objfile. | |
13955 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
13956 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
13957 | context, adjust calls. | |
13958 | (dw2_instantiate_symtab): Likewise. | |
13959 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
13960 | (dw2_get_cu): Likewise. | |
13961 | (create_cu_from_index_list): Change objfile parameter to | |
13962 | dwarf2_per_objfile. | |
13963 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
13964 | context, adjust calls. | |
13965 | (create_cus_from_index): Likewise. | |
13966 | (create_signatured_type_table_from_index): Change objfile | |
13967 | parameter to dwarf2_per_objfile. | |
13968 | (create_signatured_type_table_from_debug_names): Change objfile | |
13969 | parameter to dwarf2_per_objfile. | |
13970 | (create_addrmap_from_index): Likewise. | |
13971 | (create_addrmap_from_aranges): Likewise. | |
13972 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
13973 | (dw2_setup): Remove. | |
13974 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
13975 | context. | |
13976 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
13977 | get_dwarf2_per_objfile. | |
13978 | (dw2_forget_cached_source_info): Likewise. | |
13979 | (dw2_map_symtabs_matching_filename): Likewise. | |
13980 | (struct dw2_symtab_iterator) <index>: Remove. | |
13981 | <dwarf2_per_objfile>: New field. | |
13982 | (dw2_symtab_iter_init): Replace index parameter with | |
13983 | dwarf2_per_objfile. | |
13984 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
13985 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
13986 | (dw2_print_stats): Likewise. | |
13987 | (dw2_dump): Likewise. | |
13988 | (dw2_expand_symtabs_for_function): Likewise. | |
13989 | (dw2_expand_all_symtabs): Likewise. | |
13990 | (dw2_expand_symtabs_with_fullname): Likewise. | |
13991 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
13992 | with dwarf2_per_objfile. | |
13993 | (dw_expand_symtabs_matching_file_matcher): Add | |
13994 | dwarf2_per_objfile parameter and adjust calls. | |
13995 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
13996 | adjust calls. | |
13997 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
13998 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
13999 | adjust calls. | |
14000 | (create_cus_from_debug_names_list): Replace objfile parameter | |
14001 | with dwarf2_per_objfile and adjust calls. | |
14002 | (create_cus_from_debug_names): Likewise. | |
14003 | (dwarf2_read_debug_names): Likewise. | |
14004 | (mapped_debug_names::namei_to_name): Adjust call. | |
14005 | (dw2_debug_names_iterator::next): Likewise. | |
14006 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
14007 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
14008 | (dw2_debug_names_dump): Likewise. | |
14009 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
14010 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
14011 | (dwarf2_initialize_objfile): Likewise. | |
14012 | (dwarf2_build_psymtabs): Likewise. | |
14013 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
14014 | this_cu. | |
14015 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
14016 | (read_and_check_comp_unit_head): Likewise. | |
14017 | (read_abbrev_offset): Likewise. | |
14018 | (create_debug_type_hash_table): Likewise. | |
14019 | (create_debug_types_hash_table): Likewise. | |
14020 | (create_all_type_units): Replace objfile parameter with | |
14021 | dwarf2_per_objfile. | |
14022 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
14023 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
14024 | with dwarf2_per_objfile. | |
14025 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
14026 | (lookup_dwp_signatured_type): Likewise. | |
14027 | (lookup_signatured_type): Likewise. | |
14028 | (read_cutu_die_from_dwo): Likewise. | |
14029 | (init_tu_and_read_dwo_dies): Likewise. | |
14030 | (init_cutu_and_read_dies): Likewise. | |
14031 | (init_cutu_and_read_dies_no_follow): Likewise. | |
14032 | (allocate_type_unit_groups_table): Add objfile parameter. | |
14033 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
14034 | (get_type_unit_group): Likewise. | |
14035 | (process_psymtab_comp_unit): Update call. | |
14036 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
14037 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
14038 | (print_tu_stats): Likewise. | |
14039 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
14040 | in void* parameter. | |
14041 | (build_type_psymtabs): Change objfile parameter to | |
14042 | dwarf2_per_objfile. | |
14043 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
14044 | passed in void* parameter. | |
14045 | (process_skeletonless_type_units): Change objfile parameter to | |
14046 | dwarf2_per_objfile. | |
14047 | (set_partial_user): Likewise. | |
14048 | (dwarf2_build_psymtabs_hard): Likewise. | |
14049 | (read_comp_units_from_section): Likewise. | |
14050 | (create_all_comp_units): Likewise. | |
14051 | (scan_partial_symbols): Update calls. | |
14052 | (add_partial_symbol): Likewise. | |
14053 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
14054 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
14055 | (process_queue): Add dwarf2_per_objfile parameter. | |
14056 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
14057 | (compute_compunit_symtab_includes): Likewise. | |
14058 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
14059 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
14060 | (process_full_type_unit): Likewise. | |
14061 | (process_imported_unit_die): Update call. | |
14062 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
14063 | (read_file_scope): Likewise. | |
14064 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
14065 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
14066 | (create_cus_hash_table): Likewise. | |
14067 | (create_dwp_hash_table): Likewise. | |
14068 | (create_dwo_unit_in_dwp_v1): Likewise. | |
14069 | (create_dwp_v2_section): Likewise. | |
14070 | (create_dwo_unit_in_dwp_v2): Likewise. | |
14071 | (lookup_dwo_unit_in_dwp): Likewise. | |
14072 | (try_open_dwop_file): Likewise. | |
14073 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
14074 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
14075 | cleanup to include a reference to dwarf2_per_objfile. | |
14076 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
14077 | (open_and_init_dwp_file): Likewise. | |
14078 | (get_dwp_file): Likewise. | |
14079 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
14080 | (queue_and_load_all_dwo_tus): Update call. | |
14081 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
14082 | data. | |
14083 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
14084 | (dwarf2_ranges_process): Likewise. | |
14085 | (dwarf2_get_pc_bounds): Likewise. | |
14086 | (mark_common_block_symbol_computed): Likewise. | |
14087 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
14088 | (dwarf2_read_abbrevs): Update call. | |
14089 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
14090 | (find_partial_die): Likewise. | |
14091 | (fixup_partial_die): Likewise. | |
14092 | (read_attribute_value): Likewise. | |
14093 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
14094 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
14095 | parameter. | |
14096 | (read_indirect_string_from_dwz): Add objfile parameter. | |
14097 | (read_indirect_string): Add objfile parameter. | |
14098 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
14099 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
14100 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
14101 | call dw2_setup. | |
14102 | (read_str_index): Use dwarf2_per_objfile from cu. | |
14103 | (get_debug_line_section): Likewise. | |
14104 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
14105 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
14106 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
14107 | (build_error_marker_type): Likewise. | |
14108 | (lookup_die_type): Likewise. | |
14109 | (determine_prefix): Likewise. | |
14110 | (follow_die_offset): Likewise. | |
14111 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
14112 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
14113 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
14114 | (dwarf2_get_die_type): Likewise. | |
14115 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
14116 | (get_signatured_type): Likewise. | |
14117 | (get_DW_AT_signature_type): Likewise. | |
14118 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
14119 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
14120 | (cu_debug_loc_section): Likewise. | |
14121 | (fill_in_loclist_baton): Likewise. | |
14122 | (dwarf2_symbol_mark_computed): Likewise. | |
14123 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
14124 | dwarf2_per_objfile. | |
14125 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
14126 | parameter. | |
14127 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
14128 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
14129 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
14130 | (set_die_type): Use dwarf2_free_objfile from cu. | |
14131 | (get_die_type_at_offset): Likewise. | |
14132 | (dwarf2_per_objfile_free): Don't assign global variable. | |
14133 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
14134 | parameter, update m_debugstrlookup construction. | |
14135 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
14136 | parameter. | |
14137 | <m_dwarf2_per_objfile>: New field. | |
14138 | <lookup>: Use m_dwarf2_per_objfile. | |
14139 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
14140 | (psyms_seen_size): Likewise. | |
14141 | (write_gdbindex): Replace objfile parameter with | |
14142 | dwarf2_per_objfile. | |
14143 | (write_debug_names): Likewise. | |
14144 | (write_psymtabs_to_index): Likewise. | |
14145 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
14146 | calls. | |
14147 | ||
e3b94546 SM |
14148 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
14149 | ||
14150 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
14151 | <dwarf2_per_objfile>: New field. | |
14152 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
14153 | <dwarf2_per_objfile>: New field. | |
14154 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
14155 | of objfile. | |
14156 | (create_signatured_type_table_from_index): Likewise. | |
14157 | (create_debug_type_hash_table): Likewise. | |
14158 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
14159 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
14160 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
14161 | objfile. | |
14162 | (create_partial_symtab): Access objfile through | |
14163 | dwarf2_per_objfile. | |
14164 | (process_psymtab_comp_unit_reader): Likewise. | |
14165 | (read_comp_units_from_section): Likewise. | |
14166 | (scan_partial_symbols): Likewise. | |
14167 | (add_partial_symbol): Likewise. | |
14168 | (add_partial_subprogram): Likewise. | |
14169 | (peek_die_abbrev): Likewise. | |
14170 | (fixup_go_packaging): Likewise. | |
14171 | (process_full_comp_unit): Likewise. | |
14172 | (process_full_type_unit): Likewise. | |
14173 | (process_imported_unit_die): Likewise. | |
14174 | (dwarf2_compute_name): Likewise. | |
14175 | (dwarf2_physname): Likewise. | |
14176 | (read_import_statement): Likewise. | |
14177 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
14178 | objfile. | |
14179 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
14180 | (read_lexical_block_scope): Likewise. | |
14181 | (read_call_site_scope): Likewise. | |
14182 | (read_variable): Likewise. | |
14183 | (dwarf2_rnglists_process): Likewise. | |
14184 | (dwarf2_ranges_process): Likewise. | |
14185 | (dwarf2_ranges_read): Likewise. | |
14186 | (dwarf2_record_block_ranges): Likewise. | |
14187 | (dwarf2_add_field): Likewise. | |
14188 | (dwarf2_add_member_fn): Likewise. | |
14189 | (read_structure_type): Likewise. | |
14190 | (process_structure_scope): Likewise. | |
14191 | (read_enumeration_type): Likewise. | |
14192 | (read_array_type): Likewise. | |
14193 | (read_common_block): Likewise. | |
14194 | (read_namespace_type): Likewise. | |
14195 | (read_namespace): Likewise. | |
14196 | (read_module_type): Likewise. | |
14197 | (read_tag_pointer_type): Likewise. | |
14198 | (read_tag_ptr_to_member_type): Likewise. | |
14199 | (read_tag_string_type): Likewise. | |
14200 | (read_subroutine_type): Likewise. | |
14201 | (read_typedef): Likewise. | |
14202 | (read_base_type): Likewise. | |
14203 | (attr_to_dynamic_prop): Likewise. | |
14204 | (read_subrange_type): Likewise. | |
14205 | (read_unspecified_type): Likewise. | |
14206 | (load_partial_dies): Likewise. | |
14207 | (read_partial_die): Likewise. | |
14208 | (find_partial_die): Likewise. | |
14209 | (guess_partial_die_structure_name): Likewise. | |
14210 | (fixup_partial_die): Likewise. | |
14211 | (read_attribute_value): Likewise. | |
14212 | (read_addr_index_from_leb128): Likewise. | |
14213 | (dwarf2_read_addr_index): Likewise. | |
14214 | (dwarf2_string_attr): Likewise. | |
14215 | (lnp_state_machine::check_line_address): Likewise. | |
14216 | (dwarf_decode_lines_1): Likewise. | |
14217 | (dwarf_decode_lines): Likewise. | |
14218 | (dwarf2_start_symtab): Likewise. | |
14219 | (var_decode_location): Likewise. | |
14220 | (new_symbol_full): Likewise. | |
14221 | (dwarf2_const_value_data): Likewise. | |
14222 | (dwarf2_const_value_attr): Likewise. | |
14223 | (dwarf2_const_value): Likewise. | |
14224 | (die_type): Likewise. | |
14225 | (die_containing_type): Likewise. | |
14226 | (lookup_die_type): Likewise. | |
14227 | (guess_full_die_structure_name): Likewise. | |
14228 | (anonymous_struct_prefix): Likewise. | |
14229 | (dwarf2_name): Likewise. | |
14230 | (follow_die_ref_or_sig): Likewise. | |
14231 | (follow_die_offset): Likewise. | |
14232 | (follow_die_ref): Likewise. | |
14233 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
14234 | (dwarf2_fetch_constant_bytes): Likewise. | |
14235 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
14236 | (dwarf2_get_die_type): Likewise. | |
14237 | (follow_die_sig): Likewise. | |
14238 | (decode_locdesc): Likewise. | |
14239 | (dwarf2_per_cu_objfile): Likewise. | |
14240 | (dwarf2_per_cu_text_offset): Likewise. | |
14241 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
14242 | objfile. | |
14243 | (set_die_type): Access objfile through | |
14244 | dwarf2_per_objfile. | |
14245 | ||
b01ba14d SM |
14246 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
14247 | ||
14248 | * valprint.c (converted_character_d): Remove typedef. | |
14249 | (DEF_VEC_O (converted_character_d)): Remove. | |
14250 | (count_next_character): Use std::vector. | |
14251 | (print_converted_chars_to_obstack): Likewise. | |
14252 | (generic_printstr): Likewise. | |
14253 | ||
4d0fdd9b SM |
14254 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
14255 | ||
14256 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
14257 | <value>: Change type to unique_xmalloc_ptr. | |
14258 | (gdb_xml_value_s): Remove typedef. | |
14259 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
14260 | (gdb_xml_element_start_handler): Change parameter type to | |
14261 | std::vector. | |
14262 | (xml_find_attribute): Likewise. | |
14263 | * xml-support.c (xml_find_attribute): Change parameter type to | |
14264 | std::vector and adjust. | |
14265 | (gdb_xml_values_cleanup): Remove. | |
14266 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
14267 | (xinclude_start_include): Change paraeter type to std::vector | |
14268 | and adjust. | |
14269 | * btrace.c (check_xml_btrace_version): Likewise. | |
14270 | (parse_xml_btrace_block): Likewise. | |
14271 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
14272 | (parse_xml_btrace_pt): Likewise. | |
14273 | (parse_xml_btrace_conf_bts): Likewise. | |
14274 | (parse_xml_btrace_conf_pt): Likewise. | |
14275 | * memory-map.c (memory_map_start_memory): Likewise. | |
14276 | (memory_map_start_property): Likewise. | |
14277 | * osdata.c (osdata_start_osdata): Likewise. | |
14278 | (osdata_start_item): Likewise. | |
14279 | (osdata_start_column): Likewise. | |
14280 | * remote.c (start_thread): Likewise. | |
14281 | * solib-aix.c (library_list_start_library): Likewise. | |
14282 | (library_list_start_list): Likewise. | |
14283 | * solib-svr4.c (library_list_start_library): Likewise. | |
14284 | (svr4_library_list_start_list): Likewise. | |
14285 | * solib-target.c (library_list_start_segment): Likewise. | |
14286 | (library_list_start_section): Likewise. | |
14287 | (library_list_start_library): Likewise. | |
14288 | (library_list_start_list): Likewise. | |
14289 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
14290 | (traceframe_info_start_tvar): Likewise. | |
14291 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
14292 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
14293 | (tdesc_start_feature): Likewise. | |
14294 | (tdesc_start_reg): Likewise. | |
14295 | (tdesc_start_union): Likewise. | |
14296 | (tdesc_start_struct): Likewise. | |
14297 | (tdesc_start_flags): Likewise. | |
14298 | (tdesc_start_enum): Likewise. | |
14299 | (tdesc_start_field): Likewise. | |
14300 | (tdesc_start_enum_value): Likewise. | |
14301 | (tdesc_start_vector): Likewise. | |
14302 | ||
f979c73f SM |
14303 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
14304 | ||
14305 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
14306 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
14307 | Remove. | |
14308 | (python_xmethod_worker::clone): Remove. | |
14309 | * valops.c (find_overload_match): Use std::move instead of | |
14310 | clone. | |
14311 | ||
ba18742c SM |
14312 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
14313 | ||
14314 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
14315 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
14316 | <free_xmethod_worker_data>: Remove. | |
14317 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
14318 | <get_xmethod_arg_types>: Remove. | |
14319 | <get_xmethod_result_type>: Remove. | |
14320 | <invoke_xmethod>: Remove. | |
14321 | * extension.c (new_xmethod_worker): Remove. | |
14322 | (clone_xmethod_worker): Remove. | |
14323 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
14324 | pointer. | |
14325 | (get_xmethod_arg_types): Rename to... | |
14326 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
14327 | (get_xmethod_result_type): Rename to... | |
14328 | (xmethod_worker::get_result_type): ... this, and adjust. | |
14329 | (invoke_xmethod): Remove. | |
14330 | (free_xmethod_worker): Remove. | |
14331 | (free_xmethod_worker_vec): Remove. | |
14332 | * extension.h (enum ext_lang_rc): Move here from | |
14333 | extension-priv.h. | |
14334 | (struct xmethod_worker): Add constructor and destructor. | |
14335 | <data>: Remove. | |
14336 | <value>: Remove. | |
14337 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
14338 | virtual pure methods. | |
14339 | <get_arg_types, get_result_type>: New methods. | |
14340 | (xmethod_worker_ptr): Remove typedef. | |
14341 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
14342 | (xmethod_worker_vec): Remove typedef. | |
14343 | (xmethod_worker_up): New typedef. | |
14344 | (invoke_xmethod): Remove. | |
14345 | (clone_xmethod_worker): Remove. | |
14346 | (free_xmethod_worker): Remove. | |
14347 | (free_xmethod_worker_vec): Remove. | |
14348 | (get_xmethod_arg_types): Remove. | |
14349 | (get_xmethod_result_type): Remove. | |
14350 | * valops.c (find_method_list): Use std::vector, don't use | |
14351 | intermediate vector. | |
14352 | (value_find_oload_method_list): Use std::vector. | |
14353 | (find_overload_match): Use std::vector. | |
14354 | (find_oload_champ): Use std::vector. | |
14355 | * value.c (value_free): Use operator delete. | |
14356 | (value_of_xmethod): Rename to... | |
14357 | (value_from_xmethod): ... this. Don't assign | |
14358 | xmethod_worker::value, take rvalue-reference. | |
14359 | (result_type_of_xmethod): Adjust. | |
14360 | (call_xmethod): Adjust. | |
14361 | * value.h: Include extension.h. | |
14362 | (struct xmethod_worker): Don't forward-declare. | |
14363 | (value_of_xmethod): Rename to... | |
14364 | (value_from_xmethod): ... this, take rvalue-reference. | |
14365 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
14366 | (struct python_xmethod_worker): ... this, add constructor and | |
14367 | destructor. | |
14368 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
14369 | (gdbpy_free_xmethod_worker_data): Rename to... | |
14370 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
14371 | adjust. | |
14372 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
14373 | (python_xmethod_worker::clone): ... this and adjust. | |
14374 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
14375 | temporary vector. | |
14376 | (gdbpy_get_xmethod_arg_types): Rename to... | |
14377 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
14378 | (gdbpy_get_xmethod_result_type): Rename to... | |
14379 | (python_xmethod_worker::do_get_result_type): ... this and | |
14380 | adjust. | |
14381 | (gdbpy_invoke_xmethod): Rename to... | |
14382 | (python_xmethod_worker::invoke): ... this and adjust. | |
14383 | (new_python_xmethod_worker): Rename to... | |
14384 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
14385 | adjust. | |
14386 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
14387 | Remove. | |
14388 | (gdbpy_free_xmethod_worker_data): Remove. | |
14389 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
14390 | (gdbpy_get_xmethod_arg_types): Remove. | |
14391 | (gdbpy_get_xmethod_result_type): Remove. | |
14392 | (gdbpy_invoke_xmethod): Remove. | |
14393 | * python/python.c (python_extension_ops): Remove obsolete | |
14394 | callbacks. | |
14395 | ||
e379cee6 PA |
14396 | 2018-01-05 Pedro Alves <palves@redhat.com> |
14397 | ||
14398 | PR gdb/18653 | |
14399 | * common/signals-state-save-restore.c | |
14400 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
14401 | find a custom handler preinstalled, instead of internal erroring. | |
14402 | But only warn if !quiet. | |
14403 | * common/signals-state-save-restore.h | |
14404 | (save_original_signals_state): New parameter 'quiet'. | |
14405 | * main.c (captured_main_1): Move save_original_signals_state call | |
14406 | after option handling, and pass QUIET. | |
14407 | ||
a655456c PA |
14408 | 2018-01-05 Pedro Alves <palves@redhat.com> |
14409 | ||
14410 | * spu-tdep.c (spu_catch_start): Pass | |
14411 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
14412 | ||
de63c46b PA |
14413 | 2018-01-05 Pedro Alves <palves@redhat.com> |
14414 | ||
14415 | PR gdb/22670 | |
14416 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
14417 | (ada_get_symbol_name_matcher): Use it for | |
14418 | symbol_name_match_type::SEARCH_NAME. | |
14419 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
14420 | it down instead of assuming symbol_name_match_type::FULL. | |
14421 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
14422 | * c-valprint.c (print_unpacked_pointer): Use | |
14423 | lookup_symbol_search_name instead of lookup_symbol. | |
14424 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
14425 | symbol_name_match_type::SEARCH_NAME. | |
14426 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
14427 | symbol_name_match_type::FULL. | |
14428 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
14429 | symbol_name_match_type::SEARCH_NAME. | |
14430 | * infrun.c (insert_exception_resume_breakpoint): Use | |
14431 | lookup_symbol_search_name. | |
14432 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
14433 | * psymtab.c (maintenance_check_psymtabs): Use | |
14434 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
14435 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
14436 | SYMBOL_SEARCH_NAME. | |
14437 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
14438 | if symbol_name_match_type::SEARCH_NAME. | |
14439 | (lookup_symbol_in_language): Pass down | |
14440 | symbol_name_match_type::FULL. | |
14441 | (lookup_symbol_search_name): New. | |
14442 | (lookup_language_this): Pass down | |
14443 | symbol_name_match_type::SEARCH_NAME. | |
14444 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
14445 | 'match_type'. Pass it down. | |
14446 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
14447 | (lookup_symbol_search_name): New declaration. | |
14448 | (lookup_symbol_in_block): New 'match_type' parameter. | |
14449 | ||
f98fc17b PA |
14450 | 2018-01-05 Pedro Alves <palves@redhat.com> |
14451 | ||
14452 | PR gdb/22670 | |
14453 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
14454 | ada_lookup_symbol. | |
14455 | (ada_lookup_symbol): Reimplement in terms of | |
14456 | ada_lookup_symbol_list, bits factored out from | |
14457 | ada_lookup_encoded_symbol. | |
14458 | ||
342f8240 JB |
14459 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
14460 | ||
14461 | * ada-exp.y (write_object_renaming): When subscripting an array | |
14462 | using a symbol as the index, pass the block in call to | |
14463 | ada_lookup_encoded_symbol when looking that symbol up. | |
14464 | ||
7150d33c JG |
14465 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
14466 | ||
14467 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
14468 | TYPE_INDEX_TYPE. | |
14469 | ||
cc0e770c JB |
14470 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
14471 | ||
14472 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
14473 | the case where VALUE_LVAL (val0) is not lval_memory. | |
14474 | ||
f79da888 | 14475 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
14476 | |
14477 | * ada-valprint.c (print_optional_low_bound): Handle | |
14478 | character-indexed array printing like boolean-indexed array | |
14479 | printing. | |
14480 | ||
cd385f94 JB |
14481 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
14482 | ||
14483 | * NEWS: Create a new section for the next release branch. | |
14484 | Rename the section of the current branch, now that it has | |
14485 | been cut. | |
14486 | ||
09aca949 JB |
14487 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
14488 | ||
14489 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
14490 | * version.in: Bump version to 8.1.50.DATE-git. | |
14491 | ||
9f757bf7 XR |
14492 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
14493 | ||
14494 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
14495 | Add field. | |
14496 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
14497 | Add field. | |
14498 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
14499 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
14500 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
14501 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
14502 | Update all callers. | |
14503 | (create_excep_cond_exprs) <ex>: Add parameter. | |
14504 | (re_set_exception): Update create_excep_cond_exprs call. | |
14505 | (print_it_exception, print_one_exception, print_mention_exception) | |
14506 | (print_recreate_exception): Add "catch handler" handling. | |
14507 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
14508 | (check_status_catch_handlers, print_it_catch_handlers) | |
14509 | (print_one_catch_handlers, print_mention_catch_handlers) | |
14510 | (print_recreate_catch_handlers): New function. | |
14511 | (catch_handlers_breakpoint_ops): New variable. | |
14512 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
14513 | Add parameter. Add "catch handler" handling. | |
14514 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
14515 | Add "catch handler" handling. | |
14516 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
14517 | handling. | |
14518 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
14519 | call. | |
14520 | (catch_ada_handlers_command): New function. | |
14521 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
14522 | operations structure. | |
14523 | (_initialize_ada_language): Add "catch handlers" command entry. | |
14524 | * NEWS: Document "catch handlers" feature. | |
14525 | ||
9fe561ab JB |
14526 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
14527 | ||
14528 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
14529 | account when creating the array type of the slice. | |
14530 | (ada_value_slice): Likewise. | |
14531 | ||
a405673c JB |
14532 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
14533 | ||
14534 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
14535 | New enum value. | |
14536 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
14537 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
14538 | New parameter. Update all callers in this file. | |
14539 | (array_type_has_dynamic_stride): New function. | |
14540 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
14541 | of arrays with dynamic byte strides. | |
14542 | * dwarf2read.c (read_array_type): Add support for dynamic | |
14543 | DW_AT_byte_stride attributes. | |
14544 | ||
74a2f8ff JB |
14545 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
14546 | ||
14547 | * dwarf2read.c (read_unspecified_type): Treat | |
14548 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
14549 | ||
e2882c85 JB |
14550 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
14551 | ||
14552 | Update copyright year range in all GDB files. | |
14553 | ||
5e70ee09 | 14554 | 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com> |
1690bb24 JB |
14555 | |
14556 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
14557 | and gdb/testsuite/gdb.base/step-line.c. | |
14558 | ||
0f0c98a8 JB |
14559 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
14560 | ||
14561 | * copyright.py (main): Dump the contents of | |
14562 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
14563 | even if BY_HAND is empty. | |
14564 | ||
82e1e79a JB |
14565 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
14566 | ||
14567 | * top.c (print_gdb_version): Update Copyright year in version | |
14568 | message. | |
14569 | ||
053f54e5 | 14570 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 14571 | |
053f54e5 | 14572 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 14573 | |
053f54e5 | 14574 | For older changes see ChangeLog-2017. |
c906108c SS |
14575 | \f |
14576 | Local Variables: | |
14577 | mode: change-log | |
14578 | left-margin: 8 | |
14579 | fill-column: 74 | |
14580 | version-control: never | |
57da7796 | 14581 | coding: utf-8 |
c906108c | 14582 | End: |