]>
Commit | Line | Data |
---|---|---|
e79497a1 TT |
1 | 2018-10-04 Tom Tromey <[email protected]> |
2 | ||
3 | * symfile.c (symbol_file_add_with_addrs): Do not print "no | |
4 | debugging symbols" message if there is a separate debug objfile. | |
5 | ||
3453e7e4 TT |
6 | 2018-10-04 Tom Tromey <[email protected]> |
7 | ||
8 | PR cli/19551: | |
9 | * symfile.c (symbol_file_add_with_addrs): Update output. | |
10 | * psymtab.c (require_partial_symbols): Update output. | |
11 | ||
6afcf761 TT |
12 | 2018-10-04 Tom Tromey <[email protected]> |
13 | ||
14 | PR cli/22234: | |
15 | * complaints.c: Emit \n. | |
16 | ||
22068491 TT |
17 | 2018-10-04 Tom Tromey <[email protected]> |
18 | ||
19 | * symfile.c (symbol_file_add_with_addrs, symbol_file_clear) | |
20 | (separate_debug_file_exists, find_separate_debug_file) | |
21 | (add_symbol_file_command, reread_symbols, allocate_symtab) | |
22 | (allocate_compunit_symtab): Use filtered printing, not | |
23 | unfiltered. | |
24 | * psymtab.c (require_partial_symbols, dump_psymtab) | |
25 | (allocate_psymtab): Use filtered printing, not unfiltered. | |
26 | ||
9fdd7193 TT |
27 | 2018-10-04 Tom Tromey <[email protected]> |
28 | ||
29 | * complaints.c (complaint_internal): Correctly check complaint | |
30 | count. | |
31 | ||
3f2cf4dc TT |
32 | 2018-10-04 Tom Tromey <[email protected]> |
33 | ||
34 | * complaints.h (struct complaints): Remove declaration. | |
35 | * complaints.c (clear_complaints): Remove an unused variable. | |
36 | ||
4f9bdf7f RO |
37 | 2018-10-04 Rainer Orth <[email protected]> |
38 | ||
39 | * MAINTAINERS (Write After Approval): Add self. | |
40 | ||
875e5398 TT |
41 | 2018-10-03 Tom Tromey <[email protected]> |
42 | ||
43 | * guile/scm-value.c (gdbscm_value_to_string): Initialize | |
44 | "buffer_contents". | |
45 | * coffread.c (coff_symtab_read): Initialize "newobj". | |
46 | ||
8634679f SM |
47 | 2018-10-03 Simon Marchi <[email protected]> |
48 | ||
49 | * dwarf2read.c (read_func_scope): Remove struct keyword in | |
50 | range-based for. | |
51 | ||
f35d5ade TT |
52 | 2018-10-03 Tom Tromey <[email protected]> |
53 | ||
54 | * README: Mention --enable-ubsan. | |
55 | * NEWS: Mention --enable-ubsan. | |
56 | * acinclude.m4: Include sanitize.m4. | |
57 | * configure: Rebuild. | |
58 | * configure.ac: Call AM_GDB_UBSAN. | |
59 | * sanitize.m4: New file. | |
60 | ||
1dffa580 TT |
61 | 2018-10-03 Tom Tromey <[email protected]> |
62 | ||
63 | * expression.h (enum exp_opcode): Use uint8_t as base type. | |
64 | * expprint.c (op_name): Handle invalid opcodes. | |
65 | ||
5e70ee09 TT |
66 | 2018-10-03 Tom Tromey <[email protected]> |
67 | ||
68 | * parse.c (prefixify_expression): Add assert. | |
69 | (parse_exp_in_context_1): Throw exception if the expression is | |
70 | empty. | |
71 | ||
4dd1b460 TT |
72 | 2018-10-03 Tom Tromey <[email protected]> |
73 | ||
74 | * dwarf2read.c (read_signed_leb128): Work in ULONGEST. | |
75 | ||
20562150 TT |
76 | 2018-10-03 Tom Tromey <[email protected]> |
77 | ||
78 | * c-exp.y (parse_number): Work in unsigned. Remove casts. | |
79 | ||
d359392f TT |
80 | 2018-10-03 Tom Tromey <[email protected]> |
81 | ||
82 | * dwarf2read.c (read_subrange_type): Make "negative_mask" | |
83 | unsigned. | |
84 | ||
0101665f TT |
85 | 2018-10-03 Tom Tromey <[email protected]> |
86 | ||
87 | * findvar.c (extract_integer): Do work in an unsigned type. | |
88 | ||
ad69edbb TT |
89 | 2018-10-03 Tom Tromey <[email protected]> |
90 | ||
91 | * common/enum-flags.h (enum_flags::operator~): Add static assert. | |
92 | * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as | |
93 | base type. | |
94 | * objfile-flags.h (enum objfile_flag): Use unsigned as base type. | |
95 | * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base | |
96 | type. | |
97 | * c-lang.h (enum c_string_type_values): Use unsigned as base | |
98 | type. | |
99 | * btrace.h (enum btrace_thread_flag): Use unsigned as base type. | |
100 | ||
780942fc TT |
101 | 2018-10-03 Tom Tromey <[email protected]> |
102 | ||
103 | * dwarf2-frame.h (dwarf2_frame_state_reg_info) | |
104 | <~dwarf2_frame_state_reg_info>: Update. | |
105 | <dwarf2_frame_state_reg_info>: Update. | |
106 | <alloc_regs>: Add assertion. Update. | |
107 | <reg>: Now a std::vector. | |
108 | <num_regs>: Remove. | |
109 | <swap>: Update. | |
110 | * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) | |
111 | (execute_cfa_program_test, dwarf2_frame_cache): Update. | |
112 | ||
10657c04 TT |
113 | 2018-10-03 Tom Tromey <[email protected]> |
114 | ||
115 | * namespace.c (add_using_directive): Don't pass NULL to memcpy. | |
116 | ||
34c0fc00 PW |
117 | 2018-10-03 Philippe Waroquiers <[email protected]> |
118 | ||
119 | * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment. | |
120 | ||
2398abf8 TT |
121 | 2018-10-02 Tom Tromey <[email protected]> |
122 | ||
123 | * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest. | |
124 | ||
c1168a2f JD |
125 | 2018-10-02 John Darrington <[email protected]> |
126 | ||
127 | * NEWS: Mention changed commands. | |
128 | * ser-uds.c: New file. | |
129 | * configure.ac (SER_HARDWIRE): Add ser-uds.o. | |
130 | * configure: Regenerate. | |
131 | * Makefile.in: Add new file. | |
132 | * serial.c (serial_open): Check if filename is a socket | |
133 | and lookup the appropriate interface accordingly. | |
134 | ||
05c71722 AH |
135 | 2018-10-01 Alan Hayward <[email protected]> |
136 | ||
137 | * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add | |
138 | define. | |
139 | (AARCH64_EXTRA_MAGIC): Likewise. | |
140 | (AARCH64_FPSIMD_MAGIC): Likewise. | |
141 | (AARCH64_SVE_MAGIC): Likewise. | |
142 | (AARCH64_EXTRA_DATAP_OFFSET): Likewise. | |
143 | (AARCH64_FPSIMD_FPSR_OFFSET): Likewise. | |
144 | (AARCH64_FPSIMD_FPCR_OFFSET): Likewise. | |
145 | (AARCH64_FPSIMD_V0_OFFSET): Likewise. | |
146 | (AARCH64_FPSIMD_VREG_SIZE): Likewise. | |
147 | (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise. | |
148 | (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise. | |
149 | (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise. | |
150 | (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise. | |
151 | (AARCH64_SVE_CONTEXT_SIZE): Likewise. | |
152 | (read_aarch64_ctx): Add function. | |
153 | (aarch64_linux_sigframe_init): Detect FP registers. | |
154 | ||
c74e7cb9 AH |
155 | 2018-10-01 Alan Hayward <[email protected]> |
156 | ||
157 | * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here. | |
158 | (AARCH64_D0_REGNUM): Likewise. | |
159 | (AARCH64_S0_REGNUM): Likewise. | |
160 | (AARCH64_H0_REGNUM): Likewise. | |
161 | (AARCH64_B0_REGNUM): Likewise. | |
162 | (AARCH64_SVE_V0_REGNUM): Likewise. | |
163 | * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here. | |
164 | (AARCH64_D0_REGNUM): Likewise. | |
165 | (AARCH64_S0_REGNUM): Likewise. | |
166 | (AARCH64_H0_REGNUM): Likewise. | |
167 | (AARCH64_B0_REGNUM): Likewise. | |
168 | (AARCH64_SVE_V0_REGNUM): Likewise. | |
169 | ||
12b164e9 GB |
170 | 2018-10-01 Gary Benson <[email protected]> |
171 | ||
172 | * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef. | |
173 | * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use | |
174 | prfpregset_t instead of gdb_prfpregset_t. | |
175 | * configure.ac (PRFPREGSET_T_BROKEN): Remove check. | |
176 | * configure, config.in: Rebuild. | |
177 | ||
7c619dbd GB |
178 | 2018-10-01 Gary Benson <[email protected]> |
179 | ||
180 | * common/gdb_proc_service.h: New file, factored out from... | |
181 | * gdb_proc_service.h: Moved common code to the above file. | |
182 | * Makefile.in (HFILES_NO_SRCDIR): Add the above new file. | |
183 | ||
358ffcf2 GB |
184 | 2018-10-01 Gary Benson <[email protected]> |
185 | ||
186 | * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is | |
187 | undefined. Use elf_fpregset_t if prfpregset_t is undefined. | |
188 | ||
43b7e92b GB |
189 | 2018-10-01 Gary Benson <[email protected]> |
190 | ||
191 | * configure.ac: Check if sys/procfs.h defines elf_fpregset_t. | |
192 | (AC_CHECK_HEADERS): Check for linux/elf.h. | |
193 | * configure, config.in: Rebuild. | |
194 | * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h | |
195 | doesn't define elf_fpregset_t. | |
196 | ||
3795e814 GB |
197 | 2018-10-01 Gary Benson <[email protected]> |
198 | ||
199 | * gdb_proc_service.h: Whitespace change. | |
200 | ||
4176f14d TT |
201 | 2018-10-01 Tom Tromey <[email protected]> |
202 | ||
203 | * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H. | |
204 | * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H. | |
205 | * common/scoped_fd.h: Don't check HAVE_UNISTD_H. | |
206 | ||
a95746f9 TT |
207 | 2018-10-01 Tom Tromey <[email protected]> |
208 | ||
209 | * README: Minor change. | |
210 | ||
dd203782 PA |
211 | 2018-09-30 Pedro Alves <[email protected]> |
212 | ||
213 | * darwin-nat-info.c (darwin_debug_regions_recurse) | |
214 | (info_mach_exceptions_command): Remove unused local variables. | |
215 | * darwin-nat.c (darwin_decode_notify_message) | |
216 | (darwin_nat_target::resume, darwin_nat_target::mourn_inferior) | |
217 | (darwin_stop_inferior, darwin_setup_exceptions) | |
218 | (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him) | |
219 | (darwin_nat_target::attach, darwin_nat_target::detach) | |
220 | (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused | |
221 | local variables. | |
222 | * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local | |
223 | variables. | |
224 | ||
c82a2e6f TT |
225 | 2018-09-29 Tom Tromey <[email protected]> |
226 | ||
227 | * README: Remove some leftover text. | |
228 | ||
7f0bd420 TT |
229 | 2018-09-29 Tom Tromey <[email protected]> |
230 | ||
231 | * PROBLEMS: Rewrite. | |
232 | * README: Update. | |
233 | ||
f37bc8b1 JB |
234 | 2018-09-28 John Baldwin <[email protected]> |
235 | ||
236 | * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to | |
237 | case with explicit breakpoint kind. | |
238 | * riscv-tdep.c (show_use_compressed_breakpoints): Remove | |
239 | 'additional_info' and related logic. | |
240 | (riscv_debug_breakpoints): New variable. | |
241 | (riscv_breakpoint_kind_from_pc): Use the length of the existing | |
242 | instruction to determine the breakpoint kind. | |
243 | (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints' | |
244 | flag. Update description of 'set/show riscv | |
245 | use-compressed-breakpoints' flag. | |
246 | ||
f67ffa6a AB |
247 | 2018-09-28 Andrew Burgess <[email protected]> |
248 | ||
249 | (NEWS): Mention changes to frame related commands. | |
250 | * cli/cli-decode.c (add_cmd_suppress_notification): New function. | |
251 | (add_prefix_cmd_suppress_notification): New function. | |
252 | (add_com_suppress_notification): Call | |
253 | add_cmd_suppress_notification. | |
254 | * command.h (add_cmd_suppress_notification): Declare. | |
255 | (add_prefix_cmd_suppress_notification): Declare. | |
256 | * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include. | |
257 | (parse_frame_specification): Moved from stack.c, with | |
258 | simplification to handle a single argument. | |
259 | (mi_cmd_stack_select_frame): Use parse_frame_specification, the | |
260 | switch to the selected frame. Add a header comment. | |
261 | * stack.c: Remove 'safe-ctype.h' include. | |
262 | (find_frame_for_function): Add declaration. | |
263 | (find_frame_for_address): New function. | |
264 | (parse_frame_specification): Moved into mi/mi-cmd-stack.c. | |
265 | (frame_selection_by_function_completer): New function. | |
266 | (info_frame_command): Rename to... | |
267 | (info_frame_command_core): ...this, and update parameter types. | |
268 | (select_frame_command): Rename to... | |
269 | (select_frame_command_core): ...this, and update parameter types. | |
270 | (frame_command): Rename to... | |
271 | (frame_command_core): ...this, and update parameter types. | |
272 | (class frame_command_helper): New class to wrap implementations of | |
273 | frame related sub-commands. | |
274 | (frame_apply_cmd_list): New static global. | |
275 | (frame_cmd_list): Make static. | |
276 | (select_frame_cmd_list): New global for sub-commands. | |
277 | (info_frame_cmd_list): New global for sub-commands. | |
278 | (_initialize_stack): Register sub-commands for 'frame', | |
279 | 'select-frame', and 'info frame'. Update 'frame apply' commands | |
280 | to use frame_apply_cmd_list. Move function local static | |
281 | frame_apply_list to file static frame_apply_cmd_list for | |
282 | consistency. | |
283 | * stack.h (select_frame_command): Delete declarationn. | |
284 | (select_frame_for_mi): Declare new function. | |
285 | ||
d354055e AB |
286 | 2018-09-26 Andrew Burgess <[email protected]> |
287 | ||
288 | * riscv-tdep.c (riscv_insn::decode): Decode c.lui. | |
289 | (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI, | |
290 | and NOP. | |
291 | ||
85392414 SM |
292 | 2018-09-26 Simon Marchi <[email protected]> |
293 | ||
294 | * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove. | |
295 | ||
896ee098 TT |
296 | 2018-09-26 Tom Tromey <[email protected]> |
297 | ||
298 | * valops.c (auto_abandon): Remove dead code. | |
299 | ||
57dbb3af TT |
300 | 2018-09-26 Tom Tromey <[email protected]> |
301 | ||
302 | * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s. | |
303 | ||
b5a9bfbe TT |
304 | 2018-09-24 Tom Tromey <[email protected]> |
305 | ||
306 | * common/pathstuff.c (get_standard_cache_dir): Make | |
307 | "xdg_cache_home" and "home" const. | |
308 | * top.c (init_history): Make "tmpenv" const. | |
309 | * main.c (get_init_files): Make "homedir" const. | |
310 | ||
ae778caf TT |
311 | 2018-09-23 Tom Tromey <[email protected]> |
312 | ||
313 | PR python/18852: | |
314 | * python/py-param.c (get_set_value): Use gdbpy_handle_exception. | |
315 | ||
2b4ad2fe TT |
316 | 2018-09-23 Tom Tromey <[email protected]> |
317 | ||
318 | * python/py-function.c (fnpy_call): Use gdbpy_handle_exception. | |
319 | * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception. | |
320 | * python/python-internal.h (gdbpy_handle_exception): Declare. | |
321 | * python/py-utils.c (gdbpy_handle_exception): New function. | |
322 | ||
fd3ba736 TT |
323 | 2018-09-23 Tom Tromey <[email protected]> |
324 | ||
325 | PR python/17284: | |
326 | * python/py-type.c (typy_template_argument): Check for negative | |
327 | argument number. | |
328 | ||
39a24317 TT |
329 | 2018-09-23 Tom Tromey <[email protected]> |
330 | ||
331 | PR python/14062: | |
332 | * python/python.c (gdbpy_run_events): Do not ignore exceptions. | |
333 | ||
f5769a2c TT |
334 | 2018-09-23 Tom Tromey <[email protected]> |
335 | ||
336 | PR python/18170: | |
337 | * python/py-value.c (valpy_int): Allow conversion from pointer | |
338 | type. | |
339 | ||
1c1e54f6 TT |
340 | 2018-09-23 Tom Tromey <[email protected]> |
341 | ||
342 | PR python/20126: | |
343 | * python/py-value.c (valpy_int): Respect type sign. | |
344 | ||
fb4fa946 TT |
345 | 2018-09-23 Tom Tromey <[email protected]> |
346 | ||
347 | PR python/18352; | |
348 | * python/py-value.c (valpy_float): Allow conversions from int or | |
349 | char. | |
350 | (valpy_int, valpy_long): Allow conversions from float. | |
351 | ||
65773341 TT |
352 | 2018-09-23 Tom Tromey <[email protected]> |
353 | ||
354 | * ctf.c (ctf_start): Use gdb_fopen_cloexec. | |
355 | * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec. | |
356 | ||
1db88d22 RO |
357 | 2018-09-23 Rainer Orth <[email protected]> |
358 | ||
359 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize | |
360 | __sighndlr. | |
361 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise. | |
362 | ||
a44294f5 JT |
363 | 2018-08-02 Jon Turney <[email protected]> |
364 | ||
365 | * windows-nat.c (windows_nat_target::wait): Remove a spurious | |
366 | target_terminal::ours(). | |
367 | ||
0c0a40e0 SM |
368 | 2018-09-23 Simon Marchi <[email protected]> |
369 | ||
370 | * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type | |
371 | of vl to ULONGEST. | |
372 | ||
4daf1902 YS |
373 | 2018-09-21 Yacov Simhony <[email protected]> |
374 | ||
375 | * breakpoint.c (update_inserted_breakpoint_locations): Remove | |
376 | redundant condition. | |
377 | ||
c475f569 RO |
378 | 2018-09-20 Rainer Orth <[email protected]> |
379 | ||
380 | * proc-utils.h (PROC_CTL_WORD_TYPE): Remove. | |
381 | ||
382 | * procfs.c: Don't check for PR_MODEL_NATIVE definition. | |
383 | * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references. | |
384 | * sol-thread.c (ps_pdmodel): Don't guard definition. | |
385 | ||
386 | * procfs.c: Fix formatting. | |
387 | ||
388 | * procfs.c (sysset_t_alloc): Remove. | |
389 | (create_procinfo): Use XNEW instead of sysset_t_alloc. | |
390 | (procfs_debug_inferior): Likewise. | |
391 | (procfs_set_exec_trap): Likewise. | |
392 | (proc_set_traced_sysentry): Don't allocate argp dynamically. | |
393 | (proc_set_traced_sysexit): Likewise. | |
394 | ||
395 | * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning. | |
396 | (dead_procinfo): Likewise. | |
397 | (proc_warn): Likewise. | |
398 | (proc_error): Likewise. | |
399 | (proc_get_LDT_entry): Likewise. | |
400 | (do_attach): Likewise. | |
401 | (procfs_target::pid_to_str): Likewise. | |
402 | (iterate_over_mappings): Likewise. | |
403 | ||
404 | * procfs.c (create_procinfo): Fix ARI warning. | |
405 | (proc_get_status): Likewise. | |
406 | (proc_stop_process): Likewise. | |
407 | (proc_run_process): Likewise. | |
408 | (proc_kill): Likewise. | |
409 | (proc_get_LDT_entry): Likewise. | |
410 | (procfs_find_LDT_entry): Likewise. | |
411 | (proc_update_threads): Likewise. | |
412 | (proc_iterate_over_threads): Likewise. | |
413 | (do_attach): Likewise. | |
414 | (procfs_xfer_memory): Likewise. | |
415 | (invalidate_cache): Likewise. | |
416 | (procfs_target::resume): Likewise. | |
417 | (procfs_init_inferior): Likewise. | |
418 | (procfs_set_exec_trap): Likewise. | |
419 | (procfs_target::thread_alive): Likewise. | |
420 | (procfs_target::pid_to_exec_file): Likewise. | |
421 | (iterate_over_mappings): Likewise. | |
422 | (procfs_target::make_corefile_notes): Likewise. | |
423 | * sol-thread.c (sol_thread_target::thread_alive): Likewise. | |
424 | ||
425 | * procfs.c (procfs_find_LDT_entry): Silence ARI warning. | |
426 | (procfs_find_LDT_entry): Likewise. | |
427 | * sol-thread.c (ps_lgetLDT): Likewise. | |
428 | ||
4206c05e RO |
429 | 2018-09-20 Rainer Orth <[email protected]> |
430 | ||
431 | PR tdep/17903 | |
432 | * procfs.c (procfs_target): Declare pid_to_exec_file. | |
433 | (procfs_target::pid_to_exec_file): New. | |
434 | ||
3d282ac3 RO |
435 | 2018-09-20 Rainer Orth <[email protected]> |
436 | ||
437 | * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1 | |
438 | renaming. | |
439 | Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1, | |
440 | AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2. | |
441 | ||
8c93fae6 RO |
442 | 2018-09-20 Rainer Orth <[email protected]> |
443 | ||
444 | * i386-v4-nat.c (regmap, supply_gregset, fill_gregset) | |
445 | (supply_fpregset, fill_fpregset): Move ... | |
446 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here. | |
447 | Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards. | |
448 | Remove references to ioctl-based procfs. | |
449 | Include <sys/reg.h>. | |
450 | Remove PR_MODEL_NATIVE guards. | |
451 | * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o. | |
452 | * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c. | |
453 | ||
79b32f4a XR |
454 | 2018-09-19 Xavier Roirand <[email protected]> |
455 | ||
456 | PR gdb/20981: | |
457 | * solib-darwin.c (darwin_get_dyld_bfd): New function. | |
458 | (darwin_solib_get_all_image_info_addr_at_init): Update call. | |
459 | (darwin_solib_create_inferior_hook): Handle unrelocated dyld. | |
460 | ||
07147793 JB |
461 | 2018-09-19 John Baldwin <[email protected]> |
462 | ||
463 | * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix. | |
464 | (fbsd_print_sockaddr_in6): Likewise. | |
465 | ||
23be8da7 RB |
466 | 2018-09-19 Richard Bunt <[email protected]> |
467 | Chris January <[email protected]> | |
468 | ||
469 | * eval.c (skip_undetermined_arglist): Skip argument list helper. | |
470 | (evaluate_subexp_standard): Return a dummy type when | |
471 | honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the | |
472 | OP_F77_UNDETERMINED_ARGLIST case. | |
473 | * expression.h (enum noside): Update comment. | |
474 | ||
7307a73a RO |
475 | 2018-09-19 George Vasick <[email protected]> |
476 | ||
477 | * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1. | |
478 | ||
13db92d3 RO |
479 | 2018-09-19 Stefan Teleman <[email protected]> |
480 | April Chin <[email protected]> | |
481 | Rainer Orth <[email protected]> | |
482 | ||
483 | * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and | |
484 | uint_t lwpid_t. | |
485 | (create_procinfo): Print pids in /proc without leading zeros. | |
486 | ||
3d50f170 SL |
487 | 2018-09-18 Sandra Loosemore <[email protected]> |
488 | ||
489 | * nios2-tdep.c (nios2_gcc_target_options): New. | |
490 | (nios2_gdb_arch_init): Install new hook. | |
491 | ||
b567ca63 SM |
492 | 2018-09-18 Simon Marchi <[email protected]> |
493 | ||
494 | * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch: | |
495 | New file. | |
496 | * update-gnulib.sh: Apply patch. | |
497 | * configure: Re-generate. | |
498 | ||
73f1bd76 JB |
499 | 2018-09-18 John Baldwin <[email protected]> |
500 | ||
501 | * infcmd.c (_initialize_infcmd): Remove "running" from "info proc" | |
502 | description. Make "info proc" command descriptions more | |
503 | consistent. | |
504 | ||
8b113111 JB |
505 | 2018-09-18 John Baldwin <[email protected]> |
506 | ||
507 | * NEWS: Mention 'info proc files' command. | |
508 | ||
7e69672e JB |
509 | 2018-09-18 John Baldwin <[email protected]> |
510 | ||
511 | * fbsd-nat.c (fbsd_nat_target::info_proc): List open file | |
512 | descriptors for IP_FILES and IP_ALL. | |
513 | ||
57c2a98a JB |
514 | 2018-09-18 John Baldwin <[email protected]> |
515 | ||
516 | * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN) | |
517 | (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER) | |
518 | (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE) | |
519 | (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE) | |
520 | (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE) | |
521 | (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS) | |
522 | (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT) | |
523 | (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE) | |
524 | (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ) | |
525 | (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND) | |
526 | (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC) | |
527 | (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT) | |
528 | (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC) | |
529 | (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR) | |
530 | (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK) | |
531 | (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX) | |
532 | (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM) | |
533 | (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP) | |
534 | (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines. | |
535 | (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6) | |
536 | (struct fbsd_sockaddr_un): New types. | |
537 | (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto) | |
538 | (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6) | |
539 | (fbsd_info_proc_files_header, fbsd_info_proc_files_entry) | |
540 | (fbsd_core_info_proc_files): New functions. | |
541 | (fbsd_core_info_proc): List open file descriptors for IP_FILES and | |
542 | IP_ALL. | |
543 | * fbsd-tdep.h (fbsd_info_proc_files_header) | |
544 | (fbsd_info_proc_files_entry): New. | |
545 | ||
e98ee8c4 JB |
546 | 2018-09-18 John Baldwin <[email protected]> |
547 | ||
548 | * defs.h (enum info_proc_what) [IP_FILES]: New value. | |
549 | * infcmd.c (info_proc_cmd_files): New function. | |
550 | (_initialize_infcmd): Register 'info proc files' command. | |
551 | ||
725e2999 JB |
552 | 2018-09-18 John Baldwin <[email protected]> |
553 | ||
554 | * gnulib/aclocal-m4-deps.mk: Re-generate. | |
555 | * gnulib/aclocal.m4: Re-generate. | |
556 | * gnulib/config.in: Re-generate. | |
557 | * gnulib/configure: Re-generate. | |
558 | * gnulib/import/Makefile.am: Re-generate. | |
559 | * gnulib/import/Makefile.in: Re-generate. | |
560 | * gnulib/import/m4/gnulib-cache.m4: Re-generate. | |
561 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
562 | * gnulib/import/arpa_inet.in.h: New file. | |
563 | * gnulib/import/inet_ntop.c: New file. | |
564 | * gnulib/import/m4/arpa_inet_h.m4: New file. | |
565 | * gnulib/import/m4/inet_ntop.m4: New file. | |
566 | * gnulib/import/m4/netinet_in_h.m4: New file. | |
567 | * gnulib/import/m4/socklen.m4: New file. | |
568 | * gnulib/import/m4/sockpfaf.m4: New file. | |
569 | * gnulib/import/m4/stdalign.m4: New file. | |
570 | * gnulib/import/m4/sys_uio_h.m4: New file. | |
571 | * gnulib/import/netinet_in.in.h: New file. | |
572 | * gnulib/import/stdalign.in.h: New file. | |
573 | * gnulib/import/sys_socket.c: New file. | |
574 | * gnulib/import/sys_socket.in.h: New file. | |
575 | * gnulib/import/sys_uio.in.h: New file. | |
576 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop | |
577 | module. | |
578 | ||
2afffa7f JB |
579 | 2018-09-18 John Baldwin <[email protected]> |
580 | ||
581 | * gnulib/aclocal-m4-deps.mk: New file. | |
582 | * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk" | |
583 | deterministically. | |
584 | ||
9f235e09 JB |
585 | 2018-09-18 John Baldwin <[email protected]> |
586 | ||
587 | * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of | |
588 | KVE_PATH. | |
589 | ||
40f03055 TT |
590 | 2018-09-18 Tom Tromey <[email protected]> |
591 | ||
592 | * compile/compile-object-load.c (struct | |
593 | link_hash_table_cleanup_data): Add constructor and destructor. | |
594 | Use DISABLE_COPY_AND_ASSIGN. | |
595 | (~link_hash_table_cleanup_data): Rename from | |
596 | link_hash_table_free. Now a destructor. | |
597 | (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups. | |
598 | ||
c9e0a7e3 TT |
599 | 2018-09-18 Tom Tromey <[email protected]> |
600 | ||
601 | * compile/compile-object-run.c (do_module_cleanup): Use delete. | |
602 | * compile/compile-object-load.c (struct munmap_list): Move to | |
603 | header file. | |
604 | (munmap_list::add): Rename from munmap_list_add; rewrite. | |
605 | (munmap_list::~munmap_list): Rename from munmap_list_free. | |
606 | (munmap_listp_free_cleanup): Remove. | |
607 | (compile_object_load): Update. | |
608 | * compile/compile-object-load.h (struct munmap_list): Move from | |
609 | compile-object-load.c. Rewrite. | |
610 | ||
3ff2c72e AH |
611 | 2018-09-18 Alan Hayward <[email protected]> |
612 | ||
613 | * aarch64-tdep.c (pass_in_v): Use register size. | |
614 | (aarch64_extract_return_value): Likewise. | |
615 | (aarch64_store_return_value): Likewise. | |
616 | ||
206c1947 RO |
617 | 2018-09-18 Rainer Orth <[email protected]> |
618 | ||
619 | * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to | |
620 | rlim_t. | |
621 | ||
6eb5dbce PW |
622 | 2018-09-17 Philippe Waroquiers <[email protected]> |
623 | ||
624 | * python/lib/gdb/command/frame_filters.py (EnableFrameFilter): | |
625 | Fix short help line. | |
626 | ||
ae292b3a TT |
627 | 2018-09-17 Tom Tromey <[email protected]> |
628 | ||
629 | PR python/20445: | |
630 | * configure: Rebuild. | |
631 | * configure.ac: Conditionally use -DNDEBUG for Python. | |
632 | ||
da658607 TT |
633 | 2018-09-17 Tom Tromey <[email protected]> |
634 | ||
635 | * configure: Rebuild. | |
636 | * configure.ac: Use gmp as a library dependency when checking for | |
637 | mpfr. | |
638 | ||
d35da542 PA |
639 | 2018-09-17 Pedro Alves <[email protected]> |
640 | ||
641 | * python/py-inferior.c (find_inferior_object): Delete. | |
642 | ||
461464f2 SM |
643 | 2018-09-17 Simon Marchi <[email protected]> |
644 | ||
645 | * compile/compile-cplus-types.c | |
646 | (compile_cplus_instance::enter_scope): Don't use new_scope after | |
647 | std::move. | |
648 | ||
e6cd1dc1 TT |
649 | 2018-09-17 Tom Tromey <[email protected]> |
650 | ||
651 | * common/pathstuff.c (get_standard_cache_dir): Use | |
652 | ~/Library/Caches on macOS. | |
653 | * common/pathstuff.h (get_standard_cache_dir): Update comment. | |
654 | ||
8588b356 SM |
655 | 2018-09-17 Simon Marchi <[email protected]> |
656 | ||
657 | PR python/23669 | |
658 | * breakpoint.c (commands_cmd_element): New. | |
659 | (_initialize_breakpoint): Assign commands_cmd_element. | |
660 | * breakpoint.h (commands_cmd_element): New. | |
661 | * cli/cli-script.c (while_cmd_element, if_command, | |
662 | define_cmd_element): New. | |
663 | (command_name_equals): Remove. | |
664 | (process_next_line): Compare commands by pointer, not by name. | |
665 | (_initialize_cli_script): Assign the various cmd_list_element | |
666 | variables. | |
667 | * compile/compile.c (compile_cmd_element): New. | |
668 | (_initialize_compile): Assign compile_cmd_element. | |
669 | * compile/compile.h (compile_cmd_element): New. | |
670 | * guile/guile.c (guile_cmd_element): New. | |
671 | (install_gdb_commands): Assign guile_cmd_element. | |
672 | * guile/guile.h (guile_cmd_element): New. | |
673 | * python/python.c (python_cmd_element): New. | |
674 | (_initialize_python): Assign python_cmd_element. | |
675 | * python/python.h (python_cmd_element): New. | |
676 | * tracepoint.c (while_stepping_cmd_element): New. | |
677 | (_initialize_tracepoint): Assign while_stepping_cmd_element. | |
678 | * tracepoint.h (while_stepping_cmd_element): New. | |
679 | ||
cb524840 TT |
680 | 2018-09-17 Tom Tromey <[email protected]> |
681 | ||
682 | * infrun.c (save_infcall_suspend_state): Return | |
683 | infcall_suspend_state_up. | |
684 | (save_infcall_control_state): Return infcall_control_state_up. | |
685 | * inferior.h (save_infcall_suspend_state) | |
686 | (save_infcall_control_state): Declare later. Return unique | |
687 | pointers. | |
688 | ||
2d844eaf TT |
689 | 2018-09-17 Tom Tromey <[email protected]> |
690 | ||
691 | * infrun.c (struct stop_context): Declare constructor, | |
692 | destructor, "changed" method. | |
693 | (stop_context::stop_context): Rename from save_stop_context. | |
694 | (stop_context::~stop_context): Rename from | |
695 | release_stop_context_cleanup. | |
696 | (normal_stop): Update. | |
697 | (stop_context::changed): Rename from stop_context_changed. Return | |
698 | bool. | |
699 | ||
c7c4d3fa TT |
700 | 2018-09-17 Tom Tromey <[email protected]> |
701 | ||
702 | * inferior.h (struct infcall_suspend_state_deleter): New. | |
703 | (infcall_suspend_state_up): New typedef. | |
704 | (struct infcall_control_state_deleter): New. | |
705 | (infcall_control_state_up): New typedef. | |
706 | (make_cleanup_restore_infcall_suspend_state) | |
707 | (make_cleanup_restore_infcall_control_state): Don't declare. | |
708 | * infcall.c (call_function_by_hand_dummy): Update. | |
709 | * infrun.c (do_restore_infcall_suspend_state_cleanup) | |
710 | (make_cleanup_restore_infcall_suspend_state): Remove. | |
711 | (do_restore_infcall_control_state_cleanup) | |
712 | (make_cleanup_restore_infcall_control_state): Remove. | |
713 | ||
ee841dd8 TT |
714 | 2018-09-17 Tom Tromey <[email protected]> |
715 | ||
716 | * gdbthread.h (struct thread_control_state): Add initializer. | |
717 | (class thread_info) <control>: Remove initializer. | |
718 | * inferior.h (struct inferior_control_state): Add initializer. | |
719 | (class inferior) <control>: Remove initializer. | |
720 | (exit_inferior_1): Update. | |
721 | * infrun.c (struct infcall_control_state): Add constructors. | |
722 | (save_infcall_control_state): Use new. | |
723 | (restore_infcall_control_state, discard_infcall_control_state): | |
724 | Use delete. | |
725 | ||
117f580a TT |
726 | 2018-09-17 Tom Tromey <[email protected]> |
727 | ||
728 | * infrun.c (struct infcall_suspend_state) <registers>: Now a | |
729 | unique_ptr. | |
730 | <siginfo_data>: Now a unique_xmalloc_ptr. | |
731 | (save_infcall_suspend_state, restore_infcall_suspend_state) | |
732 | (discard_infcall_suspend_state) | |
733 | (get_infcall_suspend_state_regcache): Update. | |
734 | ||
dd848631 TT |
735 | 2018-09-17 Tom Tromey <[email protected]> |
736 | ||
737 | * gdbthread.h (struct thread_suspend_state): Add initializers. | |
738 | (class thread_info) <suspend>: Remove initializer. | |
739 | * infrun.c (struct infcall_suspend_state): Add initializers. | |
740 | (save_infcall_suspend_state): Use new. | |
741 | (discard_infcall_suspend_state): Use delete. | |
742 | ||
1a338907 TT |
743 | 2018-09-16 Tom Tromey <[email protected]> |
744 | ||
745 | * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG): | |
746 | Remove. | |
747 | * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to | |
748 | rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG. | |
749 | (py_varobj_iter_new): Likewise. | |
750 | (py_varobj_get_iterator): Use gdbpy_ref. | |
751 | ||
4a137fec TT |
752 | 2018-09-16 Tom Tromey <[email protected]> |
753 | ||
754 | * python/py-threadevent.c (py_get_event_thread): Simplify. | |
755 | * python/py-inferior.c (infpy_thread_from_thread_handle): | |
756 | Return immediately after calling thread_to_thread_object. Use | |
757 | Py_RETURN_NONE. | |
758 | (thread_to_thread_object): Set the exception on a NULL return. | |
759 | ||
8ff03f0b SM |
760 | 2018-09-16 Simon Marchi <[email protected]> |
761 | ||
762 | * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS. | |
763 | ||
94c8b725 TT |
764 | 2018-09-16 Tom Tromey <[email protected]> |
765 | ||
766 | * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): | |
767 | Remove. | |
768 | ||
db1337cc TT |
769 | 2018-09-16 Tom Tromey <[email protected]> |
770 | ||
771 | * python/python-internal.h (thread_to_thread_object): Change | |
772 | return type. | |
773 | * python/py-inferior.c (thread_to_thread_object): Return a new | |
774 | reference. | |
775 | (infpy_thread_from_thread_handle): Update. | |
776 | * python/py-infthread.c (gdbpy_selected_thread): Update. | |
777 | * python/py-stopevent.c (create_stop_event_object): Update. | |
778 | * python/py-threadevent.c (py_get_event_thread): Return a new | |
779 | reference. | |
780 | (py_get_event_thread): Update. | |
781 | * python/py-event.h (py_get_event_thread): Change return type. | |
782 | * python/py-continueevent.c (create_continue_event_object): | |
783 | Update. | |
784 | ||
0a9db5ad TT |
785 | 2018-09-16 Tom Tromey <[email protected]> |
786 | ||
787 | * python/py-progspace.c (pspy_get_objfiles): Update. | |
788 | * python/python-internal.h (objfile_to_objfile_object): Change | |
789 | return type. | |
790 | * python/py-newobjfileevent.c (create_new_objfile_event_object): | |
791 | Update. | |
792 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
793 | Update. | |
794 | * python/python.c (gdbpy_get_current_objfile): Update. | |
795 | (gdbpy_objfiles): Update. | |
796 | * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile): | |
797 | Update. | |
798 | (objfile_to_objfile_object): Return a new reference. | |
799 | * python/py-symtab.c (stpy_get_objfile): Update. | |
800 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
801 | Update. | |
802 | ||
3c7aa307 TT |
803 | 2018-09-16 Tom Tromey <[email protected]> |
804 | ||
805 | * python/py-inferior.c (infpy_get_progspace): Update. | |
806 | * python/python-internal.h (pspace_to_pspace_object): Change | |
807 | return type. | |
808 | * python/py-newobjfileevent.c | |
809 | (create_clear_objfiles_event_object): Update. | |
810 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
811 | Update. | |
812 | * python/python.c (gdbpy_get_current_progspace): Update. | |
813 | (gdbpy_progspaces): Update. | |
814 | * python/py-progspace.c (pspace_to_pspace_object): Return a new | |
815 | reference. | |
816 | * python/py-objfile.c (objfpy_get_progspace): Update. | |
817 | * python/py-prettyprint.c (find_pretty_printer_from_progspace): | |
818 | Update. | |
819 | ||
8743a9cd TT |
820 | 2018-09-16 Tom Tromey <[email protected]> |
821 | ||
822 | * python/lib/gdb/__init__.py (current_progspace, objfiles) | |
823 | (solib_name, block_for_pc, find_pc_line): New functions. | |
824 | (execute_unwinders): Update. | |
825 | * python/py-block.c (gdbpy_block_for_pc): Remove. | |
826 | * python/py-inferior.c (infpy_get_progspace): New function. | |
827 | (inferior_object_getset) <progspace>: Add. | |
828 | * python/py-progspace.c (pspy_objfiles): Rewrite. | |
829 | (pspy_solib_name, pspy_block_for_pc) | |
830 | (pspy_find_pc_line, pspy_is_valid): New functions. | |
831 | (progspace_object_methods): Add entries for solib_name, | |
832 | block_for_pc, find_pc_line, is_valid. | |
833 | * python/python-internal.h (gdbpy_block_for_pc) | |
834 | (build_objfiles_list): Don't declare. | |
835 | * python/python.c: Don't include solib.h. | |
836 | (gdbpy_solib_name, gdbpy_find_pc_line) | |
837 | (gdbpy_get_current_progspace, build_objfiles_list) | |
838 | (gdbpy_objfiles): Remove. | |
839 | (GdbMethods) <current_progspace, objfiles, block_for_pc, | |
840 | solib_name, find_pc_line>: Remove entries. | |
841 | ||
65e65158 TT |
842 | 2018-09-16 Tom Tromey <[email protected]> |
843 | ||
844 | * top.c (new_ui_command): Use GNU style for metasyntactic | |
845 | variables. | |
846 | * breakpoint.c (stopat_command): Use GNU style for metasyntactic | |
847 | variables. | |
848 | * maint.c (maintenance_translate_address): Remove "<>" around | |
849 | text. | |
850 | * interps.c (interpreter_exec_cmd): Use GNU style for | |
851 | metasyntactic variables. | |
852 | * nto-procfs.c (nto_procfs_target_info): Use GNU style for | |
853 | metasyntactic variables. | |
854 | * tracepoint.c (tfind_range_command): Use GNU style for | |
855 | metasyntactic variables. | |
856 | (tfind_outside_command): Likewise. | |
857 | (_initialize_tracepoint): Likewise. | |
858 | * remote.c (extended_remote_target::create_inferior): Use GNU | |
859 | style for metasyntactic variables. | |
860 | * sparc64-tdep.c (adi_examine_command): Use GNU style for | |
861 | metasyntactic variables. | |
862 | (adi_assign_command): Likewise. | |
863 | ||
f4bab6ff TT |
864 | 2018-09-16 Tom Tromey <[email protected]> |
865 | ||
866 | * disasm.c (show_disassembler_options_sfunc): Use GNU style for | |
867 | metasyntactic variables. Print message if no disassembler options | |
868 | are available. | |
869 | ||
cbaaa0ca TT |
870 | 2018-09-15 Tom Tromey <[email protected]> |
871 | ||
872 | * infcmd.c (get_inferior_args): Return const char *. | |
873 | * inferior.h (get_inferior_args): Return type now const. | |
874 | * linux-tdep.c (linux_fill_prpsinfo): Update. | |
875 | * procfs.c (procfs_target::make_corefile_notes): Update. | |
876 | ||
a3a6aef4 TT |
877 | 2018-09-07 Tom Tromey <[email protected]> |
878 | ||
879 | * python/python.c (execute_gdb_command): Call bpstat_do_actions | |
880 | inside the TRY. | |
881 | ||
f70e088f SL |
882 | 2018-09-14 Sandra Loosemore <[email protected]> |
883 | ||
884 | * nios2-tdep.c (nios2_type_align): New. | |
885 | (nios2_gdb_arch_init): Install type_align hook. | |
886 | ||
2fabdf33 AB |
887 | 2018-09-10 Andrew Burgess <[email protected]> |
888 | ||
889 | * eval.c (fake_method::fake_method): Call xzalloc directly for a | |
890 | type that is neither object file owned, nor gdbarch owned. | |
891 | * gdbtypes.c (get_type_gdbarch): Add an assert that returned | |
892 | gdbarch is non-NULL. | |
893 | (alloc_type_instance): Allocate non-objfile owned types on the | |
894 | gdbarch obstack. | |
895 | (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA | |
896 | using TYPE_ALLOC to ensure memory is allocated on the correct | |
897 | obstack. | |
898 | * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile | |
899 | obstack, or the gdbarch obstack. | |
900 | (TYPE_ZALLOC): Rewrite using TYPE_ALLOC. | |
901 | ||
b4b08fa2 TT |
902 | 2018-09-14 Tom Tromey <[email protected]> |
903 | ||
904 | * infcall.c (call_function_by_hand_dummy): Remove unnecessary | |
905 | block. | |
906 | ||
87b240d4 TT |
907 | 2018-09-14 Tom Tromey <[email protected]> |
908 | ||
909 | * nat/fork-inferior.c (get_startup_shell): Remove "static". | |
910 | ||
7d221512 TT |
911 | 2018-09-13 Tom Tromey <[email protected]> |
912 | ||
913 | * python/py-inferior.c (infpy_thread_from_thread_handle): Now | |
914 | static. | |
915 | ||
97e67fc6 TT |
916 | 2018-09-13 Tom Tromey <[email protected]> |
917 | ||
918 | * exec.c (try_open_exec_file): Use std::string. | |
919 | ||
803c08d0 TT |
920 | 2018-09-13 Tom Tromey <[email protected]> |
921 | ||
922 | * utils.h (gdb_bfd_errmsg): Return std::string. | |
923 | * exec.c (exec_file_attach): Update. | |
924 | * compile/compile-object-load.c (compile_object_load): Update. | |
925 | * utils.c (gdb_bfd_errmsg): Return std::string. | |
926 | ||
5b4cbbe3 TT |
927 | 2018-09-13 Tom Tromey <[email protected]> |
928 | ||
929 | * procfs.c (struct procinfo_deleter): New. | |
930 | (procinfo_up): New typedef. | |
931 | (do_destroy_procinfo_cleanup): Remove. | |
932 | (procfs_target::info_proc): Use procinfo_up. Remove cleanups. | |
933 | ||
db68fbe2 TT |
934 | 2018-09-13 Tom Tromey <[email protected]> |
935 | ||
936 | * source.c (add_path): Use gdb::unique_xmalloc_ptr. | |
937 | ||
0ae1a321 SM |
938 | 2018-09-13 Simon Marchi <[email protected]> |
939 | 2018-09-13 Tom Tromey <[email protected]> | |
940 | ||
941 | * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro. | |
942 | (pspy_get_objfiles): New function. | |
943 | (progspace_object_methods): New. | |
944 | (pspace_object_type): Add tp_methods callback. | |
945 | * python/python-internal.h (build_objfiles_list): New | |
946 | declaration. | |
947 | * python/python.c (build_objfiles_list): New function. | |
948 | (gdbpy_objfiles): Implement using build_objfiles_list. | |
949 | * NEWS: Mention the Progspace.objfiles method. | |
950 | ||
a40bf0c2 SM |
951 | 2018-09-13 Simon Marchi <[email protected]> |
952 | ||
953 | * python/py-inferior.c (infpy_get_progspace): New function. | |
954 | (inferior_object_getset): Add progspace property. | |
955 | * NEWS: Mention the new property. | |
956 | ||
4a3fe98f TT |
957 | 2018-09-13 Tom Tromey <[email protected]> |
958 | ||
959 | PR rust/23650: | |
960 | * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo". | |
961 | ||
098b2108 TT |
962 | 2018-09-13 Tom Tromey <[email protected]> |
963 | ||
964 | PR rust/23626: | |
965 | * rust-lang.c (rust_enum_variant): Now static. | |
966 | (rust_empty_enum_p): New function. | |
967 | (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def): | |
968 | Handle empty enum. | |
969 | ||
1256af7d SM |
970 | 2018-09-13 Simon Marchi <[email protected]> |
971 | ||
972 | * python/py-inferior.c (infpy_repr): New. | |
973 | (inferior_object_type): Register infpy_repr. | |
974 | * python/py-objfile.c (objfpy_repr): New. | |
975 | (objfile_object_type): Register objfpy_repr. | |
976 | ||
f117a62c JB |
977 | 2018-09-12 John Baldwin <[email protected]> |
978 | ||
979 | * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable. | |
980 | ||
88f22c34 JB |
981 | 2018-09-12 John Baldwin <[email protected]> |
982 | ||
983 | * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment | |
984 | typo. | |
985 | ||
3c025cfe SDJ |
986 | 2018-09-12 Sergio Durigan Junior <[email protected]> |
987 | ||
988 | * common/common-utils.c: Don't include '<sys/stat.h>'. | |
989 | (is_regular_file): Move to... | |
990 | * common/filestuff.c (is_regular_file): ... here. | |
991 | * common/common-utils.h (is_regular_file): Move to... | |
992 | * common/filestuff.h (is_regular_file): ... here. | |
993 | ||
3e68067f SM |
994 | 2018-09-12 Simon Marchi <[email protected]> |
995 | ||
996 | * skip.c (debug_skip): New variable. | |
997 | (skiplist_entry::do_skip_file_p): Add debug output. | |
998 | (skiplist_entry::do_skip_gfile_p): Likewise. | |
999 | (skiplist_entry::skip_function_p): Likewise. | |
1000 | (_initialize_step_skip): Create debug command. | |
1001 | * NEWS: Mention set/show debug skip. | |
1002 | ||
d6be54ef XR |
1003 | 2018-09-11 Xavier Roirand <[email protected]> |
1004 | ||
1005 | * darwin-nat.c (should_disable_startup_with_shell): | |
1006 | New function. | |
1007 | (darwin_nat_target::create_inferior): Add call. | |
1008 | ||
de1ec836 XR |
1009 | 2018-09-11 Xavier Roirand <[email protected]> |
1010 | ||
1011 | * darwin-nat.h (struct darwin_thread_info) <gdb_port, | |
1012 | inf_port, msg_state>: Initialize. | |
1013 | (struct darwin_thread_info) <signaled, single_step>: Change | |
1014 | type and initialize. | |
1015 | (struct darwin_thread_info) <event>: Initialize. | |
1016 | ||
e2fc52e7 SDJ |
1017 | 2018-09-10 Sergio Durigan Junior <[email protected]> |
1018 | ||
1019 | PR gdb/23555 | |
1020 | PR gdb/23558 | |
1021 | * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation | |
1022 | guesses. | |
1023 | ||
5e8754f9 SDJ |
1024 | 2018-09-10 Sergio Durigan Junior <[email protected]> |
1025 | ||
1026 | Revert: | |
1027 | 2018-08-29 Sergio Durigan Junior <[email protected]> | |
1028 | ||
1029 | PR gdb/23555 | |
1030 | PR gdb/23558 | |
1031 | * gnulib/aclocal.m4: Regenerate. | |
1032 | * gnulib/config.in: Regenerate. | |
1033 | * gnulib/configure: Regenerate. | |
1034 | * gnulib/import/Makefile.am: Update. | |
1035 | * gnulib/import/Makefile.in: Update. | |
1036 | * gnulib/import/extra/snippet/_Noreturn.h: Rename to... | |
1037 | * gnulib/import/_Noreturn.h: ... this. | |
1038 | * gnulib/import/alloca.in.h: Update. | |
1039 | * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... | |
1040 | * gnulib/import/arg-nonnull.h: ... this. | |
1041 | * gnulib/import/assure.h: Update. | |
1042 | * gnulib/import/at-func.c: Update. | |
1043 | * gnulib/import/basename-lgpl.c: Update. | |
1044 | * gnulib/import/extra/snippet/c++defs.h: Rename to... | |
1045 | * gnulib/import/c++defs.h: ... this. | |
1046 | * gnulib/import/canonicalize-lgpl.c: Update. | |
1047 | * gnulib/import/cdefs.h: Update. | |
1048 | * gnulib/import/chdir-long.c: Update. | |
1049 | * gnulib/import/chdir-long.h: Update. | |
1050 | * gnulib/import/cloexec.c: Update. | |
1051 | * gnulib/import/cloexec.h: Update. | |
1052 | * gnulib/import/close.c: Update. | |
1053 | * gnulib/import/closedir.c: Update. | |
1054 | * gnulib/import/config.charset: Update. | |
1055 | * gnulib/import/dirent-private.h: Update. | |
1056 | * gnulib/import/dirent.in.h: Update. | |
1057 | * gnulib/import/dirfd.c: Update. | |
1058 | * gnulib/import/dirname-lgpl.c: Update. | |
1059 | * gnulib/import/dirname.h: Update. | |
1060 | * gnulib/import/dosname.h: Update. | |
1061 | * gnulib/import/dup-safer-flag.c: Update. | |
1062 | * gnulib/import/dup-safer.c: Update. | |
1063 | * gnulib/import/dup.c: Update. | |
1064 | * gnulib/import/dup2.c: Update. | |
1065 | * gnulib/import/errno.in.h: Update. | |
1066 | * gnulib/import/error.c: Update. | |
1067 | * gnulib/import/error.h: Update. | |
1068 | * gnulib/import/exitfail.c: Update. | |
1069 | * gnulib/import/exitfail.h: Update. | |
1070 | * gnulib/import/extra/update-copyright: Update. | |
1071 | * gnulib/import/fchdir.c: Update. | |
1072 | * gnulib/import/fcntl.c: Update. | |
1073 | * gnulib/import/fcntl.in.h: Update. | |
1074 | * gnulib/import/fd-hook.c: Update. | |
1075 | * gnulib/import/fd-hook.h: Update. | |
1076 | * gnulib/import/fd-safer-flag.c: Update. | |
1077 | * gnulib/import/fd-safer.c: Update. | |
1078 | * gnulib/import/fdopendir.c: Update. | |
1079 | * gnulib/import/filename.h: Update. | |
1080 | * gnulib/import/filenamecat-lgpl.c: Update. | |
1081 | * gnulib/import/filenamecat.h: Update. | |
1082 | * gnulib/import/flexmember.h: Update. | |
1083 | * gnulib/import/float+.h: Update. | |
1084 | * gnulib/import/float.c: Update. | |
1085 | * gnulib/import/float.in.h: Update. | |
1086 | * gnulib/import/fnmatch.c: Update. | |
1087 | * gnulib/import/fnmatch.in.h: Update. | |
1088 | * gnulib/import/fnmatch_loop.c: Update. | |
1089 | * gnulib/import/fpucw.h: Update. | |
1090 | * gnulib/import/frexp.c: Update. | |
1091 | * gnulib/import/frexpl.c: Update. | |
1092 | * gnulib/import/fstat.c: Update. | |
1093 | * gnulib/import/fstatat.c: Update. | |
1094 | * gnulib/import/getcwd-lgpl.c: Update. | |
1095 | * gnulib/import/getcwd.c: Update. | |
1096 | * gnulib/import/getdtablesize.c: Update. | |
1097 | * gnulib/import/getlogin_r.c: Update. | |
1098 | * gnulib/import/getprogname.c: Update. | |
1099 | * gnulib/import/getprogname.h: Update. | |
1100 | * gnulib/import/gettext.h: Update. | |
1101 | * gnulib/import/gettimeofday.c: Update. | |
1102 | * gnulib/import/glob-libc.h: Update. | |
1103 | * gnulib/import/glob.c: Update. | |
1104 | * gnulib/import/glob.in.h: Update. | |
1105 | * gnulib/import/glob_internal.h: Update. | |
1106 | * gnulib/import/glob_pattern_p.c: Update. | |
1107 | * gnulib/import/globfree.c: Update. | |
1108 | * gnulib/import/hard-locale.c: Update. | |
1109 | * gnulib/import/hard-locale.h: Update. | |
1110 | * gnulib/import/intprops.h: Update. | |
1111 | * gnulib/import/inttypes.in.h: Update. | |
1112 | * gnulib/import/isnan.c: Update. | |
1113 | * gnulib/import/isnand-nolibm.h: Update. | |
1114 | * gnulib/import/isnand.c: Update. | |
1115 | * gnulib/import/isnanl-nolibm.h: Update. | |
1116 | * gnulib/import/isnanl.c: Update. | |
1117 | * gnulib/import/itold.c: Update. | |
1118 | * gnulib/import/libc-config.h: Update. | |
1119 | * gnulib/import/limits.in.h: Update. | |
1120 | * gnulib/import/localcharset.c: Update. | |
1121 | * gnulib/import/localcharset.h: Update. | |
1122 | * gnulib/import/localtime-buffer.c: Update. | |
1123 | * gnulib/import/localtime-buffer.h: Update. | |
1124 | * gnulib/import/lstat.c: Update. | |
1125 | * gnulib/import/m4/00gnulib.m4: Update. | |
1126 | * gnulib/import/m4/__inline.m4: Update. | |
1127 | * gnulib/import/m4/absolute-header.m4: Update. | |
1128 | * gnulib/import/m4/alloca.m4: Update. | |
1129 | * gnulib/import/m4/builtin-expect.m4: Update. | |
1130 | * gnulib/import/m4/canonicalize.m4: Update. | |
1131 | * gnulib/import/m4/chdir-long.m4: Update. | |
1132 | * gnulib/import/m4/close.m4: Update. | |
1133 | * gnulib/import/m4/closedir.m4: Update. | |
1134 | * gnulib/import/m4/configmake.m4: Update. | |
1135 | * gnulib/import/m4/d-ino.m4: Update. | |
1136 | * gnulib/import/m4/d-type.m4: Update. | |
1137 | * gnulib/import/m4/dirent_h.m4: Update. | |
1138 | * gnulib/import/m4/dirfd.m4: Update. | |
1139 | * gnulib/import/m4/dirname.m4: Update. | |
1140 | * gnulib/import/m4/double-slash-root.m4: Update. | |
1141 | * gnulib/import/m4/dup.m4: Update. | |
1142 | * gnulib/import/m4/dup2.m4: Update. | |
1143 | * gnulib/import/m4/eealloc.m4: Update. | |
1144 | * gnulib/import/m4/environ.m4: Update. | |
1145 | * gnulib/import/m4/errno_h.m4: Update. | |
1146 | * gnulib/import/m4/error.m4: Update. | |
1147 | * gnulib/import/m4/exponentd.m4: Update. | |
1148 | * gnulib/import/m4/exponentl.m4: Update. | |
1149 | * gnulib/import/m4/extensions.m4: Update. | |
1150 | * gnulib/import/m4/extern-inline.m4: Update. | |
1151 | * gnulib/import/m4/fchdir.m4: Update. | |
1152 | * gnulib/import/m4/fcntl-o.m4: Update. | |
1153 | * gnulib/import/m4/fcntl.m4: Update. | |
1154 | * gnulib/import/m4/fcntl_h.m4: Update. | |
1155 | * gnulib/import/m4/fdopendir.m4: Update. | |
1156 | * gnulib/import/m4/filenamecat.m4: Update. | |
1157 | * gnulib/import/m4/flexmember.m4: Update. | |
1158 | * gnulib/import/m4/float_h.m4: Update. | |
1159 | * gnulib/import/m4/fnmatch.m4: Update. | |
1160 | * gnulib/import/m4/fnmatch_h.m4: Update. | |
1161 | * gnulib/import/m4/fpieee.m4: Update. | |
1162 | * gnulib/import/m4/frexp.m4: Update. | |
1163 | * gnulib/import/m4/frexpl.m4: Update. | |
1164 | * gnulib/import/m4/fstat.m4: Update. | |
1165 | * gnulib/import/m4/fstatat.m4: Update. | |
1166 | * gnulib/import/m4/getcwd-abort-bug.m4: Update. | |
1167 | * gnulib/import/m4/getcwd-path-max.m4: Update. | |
1168 | * gnulib/import/m4/getcwd.m4: Update. | |
1169 | * gnulib/import/m4/getdtablesize.m4: Update. | |
1170 | * gnulib/import/m4/getlogin.m4: Update. | |
1171 | * gnulib/import/m4/getlogin_r.m4: Update. | |
1172 | * gnulib/import/m4/getpagesize.m4: Update. | |
1173 | * gnulib/import/m4/getprogname.m4: Update. | |
1174 | * gnulib/import/m4/gettimeofday.m4: Update. | |
1175 | * gnulib/import/m4/glibc21.m4: Update. | |
1176 | * gnulib/import/m4/glob.m4: Update. | |
1177 | * gnulib/import/m4/glob_h.m4: Update. | |
1178 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
1179 | * gnulib/import/m4/gnulib-common.m4: Update. | |
1180 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
1181 | * gnulib/import/m4/gnulib-tool.m4: Update. | |
1182 | * gnulib/import/m4/hard-locale.m4: Update. | |
1183 | * gnulib/import/m4/include_next.m4: Update. | |
1184 | * gnulib/import/m4/inttypes-pri.m4: Update. | |
1185 | * gnulib/import/m4/inttypes.m4: Update. | |
1186 | * gnulib/import/m4/isnand.m4: Update. | |
1187 | * gnulib/import/m4/isnanl.m4: Update. | |
1188 | * gnulib/import/m4/largefile.m4: Update. | |
1189 | * gnulib/import/m4/limits-h.m4: Update. | |
1190 | * gnulib/import/m4/localcharset.m4: Update. | |
1191 | * gnulib/import/m4/locale-fr.m4: Update. | |
1192 | * gnulib/import/m4/locale-ja.m4: Update. | |
1193 | * gnulib/import/m4/locale-zh.m4: Update. | |
1194 | * gnulib/import/m4/localtime-buffer.m4: Update. | |
1195 | * gnulib/import/m4/longlong.m4: Update. | |
1196 | * gnulib/import/m4/lstat.m4: Update. | |
1197 | * gnulib/import/m4/malloc.m4: Update. | |
1198 | * gnulib/import/m4/malloca.m4: Update. | |
1199 | * gnulib/import/m4/math_h.m4: Update. | |
1200 | * gnulib/import/m4/mbrtowc.m4: Update. | |
1201 | * gnulib/import/m4/mbsinit.m4: Update. | |
1202 | * gnulib/import/m4/mbsrtowcs.m4: Update. | |
1203 | * gnulib/import/m4/mbstate_t.m4: Update. | |
1204 | * gnulib/import/m4/memchr.m4: Update. | |
1205 | * gnulib/import/m4/memmem.m4: Update. | |
1206 | * gnulib/import/m4/mempcpy.m4: Update. | |
1207 | * gnulib/import/m4/memrchr.m4: Update. | |
1208 | * gnulib/import/m4/mkdir.m4: Update. | |
1209 | * gnulib/import/m4/mkstemp.m4: Update. | |
1210 | * gnulib/import/m4/mmap-anon.m4: Update. | |
1211 | * gnulib/import/m4/mode_t.m4: Update. | |
1212 | * gnulib/import/m4/msvc-inval.m4: Update. | |
1213 | * gnulib/import/m4/msvc-nothrow.m4: Update. | |
1214 | * gnulib/import/m4/multiarch.m4: Update. | |
1215 | * gnulib/import/m4/nocrash.m4: Update. | |
1216 | * gnulib/import/m4/off_t.m4: Update. | |
1217 | * gnulib/import/m4/onceonly.m4: Update. | |
1218 | * gnulib/import/m4/open-cloexec.m4: Update. | |
1219 | * gnulib/import/m4/open.m4: Update. | |
1220 | * gnulib/import/m4/openat.m4: Update. | |
1221 | * gnulib/import/m4/opendir.m4: Update. | |
1222 | * gnulib/import/m4/pathmax.m4: Update. | |
1223 | * gnulib/import/m4/rawmemchr.m4: Update. | |
1224 | * gnulib/import/m4/readdir.m4: Update. | |
1225 | * gnulib/import/m4/readlink.m4: Update. | |
1226 | * gnulib/import/m4/realloc.m4: Update. | |
1227 | * gnulib/import/m4/rename.m4: Update. | |
1228 | * gnulib/import/m4/rewinddir.m4: Update. | |
1229 | * gnulib/import/m4/rmdir.m4: Update. | |
1230 | * gnulib/import/m4/save-cwd.m4: Update. | |
1231 | * gnulib/import/m4/secure_getenv.m4: Update. | |
1232 | * gnulib/import/m4/setenv.m4: Update. | |
1233 | * gnulib/import/m4/signal_h.m4: Update. | |
1234 | * gnulib/import/m4/ssize_t.m4: Update. | |
1235 | * gnulib/import/m4/stat-time.m4: Update. | |
1236 | * gnulib/import/m4/stat.m4: Update. | |
1237 | * gnulib/import/m4/std-gnu11.m4: Update. | |
1238 | * gnulib/import/m4/stdbool.m4: Update. | |
1239 | * gnulib/import/m4/stddef_h.m4: Update. | |
1240 | * gnulib/import/m4/stdint.m4: Update. | |
1241 | * gnulib/import/m4/stdio_h.m4: Update. | |
1242 | * gnulib/import/m4/stdlib_h.m4: Update. | |
1243 | * gnulib/import/m4/strchrnul.m4: Update. | |
1244 | * gnulib/import/m4/strdup.m4: Update. | |
1245 | * gnulib/import/m4/strerror.m4: Update. | |
1246 | * gnulib/import/m4/string_h.m4: Update. | |
1247 | * gnulib/import/m4/strstr.m4: Update. | |
1248 | * gnulib/import/m4/strtok_r.m4: Update. | |
1249 | * gnulib/import/m4/sys_socket_h.m4: Update. | |
1250 | * gnulib/import/m4/sys_stat_h.m4: Update. | |
1251 | * gnulib/import/m4/sys_time_h.m4: Update. | |
1252 | * gnulib/import/m4/sys_types_h.m4: Update. | |
1253 | * gnulib/import/m4/tempname.m4: Update. | |
1254 | * gnulib/import/m4/time_h.m4: Update. | |
1255 | * gnulib/import/m4/unistd-safer.m4: Update. | |
1256 | * gnulib/import/m4/unistd_h.m4: Update. | |
1257 | * gnulib/import/m4/warn-on-use.m4: Update. | |
1258 | * gnulib/import/m4/wchar_h.m4: Update. | |
1259 | * gnulib/import/m4/wchar_t.m4: Update. | |
1260 | * gnulib/import/m4/wctype_h.m4: Update. | |
1261 | * gnulib/import/m4/wint_t.m4: Update. | |
1262 | * gnulib/import/malloc.c: Update. | |
1263 | * gnulib/import/malloc/scratch_buffer.h: Update. | |
1264 | * gnulib/import/malloc/scratch_buffer_grow.c: Update. | |
1265 | * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. | |
1266 | * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. | |
1267 | * gnulib/import/malloca.c: Update. | |
1268 | * gnulib/import/malloca.h: Update. | |
1269 | * gnulib/import/malloca.valgrind: Update. | |
1270 | * gnulib/import/math.in.h: Update. | |
1271 | * gnulib/import/mbrtowc.c: Update. | |
1272 | * gnulib/import/mbsinit.c: Update. | |
1273 | * gnulib/import/mbsrtowcs-impl.h: Update. | |
1274 | * gnulib/import/mbsrtowcs-state.c: Update. | |
1275 | * gnulib/import/mbsrtowcs.c: Update. | |
1276 | * gnulib/import/memchr.c: Update. | |
1277 | * gnulib/import/memmem.c: Update. | |
1278 | * gnulib/import/mempcpy.c: Update. | |
1279 | * gnulib/import/memrchr.c: Update. | |
1280 | * gnulib/import/mkdir.c: Update. | |
1281 | * gnulib/import/mkstemp.c: Update. | |
1282 | * gnulib/import/msvc-inval.c: Update. | |
1283 | * gnulib/import/msvc-inval.h: Update. | |
1284 | * gnulib/import/msvc-nothrow.c: Update. | |
1285 | * gnulib/import/msvc-nothrow.h: Update. | |
1286 | * gnulib/import/open.c: Update. | |
1287 | * gnulib/import/openat-die.c: Update. | |
1288 | * gnulib/import/openat-priv.h: Update. | |
1289 | * gnulib/import/openat-proc.c: Update. | |
1290 | * gnulib/import/openat.c: Update. | |
1291 | * gnulib/import/openat.h: Update. | |
1292 | * gnulib/import/opendir.c: Update. | |
1293 | * gnulib/import/pathmax.h: Update. | |
1294 | * gnulib/import/pipe-safer.c: Update. | |
1295 | * gnulib/import/rawmemchr.c: Update. | |
1296 | * gnulib/import/readdir.c: Update. | |
1297 | * gnulib/import/readlink.c: Update. | |
1298 | * gnulib/import/realloc.c: Update. | |
1299 | * gnulib/import/ref-add.sin: Update. | |
1300 | * gnulib/import/ref-del.sin: Update. | |
1301 | * gnulib/import/rename.c: Update. | |
1302 | * gnulib/import/rewinddir.c: Update. | |
1303 | * gnulib/import/rmdir.c: Update. | |
1304 | * gnulib/import/same-inode.h: Update. | |
1305 | * gnulib/import/save-cwd.c: Update. | |
1306 | * gnulib/import/save-cwd.h: Update. | |
1307 | * gnulib/import/scratch_buffer.h: Update. | |
1308 | * gnulib/import/secure_getenv.c: Update. | |
1309 | * gnulib/import/setenv.c: Update. | |
1310 | * gnulib/import/signal.in.h: Update. | |
1311 | * gnulib/import/stat-time.c: Update. | |
1312 | * gnulib/import/stat-time.h: Update. | |
1313 | * gnulib/import/stat-w32.c: Update. | |
1314 | * gnulib/import/stat-w32.h: Update. | |
1315 | * gnulib/import/stat.c: Update. | |
1316 | * gnulib/import/stdbool.in.h: Update. | |
1317 | * gnulib/import/stddef.in.h: Update. | |
1318 | * gnulib/import/stdint.in.h: Update. | |
1319 | * gnulib/import/stdio.in.h: Update. | |
1320 | * gnulib/import/stdlib.in.h: Update. | |
1321 | * gnulib/import/str-two-way.h: Update. | |
1322 | * gnulib/import/strchrnul.c: Update. | |
1323 | * gnulib/import/strdup.c: Update. | |
1324 | * gnulib/import/streq.h: Update. | |
1325 | * gnulib/import/strerror-override.c: Update. | |
1326 | * gnulib/import/strerror-override.h: Update. | |
1327 | * gnulib/import/strerror.c: Update. | |
1328 | * gnulib/import/string.in.h: Update. | |
1329 | * gnulib/import/stripslash.c: Update. | |
1330 | * gnulib/import/strnlen1.c: Update. | |
1331 | * gnulib/import/strnlen1.h: Update. | |
1332 | * gnulib/import/strstr.c: Update. | |
1333 | * gnulib/import/strtok_r.c: Update. | |
1334 | * gnulib/import/sys_stat.in.h: Update. | |
1335 | * gnulib/import/sys_time.in.h: Update. | |
1336 | * gnulib/import/sys_types.in.h: Update. | |
1337 | * gnulib/import/tempname.c: Update. | |
1338 | * gnulib/import/tempname.h: Update. | |
1339 | * gnulib/import/time.in.h: Update. | |
1340 | * gnulib/import/unistd--.h: Update. | |
1341 | * gnulib/import/unistd-safer.h: Update. | |
1342 | * gnulib/import/unistd.in.h: Update. | |
1343 | * gnulib/import/unsetenv.c: Update. | |
1344 | * gnulib/import/verify.h: Update. | |
1345 | * gnulib/import/extra/snippet/warn-on-use.h: Update. | |
1346 | * gnulib/import/wchar.in.h: Update. | |
1347 | * gnulib/import/wctype.in.h: Update. | |
1348 | * gnulib/import/xalloc-oversized.h: Update. | |
1349 | * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to | |
1350 | "53e2c179f26a890fa6685af4b6c1397ee370433b". | |
1351 | ||
8ec23583 SM |
1352 | 2018-09-10 Simon Marchi <[email protected]> |
1353 | ||
1354 | * record-btrace.c (get_thread_current_frame): Remove | |
1355 | old_inferior_ptid. | |
1356 | ||
1f5d1570 JG |
1357 | 2018-09-10 Jerome Guitton <[email protected]> |
1358 | ||
1359 | * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type | |
1360 | with check_tag to 1 if and only if the type is tagged and the | |
1361 | component being searched cannot been found in the current | |
1362 | view. Otherwise, always call ada_to_fixed_type with | |
1363 | check_tag to 0. | |
1364 | ||
d91e9ea8 XR |
1365 | 2018-09-10 Xavier Roirand <[email protected]> |
1366 | ||
1367 | * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static | |
1368 | declaration. | |
1369 | * ada-lang.h: add ada_is_access_to_unconstrained_array prototype. | |
1370 | * ada-varobj.c (ada_varobj_get_number_of_children, | |
1371 | ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code. | |
1372 | ||
cc330e39 XR |
1373 | 2018-09-10 Xavier Roirand <[email protected]> |
1374 | ||
1375 | * ada-valprint.c (ada_value_print): Use type instead of | |
1376 | enclosing type. | |
1377 | ||
b9c50e9a XR |
1378 | 2018-09-10 Xavier Roirand <[email protected]> |
1379 | ||
1380 | * ada-lang.c (ada_value_subscript): Handle case when parameter is | |
1381 | an array of access to unconstrained array. | |
1382 | ||
736ade86 XR |
1383 | 2018-09-10 Xavier Roirand <[email protected]> |
1384 | ||
1385 | * ada-lang.c (ada_is_access_to_unconstrained_array): New function. | |
1386 | (ada_check_typedef): Use it. | |
1387 | ||
2963898f XR |
1388 | 2018-09-10 Xavier Roirand <[email protected]> |
1389 | ||
1390 | * ada-varobj.c (ada_varobj_describe_struct_child) | |
1391 | (ada_varobj_describe_child): Handle union case like struct one. | |
1392 | ||
a154931e TT |
1393 | 2018-09-10 Tom Tromey <[email protected]> |
1394 | ||
1395 | PR python/18380: | |
1396 | * python/python.c (_initialize_python): Make example in "python" | |
1397 | help work in Python 3. | |
1398 | ||
23c4651c EZ |
1399 | 2018-09-10 Eli Zaretskii <[email protected]> |
1400 | ||
1401 | * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of | |
1402 | INSTALL_PROGRAM to install gdb-add-index.sh. Don't append | |
1403 | $(EXEEXT) to the script, as it is not a program. | |
1404 | ||
a5c5eda7 SM |
1405 | 2018-09-09 Simon Marchi <[email protected]> |
1406 | ||
1407 | * python/py-prettyprint.c (pretty_print_one_value): Return | |
1408 | gdbpy_ref<>. | |
1409 | (print_string_repr): Adjust. | |
1410 | (apply_varobj_pretty_printer): Return gdbpy_ref<>. | |
1411 | * python/python-internal.h (apply_varobj_pretty_printer): Return | |
1412 | gdbpy_ref<>. | |
1413 | * varobj.c (varobj_value_get_print_value): Adjust. | |
1414 | ||
332cf4c9 TT |
1415 | 2018-09-08 Tom Tromey <[email protected]> |
1416 | ||
1417 | PR python/16047: | |
1418 | * python/py-prettyprint.c (pretty_print_one_value): Check for | |
1419 | to_string method. | |
1420 | ||
424da6cf JB |
1421 | 2018-09-08 Joel Brobecker <[email protected]> |
1422 | ||
1423 | * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to | |
1424 | replace_operator_with_call. | |
1425 | ||
95f39a5b JB |
1426 | 2018-09-08 Joel Brobecker <[email protected]> |
1427 | ||
1428 | * ada-lang.c (ada_value_cast): Remove unnecessary parentheses. | |
1429 | ||
16b9eb7b JB |
1430 | 2018-09-08 Joel Brobecker <[email protected]> |
1431 | ||
1432 | * ada-typeprint.c (print_range): Print the bounds using TYPE | |
1433 | rather than its TYPE_TARGET_TYPE. | |
1434 | ||
d8ce9127 JB |
1435 | 2018-09-08 Joel Brobecker <[email protected]> |
1436 | ||
1437 | * ada-lang.c (ada_to_fixed_value): Minor reformatting in | |
1438 | call to ada_to_fixed_value_create. | |
1439 | ||
0d81f350 JG |
1440 | 2018-09-08 Jerome Guitton <[email protected]> |
1441 | ||
1442 | * ada-lang.c (ada_decode): strip dot prefix in symbol name. | |
1443 | ||
57aff202 JB |
1444 | 2018-09-08 Joel Brobecker <[email protected]> |
1445 | ||
1446 | * ada-lang.c (ada_exception_sal): Replace gdb_assert calls | |
1447 | by calls to error. | |
1448 | ||
fb44b1a7 JB |
1449 | 2018-09-08 Joel Brobecker <[email protected]> |
1450 | ||
1451 | * ada-lang.c (ada_unhandled_exception_name_addr_from_raise): | |
1452 | Move update of loop variable "fi". | |
1453 | ||
2a62dfa9 JB |
1454 | 2018-09-08 Joel Brobecker <[email protected]> |
1455 | ||
1456 | * ada-lang.c (value_assign_to_component): In the case of | |
1457 | big-endian targets, extract the bits of the given VAL | |
1458 | using an src_offset of zero if container is not a scalar. | |
1459 | ||
739ab2e9 SS |
1460 | 2018-09-06 Simon Ser <[email protected]> |
1461 | ||
1462 | PR gdb/23105 | |
1463 | * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for | |
1464 | TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. | |
1465 | * fbsd-tdep.c (fbsd_make_note_desc): New. | |
1466 | (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV, | |
1467 | NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes. | |
1468 | * target.h (enum target_object) Add FreeBSD-specific | |
1469 | TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. | |
1470 | ||
d82b3862 SM |
1471 | 2018-09-06 Simon Marchi <[email protected]> |
1472 | ||
1473 | * compile/compile-c.h (generate_c_for_variable_locations): | |
1474 | Change reference to pointer. | |
1475 | * compile/compile-c-support.c (compile_program) <compute>: | |
1476 | Likewise. | |
1477 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
1478 | (generate_c_for_for_one_variable): Likewise | |
1479 | (generate_c_for_variable_locations): Likewise | |
1480 | * compile/compile-c-types.c (compile_c_instance::convert_type): | |
1481 | Likewise | |
1482 | * compile/compile-cplus-symbols.c (convert_one_symbol): | |
1483 | std::move the scope passed to enter_scope. | |
1484 | * compile/compile-cplus-types.c | |
1485 | (compile_cplus_instance::enter_scope): Make parameter | |
1486 | rvalue-reference. | |
1487 | (compile_cplus_instance::new_scope): Change reference to | |
1488 | pointer. | |
1489 | (compile_cplus_instance::convert_type): Likewise | |
1490 | (compile_cplus_convert_typedef): std::move the scope passed to | |
1491 | enter_scope. | |
1492 | (compile_cplus_convert_struct_or_union): Likewise. | |
1493 | (compile_cplus_convert_enum): Likewise. | |
1494 | (compile_cplus_convert_namespace): Likewise. | |
1495 | * compile/compile-cplus.h (compile_cplus_instance) | |
1496 | <enter_scope>: Make parameter rvalue-reference. | |
1497 | * compile/compile-internal.h (compile_instance) | |
1498 | <get_cached_type>: Likewise | |
1499 | * compile/compile-loc2c.c (push): Likewise | |
1500 | (pushf): Likewise | |
1501 | (unary): Likewise | |
1502 | (binary): Likewise | |
1503 | (print_label): Likewise | |
1504 | (pushf_register_address): Likewise | |
1505 | (pushf_register): Likewise | |
1506 | (do_compile_dwarf_expr_to_c): Likewise | |
1507 | (compile_dwarf_expr_to_c): Likewise | |
1508 | (compile_dwarf_bounds_to_c): Likewise | |
1509 | * compile/compile.c (compile_instance::get_cached_type): | |
1510 | Likewise | |
1511 | * compile/compile.h (compile_dwarf_expr_to_c): Likewise. | |
1512 | (compile_dwarf_bounds_to_c): Likewise | |
1513 | * dwarf2loc.c (locexpr_generate_c_location): Likewise. | |
1514 | (dwarf2_compile_property_to_c): Likewise | |
1515 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise | |
1516 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
1517 | Likewise | |
1518 | ||
cc5a5ae5 SM |
1519 | 2018-09-06 Simon Marchi <[email protected]> |
1520 | ||
1521 | * tui/tui-data.h (struct tui_win_element) <highlight>: Remove. | |
1522 | * tui/tui-data.c (init_content_element): Don't initialize it. | |
1523 | ||
137be540 SM |
1524 | 2018-09-06 Simon Marchi <[email protected]> |
1525 | ||
1526 | * tui/tui-data.h (struct tui_win_info) | |
1527 | <detail::opaque>: Remove. | |
1528 | * tui/tui-data.c (init_win_info): Remove assignment. | |
1529 | ||
f1628857 TT |
1530 | 2018-09-05 Tom Tromey <[email protected]> |
1531 | ||
1532 | * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing | |
1533 | -Wformat-nonliteral. | |
1534 | * target-float.c (host_float_ops<T>::to_string) | |
1535 | (host_float_ops<T>::from_string): Use | |
1536 | DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. | |
1537 | * configure: Rebuild. | |
1538 | ||
af39b1c2 SM |
1539 | 2018-09-05 Simon Marchi <[email protected]> |
1540 | ||
1541 | * printcmd.c (printf_c_string): Use | |
1542 | DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. | |
1543 | (printf_wide_c_string, printf_pointer, ui_printf): Likewise. | |
1544 | ||
081bca4d TT |
1545 | 2018-09-05 Tom Tromey <[email protected]> |
1546 | ||
1547 | * cli/cli-cmds.c (shell_escape, edit_command): Remove cast. | |
1548 | ||
e4a62c65 TV |
1549 | 2018-09-05 Tom de Vries <[email protected]> |
1550 | ||
1551 | * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer | |
1552 | with resolve_abstract_p == true. | |
1553 | (indirect_synthetic_pointer): Add resolve_abstract_p parameter, | |
1554 | defaulting to false. Propagate resolve_abstract_p to | |
1555 | dwarf2_fetch_die_loc_sect_off. | |
1556 | * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p | |
1557 | parameter, defaulting to false. | |
1558 | * dwarf2read.c (read_variable): Add variable to abstract_to_concrete. | |
1559 | (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p | |
1560 | parameter. | |
1561 | * dwarf2read.h (struct die_info): Forward-declare. | |
1562 | (die_info_ptr): New typedef. | |
1563 | (struct dwarf2_per_objfile): Add abstract_to_concrete field. | |
1564 | ||
2b69821e JB |
1565 | 2018-09-05 Joel Brobecker <[email protected]> |
1566 | ||
1567 | GDB 8.2 released. | |
1568 | ||
fcc9b044 SDJ |
1569 | 2018-09-04 Sergio Durigan Junior <[email protected]> |
1570 | Pedro Alves <[email protected]> | |
1571 | ||
1572 | * gnulib/Makefile.in (aclocal_m4_deps): Move to | |
1573 | "aclocal-m4-deps.mk". Include file here. | |
1574 | $(srcdir)/aclocal.m4: Add "configure.ac". | |
1575 | * gnulib/aclocal-m4-deps.mk: New file. | |
1576 | * gnulib/update-gnulib.sh: Automatically update | |
1577 | "aclocal-m4-deps.mk". | |
1578 | ||
d53d5436 TT |
1579 | 2018-09-04 Tom Tromey <[email protected]> |
1580 | ||
1581 | * configure: Rebuild. | |
1582 | * configure.ac: Remove multi-ice code. | |
1583 | ||
8dc9fd87 TT |
1584 | 2018-09-04 Tom Tromey <[email protected]> |
1585 | ||
1586 | * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove. | |
1587 | (ada-exp.o): Update. | |
1588 | ||
3322c5d9 TT |
1589 | 2018-09-04 Tom Tromey <[email protected]> |
1590 | ||
1591 | * Makefile.in (printcmd.o, target-float.o): Remove. | |
1592 | (GDB_WARN_CFLAGS_NO_FORMAT): Remove. | |
1593 | ||
ba2bf2aa TT |
1594 | 2018-09-04 Tom Tromey <[email protected]> |
1595 | ||
1596 | * gnulib/Makefile.in: Remove obsolete comment. | |
1597 | * Makefile.in: Remove obsolete comment. | |
1598 | ||
6c9d681b AB |
1599 | 2018-09-04 Andrew Burgess <[email protected]> |
1600 | ||
1601 | * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a | |
1602 | line with '+'. | |
1603 | ||
78a3b0fa AB |
1604 | 2018-09-03 Andrew Burgess <[email protected]> |
1605 | ||
1606 | * riscv-tdep.c: Add 'prologue-value.h' include. | |
1607 | (struct riscv_unwind_cache): New struct. | |
1608 | (riscv_debug_unwinder): New global. | |
1609 | (riscv_scan_prologue): Update arguments, capture register details | |
1610 | from prologue scan. | |
1611 | (riscv_skip_prologue): Reformat arguments line, move end of | |
1612 | prologue calculation into riscv_scan_prologue. | |
1613 | (riscv_frame_cache): Update return type, create | |
1614 | riscv_unwind_cache, scan the prologue, and fill in remaining cache | |
1615 | details. | |
1616 | (riscv_frame_this_id): Use frame id computed in riscv_frame_cache. | |
1617 | (riscv_frame_prev_register): Use the trad_frame within the | |
1618 | riscv_unwind_cache. | |
1619 | (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder' | |
1620 | flag. | |
1621 | ||
23e60e7a AB |
1622 | 2018-09-03 Andrew Burgess <[email protected]> |
1623 | ||
1624 | * trad-frame.h (trad_frame_set_realreg): Declare. | |
1625 | (trad_frame_set_addr): Declare. | |
1626 | * trad-frame.c (trad_frame_set_realreg): Define new function. | |
1627 | (trad_frame_set_addr): Define new function. | |
1628 | (trad_frame_set_reg_realreg): Use new function. | |
1629 | (trad_frame_set_reg_addr): Use new function. | |
1630 | ||
5c889512 KS |
1631 | 2018-09-01 Keith Seitz <[email protected]> |
1632 | ||
1633 | * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use | |
1634 | pulongest instead of "%lld". | |
1635 | * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove | |
1636 | ATTRIBUTE_UNUSED. | |
1637 | ||
c8c81635 TT |
1638 | 2018-08-31 Tom Tromey <[email protected]> |
1639 | ||
1640 | * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the | |
1641 | variant part type. | |
1642 | ||
0c888588 PA |
1643 | 2018-08-31 Pedro Alves <[email protected]> |
1644 | ||
1645 | * gdbarch.h: Regenerate. | |
1646 | ||
7ea65f08 PA |
1647 | 2018-08-31 Pedro Alves <[email protected]> |
1648 | ||
1649 | * gdbarch.sh (have_nonsteppable_watchpoint): Add comment. | |
1650 | * target.h (Hardware watchpoint interfaces): Describe | |
1651 | continuable/steppable/non-steppable watchpoints. | |
1652 | * gdbarch.h, gdbarch.c: Regenerate. | |
1653 | ||
7eb65faf PA |
1654 | 2018-08-31 Pedro Alves <[email protected]> |
1655 | ||
1656 | * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint): | |
1657 | Delete. | |
1658 | * s390-linux-nat.c | |
1659 | (s390_linux_nat_target::have_continuable_watchpoint): Delete. | |
1660 | * target.h (target_ops::have_continuable_watchpoint): Delete. | |
1661 | (target_have_continuable_watchpoint): Delete. | |
1662 | * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete. | |
1663 | * target-delegates.c: Regenerate. | |
1664 | ||
dab999b1 SDJ |
1665 | 2018-08-31 Sergio Durigan Junior <[email protected]> |
1666 | ||
1667 | * gnulib/Makefile.in (aclocal_m4_deps): Update according to | |
1668 | the files present in "gnulib/import/m4/". | |
1669 | ||
ff3a05b3 AB |
1670 | 2018-08-30 Andrew Burgess <[email protected]> |
1671 | ||
1672 | * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd, | |
1673 | c.sw, c.swsp, and c.sdsp. | |
1674 | ||
0b3f9efc AB |
1675 | 2018-08-30 Andrew Burgess <[email protected]> |
1676 | ||
1677 | * riscv-tdep.c (struct riscv_inferior_data): Delete. | |
1678 | (riscv_read_misa_reg): Don't cache value read into inferior data. | |
1679 | (riscv_new_inferior_data): Delete. | |
1680 | (riscv_inferior_data_cleanup): Delete. | |
1681 | (riscv_inferior_data): Delete. | |
1682 | (riscv_invalidate_inferior_data): Delete. | |
1683 | (_initialize_riscv_tdep): Remove initialisation of inferior data. | |
1684 | ||
a0dc02a6 SM |
1685 | 2018-08-30 Simon Marchi <[email protected]> |
1686 | ||
1687 | * compile/compile-cplus-types.c | |
1688 | (compile_cplus_instance::leave_scope): Take the address of scope | |
1689 | object. | |
1690 | (compile_cplus_instance::convert_qualified_base): Compare quals | |
1691 | to 0. | |
1692 | ||
fdad7678 KS |
1693 | 2018-08-30 Keith Seitz <[email protected]> |
1694 | ||
1695 | * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope): | |
1696 | Use "%s" and host_address_to_string instead of "%p" in printf. | |
1697 | ||
078a0207 KS |
1698 | 2018-08-29 Keith Seitz <[email protected]> |
1699 | ||
1700 | * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c | |
1701 | and compile-cplus-types.c. | |
1702 | (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h. | |
1703 | * c-lang.c (cplus_language_defn): Set C++ compile functions. | |
1704 | * c-lang.h (cplus_get_compile_context, cplus_compute_program): | |
1705 | Declare. | |
1706 | * compile/compile-c-support.c: Include compile-cplus.h. | |
1707 | (load_libcompile): Templatize. | |
1708 | (get_compile_context): "New" function. | |
1709 | (c_get_compile_context): Use get_compile_context. | |
1710 | (cplus_get_compile_context): New function. | |
1711 | (cplus_push_user_expression, cplus_pop_user_expression) | |
1712 | (cplus_add_code_header, cplus_add_input, cplus_compile_program) | |
1713 | (cplus_compute_program): Define new structs/functions. | |
1714 | * compile/compile-cplus-symmbols.c: New file. | |
1715 | * compile/compile-cplus-types.c: New file. | |
1716 | * compile/compile-cplus.h: New file. | |
1717 | * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE): | |
1718 | Declare. | |
1719 | * compile/compile-object-load.c (get_out_value_type): Use | |
1720 | strncmp_iw when comparing symbol names. | |
1721 | (compile_object_load): Add mst_bss and mst_data. | |
1722 | * compile/compile.c (_initialize_compile): Remove | |
1723 | -Wno-implicit-function-declaration from `compile_args'. | |
1724 | * compile/gcc-cp-plugin.h: New file. | |
1725 | * NEWS: Mention C++ compile support and new debug options. | |
1726 | ||
fcaad03c KS |
1727 | 2018-08-29 Keith Seitz <[email protected]> |
1728 | ||
1729 | * linespec.c (collect_info::add_symbol): Make virtual. | |
1730 | (struct symbol_searcher_collect_info): New struct. | |
1731 | (symbol_searcher::find_all_symbols): New method. | |
1732 | * symtab.h (class symbol_searcher): New class. | |
1733 | ||
7e41c8db KS |
1734 | 2018-08-29 Keith Seitz <[email protected]> |
1735 | ||
1736 | * linespec.c (struct linespec) <function_symbols, label_symbols>: | |
1737 | Change to vector of block_symbol. Update all users. | |
1738 | (struct collect_info) <symbols>: Likewise. | |
1739 | (collect_info::add_symbol): Take block_symbol as argument. | |
1740 | Update all callers. | |
1741 | (decode_compound_collector) <m_symbols>: Change type to vector | |
1742 | of block_symbol. Update all users. | |
1743 | (decode_compound_collector::operator ()): Change parameter type | |
1744 | to block_symbol. | |
1745 | (find_method, find_function_symbols, find_linespec_symbols) | |
1746 | (find_label_symbols_in_block, find_label_symbols): Change symbol | |
1747 | vectors to block_symbol vectors. | |
1748 | * symtab.h (symbol_found_callback_ftype): Change parameter type to | |
1749 | block_symbol. | |
1750 | ||
63e8c3da KS |
1751 | 2018-08-29 Keith Seitz <[email protected]> |
1752 | ||
1753 | * linespec.c (symbolp): Remove typedef and VEC definitions. | |
1754 | (bound_minimal_symbol_d): Likewise. | |
1755 | ||
4dedf84d KS |
1756 | 2018-08-29 Keith Seitz <[email protected]> |
1757 | ||
1758 | * linespec.c (decode_compound_collector::decode_compound_collector): | |
1759 | Remove initialization for `m_symtabs'. | |
1760 | (decode_compound_collector::release_symbols): Change return type | |
1761 | to std::vector. Update all callers. | |
1762 | (class decode_compound_collector) <m_symbols>: Change type to | |
1763 | std::vector. | |
1764 | (lookup_prefix_sym): Change return type to std::vector. Update all | |
1765 | callers. | |
1766 | (compare_symbols): Remove. | |
1767 | (std_compare_symbols): Rename to `compare_symbols'. | |
1768 | (find_method): Change `sym_classes' parameter to std::vector. | |
1769 | Update all callers. Use std::sort to sort sym_classes. | |
1770 | (find_linespec_symbols): Remove cleanup. | |
1771 | ||
c2a031c5 KS |
1772 | 2018-08-29 Keith Seitz <[email protected]> |
1773 | ||
1774 | * linespec.c (struct linespec) <minimal_symbols>: Change type to | |
1775 | std::vector. Update all users. | |
1776 | (convert_linespec_to_sals): Use std::sort to sort minimal symbols. | |
1777 | (struct collect_info) <minimal_symbols>: Likewise. | |
1778 | (compare_msymbols): Return bool. Change parameters to const | |
1779 | bound_minimal_symbol references. | |
1780 | (find_method, find_function_symbols, find_linespec_symbols): Change | |
1781 | `minsyms' parameter to std::vector. Update all callers. | |
1782 | ||
3553eadc KS |
1783 | 2018-08-29 Keith Seitz <[email protected]> |
1784 | ||
1785 | * linespec.c (struct linespec) <label_symbols>: Change type to | |
1786 | std::vector. Update all users. | |
1787 | (find_label_symbols_in_block): Change `result' parameter to | |
1788 | std::vector. Update all callers. | |
1789 | (find_label_symbols): Return std::vector. Update all callers. | |
1790 | ||
7243d011 KS |
1791 | 2018-08-29 Keith Seitz <[email protected]> |
1792 | ||
1793 | * linespec.c (struct linespec) <function_symbols>: Change type to | |
1794 | std::vector. Update all users. | |
1795 | (struct collect_info) <function_symbols>: Likewise. | |
1796 | (convert_linespec_to_sals): Use std::sort to sort function_symbols. | |
1797 | (std_compare_symbols): New function. | |
1798 | (find_method, find_function_symbols, find_linespec_symbols) | |
1799 | (find_label_symbols_in_block): Change `symbols' parameter to | |
1800 | std::vector. Update all callers. | |
1801 | (find_label_symbols): Likewise for `function_symbols' and | |
1802 | `label_funcs_ret'. | |
1803 | ||
2a908241 KS |
1804 | 2018-08-29 Keith Seitz <[email protected]> |
1805 | ||
1806 | * linespec.c (symtab_vector_up): Define. | |
1807 | (struct linespec) <file_symtabs>: Change type to std::vector *. | |
1808 | Update all uses. | |
1809 | (struct collect_info) <file_symtabs>: Likewise. | |
1810 | (collect_symtabs_from_filename): Return symtab_vector_up. | |
1811 | Update all callers. | |
1812 | (decode_objc): Remove cleanup. | |
1813 | (symtab_collector::symtab_collector): Initialize `m_symtabs'. | |
1814 | (symtab_collector::release_symtabs): Return symtab_vector_up. | |
1815 | Update all callers. | |
1816 | (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up. | |
1817 | Update all users. | |
1818 | (collect_symtabs_from_filename, symtabs_from_filename): Return | |
1819 | symtab_vector_up. Update all callers. | |
1820 | ||
f6c4e3e8 TT |
1821 | 2018-08-29 Tom Tromey <[email protected]> |
1822 | ||
1823 | * csky-tdep.c (csky_analyze_prologue): Use | |
1824 | core_addr_to_string_nz. | |
1825 | ||
73c13fe6 TT |
1826 | 2018-08-29 Tom Tromey <[email protected]> |
1827 | ||
1828 | * windows-nat.c (struct xlate_exception) <them>: Change type to | |
1829 | DWORD. | |
1830 | (xlate): Fix formatting. Remove last entry. | |
1831 | (struct xlate_exception, xlate): Comment out. | |
1832 | (windows_nat_target::resume): Use ranged for. | |
1833 | ||
4d3928d7 JW |
1834 | 2018-08-29 Jim Wilson <[email protected]> |
1835 | ||
1836 | * riscv-linux-nat.c: Include elf/common.h instead of elf.h. | |
1837 | (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead | |
1838 | of NT_PRFPREG. | |
1839 | (riscv_linux_nat_target::store_registers): Likewise. | |
1840 | ||
7a6dbc2f SDJ |
1841 | 2018-08-29 Sergio Durigan Junior <[email protected]> |
1842 | ||
1843 | PR gdb/23555 | |
1844 | PR gdb/23558 | |
1845 | * gnulib/aclocal.m4: Regenerate. | |
1846 | * gnulib/config.in: Regenerate. | |
1847 | * gnulib/configure: Regenerate. | |
1848 | * gnulib/import/Makefile.am: Update. | |
1849 | * gnulib/import/Makefile.in: Update. | |
1850 | * gnulib/import/extra/snippet/_Noreturn.h: Rename to... | |
1851 | * gnulib/import/_Noreturn.h: ... this. | |
1852 | * gnulib/import/alloca.in.h: Update. | |
1853 | * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... | |
1854 | * gnulib/import/arg-nonnull.h: ... this. | |
1855 | * gnulib/import/assure.h: Update. | |
1856 | * gnulib/import/at-func.c: Update. | |
1857 | * gnulib/import/basename-lgpl.c: Update. | |
1858 | * gnulib/import/extra/snippet/c++defs.h: Rename to... | |
1859 | * gnulib/import/c++defs.h: ... this. | |
1860 | * gnulib/import/canonicalize-lgpl.c: Update. | |
1861 | * gnulib/import/cdefs.h: Update. | |
1862 | * gnulib/import/chdir-long.c: Update. | |
1863 | * gnulib/import/chdir-long.h: Update. | |
1864 | * gnulib/import/cloexec.c: Update. | |
1865 | * gnulib/import/cloexec.h: Update. | |
1866 | * gnulib/import/close.c: Update. | |
1867 | * gnulib/import/closedir.c: Update. | |
1868 | * gnulib/import/config.charset: Update. | |
1869 | * gnulib/import/dirent-private.h: Update. | |
1870 | * gnulib/import/dirent.in.h: Update. | |
1871 | * gnulib/import/dirfd.c: Update. | |
1872 | * gnulib/import/dirname-lgpl.c: Update. | |
1873 | * gnulib/import/dirname.h: Update. | |
1874 | * gnulib/import/dosname.h: Update. | |
1875 | * gnulib/import/dup-safer-flag.c: Update. | |
1876 | * gnulib/import/dup-safer.c: Update. | |
1877 | * gnulib/import/dup.c: Update. | |
1878 | * gnulib/import/dup2.c: Update. | |
1879 | * gnulib/import/errno.in.h: Update. | |
1880 | * gnulib/import/error.c: Update. | |
1881 | * gnulib/import/error.h: Update. | |
1882 | * gnulib/import/exitfail.c: Update. | |
1883 | * gnulib/import/exitfail.h: Update. | |
1884 | * gnulib/import/extra/update-copyright: Update. | |
1885 | * gnulib/import/fchdir.c: Update. | |
1886 | * gnulib/import/fcntl.c: Update. | |
1887 | * gnulib/import/fcntl.in.h: Update. | |
1888 | * gnulib/import/fd-hook.c: Update. | |
1889 | * gnulib/import/fd-hook.h: Update. | |
1890 | * gnulib/import/fd-safer-flag.c: Update. | |
1891 | * gnulib/import/fd-safer.c: Update. | |
1892 | * gnulib/import/fdopendir.c: Update. | |
1893 | * gnulib/import/filename.h: Update. | |
1894 | * gnulib/import/filenamecat-lgpl.c: Update. | |
1895 | * gnulib/import/filenamecat.h: Update. | |
1896 | * gnulib/import/flexmember.h: Update. | |
1897 | * gnulib/import/float+.h: Update. | |
1898 | * gnulib/import/float.c: Update. | |
1899 | * gnulib/import/float.in.h: Update. | |
1900 | * gnulib/import/fnmatch.c: Update. | |
1901 | * gnulib/import/fnmatch.in.h: Update. | |
1902 | * gnulib/import/fnmatch_loop.c: Update. | |
1903 | * gnulib/import/fpucw.h: Update. | |
1904 | * gnulib/import/frexp.c: Update. | |
1905 | * gnulib/import/frexpl.c: Update. | |
1906 | * gnulib/import/fstat.c: Update. | |
1907 | * gnulib/import/fstatat.c: Update. | |
1908 | * gnulib/import/getcwd-lgpl.c: Update. | |
1909 | * gnulib/import/getcwd.c: Update. | |
1910 | * gnulib/import/getdtablesize.c: Update. | |
1911 | * gnulib/import/getlogin_r.c: Update. | |
1912 | * gnulib/import/getprogname.c: Update. | |
1913 | * gnulib/import/getprogname.h: Update. | |
1914 | * gnulib/import/gettext.h: Update. | |
1915 | * gnulib/import/gettimeofday.c: Update. | |
1916 | * gnulib/import/glob-libc.h: Update. | |
1917 | * gnulib/import/glob.c: Update. | |
1918 | * gnulib/import/glob.in.h: Update. | |
1919 | * gnulib/import/glob_internal.h: Update. | |
1920 | * gnulib/import/glob_pattern_p.c: Update. | |
1921 | * gnulib/import/globfree.c: Update. | |
1922 | * gnulib/import/hard-locale.c: Update. | |
1923 | * gnulib/import/hard-locale.h: Update. | |
1924 | * gnulib/import/intprops.h: Update. | |
1925 | * gnulib/import/inttypes.in.h: Update. | |
1926 | * gnulib/import/isnan.c: Update. | |
1927 | * gnulib/import/isnand-nolibm.h: Update. | |
1928 | * gnulib/import/isnand.c: Update. | |
1929 | * gnulib/import/isnanl-nolibm.h: Update. | |
1930 | * gnulib/import/isnanl.c: Update. | |
1931 | * gnulib/import/itold.c: Update. | |
1932 | * gnulib/import/libc-config.h: Update. | |
1933 | * gnulib/import/limits.in.h: Update. | |
1934 | * gnulib/import/localcharset.c: Update. | |
1935 | * gnulib/import/localcharset.h: Update. | |
1936 | * gnulib/import/localtime-buffer.c: Update. | |
1937 | * gnulib/import/localtime-buffer.h: Update. | |
1938 | * gnulib/import/lstat.c: Update. | |
1939 | * gnulib/import/m4/00gnulib.m4: Update. | |
1940 | * gnulib/import/m4/__inline.m4: Update. | |
1941 | * gnulib/import/m4/absolute-header.m4: Update. | |
1942 | * gnulib/import/m4/alloca.m4: Update. | |
1943 | * gnulib/import/m4/builtin-expect.m4: Update. | |
1944 | * gnulib/import/m4/canonicalize.m4: Update. | |
1945 | * gnulib/import/m4/chdir-long.m4: Update. | |
1946 | * gnulib/import/m4/close.m4: Update. | |
1947 | * gnulib/import/m4/closedir.m4: Update. | |
1948 | * gnulib/import/m4/configmake.m4: Update. | |
1949 | * gnulib/import/m4/d-ino.m4: Update. | |
1950 | * gnulib/import/m4/d-type.m4: Update. | |
1951 | * gnulib/import/m4/dirent_h.m4: Update. | |
1952 | * gnulib/import/m4/dirfd.m4: Update. | |
1953 | * gnulib/import/m4/dirname.m4: Update. | |
1954 | * gnulib/import/m4/double-slash-root.m4: Update. | |
1955 | * gnulib/import/m4/dup.m4: Update. | |
1956 | * gnulib/import/m4/dup2.m4: Update. | |
1957 | * gnulib/import/m4/eealloc.m4: Update. | |
1958 | * gnulib/import/m4/environ.m4: Update. | |
1959 | * gnulib/import/m4/errno_h.m4: Update. | |
1960 | * gnulib/import/m4/error.m4: Update. | |
1961 | * gnulib/import/m4/exponentd.m4: Update. | |
1962 | * gnulib/import/m4/exponentl.m4: Update. | |
1963 | * gnulib/import/m4/extensions.m4: Update. | |
1964 | * gnulib/import/m4/extern-inline.m4: Update. | |
1965 | * gnulib/import/m4/fchdir.m4: Update. | |
1966 | * gnulib/import/m4/fcntl-o.m4: Update. | |
1967 | * gnulib/import/m4/fcntl.m4: Update. | |
1968 | * gnulib/import/m4/fcntl_h.m4: Update. | |
1969 | * gnulib/import/m4/fdopendir.m4: Update. | |
1970 | * gnulib/import/m4/filenamecat.m4: Update. | |
1971 | * gnulib/import/m4/flexmember.m4: Update. | |
1972 | * gnulib/import/m4/float_h.m4: Update. | |
1973 | * gnulib/import/m4/fnmatch.m4: Update. | |
1974 | * gnulib/import/m4/fnmatch_h.m4: Update. | |
1975 | * gnulib/import/m4/fpieee.m4: Update. | |
1976 | * gnulib/import/m4/frexp.m4: Update. | |
1977 | * gnulib/import/m4/frexpl.m4: Update. | |
1978 | * gnulib/import/m4/fstat.m4: Update. | |
1979 | * gnulib/import/m4/fstatat.m4: Update. | |
1980 | * gnulib/import/m4/getcwd-abort-bug.m4: Update. | |
1981 | * gnulib/import/m4/getcwd-path-max.m4: Update. | |
1982 | * gnulib/import/m4/getcwd.m4: Update. | |
1983 | * gnulib/import/m4/getdtablesize.m4: Update. | |
1984 | * gnulib/import/m4/getlogin.m4: Update. | |
1985 | * gnulib/import/m4/getlogin_r.m4: Update. | |
1986 | * gnulib/import/m4/getpagesize.m4: Update. | |
1987 | * gnulib/import/m4/getprogname.m4: Update. | |
1988 | * gnulib/import/m4/gettimeofday.m4: Update. | |
1989 | * gnulib/import/m4/glibc21.m4: Update. | |
1990 | * gnulib/import/m4/glob.m4: Update. | |
1991 | * gnulib/import/m4/glob_h.m4: Update. | |
1992 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
1993 | * gnulib/import/m4/gnulib-common.m4: Update. | |
1994 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
1995 | * gnulib/import/m4/gnulib-tool.m4: Update. | |
1996 | * gnulib/import/m4/hard-locale.m4: Update. | |
1997 | * gnulib/import/m4/include_next.m4: Update. | |
1998 | * gnulib/import/m4/inttypes-pri.m4: Update. | |
1999 | * gnulib/import/m4/inttypes.m4: Update. | |
2000 | * gnulib/import/m4/isnand.m4: Update. | |
2001 | * gnulib/import/m4/isnanl.m4: Update. | |
2002 | * gnulib/import/m4/largefile.m4: Update. | |
2003 | * gnulib/import/m4/limits-h.m4: Update. | |
2004 | * gnulib/import/m4/localcharset.m4: Update. | |
2005 | * gnulib/import/m4/locale-fr.m4: Update. | |
2006 | * gnulib/import/m4/locale-ja.m4: Update. | |
2007 | * gnulib/import/m4/locale-zh.m4: Update. | |
2008 | * gnulib/import/m4/localtime-buffer.m4: Update. | |
2009 | * gnulib/import/m4/longlong.m4: Update. | |
2010 | * gnulib/import/m4/lstat.m4: Update. | |
2011 | * gnulib/import/m4/malloc.m4: Update. | |
2012 | * gnulib/import/m4/malloca.m4: Update. | |
2013 | * gnulib/import/m4/math_h.m4: Update. | |
2014 | * gnulib/import/m4/mbrtowc.m4: Update. | |
2015 | * gnulib/import/m4/mbsinit.m4: Update. | |
2016 | * gnulib/import/m4/mbsrtowcs.m4: Update. | |
2017 | * gnulib/import/m4/mbstate_t.m4: Update. | |
2018 | * gnulib/import/m4/memchr.m4: Update. | |
2019 | * gnulib/import/m4/memmem.m4: Update. | |
2020 | * gnulib/import/m4/mempcpy.m4: Update. | |
2021 | * gnulib/import/m4/memrchr.m4: Update. | |
2022 | * gnulib/import/m4/mkdir.m4: Update. | |
2023 | * gnulib/import/m4/mkstemp.m4: Update. | |
2024 | * gnulib/import/m4/mmap-anon.m4: Update. | |
2025 | * gnulib/import/m4/mode_t.m4: Update. | |
2026 | * gnulib/import/m4/msvc-inval.m4: Update. | |
2027 | * gnulib/import/m4/msvc-nothrow.m4: Update. | |
2028 | * gnulib/import/m4/multiarch.m4: Update. | |
2029 | * gnulib/import/m4/nocrash.m4: Update. | |
2030 | * gnulib/import/m4/off_t.m4: Update. | |
2031 | * gnulib/import/m4/onceonly.m4: Update. | |
2032 | * gnulib/import/m4/open-cloexec.m4: Update. | |
2033 | * gnulib/import/m4/open.m4: Update. | |
2034 | * gnulib/import/m4/openat.m4: Update. | |
2035 | * gnulib/import/m4/opendir.m4: Update. | |
2036 | * gnulib/import/m4/pathmax.m4: Update. | |
2037 | * gnulib/import/m4/rawmemchr.m4: Update. | |
2038 | * gnulib/import/m4/readdir.m4: Update. | |
2039 | * gnulib/import/m4/readlink.m4: Update. | |
2040 | * gnulib/import/m4/realloc.m4: Update. | |
2041 | * gnulib/import/m4/rename.m4: Update. | |
2042 | * gnulib/import/m4/rewinddir.m4: Update. | |
2043 | * gnulib/import/m4/rmdir.m4: Update. | |
2044 | * gnulib/import/m4/save-cwd.m4: Update. | |
2045 | * gnulib/import/m4/secure_getenv.m4: Update. | |
2046 | * gnulib/import/m4/setenv.m4: Update. | |
2047 | * gnulib/import/m4/signal_h.m4: Update. | |
2048 | * gnulib/import/m4/ssize_t.m4: Update. | |
2049 | * gnulib/import/m4/stat-time.m4: Update. | |
2050 | * gnulib/import/m4/stat.m4: Update. | |
2051 | * gnulib/import/m4/std-gnu11.m4: Update. | |
2052 | * gnulib/import/m4/stdbool.m4: Update. | |
2053 | * gnulib/import/m4/stddef_h.m4: Update. | |
2054 | * gnulib/import/m4/stdint.m4: Update. | |
2055 | * gnulib/import/m4/stdio_h.m4: Update. | |
2056 | * gnulib/import/m4/stdlib_h.m4: Update. | |
2057 | * gnulib/import/m4/strchrnul.m4: Update. | |
2058 | * gnulib/import/m4/strdup.m4: Update. | |
2059 | * gnulib/import/m4/strerror.m4: Update. | |
2060 | * gnulib/import/m4/string_h.m4: Update. | |
2061 | * gnulib/import/m4/strstr.m4: Update. | |
2062 | * gnulib/import/m4/strtok_r.m4: Update. | |
2063 | * gnulib/import/m4/sys_socket_h.m4: Update. | |
2064 | * gnulib/import/m4/sys_stat_h.m4: Update. | |
2065 | * gnulib/import/m4/sys_time_h.m4: Update. | |
2066 | * gnulib/import/m4/sys_types_h.m4: Update. | |
2067 | * gnulib/import/m4/tempname.m4: Update. | |
2068 | * gnulib/import/m4/time_h.m4: Update. | |
2069 | * gnulib/import/m4/unistd-safer.m4: Update. | |
2070 | * gnulib/import/m4/unistd_h.m4: Update. | |
2071 | * gnulib/import/m4/warn-on-use.m4: Update. | |
2072 | * gnulib/import/m4/wchar_h.m4: Update. | |
2073 | * gnulib/import/m4/wchar_t.m4: Update. | |
2074 | * gnulib/import/m4/wctype_h.m4: Update. | |
2075 | * gnulib/import/m4/wint_t.m4: Update. | |
2076 | * gnulib/import/malloc.c: Update. | |
2077 | * gnulib/import/malloc/scratch_buffer.h: Update. | |
2078 | * gnulib/import/malloc/scratch_buffer_grow.c: Update. | |
2079 | * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. | |
2080 | * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. | |
2081 | * gnulib/import/malloca.c: Update. | |
2082 | * gnulib/import/malloca.h: Update. | |
2083 | * gnulib/import/malloca.valgrind: Update. | |
2084 | * gnulib/import/math.in.h: Update. | |
2085 | * gnulib/import/mbrtowc.c: Update. | |
2086 | * gnulib/import/mbsinit.c: Update. | |
2087 | * gnulib/import/mbsrtowcs-impl.h: Update. | |
2088 | * gnulib/import/mbsrtowcs-state.c: Update. | |
2089 | * gnulib/import/mbsrtowcs.c: Update. | |
2090 | * gnulib/import/memchr.c: Update. | |
2091 | * gnulib/import/memmem.c: Update. | |
2092 | * gnulib/import/mempcpy.c: Update. | |
2093 | * gnulib/import/memrchr.c: Update. | |
2094 | * gnulib/import/mkdir.c: Update. | |
2095 | * gnulib/import/mkstemp.c: Update. | |
2096 | * gnulib/import/msvc-inval.c: Update. | |
2097 | * gnulib/import/msvc-inval.h: Update. | |
2098 | * gnulib/import/msvc-nothrow.c: Update. | |
2099 | * gnulib/import/msvc-nothrow.h: Update. | |
2100 | * gnulib/import/open.c: Update. | |
2101 | * gnulib/import/openat-die.c: Update. | |
2102 | * gnulib/import/openat-priv.h: Update. | |
2103 | * gnulib/import/openat-proc.c: Update. | |
2104 | * gnulib/import/openat.c: Update. | |
2105 | * gnulib/import/openat.h: Update. | |
2106 | * gnulib/import/opendir.c: Update. | |
2107 | * gnulib/import/pathmax.h: Update. | |
2108 | * gnulib/import/pipe-safer.c: Update. | |
2109 | * gnulib/import/rawmemchr.c: Update. | |
2110 | * gnulib/import/readdir.c: Update. | |
2111 | * gnulib/import/readlink.c: Update. | |
2112 | * gnulib/import/realloc.c: Update. | |
2113 | * gnulib/import/ref-add.sin: Update. | |
2114 | * gnulib/import/ref-del.sin: Update. | |
2115 | * gnulib/import/rename.c: Update. | |
2116 | * gnulib/import/rewinddir.c: Update. | |
2117 | * gnulib/import/rmdir.c: Update. | |
2118 | * gnulib/import/same-inode.h: Update. | |
2119 | * gnulib/import/save-cwd.c: Update. | |
2120 | * gnulib/import/save-cwd.h: Update. | |
2121 | * gnulib/import/scratch_buffer.h: Update. | |
2122 | * gnulib/import/secure_getenv.c: Update. | |
2123 | * gnulib/import/setenv.c: Update. | |
2124 | * gnulib/import/signal.in.h: Update. | |
2125 | * gnulib/import/stat-time.c: Update. | |
2126 | * gnulib/import/stat-time.h: Update. | |
2127 | * gnulib/import/stat-w32.c: Update. | |
2128 | * gnulib/import/stat-w32.h: Update. | |
2129 | * gnulib/import/stat.c: Update. | |
2130 | * gnulib/import/stdbool.in.h: Update. | |
2131 | * gnulib/import/stddef.in.h: Update. | |
2132 | * gnulib/import/stdint.in.h: Update. | |
2133 | * gnulib/import/stdio.in.h: Update. | |
2134 | * gnulib/import/stdlib.in.h: Update. | |
2135 | * gnulib/import/str-two-way.h: Update. | |
2136 | * gnulib/import/strchrnul.c: Update. | |
2137 | * gnulib/import/strdup.c: Update. | |
2138 | * gnulib/import/streq.h: Update. | |
2139 | * gnulib/import/strerror-override.c: Update. | |
2140 | * gnulib/import/strerror-override.h: Update. | |
2141 | * gnulib/import/strerror.c: Update. | |
2142 | * gnulib/import/string.in.h: Update. | |
2143 | * gnulib/import/stripslash.c: Update. | |
2144 | * gnulib/import/strnlen1.c: Update. | |
2145 | * gnulib/import/strnlen1.h: Update. | |
2146 | * gnulib/import/strstr.c: Update. | |
2147 | * gnulib/import/strtok_r.c: Update. | |
2148 | * gnulib/import/sys_stat.in.h: Update. | |
2149 | * gnulib/import/sys_time.in.h: Update. | |
2150 | * gnulib/import/sys_types.in.h: Update. | |
2151 | * gnulib/import/tempname.c: Update. | |
2152 | * gnulib/import/tempname.h: Update. | |
2153 | * gnulib/import/time.in.h: Update. | |
2154 | * gnulib/import/unistd--.h: Update. | |
2155 | * gnulib/import/unistd-safer.h: Update. | |
2156 | * gnulib/import/unistd.in.h: Update. | |
2157 | * gnulib/import/unsetenv.c: Update. | |
2158 | * gnulib/import/verify.h: Update. | |
2159 | * gnulib/import/extra/snippet/warn-on-use.h: Update. | |
2160 | * gnulib/import/wchar.in.h: Update. | |
2161 | * gnulib/import/wctype.in.h: Update. | |
2162 | * gnulib/import/xalloc-oversized.h: Update. | |
2163 | * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to | |
2164 | "53e2c179f26a890fa6685af4b6c1397ee370433b". | |
2165 | ||
b0f492b9 GB |
2166 | 2018-08-16 Gary Benson <[email protected]> |
2167 | ||
2168 | PR gdb/13000: | |
2169 | * gdb/main.c (captured_main_1): Exit with nonzero status | |
2170 | in batch mode if the last command to be executed failed. | |
2171 | * NEWS: Mention the above. | |
2172 | ||
2362e7f7 SM |
2173 | 2018-08-29 Simon Marchi <[email protected]> |
2174 | ||
2175 | * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at | |
2176 | end of warning message. | |
2177 | ||
4f4aedeb AH |
2178 | 2018-08-29 Alan Hayward <[email protected]> |
2179 | ||
2180 | PR gdb/22943: | |
2181 | * aarch64-tdep.c (is_hfa_or_hva): Remove function. | |
2182 | (aarch64_extract_return_value): Use | |
2183 | aapcs_is_vfp_call_or_return_candidate. | |
2184 | (aarch64_return_in_memory): Likewise. | |
2185 | (aarch64_store_return_value): Likewise. | |
2186 | ||
0e745c60 AH |
2187 | 2018-08-29 Alan Hayward <[email protected]> |
2188 | ||
2189 | * aarch64-tdep.c | |
2190 | (aapcs_is_vfp_call_or_return_candidate): Make static | |
2191 | (pass_in_v_or_stack): Remove function. | |
2192 | (pass_in_v_vfp_candidate): New function. | |
2193 | (aarch64_push_dummy_call): Check for float register candidates. | |
2194 | ||
ea92689a AH |
2195 | 2018-08-29 Alan Hayward <[email protected]> |
2196 | ||
2197 | * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro. | |
2198 | (aapcs_is_vfp_call_or_return_candidate_1): New function. | |
2199 | (aapcs_is_vfp_call_or_return_candidate): Likewise. | |
2200 | ||
ad202fcc SM |
2201 | 2018-08-28 Simon Marchi <[email protected]> |
2202 | ||
2203 | PR build/23399 | |
2204 | * common/agent.c (IPA_SYM_STRUCT_NAME): Define. | |
2205 | (struct ipa_sym_addresses): Rename to... | |
2206 | (struct ipa_sym_addresses_common): ... this. | |
2207 | * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME. | |
2208 | ||
5fe3f3e4 TT |
2209 | 2018-08-28 Tom Tromey <[email protected]> |
2210 | ||
2211 | * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
2212 | (token_fifo): Now a std::vector. | |
2213 | (yylex, c_parse): Update. | |
2214 | * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
2215 | (token_fifo): Now a std::vector. | |
2216 | (yylex, d_parse): Update. | |
2217 | * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
2218 | (token_fifo): Now a std::vector. | |
2219 | (yylex, go_parse): Update. | |
2220 | ||
858d8004 SM |
2221 | 2018-08-28 Simon Marchi <[email protected]> |
2222 | ||
2223 | * parser-defs.h (struct type_stack) <elements>: Change type to | |
2224 | std::vector<union type_stack_elt>. | |
2225 | <depth, size>: Remove. | |
2226 | * parse.c (parse_exp_in_context_1): Adjust. | |
2227 | (type_stack_reserve): Remove. | |
2228 | (check_type_stack_depth): Remove. | |
2229 | (insert_into_type_stack): Adjust to std::vector. | |
2230 | (insert_type): Likewise. | |
2231 | (push_type): Likewise. | |
2232 | (push_type_int): Likewise. | |
2233 | (insert_type_address_space): Likewise. | |
2234 | (pop_type): Likewise. | |
2235 | (pop_type_int): Likewise. | |
2236 | (pop_typelist): Likewise. | |
2237 | (pop_type_stack): Likewise. | |
2238 | (append_type_stack): Likewise. | |
2239 | (push_type_stack): Likewise. | |
2240 | (get_type_stack): Likewise. | |
2241 | (type_stack_cleanup): Likewise. | |
2242 | (push_typelist): Likewise. | |
2243 | (follow_types): Likewise. | |
2244 | (_initialize_parse): Likewise. | |
2245 | ||
416a69af HAQ |
2246 | 2018-08-28 Hafiz Abid Qadeer <[email protected]> |
2247 | ||
2248 | * NEWS: Mention csky target. | |
2249 | ||
9d24df82 HAQ |
2250 | 2018-08-28 Jiangshuai Li <[email protected]> |
2251 | Hafiz Abid Qadeer <[email protected]> | |
2252 | Don Breazeal <[email protected]> | |
2253 | ||
2254 | * csky-linux-tdep.c: New file. | |
2255 | * csky-tdep.c: Likewise. | |
2256 | * csky-tdep.h: Likewise. | |
2257 | * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and | |
2258 | csky-tdep.o. | |
2259 | (HFILES_NO_SRCDIR): Add csky-tdep.h. | |
2260 | (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c | |
2261 | * configure.tgt: Add csky support. | |
2262 | ||
3bf9c013 JV |
2263 | 2018-08-27 Jan Vrany <[email protected]> |
2264 | ||
2265 | * python/py-framefilter.c (py_print_frame): Print frame architecture | |
2266 | when printing on an MI output. | |
2267 | ||
d3d8724a TT |
2268 | 2018-08-27 Tom Tromey <[email protected]> |
2269 | ||
2270 | PR build/23087: | |
2271 | * configure: Rebuild. | |
2272 | * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing. | |
2273 | ||
1885053b TT |
2274 | 2018-08-27 Tom Tromey <[email protected]> |
2275 | ||
2276 | * aarch64-linux-tdep.c | |
2277 | (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add | |
2278 | casts to int. | |
2279 | ||
8406672e TT |
2280 | 2018-08-27 Tom Tromey <[email protected]> |
2281 | ||
2282 | * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to | |
2283 | unsigned. | |
2284 | (ppc64_standard_linkage1, ppc64_standard_linkage2) | |
2285 | (ppc64_standard_linkage3, ppc64_standard_linkage4) | |
2286 | (ppc64_standard_linkage5, ppc64_standard_linkage6) | |
2287 | (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to | |
2288 | unsigned. | |
2289 | ||
ec40cf90 TT |
2290 | 2018-08-27 Tom Tromey <[email protected]> |
2291 | ||
2292 | * xtensa-tdep.h (XTREG_END): Add cast to unsigned. | |
2293 | (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise. | |
2294 | ||
7bc02706 TT |
2295 | 2018-08-27 Tom Tromey <[email protected]> |
2296 | ||
2297 | * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine. | |
2298 | * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use | |
2299 | ULONGEST_MAX. | |
2300 | * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use | |
2301 | ULONGEST_MAX. | |
2302 | * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use | |
2303 | ULONGEST_MAX. | |
2304 | * sparc-linux-tdep.c (sparc32_linux_sigframe) | |
2305 | (sparc32_linux_rt_sigframe): Use ULONGEST_MAX. | |
2306 | * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use | |
2307 | ULONGEST_MAX. | |
2308 | * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame) | |
2309 | (ppc64_linux_sigaction_tramp_frame) | |
2310 | (ppc32_linux_sighandler_tramp_frame) | |
2311 | (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX. | |
2312 | * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame) | |
2313 | (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX. | |
2314 | * mn10300-linux-tdep.c (am33_linux_sigframe) | |
2315 | (am33_linux_rt_sigframe): Use ULONGEST_MAX. | |
2316 | * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX. | |
2317 | * mips-linux-tdep.c (mips_linux_o32_sigframe) | |
2318 | (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe) | |
2319 | (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe) | |
2320 | (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe) | |
2321 | (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX. | |
2322 | * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe) | |
2323 | (mips64_fbsd_sigframe): Use ULONGEST_MAX. | |
2324 | * microblaze-linux-tdep.c | |
2325 | (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX. | |
2326 | * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2) | |
2327 | (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31) | |
2328 | (i386nbsd_sigtramp_si4): Use ULONGEST_MAX. | |
2329 | * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX. | |
2330 | * common/common-types.h (ULONGEST_MAX): New define. | |
2331 | (CORE_ADDR_MAX): Fix formatting. | |
2332 | * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX. | |
2333 | * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX. | |
2334 | * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame) | |
2335 | (arm_linux_rt_sigreturn_tramp_frame) | |
2336 | (arm_eabi_linux_sigreturn_tramp_frame) | |
2337 | (arm_eabi_linux_rt_sigreturn_tramp_frame) | |
2338 | (thumb2_eabi_linux_sigreturn_tramp_frame) | |
2339 | (thumb2_eabi_linux_rt_sigreturn_tramp_frame) | |
2340 | (arm_linux_restart_syscall_tramp_frame) | |
2341 | (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX. | |
2342 | * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX. | |
2343 | * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use | |
2344 | ULONGEST_MAX. | |
2345 | * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX. | |
2346 | ||
70ab8ccd TT |
2347 | 2018-08-27 Tom Tromey <[email protected]> |
2348 | ||
2349 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use | |
2350 | CORE_ADDR_MAX. | |
2351 | * mips-tdep.c (mips_deal_with_atomic_sequence) | |
2352 | (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX. | |
2353 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw) | |
2354 | (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX. | |
2355 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use | |
2356 | CORE_ADDR_MAX. | |
2357 | * aarch64-tdep.c (aarch64_software_single_step): Use | |
2358 | CORE_ADDR_MAX. | |
2359 | ||
896a7aa6 TT |
2360 | 2018-08-27 Tom Tromey <[email protected]> |
2361 | ||
2362 | * linespec.c (complete_linespec_component): Add cast to "char". | |
2363 | * completer.c (completion_tracker::build_completion_result): Add | |
2364 | cast to "char". | |
2365 | ||
dd33d41d SM |
2366 | 2018-08-26 Simon Marchi <[email protected]> |
2367 | ||
2368 | * solist.h (struct solist, struct target_so_ops): Fix | |
2369 | indentation. | |
2370 | ||
c645cda4 SM |
2371 | 2018-08-26 Simon Marchi <[email protected]> |
2372 | ||
2373 | * ada-tasks.c (ada_task_info_s): Remove typedef. | |
2374 | (DEF_VEC_O(ada_task_info_s)): Remove. | |
2375 | (struct ada_tasks_inferior_data): Initialize fields. | |
2376 | <task_list>: Make an std::vector. | |
2377 | (get_ada_tasks_inferior_data): Allocate with new. | |
2378 | (ada_get_task_number): Adjust. | |
2379 | (get_task_number_from_id): Likewise. | |
2380 | (valid_task_id): Likewise. | |
2381 | (ada_get_task_info_from_ptid): Likewise. | |
2382 | (iterate_over_live_ada_tasks): Likewise. | |
2383 | (add_ada_task): Likewise. | |
2384 | (read_known_tasks): Likewise. | |
2385 | (ada_build_task_list): Likewise. | |
2386 | (print_ada_task_info): Likewise. | |
2387 | (info_task): Likewise. | |
2388 | (task_command_1): Likewise. | |
2389 | ||
39e7af3e SM |
2390 | 2018-08-26 Simon Marchi <[email protected]> |
2391 | ||
2392 | * ada-lang.c (add_angle_brackets): Return std::string. | |
2393 | ||
bbbbbcee SM |
2394 | 2018-08-25 Simon Marchi <[email protected]> |
2395 | ||
2396 | * python/py-threadevent.c (py_get_event_thread): Initialize | |
2397 | pythread. | |
2398 | ||
d98fc15b PA |
2399 | 2018-08-24 Pedro Alves <[email protected]> |
2400 | ||
2401 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
2402 | copy-initialization. | |
2403 | * python/py-continueevent.c (emit_continue_event): Use | |
2404 | copy-initialization. | |
2405 | * python/py-exitedevent.c (create_exited_event_object): Return a | |
2406 | gdbpy_ref<>. | |
2407 | (emit_exited_event): Use copy-initialization. | |
2408 | * python/py-inferior.c (python_new_inferior) | |
2409 | (python_inferior_deleted, add_thread_object): Use | |
2410 | copy-initialization. | |
2411 | * python/py-infevents.c (create_inferior_call_event_object) | |
2412 | (create_register_changed_event_object) | |
2413 | (create_memory_changed_event_object): Return a gdbpy_ref<>. | |
2414 | (emit_inferior_call_event, emit_memory_changed_event) | |
2415 | (emit_register_changed_event): Use copy-initialization. | |
2416 | * python/py-newobjfileevent.c (create_new_objfile_event_object): | |
2417 | Return a gdbpy_ref<>. | |
2418 | (emit_new_objfile_event): Use copy-initialization. | |
2419 | (create_clear_objfiles_event_object): Return a gdbpy_ref<>. | |
2420 | (emit_clear_objfiles_event): Use copy-initialization. | |
2421 | * python/py-signalevent.c (create_signal_event_object): Use | |
2422 | copy-initialization. | |
2423 | * python/py-threadevent.c (create_thread_event_object): Use | |
2424 | copy-initialization. | |
2425 | ||
da3c8738 PA |
2426 | 2018-08-24 Pedro Alves <[email protected]> |
2427 | Simon Marchi <[email protected]> | |
2428 | ||
2429 | PR gdb/23379 | |
2430 | * python/py-continueevent.c: Include "gdbthread.h". | |
2431 | (create_continue_event_object): Add intro comment. Add 'ptid' | |
2432 | parameter. Use it to find thread to pass to | |
2433 | create_thread_event_object. | |
2434 | (emit_continue_event): Pass PTID down to | |
2435 | create_continue_event_object. | |
2436 | * python/py-event.h (py_get_event_thread): Declare. | |
2437 | (create_thread_event_object): Remove default from 'thread' | |
2438 | parameter. | |
2439 | * python/py-stopevent.c (create_stop_event_object): Use | |
2440 | py_get_event_thread. | |
2441 | * python/py-threadevent.c (get_event_thread): Rename to ... | |
2442 | (py_get_event_thread): ... this, make extern, add 'ptid' parameter | |
2443 | and use it to find the thread. | |
2444 | (create_thread_event_object): Assert that THREAD isn't null. | |
2445 | Don't find the event thread here. | |
2446 | ||
26457a9c KB |
2447 | 2018-08-23 Kevin Buettner <[email protected]> |
2448 | ||
2449 | * block.h (blockrange, blockranges): New struct declarations. | |
2450 | (struct block): Add new field named `ranges'. | |
2451 | (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P) | |
2452 | (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New | |
2453 | macros for accessing ranges in struct block. | |
2454 | (make_blockranges): New declaration. | |
2455 | block.c (make_blockranges): New function. | |
2d5f09ec KB |
2456 | * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES |
2457 | for block. | |
fc811edd KB |
2458 | * symtab.h (find_pc_partial_function): Add new parameter `block'. |
2459 | * blockframe.c (cache_pc_function_block): New static global. | |
2460 | (clear_pc_function_cache): Clear cache_pc_function_block. | |
2461 | (find_pc_partial_function): Move comment to symtab.h. Add | |
2462 | support for non-contiguous blocks. | |
e9480230 KB |
2463 | * cli/cli-cmds.c (block.h): Include. |
2464 | (print_disassembly): Handle printing of non-contiguous blocks. | |
2465 | (disassemble_current_function): Likewise. | |
2466 | (disassemble_command): Likewise. | |
26457a9c | 2467 | |
2b1ffcfd KB |
2468 | * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of |
2469 | BLOCK_START. | |
2470 | * blockframe.c (get_pc_function_start): Likewise. | |
2471 | * compile/compile-c-symbols.c (convert_one_symbol): Likewise. | |
2472 | (gcc_symbol_address): Likewise. | |
2473 | * compile/compile-object-run.c (compile_object_run): Likewise. | |
2474 | * compile/compile.c (get_expr_block_and_pc): Likewise. | |
2475 | * dwarf2loc.c (dwarf2_find_location_expression): Likewise. | |
2476 | (func_addr_to_tail_call_list): Likewise. | |
2477 | * findvar.c (default_read_var_value): Likewise. | |
2478 | * inline-frame.c (inline_frame_this_id): Likewise. | |
2479 | (skip-inline_frames): Likewise. | |
2480 | * infcmd.c (until_next_command): Likewise. | |
2481 | * linespec.c (convert_linespec_to_sals): Likewise. | |
2482 | * parse.c (parse_exp_in_context_1): Likewise. | |
2483 | * printcmd.c (build_address_symbolic): likewise. | |
2484 | (info_address_command): Likewise. | |
2485 | symtab.c (find_function_start_sal): Likewise. | |
2486 | (skip_prologue_sal): Likewise. | |
2487 | (find_function_alias_target): Likewise. | |
2488 | (find_gnu_ifunc): Likewise. | |
2489 | * stack.c (find_frame_funname): Likewise. | |
2490 | * symtab.c (fixup_symbol_section): Likewise. | |
2491 | (find_function_start_sal): Likewise. | |
2492 | (skip_prologue_sal): Likewsie. | |
2493 | (find_function_alias_target): Likewise. | |
2494 | (find_gnu_ifunc): Likewise. | |
2495 | * tracepoint.c (info_scope_command): Likewise. | |
2496 | * value.c (value_fn_field): Likewise. | |
2497 | ||
9644dc3a KB |
2498 | * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc |
2499 | in place of find_pc_partial_function. | |
2500 | * blockframe.c (find_function_entry_range_from_pc): New function. | |
2501 | * symtab.h (find_function_entry_range_from_pc): Declare and document. | |
2502 | * objfiles.c (objfile_relocate1): Relocate start and end addresses | |
2503 | for each range in a block. | |
2504 | ||
2505 | ||
12a0d0f6 XR |
2506 | 2018-08-23 Xavier Roirand <[email protected]> |
2507 | ||
2508 | * machoread.c (macho_symfile_read_all_oso): Remove uneeded | |
2509 | incrementation. | |
2510 | ||
d1012b8e SM |
2511 | 2018-08-22 Simon Marchi <[email protected]> |
2512 | ||
2513 | * solib-svr4.c (read_program_headers_from_bfd): Return | |
2514 | gdb::optional<gdb::byte_vector>. | |
2515 | (svr4_exec_displacement): Adjust. | |
2516 | ||
17658d46 SM |
2517 | 2018-08-22 Simon Marchi <[email protected]> |
2518 | ||
2519 | * solib-svr4.c (read_program_header): Return | |
2520 | gdb::optional<gdb::byte_vector>, remove p_sect_size param. | |
2521 | (find_program_interpreter): Return | |
2522 | gdb::optional<gdb::byte_vector>. | |
2523 | (scan_dyntag_auxv): Adjust. | |
2524 | (enable_break): Adjust. | |
2525 | (svr4_exec_displacement): Adjust. | |
2526 | ||
ae739fe7 SM |
2527 | 2018-08-22 Simon Marchi <[email protected]> |
2528 | ||
2529 | * inf-child.h (inf_child_target) <terminal_save_inferior>: New. | |
2530 | * inf-child.c (inf_child_target::terminal_save_inferior): New. | |
2531 | ||
467dc1e2 SM |
2532 | 2018-08-22 Simon Marchi <[email protected]> |
2533 | ||
2534 | * guile/scm-string.c (gdbscm_scm_from_printf): Use | |
2535 | string_vprintf. | |
2536 | * guile/scm-utils.c (gdbscm_printf): Likewise. | |
2537 | * serial.c (serial_printf): Likewise. | |
2538 | * xml-support.c (gdb_xml_parser::vdebug): Likewise. | |
2539 | ||
6d52907e JV |
2540 | 2018-08-22 Jan Vrany <[email protected]> |
2541 | ||
2542 | * stack.c (print_frame): Print frame architecture when printing on | |
2543 | an MI output. | |
2544 | * NEWS: Mention new "arch" attribute in frame output. | |
2545 | ||
9758a8f8 AH |
2546 | 2018-08-21 Alan Hayward <[email protected]> |
2547 | ||
2548 | * arch/aarch64.h (aarch64_regnum): Update comment. | |
2549 | ||
1461bdac AH |
2550 | 2018-08-21 Alan Hayward <[email protected]> |
2551 | ||
2552 | * NEWS: Add SVE to 8.2 section. | |
2553 | ||
4895f384 PA |
2554 | 2018-08-21 Pedro Alves <[email protected]> |
2555 | ||
2556 | * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored | |
2557 | out from gdbscm_parse_function_args. | |
2558 | (gdbscm_parse_function_args): Rework to use gdbscm_wrap and | |
2559 | gdbscm_parse_function_args_1. | |
2560 | ||
a4497d2f SM |
2561 | 2018-08-21 Simon Marchi <[email protected]> |
2562 | ||
2563 | PR gdb/17816 | |
2564 | * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary | |
2565 | operator. | |
2566 | ||
c44deb73 SM |
2567 | 2018-08-19 Simon Marchi <[email protected]> |
2568 | ||
2569 | * solib-svr4.c (svr4_exec_displacement): Fix formatting. | |
2570 | ||
be2d111a MS |
2571 | 2018-08-19 Michael Spang <[email protected]> |
2572 | ||
2573 | PR gdb/11786 | |
2574 | * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields | |
2575 | for PT_TLS segments. | |
2576 | ||
a6b786da KB |
2577 | 2018-08-18 Kevin Buettner <[email protected]> |
2578 | ||
2579 | * dwarf2expr.h (struct dwarf_expr_context): Add virtual method | |
2580 | dwarf_variable_value. | |
2581 | * dwarf2-frame.c (class dwarf_expr_executor): | |
2582 | Add override for dwarf_variable_value. | |
2583 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise. | |
2584 | (class symbol_needs_eval_context): Likewise. | |
2585 | (indirect_synthetic_pointer): Add forward declaration. | |
2586 | (sect_variable_value): New function. | |
2587 | (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value. | |
2588 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case | |
2589 | for DW_OP_GNU_variable_value. | |
2590 | ||
89fbedf3 TT |
2591 | 2018-08-16 Tom Tromey <[email protected]> |
2592 | ||
2593 | * top.c (read_command_file): Update. | |
2594 | (command_line_input): Remove "repeat" argument. | |
2595 | * ada-lang.c (get_selections): Update. | |
2596 | * linespec.c (decode_line_2): Update. | |
2597 | * defs.h (command_line_input): Remove argument. | |
2598 | * cli/cli-script.c (read_next_line): Update. | |
2599 | * python/py-gdb-readline.c: Update. | |
2600 | ||
12582533 TT |
2601 | 2018-08-17 Tom Tromey <[email protected]> |
2602 | ||
2603 | * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to | |
2604 | command_line_input. | |
2605 | ||
49514353 TT |
2606 | 2018-08-15 Tom Tromey <[email protected]> |
2607 | ||
2608 | * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest. | |
2609 | ||
26fb3983 JV |
2610 | 2018-08-14 Jan Vrany <[email protected]> |
2611 | ||
2612 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option. | |
2613 | If used, use find_pc_partial_function to find address range | |
2614 | to disassemble. | |
2615 | * mi/mi-main.c (mi_cmd_list_features): Report | |
2616 | "data-disassemble-a-option" feature. | |
2617 | * NEWS: Mention new -data-disassemble option -a. | |
2618 | ||
a97b53dd TT |
2619 | 2018-08-13 Tom Tromey <[email protected]> |
2620 | ||
2621 | * common/common-defs.h (_FORTIFY_SOURCE): Define. | |
2622 | ||
0c76e06d AH |
2623 | 2018-08-13 Alan Hayward <[email protected]> |
2624 | ||
2625 | * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function. | |
2626 | (aarch64_linux_collect_sve_regset): Likewise. | |
2627 | (aarch64_linux_iterate_over_regset_sections): Check for SVE. | |
2628 | * regcache.h (regcache_map_entry_size): New function. | |
2629 | ||
b7fd65b9 AH |
2630 | 2018-08-13 Alan Hayward <[email protected]> |
2631 | ||
2632 | * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define. | |
2633 | (SVE_HEADER_MAX_SIZE_LENGTH): Likewise. | |
2634 | (SVE_HEADER_VL_LENGTH): Likewise. | |
2635 | (SVE_HEADER_MAX_VL_LENGTH): Likewise. | |
2636 | (SVE_HEADER_FLAGS_LENGTH): Likewise. | |
2637 | (SVE_HEADER_RESERVED_LENGTH): Likewise. | |
2638 | (SVE_HEADER_SIZE_OFFSET): Likewise. | |
2639 | (SVE_HEADER_MAX_SIZE_OFFSET): Likewise. | |
2640 | (SVE_HEADER_VL_OFFSET): Likewise. | |
2641 | (SVE_HEADER_MAX_VL_OFFSET): Likewise. | |
2642 | (SVE_HEADER_FLAGS_OFFSET): Likewise. | |
2643 | (SVE_HEADER_RESERVED_OFFSET): Likewise. | |
2644 | (SVE_HEADER_SIZE): Likewise. | |
2645 | (aarch64_linux_core_read_vq): Add function. | |
2646 | (aarch64_linux_core_read_description): Check for SVE section. | |
2647 | ||
a616bb94 AH |
2648 | 2018-08-13 Alan Hayward <[email protected]> |
2649 | ||
2650 | * aarch64-fbsd-tdep.c | |
2651 | (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and | |
2652 | collect_size. | |
2653 | * aarch64-linux-tdep.c | |
2654 | (aarch64_linux_iterate_over_regset_sections): Likewise. | |
2655 | * alpha-linux-tdep.c | |
2656 | (alpha_linux_iterate_over_regset_sections): | |
2657 | * alpha-nbsd-tdep.c | |
2658 | (alphanbsd_iterate_over_regset_sections): Likewise. | |
2659 | * amd64-fbsd-tdep.c | |
2660 | (amd64fbsd_iterate_over_regset_sections): Likewise. | |
2661 | * amd64-linux-tdep.c | |
2662 | (amd64_linux_iterate_over_regset_sections): Likewise. | |
2663 | * arm-bsd-tdep.c | |
2664 | (armbsd_iterate_over_regset_sections): Likewise. | |
2665 | * arm-fbsd-tdep.c | |
2666 | (arm_fbsd_iterate_over_regset_sections): Likewise. | |
2667 | * arm-linux-tdep.c | |
2668 | (arm_linux_iterate_over_regset_sections): Likewise. | |
2669 | * corelow.c (get_core_registers_cb): Likewise. | |
2670 | (core_target::fetch_registers): Likewise. | |
2671 | * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise. | |
2672 | * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise. | |
2673 | * gdbarch.h (void): Regenerate. | |
2674 | * gdbarch.sh: Add supply_size and collect_size. | |
2675 | * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise. | |
2676 | * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise. | |
2677 | * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise. | |
2678 | * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise. | |
2679 | * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise. | |
2680 | * i386-tdep.c (i386_iterate_over_regset_sections): Likewise. | |
2681 | * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise. | |
2682 | * linux-tdep.c (linux_collect_regset_section_cb): Likewise. | |
2683 | * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise. | |
2684 | * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise. | |
2685 | * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise. | |
2686 | * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise. | |
2687 | * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise. | |
2688 | * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise. | |
2689 | * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise. | |
2690 | * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise. | |
2691 | * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise. | |
2692 | * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise. | |
2693 | * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise. | |
2694 | * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise. | |
2695 | * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise. | |
2696 | * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise. | |
2697 | * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise. | |
2698 | * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise. | |
2699 | * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise. | |
2700 | * sh-tdep.c (sh_iterate_over_regset_sections): Likewise. | |
2701 | * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise. | |
2702 | * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise. | |
2703 | * vax-tdep.c (vax_iterate_over_regset_sections): Likewise. | |
2704 | * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise. | |
2705 | ||
a9925d4f SM |
2706 | 2018-08-10 Simon Marchi <[email protected]> |
2707 | ||
2708 | * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf | |
2709 | with string_printf. | |
2710 | ||
ad3a68e9 KS |
2711 | 2018-08-10 Keith Seitz <[email protected]> |
2712 | ||
2713 | * compile/compile-c-support.c (add_code_header, add_code_footer): | |
2714 | Move into policy class. | |
2715 | (c_push_user_expression, pop_user_expression_nop) | |
2716 | (c_add_code_header, c_add_code_footer, c_add_input): New policy class. | |
2717 | (compile_program): New host class. | |
2718 | (c_compile_program): New typedef. | |
2719 | (c_compute_porgram): Use c_compile_program. | |
2720 | ||
0cfbf430 KS |
2721 | 2018-08-10 Keith Seitz <[email protected]> |
2722 | ||
2723 | * compile/compile-internal.h (compile_instance::~compile_instance): | |
2724 | Remove calls to htab_delete. | |
2725 | <m_type_map, m_symbol_err_map>: Switch type to htab_up. | |
2726 | * compile.c (compile_instance::compile_instance): Initialize | |
2727 | htab unique pointers. | |
2728 | (compile_instance::get_cached_type, compile_instance::insert_type) | |
2729 | (compile_instance::error_symbol_once): Update for unique_ptr. | |
2730 | ||
946d3d10 KS |
2731 | 2018-08-10 Keith Seitz <[email protected]> |
2732 | ||
2733 | * compile/compile-c-symbols.c (struct symbol_error) | |
2734 | (hash_symbol_error, eq_symbol_error, del_symbol_error) | |
2735 | (compile_instance::insert_symbol_error) | |
2736 | (compile_instance::error_symbol_once): Move to ... | |
2737 | * compile/compile.c: ... here. | |
2738 | ||
9cdfd9a2 KS |
2739 | 2018-08-10 Keith Seitz <[email protected]> |
2740 | ||
2741 | * compile/compile-c-support.c (c_get_compile_context): Use `new' | |
2742 | instead of `new_compile_instance'. | |
2743 | * compile/compile-c-symbols.c (compile_instance::insert_symbol_error): | |
2744 | Update description. | |
2745 | If the symbol error map is not initialized, create it. | |
2746 | (generate_c_for_for_one_symbol): Do not check/initialize | |
2747 | the symbol error map. | |
2748 | * compile/compile-c-types.c (compile_c_instance): Make a class. | |
2749 | Update all callers. | |
2750 | (compile_instance::compile_instance): Initialize the type cache. | |
2751 | (get_cached_type): New function. | |
2752 | (insert_type): Update description. | |
2753 | (compile_c_instance::m_default_cflags): Define. | |
2754 | (convert_type): Update description. Use get_cached_type. | |
2755 | (delete_instance): Moved to destructor. | |
2756 | (new_compile_instance): Moved to constructor. | |
2757 | * compile/compile-c.h (compile_c_instance): Make class inheriting | |
2758 | from compile_instance. | |
2759 | <base>: Remove field. | |
2760 | <type_map, symbol_err_map>: Move to base class. | |
2761 | <c_plugin>: Rename to `m_plugin' and remove pointer type. | |
2762 | * compile/compile-internal.h (compile_instance): Make class. | |
2763 | <type_map_t, symbol_err_map_t>: Define. | |
2764 | <fe>: Rename to `m_gcc_fe'. | |
2765 | <scope, block, gcc_target_options>: Add `m_' prefix. | |
2766 | <m_type_map, m_symbol_err_map>: New fields, moved from | |
2767 | compile_c_instance. | |
2768 | <destroy>: Remove. | |
2769 | (convert_type, new_compile_instance): Remove. | |
2770 | * compile/compile.c (cleanup_compile_instance): Remove. | |
2771 | (compile_to_object): Use unique_ptr to eliminate cleanups. | |
2772 | (compile_instance::set_print_callback, compile_instance::version) | |
2773 | (compile_instance::set_verbose) | |
2774 | (compile_instance::set_driver_filename) | |
2775 | (compile_instance::set_triplet_regexp) | |
2776 | (compile_instance::set_arguments) | |
2777 | (compile_instance::set_source_file) | |
2778 | (compile_instance::compile): Define. | |
2779 | ||
18cdc6d8 KS |
2780 | 2018-08-10 Keith Seitz <[email protected]> |
2781 | ||
2782 | * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h. | |
2783 | * compile/compile-c-types.c: Define GCC_METHODN macros and include | |
2784 | gcc-c-fe.def to define C plugin. | |
2785 | (delete_instance): Delete `c_plugin'. | |
2786 | (new_compile_instance): Initialize `c_plugin'. | |
2787 | * compile/compile-c.h: Include gcc_c_plugin.h. | |
2788 | (struct compile_c_instance) <c_plugin>: New member. | |
2789 | * gcc-c-plugin.h: New file. | |
2790 | Update all callers with API change. | |
2791 | ||
b7dc48b4 KS |
2792 | 2018-08-10 Keith Seitz <[email protected]> |
2793 | ||
2794 | * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ... | |
2795 | (HFILES_NO_SRCDIR): ... to here. | |
2796 | Add compile-internal.h and compile-c.h. | |
2797 | * compile/compile-c-support.c: Include compile-c.h. | |
2798 | * compile/compile-c-symbols.c: Include compile-c.h. | |
2799 | (generate_c_for_variable_locations): Update comment. | |
2800 | * compile/compile-c-types.c: Include compile-c.h. | |
2801 | * compile/compile-c.h: New file -- moved C language declarations | |
2802 | from other files here. | |
2803 | * compile/compile-internal.h: Do not include hashtab.h or | |
2804 | common/enum-flags.h. | |
2805 | (gcc_qualifiers_flags, struct compile_c_instance, C_CTX) | |
2806 | (gcc_convert_symbol, gcc_symbol_address) | |
2807 | (generate_c_for_variable_locations, c_get_mode_for_size) | |
2808 | (c_get_range_decl_name): Definitions moved to compile-c.h. | |
2809 | * compile/compile-loc2c.c: Include compile-c.h. | |
2810 | ||
6f36b6d2 KS |
2811 | 2018-08-10 Keith Seitz <[email protected]> |
2812 | ||
2813 | * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ... | |
2814 | (c_symbol_substitution_name): ... this. | |
2815 | Update all callers. | |
2816 | ||
bd923e51 KS |
2817 | 2018-08-10 Keith Seitz <[email protected]> |
2818 | ||
2819 | * compile/compile-c-support.c (c_compute_program): Use | |
2820 | unique_xmalloc_ptr to eliminate cleanup. | |
2821 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
2822 | Return a unique_xmalloc_ptr and eliminate cleanup. | |
2823 | * compile/compile-internal.h (generate_c_for_variable_locations): | |
2824 | Return unique_xmalloc_ptr and update description. | |
2825 | ||
dbd534fe AH |
2826 | 2018-08-10 Alan Hayward <[email protected]> |
2827 | ||
2828 | * corelow.c (core_target::get_core_register_section): Rename | |
2829 | min_size to section_min_size. | |
2830 | ||
90ad3654 JW |
2831 | 2018-08-09 Jim Wilson <[email protected]> |
2832 | ||
52a187f8 JW |
2833 | * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c. |
2834 | (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c. | |
2835 | * NEWS: Mention new GNU/Linux RISC-V target. | |
2836 | * configure.host: Add riscv*-*-linux*. | |
2837 | * configure.nat: Add riscv*. | |
2838 | * configure.tgt: Add riscv*-*-linux*. | |
3c77f97e | 2839 | * riscv-linux-nat.c: New file. |
90ad3654 JW |
2840 | * riscv-linux-tdep.c: New file. |
2841 | ||
aff4e175 AB |
2842 | 2018-08-09 Andrew Burgess <[email protected]> |
2843 | ||
2844 | * infrun.c (resume): Make static, add forward declaration. | |
2845 | (proceed): Update header comment. | |
2846 | * infrun.h (resume): Delete declaration. | |
2847 | ||
06ab9219 TT |
2848 | 2018-08-09 Tom Tromey <[email protected]> |
2849 | ||
2850 | * riscv-tdep.h: Minor formatting fixes. | |
2851 | ||
83c8d318 SM |
2852 | 2018-08-09 Simon Marchi <[email protected]> |
2853 | ||
2854 | * common/scoped_mmap.c (mmap_file): Silence ARI warning. | |
2855 | * dwarf-index-cache.c (create_dir_and_check): Likewise. | |
2856 | (test_mkdir_recursive): Likewise. | |
2857 | * dwarf-index-write.c (write_psymtabs_to_index): Likewise. | |
2858 | ||
5ff2bbae AB |
2859 | 2018-08-09 Andrew Burgess <[email protected]> |
2860 | ||
2861 | * valarith.c (value_subscripted_rvalue): If an array is not in | |
2862 | memory, and we don't know the upper bound, then we can't know that | |
2863 | the requested element exists or not. | |
2864 | ||
fdbac7d8 SM |
2865 | 2018-08-08 Simon Marchi <[email protected]> |
2866 | ||
2867 | * target.c (str_comma_list_concat_elem): Fix typo in comment. | |
2868 | (target_options_to_string): Add comment. | |
2869 | ||
83202f7a TT |
2870 | 2018-08-08 Tom Tromey <[email protected]> |
2871 | ||
2872 | * unittests/scoped_mmap-selftests.c: Check result of "write". | |
2873 | ||
411baa47 JW |
2874 | 2018-08-08 Jim Wilson <[email protected]> |
2875 | ||
5c720ed8 JW |
2876 | * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes. |
2877 | (decode_register_index_short): New. | |
2878 | (decode_j_type_insn, decode_cj_type_insn): New. | |
2879 | (decode_b_type_insn, decode_cb_type_insn): New. | |
2880 | (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New | |
2881 | local xlen. Check xlen when decoding ambiguous compressed insns. In | |
2882 | compressed decode, use is_c_lui_insn instead of is_lui_insn, and | |
2883 | is_c_sw_insn instead of is_sw_insn. | |
2884 | (riscv_next_pc, riscv_next_pc_atomic_sequence): New. | |
2885 | (riscv_software_single_step): New. | |
2886 | * riscv-tdep.h (riscv_software_single_step): Declare. | |
2887 | ||
411baa47 JW |
2888 | * riscv-tdep.c (riscv_isa_xlen): Drop static. |
2889 | * riscv-tdep.h (riscv_isa_xlen): Add extern declaration. | |
2890 | ||
9d4a934c AB |
2891 | 2018-08-08 Andrew Burgess <[email protected]> |
2892 | ||
2893 | PR gdb/18050: | |
2894 | * target.c (dispose_inferior): Don't dispose of inferiors that are | |
2895 | already killed. | |
2896 | ||
ff36536c SN |
2897 | 2018-08-08 Szabolcs Nagy <[email protected]> |
2898 | ||
2899 | * remote.c (remote_target::download_tracepoint): Change char* to | |
2900 | const char*. | |
2901 | ||
09ce46f2 SM |
2902 | 2018-08-07 Simon Marchi <[email protected]> |
2903 | ||
2904 | * target.h (target_options_to_string): Return an std::string. | |
2905 | * target.c (str_comma_list_concat_elem): Return void, use | |
2906 | std::string. | |
2907 | (do_option): Likewise. | |
2908 | (target_options_to_string): Return an std::string. | |
2909 | * linux-nat.c (linux_nat_target::wait): Adjust. | |
2910 | * target-debug.h (target_debug_print_options): Adjust. | |
2911 | ||
9c612964 TT |
2912 | 2018-08-07 Tom Tromey <[email protected]> |
2913 | ||
2914 | * Makefile.in (CPPFLAGS): New variable. | |
2915 | (INTERNAL_CPPFLAGS): Use it. | |
2916 | ||
7d11235d SM |
2917 | 2018-08-07 Simon Marchi <[email protected]> |
2918 | ||
2919 | * NEWS: Mention the index cache. | |
2920 | ||
87d6a7aa SM |
2921 | 2018-08-07 Simon Marchi <[email protected]> |
2922 | ||
2923 | * common/pathstuff.h (get_standard_cache_dir): New. | |
2924 | * common/pathstuff.c (get_standard_cache_dir): New. | |
2925 | * build-id.h (build_id_to_string): New. | |
2926 | * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX, | |
2927 | DEBUG_STR_SUFFIX): Move to here. | |
2928 | * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX, | |
2929 | DEBUG_STR_SUFFIX): Move from there. | |
2930 | (write_psymtabs_to_index): Make non-static, add basename | |
2931 | parameter. Write to temporary files, rename when done. | |
2932 | (save_gdb_index_command): Adjust call to | |
2933 | write_psymtabs_to_index. | |
2934 | * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New | |
2935 | field. | |
2936 | * dwarf2read.c (dwz_file) <index_cache_res>: New field. | |
2937 | (get_gdb_index_contents_from_cache): New. | |
2938 | (get_gdb_index_contents_from_cache_dwz): New. | |
2939 | (dwarf2_initialize_objfile): Read index from cache. | |
2940 | (dwarf2_build_psymtabs): Save to index. | |
2941 | * dwarf-index-cache.h: New file. | |
2942 | * dwarf-index-cache.c: New file. | |
2943 | * dwarf-index-write.h: New file. | |
2944 | ||
8a99096f SM |
2945 | 2018-08-07 Simon Marchi <[email protected]> |
2946 | ||
2947 | * gnulib/aclocal.m4: Re-generate. | |
2948 | * gnulib/config.in: Re-generate. | |
2949 | * gnulib/configure: Re-generate. | |
2950 | * gnulib/import/Makefile.am: Re-generate. | |
2951 | * gnulib/import/Makefile.in: Re-generate. | |
2952 | * gnulib/import/m4/gnulib-cache.m4: Re-generate. | |
2953 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
2954 | * gnulib/import/m4/mkdir.m4: New file. | |
2955 | * gnulib/import/mkdir.c: New file. | |
2956 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir | |
2957 | module. | |
2958 | ||
5c831bb1 SM |
2959 | 2018-08-07 Simon Marchi <[email protected]> |
2960 | ||
2961 | * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c. | |
2962 | * common/scoped_mmap.c: New file. | |
2963 | * common/scoped_mmap.h (destroy): New method. | |
2964 | (~scoped_mmap, reset): Use destroy. | |
2965 | (scoped_mmap): New move constructor. | |
2966 | (mmap_file): New declaration. | |
2967 | * unittests/scoped_mmap-selftests.c (test_normal, | |
2968 | test_invalid_filename, run_tests): New functions. | |
2969 | (_initialize_scoped_mmap_selftests): Register selftest. | |
2970 | ||
4485a1c1 SM |
2971 | 2018-08-07 Simon Marchi <[email protected]> |
2972 | ||
2973 | * dwarf2read.c (read_gdb_index_from_section): Rename to... | |
2974 | (read_gdb_index_from_buffer): ... this. Remove section | |
2975 | parameter, add buffer parameter. | |
2976 | (get_gdb_index_contents_ftype, | |
2977 | get_gdb_index_contents_dwz_ftype): New typedefs. | |
2978 | (dwarf2_read_gdb_index): Add callback parameters to get the | |
2979 | index contents. | |
2980 | (get_gdb_index_contents_from_section): New. | |
2981 | (dwarf2_initialize_objfile): Update call to | |
2982 | dwarf2_read_gdb_index. | |
2983 | ||
528e1572 SM |
2984 | 2018-08-07 Simon Marchi <[email protected]> |
2985 | ||
2986 | * common/filestuff.h (gdb_fopen_cloexec): New overload. | |
2987 | (gdb_open_cloexec): Likewise. | |
2988 | * nat/linux-osdata.c (command_from_pid): Use string_printf. | |
2989 | (commandline_from_pid): Likewise. | |
2990 | (linux_xfer_osdata_threads): Likewise. | |
2991 | (linux_xfer_osdata_fds): Likewise. | |
2992 | * ada-lang.c (is_package_name): Likewise. | |
2993 | * auxv.c (procfs_xfer_auxv): Likewise. | |
2994 | * breakpoint.c (print_one_breakpoint_location): Use | |
2995 | uiout::field_fmt. | |
2996 | (print_one_catch_solib): Use string_printf. | |
2997 | * coff-pe-read.c (add_pe_exported_sym): Likewise. | |
2998 | (add_pe_forwarded_sym): Likewise. | |
2999 | * dwarf2read.c (create_type_unit_group): Likewise. | |
3000 | (build_error_marker_type): Likewise. | |
3001 | * infcall.c (get_function_name): Likewise. | |
3002 | * valprint.c (print_converted_chars_to_obstack): Likewise. | |
3003 | * xtensa-tdep.c (xtensa_register_type): Likewise. | |
3004 | ||
a7f25a84 SM |
3005 | 2018-08-06 Simon Marchi <[email protected]> |
3006 | ||
3007 | * remote.c (remote_target::download_tracepoint): Fix format | |
3008 | string errors. | |
3009 | ||
296956be PFC |
3010 | 2018-08-06 Pedro Franco de Carvalho <[email protected]> |
3011 | ||
3012 | * tracefile.c: Include common/byte-vector.h. | |
3013 | (trace_save): Change type of buf to gdb::byte_vector. Initialize | |
3014 | with trace_regblock_size if needed. Update uses of buf. | |
3015 | ||
a04b9d62 PFC |
3016 | 2018-08-06 Pedro Franco de Carvalho <[email protected]> |
3017 | ||
3018 | * tracepoint.h (collection_list) <m_regs_mask>: Change type to | |
3019 | std::vector<unsigned char>. | |
3020 | * tracepoint.c (collection_list::collection_list): Remove | |
3021 | m_regs_mask initializer from initializer list. Resize | |
3022 | m_regs_mask using the largest remote register number. | |
3023 | (collection_list::add_remote_register): Remove size check on | |
3024 | m_regs_mask. Use at to access element. | |
3025 | (collection_list::stringify): Change type of temp_buf to | |
3026 | gdb::char_vector. Update uses of temp_buf. Resize if needed to | |
3027 | stringify the register mask. Use pack_hex_byte for the register | |
3028 | mask. | |
3029 | ||
4277c4b8 PFC |
3030 | 2018-08-06 Pedro Franco de Carvalho <[email protected]> |
3031 | ||
3032 | * tracepoint.h (class collection_list) <add_register>: Remove. | |
3033 | <add_remote_register, add_ax_registers, add_local_register>: | |
3034 | Declare. | |
3035 | <add_memrange>: Add scope parameter. | |
3036 | * tracepoint.c (encode_actions_1): Likewise. | |
3037 | (collection_list::add_register): Rename to ... | |
3038 | (collection_list::add_remote_register): ... this. Update | |
3039 | comment. | |
3040 | (collection_list::add_ax_registers, add_local_register): New | |
3041 | methods. | |
3042 | (collection_list::add_memrange): Add scope parameter. Call | |
3043 | add_local_register instead of add_register. | |
3044 | (finalize_tracepoint_aexpr): New function. | |
3045 | (collection_list::collect_symbol): Update calls to add_memrange. | |
3046 | Call add_local_register instead of add_register. Call | |
3047 | add_ax_registers. Call finalize_tracepoint_aexpr. | |
3048 | (encode_actions_1): Get remote regnos for $reg action. Call | |
3049 | add_remote_register, add_ax_registers, and add_local_register. | |
3050 | Update call to add_memrange. Call finalize_tracepoint_aexpr. | |
3051 | (validate_actionline): Call finalize_tracepoint_aexpr. | |
3052 | ||
3df3a985 PFC |
3053 | 2018-08-06 Pedro Franco de Carvalho <[email protected]> |
3054 | ||
3055 | * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE. | |
3056 | Replace array buf with gdb::char_vector buf, of size | |
3057 | get_remote_packet_size (). Replace references to buf and | |
3058 | BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat | |
3059 | and xsnprintf with snprintf. Raise errors if the buffer is too | |
3060 | small. | |
3061 | ||
aa6f3694 PFC |
3062 | 2018-08-06 Pedro Franco de Carvalho <[email protected]> |
3063 | ||
3064 | * remote.c (remote_target::download_tracepoint): Fix the has_more | |
3065 | predicate in the QTDP action list iteration. | |
3066 | ||
05abfc39 PFC |
3067 | 2018-08-06 Pedro Franco de Carvalho <[email protected]> |
3068 | ||
3069 | * remote.c (remote_target::download_tracepoint): Fix indentation | |
3070 | in for block. | |
3071 | ||
821a2682 RO |
3072 | 2018-08-06 Rainer Orth <[email protected]> |
3073 | ||
3074 | * proc-api.c (_initialize_proc_api): Remove c, unused. | |
3075 | * procfs.c (procfs_init_inferior): Remove signals, unused. | |
3076 | (procfs_target::make_corefile_notes): Remove old_chain, fpregs, | |
3077 | unused. | |
3078 | ||
95347337 AB |
3079 | 2018-08-06 Sergey Korolev <[email protected]> |
3080 | Andrew Burgess <[email protected]> | |
3081 | ||
3082 | * linux-nat.c (linux_nat_target::follow_fork): Avoid using | |
3083 | 'W_STOPCODE (0)' as this could be ambiguous. | |
3084 | ||
425699f5 SDJ |
3085 | 2018-08-03 Sergio Durigan Junior <[email protected]> |
3086 | ||
3087 | * ser-tcp.c (net_open): Fix thinko when deciding whether to | |
3088 | disable TCP's Nagle algorithm (use "ai_protocol" instead of | |
3089 | "ai_socktype"). | |
3090 | ||
3e1d3d8c TT |
3091 | 2018-08-02 Tom Tromey <[email protected]> |
3092 | ||
3093 | PR symtab/16842. | |
3094 | * dwarf2read.c (read_func_scope): Set symtab on template parameter | |
3095 | symbols. | |
3096 | (process_structure_scope): Likewise. | |
3097 | ||
15843549 XR |
3098 | 2018-08-02 Xavier Roirand <[email protected]> |
3099 | ||
3100 | PR gdb/22629: | |
3101 | * darwin-nat.c (darwin_kill_inferior): Fix handling of | |
3102 | kill inferior. | |
3103 | ||
b5bddbbb TT |
3104 | 2018-08-02 Tom Tromey <[email protected]> |
3105 | ||
3106 | * darwin-nat.c (find_inferior_task_it, darwin_find_thread) | |
3107 | (darwin_suspend_inferior, darwin_resume_inferior) | |
3108 | (darwin_decode_notify_message, darwin_resume_inferior_threads) | |
3109 | (darwin_check_new_threads): Check result of get_darwin_inferior. | |
3110 | ||
f61cfa07 JB |
3111 | 2018-07-31 Joel Brobecker <[email protected]> |
3112 | ||
3113 | GDB 8.1.1 released. | |
3114 | ||
5abe0f0c JV |
3115 | 2018-07-31 Jan Vrany <[email protected]> |
3116 | ||
3117 | * varobj.c (varobj_get_path_expr_parent): Report an error if | |
3118 | parent is a dynamic varobj. | |
3119 | ||
472fa5ee SM |
3120 | 2018-07-31 Simon Marchi <[email protected]> |
3121 | ||
3122 | * gnulib/aclocal.m4: Re-generate. | |
3123 | * gnulib/config.in: Re-generate. | |
3124 | * gnulib/configure: Re-generate. | |
3125 | * gnulib/import/Makefile.in: Re-generate. | |
3126 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
3127 | * gnulib/import/m4/onceonly.m4: Re-generate. | |
3128 | ||
1c28969e SM |
3129 | 2018-07-31 Simon Marchi <[email protected]> |
3130 | ||
3131 | * target-descriptions.c (struct xml_test_tdesc): New. | |
3132 | (xml_tdesc): Change type to std::vector<xml_test_tdesc>. | |
3133 | (record_xml_tdesc): Update. | |
3134 | (maintenance_check_xml_descriptions): Update. | |
3135 | * target-descriptions.h (record_xml_tdesc): Update comment. | |
3136 | ||
c8f2dc0d AB |
3137 | 2018-07-30 Andrew Burgess <[email protected]> |
3138 | ||
3139 | * eval.c (evaluate_subexp_for_sizeof): Check for array type before | |
3140 | checking array bounds are defined. | |
3141 | ||
463c08d1 TT |
3142 | 2018-07-30 Tom Tromey <[email protected]> |
3143 | ||
3144 | * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix | |
3145 | irreflexivity violation. | |
3146 | ||
dba7455e TT |
3147 | 2018-07-30 Tom Tromey <[email protected]> |
3148 | ||
3149 | * cli/cli-decode.c (lookup_cmd): Remove lint code. | |
3150 | * value.c (unpack_long): Remove lint code. | |
3151 | * valops.c (value_ind): Remove lint code. | |
3152 | * valarith.c (value_x_binop, value_x_unop, value_equal) | |
3153 | (value_pos): Remove lint code. | |
3154 | ||
37cc0cae TV |
3155 | 2018-07-28 Tom de Vries <[email protected]> |
3156 | ||
3157 | * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type | |
3158 | with undefined upper bound as <optimized out>. | |
3159 | ||
129eb0f1 SDJ |
3160 | 2018-07-27 Sergio Durigan Junior <[email protected]> |
3161 | ||
3162 | * gcore.in: Rename variable "name" to "prefix". Expand | |
3163 | "usage" text. | |
3164 | ||
6af79d7b JT |
3165 | 2018-07-14 Jon Turney <[email protected]> |
3166 | ||
3167 | * windows-nat.c (windows_nat_target::create_inferior): Update to | |
3168 | call close() in global namespace. | |
3169 | ||
79748972 TT |
3170 | 2018-07-26 Tom Tromey <[email protected]> |
3171 | ||
3172 | * dwarf-index-write.c (add_address_entry): Don't add objfile | |
3173 | offsets. | |
3174 | * dbxread.c (find_stab_function): Rename from | |
3175 | find_stab_function_addr. Return a bound_minimal_symbol. | |
3176 | (read_dbx_symtab): Use raw_text_low, raw_text_high. | |
3177 | Don't add objfile offsets. | |
3178 | (end_psymtab): Use raw_text_low, raw_text_high, | |
3179 | MSYMBOL_VALUE_RAW_ADDRESS. | |
3180 | (read_ofile_symtab): Update. | |
3181 | (process_one_symbol): Update. | |
3182 | * dwarf2read.c (create_addrmap_from_index): Don't add objfile | |
3183 | offsets. | |
3184 | (dw2_relocate): Remove. | |
3185 | (dw2_find_pc_sect_symtab): Bias PC by the text offset before | |
3186 | searching addrmap. | |
3187 | (dwarf2_gdb_index_functions, dwarf2_debug_names_functions): | |
3188 | Update. | |
3189 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
3190 | (add_partial_subprogram, dwarf2_ranges_read): Update. | |
3191 | (load_partial_dies): Update. | |
3192 | (add_address_entry): Don't add objfile offsets. | |
3193 | (dwarf2_build_include_psymtabs): Update. | |
3194 | (create_addrmap_from_aranges): Don't add objfile offsets. | |
3195 | (dw2_find_pc_sect_compunit_symtab): Update. | |
3196 | * mdebugread.c (parse_symbol): Don't add objfile offsets. | |
3197 | (parse_lines): Remove 'pst' parameter, replace with 'textlow'. | |
3198 | Update. | |
3199 | (parse_partial_symbols): Don't add objfile offsets. Use | |
3200 | raw_text_low, raw_text_high. Update. | |
3201 | (handle_psymbol_enumerators, psymtab_to_symtab_1): Update. | |
3202 | * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap | |
3203 | or call 'relocate' quick function. Clear psymbol_map. | |
3204 | * psympriv.h (struct partial_symbol) <address>: Add section | |
3205 | offset. | |
3206 | <set_unrelocated_address>: Rename from set_address. | |
3207 | <raw_text_low, raw_text_high>: New methods. | |
3208 | <text_low, text_high>: Add objfile parameter. | |
3209 | (add_psymbol_to_bcache): Add 'section' parameter. Call | |
3210 | set_unrelocated_address. | |
3211 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
3212 | (find_pc_psymbol): Update. | |
3213 | (fixup_psymbol_section, relocate_psymtabs): Remove. | |
3214 | (dump_psymtab, psym_functions): Update. | |
3215 | (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section' | |
3216 | parameter. | |
3217 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
3218 | (start_psymtab_common): Update. | |
3219 | * symfile-debug.c (debug_qf_relocate): Remove. | |
3220 | (debug_sym_quick_functions): Update. | |
3221 | * symfile.h (struct quick_symbol_functions) <relocate>: Remove. | |
3222 | * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets. | |
3223 | Update. | |
3224 | ||
52948f01 TT |
3225 | 2018-07-26 Tom Tromey <[email protected]> |
3226 | ||
3227 | * dbxread.c (end_psymtab): Use text_high_valid and | |
3228 | text_low_valid. | |
3229 | * mdebugread.c (parse_partial_symbols): Use text_low_valid. | |
3230 | (psymtab_to_symtab_1): Use text_high_valid and text_low_valid. | |
3231 | * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: | |
3232 | Update comment. | |
3233 | <text_low_valid, text_high_valid>: New fields. | |
3234 | <set_text_low, set_text_high>: Update. | |
3235 | * xcoffread.c (scan_xcoff_symtab): Use text_low_valid. | |
3236 | ||
4ae976d1 TT |
3237 | 2018-07-26 Tom Tromey <[email protected]> |
3238 | ||
3239 | * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): | |
3240 | Update. | |
3241 | * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize | |
3242 | textlow and texthigh fields. | |
3243 | (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs): | |
3244 | Update. | |
3245 | * mdebugread.c (parse_lines, parse_partial_symbols) | |
3246 | (psymtab_to_symtab_1): Update. | |
3247 | * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: | |
3248 | Rename fields. Update comment. Now private. | |
3249 | <text_low, text_high, set_text_low, set_text_high>: New methods. | |
3250 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
3251 | (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab) | |
3252 | (start_psymtab_common, maintenance_info_psymtabs) | |
3253 | (maintenance_check_psymtabs): Update. | |
3254 | * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and | |
3255 | texthigh fields. | |
3256 | (scan_xcoff_symtab): Update. | |
3257 | ||
02e9e7f7 TT |
3258 | 2018-07-26 Tom Tromey <[email protected]> |
3259 | ||
3260 | * psympriv.h (struct partial_symbol) <unrelocated_address, | |
3261 | address, set_address>: New methods. | |
3262 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol) | |
3263 | (fixup_psymbol_section, relocate_psymtabs): Update. | |
3264 | (print_partial_symbols): Add 'objfile' parameter. Update. | |
3265 | (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map): | |
3266 | Update. | |
3267 | ||
8a6d4234 TT |
3268 | 2018-07-26 Tom Tromey <[email protected]> |
3269 | ||
3270 | * dwarf-index-write.c (write_psymbols, debug_names::insert) | |
3271 | (debug_names::write_psymbols): Update. | |
3272 | * psympriv.h (struct partial_symbol): Derive from | |
3273 | general_symbol_info. | |
3274 | <obj_section>: New method. | |
3275 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n | |
3276 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
3277 | (find_pc_sect_psymbol, fixup_psymbol_section) | |
3278 | (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs) | |
3279 | (print_partial_symbols, recursively_search_psymtabs) | |
3280 | (compare_psymbols, psymbol_hash, psymbol_compare) | |
3281 | (add_psymbol_to_bcache, maintenance_check_psymtabs) | |
3282 | (psymbol_name_matches, psym_fill_psymbol_map): Update. | |
3283 | ||
08994e1d TT |
3284 | 2018-07-26 Tom Tromey <[email protected]> |
3285 | ||
3286 | * dbxread.c (end_psymtab): Remove dead code. | |
3287 | ||
3c3bb058 AB |
3288 | 2018-07-26 Andrew Burgess <[email protected]> |
3289 | ||
3290 | * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if | |
3291 | DWARF unwinders are disabled. | |
3292 | * dwarf2-frame.c: Add dwarf2read.h include. | |
3293 | (dwarf2_frame_sniffer): Exit early if DWARF unwinders are | |
3294 | disabled. | |
3295 | (dwarf2_frame_unwinders_enabled_p): Define. | |
3296 | (show_dwarf_unwinders_enabled_p): New function. | |
3297 | (_initialize_dwarf2_frame): Register switch to control DWARF | |
3298 | unwinder use. | |
3299 | * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare. | |
3300 | * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword. | |
3301 | (show_dwarf_cmdlist): Remove static keyword. | |
3302 | * dwarf2read.h (set_dwarf_cmdlist): Declare. | |
3303 | (show_dwarf_cmdlist): Declare. | |
3304 | * NEWS: Document new feature. | |
3305 | ||
9e7f3bbb TV |
3306 | 2018-07-26 Tom de Vries <[email protected]> |
3307 | ||
3308 | PR breakpoints/23366 | |
3309 | * infcmd.c (info_program_command): Handle ptid == minus_one_ptid. | |
3310 | ||
506f5c41 TV |
3311 | 2018-07-26 Tom de Vries <[email protected]> |
3312 | ||
3313 | * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or | |
3314 | DW_AT_count can't be translated to a dynamic prop. | |
3315 | ||
16f808ec TV |
3316 | 2018-07-25 Tom de Vries <[email protected]> |
3317 | ||
3318 | * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in | |
3319 | try/catch. | |
3320 | ||
d7154a8d JV |
3321 | 2018-07-25 Jan Vrany <[email protected]> |
3322 | ||
3323 | * breakpoint.c (enable_disable_bp_num_loc): Notify observers. | |
3324 | ||
a45389f6 JB |
3325 | 2018-07-25 Joel Brobecker <[email protected]> |
3326 | ||
3327 | * MAINTAINERS (Global Maintainers): Add Tom Tromey. | |
3328 | ||
380618d6 KS |
3329 | 2018-07-24 Keith Seitz <[email protected] |
3330 | ||
3331 | PR symtab/23010 | |
3332 | * dwarf2read.c (dw2_add_symbol_to_list): New function. | |
3333 | (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list | |
3334 | instead of add_symbol_to_list. | |
3335 | (read_file_scope): Call prepare_one_comp_unit before reading | |
3336 | any other DIEs. | |
3337 | ||
4b17aefe SM |
3338 | 2018-07-24 Simon Marchi <[email protected]> |
3339 | ||
3340 | * common/scoped_mmap.h (class scoped_mmap): Fix indentation. | |
3341 | ||
29d17e47 TT |
3342 | 2018-07-24 Tom Tromey <[email protected]> |
3343 | ||
3344 | * utils.c (malloc, realloc, free): Don't declare. | |
3345 | * configure, config.in: Rebuild. | |
3346 | * configure.ac: Don't check for declarations of free, malloc, or | |
3347 | realloc. | |
3348 | ||
cf4088a9 SM |
3349 | 2018-07-22 Simon Marchi <[email protected]> |
3350 | ||
3351 | * aarch64-linux-nat.c | |
3352 | (aarch64_linux_nat_target::stopped_data_address): Remove unused | |
3353 | variable. | |
3354 | * arm-linux-nat.c (fetch_regs): Likewise. | |
3355 | (store_regs): Likewise. | |
3356 | (fetch_vfp_regs): Likewise. | |
3357 | (store_vfp_regs): Likewise. | |
3358 | (arm_linux_nat_target::insert_hw_breakpoint): Likewise. | |
3359 | (arm_linux_nat_target::remove_hw_breakpoint): Likewise. | |
3360 | (arm_linux_nat_target::insert_watchpoint): Likewise. | |
3361 | (arm_linux_nat_target::remove_watchpoint): Likewise. | |
3362 | * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint): | |
3363 | Likewise. | |
3364 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): | |
3365 | Likewise. | |
3366 | * ppc-linux-nat.c (fetch_register): Likewise. | |
3367 | (fetch_all_gp_regs): Likewise. | |
3368 | (fetch_ppc_registers): Likewise. | |
3369 | (store_all_gp_regs): Likewise. | |
3370 | (store_ppc_registers): Likewise. | |
3371 | (hwdebug_insert_point): Likewise. | |
3372 | (can_use_watchpoint_cond_accel): Likewise. | |
3373 | * remote-sim.c (gdb_os_write_stdout): Likewise. | |
3374 | ||
a0de763e TT |
3375 | 2018-07-22 Simon Marchi <[email protected]> |
3376 | Tom Tromey <[email protected]> | |
3377 | ||
3378 | * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special | |
3379 | test for it. | |
3380 | * configure: Rebuild. | |
3381 | ||
3b20124b TT |
3382 | 2018-07-22 Tom Tromey <[email protected]> |
3383 | ||
3384 | * regformats/regdat.sh: Define xmltarget_${name} inside | |
3385 | #ifndef IN_PROCESS_AGENT. | |
3386 | ||
8c8807f4 TT |
3387 | 2018-07-22 Tom Tromey <[email protected]> |
3388 | ||
3389 | * value.c (value_fetch_lazy_bitfield): Remove unused variable. | |
3390 | ||
c486b610 TT |
3391 | 2018-07-22 Tom Tromey <[email protected]> |
3392 | ||
3393 | * symfile.c (reread_symbols): Notify iter, not objfile. | |
3394 | ||
494f80a9 TT |
3395 | 2018-07-22 Tom Tromey <[email protected]> |
3396 | ||
3397 | * ravenscar-thread.c (ravenscar_thread_target::store_registers): | |
3398 | Use arch_ops. | |
3399 | (ravenscar_thread_target::prepare_to_store): Likewise. | |
3400 | ||
c51f6a54 TT |
3401 | 2018-07-22 Tom Tromey <[email protected]> |
3402 | ||
3403 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove | |
3404 | unused variable. Call value_fetch_lazy when needed. | |
3405 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): | |
3406 | Remove unused variable. Call value_fetch_lazy when needed. | |
3407 | ||
374fd1fd TT |
3408 | 2018-07-22 Tom Tromey <[email protected]> |
3409 | ||
3410 | * m32c-tdep.c (mark_dma): Return void. | |
3411 | (make_regs): Remove unused declarations. | |
3412 | ||
d5e9a511 TT |
3413 | 2018-07-22 Tom Tromey <[email protected]> |
3414 | ||
3415 | * guile/scm-cmd.c (gdbscm_dont_repeat): Call | |
3416 | cmdscm_get_valid_command_smob_arg_unsafe for effect. | |
3417 | * guile/scm-block.c (gdbscm_make_block_syms_iter): Call | |
3418 | bkscm_get_valid_block_smob_arg_unsafe for effect. | |
3419 | ||
996d693a TT |
3420 | 2018-07-22 Tom Tromey <[email protected]> |
3421 | ||
3422 | * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not | |
3423 | value_type. | |
3424 | ||
15766370 TT |
3425 | 2018-07-22 Tom Tromey <[email protected]> |
3426 | ||
3427 | * windows-nat.c (saved_context): Conditionally define. | |
3428 | * remote.c (remote_target::remote_btrace_maybe_reopen): | |
3429 | Conditionally declare "warned". | |
3430 | * inflow.c (sigquit_ours): Conditionally define. | |
3431 | (new_tty): Move "tty" declaration inside #if. | |
3432 | * guile/guile.c (guile_datadir): Conditionally define. | |
3433 | * charset.c (set_be_le_names): Move some declarations inside #if. | |
3434 | * btrace.c (parse_xml_btrace): Move "errcode" declaration inside | |
3435 | #if. | |
3436 | (parse_xml_btrace_conf): Likewise. | |
3437 | ||
f4e80e13 TT |
3438 | 2018-07-22 Tom Tromey <[email protected]> |
3439 | ||
3440 | * spu-tdep.c (spu_get_overlay_table): Remove unused variable. | |
3441 | ||
8d49165d TT |
3442 | 2018-07-22 Tom Tromey <[email protected]> |
3443 | ||
3444 | * guile/scm-value.c (gdbscm_value_call): Remove unused variables. | |
3445 | * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow) | |
3446 | (vlscm_convert_typed_value_from_scheme): Remove unused variable. | |
3447 | * buildsym-legacy.c (get_macro_table): Remove unused variable. | |
3448 | * stack.c (frame_apply_level_command): Remove unused variable. | |
3449 | * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable. | |
3450 | * sparc64-tdep.c (adi_examine_command): Remove unused variable. | |
3451 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove | |
3452 | unused variable. | |
3453 | * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable. | |
3454 | * mep-tdep.c (mep_push_dummy_call): Remove unused variable. | |
3455 | * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused | |
3456 | variable. | |
3457 | * amd64-tdep.c (amd64_supply_xsave): Remove unused variable. | |
3458 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused | |
3459 | variable. | |
3460 | * breakpoint.c (check_no_tracepoint_commands, update_watchpoint): | |
3461 | Remove unused variable. | |
3462 | * cli/cli-script.c (recurse_read_control_structure): Remove unused | |
3463 | variable. | |
3464 | * common/tdesc.c (print_xml_feature::visit): Remove unused | |
3465 | variable. | |
3466 | * compile/compile-object-load.c (store_regs): Remove unused | |
3467 | variables. | |
3468 | * complaints.c (clear_complaints): Remove unused variable. | |
3469 | * corelow.c (core_target_open): Remove unused variable. | |
3470 | * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused | |
3471 | variable. | |
3472 | * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused | |
3473 | variable. | |
3474 | * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused | |
3475 | variable. | |
3476 | * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused | |
3477 | variable. | |
3478 | * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused | |
3479 | variable. | |
3480 | * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused | |
3481 | variable. | |
3482 | * ia64-tdep.c (examine_prologue): Remove unused variable. | |
3483 | * infcall.c (run_inferior_call): Remove unused variable. | |
3484 | * inferior.c (exit_inferior): Remove unused variable. | |
3485 | * infrun.c (infrun_thread_ptid_changed): Remove unused variable. | |
3486 | * linespec.c (decode_line_2): Remove unused variable. | |
3487 | * linux-nat.c (super_close): Remove. | |
3488 | * linux-tdep.c (linux_info_proc): Remove unused variable. | |
3489 | * mi/mi-main.c (mi_execute_command): Remove unused variable. | |
3490 | * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache): | |
3491 | Remove unused variable. | |
3492 | * parse.c (find_minsym_type_and_address): Remove unused variable. | |
3493 | * printcmd.c (info_symbol_command, printf_floating): Remove unused | |
3494 | variable. | |
3495 | * python/py-breakpoint.c (bppy_set_commands): Remove unused | |
3496 | variable. | |
3497 | * python/py-unwind.c (unwind_infopy_dealloc): Remove unused | |
3498 | variables. | |
3499 | * record-btrace.c (record_btrace_target::store_registers): Remove | |
3500 | unused variable. | |
3501 | (cmd_show_record_btrace_cpu): Remove unused variable. | |
3502 | * riscv-tdep.c (riscv_register_reggroup_p) | |
3503 | (riscv_push_dummy_call, riscv_return_value): Remove unused | |
3504 | variable. | |
3505 | * rust-exp.y (literal): Remove unused variable. | |
3506 | * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove | |
3507 | unused variable. | |
3508 | <STRUCTOP_ANONYMOUS>: Likewise. | |
3509 | * s390-linux-tdep.c (s390_linux_init_abi_31) | |
3510 | (s390_linux_init_abi_64): Remove unused variable. | |
3511 | * ser-ming2.c (ser_windows_read_prim, pipe_select_thread) | |
3512 | (file_select_thread, net_windows_open, _initialize_ser_windows): | |
3513 | Remove unused variables. | |
3514 | * symtab.c (find_pc_sect_line): Remove unused variable. | |
3515 | * target-memory.c (compute_garbled_blocks): Remove unused | |
3516 | variable. | |
3517 | (target_write_memory_blocks): Remove unused variable. | |
3518 | * target.c (target_stack::unpush): Remove unused variables. | |
3519 | * tracepoint.c (start_tracing, all_tracepoint_actions) | |
3520 | (merge_uploaded_trace_state_variables) | |
3521 | (print_one_static_tracepoint_marker): Remove unused variable. | |
3522 | * unittests/basic_string_view/element_access/char/1.cc (test01): | |
3523 | Remove unused variable. | |
3524 | * windows-nat.c (windows_continue, windows_add_all_dlls) | |
3525 | (do_initial_windows_stuff, windows_nat_target::create_inferior): | |
3526 | Remove unused variables. | |
3527 | ||
17cbafdb SM |
3528 | 2018-07-21 Simon Marchi <[email protected]> |
3529 | ||
3530 | * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and | |
3531 | attr_profile in HAVE_ELF. | |
3532 | * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in | |
3533 | HAVE_ELF. | |
3534 | ||
0ee6c332 SM |
3535 | 2018-07-20 Simon Marchi <[email protected]> |
3536 | ||
3537 | * frame.c (frame_register_unwind): Change parameter name. | |
3538 | (frame_unwind_register): Likewise. | |
3539 | (frame_unwind_register_value): Likewise. | |
3540 | (frame_unwind_register_signed): Likewise. | |
3541 | (frame_unwind_register_unsigned): Likewise. | |
3542 | * frame.h (frame_register_unwind): Likewise. | |
3543 | (frame_unwind_register): Likewise. | |
3544 | (frame_unwind_register_value): Likewise. | |
3545 | (frame_unwind_register_signed): Likewise. | |
3546 | (frame_unwind_register_unsigned): Likewise. | |
3547 | (frame_unwind_arch): Likewise. | |
3548 | ||
e2e31f10 MR |
3549 | 2018-07-20 Maciej W. Rozycki <[email protected]> |
3550 | ||
3551 | * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV | |
3552 | ISA maintenance. | |
3553 | ||
2d389915 MR |
3554 | 2018-07-20 Maciej W. Rozycki <[email protected]> |
3555 | ||
3556 | * mips-linux-nat.c (mips_linux_nat_target::read_description): | |
3557 | Call `get_ptrace_pid' rather than extracting the ptrace PID by | |
3558 | hand. | |
3559 | ||
cbb09508 KS |
3560 | 2018-07-20 Keith Seitz <[email protected]> |
3561 | ||
3562 | * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles, | |
3563 | m_main_subfile, m_comp_dir, m_producer, m_debugformat, | |
3564 | m_compunit_symtab, m_language>: Add "m_" prefix. | |
3565 | Update all uses. | |
3566 | * buildsym.c: Update all uses. | |
3567 | ||
bfe2e011 TT |
3568 | 2018-07-20 Tom Tromey <[email protected]> |
3569 | ||
3570 | * buildsym-legacy.h (record_line): Don't use record_line_ftype. | |
3571 | * buildsym.h (record_line_ftype): Remove typedef. | |
3572 | ||
0e6f3061 TT |
3573 | 2018-07-20 Tom Tromey <[email protected]> |
3574 | ||
3575 | * buildsym-legacy.h (augment_type_symtab): Don't declare. | |
3576 | (end_expandable_symtab): Likewise. | |
3577 | (end_symtab_get_static_block): Likewise. | |
3578 | (end_symtab_from_static_block): Likewise. | |
3579 | * buildsym-legacy.c (augment_type_symtab): Remove. | |
3580 | (end_expandable_symtab): Remove. | |
3581 | (end_symtab_get_static_block): Remove. | |
3582 | (end_symtab_from_static_block): Remove. | |
3583 | ||
804d2729 TT |
3584 | 2018-07-20 Tom Tromey <[email protected]> |
3585 | ||
3586 | * dwarf2read.c: Include buildsym.h. | |
3587 | (struct dwarf2_cu) <builder>: New method. | |
3588 | (fixup_go_packaging): Update. | |
3589 | (process_full_comp_unit, process_full_type_unit): Update. Don't | |
3590 | use scoped_free_pendings. | |
3591 | (using_directives): Add "cu" parameter, remove "language". | |
3592 | (read_import_statement, setup_type_unit_groups, ) | |
3593 | (read_func_scope, read_lexical_block_scope) | |
3594 | (dwarf2_record_block_ranges, read_namespace): Update. | |
3595 | (lnp_state_machine::lnp_state_machine): Add cu parameter. | |
3596 | (lnp_state_machine::handle_end_sequence): Update. | |
3597 | (class lnp_state_machine) <m_cu>: New member. | |
3598 | <m_record_line_callback>: Remove. | |
3599 | <m_currently_recording_lines>: New member. | |
3600 | (lnp_state_machine::handle_set_file): Update. | |
3601 | (noop_record_line): Remove. | |
3602 | (dwarf_record_line_p): Add cu parameter. | |
3603 | (dwarf_record_line_1, dwarf_finish_line): Likewise. | |
3604 | (lnp_state_machine::record_line) | |
3605 | (lnp_state_machine::lnp_state_machine) | |
3606 | (lnp_state_machine::check_line_address, dwarf_decode_lines_1) | |
3607 | (dwarf_decode_lines): Update. | |
3608 | (dwarf2_start_subfile): Add cu parameter. | |
3609 | (dwarf2_start_symtab, new_symbol): Update. | |
3610 | (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter. | |
3611 | Remove dwarf2_per_objfile parameter. | |
3612 | (dwarf_decode_macros): Update. | |
3613 | ||
80e649fc TT |
3614 | 2018-07-20 Tom Tromey <[email protected]> |
3615 | ||
3616 | * stabsread.c (define_symbol): Update. | |
3617 | * buildsym-legacy.h (get_buildsym_compunit): Declare. | |
3618 | * dwarf2read.c (new_symbol): Update. | |
3619 | * cp-support.h (cp_scan_for_anonymous_namespaces): Update. | |
3620 | * cp-namespace.c: Include buildsym.h. | |
3621 | (cp_scan_for_anonymous_namespaces): Add "compunit" parameter. | |
3622 | * buildsym-legacy.c (get_buildsym_compunit): New function. | |
3623 | ||
0baae8db TT |
3624 | 2018-07-20 Tom Tromey <[email protected]> |
3625 | ||
3626 | * xcoffread.c: Include buildsym-legacy.h. | |
3627 | * windows-nat.c: Include buildsym-legacy.h. | |
3628 | * stabsread.c: Include buildsym-legacy.h. | |
3629 | * mdebugread.c: Include buildsym-legacy.h. | |
3630 | * buildsym-legacy.h: New file. | |
3631 | * buildsym-legacy.c: New file, from buildsym.c. | |
3632 | * go32-nat.c: Include buildsym-legacy.h. | |
3633 | * dwarf2read.c: Include buildsym-legacy.h. | |
3634 | * dbxread.c: Include buildsym-legacy.h. | |
3635 | * cp-namespace.c: Include buildsym-legacy.h. | |
3636 | * coffread.c: Include buildsym-legacy.h. | |
3637 | * buildsym.h: Move some contents to buildsym-legacy.h. | |
3638 | * buildsym.c: Include buildsym-legacy.h. Move many functions to | |
3639 | buildsym-legacy.c. | |
3640 | * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h. | |
3641 | ||
ab209f6f TT |
3642 | 2018-07-20 Tom Tromey <[email protected]> |
3643 | ||
3644 | * buildsym.h (struct buildsym_compunit): Move from buildsym.c. | |
3645 | * buildsym.c (struct buildsym_compunit): Move to buildsym.h. | |
3646 | (buildsym_compunit::buildsym_compunit) | |
3647 | (buildsym_compunit::~buildsym_compunit) | |
3648 | (buildsym_compunit::get_macro_table): Define. | |
3649 | ||
74c72eac TT |
3650 | 2018-07-20 Tom Tromey <[email protected]> |
3651 | ||
3652 | * buildsym.c (reset_symtab_globals): Remove. | |
3653 | (buildsym_compunit::end_symtab_from_static_block): Update. | |
3654 | (buildsym_compunit::augment_type_symtab): Update. | |
3655 | (end_symtab_from_static_block): Call free_buildsym_compunit. | |
3656 | (augment_type_symtab, end_symtab, end_expandable_symtab): | |
3657 | Likewise. | |
3658 | ||
da6580e5 TT |
3659 | 2018-07-20 Tom Tromey <[email protected]> |
3660 | ||
3661 | * arch-utils.c: Do not include buildsym.h. | |
3662 | * mipsread.c: Do not include buildsym.h. | |
3663 | * machoread.c: Do not include buildsym.h. | |
3664 | * elfread.c: Do not include buildsym.h. | |
3665 | ||
4a2125f5 TT |
3666 | 2018-07-20 Tom Tromey <[email protected]> |
3667 | ||
3668 | * buildsym.c (buildsym_compunit::buildsym_compunit): Do more | |
3669 | initialization. | |
3670 | (buildsym_compunit): Add new constructor. | |
3671 | (struct buildsym_compunit) <get_last_source_file, finish_block, | |
3672 | record_block_range, start_subfile, patch_subfile_names, | |
3673 | push_subfile, pop_subfile, record_line, get_compunit_symtab, | |
3674 | set_last_source_start_addr, get_last_source_start_addr, | |
3675 | get_local_using_directives, set_local_using_directives, | |
3676 | get_global_using_directives, outermost_context_p, | |
3677 | get_current_context_stack, get_context_stack_depth, | |
3678 | get_current_subfile, get_local_symbols, get_file_symbols, | |
3679 | get_global_symbols, record_debugformat, record_producer, | |
3680 | push_context, pop_context, end_symtab_get_static_block, | |
3681 | end_symtab_from_static_block, end_symtab, end_expandable_symtab>: | |
3682 | New public methods. | |
3683 | <record_pending_block, finish_block_internal, make_blockvector, | |
3684 | watch_main_source_file_lossage, end_symtab_with_blockvector>: New | |
3685 | private methods. | |
3686 | Update all users. | |
3687 | ||
3688 | 2018-05-22 Tom Tromey <[email protected]> | |
3689 | ||
3690 | * buildsym.c (record_pending_block): Move earlier. Remove objfile | |
3691 | parameter. | |
3692 | (finish_block_internal): Update. | |
3693 | ||
6b213a47 TT |
3694 | 2018-07-20 Tom Tromey <[email protected]> |
3695 | ||
3696 | * buildsym.c (record_pending_block): Move earlier. Remove objfile | |
3697 | parameter. | |
3698 | (finish_block_internal): Update. | |
3699 | ||
b80a981d TT |
3700 | 2018-07-20 Tom Tromey <[email protected]> |
3701 | ||
3702 | * buildsym.h (EXTERN): Don't define or undef. | |
3703 | * buildsym.c (EXTERN): Don't define. | |
3704 | ||
ddb70602 TT |
3705 | 2018-07-20 Tom Tromey <[email protected]> |
3706 | ||
3707 | * buildsym.c: Remove TODO comment. | |
3708 | ||
b37dd3bc TT |
3709 | 2018-07-20 Tom Tromey <[email protected]> |
3710 | ||
3711 | * coffread.c (coff_symtab_read): Update. | |
3712 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
3713 | (xcoff_new_init): Update. | |
3714 | * mipsread.c (mipscoff_new_init): Update. | |
3715 | * mdebugread.c (mdebug_build_psymtabs): Update. | |
3716 | * elfread.c (elf_new_init): Update. | |
3717 | * dwarf2read.c (process_full_comp_unit, process_full_type_unit): | |
3718 | Update. | |
3719 | * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1) | |
3720 | (coffstab_build_psymtabs, elfstab_build_psymtabs) | |
3721 | (stabsect_build_psymtabs): Update. | |
3722 | * buildsym.h (buildsym_init): Don't declare. | |
3723 | * buildsym.c: Update comment. | |
3724 | (prepare_for_building): Remove. | |
3725 | (start_symtab, restart_symtab): Update. | |
3726 | (reset_symtab_globals): Update comment. | |
3727 | (buildsym_init): Remove. | |
3728 | ||
e148f09d TT |
3729 | 2018-07-20 Tom Tromey <[email protected]> |
3730 | ||
3731 | * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update. | |
3732 | * stabsread.c (patch_block_stabs, define_symbol, read_type) | |
3733 | (read_enum_type, common_block_start, common_block_end) | |
3734 | (cleanup_undefined_types_1, finish_global_stabs): Update. | |
3735 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
3736 | * dwarf2read.c (fixup_go_packaging, read_func_scope) | |
3737 | (read_lexical_block_scope, new_symbol): Update. | |
3738 | * dbxread.c (process_one_symbol): Update. | |
3739 | * coffread.c (coff_symtab_read, process_coff_symbol) | |
3740 | (coff_read_enum_type): Update. | |
3741 | * buildsym.h (file_symbols, global_symbols, local_symbols): Don't | |
3742 | declare. | |
3743 | (get_local_symbols, get_file_symbols, get_global_symbols): New | |
3744 | functions. | |
3745 | * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and | |
3746 | m_global_symbols. | |
3747 | <m_file_symbols, m_local_symbols, m_global_symbols>: New members. | |
3748 | (~scoped_free_pendings): Update. | |
3749 | (finish_block, prepare_for_building, reset_symtab_globals) | |
3750 | (end_symtab_get_static_block, end_symtab_with_blockvector) | |
3751 | (augment_type_symtab, push_context): Update. | |
3752 | (get_local_symbols, get_file_symbols, get_global_symbols): New | |
3753 | functions. | |
3754 | (buildsym_init): Update. | |
3755 | ||
93b8bea4 TT |
3756 | 2018-07-20 Tom Tromey <[email protected]> |
3757 | ||
3758 | * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope. | |
3759 | (process_full_type_unit): Likewise. | |
3760 | (dwarf2_start_symtab): Set list_in_scope. | |
3761 | ||
f62f6af5 TT |
3762 | 2018-07-20 Tom Tromey <[email protected]> |
3763 | ||
3764 | * dwarf2read.c (process_psymtab_comp_unit_reader) | |
3765 | (build_type_psymtabs_reader): Do not set list_in_scope. | |
3766 | ||
1d376700 TT |
3767 | 2018-07-20 Tom Tromey <[email protected]> |
3768 | ||
3769 | * buildsym.c (free_pendings): Remove. | |
3770 | (add_symbol_to_list, scoped_free_pendings) | |
3771 | (finish_block_internal, buildsym_init): Update. | |
3772 | ||
c233e9c6 TT |
3773 | 2018-07-20 Tom Tromey <[email protected]> |
3774 | ||
3775 | * xcoffread.c (read_xcoff_symtab): Update. | |
3776 | * dwarf2read.c (read_func_scope, read_lexical_block_scope): | |
3777 | Update. | |
3778 | * dbxread.c (process_one_symbol): Update. | |
3779 | * coffread.c (coff_symtab_read): Update. | |
3780 | * buildsym.h (finish_block): Update. | |
3781 | * buildsym.c (finish_block): Remove "listhead" argument. | |
3782 | (end_symtab_get_static_block): Update. | |
3783 | ||
5ac04550 TT |
3784 | 2018-07-20 Tom Tromey <[email protected]> |
3785 | ||
3786 | * buildsym.h (class scoped_free_pendings): Remove constructor. | |
3787 | * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New | |
3788 | method. | |
3789 | <m_pending_block_obstack, m_pending_blocks>: New members. | |
3790 | (pending_block_obstack, pending_blocks): Remove. | |
3791 | (scoped_free_pendings::scoped_free_pendings): Default. | |
3792 | (~scoped_free_pendings): Update. | |
3793 | (free_pending_blocks): Remove. | |
3794 | (finish_block_internal, record_pending_block, make_blockvector) | |
3795 | (end_symtab_get_static_block, augment_type_symtab, push_context) | |
3796 | (buildsym_init): Update. | |
3797 | ||
7ea05a7b TT |
3798 | 2018-07-20 Tom Tromey <[email protected]> |
3799 | ||
3800 | * buildsym.c (struct buildsym_compunit) <m_pending_addrmap, | |
3801 | m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New | |
3802 | members. | |
3803 | (pending_addrmap, pending_addrmap_obstack) | |
3804 | (pending_addrmap_interesting): Remove. | |
3805 | (scoped_free_pendings, record_block_range, make_blockvector) | |
3806 | (prepare_for_building, reset_symtab_globals, buildsym_init): | |
3807 | Update. | |
3808 | ||
3c65e5b3 TT |
3809 | 2018-07-20 Tom Tromey <[email protected]> |
3810 | ||
3811 | * xcoffread.c (process_linenos): Update. | |
3812 | * stabsread.c (define_symbol, read_type, read_enum_type): Update. | |
3813 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
3814 | * dwarf2read.c (setup_type_unit_groups) | |
3815 | (lnp_state_machine::handle_set_file, dwarf_record_line_p) | |
3816 | (lnp_state_machine::record_line, dwarf_decode_lines): Update. | |
3817 | * dbxread.c (process_one_symbol): Update. | |
3818 | * coffread.c (coff_symtab_read, enter_linenos) | |
3819 | (process_coff_symbol): Update. | |
3820 | * buildsym.h (current_subfile): Don't declare. | |
3821 | (get_current_subfile): Declare. | |
3822 | * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New | |
3823 | member. | |
3824 | (start_subfile, free_buildsym_compunit, push_subfile) | |
3825 | (prepare_for_building, start_symtab): Update. | |
3826 | (get_current_subfile): New function. | |
3827 | ||
a60f3166 TT |
3828 | 2018-07-20 Tom Tromey <[email protected]> |
3829 | ||
3830 | * coffread.c (coff_symtab_read): Update. | |
3831 | * xcoffread.c (read_xcoff_symtab): Update. | |
3832 | * dwarf2read.c (new_symbol): Update. | |
3833 | (read_func_scope, read_lexical_block_scope): Update. | |
3834 | * dbxread.c (process_one_symbol): Update. | |
3835 | * buildsym.h (context_stack, context_stack_depth): Don't declare. | |
3836 | (outermost_context_p): Remove macro. | |
3837 | (outermost_context_p, get_current_context_stack) | |
3838 | (get_context_stack_depth): Declare. | |
3839 | (pop_context): Return struct context_stack. | |
3840 | * buildsym.c (struct buildsym_compunit) <m_context_stack: New | |
3841 | member. | |
3842 | (context_stack_size): Remove. | |
3843 | (INITIAL_CONTEXT_STACK_SIZE): Remove. | |
3844 | (prepare_for_building, end_symtab_get_static_block) | |
3845 | (augment_type_symtab, push_context): Update. | |
3846 | (pop_context): Return struct context_stack. | |
3847 | (outermost_context_p, get_current_context_stack) | |
3848 | (get_context_stack_depth): New functions. | |
3849 | (buildsym_init): Update. | |
3850 | ||
56ba65a0 TT |
3851 | 2018-07-20 Tom Tromey <[email protected]> |
3852 | ||
3853 | * rust-exp.y: Now a pure parser. Update all rules. | |
3854 | (%union): Move earlier. | |
3855 | (current_parser, work_obstack): Remove globals. | |
3856 | (rust_parser, ~rust_parser): Update. | |
3857 | (class rust_parser) <copy_name, concat3, crate_name, super_name, | |
3858 | lex_character, lex_number, lex_string, lex_identifier, | |
3859 | rust_lookup_type, convert_params_to_types, convert_ast_to_type, | |
3860 | convert_name, convert_params_to_expression, | |
3861 | convert_ast_to_expression, ast_basic_type, ast_operation, | |
3862 | ast_compound_assignment, rust_op, ast_literal, ast_dliteral, | |
3863 | ast_structop, ast_structop_anonymous, ast_unary, ast_cast, | |
3864 | ast_call_ish, ast_path, ast_string, ast_struct, ast_range, | |
3865 | ast_array_type, ast_slice_type, ast_reference_type, | |
3866 | ast_pointer_type, ast_function_type, ast_tuple_type>: New methods. | |
3867 | (rust_parse): Update. | |
3868 | (rustyyerror, rustyylex): Add parser parameter. | |
3869 | (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test) | |
3870 | (rust_lex_stringish_test, rust_lex_test_sequence) | |
3871 | (rust_lex_test_trailing_dot, rust_lex_test_completion) | |
3872 | (rust_lex_test_push_back, rust_lex_tests): Update. | |
3873 | ||
4c693332 PA |
3874 | 2018-07-19 Pedro Alves <[email protected]> |
3875 | ||
3876 | * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a | |
3877 | gdb::unique_xmalloc_ptr. | |
3878 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): | |
3879 | Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr. | |
3880 | * guile/scm-exception.c (gdbscm_exception_message_to_string): Use | |
3881 | copy-initialization. | |
3882 | * guile/scm-pretty-print.c (ppscm_print_children): Use | |
3883 | gdb::unique_xmalloc_ptr instead of cleanups. | |
3884 | (gdbscm_apply_val_pretty_printer): Remove cleanups. | |
3885 | * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a | |
3886 | gdb::unique_xmalloc_ptr. | |
3887 | * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): | |
3888 | Adjust to use gdb::unique_xmalloc_ptr. | |
3889 | * guile/scm-utils.c (extract_arg): Adjust. | |
3890 | * guile/scm-value.c (gdbscm_value_field): Adjust to use | |
3891 | gdb::unique_xmalloc_ptr instead of a cleanup. | |
3892 | ||
4581dc82 TT |
3893 | 2018-07-19 Tom Tromey <[email protected]> |
3894 | ||
3895 | * utils.c (do_value_free_to_mark) | |
3896 | (make_cleanup_value_free_to_mark): Remove. | |
3897 | * utils.h (make_cleanup_value_free_to_mark): Remove. | |
3898 | ||
43cc6c3a PA |
3899 | 2018-07-19 Pedro Alves <[email protected]> |
3900 | ||
3901 | * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a | |
3902 | forwarding reference. | |
3903 | ||
3a5f2a48 PA |
3904 | 2018-07-18 Pedro Alves <[email protected]> |
3905 | ||
3906 | * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use | |
3907 | gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a | |
3908 | cleanup. | |
3909 | ||
557e56be PA |
3910 | 2018-07-18 Pedro Alves <[email protected]> |
3911 | ||
3912 | * guile/guile-internal.h: Add comment about mixing GDB and Scheme | |
3913 | exceptions. | |
3914 | (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete. | |
3915 | (gdbscm_wrap): New. | |
3916 | * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree | |
3917 | directly instead of a cleanup. | |
3918 | * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ... | |
3919 | (vlscm_unop): ... this. Reimplement using gdbscm_wrap. | |
3920 | (vlscm_binop_gdbthrow): New, factored out from ... | |
3921 | (vlscm_binop): ... this. Reimplement using gdbscm_wrap. | |
3922 | (vlscm_rich_compare): Use gdbscm_wrap. | |
3923 | * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly | |
3924 | instead of a cleanup. | |
3925 | (gdbscm_lookup_global_symbol): Use xfree directly instead of a | |
3926 | cleanup. | |
3927 | * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): | |
3928 | Use xfree directly instead of a cleanup. | |
3929 | * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value): | |
3930 | Adjust to use gdbscm_wrap and scoped_value_mark. | |
3931 | (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap. | |
3932 | (gdbscm_value_address, gdbscm_value_dereference) | |
3933 | (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and | |
3934 | scoped_value_mark. | |
3935 | (gdbscm_value_dynamic_type): Use scoped_value_mark. | |
3936 | (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and | |
3937 | scoped_value_mark. | |
3938 | (gdbscm_value_subscript, gdbscm_value_call): Adjust to use | |
3939 | gdbscm_wrap and scoped_value_mark. | |
3940 | (gdbscm_value_to_string): Use xfree directly instead of a | |
3941 | cleanup. Move 'buffer' unique_ptr to TRY scope. | |
3942 | (gdbscm_value_to_lazy_string): Use xfree directly instead of a | |
3943 | cleanup. Move 'buffer' unique_ptr to TRY scope. Use | |
3944 | scoped_value_mark. | |
3945 | (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap. | |
3946 | (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and | |
3947 | scoped_value_mark. | |
3948 | (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use | |
3949 | gdbscm_wrap. | |
3950 | ||
42dc7699 TV |
3951 | 2018-07-18 Tom de Vries <[email protected]> |
3952 | ||
3953 | * findvar.c (default_read_var_value): Also resolve dynamic type for | |
3954 | LOC_OPTIMIZED_OUT vars. | |
3955 | ||
6592ceed MR |
3956 | 2018-07-18 Maciej W. Rozycki <[email protected]> |
3957 | ||
3958 | * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction | |
3959 | decoding. | |
3960 | ||
c6c6149a TT |
3961 | 2018-07-17 Tom Tromey <[email protected]> |
3962 | ||
3963 | * guile/scm-param.c (pascm_set_func, pascm_show_func) | |
3964 | (compute_enum_list, pascm_set_param_value_x) | |
3965 | (gdbscm_parameter_value): Update. | |
3966 | * guile/guile-internal.h (gdbscm_scm_to_string): Update. | |
3967 | (gdbscm_scm_to_host_string): Update. | |
3968 | * guile/scm-math.c (vlscm_convert_typed_value_from_scheme): | |
3969 | Update. | |
3970 | * guile/scm-cmd.c (cmdscm_add_completion): Update. | |
3971 | * guile/scm-pretty-print.c (ppscm_print_string_repr): Update. | |
3972 | * guile/scm-string.c (gdbscm_scm_to_string): Return | |
3973 | unique_xmalloc_ptr. | |
3974 | (gdbscm_scm_to_host_string): Likewise. | |
3975 | ||
a1a31cb8 TT |
3976 | 2018-07-17 Tom Tromey <[email protected]> |
3977 | ||
3978 | * guile/guile.c (gdbscm_eval_from_control_command): Update. | |
3979 | * guile/guile-internal.h (gdbscm_safe_eval_string): Update. | |
3980 | * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update. | |
3981 | * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return | |
3982 | unique_xmalloc_ptr. | |
3983 | ||
15bf3002 TT |
3984 | 2018-07-17 Tom Tromey <[email protected]> |
3985 | ||
3986 | * guile/scm-param.c (pascm_signal_setshow_error): Update. | |
3987 | * guile/guile-internal.h (gdbscm_exception_message_to_string): | |
3988 | Update. | |
3989 | * guile/scm-cmd.c (cmdscm_function): Update. | |
3990 | * guile/scm-pretty-print.c | |
3991 | (ppscm_print_exception_unless_memory_error): Update. | |
3992 | * guile/scm-exception.c (gdbscm_exception_message_to_string): | |
3993 | Return unique_xmalloc_ptr. | |
3994 | ||
7eb1a66c TT |
3995 | 2018-07-17 Tom Tromey <[email protected]> |
3996 | ||
3997 | * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception): | |
3998 | Use string_printf. | |
3999 | ||
ce73f310 JW |
4000 | 2018-07-17 Jim Wilson <[email protected]> |
4001 | ||
27724bad JW |
4002 | * riscv-tdep.c (riscv_has_feature): Delete comment that refers to |
4003 | set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always. | |
4004 | (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now | |
4005 | unecessary braces after EF_RISCV_RVC test. Delete call to | |
4006 | set_gdbarch_decr_pc_after_break. | |
4007 | ||
ce73f310 JW |
4008 | * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of |
4009 | RISCV_LAST_FP_REGNUM + 1. | |
4010 | (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM. | |
4011 | ||
056dec39 TT |
4012 | 2018-07-17 Tom Tromey <[email protected]> |
4013 | ||
4014 | * configure.ac: Remove --disable-gdbcli. | |
4015 | * configure: Rebuild. | |
4016 | * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS) | |
4017 | (SUBDIR_CLI_CFLAGS): Remove. | |
4018 | (SFILES): Use SUBDIR_CLI_SRCS. | |
4019 | (COMMON_OBS): Use SUBDIR_CLI_OBS. | |
4020 | ||
4735f0ed TT |
4021 | 2018-07-17 Tom Tromey <[email protected]> |
4022 | ||
4023 | PR gdb/18624: | |
4024 | * coffread.c (coff_symtab_read): Use scoped_free_pendings. | |
4025 | ||
117a0e99 JW |
4026 | 2018-07-16 Jim Wilson <[email protected]> |
4027 | ||
4028 | * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi. | |
4029 | ||
8a67aaa8 SM |
4030 | 2018-07-16 Simon Marchi <[email protected]> |
4031 | ||
4032 | * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused | |
4033 | variable. | |
4034 | (libunwind_frame_sniffer): Likewise. | |
4035 | (libunwind_frame_prev_register): Likewise. | |
4036 | (libunwind_sigtramp_frame_sniffer): Likewise. | |
4037 | * ia64-tdep.c (ia64_access_reg): Likewise. | |
4038 | (ia64_access_rse_reg): Likewise. | |
4039 | (ia64_libunwind_sigtramp_frame_this_id): Likewise. | |
4040 | * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise. | |
4041 | ||
ec74dcd8 SM |
4042 | 2018-07-16 Simon Marchi <[email protected]> |
4043 | ||
4044 | * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast. | |
4045 | ||
a700e753 SM |
4046 | 2018-07-16 Simon Marchi <[email protected]> |
4047 | ||
4048 | * remote-sim.c (gdbsim_target::close, | |
4049 | gdbsim_target::mourn_inferior): Remove unused variables. | |
4050 | ||
8b411ff8 SM |
4051 | 2018-07-16 Simon Marchi <[email protected]> |
4052 | ||
4053 | * ia64-tdep.c (ktab_buf): New global. | |
4054 | (getunwind_table): Return a gdb::optional<gdb::byte_vector>. | |
4055 | (get_kernel_table): Adjust. | |
4056 | ||
edb0470b TT |
4057 | 2018-07-16 Tom Tromey <[email protected]> |
4058 | ||
4059 | * xcoffread.c (read_xcoff_symtab): Use outermost_context_p. | |
4060 | * dwarf2read.c (using_directives, new_symbol): Use | |
4061 | outermost_context_p. | |
4062 | * dbxread.c (process_one_symbol): Use outermost_context_p. | |
4063 | * coffread.c (coff_symtab_read): Use outermost_context_p. | |
4064 | ||
6cccc9a8 TT |
4065 | 2018-07-16 Tom Tromey <[email protected]> |
4066 | ||
4067 | * dwarf2read.c (using_directives, read_func_scope) | |
4068 | (read_lexical_block_scope): Update. | |
4069 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. | |
4070 | * buildsym.h (local_using_directives, global_using_directives): | |
4071 | Don't declare. | |
4072 | (get_local_using_directives, set_local_using_directives) | |
4073 | (get_global_using_directives): Declare. | |
4074 | * buildsym.c (struct buildsym_compunit) <m_local_using_directives, | |
4075 | m_global_using_directives>: New members. | |
4076 | (finish_block_internal, prepare_for_building) | |
4077 | (reset_symtab_globals, end_symtab_get_static_block) | |
4078 | (push_context): Update. | |
4079 | (get_local_using_directives, set_local_using_directives) | |
4080 | (get_global_using_directives): New functions. | |
4081 | (buildsym_init): Update. | |
4082 | ||
652788a7 TT |
4083 | 2018-07-16 Tom Tromey <[email protected]> |
4084 | ||
4085 | * xcoffread.c (xcoff_initial_scan): Don't call | |
4086 | free_pending_blocks. | |
4087 | * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks. | |
4088 | * buildsym.h (class scoped_free_pendings): Add constructor. | |
4089 | (free_pending_blocks): Don't declare. | |
4090 | * buildsym.c (scoped_free_pendings::scoped_free_pendings): New. | |
4091 | (free_pending_blocks): Now static. | |
4092 | ||
8419ee53 TT |
4093 | 2018-07-16 Tom Tromey <[email protected]> |
4094 | ||
4095 | * buildsym.h (push_subfile, pop_subfile): Update declarations. | |
4096 | * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New | |
4097 | member. | |
4098 | (struct subfile_stack): Remove. | |
4099 | (subfile_stack): Remove. | |
4100 | (push_subfile, pop_subfile, buildsym_init): Update. | |
4101 | ||
ccdac490 TT |
4102 | 2018-07-16 Tom Tromey <[email protected]> |
4103 | ||
4104 | * buildsym.c (push_subfile): Use gdb_assert. | |
4105 | (pop_subfile): Use gdb_assert. | |
4106 | ||
43130d6f TT |
4107 | 2018-07-16 Tom Tromey <[email protected]> |
4108 | ||
4109 | * buildsym.h (merge_symbol_lists): Remove. | |
4110 | * buildsym.c (merge_symbol_lists): Remove. | |
4111 | ||
77d6f1aa TT |
4112 | 2018-07-16 Tom Tromey <[email protected]> |
4113 | ||
4114 | * stabsread.c (scan_file_globals): Update comment. | |
4115 | * stabsread.h (scan_file_globals): Move from buildsym.h. | |
4116 | * buildsym.h (scan_file_globals): Move to stabsread.h. | |
4117 | ||
2c722d18 TT |
4118 | 2018-07-16 Tom Tromey <[email protected]> |
4119 | ||
4120 | * xcoffread.c (xcoff_new_init): Update. | |
4121 | * mipsread.c (mipscoff_new_init): Update. | |
4122 | * mdebugread.c (mdebug_build_psymtabs): Update. | |
4123 | * elfread.c (elf_new_init): Update. | |
4124 | * dbxread.c (dbx_new_init, coffstab_build_psymtabs) | |
4125 | (elfstab_build_psymtabs, stabsect_build_psymtabs): Update. | |
4126 | * buildsym.h (buildsym_new_init): Don't declare. | |
4127 | * buildsym.c (buildsym_new_init): Remove. | |
4128 | ||
5985ac61 TT |
4129 | 2018-07-16 Tom Tromey <[email protected]> |
4130 | ||
4131 | * stabsread.h (within_function): Move from buildsym.h. | |
4132 | * stabsread.c (start_stabs): Clear within_function. | |
4133 | * coffread.c (coff_start_symtab): Clear within_function. | |
4134 | * buildsym.h (within_function): Move to stabsread.h. | |
4135 | * buildsym.c (prepare_for_building): Update. | |
4136 | ||
6b84eeb2 TT |
4137 | 2018-07-16 Tom Tromey <[email protected]> |
4138 | ||
4139 | * stabsread.h (processing_gcc_compilation): Move from buildsym.h. | |
4140 | * dwarf2read.c (dwarf2_start_symtab): Don't set | |
4141 | processing_gcc_compilation. | |
4142 | * buildsym.h (processing_gcc_compilation): Move to stabsread.h. | |
4143 | ||
2150c3ef TT |
4144 | 2018-07-16 Tom Tromey <[email protected]> |
4145 | ||
4146 | * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text) | |
4147 | (next_symbol_text_func): Move from buildsym.h. | |
4148 | * stabsread.c (hashname): Move from buildsym.c. | |
4149 | * buildsym.h (HASHSIZE, symnum, next_symbol_text) | |
4150 | (next_symbol_text_func, hashname): Move to stabsread.h. | |
4151 | * buildsym.c: Don't include bcache.h | |
4152 | (hashname): Move to stasbread.c. | |
4153 | ||
0ec44fc0 TT |
4154 | 2018-07-16 Tom Tromey <[email protected]> |
4155 | ||
4156 | * buildsym.h (context_stack_size): Don't declare. | |
4157 | * buildsym.c (context_stack_size): New global. | |
4158 | ||
81cc346d TT |
4159 | 2018-07-16 Tom Tromey <[email protected]> |
4160 | ||
4161 | * dbxread.c (processing_acc_compilation): New global. | |
4162 | * buildsym.h (processing_acc_compilation): Don't declare. | |
4163 | ||
2c99ee5c TT |
4164 | 2018-07-16 Tom Tromey <[email protected]> |
4165 | ||
4166 | * xcoffread.c (aix_process_linenos, complete_symtab): Update. | |
4167 | * dbxread.c (read_ofile_symtab): Update. | |
4168 | * coffread.c (coff_start_symtab, coff_end_symtab): Update. | |
4169 | * buildsym.h (last_source_start_addr): Remove. | |
4170 | (set_last_source_start_addr, get_last_source_start_addr): | |
4171 | Declare. | |
4172 | * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr | |
4173 | parameter. | |
4174 | (struct buildsym_compunit) <m_last_source_start_addr>: New | |
4175 | member. | |
4176 | (prepare_for_building): Remove start_addr parameter. | |
4177 | (start_symtab, restart_symtab, end_symtab_get_static_block) | |
4178 | (end_symtab_with_blockvector): Update. | |
4179 | (set_last_source_start_addr, get_last_source_start_addr): New | |
4180 | functions. | |
4181 | ||
530fedbc TT |
4182 | 2018-07-16 Tom Tromey <[email protected]> |
4183 | ||
4184 | * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New | |
4185 | member. | |
4186 | (have_line_numbers): Remove. | |
4187 | (record_line, prepare_for_building, end_symtab_get_static_block) | |
4188 | (augment_type_symtab): Update. | |
4189 | ||
6a976300 TT |
4190 | 2018-07-16 Tom Tromey <[email protected]> |
4191 | ||
4192 | * buildsym.c (~buildsym_compunit): Free the macro table. | |
4193 | (struct buildsym_compunit) <get_macro_table, release_macros>: New | |
4194 | methods. | |
4195 | <m_pending_macros>: New member. | |
4196 | (pending_macros): Remove. | |
4197 | (~scoped_free_pendings, get_macro_table, prepare_for_building) | |
4198 | (reset_symtab_globals, end_symtab_get_static_block) | |
4199 | (end_symtab_with_blockvector, augment_type_symtab) | |
4200 | (buildsym_init): Update. | |
4201 | ||
c0015d44 TT |
4202 | 2018-07-16 Tom Tromey <[email protected]> |
4203 | ||
4204 | * buildsym.c (buildsym_compunit::buildsym_compunit): Add name | |
4205 | parameter. | |
4206 | (buildsym_compunit::set_last_source_file): New method. | |
4207 | <m_last_source_file>: New member. | |
4208 | (prepare_for_building): Remove "name" parameter. | |
4209 | (start_symtab, restart_symtab, reset_symtab_globals): Update. | |
4210 | (last_source_file): Remove. | |
4211 | (set_last_source_file, get_last_source_file): Update. | |
4212 | ||
e62cca7c TT |
4213 | 2018-07-16 Tom Tromey <[email protected]> |
4214 | ||
4215 | * buildsym.c (prepare_for_building): Add assert. | |
4216 | ||
905eb0e2 TT |
4217 | 2018-07-16 Tom Tromey <[email protected]> |
4218 | ||
4219 | * buildsym.c (~buildsym_compunit): Update. | |
4220 | (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr. | |
4221 | (start_subfile, patch_subfile_names) | |
4222 | (end_symtab_with_blockvector): Update. | |
4223 | ||
b248663f TT |
4224 | 2018-07-16 Tom Tromey <[email protected]> |
4225 | ||
4226 | * buildsym.c (struct buildsym_compunit): Add constructor, | |
4227 | destructor, initializers. | |
4228 | (start_buildsym_compunit): Remove. | |
4229 | (free_buildsym_compunit): Use "delete". | |
4230 | (start_symtab, restart_symtab): Use "new". | |
4231 | ||
ff27d073 SM |
4232 | 2018-07-13 Simon Marchi <[email protected]> |
4233 | ||
4234 | * symfile.c (set_objfile_default_section_offset): Remove struct | |
4235 | keyword. | |
4236 | ||
6a15ecf5 SH |
4237 | 2018-07-14 Stafford Horne <[email protected]> |
4238 | ||
4239 | * (Responsible Maintainers): Add myself as or1k maintainer. | |
4240 | ||
027a4c30 TT |
4241 | 2018-07-13 Tom Tromey <[email protected]> |
4242 | ||
4243 | * symfile.c (set_objfile_default_section_offset): Use extra braces | |
4244 | around initializer. | |
4245 | ||
5c1eda30 AA |
4246 | 2018-07-13 Andreas Arnez <[email protected]> |
4247 | ||
4248 | * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a | |
4249 | non-branching basr. | |
4250 | ||
bc7b042b PW |
4251 | 2018-07-12 Philippe Waroquiers <[email protected]> |
4252 | ||
4253 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4254 | unittests/cli-utils-selftests.c | |
4255 | * unittests/cli-utils-selftests.c: New file. | |
4256 | ||
a14c4daa PW |
4257 | 2018-07-12 Philippe Waroquiers <[email protected]> |
4258 | ||
4259 | * NEWS: Mention new commands. Mention change to 'thread apply'. | |
4260 | ||
1fe75df7 PW |
4261 | 2018-07-12 Philippe Waroquiers <[email protected]> |
4262 | ||
4263 | * thread.c (thr_try_catch_cmd): New function. | |
4264 | (thread_apply_all_command): Handle qcs flags. | |
4265 | (thread_apply_command): Handle qcs flags. | |
4266 | (taas_command): New function. | |
4267 | (tfaas_command): New function. | |
4268 | (_initialize_thread): Update to setup the new commands 'taas | |
4269 | and 'tfaas'. Change doc string for 'thread apply'. | |
4270 | ||
6a70eb7d PW |
4271 | 2018-07-12 Philippe Waroquiers <[email protected]> |
4272 | ||
4273 | * stack.c: (trailing_outermost_frame): New function, mostly | |
4274 | extracted from backtrace_command_1. | |
4275 | (leading_innermost_frame): New function. | |
4276 | (backtrace_command_1): Update to call trailing_outermost_frame. | |
4277 | (frame_apply_command_count): New function. | |
4278 | (frame_apply_level_command): New function. | |
4279 | (frame_apply_all_command): New function. | |
4280 | (frame_apply_command): New function. | |
4281 | (faas_command): New function. | |
4282 | (frame_cmd_list): New variable. | |
4283 | (_initialize_stack): Update to setup the new commands 'frame apply' | |
4284 | and 'faas'. | |
4285 | ||
529c08b2 PW |
4286 | 2018-07-12 Philippe Waroquiers <[email protected]> |
4287 | ||
4288 | * cli-utils.c (number_or_range_parser::get_number): Only handle | |
4289 | numbers or convenience var as numbers. | |
4290 | (parse_flags): New function. | |
4291 | (parse_flags_qcs): New function. | |
4292 | (number_or_range_parser::finished): Ensure parsing end is detected | |
4293 | before end of string. | |
4294 | * cli-utils.h (parse_flags): New function. | |
4295 | (parse_flags_qcs): New function. | |
4296 | (number_or_range_parser): Remove m_finished bool. | |
4297 | (number_or_range_parser::skip_range): Set m_in_range to false. | |
4298 | ||
64b58472 SDJ |
4299 | 2018-07-12 Sergio Durigan Junior <[email protected]> |
4300 | ||
4301 | * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building | |
4302 | on Windows. | |
4303 | ||
c7ab0aef SDJ |
4304 | 2018-07-11 Sergio Durigan Junior <[email protected]> |
4305 | Jan Kratochvil <[email protected]> | |
4306 | Paul Fertser <[email protected]> | |
4307 | Tsutomu Seki <[email protected]> | |
4308 | Pedro Alves <[email protected]> | |
4309 | ||
4310 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4311 | 'unittests/parse-connection-spec-selftests.c'. | |
4312 | (COMMON_SFILES): Add 'common/netstuff.c'. | |
4313 | (HFILES_NO_SRCDIR): Add 'common/netstuff.h'. | |
4314 | * NEWS (Changes since GDB 8.2): Mention IPv6 support. | |
4315 | * common/netstuff.c: New file. | |
4316 | * common/netstuff.h: New file. | |
4317 | * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'. | |
4318 | (wait_for_connect): Update comment. New parameter | |
4319 | 'gdb::optional<int> sock' instead of 'struct serial *scb'. | |
4320 | Use 'sock' directly instead of 'scb->fd'. | |
4321 | (try_connect): New function, with code from 'net_open'. | |
4322 | (net_open): Rewrite main loop to deal with multiple | |
4323 | sockets/addresses. Handle IPv6-style hostnames; implement | |
4324 | support for IPv6 connections. | |
4325 | * unittests/parse-connection-spec-selftests.c: New file. | |
4326 | ||
4c7333b3 PA |
4327 | 2018-07-11 Pedro Alves <[email protected]> |
4328 | ||
4329 | PR gdb/23377 | |
4330 | * remote.c (remote_target::remote_detach_pid): Call | |
4331 | set_current_process. | |
4332 | ||
a6f88f6e PA |
4333 | 2018-07-11 Pedro Alves <[email protected]> |
4334 | ||
4335 | * h8300-tdep.c (h8300_gdbarch_init): Remove | |
4336 | set_gdbarch_ecoff_reg_to_regnum calls. | |
4337 | ||
16ff70dd SDJ |
4338 | 2018-07-11 Sergio Durigan Junior <[email protected]> |
4339 | ||
4340 | PR c++/23373 | |
4341 | * c-typeprint.c (c_type_print_base_struct_union): Don't print | |
4342 | offsets/sizes for static members of a class/struct. | |
4343 | ||
12863263 AH |
4344 | 2018-07-11 Alan Hayward <[email protected]> |
4345 | ||
4346 | * target-descriptions.c (tdesc_register_bitsize): Rename. | |
4347 | * target-descriptions.h (tdesc_register_bitsize): Likewise. | |
4348 | * rs6000-tdep.c (rs6000_gdbarch_init): Use new name. | |
4349 | * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size. | |
4350 | ||
1123588c TT |
4351 | 2018-07-10 Tom Tromey <[email protected]> |
4352 | ||
4353 | * breakpoint.c (moribund_locations): Now static and a | |
4354 | std::vector. | |
4355 | (breakpoint_init_inferior, moribund_breakpoint_here_p) | |
4356 | (build_bpstat_chain, update_global_location_list) | |
4357 | (breakpoint_retire_moribund): Update. | |
4358 | * breakpoint.h (bp_location_p): Remove typedef. Don't declare | |
4359 | VEC. | |
4360 | ||
8c49aa89 AB |
4361 | 2018-07-10 Andrew Burgess <[email protected]> |
4362 | ||
4363 | * riscv-tdep.c (riscv_is_fp_regno_p): New function. | |
4364 | (riscv_register_reggroup_p): Use new function, remove unneeded | |
4365 | parenthesis. | |
4366 | (riscv_push_dummy_call): Extend assert to compare against xlen or | |
4367 | flen based on register type. | |
4368 | ||
42ecac17 AB |
4369 | 2018-07-10 Andrew Burgess <[email protected]> |
4370 | ||
4371 | * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME. | |
4372 | ||
055303e2 AB |
4373 | 2018-07-09 Andrew Burgess <[email protected]> |
4374 | ||
4375 | * remote.c (show_hardware_watchpoint_limit): New function. | |
4376 | (show_hardware_watchpoint_length_limit): New function. | |
4377 | (show_hardware_breakpoint_limit): New function. | |
4378 | (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd | |
4379 | where appropriate, update help text. | |
4380 | ||
8fd32c1c TT |
4381 | 2018-07-09 Tom Tromey <[email protected]> |
4382 | ||
4383 | * Makefile.in (CDEPS): Don't mention XM_CDEPS. | |
4384 | (CLIBS): Don't mention NAT_CLIBS. | |
4385 | ||
31278b51 TT |
4386 | 2018-07-09 Tom Tromey <[email protected]> |
4387 | ||
4388 | * Makefile.in (ADD_FILES, ADD_DEPS): Remove. | |
4389 | (LIBGDB_OBS, clean mostlyclean): Update. | |
4390 | (gdb$(EXEEXT), insight$(EXEEXT)): Update. | |
4391 | ||
e5fd1493 TT |
4392 | 2018-07-09 Tom Tromey <[email protected]> |
4393 | ||
4394 | * Makefile.in (%.c: %.y): Use ECHO_YACC. | |
4395 | (%.c: %.l): Use ECHO_LEX. Just fail if flex not available. | |
4396 | * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables. | |
4397 | ||
981e0c0c TT |
4398 | 2018-07-09 Tom Tromey <[email protected]> |
4399 | ||
4400 | * Makefile.in (ALLDEPFILES): Remove exec.c. | |
4401 | (COMMON_OBS): Remove exec.o. | |
4402 | (COMMON_SFILES): Add exec.c. | |
4403 | ||
14ccceb2 TT |
4404 | 2018-07-09 Tom Tromey <[email protected]> |
4405 | ||
4406 | * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove. | |
4407 | ||
5d3c3a68 TT |
4408 | 2018-07-09 Tom Tromey <[email protected]> |
4409 | ||
4410 | * Makefile.in (clean mostlyclean): Remove stamp-version. | |
4411 | (version.c): Depend on stamp-version. | |
4412 | (stamp-version): New rule, from version.c rule. | |
4413 | ||
1998086d TT |
4414 | 2018-07-09 Tom Tromey <[email protected]> |
4415 | ||
4416 | * Makefile.in (init.c): Depend on stamp-init. | |
4417 | (stamp-init): New rule, from init.c rule. | |
4418 | (clean mostlyclean): Remove stamp-init. | |
4419 | ||
4c754949 TT |
4420 | 2018-07-09 Tom Tromey <[email protected]> |
4421 | ||
4422 | * Makefile.in (INIT_FILES): Remove CONFIG_SRCS, | |
4423 | SUBDIR_GCC_COMPILE_SRCS. | |
4424 | ||
6497f1dd TT |
4425 | 2018-07-09 Tom Tromey <[email protected]> |
4426 | ||
4427 | * Makefile.in (init.c): Remove some unused sed rules. | |
4428 | ||
97a34db9 TT |
4429 | 2018-07-09 Tom Tromey <[email protected]> |
4430 | ||
4431 | * Makefile.in (TSOBS): Remove. | |
4432 | (INIT_FILES): Update. | |
4433 | (LIBGDB_OBS): Update. | |
4434 | (COMMON_SFILES): Add inflow.c. | |
4435 | (SFILES): Remove inflow.c. | |
4436 | ||
25289ac1 JK |
4437 | 2018-07-07 Jan Kratochvil <[email protected]> |
4438 | ||
4439 | * contrib/gdb-add-index.sh ($dwarf5): New, use it. | |
4440 | ||
e83f4d97 SM |
4441 | 2018-07-07 Simon Marchi <[email protected]> |
4442 | ||
4869c585 SM |
4443 | * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name, |
4444 | get_saveloc_name, is_signal_frame_name, step_name, | |
4445 | init_remote_name, create_addr_space_name, | |
4446 | destroy_addr_space_name, search_unwind_table_name, | |
4447 | find_dyn_list_name): Constify. | |
e83f4d97 | 4448 | |
6821842f SM |
4449 | 2018-07-05 Simon Marchi <[email protected]> |
4450 | ||
4451 | * darwin-nat.c (darwin_pthread_kill): New function. | |
4452 | (darwin_resume_thread): Use darwin_pthread_kill. | |
4453 | ||
c530603c TV |
4454 | 2018-07-05 Tom de Vries <[email protected]> |
4455 | ||
4456 | * macroexp.c (macro_buffer) <operator=>: New member function. | |
4457 | ||
a7d0f0f0 TT |
4458 | 2018-07-04 Tom Tromey <[email protected]> |
4459 | ||
4460 | * darwin-nat.c (darwin_attach_pid): Use exit_inferior. | |
4461 | ||
6242c6a6 SM |
4462 | 2018-07-04 Simon Marchi <[email protected]> |
4463 | ||
4464 | * common/common-defs.h (HAVE_USEFUL_SBRK): Define. | |
4465 | * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK. | |
4466 | * maint.c: Likewise. | |
4467 | * top.c: Likewise. | |
4468 | ||
4e5b2f89 JB |
4469 | 2018-07-04 Joel Brobecker <[email protected]> |
4470 | ||
4471 | * NEWS: Create a new section for the next release branch. | |
4472 | Rename the section of the current branch, now that it has | |
4473 | been cut. | |
4474 | ||
538ccc4a JB |
4475 | 2018-07-04 Joel Brobecker <[email protected]> |
4476 | ||
4477 | GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e): | |
4478 | * version.in: Bump version to 8.2.50.DATE-git. | |
4479 | ||
1b919490 VB |
4480 | 2018-07-04 Vyacheslav Barinov <[email protected]> |
4481 | Pedro Alves <[email protected]> | |
4482 | ||
4483 | * linux-nat.c (linux_init_ptrace): Rename to ... | |
4484 | (linux_init_ptrace_procfs): ... this. Call | |
4485 | linux_proc_init_warnings. | |
4486 | (linux_nat_target::post_attach) | |
4487 | (linux_nat_target::post_startup_inferior): Adjust. | |
4488 | * nat/linux-procfs.c (linux_proc_init_warnings): Define function. | |
4489 | * nat/linux-procfs.h (linux_proc_init_warnings): Declare function. | |
4490 | ||
1ea5da02 TV |
4491 | 2018-07-04 Tom de Vries <[email protected]> |
4492 | ||
4493 | * dwarf2read.c (error_check_comp_unit_head): Move dwarf version | |
4494 | check ... | |
4495 | (read_comp_unit_head): ... here. | |
4496 | ||
f51e0e20 TT |
4497 | 2018-07-03 Tom Tromey <[email protected]> |
4498 | ||
4499 | * tracepoint.c (process_tracepoint_on_disconnect, start_tracing) | |
4500 | (stop_tracing, tstatus_command) | |
4501 | (find_matching_tracepoint_location, merge_uploaded_tracepoints) | |
4502 | (print_one_static_tracepoint_marker): Update. | |
4503 | * breakpoint.c (static_tracepoints_here, all_tracepoints): Return | |
4504 | std::vector. | |
4505 | * breakpoint.h (breakpoint_p): Remove typedef. Don't declare | |
4506 | VEC. | |
4507 | (all_tracepoints, static_tracepoints_here): Return std::vector. | |
4508 | ||
d7e15655 TT |
4509 | 2018-07-03 Tom Tromey <[email protected]> |
4510 | ||
4511 | * common/ptid.c (ptid_equal): Remove. | |
4512 | * common/ptid.h (ptid_equal): Don't declare. | |
4513 | * ada-tasks.c: Update. | |
4514 | * breakpoint.c: Update. | |
4515 | * common/agent.c: Update. | |
4516 | * corelow.c: Update. | |
4517 | * darwin-nat-info.c: Update. | |
4518 | * darwin-nat.c: Update. | |
4519 | * dcache.c: Update. | |
4520 | * dtrace-probe.c: Update. | |
4521 | * dummy-frame.c: Update. | |
4522 | * fbsd-nat.c: Update. | |
4523 | * frame.c: Update. | |
4524 | * gdbthread.h: Update. | |
4525 | * gnu-nat.c: Update. | |
4526 | * go32-nat.c: Update. | |
4527 | * inf-loop.c: Update. | |
4528 | * inf-ptrace.c: Update. | |
4529 | * infcall.c: Update. | |
4530 | * infcmd.c: Update. | |
4531 | * inflow.c: Update. | |
4532 | * infrun.c: Update. | |
4533 | * linux-fork.c: Update. | |
4534 | * linux-nat.c: Update. | |
4535 | * linux-thread-db.c: Update. | |
4536 | * mi/mi-cmd-var.c: Update. | |
4537 | * mi/mi-interp.c: Update. | |
4538 | * mi/mi-main.c: Update. | |
4539 | * nto-procfs.c: Update. | |
4540 | * ppc-linux-tdep.c: Update. | |
4541 | * procfs.c: Update. | |
4542 | * python/py-inferior.c: Update. | |
4543 | * python/py-record-btrace.c: Update. | |
4544 | * python/py-record.c: Update. | |
4545 | * ravenscar-thread.c: Update. | |
4546 | * regcache.c: Update. | |
4547 | * remote-sim.c: Update. | |
4548 | * remote.c: Update. | |
4549 | * sol-thread.c: Update. | |
4550 | * solib.c: Update. | |
4551 | * target.c: Update. | |
4552 | * tui/tui-stack.c: Update. | |
4553 | * varobj.c: Update. | |
4554 | * windows-nat.c: Update. | |
4555 | * windows-tdep.c: Update. | |
4556 | ||
26a57c92 TT |
4557 | 2018-07-03 Tom Tromey <[email protected]> |
4558 | ||
4559 | * common/ptid.c (ptid_match): Remove. | |
4560 | * common/ptid.h (ptid_match): Don't declare. | |
4561 | * fbsd-nat.c: Update. | |
4562 | * infcmd.c: Update. | |
4563 | * infrun.c: Update. | |
4564 | * linux-nat.c: Update. | |
4565 | * record-btrace.c: Update. | |
4566 | * regcache.c: Update. | |
4567 | * remote.c: Update. | |
4568 | ||
d2a107e3 TT |
4569 | 2018-07-03 Tom Tromey <[email protected]> |
4570 | ||
4571 | * common/ptid.c (ptid_tid_p): Remove. | |
4572 | * common/ptid.h (ptid_tid_p): Don't declare. | |
4573 | * sol-thread.c: Update. | |
4574 | ||
15a9e13e TT |
4575 | 2018-07-03 Tom Tromey <[email protected]> |
4576 | ||
4577 | * common/ptid.c (ptid_lwp_p): Remove. | |
4578 | * common/ptid.h (ptid_lwp_p): Don't declare. | |
4579 | * fbsd-nat.c: Update. | |
4580 | * linux-nat.c: Update. | |
4581 | * nat/linux-procfs.c: Update. | |
4582 | * nat/x86-linux-dregs.c: Update. | |
4583 | * sol-thread.c: Update. | |
4584 | ||
0e998d96 TT |
4585 | 2018-07-03 Tom Tromey <[email protected]> |
4586 | ||
4587 | * common/ptid.c (ptid_is_pid): Remove. | |
4588 | * common/ptid.h (ptid_is_pid): Don't declare. | |
4589 | * infrun.c: Update. | |
4590 | * linux-nat.c: Update. | |
4591 | * mi/mi-interp.c: Update. | |
4592 | * remote.c: Update. | |
4593 | * thread.c: Update. | |
4594 | ||
cc6bcb54 TT |
4595 | 2018-07-03 Tom Tromey <[email protected]> |
4596 | ||
4597 | * common/ptid.c (ptid_get_tid): Remove. | |
4598 | * common/ptid.h (ptid_get_tid): Don't declare. | |
4599 | * ada-tasks.c: Update. | |
4600 | * aix-thread.c: Update. | |
4601 | * bsd-uthread.c: Update. | |
4602 | * darwin-nat.c: Update. | |
4603 | * fbsd-nat.c: Update. | |
4604 | * i386-darwin-nat.c: Update. | |
4605 | * infrun.c: Update. | |
4606 | * linux-tdep.c: Update. | |
4607 | * nto-procfs.c: Update. | |
4608 | * ppc-ravenscar-thread.c: Update. | |
4609 | * python/py-infthread.c: Update. | |
4610 | * ravenscar-thread.c: Update. | |
4611 | * sol-thread.c: Update. | |
4612 | * sparc-ravenscar-thread.c: Update. | |
4613 | * windows-nat.c: Update. | |
4614 | ||
e38504b3 TT |
4615 | 2018-07-03 Tom Tromey <[email protected]> |
4616 | ||
4617 | * common/ptid.c (ptid_get_lwp): Remove. | |
4618 | * common/ptid.h (ptid_get_lwp): Don't declare. | |
4619 | * aarch64-linux-nat.c: Update. | |
4620 | * ada-tasks.c: Update. | |
4621 | * aix-thread.c: Update. | |
4622 | * amd64-linux-nat.c: Update. | |
4623 | * arm-linux-nat.c: Update. | |
4624 | * corelow.c: Update. | |
4625 | * fbsd-nat.c: Update. | |
4626 | * fbsd-tdep.c: Update. | |
4627 | * gnu-nat.c: Update. | |
4628 | * i386-cygwin-tdep.c: Update. | |
4629 | * i386-gnu-nat.c: Update. | |
4630 | * i386-linux-nat.c: Update. | |
4631 | * ia64-linux-nat.c: Update. | |
4632 | * inf-ptrace.c: Update. | |
4633 | * infrun.c: Update. | |
4634 | * linux-fork.c: Update. | |
4635 | * linux-nat.c: Update. | |
4636 | * linux-tdep.c: Update. | |
4637 | * linux-thread-db.c: Update. | |
4638 | * mips-linux-nat.c: Update. | |
4639 | * nat/aarch64-linux-hw-point.c: Update. | |
4640 | * nat/aarch64-linux.c: Update. | |
4641 | * nat/linux-btrace.c: Update. | |
4642 | * nat/linux-osdata.c: Update. | |
4643 | * nat/linux-procfs.c: Update. | |
4644 | * nat/x86-linux-dregs.c: Update. | |
4645 | * obsd-nat.c: Update. | |
4646 | * ppc-fbsd-nat.c: Update. | |
4647 | * ppc-linux-nat.c: Update. | |
4648 | * procfs.c: Update. | |
4649 | * python/py-infthread.c: Update. | |
4650 | * ravenscar-thread.c: Update. | |
4651 | * remote.c: Update. | |
4652 | * s390-linux-nat.c: Update. | |
4653 | * sol-thread.c: Update. | |
4654 | * sol2-tdep.c: Update. | |
4655 | * spu-linux-nat.c: Update. | |
4656 | * x86-linux-nat.c: Update. | |
4657 | * xtensa-linux-nat.c: Update. | |
4658 | ||
e99b03dc TT |
4659 | 2018-07-03 Tom Tromey <[email protected]> |
4660 | ||
4661 | * common/ptid.c (ptid_get_pid): Remove. | |
4662 | * common/ptid.h (ptid_get_pid): Don't declare. | |
4663 | * aarch64-linux-nat.c: Update. | |
4664 | * ada-lang.c: Update. | |
4665 | * aix-thread.c: Update. | |
4666 | * alpha-bsd-nat.c: Update. | |
4667 | * amd64-fbsd-nat.c: Update. | |
4668 | * amd64-linux-nat.c: Update. | |
4669 | * arm-linux-nat.c: Update. | |
4670 | * arm-nbsd-nat.c: Update. | |
4671 | * auxv.c: Update. | |
4672 | * break-catch-syscall.c: Update. | |
4673 | * breakpoint.c: Update. | |
4674 | * bsd-uthread.c: Update. | |
4675 | * corelow.c: Update. | |
4676 | * ctf.c: Update. | |
4677 | * darwin-nat.c: Update. | |
4678 | * fbsd-nat.c: Update. | |
4679 | * fbsd-tdep.c: Update. | |
4680 | * gcore.c: Update. | |
4681 | * gnu-nat.c: Update. | |
4682 | * hppa-nbsd-nat.c: Update. | |
4683 | * hppa-obsd-nat.c: Update. | |
4684 | * i386-fbsd-nat.c: Update. | |
4685 | * ia64-linux-nat.c: Update. | |
4686 | * inf-ptrace.c: Update. | |
4687 | * infcmd.c: Update. | |
4688 | * inferior.c: Update. | |
4689 | * inferior.h: Update. | |
4690 | * inflow.c: Update. | |
4691 | * infrun.c: Update. | |
4692 | * linux-fork.c: Update. | |
4693 | * linux-nat.c: Update. | |
4694 | * linux-tdep.c: Update. | |
4695 | * linux-thread-db.c: Update. | |
4696 | * m68k-bsd-nat.c: Update. | |
4697 | * mi/mi-interp.c: Update. | |
4698 | * mi/mi-main.c: Update. | |
4699 | * mips-linux-nat.c: Update. | |
4700 | * mips-nbsd-nat.c: Update. | |
4701 | * mips64-obsd-nat.c: Update. | |
4702 | * nat/aarch64-linux-hw-point.c: Update. | |
4703 | * nat/aarch64-linux.c: Update. | |
4704 | * nat/linux-btrace.c: Update. | |
4705 | * nat/linux-osdata.c: Update. | |
4706 | * nat/linux-procfs.c: Update. | |
4707 | * nat/x86-linux-dregs.c: Update. | |
4708 | * nto-procfs.c: Update. | |
4709 | * obsd-nat.c: Update. | |
4710 | * ppc-linux-nat.c: Update. | |
4711 | * ppc-nbsd-nat.c: Update. | |
4712 | * ppc-obsd-nat.c: Update. | |
4713 | * proc-service.c: Update. | |
4714 | * procfs.c: Update. | |
4715 | * python/py-inferior.c: Update. | |
4716 | * python/py-infthread.c: Update. | |
4717 | * ravenscar-thread.c: Update. | |
4718 | * record.c: Update. | |
4719 | * remote-sim.c: Update. | |
4720 | * remote.c: Update. | |
4721 | * rs6000-nat.c: Update. | |
4722 | * s390-linux-nat.c: Update. | |
4723 | * sh-nbsd-nat.c: Update. | |
4724 | * sol-thread.c: Update. | |
4725 | * sparc-nat.c: Update. | |
4726 | * sparc64-tdep.c: Update. | |
4727 | * spu-linux-nat.c: Update. | |
4728 | * spu-tdep.c: Update. | |
4729 | * target-debug.h: Update. | |
4730 | * target.c: Update. | |
4731 | * thread.c: Update. | |
4732 | * tid-parse.c: Update. | |
4733 | * tracefile-tfile.c: Update. | |
4734 | * vax-bsd-nat.c: Update. | |
4735 | * windows-nat.c: Update. | |
4736 | * x86-linux-nat.c: Update. | |
4737 | * x86-nat.c: Update. | |
4738 | ||
f2907e49 TT |
4739 | 2018-07-03 Tom Tromey <[email protected]> |
4740 | ||
4741 | * common/ptid.c (pid_to_ptid): Remove. | |
4742 | * common/ptid.h (pid_to_ptid): Don't declare. | |
4743 | * aix-thread.c: Update. | |
4744 | * arm-linux-nat.c: Update. | |
4745 | * common/ptid.c: Update. | |
4746 | * common/ptid.h: Update. | |
4747 | * corelow.c: Update. | |
4748 | * ctf.c: Update. | |
4749 | * darwin-nat.c: Update. | |
4750 | * fbsd-nat.c: Update. | |
4751 | * fork-child.c: Update. | |
4752 | * gnu-nat.c: Update. | |
4753 | * go32-nat.c: Update. | |
4754 | * inf-ptrace.c: Update. | |
4755 | * infcmd.c: Update. | |
4756 | * inferior.c: Update. | |
4757 | * infrun.c: Update. | |
4758 | * linux-fork.c: Update. | |
4759 | * linux-nat.c: Update. | |
4760 | * nat/aarch64-linux-hw-point.c: Update. | |
4761 | * nat/fork-inferior.c: Update. | |
4762 | * nat/x86-linux-dregs.c: Update. | |
4763 | * nto-procfs.c: Update. | |
4764 | * obsd-nat.c: Update. | |
4765 | * procfs.c: Update. | |
4766 | * progspace.c: Update. | |
4767 | * remote.c: Update. | |
4768 | * rs6000-nat.c: Update. | |
4769 | * s390-linux-nat.c: Update. | |
4770 | * sol-thread.c: Update. | |
4771 | * spu-linux-nat.c: Update. | |
4772 | * target.c: Update. | |
4773 | * top.c: Update. | |
4774 | * tracefile-tfile.c: Update. | |
4775 | * windows-nat.c: Update. | |
4776 | ||
fd79271b TT |
4777 | 2018-07-03 Tom Tromey <[email protected]> |
4778 | ||
4779 | * common/ptid.h (ptid_build): Don't declare. | |
4780 | * common/ptid.c (ptid_build): Remove. | |
4781 | * aix-thread.c: Update. | |
4782 | * bsd-kvm.c: Update. | |
4783 | * bsd-uthread.c: Update. | |
4784 | * common/agent.c: Update. | |
4785 | * common/ptid.c: Update. | |
4786 | * common/ptid.h: Update. | |
4787 | * corelow.c: Update. | |
4788 | * darwin-nat.c: Update. | |
4789 | * fbsd-nat.c: Update. | |
4790 | * gnu-nat.c: Update. | |
4791 | * linux-fork.c: Update. | |
4792 | * linux-nat.c: Update. | |
4793 | * linux-thread-db.c: Update. | |
4794 | * nat/linux-osdata.c: Update. | |
4795 | * nat/linux-procfs.c: Update. | |
4796 | * nto-procfs.c: Update. | |
4797 | * obsd-nat.c: Update. | |
4798 | * proc-service.c: Update. | |
4799 | * procfs.c: Update. | |
4800 | * ravenscar-thread.c: Update. | |
4801 | * remote-sim.c: Update. | |
4802 | * remote.c: Update. | |
4803 | * sol-thread.c: Update. | |
4804 | * target.c: Update. | |
4805 | * windows-nat.c: Update. | |
4806 | ||
057302ce TT |
4807 | 2018-07-03 Tom Tromey <[email protected]> |
4808 | ||
4809 | * infrun.c (follow_exec): Use exit_inferior_silent. | |
4810 | * inferior.c (exit_inferior_num_silent): Remove. | |
4811 | * inferior.h (exit_inferior_num_silent): Don't declare. | |
4812 | ||
a50c11c6 TT |
4813 | 2018-07-03 Tom Tromey <[email protected]> |
4814 | ||
4815 | PR cli/23340: | |
4816 | * darwin-nat.c (darwin_attach_pid): Reset inferior and | |
4817 | inferior_ptid on error. | |
4818 | ||
471b9d15 MR |
4819 | 2018-07-02 Maciej W. Rozycki <[email protected]> |
4820 | Simon Marchi <[email protected]> | |
4821 | ||
4822 | PR tdep/8282 | |
4823 | * disasm.h (gdb_disassembler): Add | |
4824 | `m_disassembler_options_holder'. member | |
4825 | * disasm.c (get_all_disassembler_options): New function. | |
4826 | (gdb_disassembler::gdb_disassembler): Use it. | |
4827 | (gdb_buffered_insn_length_init_dis): Likewise. | |
4828 | (gdb_buffered_insn_length): Adjust accordingly. | |
4829 | (set_disassembler_options): Handle options with arguments. | |
4830 | (show_disassembler_options_sfunc): Likewise. Add a leading new | |
4831 | line if showing options with descriptions. | |
4832 | (disassembler_options_completer): Adapt to using the | |
4833 | `disasm_options_and_args_t' structure. | |
4834 | * mips-tdep.c (mips_disassembler_options): New variable. | |
4835 | (mips_disassembler_options_o32): Likewise. | |
4836 | (mips_disassembler_options_n32): Likewise. | |
4837 | (mips_disassembler_options_n64): Likewise. | |
4838 | (gdb_print_insn_mips): Don't set `disassembler_options'. | |
4839 | (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove | |
4840 | functions. | |
4841 | (mips_gdbarch_init): Always set `gdbarch_print_insn' to | |
4842 | `gdb_print_insn_mips'. Set `gdbarch_disassembler_options', | |
4843 | `gdbarch_disassembler_options_implicit' and | |
4844 | `gdbarch_valid_disassembler_options'. | |
4845 | * arm-tdep.c (_initialize_arm_tdep): Adapt to using the | |
4846 | `disasm_options_and_args_t' structure. | |
4847 | * gdbarch.sh (disassembler_options_implicit): New `gdbarch' | |
4848 | method. | |
4849 | (valid_disassembler_options): Switch from `disasm_options_t' to | |
4850 | the `disasm_options_and_args_t' structure. | |
4851 | * NEWS: Document `set disassembler-options' support for the MIPS | |
4852 | target. | |
4853 | * gdbarch.h: Regenerate. | |
4854 | * gdbarch.c: Regenerate. | |
4855 | ||
41823f29 SH |
4856 | 2018-07-02 Sebastian Huber <[email protected]> |
4857 | ||
4858 | * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries. | |
4859 | ||
41206e32 JB |
4860 | 2018-06-29 Joel Brobecker <[email protected]> |
4861 | ||
4862 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing | |
4863 | parameter in call to amd64_target_description. | |
4864 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise. | |
4865 | * amd64-fbsd-tdep.c (amd64fbsd_core_read_description) | |
4866 | (amd64fbsd_init_abi): Likewise. | |
4867 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
4868 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
4869 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
4870 | * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise. | |
4871 | ||
de52b960 PA |
4872 | 2018-06-29 Pedro Alves <[email protected]> |
4873 | ||
4874 | * gdb/amd64-tdep.h (amd64_create_target_description): Add | |
4875 | "segments" parameter. | |
4876 | * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi) | |
4877 | (_initialize_amd64_tdep): Update call to | |
4878 | amd64_create_target_description. | |
4879 | (amd64_target_description): Add "segments" parameter. Adjust | |
4880 | the implementation to use it. | |
4881 | * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update | |
4882 | call to amd64_create_target_description. | |
4883 | * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise. | |
4884 | * gdb/arch/amd64.h (amd64_create_target_description): Add | |
4885 | "segments" register. | |
4886 | * gdb/arch/amd64.c (amd64_create_target_description): Add | |
4887 | "segments" parameter. Call create_feature_i386_64bit_segments | |
4888 | only if SEGMENTS is true. | |
4889 | * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update | |
4890 | call to amd64_create_target_description. | |
4891 | ||
75acb486 PA |
4892 | 2018-06-29 Pedro Alves <[email protected]> |
4893 | ||
4894 | * thread.c (thread_target_id_str): New, factored out from ... | |
4895 | (print_thread_info_1): ... here. Use it to compute the max | |
4896 | "Target Id" column width. | |
4897 | ||
c76a8ea3 PA |
4898 | 2018-06-29 Pedro Alves <[email protected]> |
4899 | ||
4900 | * remote.c (remote_target::extra_thread_info): Delete | |
4901 | 'display_buf' and 'n' locals. from the cache, regardless of | |
4902 | packet mechanims is in use. Use cache for qThreadExtra and qP | |
4903 | methods too. | |
4904 | ||
cd2bb709 PA |
4905 | 2018-06-29 Pedro Alves <[email protected]> |
4906 | ||
4907 | * blockframe.c (find_pc_sect_containing_function): New function. | |
4908 | * breakpoint.c (print_breakpoint_location): Don't call | |
4909 | find_pc_sect_function. | |
4910 | * linespec.c (create_sals_line_offset): Record the location's | |
4911 | symbol in the sal. | |
4912 | * linespec.c (convert_address_location_to_sals): Fill in sal's | |
4913 | symbol with find_pc_sect_containing_function. | |
4914 | * symtab.c (find_function_start_sal): Rename to ... | |
4915 | (find_function_start_sal_1): ... this. | |
4916 | (find_function_start_sal): Reimplement as wrapper around | |
4917 | find_function_start_sal_1, and use | |
4918 | find_pc_sect_containing_function to fill in the sal's symbol. | |
4919 | (find_function_start_sal(symbol*, bool)): Adjust. | |
4920 | * symtab.h (find_pc_function, find_pc_sect_function): Adjust | |
4921 | comments. | |
4922 | (find_pc_sect_containing_function): Declare. | |
4923 | ||
991ff292 PA |
4924 | 2018-06-29 Pedro Alves <[email protected]> |
4925 | ||
4926 | * inline-frame.c (stopped_by_user_bp_inline_frame): Return | |
4927 | true if the the location has no symbol. | |
4928 | ||
44cee4fd TT |
4929 | 2018-06-28 Tom Tromey <[email protected]> |
4930 | ||
4931 | * NEWS: Mention --enable-codesign. | |
4932 | * silent-rules.mk (ECHO_SIGN): New variable. | |
4933 | * configure.ac: Add --enable-codesign. | |
4934 | * configure: Rebuild. | |
4935 | * Makefile.in (CODESIGN, CODESIGN_CERT): New variables. | |
4936 | (gdb$(EXEEXT)): Optionally invoke codesign. | |
4937 | ||
f2ffa92b PA |
4938 | 2018-06-28 Pedro Alves <[email protected]> |
4939 | ||
4940 | * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend | |
4941 | comments. | |
4942 | (switch_to_thread_no_regs): Adjust comment. | |
4943 | * infcmd.c (stop_pc): Delete. | |
4944 | (post_create_inferior, info_program_command): Replace references | |
4945 | to stop_pc with references to thread_info->suspend.stop_pc. | |
4946 | * inferior.h (stop_pc): Delete declaration. | |
4947 | * infrun.c (proceed, handle_syscall_event, fill_in_stop_func) | |
4948 | (handle_inferior_event_1, handle_signal_stop) | |
4949 | (process_event_stop_test, keep_going_stepped_thread) | |
4950 | (handle_step_into_function, handle_step_into_function_backward) | |
4951 | (print_stop_location): Replace references to stop_pc with | |
4952 | references to thread_info->suspend.stop_pc. | |
4953 | (struct infcall_suspend_state) <stop_pc>: Delete field. | |
4954 | (save_infcall_suspend_state, restore_infcall_suspend_state): | |
4955 | Remove references to inf_stat->stop_pc. | |
4956 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
4957 | * record-btrace.c (record_btrace_set_replay): Likewise. | |
4958 | * record-full.c (record_full_goto_entry): Likewise. | |
4959 | * remote.c (print_one_stopped_thread): Likewise. | |
4960 | * target.c (target_resume): Extend comment. | |
4961 | * thread.c (set_executing_thread): New. | |
4962 | (set_executing): Use it. | |
4963 | (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread): | |
4964 | Remove references to stop_pc. | |
4965 | ||
ecdc3a72 PA |
4966 | 2018-06-28 Pedro Alves <[email protected]> |
4967 | ||
4968 | * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: | |
4969 | Moving fetching stop_pc until after ecs->event_thread is refreshed. | |
4970 | ||
d95d3aef TT |
4971 | 2018-06-28 Tom Tromey <[email protected]> |
4972 | ||
4973 | * coffread.c (coff_symfile_finish): Update. | |
4974 | * xcoffread.c (xcoff_symfile_finish): Update. | |
4975 | * elfread.c (elf_symfile_finish): Update. | |
4976 | * symfile.h (dwarf2_free_objfile): Don't declare. | |
4977 | * dwarf2read.c (_initialize_dwarf2_read): Use | |
4978 | register_objfile_data_with_cleanup. | |
4979 | (dwarf2_free_objfile): Now static. Change signature. | |
4980 | ||
291f9a96 PT |
4981 | 2018-06-28 Petr Tesarik <[email protected]> |
4982 | ||
4983 | * symfile.c (add_symbol_file_command, _initialize_symfile): Add | |
4984 | option "-o" to add-symbol-file-load to add an offset to each | |
4985 | section's load address. | |
4986 | * symfile.c (set_objfile_default_section_offset): New function. | |
4987 | ||
d81a3eaf PT |
4988 | 2018-06-28 Petr Tesarik <[email protected]> |
4989 | ||
4990 | * symfile.c (add_symbol_file_command): Make sure that sections | |
4991 | with the same name are sorted in the same order. | |
4992 | ||
ed6dfe51 PT |
4993 | 2018-06-28 Petr Tesarik <[email protected]> |
4994 | ||
4995 | * symfile.c (add_symbol_file_command, _initialize_symfile): Do not | |
4996 | require the second argument. If omitted, load sections at the | |
4997 | addresses specified in the file. | |
4998 | ||
d4d429d5 PT |
4999 | 2018-06-28 Petr Tesarik <[email protected]> |
5000 | ||
5001 | * symfile.c (symbol_file_command, symbol_file_add_main_1) | |
5002 | (_initialize_symfile): Add option "-o" to symbol-file to add an | |
5003 | offset to each section of the symbol file. | |
5004 | ||
39b27ab6 PT |
5005 | 2018-06-28 Petr Tesarik <[email protected]> |
5006 | ||
5007 | * MAINTAINERS (Write After Approval): Add Petr Tesarik. | |
5008 | ||
41827fc3 TT |
5009 | 2018-06-27 Tom Tromey <[email protected]> |
5010 | ||
5011 | * stack.c (_initialize_stack): Update "func" help text. | |
5012 | ||
0c6aef22 TT |
5013 | 2018-06-27 Tom Tromey <[email protected]> |
5014 | ||
5015 | * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a | |
5016 | std::vector. | |
5017 | (unwind_infopy_str, pyuw_create_unwind_info) | |
5018 | (unwind_infopy_add_saved_register, pyuw_sniffer) | |
5019 | (unwind_infopy_dealloc, unwind_infopy_add_saved_register): | |
5020 | Update. | |
5021 | (struct saved_reg): Add constructor. | |
5022 | <value>: Now a gdbpy_ref<>. | |
5023 | ||
63177289 TT |
5024 | 2018-06-27 Tom Tromey <[email protected]> |
5025 | ||
5026 | * machoread.c (macho_symfile_read): Define "symbol_table" earlier. | |
5027 | ||
e76f78a0 SM |
5028 | 2018-06-27 Simon Marchi <[email protected]> |
5029 | ||
5030 | * gdb-gdb.py.in: Format using autopep8. | |
5031 | ||
9a14af7b SM |
5032 | 2018-06-27 Simon Marchi <[email protected]> |
5033 | ||
5034 | * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class. | |
5035 | (type_lookup_function): Recognize CORE_ADDR values. | |
5036 | ||
189366cd SM |
5037 | 2018-06-27 Simon Marchi <[email protected]> |
5038 | ||
5039 | * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't | |
5040 | print tag_name. | |
5041 | ||
68ad5fb9 SM |
5042 | 2018-06-27 Simon Marchi <[email protected]> |
5043 | ||
5044 | * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove. | |
5045 | <__lt__>: Add. | |
5046 | ||
141ec9f6 SM |
5047 | 2018-06-27 Simon Marchi <[email protected]> |
5048 | ||
5049 | * gdb-gdb.py: Move to... | |
5050 | * gdb-gdb.py.in: ... here. | |
5051 | * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py. | |
5052 | * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as | |
5053 | dependencies. | |
5054 | (distclean): Remove gdb-gdb.py when cleaning. | |
5055 | (gdb-gdb.py, gdb-gdb.gdb): New rules. | |
5056 | * configure: Re-generate. | |
5057 | ||
4c4e7ad4 PA |
5058 | 2018-06-27 Pedro Alves <[email protected]> |
5059 | ||
5060 | * proc-service.c (get_ps_regcache): New. | |
5061 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs) | |
5062 | (ps_lsetfpregs): Use it. | |
5063 | ||
7ab6656f OJ |
5064 | 2018-06-27 Omair Javaid <[email protected]> |
5065 | ||
5066 | PR gdb/21695 | |
5067 | * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration. | |
5068 | (dwarf_decode_lines_1): Adjust. | |
5069 | ||
bd583225 SM |
5070 | 2018-06-27 Simon Marchi <[email protected]> |
5071 | ||
5072 | * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add | |
5073 | override. | |
5074 | <info_proc>: Likewise. | |
5075 | ||
9a325b7b JB |
5076 | 2018-06-26 Joel Brobecker <[email protected]> |
5077 | ||
5078 | * windows-nat.c (do_windows_fetch_inferior_registers): Rename | |
5079 | to windows_fetch_one_register, and only handle the case of | |
5080 | fetching one register. Move the code that reloads the context | |
5081 | and iterates over all registers if R is negative to... | |
5082 | (windows_nat_target::fetch_registers): ... here. | |
5083 | (do_windows_store_inferior_registers): Rename to | |
5084 | windows_store_one_register, and only handle the case of storing | |
5085 | one register. Move the code that handles the case where r is | |
5086 | negative to... | |
5087 | (windows_nat_target::store_registers) ... here. | |
5088 | ||
a33ccfc7 TT |
5089 | 2018-06-26 Tom Tromey <[email protected]> |
5090 | ||
5091 | PR rust/22574: | |
5092 | * typeprint.c (whatis_exp): Allow ptype/o for Rust. | |
5093 | * rust-lang.c (rust_print_struct_def): Add podata parameter. | |
5094 | Update. | |
5095 | (rust_internal_print_type): Add podata parameter. | |
5096 | (rust_print_type): Update. | |
5097 | ||
e0c547d1 TT |
5098 | 2018-06-26 Tom Tromey <[email protected]> |
5099 | ||
5100 | * typeprint.h (struct print_offset_data) <update, finish, | |
5101 | maybe_print_hole>: New methods. | |
5102 | <indentation>: New constant. | |
5103 | * typeprint.c (print_offset_data::indentation): Define. | |
5104 | (print_offset_data::maybe_print_hole, print_offset_data::update) | |
5105 | (print_offset_data::finish): Move from c-typeprint.c and rename. | |
5106 | * c-typeprint.c (OFFSET_SPC_LEN): Remove. | |
5107 | (print_spaces_filtered_with_print_options): Update. | |
5108 | (c_print_type_union_field_offset, maybe_print_hole) | |
5109 | (c_print_type_struct_field_offset): Move to typeprint.c and | |
5110 | rename. | |
5111 | (c_type_print_base_struct_union): Update. | |
5112 | ||
75cbc781 PA |
5113 | 2018-06-25 Pedro Alves <[email protected]> |
5114 | ||
5115 | * gdbthread.h (thread_info_ref, delete_thread) | |
5116 | (delete_thread_silent, first_thread_of_inferior) | |
5117 | (any_thread_of_inferior, switch_to_thread) | |
5118 | (enable_thread_stack_temporaries) | |
5119 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
5120 | (get_last_thread_stack_temporary) | |
5121 | (value_in_thread_stack_temporaries, can_access_registers_thread): | |
5122 | Spell out "struct thread_info" instead of just "thread_info". | |
5123 | * inferior.h (notice_new_inferior): Likewise. | |
5124 | ||
b7a08269 PA |
5125 | 2018-06-25 Pedro Alves <[email protected]> |
5126 | ||
5127 | * windows-nat.c (windows_delete_thread): Use find_thread_ptid and | |
5128 | pass thread_info pointer to delete_thread. | |
5129 | (windows_nat_target::detach): Pass inferior pointer to | |
5130 | detach_inferior. | |
5131 | * aix-thread.c (sync_threadlists): Pass thread_info pointer to | |
5132 | delete_thread. | |
5133 | * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors. | |
5134 | * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid | |
5135 | and pass a thread_info pointer to delete_thread. | |
5136 | * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and | |
5137 | pass thread_info pointer to delete_thread. | |
5138 | * go32-nat.c (go32_nat_target::mourn_inferior): Remove | |
5139 | delete_thread_silent call. | |
5140 | * procfs.c (procfs_target::detach): Pass inferior pointer to | |
5141 | detach_inferior. | |
5142 | (procfs_target::wait): Pass thread_info pointer to delete_thread. | |
5143 | * remote-sim.c (gdbsim_target::mourn_inferior): Remove | |
5144 | delete_thread_silent call. | |
5145 | * windows-nat.c (windows_delete_thread): Use find_thread_ptid and | |
5146 | pass thread_info pointer to delete_thread. | |
5147 | (windows_nat_target::detach): Pass inferior pointer to | |
5148 | delete_inferior. | |
5149 | ||
8e7767e3 AH |
5150 | 2018-06-22 Alan Hayward <[email protected]> |
5151 | ||
5152 | * regcache.c (readable_regcache::read_part): Fix asserts. | |
5153 | (reg_buffer::raw_collect_part): New function. | |
5154 | (regcache::write_part): Fix asserts. | |
5155 | (reg_buffer::raw_supply_part): New function. | |
5156 | (regcache::transfer_regset_register): New helper function. | |
5157 | (regcache::transfer_regset): Call new functions. | |
5158 | (regcache_supply_regset): Use gdb_byte*. | |
5159 | (regcache::supply_regset): Likewise. | |
5160 | (regcache_collect_regset): Likewise. | |
5161 | (regcache::collect_regset): Likewise. | |
5162 | * regcache.h (reg_buffer::raw_collect_part): New declaration. | |
5163 | (reg_buffer::raw_supply_part): Likewise. | |
5164 | (regcache::transfer_regset_register): Likewise. | |
5165 | (regcache::transfer_regset): Use gdb_byte*. | |
5166 | ||
bfd60e34 AH |
5167 | 2018-06-22 Alan Hayward <[email protected]> |
5168 | ||
5169 | * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &. | |
5170 | ||
00431a78 PA |
5171 | 2018-06-21 Pedro Alves <[email protected]> |
5172 | ||
5173 | * ada-lang.h (ada_get_task_number): Take a thread_info pointer | |
5174 | instead of a ptid_t. All callers adjusted. | |
5175 | * ada-tasks.c (ada_get_task_number): Likewise. All callers | |
5176 | adjusted. | |
5177 | (print_ada_task_info, display_current_task_id, task_command_1): | |
5178 | Adjust. | |
5179 | * breakpoint.c (watchpoint_in_thread_scope): Adjust to use | |
5180 | inferior_thread. | |
5181 | (breakpoint_kind): Adjust. | |
5182 | (remove_breakpoints_pid): Rename to ... | |
5183 | (remove_breakpoints_inf): ... this. Adjust to take an inferior | |
5184 | pointer. All callers adjusted. | |
5185 | (bpstat_clear_actions): Use inferior_thread. | |
5186 | (get_bpstat_thread): New. | |
5187 | (bpstat_do_actions): Use it. | |
5188 | (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust | |
5189 | to take a thread_info pointer. All callers adjusted. | |
5190 | (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint) | |
5191 | (breakpoint_re_set_thread): Use inferior_thread. | |
5192 | * breakpoint.h (struct inferior): Forward declare. | |
5193 | (bpstat_stop_status): Update. | |
5194 | (remove_breakpoints_pid): Delete. | |
5195 | (remove_breakpoints_inf): New. | |
5196 | * bsd-uthread.c (bsd_uthread_target::wait) | |
5197 | (bsd_uthread_target::update_thread_list): Use find_thread_ptid. | |
5198 | * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch) | |
5199 | (maint_btrace_packet_history_cmd) | |
5200 | (maint_btrace_clear_packet_history_cmd): Adjust. | |
5201 | (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use | |
5202 | inferior_thread. | |
5203 | * cli/cli-interp.c: Include "inferior.h". | |
5204 | * common/refcounted-object.h (struct | |
5205 | refcounted_object_ref_policy): New. | |
5206 | * compile/compile-object-load.c: Include gdbthread.h. | |
5207 | (store_regs): Use inferior_thread. | |
5208 | * corelow.c (core_target::close): Use current_inferior. | |
5209 | (core_target_open): Adjust to use first_thread_of_inferior and use | |
5210 | the current inferior. | |
5211 | * ctf.c (ctf_target::close): Adjust to use current_inferior. | |
5212 | * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ... | |
5213 | <thread>: ... this new field. All references adjusted. | |
5214 | (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor): | |
5215 | Take a thread_info pointer instead of a ptid_t. | |
5216 | * dummy-frame.h (dummy_frame_push, dummy_frame_pop) | |
5217 | (dummy_frame_discard, register_dummy_frame_dtor): Take a | |
5218 | thread_info pointer instead of a ptid_t. | |
5219 | * elfread.c: Include "inferior.h". | |
5220 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): | |
5221 | Use inferior_thread. | |
5222 | * eval.c (evaluate_subexp): Likewise. | |
5223 | * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use | |
5224 | inferior_thread. | |
5225 | * gdb_proc_service.h (struct thread_info): Forward declare. | |
5226 | (struct ps_prochandle) <ptid>: Delete, replaced by ... | |
5227 | <thread>: ... this new field. All references adjusted. | |
5228 | * gdbarch.h, gdbarch.c: Regenerate. | |
5229 | * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a | |
5230 | 'thread' parameter. All implementations and callers adjusted. | |
5231 | * gdbthread.h (thread_info) <set_running>: New method. | |
5232 | (delete_thread, delete_thread_silent): Take a thread_info pointer | |
5233 | instead of a ptid. | |
5234 | (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete. | |
5235 | (first_thread_of_process): Delete, replaced by ... | |
5236 | (first_thread_of_inferior): ... this new function. All callers | |
5237 | adjusted. | |
5238 | (any_live_thread_of_process): Delete, replaced by ... | |
5239 | (any_live_thread_of_inferior): ... this new function. All callers | |
5240 | adjusted. | |
5241 | (switch_to_thread, switch_to_no_thread): Declare. | |
5242 | (is_executing): Delete. | |
5243 | (enable_thread_stack_temporaries): Update comment. | |
5244 | <enable_thread_stack_temporaries>: Take a thread_info pointer | |
5245 | instead of a ptid_t. Incref the thread. | |
5246 | <~enable_thread_stack_temporaries>: Decref the thread. | |
5247 | <m_ptid>: Delete | |
5248 | <m_thr>: New. | |
5249 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
5250 | (get_last_thread_stack_temporary) | |
5251 | (value_in_thread_stack_temporaries, can_access_registers_thread): | |
5252 | Take a thread_info pointer instead of a ptid_t. All callers | |
5253 | adjusted. | |
5254 | * infcall.c (get_call_return_value): Use inferior_thread. | |
5255 | (run_inferior_call): Work with thread pointers instead of ptid_t. | |
5256 | (call_function_by_hand_dummy): Work with thread pointers instead | |
5257 | of ptid_t. Use thread_info_ref. | |
5258 | * infcmd.c (proceed_thread_callback): Access thread's state | |
5259 | directly. | |
5260 | (ensure_valid_thread, ensure_not_running): Use inferior_thread, | |
5261 | access thread's state directly. | |
5262 | (continue_command): Use inferior_thread. | |
5263 | (info_program_command): Use find_thread_ptid and access thread | |
5264 | state directly. | |
5265 | (proceed_after_attach_callback): Use thread state directly. | |
5266 | (notice_new_inferior): Take a thread_info pointer instead of a | |
5267 | ptid_t. All callers adjusted. | |
5268 | (exit_inferior): Take an inferior pointer instead of a pid. All | |
5269 | callers adjusted. | |
5270 | (exit_inferior_silent): New. | |
5271 | (detach_inferior): Delete. | |
5272 | (valid_gdb_inferior_id, pid_to_gdb_inferior_id) | |
5273 | (gdb_inferior_id_to_pid, in_inferior_list): Delete. | |
5274 | (detach_inferior_command, kill_inferior_command): Use | |
5275 | find_inferior_id instead of valid_gdb_inferior_id and | |
5276 | gdb_inferior_id_to_pid. | |
5277 | (inferior_command): Use inferior and thread pointers. | |
5278 | * inferior.h (struct thread_info): Forward declare. | |
5279 | (notice_new_inferior): Take a thread_info pointer instead of a | |
5280 | ptid_t. All callers adjusted. | |
5281 | (detach_inferior): Delete declaration. | |
5282 | (exit_inferior, exit_inferior_silent): Take an inferior pointer | |
5283 | instead of a pid. All callers adjusted. | |
5284 | (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list) | |
5285 | (valid_gdb_inferior_id): Delete. | |
5286 | * infrun.c (follow_fork_inferior, proceed_after_vfork_done) | |
5287 | (handle_vfork_child_exec_or_exit, follow_exec): Adjust. | |
5288 | (struct displaced_step_inferior_state) <pid>: Delete, replaced by | |
5289 | ... | |
5290 | <inf>: ... this new field. | |
5291 | <step_ptid>: Delete, replaced by ... | |
5292 | <step_thread>: ... this new field. | |
5293 | (get_displaced_stepping_state): Take an inferior pointer instead | |
5294 | of a pid. All callers adjusted. | |
5295 | (displaced_step_in_progress_any_inferior): Adjust. | |
5296 | (displaced_step_in_progress_thread): Take a thread pointer instead | |
5297 | of a ptid_t. All callers adjusted. | |
5298 | (displaced_step_in_progress, add_displaced_stepping_state): Take | |
5299 | an inferior pointer instead of a pid. All callers adjusted. | |
5300 | (get_displaced_step_closure_by_addr): Adjust. | |
5301 | (remove_displaced_stepping_state): Take an inferior pointer | |
5302 | instead of a pid. All callers adjusted. | |
5303 | (displaced_step_prepare_throw, displaced_step_prepare) | |
5304 | (displaced_step_fixup): Take a thread pointer instead of a ptid_t. | |
5305 | All callers adjusted. | |
5306 | (start_step_over): Adjust. | |
5307 | (infrun_thread_ptid_changed): Remove bit updating ptids in the | |
5308 | displaced step queue. | |
5309 | (do_target_resume): Adjust. | |
5310 | (fetch_inferior_event): Use inferior_thread. | |
5311 | (context_switch, get_inferior_stop_soon): Take an | |
5312 | execution_control_state pointer instead of a ptid_t. All callers | |
5313 | adjusted. | |
5314 | (switch_to_thread_cleanup): Delete. | |
5315 | (stop_all_threads): Use scoped_restore_current_thread. | |
5316 | * inline-frame.c: Include "gdbthread.h". | |
5317 | (inline_state) <inline_state>: Take a thread pointer instead of a | |
5318 | ptid_t. All callers adjusted. | |
5319 | <ptid>: Delete, replaced by ... | |
5320 | <thread>: ... this new field. | |
5321 | (find_inline_frame_state): Take a thread pointer instead of a | |
5322 | ptid_t. All callers adjusted. | |
5323 | (skip_inline_frames, step_into_inline_frame) | |
5324 | (inline_skipped_frames, inline_skipped_symbol): Take a thread | |
5325 | pointer instead of a ptid_t. All callers adjusted. | |
5326 | * inline-frame.h (skip_inline_frames, step_into_inline_frame) | |
5327 | (inline_skipped_frames, inline_skipped_symbol): Likewise. | |
5328 | * linux-fork.c (delete_checkpoint_command): Adjust to use thread | |
5329 | pointers directly. | |
5330 | * linux-nat.c (get_detach_signal): Likewise. | |
5331 | * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter. | |
5332 | (thread_db_notice_clone): Adjust. | |
5333 | (thread_db_find_new_threads_silently) | |
5334 | (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take | |
5335 | a thread pointer instead of a ptid_t. All callers adjusted. | |
5336 | * mi/mi-cmd-var.c: Include "inferior.h". | |
5337 | (mi_cmd_var_update_iter): Update to use thread pointers. | |
5338 | * mi/mi-interp.c (mi_new_thread): Update to use the thread's | |
5339 | inferior directly. | |
5340 | (mi_output_running_pid, mi_inferior_count): Delete, bits factored | |
5341 | out to ... | |
5342 | (mi_output_running): ... this new function. | |
5343 | (mi_on_resume_1): Adjust to use it. | |
5344 | (mi_user_selected_context_changed): Adjust to use inferior_thread. | |
5345 | * mi/mi-main.c (proceed_thread): Adjust to use thread pointers | |
5346 | directly. | |
5347 | (interrupt_thread_callback): : Adjust to use thread and inferior | |
5348 | pointers. | |
5349 | * proc-service.c: Include "gdbthread.h". | |
5350 | (ps_pglobal_lookup): Adjust to use the thread's inferior directly. | |
5351 | * progspace-and-thread.c: Include "inferior.h". | |
5352 | * progspace.c: Include "inferior.h". | |
5353 | * python/py-exitedevent.c (create_exited_event_object): Adjust to | |
5354 | hold a reference to an inferior_object. | |
5355 | * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use | |
5356 | inferior_thread. | |
5357 | * python/py-inferior.c (struct inferior_object): Give the type a | |
5358 | tag name instead of a typedef. | |
5359 | (python_on_normal_stop): No need to check if the current thread is | |
5360 | listed. | |
5361 | (inferior_to_inferior_object): Change return type to | |
5362 | inferior_object. All callers adjusted. | |
5363 | (find_thread_object): Delete, bits factored out to ... | |
5364 | (thread_to_thread_object): ... this new function. | |
5365 | * python/py-infthread.c (create_thread_object): Use | |
5366 | inferior_to_inferior_object. | |
5367 | (thpy_is_stopped): Use thread pointer directly. | |
5368 | (gdbpy_selected_thread): Use inferior_thread. | |
5369 | * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete | |
5370 | field, replaced with ... | |
5371 | <thread>: ... this new field. All users adjusted. | |
5372 | (btpy_insn_or_gap_new): Drop const. | |
5373 | (btpy_list_new): Take a thread pointer instead of a ptid_t. All | |
5374 | callers adjusted. | |
5375 | * python/py-record.c: Include "gdbthread.h". | |
5376 | (recpy_insn_new, recpy_func_new): Take a thread pointer instead of | |
5377 | a ptid_t. All callers adjusted. | |
5378 | (gdbpy_current_recording): Use inferior_thread. | |
5379 | * python/py-record.h (recpy_record_object) <ptid>: Delete | |
5380 | field, replaced with ... | |
5381 | <thread>: ... this new field. All users adjusted. | |
5382 | (recpy_element_object) <ptid>: Delete | |
5383 | field, replaced with ... | |
5384 | <thread>: ... this new field. All users adjusted. | |
5385 | (recpy_insn_new, recpy_func_new): Take a thread pointer instead of | |
5386 | a ptid_t. All callers adjusted. | |
5387 | * python/py-threadevent.c: Include "gdbthread.h". | |
5388 | (get_event_thread): Use thread_to_thread_object. | |
5389 | * python/python-internal.h (struct inferior_object): Forward | |
5390 | declare. | |
5391 | (find_thread_object, find_inferior_object): Delete declarations. | |
5392 | (thread_to_thread_object, inferior_to_inferior_object): New | |
5393 | declarations. | |
5394 | * record-btrace.c: Include "inferior.h". | |
5395 | (require_btrace_thread): Use inferior_thread. | |
5396 | (record_btrace_frame_sniffer) | |
5397 | (record_btrace_tailcall_frame_sniffer): Use inferior_thread. | |
5398 | (get_thread_current_frame): Use scoped_restore_current_thread and | |
5399 | switch_to_thread. | |
5400 | (get_thread_current_frame): Use thread pointer directly. | |
5401 | (record_btrace_replay_at_breakpoint): Use thread's inferior | |
5402 | pointer directly. | |
5403 | * record-full.c: Include "inferior.h". | |
5404 | * regcache.c: Include "gdbthread.h". | |
5405 | (get_thread_arch_regcache): Use the inferior's address space | |
5406 | directly. | |
5407 | (get_thread_regcache, registers_changed_thread): New. | |
5408 | * regcache.h (get_thread_regcache(thread_info *thread)): New | |
5409 | overload. | |
5410 | (registers_changed_thread): New. | |
5411 | (remote_target) <remote_detach_1>: Swap order of parameters. | |
5412 | (remote_add_thread): <remote_add_thread>: Return the new thread. | |
5413 | (get_remote_thread_info(ptid_t)): New overload. | |
5414 | (remote_target::remote_notice_new_inferior): Use thread pointers | |
5415 | directly. | |
5416 | (remote_target::process_initial_stop_replies): Use | |
5417 | thread_info::set_running. | |
5418 | (remote_target::remote_detach_1, remote_target::detach) | |
5419 | (extended_remote_target::detach): Adjust. | |
5420 | * stack.c (frame_show_address): Use inferior_thread. | |
5421 | * target-debug.h (target_debug_print_thread_info_pp): New. | |
5422 | * target-delegates.c: Regenerate. | |
5423 | * target.c (default_thread_address_space): Delete. | |
5424 | (memory_xfer_partial_1): Use current_inferior. | |
5425 | (target_detach): Use current_inferior. | |
5426 | (target_thread_address_space): Delete. | |
5427 | (generic_mourn_inferior): Use current_inferior. | |
5428 | * target.h (struct target_ops) <thread_address_space>: Delete. | |
5429 | (target_thread_address_space): Delete. | |
5430 | * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread | |
5431 | pointers directly. | |
5432 | (delete_thread_1, delete_thread, delete_thread_silent): Take a | |
5433 | thread pointer instead of a ptid_t. Adjust all callers. | |
5434 | (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete. | |
5435 | (first_thread_of_process): Delete, replaced by ... | |
5436 | (first_thread_of_inferior): ... this new function. All callers | |
5437 | adjusted. | |
5438 | (any_thread_of_process): Rename to ... | |
5439 | (any_thread_of_inferior): ... this, and take an inferior pointer. | |
5440 | (any_live_thread_of_process): Rename to ... | |
5441 | (any_live_thread_of_inferior): ... this, and take an inferior | |
5442 | pointer. | |
5443 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
5444 | (value_in_thread_stack_temporaries) | |
5445 | (get_last_thread_stack_temporary): Take a thread pointer instead | |
5446 | of a ptid_t. Adjust all callers. | |
5447 | (thread_info::set_running): New. | |
5448 | (validate_registers_access): Use inferior_thread. | |
5449 | (can_access_registers_ptid): Rename to ... | |
5450 | (can_access_registers_thread): ... this, and take a thread | |
5451 | pointer. | |
5452 | (print_thread_info_1): Adjust to compare thread pointers instead | |
5453 | of ptids. | |
5454 | (switch_to_no_thread, switch_to_thread): Make extern. | |
5455 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
5456 | Use m_thread pointer directly. | |
5457 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
5458 | Use inferior_thread. | |
5459 | (thread_command): Use thread pointer directly. | |
5460 | (thread_num_make_value_helper): Use inferior_thread. | |
5461 | * top.c (execute_command): Use inferior_thread. | |
5462 | * tui/tui-interp.c: Include "inferior.h". | |
5463 | * varobj.c (varobj_create): Use inferior_thread. | |
5464 | (value_of_root_1): Use find_thread_global_id instead of | |
5465 | global_thread_id_to_ptid. | |
5466 | ||
33bab475 AH |
5467 | 2018-06-21 Alan Hayward <[email protected]> |
5468 | ||
5469 | * regcache.c (readable_regcache::read_part): Avoid memcpy when | |
5470 | possible. | |
5471 | (regcache::write_part): Likewise. | |
5472 | (readable_regcache::cooked_read_part): Update comment. | |
5473 | (readable_regcache::cooked_write_part): Likewise. | |
5474 | * regcache.h: (readable_regcache::read_part): Likewise. | |
5475 | (regcache::write_part): Likewise. | |
5476 | ||
8363f9d5 RB |
5477 | 2018-06-21 Richard Bunt <[email protected]> |
5478 | Dirk Schubert <[email protected]> | |
5479 | ||
5480 | * aarch64-linux-nat.c (post_attach): New. | |
5481 | (aarch64_linux_nat_target::post_attach): Override post_attach to | |
5482 | record the number of hardware debug registers. | |
5483 | ||
0d0b0ea2 TT |
5484 | 2018-06-20 Tom Tromey <[email protected]> |
5485 | ||
5486 | * python/py-param.c (add_setshow_generic): Make parameters const. | |
5487 | (parmpy_init): Update. | |
5488 | ||
302abd6e SM |
5489 | 2018-06-20 Simon Marchi <[email protected]> |
5490 | ||
5491 | * regcache.h (regcache_cooked_read_ftype): Rename to... | |
5492 | (register_read_ftype): ...this, change type to function_view. | |
5493 | (class reg_buffer) <save>: Remove src parameter. | |
5494 | (readonly_detached_regcache) <readonly_detached_regcache>: Make | |
5495 | parameter non-const in first overload. Remove src parameter in | |
5496 | second overload. | |
5497 | * regcache.c (do_cooked_read): Remove. | |
5498 | (readonly_detached_regcache::readonly_detached_regcache): Make | |
5499 | parameter non-const, adjust call to other constructor. | |
5500 | (reg_buffer::save): Remove src parameter. | |
5501 | * frame.c (do_frame_register_read): Remove. | |
5502 | (frame_save_as_regcache): Use lambda function. | |
5503 | * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src | |
5504 | parameter to ppu2spu_data *. | |
5505 | (ppu2spu_sniffer): Use lambda function. | |
5506 | ||
19f3f25f SM |
5507 | 2018-06-20 Simon Marchi <[email protected]> |
5508 | ||
5509 | * record-full.c (record_full_target::insert_breakpoint): Remove | |
5510 | "struct" keyword, add const. | |
5511 | ||
d0ac1c44 SM |
5512 | 2018-06-19 Simon Marchi <[email protected]> |
5513 | ||
5514 | * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION, | |
5515 | PACKAGE_STRING, PACKAGE_TARNAME): Undefine. | |
5516 | * configure.ac: Remove AC_PREREQ, add missing quoting. | |
5517 | * gnulib/configure.ac: Modernize usage of | |
5518 | AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ. | |
5519 | * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69. | |
5520 | (AUTOMAKE_VERSION): Bump to 1.15.1. | |
5521 | * configure: Re-generate. | |
5522 | * config.in: Re-generate. | |
5523 | * aclocal.m4: Re-generate. | |
5524 | * gnulib/aclocal.m4: Re-generate. | |
5525 | * gnulib/config.in: Re-generate. | |
5526 | * gnulib/configure: Re-generate. | |
5527 | * gnulib/import/Makefile.in: Re-generate. | |
5528 | ||
6ae50267 PA |
5529 | 2018-06-19 Pedro Alves <[email protected]> |
5530 | ||
5531 | * minsyms.c (msym_prefer_to_msym_type): New, factored out from ... | |
5532 | (lookup_minimal_symbol_by_pc_section): ... here with | |
5533 | gdb_assert_not_reached added. | |
5534 | ||
61b04dd0 PA |
5535 | 2018-06-19 Pedro Alves <[email protected]> |
5536 | ||
5537 | * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC | |
5538 | parameter with a block parameter. Compare location's block symbol | |
5539 | with the frame's block instead of addresses. | |
5540 | (skip_inline_frames): Pass the current block instead of the | |
5541 | frame's address. Break out as soon as we determine the frame | |
5542 | should not be skipped. | |
5543 | ||
f709fabb TT |
5544 | 2018-06-18 Tom Tromey <[email protected]> |
5545 | ||
5546 | * solib-aix.c (solib_aix_get_section_offsets): Return | |
5547 | unique_xmalloc_ptr. | |
5548 | (solib_aix_solib_create_inferior_hook): Update. | |
5549 | ||
668eb2f0 TT |
5550 | 2018-06-18 Tom Tromey <[email protected]> |
5551 | ||
5552 | * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr. | |
5553 | ||
309822ca TT |
5554 | 2018-06-18 Tom Tromey <[email protected]> |
5555 | ||
5556 | * solib-frv.c (frv_relocate_main_executable): Use | |
5557 | unique_xmalloc_ptr. | |
5558 | * solib-dsbt.c (dsbt_relocate_main_executable): Use | |
5559 | unique_xmalloc_ptr. | |
5560 | ||
06424eac TT |
5561 | 2018-06-18 Tom Tromey <[email protected]> |
5562 | ||
5563 | * objfiles.h (inhibit_section_map_updates): Update. | |
5564 | (resume_section_map_updates, resume_section_map_updates_cleanup): | |
5565 | Remove. | |
5566 | * solib-svr4.c (svr4_handle_solib_event): Update. | |
5567 | * objfiles.c (inhibit_section_map_updates): Return | |
5568 | scoped_restore_tmpl<int>. | |
5569 | (resume_section_map_updates, resume_section_map_updates_cleanup): | |
5570 | Remove. | |
5571 | ||
b4be9fad TT |
5572 | 2018-06-18 Tom Tromey <[email protected]> |
5573 | ||
5574 | * valprint.h (read_string): Update. | |
5575 | * valprint.c (read_string): Change type of "buffer". | |
5576 | (val_print_string): Update. | |
5577 | * python/py-value.c (valpy_string): Update. | |
5578 | * language.h (struct language_defn) <la_get_string>: Change | |
5579 | type of "buffer". | |
5580 | (default_get_string, c_get_string): Update. | |
5581 | * language.c (default_get_string): Change type of "buffer". | |
5582 | * guile/scm-value.c (gdbscm_value_to_string): Update. | |
5583 | * c-lang.c (c_get_string): Change type of "buffer". | |
5584 | ||
3f0dbd67 TT |
5585 | 2018-06-18 Tom Tromey <[email protected]> |
5586 | ||
5587 | * ser-mingw.c (struct pipe_state_destroyer): New. | |
5588 | (pipe_state_up): New typedef. | |
5589 | (cleanup_pipe_state): Remove. | |
5590 | (pipe_windows_open): Use pipe_state_up. Don't release argv. | |
5591 | ||
69d340c6 TT |
5592 | 2018-06-18 Tom Tromey <[email protected]> |
5593 | ||
5594 | * rust-lang.h (rust_yyerror): Don't declare. | |
5595 | * rust-lang.c (rust_language_defn): Update. | |
5596 | * rust-exp.y (yyerror): Now static. | |
5597 | * parse.c (parse_exp_in_context_1): Update. | |
5598 | * p-lang.h (p_yyerror): Don't declare. | |
5599 | * p-lang.c (p_language_defn): Update. | |
5600 | * p-exp.y (yyerror): Now static. | |
5601 | * opencl-lang.c (opencl_language_defn): Update. | |
5602 | * objc-lang.c (objc_language_defn): Update. | |
5603 | * m2-lang.h (m2_yyerror): Don't declare. | |
5604 | * m2-lang.c (m2_language_defn): Update. | |
5605 | * m2-exp.y (yyerror): Now static. | |
5606 | * language.h (struct language_defn) <la_error>: Remove. | |
5607 | * language.c (unk_lang_error): Remove. | |
5608 | (unknown_language_defn, auto_language_defn): Remove. | |
5609 | * go-lang.h (go_yyerror): Don't declare. | |
5610 | * go-lang.c (go_language_defn): Update. | |
5611 | * go-exp.y (yyerror): Now static. | |
5612 | * f-lang.h (f_yyerror): Don't declare. | |
5613 | * f-lang.c (f_language_defn): Update. | |
5614 | * f-exp.y (yyerror): Now static. | |
5615 | * d-lang.h (d_yyerror): Don't declare. | |
5616 | * d-lang.c (d_language_defn): Update. | |
5617 | * d-exp.y (yyerror): Now static. | |
5618 | * c-lang.h (c_yyerror): Don't declare. | |
5619 | * c-lang.c (c_language_defn, cplus_language_defn) | |
5620 | (asm_language_defn, minimal_language_defn): Update. | |
5621 | * c-exp.y (yyerror): Now static. | |
5622 | * ada-lang.h (ada_yyerror): Don't declare. | |
5623 | * ada-lang.c (ada_language_defn): Update. | |
5624 | * ada-exp.y (yyerror): Now static. | |
5625 | ||
e9902bfc AH |
5626 | 2018-06-18 Alan Hayward <[email protected]> |
5627 | ||
5628 | * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function. | |
5629 | (store_sveregs_to_thread): Likewise. | |
5630 | (aarch64_linux_fetch_inferior_registers): Check for SVE. | |
5631 | (aarch64_linux_store_inferior_registers): Likewise. | |
5632 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New | |
5633 | function. | |
5634 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
5635 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
5636 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New | |
5637 | declaration. | |
5638 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
5639 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
5640 | (sve_context): Structure from Linux headers. | |
5641 | (SVE_SIG_ZREGS_SIZE): Define from Linux headers. | |
5642 | (SVE_SIG_ZREG_SIZE): Likewise. | |
5643 | (SVE_SIG_PREG_SIZE): Likewise. | |
5644 | (SVE_SIG_FFR_SIZE): Likewise. | |
5645 | (SVE_SIG_REGS_OFFSET): Likewise. | |
5646 | (SVE_SIG_ZREGS_OFFSET): Likewise. | |
5647 | (SVE_SIG_ZREG_OFFSET): Likewise. | |
5648 | (SVE_SIG_ZREGS_SIZE): Likewise. | |
5649 | (SVE_SIG_PREGS_OFFSET): Likewise. | |
5650 | (SVE_SIG_PREG_OFFSET): Likewise. | |
5651 | (SVE_SIG_PREGS_SIZE): Likewise. | |
5652 | (SVE_SIG_FFR_OFFSET): Likewise. | |
5653 | (SVE_SIG_REGS_SIZE): Likewise. | |
5654 | (SVE_SIG_CONTEXT_SIZE): Likewise. | |
5655 | (SVE_PT_REGS_MASK): Likewise. | |
5656 | (SVE_PT_REGS_FPSIMD): Likewise. | |
5657 | (SVE_PT_REGS_SVE): Likewise. | |
5658 | (SVE_PT_VL_INHERIT): Likewise. | |
5659 | (SVE_PT_VL_ONEXEC): Likewise. | |
5660 | (SVE_PT_REGS_OFFSET): Likewise. | |
5661 | (SVE_PT_FPSIMD_OFFSET): Likewise. | |
5662 | (SVE_PT_FPSIMD_SIZE): Likewise. | |
5663 | (SVE_PT_SVE_ZREG_SIZE): Likewise. | |
5664 | (SVE_PT_SVE_PREG_SIZE): Likewise. | |
5665 | (SVE_PT_SVE_FFR_SIZE): Likewise. | |
5666 | (SVE_PT_SVE_FPSR_SIZE): Likewise. | |
5667 | (SVE_PT_SVE_FPCR_SIZE): Likewise. | |
5668 | (__SVE_SIG_TO_PT): Likewise. | |
5669 | (SVE_PT_SVE_OFFSET): Likewise. | |
5670 | (SVE_PT_SVE_ZREGS_OFFSET): Likewise. | |
5671 | (SVE_PT_SVE_ZREG_OFFSET): Likewise. | |
5672 | (SVE_PT_SVE_ZREGS_SIZE): Likewise. | |
5673 | (SVE_PT_SVE_PREGS_OFFSET): Likewise. | |
5674 | (SVE_PT_SVE_PREG_OFFSET): Likewise. | |
5675 | (SVE_PT_SVE_PREGS_SIZE): Likewise. | |
5676 | (SVE_PT_SVE_FFR_OFFSET): Likewise. | |
5677 | (SVE_PT_SVE_FPSR_OFFSET): Likewise. | |
5678 | (SVE_PT_SVE_FPCR_OFFSET): Likewise. | |
5679 | (SVE_PT_SVE_SIZE): Likewise. | |
5680 | (SVE_PT_SIZE): Likewise. | |
5681 | (HAS_SVE_STATE): New define. | |
5682 | ||
17a1cc89 AH |
5683 | 2018-06-18 Alan Hayward <[email protected]> |
5684 | ||
5685 | * nat/aarch64-sve-linux-sigcontext.h: New file. | |
5686 | * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to | |
5687 | new files. | |
5688 | (SVE_VQ_MIN): Likewise. | |
5689 | (SVE_VQ_MAX): Likewise. | |
5690 | (SVE_VL_MIN): Likewise. | |
5691 | (SVE_VL_MAX): Likewise. | |
5692 | (SVE_NUM_ZREGS): Likewise. | |
5693 | (SVE_NUM_PREGS): Likewise. | |
5694 | (sve_vl_valid): Likewise. | |
5695 | (struct user_sve_header): Likewise. | |
5696 | ||
7010835a AB |
5697 | 2018-06-16 Andrew Burgess <[email protected]> |
5698 | Richard Bunt <[email protected]> | |
5699 | ||
5700 | * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it | |
5701 | was requested by GDB. | |
5702 | ||
479b3ef4 TV |
5703 | 2018-06-15 Tom de Vries <[email protected]> |
5704 | ||
5705 | * MAINTAINERS (Write After Approval): Add Tom de Vries. | |
5706 | ||
8199b8f4 SM |
5707 | 2018-06-14 Simon Marchi <[email protected]> |
5708 | ||
5709 | * gnulib/update-gnulib.sh: Print expected versions of | |
5710 | autoconf/aclocal. | |
5711 | ||
55c748a1 SM |
5712 | 2018-06-14 Simon Marchi <[email protected]> |
5713 | ||
5714 | * arch-utils.c (default_type_align): Use type_length_units. | |
5715 | * gdbtypes.c (type_align): Use type_length_units. | |
5716 | ||
87a8eca7 PW |
5717 | 2018-06-14 Philippe Waroquiers <[email protected]> |
5718 | ||
5719 | * cli/cli-script.c (_initialize_cli_script): Fix online documentation | |
5720 | of 'define' command. | |
5721 | ||
5d9a0608 TV |
5722 | 2018-06-14 Tom de Vries <[email protected]> |
5723 | ||
5724 | PR cli/22573 | |
5725 | * infcmd.c (print_return_value_1): Use get_user_print_options instead of | |
5726 | get_no_prettyformat_print_options. | |
5727 | ||
ab89b5a5 SM |
5728 | 2018-06-13 Simon Marchi <[email protected]> |
5729 | ||
5730 | * sparc-nat.h: Include target.h. | |
5731 | * sparc64-linux-nat.c (class sparc64_linux_nat_target) | |
5732 | <fetch_registers>: Remove this argument in function call. | |
5733 | <store_registers>: Remove this argument in function call, remove | |
5734 | extra semicolon. | |
5735 | <low_forget_process>: Call sparc64_forget_process instead of | |
5736 | sparc_forget_process. | |
5737 | ||
62c808ae RO |
5738 | 2018-06-13 Rainer Orth <[email protected]> |
5739 | ||
5740 | * procfs.c (_initialize_procfs): Use add_inf_child_target. | |
5741 | (procfs_target::make_corefile_notes): Adjust to new | |
5742 | target_read_alloc return type. | |
5743 | ||
1840d81a AB |
5744 | 2018-06-12 Andrew Burgess <[email protected]> |
5745 | Stephen Roberts <[email protected]> | |
5746 | ||
5747 | PR gdb/22882 | |
5748 | * infrun.c (fetch_inferior_event): If GDB is not proceeding then | |
5749 | run INF_EXEC_COMPLETE handler, even when not calling normal_stop. | |
5750 | Move should_notify_stop local into more inner scope. | |
5751 | ||
9516f85a AB |
5752 | 2018-06-12 Andrew Burgess <[email protected]> |
5753 | Stephen Roberts <[email protected]> | |
5754 | ||
5755 | PR gdb/22882 | |
5756 | * infrun.c (resume_1): Add call to mark_async_event_handler. | |
5757 | ||
defd2172 AB |
5758 | 2018-06-12 Andrew Burgess <[email protected]> |
5759 | ||
5760 | * infrun.c (do_target_wait): Change old version of $pc printed. | |
5761 | ||
7b23e087 SM |
5762 | 2018-06-11 Simon Marchi <[email protected]> |
5763 | ||
5764 | * dwarf2read.c (read_index_from_section): Rename to... | |
5765 | (read_gdb_index_from_section): ... this, update all callers. | |
5766 | (dwarf2_read_index): Rename to... | |
5767 | (dwarf2_read_gdb_index): ... this, update all callers. | |
5768 | ||
69c67a0b JDA |
5769 | 2018-06-11 John David Anglin <[email protected]> |
5770 | ||
5771 | * gdb/hppa-linux-nat.c | |
5772 | (hppa_linux_nat_target::fetch_inferior_registers): Rename to | |
5773 | hppa_linux_nat_target::fetch_registers. | |
5774 | ||
65d4cada AH |
5775 | 2018-06-11 Alan Hayward <[email protected]> |
5776 | ||
5777 | * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings. | |
5778 | * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define. | |
5779 | (AARCH64_DWARF_SVE_FFR): Likewise. | |
5780 | (AARCH64_DWARF_SVE_P0): Likewise. | |
5781 | (AARCH64_DWARF_SVE_Z0): Likewise. | |
5782 | ||
f868386e AH |
5783 | 2018-06-11 Alan Hayward <[email protected]> |
5784 | ||
5785 | * common/common-regcache.h (raw_compare): New function. | |
5786 | * regcache.c (regcache::raw_compare): Likewise. | |
5787 | * regcache.h (regcache::raw_compare): New declaration. | |
5788 | ||
9c861883 AH |
5789 | 2018-06-11 Alan Hayward <[email protected]> |
5790 | ||
5791 | * common/common-regcache.h (reg_buffer_common): New structure. | |
5792 | * regcache.c (reg_buffer::invalidate): Move from detached_regcache. | |
5793 | (reg_buffer::raw_supply): Likewise. | |
5794 | (reg_buffer::raw_supply_integer): Likewise. | |
5795 | (reg_buffer::raw_supply_zeroed): Likewise. | |
5796 | (reg_buffer::raw_collect): Likewise. | |
5797 | (reg_buffer::raw_collect_integer): Likewise. | |
5798 | * regcache.h (reg_buffer::invalidate): Move from detached_regcache. | |
5799 | (reg_buffer::raw_supply): Likewise. | |
5800 | (reg_buffer::raw_supply_integer): Likewise. | |
5801 | (reg_buffer::raw_supply_zeroed): Likewise. | |
5802 | (reg_buffer::raw_collect): Likewise. | |
5803 | (reg_buffer::raw_collect_integer): Likewise. | |
5804 | ||
953edf2b TT |
5805 | 2018-06-10 Tom Tromey <[email protected]> |
5806 | ||
5807 | * remote.c (stop_reply_p): Remove typedef. Don't declare queue. | |
5808 | (class remote_state) <stop_reply_queue>: Now std::vector. | |
5809 | (remote_state::~remote_state) | |
5810 | (remote_target::stop_reply_queue_length): Update. | |
5811 | (struct queue_iter_param, remove_child_of_pending_fork) | |
5812 | (struct check_pending_event_prevents_wildcard_vcont_callback_data) | |
5813 | (check_pending_event_prevents_wildcard_vcont_callback) | |
5814 | (remove_stop_reply_for_inferior) | |
5815 | (remove_stop_reply_of_remote_state) | |
5816 | (remote_notif_remove_once_on_match) | |
5817 | (stop_reply_match_ptid_and_ws) | |
5818 | (remote_kill_child_of_pending_fork): Remove. | |
5819 | (remote_target::remove_new_fork_children) | |
5820 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
5821 | (remote_target::discard_pending_stop_replies) | |
5822 | (remote_target::discard_pending_stop_replies_in_queue) | |
5823 | (remote_target::remote_notif_remove_queued_reply) | |
5824 | (remote_target::queued_stop_reply) | |
5825 | (remote_target::push_stop_reply, remote_target::peek_stop_reply) | |
5826 | (remote_target::wait, remote_target::kill_new_fork_children) | |
5827 | (remote_target::async): Update. | |
5828 | ||
1ddbba9d TT |
5829 | 2018-06-10 Tom Tromey <[email protected]> |
5830 | ||
5831 | * record-full.c (record_full_arch_list_cleanups): Remove. | |
5832 | (record_full_message): Use try/catch. | |
5833 | (record_full_wait_cleanups): Remove. | |
5834 | (record_full_wait_1): Use try/catch. | |
5835 | (record_full_restore): Likewise. | |
5836 | ||
219605fd TT |
5837 | 2018-06-10 Tom Tromey <[email protected]> |
5838 | ||
5839 | * record-full.c (record_full_breakpoint_p): Remove typedef. Don't | |
5840 | declare VEC. Add constructor. | |
5841 | <in_target_beneath>: Now bool. | |
5842 | (record_full_breakpoints): Now a std::vector, static. | |
5843 | (record_full_sync_record_breakpoints) | |
5844 | (record_full_init_record_breakpoints) | |
5845 | (record_full_target::insert_breakpoint) | |
5846 | (record_full_target::remove_breakpoint): Update. Don't use XNEW. | |
5847 | ||
71b73764 SM |
5848 | 2018-06-10 Simon Marchi <[email protected]> |
5849 | ||
5850 | * dwarf2read.c (process_cu_includes): Remove struct keyword. | |
5851 | * serial.c (serial_interface_lookup): Remove struct keyword. | |
5852 | ||
4360561f TT |
5853 | 2018-06-10 Tom Tromey <[email protected]> |
5854 | ||
5855 | * procfs.c (procfs_target::xfer_partial): Use "beneath" as a | |
5856 | method. | |
5857 | * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as | |
5858 | a method. | |
5859 | * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a | |
5860 | method. | |
5861 | * arm-linux-nat.c (arm_linux_nat_target::read_description): Use | |
5862 | "beneath" as a method. | |
5863 | * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description): | |
5864 | Use "beneath" as a method. | |
5865 | ||
d14b92bf TT |
5866 | 2018-06-10 Tom Tromey <[email protected]> |
5867 | ||
5868 | * tracefile.c (struct trace_file_writer_deleter): New. | |
5869 | <operator()>: Rename from trace_file_writer_xfree. | |
5870 | (trace_file_writer_up): New typedef. | |
5871 | (tsave_command, trace_save_tfile, trace_save_ctf): Update. | |
5872 | ||
835dcf92 SM |
5873 | 2018-06-09 Simon Marchi <[email protected]> |
5874 | ||
5875 | * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor. | |
5876 | <m_registers, m_register_status>: Change type to | |
5877 | std::unique_ptr. | |
5878 | * regcache.c (reg_buffer::reg_buffer): Use new instead of | |
5879 | XCNEWVEC. | |
5880 | ||
aac0d564 SM |
5881 | 2018-06-09 Simon Marchi <[email protected]> |
5882 | ||
5883 | * common/common-regcache.h (enum register_status): Add | |
5884 | underlying type "signed char". | |
5885 | * regcache.h (reg_buffer) <m_register_status>: Change type to | |
5886 | register_status *. | |
5887 | * regcache.c (reg_buffer::reg_buffer): Alocate arrays of | |
5888 | register_status instead of signed char. | |
5889 | (reg_buffer::save): Use REG_UNKNOWN instead of 0. | |
5890 | (reg_buffer::get_register_status): Remove cast. | |
5891 | (readable_regcache::raw_read): Remove cast. | |
5892 | (readable_regcache::cooked_read): Remove cast. | |
5893 | ||
77ad7394 TT |
5894 | 2018-06-09 Tom Tromey <[email protected]> |
5895 | ||
5896 | * source.c (reverse_search_command, forward_search_command): Use | |
5897 | scoped_fd. | |
5898 | ||
191cca63 TT |
5899 | 2018-06-09 Tom Tromey <[email protected]> |
5900 | ||
5901 | * serial.c (serial_ops_p): Remove typedef. Don't declare VEC. | |
5902 | (serial_ops_list): Now static, std::vector. | |
5903 | (serial_interface_lookup, serial_add_interface): Update. | |
5904 | ||
c5d0225d TT |
5905 | 2018-06-09 Tom Tromey <[email protected]> |
5906 | ||
5907 | * dwarf2read.c (process_cu_includes): Update. | |
5908 | (process_full_comp_unit): Update. | |
5909 | * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a | |
5910 | std::vector. | |
5911 | ||
aeab5128 PK |
5912 | 2018-06-08 Paul Koning <[email protected]> |
5913 | ||
5914 | PR gdb/23252 | |
5915 | ||
5916 | * python/python.c (do_start_initialization): | |
5917 | Avoid call to internal Python API. | |
5918 | (init__gdb_module): New function. | |
5919 | ||
5045b3d7 GB |
5920 | 2018-06-08 Gary Benson <[email protected]> |
5921 | ||
5922 | * linux-thread-db.c (valprint.h): New include. | |
5923 | (struct check_thread_db_info): New structure. | |
5924 | (check_thread_db_on_load, tdb_testinfo): New static globals. | |
5925 | (check_thread_db, check_thread_db_callback): New functions. | |
5926 | (try_thread_db_load_1): Run integrity checks if requested. | |
5927 | (maintenance_check_libthread_db): New function. | |
5928 | (_initialize_thread_db): Register "maint check libthread-db" | |
5929 | and "maint set/show check-libthread-db". | |
5930 | * NEWS: Mention the above new commands. | |
5931 | ||
2f4f025f TT |
5932 | 2018-06-08 Tom Tromey <[email protected]> |
5933 | ||
5934 | * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is | |
5935 | now a method. | |
5936 | ||
343b0027 TT |
5937 | 2018-06-08 Tom Tromey <[email protected]> |
5938 | ||
5939 | * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr. | |
5940 | ||
8dcc53b3 TT |
5941 | 2018-06-08 Tom Tromey <[email protected]> |
5942 | ||
5943 | * common/btrace-common.h (struct btrace_data): Add constructor, | |
5944 | destructor, move assignment operator. | |
5945 | <empty, clear, fini>: New methods. | |
5946 | <format>: Initialize. | |
5947 | (btrace_data_init, btrace_data_fini, btrace_data_clear) | |
5948 | (btrace_data_empty): Don't declare. | |
5949 | * common/btrace-common.c (btrace_data_init): Remove. | |
5950 | (btrace_data::fini): Rename from btrace_data_fini. | |
5951 | (btrace_data::empty): Rename from btrace_data_empty. | |
5952 | (btrace_data::clear): Rename from btrace_data_clear. Return | |
5953 | bool. | |
5954 | * btrace.h (make_cleanup_btrace_data): Don't declare. | |
5955 | * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear) | |
5956 | (parse_xml_btrace): Update. | |
5957 | (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove. | |
5958 | (maint_btrace_clear_packet_history_cmd): Update. | |
5959 | ||
a1740ee1 PA |
5960 | 2018-06-07 Pedro Alves <[email protected]> |
5961 | ||
5962 | * target.h (target_ops) <beneath>: Now a method. All references | |
5963 | updated. | |
5964 | (class target_stack): New. | |
5965 | * target.c (g_target_stack): New. | |
5966 | (g_current_top_target): Delete. | |
5967 | (current_top_target): Get the top target out of g_target_stack. | |
5968 | (target_stack::push, target_stack::unpush): New. | |
5969 | (push_target, unpush_target): Reimplement. | |
5970 | (target_is_pushed): Reimplement in terms of g_target_stack. | |
5971 | (target_ops::beneath, target_stack::find_beneath): New. | |
5972 | ||
d6ca69cd PA |
5973 | 2018-06-07 Pedro Alves <[email protected]> |
5974 | ||
5975 | * target.h (find_target_beneath): Delete declaration. | |
5976 | * target.c (find_target_beneath): Delete definition. | |
5977 | * aix-thread.c: All callers of find_target_beneath adjusted to | |
5978 | call target_ops::beneath instead. | |
5979 | * bsd-uthread.c: Likewise. | |
5980 | * linux-thread-db.c: Likewise. | |
5981 | * ravenscar-thread.c: Likewise. | |
5982 | * sol-thread.c: Likewise. | |
5983 | * spu-multiarch.c: Likewise. | |
5984 | ||
b6a8c27b PA |
5985 | 2018-06-07 Pedro Alves <[email protected]> |
5986 | ||
5987 | * target.h (target_ops) <beneath>: Now a method. All references | |
5988 | updated. | |
5989 | (target_ops) <m_beneath>: New. | |
5990 | * target.c (target_ops::beneath): New. | |
5991 | * corelow.c: Adjust all references to target_ops::beneath. | |
5992 | * linux-thread-db.c: Likewise. | |
5993 | * make-target-delegates: Likewise. | |
5994 | * record-btrace.c: Likewise. | |
5995 | * record-full.c: Likewise. | |
5996 | * remote.c: Likewise. | |
5997 | * target.c: Likewise. | |
5998 | * target-delegates.c: Regenerate. | |
5999 | ||
8b88a78e PA |
6000 | 2018-06-07 Pedro Alves <[email protected]> |
6001 | ||
6002 | * target.h (target_stack): Delete. | |
6003 | (current_top_target): Declare function. | |
6004 | * target.c (target_stack): Delete. | |
6005 | (g_current_top_target): New. | |
6006 | (current_top_target): New function. | |
6007 | * auxv.c: Use current_top_target instead of target_stack | |
6008 | throughout. | |
6009 | * avr-tdep.c: Likewise. | |
6010 | * breakpoint.c: Likewise. | |
6011 | * corefile.c: Likewise. | |
6012 | * elfread.c: Likewise. | |
6013 | * eval.c: Likewise. | |
6014 | * exceptions.c: Likewise. | |
6015 | * frame.c: Likewise. | |
6016 | * gdbarch-selftests.c: Likewise. | |
6017 | * gnu-v3-abi.c: Likewise. | |
6018 | * ia64-tdep.c: Likewise. | |
6019 | * ia64-vms-tdep.c: Likewise. | |
6020 | * infcall.c: Likewise. | |
6021 | * infcmd.c: Likewise. | |
6022 | * infrun.c: Likewise. | |
6023 | * linespec.c: Likewise. | |
6024 | * linux-tdep.c: Likewise. | |
6025 | * minsyms.c: Likewise. | |
6026 | * ppc-linux-nat.c: Likewise. | |
6027 | * ppc-linux-tdep.c: Likewise. | |
6028 | * procfs.c: Likewise. | |
6029 | * regcache.c: Likewise. | |
6030 | * remote.c: Likewise. | |
6031 | * rs6000-tdep.c: Likewise. | |
6032 | * s390-linux-nat.c: Likewise. | |
6033 | * s390-tdep.c: Likewise. | |
6034 | * solib-aix.c: Likewise. | |
6035 | * solib-darwin.c: Likewise. | |
6036 | * solib-dsbt.c: Likewise. | |
6037 | * solib-spu.c: Likewise. | |
6038 | * solib-svr4.c: Likewise. | |
6039 | * solib-target.c: Likewise. | |
6040 | * sparc-tdep.c: Likewise. | |
6041 | * sparc64-tdep.c: Likewise. | |
6042 | * spu-tdep.c: Likewise. | |
6043 | * symfile.c: Likewise. | |
6044 | * symtab.c: Likewise. | |
6045 | * target-descriptions.c: Likewise. | |
6046 | * target-memory.c: Likewise. | |
6047 | * target.c: Likewise. | |
6048 | * target.h: Likewise. | |
6049 | * tracefile-tfile.c: Likewise. | |
6050 | * tracepoint.c: Likewise. | |
6051 | * valops.c: Likewise. | |
6052 | * valprint.c: Likewise. | |
6053 | * value.c: Likewise. | |
6054 | * windows-tdep.c: Likewise. | |
6055 | * mi/mi-main.c: Likewise. | |
6056 | ||
c7110220 TT |
6057 | 2018-06-07 Tom Tromey <[email protected]> |
6058 | ||
6059 | * valprint.h (build_address_symbolic): Declare. | |
6060 | * printcmd.c (print_address_symbolic): Update. | |
6061 | (build_address_symbolic): Change "name" and "filename" to | |
6062 | std::string. | |
6063 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): | |
6064 | Update. | |
6065 | * defs.h (build_address_symbolic): Remove declaration. | |
6066 | ||
63bad7b6 AH |
6067 | 2018-06-07 Alan Hayward <[email protected]> |
6068 | ||
6069 | * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define. | |
6070 | (aarch64_vnv_type): Add function. | |
6071 | (aarch64_pseudo_register_name): Add V regs for SVE. | |
6072 | (aarch64_pseudo_register_type): Likewise. | |
6073 | (aarch64_pseudo_register_reggroup_p): Likewise. | |
6074 | (aarch64_pseudo_read_value_2): Use V0 offset for SVE | |
6075 | (aarch64_pseudo_read_value): Add V regs for SVE. | |
6076 | (aarch64_pseudo_write_2): Use V0 offset for SVE | |
6077 | (aarch64_pseudo_write): Add V regs for SVE. | |
6078 | * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type. | |
6079 | ||
13e3c608 SDJ |
6080 | 2018-06-06 Sergio Durigan Junior <[email protected]> |
6081 | ||
6082 | * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef. | |
6083 | (sve_vl_from_vq): Likewise. | |
6084 | ||
c61b06a1 TT |
6085 | 2018-06-05 Tom Tromey <[email protected]> |
6086 | ||
6087 | * cli/cli-cmds.c (show_version): Update. | |
6088 | * top.c (print_gdb_version): Add "interactive" parameter. | |
6089 | Update. | |
6090 | * main.c (captured_main_1): Update. | |
6091 | * top.h (print_gdb_version): Add "interactive" parameter and a | |
6092 | comment. | |
6093 | ||
115f7325 DM |
6094 | 2018-06-05 David Malcolm <[email protected]> |
6095 | ||
6096 | * common/enum-flags.h: Add trailing semicolon to example in | |
6097 | comment. | |
6098 | ||
eb6af809 TT |
6099 | 2018-06-05 Tom Tromey <[email protected]> |
6100 | ||
6101 | PR cli/12326: | |
6102 | * NEWS: Add entry about pager. | |
6103 | * utils.c (pagination_disabled_for_command): New global. | |
6104 | (prompt_for_continue): Allow "c" response to prompt. | |
6105 | (reinitialize_more_filter): Clear | |
6106 | pagination_disabled_for_command. | |
6107 | (fputs_maybe_filtered): Check pagination_disabled_for_command. | |
6108 | ||
54d343a2 TT |
6109 | 2018-06-04 Tom Tromey <[email protected]> |
6110 | ||
6111 | * ada-lang.h (ada_lookup_symbol_list): Update. | |
6112 | * ada-lang.c (resolve_subexp): Update. | |
6113 | (symbols_are_identical_enums): Change type of syms. Remove nsyms | |
6114 | parameter. | |
6115 | (remove_extra_symbols, remove_irrelevant_renamings): Likewise. | |
6116 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change | |
6117 | results parameter to std::vector. | |
6118 | (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value): | |
6119 | Update. | |
6120 | * ada-exp.y (block_lookup): Update. | |
6121 | (select_possible_type_sym): Change type of syms. Remove nsyms | |
6122 | parameter. | |
6123 | (write_var_or_type, write_name_assoc): Update. | |
6124 | ||
178d6a63 JB |
6125 | 2018-06-04 Joel Brobecker <[email protected]> |
6126 | ||
6127 | * windows-nat.c (windows_nat_target::xfer_partial): Return | |
6128 | TARGET_XFER_E_IO if we need to delegate to the target beneath | |
6129 | but BENEATH is NULL. | |
6130 | ||
baf00c2d SM |
6131 | 2018-06-04 Simon Marchi <[email protected]> |
6132 | ||
6133 | * Makefile.in (config.status): Add configure.nat as a | |
6134 | dependency. | |
6135 | ||
214b073c TT |
6136 | 2018-06-04 Tom Tromey <[email protected]> |
6137 | ||
6138 | * cp-name-parser.y (cpname_state): Add method declarations. | |
6139 | (HANDLE_QUAL): Update. | |
6140 | (cpname_state::d_grab, cpname_state::fill_comp) | |
6141 | (cpname_state::make_operator, cpname_state::make_dtor) | |
6142 | (cpname_state::make_builtin_type, cpname_state::make_name) | |
6143 | (cpname_state::d_qualify, cpname_state::d_int_type) | |
6144 | (cpname_state::d_unary, cpname_state::d_binary): Now methods. | |
6145 | (%union): Move earlier. | |
6146 | ||
62b74cb8 AH |
6147 | 2018-06-04 Alan Hayward <[email protected]> |
6148 | ||
6149 | * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT. | |
6150 | ||
3c5cd5c3 AH |
6151 | 2018-06-04 Alan Hayward <[email protected]> |
6152 | ||
6153 | * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func. | |
6154 | (aarch64_pseudo_write_1): Likewise. | |
6155 | (aarch64_pseudo_read_value): Use helper. | |
6156 | (aarch64_pseudo_write): Likewise. | |
6157 | ||
59f413d5 PA |
6158 | 2018-06-04 Pedro Alves <[email protected]> |
6159 | ||
6160 | * darwin-nat.c (darwin_ops): Delete. | |
6161 | (darwin_attach_pid): Use get_native_target. | |
6162 | ||
1332a140 AH |
6163 | 2018-06-04 Alan Hayward <[email protected]> |
6164 | ||
6165 | * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ. | |
6166 | * aarch64-tdep.h (struct gdbarch_tdep): Likewise. | |
6167 | ||
ba2d2bb2 AH |
6168 | 2018-06-04 Alan Hayward <[email protected]> |
6169 | ||
6170 | * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE. | |
6171 | * aarch64-tdep.c (aarch64_get_tdesc_vq): New function. | |
6172 | (aarch64_gdbarch_init): Check for SVE. | |
6173 | * aarch64-tdep.h (gdbarch_tdep::has_sve): New function. | |
6174 | ||
6175 | 2018-06-04 Alan Hayward <[email protected]> | |
39bfb937 AH |
6176 | |
6177 | * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ. | |
6178 | * aarch64-tdep.h (aarch64_read_description): Likewise. | |
6179 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
6180 | * arch/aarch64.h (aarch64_create_target_description): Likewise. | |
6181 | * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise. | |
6182 | * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise. | |
6183 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise. | |
6184 | ||
41c60b4b SM |
6185 | 2018-06-02 Simon Marchi <[email protected]> |
6186 | ||
6187 | * value.c (value_fetch_lazy_bitfield): New. | |
6188 | (value_fetch_lazy_memory): New. | |
6189 | (value_fetch_lazy_register): New. | |
6190 | (value_fetch_lazy): Factor out to smaller functions. | |
6191 | ||
7b640f72 TT |
6192 | 2018-06-01 Tom Tromey <[email protected]> |
6193 | ||
6194 | * cp-name-parser.y (backslashable, represented): Now const. | |
6195 | ||
98e69eb3 TT |
6196 | 2018-06-01 Tom Tromey <[email protected]> |
6197 | ||
6198 | * cp-name-parser.y: Include parser-defs.h. | |
6199 | (parser_fprintf): Remove declaration. | |
6200 | ||
49265499 TT |
6201 | 2018-06-01 Tom Tromey <[email protected]> |
6202 | ||
6203 | * cp-name-parser.y: Use %pure-parser, %lex-param, and | |
6204 | %parse-param. | |
6205 | (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info) | |
6206 | (global_result): Remove globals. | |
6207 | (struct cpname_state): New. | |
6208 | (yyparse): Don't declare. | |
6209 | (yylex, yyerror): Move declarations after %union. | |
6210 | (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type) | |
6211 | (make_name): Add state parameter. | |
6212 | Update all callers. | |
6213 | (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state | |
6214 | parameter. | |
6215 | (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3): | |
6216 | Update. | |
6217 | (yylex): Add lvalp, state parameters. | |
6218 | (yyerror): Add state parameter. | |
6219 | (cp_demangled_name_to_comp): Update. | |
6220 | ||
55b6c984 TT |
6221 | 2018-06-01 Tom Tromey <[email protected]> |
6222 | ||
6223 | * cp-name-parser.y (parser_fprintf): Declare. | |
6224 | (GDB_YY_REMAP_PREFIX): Define. | |
6225 | Include yy-remap.h. Don't redefine yy* identifiers. | |
6226 | ||
3513a6bb TT |
6227 | 2018-06-01 Tom Tromey <[email protected]> |
6228 | ||
6229 | * python/py-type.c (typy_legacy_template_argument): Update. | |
6230 | * cp-support.h (cp_demangled_name_to_comp): Update. | |
6231 | * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg | |
6232 | parameter to be a "std::string *". | |
6233 | (main): Update. | |
6234 | ||
e9cb46ab L |
6235 | 2018-06-01 H.J. Lu <[email protected]> |
6236 | ||
6237 | * ada-lex.l: Include "diagnostics.h" instead of | |
6238 | "common/diagnostics.h". | |
6239 | * unittests/environ-selftests.c: Likewise. | |
6240 | * common/diagnostics.h: Moved to ../include. | |
6241 | ||
8e817061 JB |
6242 | 2018-06-01 Joel Brobecker <[email protected]> |
6243 | ||
6244 | * breakpoint.c (breakpoint_re_set): Temporarily force language_mode | |
6245 | to language_mode_manual while calling breakpoint_re_set_one. | |
6246 | ||
a737d952 TT |
6247 | 2018-06-01 Tom Tromey <[email protected]> |
6248 | ||
6249 | * valops.c (value_cast_structs, destructor_name_p): Update. | |
6250 | * symtab.c (gdb_mangle_name): Update. | |
6251 | * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses): | |
6252 | Update. | |
6253 | * p-valprint.c (pascal_object_is_vtbl_ptr_type) | |
6254 | (pascal_object_print_value_fields, pascal_object_print_value): | |
6255 | Update. | |
6256 | * p-typeprint.c (pascal_type_print_derivation_info): Update. | |
6257 | * linespec.c (find_methods): Update. | |
6258 | * gdbtypes.h (type_name_no_tag): Remove. | |
6259 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
6260 | * gdbtypes.c (type_name_no_tag): Remove. | |
6261 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
6262 | (lookup_struct_elt_type, check_typedef): Update. | |
6263 | * expprint.c (print_subexp_standard): Update. | |
6264 | * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update. | |
6265 | * d-namespace.c (d_lookup_nested_symbol): Update. | |
6266 | * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields) | |
6267 | (cp_print_class_member): Update. | |
6268 | * cp-namespace.c (cp_lookup_nested_symbol): Update. | |
6269 | * completer.c (add_struct_fields): Update. | |
6270 | * c-typeprint.c (cp_type_print_derivation_info) | |
6271 | (c_type_print_varspec_prefix, c_type_print_base_struct_union): | |
6272 | Update. | |
6273 | * ada-lang.c (parse_old_style_renaming, xget_renaming_scope) | |
6274 | (ada_prefer_type, ada_is_exception_sym): Update. | |
6275 | ||
e86ca25f TT |
6276 | 2018-06-01 Tom Tromey <[email protected]> |
6277 | ||
6278 | * valops.c (enum_constant_from_type, value_namespace_elt) | |
6279 | (value_maybe_namespace_elt): Update. | |
6280 | * valarith.c (find_size_for_pointer_math): Update. | |
6281 | * target-descriptions.c (make_gdb_type): Update. | |
6282 | * symmisc.c (print_symbol): Update. | |
6283 | * stabsread.c (define_symbol, read_type) | |
6284 | (complain_about_struct_wipeout, add_undefined_type) | |
6285 | (cleanup_undefined_types_1): Update. | |
6286 | * rust-lang.c (rust_tuple_type_p, rust_slice_type_p) | |
6287 | (rust_range_type_p, val_print_struct, rust_print_struct_def) | |
6288 | (rust_internal_print_type, rust_composite_type) | |
6289 | (rust_evaluate_funcall, rust_evaluate_subexp) | |
6290 | (rust_inclusive_range_type_p): Update. | |
6291 | * python/py-type.c (typy_get_tag): Update. | |
6292 | * p-typeprint.c (pascal_type_print_base): Update. | |
6293 | * mdebugread.c (parse_symbol, parse_type): Update. | |
6294 | * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum): | |
6295 | Update. | |
6296 | * guile/scm-type.c (gdbscm_type_tag): Update. | |
6297 | * go-lang.c (sixg_string_p): Update. | |
6298 | * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type): | |
6299 | Update. | |
6300 | * gdbtypes.h (struct main_type) <tag_name>: Remove. | |
6301 | (TYPE_TAG_NAME): Remove. | |
6302 | * gdbtypes.c (type_name_no_tag): Simplify. | |
6303 | (check_typedef, check_types_equal, recursive_dump_type) | |
6304 | (copy_type_recursive, arch_composite_type): Update. | |
6305 | * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix | |
6306 | in summary mode when needed. | |
6307 | * eval.c (evaluate_funcall): Update. | |
6308 | * dwarf2read.c (fixup_go_packaging, read_structure_type) | |
6309 | (process_structure_scope, read_enumeration_type) | |
6310 | (read_namespace_type, read_module_type, determine_prefix): Update. | |
6311 | * cp-support.c (inspect_type): Update. | |
6312 | * coffread.c (process_coff_symbol, decode_base_type): Update. | |
6313 | * c-varobj.c (c_is_path_expr_parent): Update. | |
6314 | * c-typeprint.c (c_type_print_base_struct_union): Update. | |
6315 | (c_type_print_base_1): Update. Print struct/class/union/enum in | |
6316 | summary when using C language. | |
6317 | * ax-gdb.c (gen_struct_ref, gen_namespace_elt) | |
6318 | (gen_maybe_namespace_elt): Update. | |
6319 | * ada-lang.c (ada_type_name): Simplify. | |
6320 | (empty_record, ada_template_to_fixed_record_type_1) | |
6321 | (template_to_static_fixed_type) | |
6322 | (to_record_with_fixed_variant_part, ada_check_typedef): Update. | |
6323 | ||
c1ec8cea TT |
6324 | 2018-06-01 Tom Tromey <[email protected]> |
6325 | ||
6326 | * dwarf2read.c (dwarf2_compute_name): Pass CU's language to | |
6327 | c_print_type. | |
6328 | * c-typeprint.c (c_print_type_1): Add "language" parameter. | |
6329 | (c_print_type): Update. | |
6330 | (c_print_type): New overload. | |
6331 | (c_type_print_varspec_prefix, c_type_print_args) | |
6332 | (c_type_print_varspec_suffix, c_print_type_no_offsets) | |
6333 | (c_type_print_base_struct_union, c_type_print_base_1) | |
6334 | (cp_type_print_method_args): Add "language" parameter. | |
6335 | (c_type_print_base): Update. | |
6336 | * c-lang.h (c_print_type): Add new overload. | |
6337 | ||
bc8453a7 TT |
6338 | 2018-06-01 Tom Tromey <[email protected]> |
6339 | ||
6340 | * typeprint.h (c_type_print_varspec_suffix): Don't declare. | |
6341 | * c-typeprint.c (c_type_print_varspec_suffix): Now static. | |
6342 | ||
739e8682 AH |
6343 | 2018-06-01 Alan Hayward <[email protected]> |
6344 | ||
6345 | * aarch64-tdep.c (aarch64_sve_register_names): New const | |
6346 | var. | |
6347 | * arch/aarch64.h (enum aarch64_regnum): Add SVE entries. | |
6348 | (AARCH64_SVE_Z_REGS_NUM): New define. | |
6349 | (AARCH64_SVE_P_REGS_NUM): Likewise. | |
6350 | (AARCH64_SVE_NUM_REGS): Likewise. | |
6351 | ||
8a60efe7 UB |
6352 | 2018-05-31 Uros Bizjak <[email protected]> |
6353 | ||
6354 | * nat/linux-ptrace.h [__alpha__] | |
6355 | (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove | |
6356 | definitions. | |
6357 | ||
4b2dfa9d MR |
6358 | 2018-05-31 Maciej W. Rozycki <[email protected]> |
6359 | ||
6360 | * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to | |
6361 | the endianness selected. | |
6362 | * NEWS: Document `set endian auto' mode operation update. | |
6363 | ||
122394f1 AH |
6364 | 2018-05-31 Alan Hayward <[email protected]> |
6365 | ||
6366 | * Makefile.in: Add new header. | |
6367 | * gdb/arch/aarch64.h (sve_vg_from_vl): New macro. | |
6368 | (sve_vl_from_vg): Likewise. | |
6369 | (sve_vq_from_vl): Likewise. | |
6370 | (sve_vl_from_vq): Likewise. | |
6371 | (sve_vq_from_vg): Likewise. | |
6372 | (sve_vg_from_vq): Likewise. | |
6373 | * configure.nat: Add new c file. | |
6374 | * nat/aarch64-sve-linux-ptrace.c: New file. | |
6375 | * nat/aarch64-sve-linux-ptrace.h: New file. | |
6376 | ||
95228a0d AH |
6377 | 2018-05-31 Alan Hayward <[email protected]> |
6378 | ||
6379 | * aarch64-linux-nat.c (aarch64_linux_read_description): | |
6380 | Add parmeter zero. | |
6381 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
6382 | Likewise. | |
6383 | * aarch64-tdep.c (tdesc_aarch64_list): Add. | |
6384 | (aarch64_read_description): Use VQ to index tdesc_aarch64_list. | |
6385 | (aarch64_gdbarch_init): Add parmeter zero. | |
6386 | * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter. | |
6387 | * arch/aarch64.c (aarch64_create_target_description): Check VQ. | |
6388 | * arch/aarch64.h (aarch64_create_target_description): Add VQ. | |
6389 | parmeter. | |
6390 | * doc/gdb.texinfo: Describe SVE feature | |
6391 | * features/aarch64-sve.c: New file. | |
6392 | ||
5969f0db OJ |
6393 | 2018-05-31 Omair Javaid <[email protected]> |
6394 | ||
6395 | PR gdb/23210 | |
6396 | * gdbarch.sh (significant_addr_bit): Default to zero when | |
6397 | not set by target architecture. | |
6398 | * gdbarch.c: Re-generated. | |
6399 | * utils.c (address_significant): Update. | |
6400 | ||
61367c61 JB |
6401 | 2018-05-30 Joel Brobecker <[email protected]> |
6402 | ||
6403 | * stack.c (func_command): Remove trailing newline in call to error. | |
6404 | ||
34a79281 SM |
6405 | 2018-05-30 Simon Marchi <[email protected]> |
6406 | ||
6407 | * regcache.h (regcache_raw_collect): Remove, update callers to | |
6408 | use regcache::raw_collect. | |
6409 | * regcache.c (regcache_raw_collect): Remove. | |
6410 | ||
73e1c03f SM |
6411 | 2018-05-30 Simon Marchi <[email protected]> |
6412 | ||
6413 | * regcache.h (regcache_raw_supply): Remove, update callers to | |
6414 | use detached_regcache::raw_supply. | |
6415 | * regcache.c (regcache_raw_supply): Remove. | |
6416 | ||
e4c4a59b SM |
6417 | 2018-05-30 Simon Marchi <[email protected]> |
6418 | ||
6419 | * regcache.h (regcache_cooked_write_part): Remove, update | |
6420 | callers to use regcache::cooked_write_part. | |
6421 | * regcache.c (regcache_cooked_write_part): Remove. | |
6422 | ||
73bb0000 SM |
6423 | 2018-05-30 Simon Marchi <[email protected]> |
6424 | ||
6425 | * regcache.h (regcache_cooked_read_part): Remove, update callers | |
6426 | to use readable_regcache::cooked_read_part. | |
6427 | * regcache.c (regcache_cooked_read_part): Remove. | |
6428 | ||
46a45e9d SM |
6429 | 2018-05-30 Simon Marchi <[email protected]> |
6430 | ||
6431 | * regcache.h (regcache_cooked_read_value): Remove, update | |
6432 | callers to use readable_regcache::cooked_read_value. | |
6433 | * regcache.c (regcache_cooked_read_value): Remove. | |
6434 | ||
b66f5587 SM |
6435 | 2018-05-30 Simon Marchi <[email protected]> |
6436 | ||
6437 | * regcache.h (regcache_cooked_write): Remove, update callers to | |
6438 | use regcache::cooked_write. | |
6439 | * regcache.c (regcache_cooked_write): Remove. | |
6440 | ||
6aa7d724 SM |
6441 | 2018-05-30 Simon Marchi <[email protected]> |
6442 | ||
6443 | * regcache.h (regcache_invalidate): Remove, update callers to | |
6444 | use detached_regcache::invalidate instead. | |
6445 | * regcache.c (regcache_invalidate): Remove. | |
6446 | ||
4f0420fd SM |
6447 | 2018-05-30 Simon Marchi <[email protected]> |
6448 | ||
6449 | * regcache.h (regcache_raw_write_part): Remove, update callers | |
6450 | to use regcache::raw_write_part instead. | |
6451 | * regcache.c (regcache_raw_write_part): Remove. | |
6452 | ||
502fe83e SM |
6453 | 2018-05-30 Simon Marchi <[email protected]> |
6454 | ||
6455 | * regcache.h (regcache_raw_read_part): Remove, update callers to | |
6456 | use readable_regcache::raw_read_part instead. | |
6457 | * regcache.c (regcache_raw_read_part): Remove. | |
6458 | ||
dca08e1f SM |
6459 | 2018-05-30 Simon Marchi <[email protected]> |
6460 | ||
6461 | * regcache.h (regcache_cooked_read): Remove, update callers to | |
6462 | use readable_regcache::cooked_read instead. | |
6463 | * regcache.c (regcache_cooked_read): Remove. | |
6464 | ||
10eaee5f SM |
6465 | 2018-05-30 Simon Marchi <[email protected]> |
6466 | ||
6467 | * regcache.h (regcache_raw_write): Remove, update callers to use | |
6468 | regcache::raw_write instead. | |
6469 | * regcache.c (regcache_raw_write): Remove. | |
6470 | ||
0b883586 SM |
6471 | 2018-05-30 Simon Marchi <[email protected]> |
6472 | ||
6473 | * regcache.h (regcache_raw_read): Remove, update callers to use | |
6474 | readable_regcache::raw_read instead. | |
6475 | * regcache.c (regcache_raw_read): Remove. | |
6476 | ||
0b47d985 SM |
6477 | 2018-05-30 Simon Marchi <[email protected]> |
6478 | ||
6479 | * regcache.h (regcache_raw_update): Remove, update callers to | |
6480 | use readable_regcache::raw_update instead. | |
6481 | * regcache.c (regcache_raw_update): Remove. | |
6482 | ||
0ec9f114 SM |
6483 | 2018-05-30 Simon Marchi <[email protected]> |
6484 | ||
6485 | * regcache.h (regcache_register_status): Remove, update callers | |
6486 | to use reg_buffer::get_register_status directly instead. | |
6487 | * regcache.c (regcache_register_status): Remove. | |
6488 | ||
222312d3 SM |
6489 | 2018-05-30 Simon Marchi <[email protected]> |
6490 | ||
6491 | * regcache.h (regcache_get_ptid): Remove, update all callers to | |
6492 | call regcache::ptid instead. | |
6493 | * regcache.c (regcache_get_ptid): Remove. | |
6494 | ||
fdbe37e3 SM |
6495 | 2018-05-30 Simon Marchi <[email protected]> |
6496 | ||
6497 | * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o. | |
6498 | ||
f7c6f423 PA |
6499 | 2018-05-30 Pedro Alves <[email protected]> |
6500 | ||
6501 | * common/common-exceptions.h (exception_rethrow): Use | |
6502 | ATTRIBUTE_NORETURN. | |
6503 | ||
52941706 SM |
6504 | 2018-05-29 Simon Marchi <[email protected]> |
6505 | ||
6506 | * breakpoint.c (print_solib_event, check_status_catch_solib): | |
6507 | Remove struct keyword in range-based for loops. | |
6508 | * dbxread.c (find_corresponding_bincl_psymtab): Likewise. | |
6509 | * dwarf2read.c (compute_delayed_physnames, rust_union_quirks); | |
6510 | Likewise. | |
6511 | * linespec.c (find_superclass_methods, search_minsyms_for_name): | |
6512 | Likewise. | |
6513 | * symfile.c (addr_info_make_relative): Likewise. | |
6514 | * thread.c (value_in_thread_stack_temporaries): Likewise. | |
6515 | ||
bf2977b5 WP |
6516 | 2018-06-12 Weimin Pan <[email protected]> |
6517 | ||
6518 | PR gdb/16841 | |
6519 | * valops.c (value_struct_elt_for_reference): Call check_typedef on | |
6520 | aggregate type to get its real type before accessing it. | |
6521 | ||
64cc34d8 WP |
6522 | 2018-05-29 Weimin Pan <[email protected]> |
6523 | ||
6524 | * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration. | |
6525 | * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition. | |
6526 | * coff-pe-read.c (add_pe_forwarded_sym): Replace | |
6527 | lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol. | |
6528 | * glibc-tdep.c (glibc_skip_solib_resolver): Likewise. | |
6529 | * jit.c (jit_breakpoint_re_set_internal): Likewise. | |
6530 | * printcmd.c (info_address_command): Likewise. | |
6531 | ||
e7ec8713 TT |
6532 | 2018-05-29 Tom Tromey <[email protected]> |
6533 | ||
6534 | * windows-nat.c (handle_exception): Update fall-through comment. | |
6535 | ||
bcb430e4 TT |
6536 | 2018-05-29 Tom Tromey <[email protected]> |
6537 | ||
6538 | * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC. | |
6539 | (struct program_space) <added_solibs>: Now a std::vector. | |
6540 | * breakpoint.c (print_solib_event): Update. | |
6541 | (check_status_catch_solib): Update. | |
6542 | * progspace.c (clear_program_space_solib_cache): Update. | |
6543 | * solib.c (update_solib_list): Update. | |
6544 | ||
894882e3 TT |
6545 | 2018-05-29 Tom Tromey <[email protected]> |
6546 | ||
6547 | * python/py-type.c (typy_richcompare): Update. | |
6548 | * guile/scm-type.c (tyscm_equal_p_type_smob): Update. | |
6549 | * gdbtypes.h (types_deeply_equal): Return bool. | |
6550 | (types_equal): Likewise. | |
6551 | * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't | |
6552 | declare VEC. | |
6553 | (check_types_equal): Change worklist to std::vector. Return | |
6554 | bool. | |
6555 | (struct type_equality_entry): Add constructor. | |
6556 | (compare_maybe_null_strings): Return bool. | |
6557 | (check_types_worklist): Return bool. Change worklist to | |
6558 | std::vector. | |
6559 | (types_deeply_equal): Use std::vector. | |
6560 | (types_equal): Return bool. | |
6561 | (compare_maybe_null_strings): Simplify. | |
6562 | ||
10b2ded4 TT |
6563 | 2018-05-29 Tom Tromey <[email protected]> |
6564 | ||
6565 | * record-btrace.c (tp_t): Remove typedef. Don't declare VEC. | |
6566 | ||
4f7deebe TT |
6567 | 2018-05-29 Tom Tromey <[email protected]> |
6568 | ||
6569 | * objc-lang.h: Don't include cp-support.h. | |
6570 | * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't | |
6571 | declare VEC. | |
6572 | ||
b8283aea TT |
6573 | 2018-05-27 Tom Tromey <[email protected]> |
6574 | ||
6575 | * Makefile.in (DEPFILES): Don't reference REMOTE_OBS. | |
6576 | ||
41a883c8 TT |
6577 | 2018-05-25 Tom Tromey <[email protected]> |
6578 | ||
6579 | * value.c (value::location): Initialize. | |
6580 | ||
bf259e25 TT |
6581 | 2018-05-25 Tom Tromey <[email protected]> |
6582 | ||
6583 | * dbxread.c (init_bincl_list): Remove. | |
6584 | (bincl_list): Now a std::vector. | |
6585 | (bincls_allocated, next_bincl): Remove. | |
6586 | (free_bincl_list, do_free_bincl_list_cleanup) | |
6587 | (make_cleanup_free_bincl_list): Remove. | |
6588 | (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore, | |
6589 | unique_xmalloc_ptr. | |
6590 | (find_corresponding_bincl_psymtab, read_dbx_symtab): Update. | |
6591 | (struct header_file_location): Add constructor. | |
6592 | (add_bincl_to_list): Remove. | |
6593 | ||
d525a99b TT |
6594 | 2018-05-25 Tom Tromey <[email protected]> |
6595 | ||
6596 | * tui/tui.c (tui_enable): Update. | |
6597 | * mi/mi-interp.c (mi_interp::init): Update. | |
6598 | * interps.h (class interp) <name>: New method. | |
6599 | <m_name>: Rename from name. | |
6600 | (~scoped_restore_interp): Update. | |
6601 | * interps.c (interp::interp): Update. | |
6602 | (interp_add, interp_set, interp_lookup_existing) | |
6603 | (current_interp_named_p): Update. | |
6604 | ||
da505cff TT |
6605 | 2018-05-25 Tom Tromey <[email protected]> |
6606 | ||
6607 | * interps.c (interp_name): Remove. | |
6608 | * mi/mi-interp.c (mi_interp::init): Update. | |
6609 | * interps.h (interp_name): Remove. | |
6610 | (~scoped_restore_interp): Update. | |
6611 | * tui/tui.c (tui_enable): Update. | |
6612 | ||
29f94340 TT |
6613 | 2018-05-25 Tom Tromey <[email protected]> |
6614 | ||
6615 | * utils.c (fputs_maybe_filtered): Update. | |
6616 | * linespec.c (decode_line_full): Update. | |
6617 | * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified) | |
6618 | (mi_print_breakpoint_for_event, mi_solib_loaded) | |
6619 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
6620 | (mi_user_selected_context_changed): Update. | |
6621 | * mi/mi-main.c (mi_execute_command): Update. | |
6622 | * cli/cli-script.c (execute_control_command): Update. | |
6623 | * python/python.c (execute_gdb_command): Update. | |
6624 | * solib.c (info_sharedlibrary_command): Update. | |
6625 | * interps.c (interp_ui_out): Remove. | |
6626 | * interps.h (interp_ui_out): Remove. | |
6627 | ||
716b8bc5 TT |
6628 | 2018-05-25 Tom Tromey <[email protected]> |
6629 | ||
6630 | * tui/tui-interp.c (as_tui_interp): Use dynamic_cast. | |
6631 | * mi/mi-interp.c (as_mi_interp): Use dynamic_cast. | |
6632 | * cli/cli-interp.c (as_cli_interp): Use dynamic_cast. | |
6633 | ||
753ff9bd TT |
6634 | 2018-05-25 Tom Tromey <[email protected]> |
6635 | ||
6636 | * cli/cli-interp.c (safe_execute_command): Use scoped_restore. | |
6637 | * interps.c (interp_exec): Use scoped_restore. | |
6638 | ||
5ca3b260 TT |
6639 | 2018-05-25 Tom Tromey <[email protected]> |
6640 | ||
6641 | * remote.c (remote_target::remote_file_get): Use | |
6642 | gdb::byte_vector. | |
6643 | (remote_target::remote_file_put): Likewise. | |
6644 | ||
3173aa2f TT |
6645 | 2018-05-25 Tom Tromey <[email protected]> |
6646 | ||
6647 | * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now | |
6648 | a std::string. | |
6649 | (get_pe_section_index, add_pe_exported_sym): Update. | |
6650 | (read_pe_exported_syms): Use gdb::def_vector. | |
6651 | ||
09a5e1b5 TT |
6652 | 2018-05-25 Tom Tromey <[email protected]> |
6653 | ||
6654 | * frame.c (remove_prev_frame): Remove. | |
6655 | (get_prev_frame_if_no_cycle): Use TRY/CATCH. | |
6656 | ||
d8dab6c3 MR |
6657 | 2018-05-25 Maciej W. Rozycki <[email protected]> |
6658 | ||
6659 | * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset): | |
6660 | Remove prototypes. | |
6661 | * mips-linux-nat.c (supply_fpregset): Always call | |
6662 | `mips64_supply_fpregset' rather than `mips_supply_fpregset'. | |
6663 | (fill_fpregset): Always call `mips64_fill_fpregset' rather than | |
6664 | `mips_fill_fpregset'. | |
6665 | * mips-linux-tdep.c (mips_supply_fpregset) | |
6666 | (mips_supply_fpregset_wrapper, mips_fill_fpregset) | |
6667 | (mips_fill_fpregset_wrapper): Remove functions. | |
6668 | (mips64_supply_fpregset, mips64_fill_fpregset): Update comments. | |
6669 | (mips_linux_fpregset): Remove variable. | |
6670 | (mips_linux_iterate_over_regset_sections): Use | |
6671 | `mips64_linux_fpregset' in place of `mips_linux_fpregset'. | |
6672 | (mips_linux_o32_sigframe_init): Remove comment. | |
6673 | ||
3c69da40 PA |
6674 | 2018-05-25 Pedro Alves <[email protected]> |
6675 | ||
6676 | * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS) | |
6677 | (struct readahead_cache, struct packet_reg, struct | |
6678 | remote_arch_state, class remote_state): Move higher up in the | |
6679 | file. | |
6680 | (remote_target::m_remote_state): Now an object instead of a pointer. | |
6681 | (remote_target::get_remote_state): Adjust. | |
6682 | ||
39f0c204 AB |
6683 | 2018-05-24 Andrew Burgess <[email protected]> |
6684 | ||
6685 | * stack.c (select_and_print_frame): Delete. | |
6686 | (struct function_bounds): Move struct within function. | |
6687 | (func_command): Most content moved into new function | |
6688 | find_frame_for_function, use new function, print result, add | |
6689 | function comment. | |
6690 | (find_frame_for_function): New function, now returns a result. | |
6691 | ||
d392224a PW |
6692 | 2018-05-24 Philippe Waroquiers <[email protected]> |
6693 | ||
6694 | * stack.c (iterate_over_block_arg_vars): Fix comment. | |
6695 | (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout. | |
6696 | ||
45f25d6c AB |
6697 | 2018-05-24 Andrew Burgess <[email protected]> |
6698 | ||
6699 | PR gdb/23203 | |
6700 | * frame.c | |
6701 | (scoped_restore_selected_frame::scoped_restore_selected_frame): | |
6702 | Define. | |
6703 | (scoped_restore_selected_frame::~scoped_restore_selected_frame): | |
6704 | Define. | |
6705 | * frame.h (class scoped_restore_selected_frame): New class. | |
6706 | * stack.c (print_frame_local_vars): Remove catching and rethrowing | |
6707 | of any exception, use scoped_restore_selected_frame to restore the | |
6708 | frame instead. | |
6709 | ||
da05d921 PA |
6710 | 2018-05-24 Pedro Alves <[email protected]> |
6711 | ||
6712 | * darwin-nat.h (darwin_nat_target::create_inferior): Mark with | |
6713 | override. | |
6714 | ||
a8be540e TT |
6715 | 2018-05-23 Tom Tromey <[email protected]> |
6716 | ||
6717 | * complaints.c (struct complaints): Remove. | |
6718 | (symfile_complaint_book): Remove. | |
6719 | (series): New global. | |
6720 | (complaint_internal): Update. | |
6721 | (clear_complaints): Update. | |
6722 | ||
ff1cf532 TT |
6723 | 2018-05-23 Tom Tromey <[email protected]> |
6724 | ||
6725 | * complaints.c (counters): New global. | |
6726 | (struct complain): Remove. | |
6727 | (struct complaints) <root>: Remove. | |
6728 | (complaint_sentinel): Remove. | |
6729 | (symfile_complaint_book): Update. | |
6730 | (find_complaint) Remove. | |
6731 | (complaint_internal, clear_complaints): Update. | |
6732 | ||
7ff88174 TT |
6733 | 2018-05-23 Tom Tromey <[email protected]> |
6734 | ||
6735 | * complaints.c (struct complain) <file, line>: Remove. | |
6736 | (find_complaint): Remove file, line parameters. | |
6737 | (complaint_internal): Update. | |
6738 | ||
de54e1a5 TT |
6739 | 2018-05-23 Tom Tromey <[email protected]> |
6740 | ||
6741 | * complaints.c (vcomplaint): Remove. | |
6742 | (complaint_internal) Merge in contents of vcomplaint. | |
6743 | ||
2ac237e5 TT |
6744 | 2018-05-23 Tom Tromey <[email protected]> |
6745 | ||
6746 | * complaints.c (struct complaints) <explanation>: Remove. | |
6747 | (symfile_explanations): Remove. | |
6748 | (symfile_complaint_book): Update. | |
6749 | (vcomplaint): Update. | |
6750 | (struct explanation): Remove. | |
6751 | ||
b98664d3 TT |
6752 | 2018-05-23 Tom Tromey <[email protected]> |
6753 | ||
6754 | * complaints.c (symfile_complaints): Remove. | |
6755 | (complaint_internal): Remove "complaints" parameter. | |
6756 | (clear_complaints, vcomplaint): Remove "c" parameter. | |
6757 | (get_complaints): Remove. | |
6758 | * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint) | |
6759 | (dwarf2_debug_line_missing_file_complaint) | |
6760 | (dwarf2_debug_line_missing_end_sequence_complaint) | |
6761 | (dwarf2_complex_location_expr_complaint) | |
6762 | (dwarf2_const_value_length_mismatch_complaint) | |
6763 | (dwarf2_section_buffer_overflow_complaint) | |
6764 | (dwarf2_macro_malformed_definition_complaint) | |
6765 | (dwarf2_invalid_attrib_class_complaint) | |
6766 | (create_addrmap_from_index, dw2_symtab_iter_next) | |
6767 | (dw2_expand_marked_cus) | |
6768 | (dw2_debug_names_iterator::find_vec_in_debug_names) | |
6769 | (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next) | |
6770 | (create_debug_type_hash_table, init_cutu_and_read_dies) | |
6771 | (partial_die_parent_scope, add_partial_enumeration) | |
6772 | (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die) | |
6773 | (dwarf2_compute_name, dwarf2_physname, read_namespace_alias) | |
6774 | (read_import_statement, read_file_scope, create_dwo_cu_reader) | |
6775 | (create_cus_hash_table, create_dwp_hash_table) | |
6776 | (inherit_abstract_dies, read_func_scope, read_call_site_scope) | |
6777 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
6778 | (dwarf2_add_type_defn, dwarf2_attach_fields_to_type) | |
6779 | (dwarf2_add_member_fn, get_alignment, maybe_set_alignment) | |
6780 | (handle_struct_member_die, process_structure_scope) | |
6781 | (read_array_type, read_common_block, read_module_type) | |
6782 | (read_tag_pointer_type, read_typedef, read_base_type) | |
6783 | (read_subrange_type, load_partial_dies, partial_die_info::read) | |
6784 | (partial_die_info::read, partial_die_info::read) | |
6785 | (partial_die_info::read, read_checked_initial_length_and_offset) | |
6786 | (dwarf2_string_attr, read_formatted_entries) | |
6787 | (dwarf_decode_line_header) | |
6788 | (lnp_state_machine::check_line_address, dwarf_decode_lines_1) | |
6789 | (new_symbol, dwarf2_const_value_attr, lookup_die_type) | |
6790 | (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset) | |
6791 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
6792 | (get_signatured_type, get_DW_AT_signature_type) | |
6793 | (decode_locdesc, file_file_name, consume_improper_spaces) | |
6794 | (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header) | |
6795 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
6796 | (dwarf2_symbol_mark_computed, set_die_type) | |
6797 | (read_attribute_value): Update. | |
6798 | * stap-probe.c (handle_stap_probe, get_stap_base_address): | |
6799 | Update. | |
6800 | * dbxread.c (unknown_symtype_complaint) | |
6801 | (lbrac_mismatch_complaint, repeated_header_complaint) | |
6802 | (set_namestring, function_outside_compilation_unit_complaint) | |
6803 | (read_dbx_symtab, process_one_symbol): Update. | |
6804 | * gdbtypes.c (stub_noname_complaint): Update. | |
6805 | * windows-nat.c (handle_unload_dll): Update. | |
6806 | * coffread.c (coff_symtab_read, enter_linenos, decode_type) | |
6807 | (decode_base_type): Update. | |
6808 | * xcoffread.c (bf_notfound_complaint, ef_complaint) | |
6809 | (eb_complaint, record_include_begin, record_include_end) | |
6810 | (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab) | |
6811 | (process_xcoff_symbol, read_symbol) | |
6812 | (function_outside_compilation_unit_complaint) | |
6813 | (scan_xcoff_symtab): Update. | |
6814 | * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update. | |
6815 | * buildsym.c (finish_block_internal, make_blockvector) | |
6816 | (end_symtab_get_static_block, augment_type_symtab): Update. | |
6817 | * dtrace-probe.c (dtrace_process_dof) | |
6818 | (dtrace_static_probe_ops::get_probes): Update. | |
6819 | * complaints.h (struct complaint): Don't declare. | |
6820 | (symfile_complaints): Remove. | |
6821 | (complaint_internal): Remove "complaints" parameter. | |
6822 | (complaint): Likewise. | |
6823 | (clear_complaints): Likewise. | |
6824 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
6825 | (reread_symbols): Update. | |
6826 | * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) | |
6827 | (dwarf2_frame_cache, decode_frame_entry): Update. | |
6828 | * dwarf2loc.c (dwarf_reg_to_regnum): Update. | |
6829 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
6830 | (info_selectors_command): Update. | |
6831 | * macrotab.c (macro_include, check_for_redefinition) | |
6832 | (macro_undef): Update. | |
6833 | * objfiles.c (filter_overlapping_sections): Update. | |
6834 | * stabsread.c (invalid_cpp_abbrev_complaint) | |
6835 | (reg_value_complaint, stabs_general_complaint, dbx_lookup_type) | |
6836 | (define_symbol, error_type, read_type, rs6000_builtin_type) | |
6837 | (stabs_method_name_from_physname, read_member_functions) | |
6838 | (read_cpp_abbrev, read_baseclasses, read_tilde_fields) | |
6839 | (attach_fields_to_type, complain_about_struct_wipeout) | |
6840 | (read_range_type, read_args, common_block_start) | |
6841 | (common_block_end, cleanup_undefined_types_1, scan_file_globals): | |
6842 | Update. | |
6843 | * mdebugread.c (index_complaint, unknown_ext_complaint) | |
6844 | (basic_type_complaint, bad_tag_guess_complaint) | |
6845 | (bad_rfd_entry_complaint, unexpected_type_code_complaint) | |
6846 | (reg_value_complaint, parse_symbol, parse_type, upgrade_type) | |
6847 | (parse_procedure, parse_lines) | |
6848 | (function_outside_compilation_unit_complaint) | |
6849 | (parse_partial_symbols, psymtab_to_symtab_1, cross_ref) | |
6850 | (bad_tag_guess_complaint, reg_value_complaint): Update. | |
6851 | * cp-support.c (demangled_name_complaint): Update. | |
6852 | * macroscope.c (sal_macro_scope): Update. | |
6853 | * dwarf-index-write.c (class debug_names): Update. | |
6854 | ||
4e9668d0 TT |
6855 | 2018-05-23 Tom Tromey <[email protected]> |
6856 | ||
6857 | * complaints.c (clear_complaints): Remove "noisy" parameter. | |
6858 | * complaints.h (clear_complaints): Update. | |
6859 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
6860 | (reread_symbols): Update. | |
6861 | ||
43ba33c7 TT |
6862 | 2018-05-23 Tom Tromey <[email protected]> |
6863 | ||
6864 | * complaints.c (enum complaint_series): Remove FIRST_MESSAGE, | |
6865 | SUBSEQUENT_MESSAGE. | |
6866 | (vcomplaint, clear_complaints): Update. | |
6867 | (symfile_explanations): Remove some messages. | |
6868 | ||
2b9496b2 TT |
6869 | 2018-05-23 Tom Tromey <[email protected]> |
6870 | ||
6871 | * complaints.c (internal_complaint): Remove. | |
6872 | * complaints.h (internal_complaint): Remove. | |
6873 | ||
35f1fea3 MR |
6874 | 2018-05-22 Maciej W. Rozycki <[email protected]> |
6875 | ||
6876 | * i387-tdep.c (i387_collect_xsave): Make `i' unsigned. | |
6877 | ||
6b8edb51 PA |
6878 | 2018-05-22 Pedro Alves <[email protected]> |
6879 | ||
6880 | * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror) | |
6881 | (remote_fileio_badfd, remote_fileio_return_errno) | |
6882 | (remote_fileio_return_success, remote_fileio_func_open) | |
6883 | (remote_fileio_func_open, remote_fileio_func_close) | |
6884 | (remote_fileio_func_read, remote_fileio_func_write) | |
6885 | (remote_fileio_func_lseek, remote_fileio_func_rename) | |
6886 | (remote_fileio_func_unlink, remote_fileio_func_stat) | |
6887 | (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) | |
6888 | (remote_fileio_func_isatty, remote_fileio_func_system): Add | |
6889 | remote_target parameter. | |
6890 | (remote_fio_func_map) <func>: Add remote_target parameter. | |
6891 | (do_remote_fileio_request, remote_fileio_request): | |
6892 | * remote-fileio.h (remote_fileio_request): | |
6893 | * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add | |
6894 | remote_target parameter. | |
6895 | (remote_notif_process, handle_notification): Adjust to pass down | |
6896 | the remote. | |
6897 | (remote_notif_state_allocate): Add remote_target parameter. Save | |
6898 | it. | |
6899 | * remote-notif.h (struct remote_target): Forward declare. | |
6900 | (struct notif_client) <parse, ack, can_get_pending_events>: Add | |
6901 | remote_target parameter. | |
6902 | (struct remote_notif_state) <remote>: New field. | |
6903 | (remote_notif_ack, remote_notif_parse): Add remote_target | |
6904 | parameter. | |
6905 | (remote_notif_state_allocate, remote_notif_state_allocate): Add | |
6906 | remote_target parameter. | |
6907 | * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info) | |
6908 | (threads_listing_context, rmt_thread_action, protocol_feature) | |
6909 | (packet_reg, stop_reply, stop_reply_p, enum packet_support) | |
6910 | (packet_result, struct threads_listing_context, remote_state): | |
6911 | Move definitions and declarations higher up. | |
6912 | (remote_target) <~remote_target>: Declare. | |
6913 | (remote_download_command_source, remote_file_put, remote_file_get) | |
6914 | (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite) | |
6915 | (remote_hostio_pread_vFile, remote_hostio_send_command) | |
6916 | (remote_hostio_set_filesystem, remote_hostio_open) | |
6917 | (remote_hostio_close, remote_hostio_unlink, remote_state) | |
6918 | (get_remote_state, get_remote_packet_size, get_memory_packet_size) | |
6919 | (get_memory_write_packet_size, get_memory_read_packet_size) | |
6920 | (append_pending_thread_resumptions, remote_detach_1) | |
6921 | (append_resumption, remote_resume_with_vcont) | |
6922 | (add_current_inferior_and_thread, wait_ns, wait_as) | |
6923 | (process_stop_reply, remote_notice_new_inferior) | |
6924 | (process_initial_stop_replies, remote_add_thread) | |
6925 | (btrace_sync_conf, remote_btrace_maybe_reopen) | |
6926 | (remove_new_fork_children, kill_new_fork_children) | |
6927 | (discard_pending_stop_replies, stop_reply_queue_length) | |
6928 | (check_pending_events_prevent_wildcard_vcont) | |
6929 | (discard_pending_stop_replies_in_queue, stop_reply) | |
6930 | (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply) | |
6931 | (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns) | |
6932 | (remote_interrupt_as, remote_interrupt_ns) | |
6933 | (remote_get_noisy_reply, remote_query_attached) | |
6934 | (remote_add_inferior, remote_current_thread, get_current_thread) | |
6935 | (set_thread, set_general_thread, set_continue_thread) | |
6936 | (set_general_process, write_ptid) | |
6937 | (remote_unpack_thread_info_response, remote_get_threadinfo) | |
6938 | (parse_threadlist_response, remote_get_threadlist) | |
6939 | (remote_threadlist_iterator, remote_get_threads_with_ql) | |
6940 | (remote_get_threads_with_qxfer) | |
6941 | (remote_get_threads_with_qthreadinfo, extended_remote_restart) | |
6942 | (get_offsets, remote_check_symbols, remote_supported_packet) | |
6943 | (remote_query_supported, remote_packet_size) | |
6944 | (remote_serial_quit_handler, remote_detach_pid) | |
6945 | (remote_vcont_probe, remote_resume_with_hc) | |
6946 | (send_interrupt_sequence, interrupt_query) | |
6947 | (remote_notif_get_pending_events, fetch_register_using_p) | |
6948 | (send_g_packet, process_g_packet, fetch_registers_using_g) | |
6949 | (store_register_using_P, store_registers_using_G) | |
6950 | (set_remote_traceframe, check_binary_download) | |
6951 | (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1) | |
6952 | (remote_xfer_live_readonly_partial, remote_read_bytes) | |
6953 | (remote_send_printf, remote_flash_write, readchar) | |
6954 | (remote_serial_write, putpkt, putpkt_binary, skip_frame) | |
6955 | (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane) | |
6956 | (getpkt_or_notif_sane, remote_vkill, remote_kill_k) | |
6957 | (extended_remote_disable_randomization, extended_remote_run) | |
6958 | (send_environment_packet, extended_remote_environment_support) | |
6959 | (extended_remote_set_inferior_cwd, remote_write_qxfer) | |
6960 | (remote_read_qxfer, push_stop_reply, vcont_r_supported) | |
6961 | (packet_command): Now methods of ... | |
6962 | (remote_target): ... this class. | |
6963 | (m_remote_state) <remote_target>: New field. | |
6964 | (struct remote_state) <stop_reply_queue, | |
6965 | remote_async_inferior_event_token, wait_forever_enabled_p>: New | |
6966 | fields. | |
6967 | (remote_state::remote_state): Allocate stop_reply_queue. | |
6968 | (remote_state): Delete global. | |
6969 | (get_remote_state_raw): Delete. | |
6970 | (remote_target::get_remote_state): Allocate m_remote_state on | |
6971 | demand. | |
6972 | (get_current_remote_target): New. | |
6973 | (remote_ops, extended_remote_ops): Delete. | |
6974 | (wait_forever_enabled_p, remote_async_inferior_event_token): | |
6975 | Delete, moved to struct remote_state. | |
6976 | (remote_target::close): Delete self. Destruction bits split to | |
6977 | ... | |
6978 | (remote_target::~remote_target): ... this. | |
6979 | (show_memory_packet_size): Adjust to use | |
6980 | get_current_remote_target. | |
6981 | (struct protocol_feature) <func>: Add remote_target parameter. | |
6982 | All callers adjusted. | |
6983 | (curr_quit_handler_target): New. | |
6984 | (remote_serial_quit_handler): Reimplement. | |
6985 | (remote_target::open_1): Adjust to use get_current_remote_target. | |
6986 | Heap-allocate remote_target/extended_remote_target instances. | |
6987 | (vcont_builder::vcont_builder): Add remote_target parameter, and | |
6988 | save it in m_remote. All callers adjusted. | |
6989 | (vcont_builder::m_remote): New field. | |
6990 | (vcont_builder::restart, vcont_builder::flush) | |
6991 | (vcont_builder::push_action): Use it. | |
6992 | (remote_target::commit_resume): Use it. | |
6993 | (struct queue_iter_param) <remote>: New field. | |
6994 | (remote_target::remove_new_fork_children): Fill in 'remote' field. | |
6995 | (check_pending_event_prevents_wildcard_vcont_callback_data): New. | |
6996 | (check_pending_event_prevents_wildcard_vcont_callback) | |
6997 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
6998 | (remote_target::discard_pending_stop_replies) | |
6999 | (remote_target::discard_pending_stop_replies_in_queue) | |
7000 | (remote_target::remote_notif_remove_queued_reply): Fill in | |
7001 | 'remote' field. | |
7002 | (remote_notif_get_pending_events): New. | |
7003 | (remote_target::readchar, remote_target::remote_serial_write): | |
7004 | Save/restore curr_quit_handler_target. | |
7005 | (putpkt): New. | |
7006 | (kill_new_fork_children): Fill in 'remote' field. | |
7007 | (packet_command): Use get_current_remote_target, defer to | |
7008 | remote_target method of same name. | |
7009 | (scoped_remote_fd::scoped_remote_fd): Add 'remote_target' | |
7010 | parameter, and save it in m_remote. All callers adjusted. | |
7011 | (scoped_remote_fd::release): Use m_remote. | |
7012 | (scoped_remote_fd::m_remote): New field. | |
7013 | (remote_file_put, remote_file_get, remote_file_delete): Use | |
7014 | get_current_remote_target, defer to remote_target method of same | |
7015 | name. | |
7016 | (remote_btrace_reset): Add remote_state paremeter. Update all | |
7017 | callers. | |
7018 | (remote_async_inferior_event_handler). Pass down 'data'. | |
7019 | (remote_new_objfile): Use get_current_remote_target. | |
7020 | (remote_target::vcont_r_supported): New. | |
7021 | (set_range_stepping): Use get_current_remote_target and | |
7022 | remote_target::vcont_r_supported. | |
7023 | (_initialize_remote): Don't allocate 'remote_state' and | |
7024 | 'stop_reply_queue' globals. | |
7025 | * remote.h (struct remote_target): Forward declare. | |
7026 | (getpkt, putpkt, remote_notif_get_pending_events): Add | |
7027 | 'remote_target' parameter. | |
7028 | ||
f5db4863 PA |
7029 | 2018-05-22 Pedro Alves <[email protected]> |
7030 | ||
7031 | * remote.c (vcont_builder): Now a class. Make all data members | |
7032 | private. | |
7033 | (vcont_builder) <vcont_builder, restart, flush, push_action>: | |
7034 | Declare methods. | |
7035 | (vcont_builder_restart): Rename to ... | |
7036 | (vcont_builder::restart): ... this. | |
7037 | (vcont_builder_flush): Rename to ... | |
7038 | (vcont_builder::flush): ... this. | |
7039 | (vcont_builder_push_action): Rename to ... | |
7040 | (vcont_builder::push_action): ... this. | |
7041 | (remote_target::commit_resume): Adjust. | |
7042 | ||
cc0be08f PA |
7043 | 2018-05-22 Pedro Alves <[email protected]> |
7044 | ||
7045 | * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ... | |
7046 | (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this. | |
7047 | (get_fixed_memory_packet_size): New. | |
7048 | (get_memory_packet_size): Use it. | |
7049 | (set_memory_packet_size): Don't override the config size with | |
7050 | DEFAULT_MAX_MEMORY_PACKET_SIZE. | |
7051 | (show_memory_packet_size): Use get_fixed_memory_packet_size. | |
7052 | Don't refer to get_memory_packet_size if not connected to a remote | |
7053 | target. Show "(default)" if configured size is 0. | |
7054 | ||
9607784a PA |
7055 | 2018-05-22 Pedro Alves <[email protected]> |
7056 | ||
7057 | * remote.c (remote_target::mourn_inferior): Move | |
7058 | discard_pending_stop_replies call here from ... | |
7059 | (_initialize_remote): ... here. | |
7060 | ||
0e9a6b2f PA |
7061 | 2018-05-22 Pedro Alves <[email protected]> |
7062 | ||
7063 | * remote.c (compare_section_command): Remove set_general_process | |
7064 | call. | |
7065 | ||
43c3a0e4 PA |
7066 | 2018-05-22 Pedro Alves <[email protected]> |
7067 | ||
7068 | * remote.c (struct packet_reg, struct remote_arch_state): | |
7069 | Move higher up in the file. | |
7070 | (remote_state) <m_arch_states>: Store remote_arch_state values | |
7071 | instead of remote_arch_state pointers. | |
7072 | (remote_state::get_remote_arch_state): Adjust. | |
7073 | ||
9d6eea31 PA |
7074 | 2018-05-22 Pedro Alves <[email protected]> |
7075 | ||
7076 | * remote.c: Include <unordered_map>. | |
7077 | (remote_state): Now a class. | |
7078 | (remote_state) <get_remote_arch_state>: Declare method. | |
7079 | <get_remote_arch_state>: New field. | |
7080 | (remote_arch_state) <remote_arch_state>: Declare ctor. | |
7081 | <regs>: Now a unique_ptr. | |
7082 | (remote_gdbarch_data_handle): Delete. | |
7083 | (get_remote_arch_state): Delete. | |
7084 | (remote_state::get_remote_arch_state): New. | |
7085 | (get_remote_state): Adjust to call remote_state's | |
7086 | get_remote_arch_state method. | |
7087 | (init_remote_state): Delete, bits factored out to ... | |
7088 | (remote_arch_state::remote_arch_state): ... this new method. | |
7089 | (get_remote_packet_size, get_memory_packet_size) | |
7090 | (process_g_packet, remote_target::fetch_registers) | |
7091 | (remote_target::prepare_to_store, store_registers_using_G) | |
7092 | (remote_target::store_registers, remote_target::get_trace_status): | |
7093 | Adjust to call remote_state's method. | |
7094 | (_initialize_remote): Remove reference to | |
7095 | remote_gdbarch_data_handle. | |
7096 | ||
dd194f6b PA |
7097 | 2018-05-22 Pedro Alves <[email protected]> |
7098 | ||
7099 | * remote.c (struct readahead_cache) <invalidate, invalidate_fd, | |
7100 | pread>: New method declarations. | |
7101 | (remote_target::open_1): Adjust. | |
7102 | (readahead_cache_invalidate): Rename to ... | |
7103 | (readahead_cache::invalidate): ... this, and adjust to be a class | |
7104 | method. | |
7105 | (readahead_cache_invalidate_fd): Rename to ... | |
7106 | (readahead_cache::invalidate_fd): ... this, and adjust to be a | |
7107 | class method. | |
7108 | (remote_hostio_pwrite): Adjust. | |
7109 | (remote_hostio_pread_from_cache): Rename to ... | |
7110 | (readahead_cache::pread): ... this, and adjust to be a class | |
7111 | method. | |
7112 | (remote_hostio_close): Adjust. | |
7113 | ||
440b7aec PA |
7114 | 2018-05-22 Pedro Alves <[email protected]> |
7115 | ||
7116 | * remote.c (remote_hostio_close_cleanup): Delete. | |
7117 | (class scoped_remote_fd): New. | |
7118 | (remote_file_put, remote_file_get): Use it. | |
7119 | ||
de44f5a7 PA |
7120 | 2018-05-22 Pedro Alves <[email protected]> |
7121 | ||
7122 | (struct vCont_action_support): Use bool and initialize all fields. | |
7123 | (struct readahead_cache): Initialize all fields. | |
7124 | (remote_state): Use bool and initialize all fields. | |
7125 | (remote_state::remote_state, remote_state::~remote_state): New. | |
7126 | (new_remote_state): Delete. | |
7127 | (_initialize_remote): Use new to allocate remote_state. | |
7128 | ||
b1b60145 PA |
7129 | 2018-05-22 Pedro Alves <[email protected]> |
7130 | 張俊芝 <[email protected]> | |
7131 | ||
7132 | PR gdb/22973 | |
7133 | * c-exp.y: Include "c-support.h". | |
7134 | (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead | |
7135 | of tolower. Use c_ident_is_alpha to scan names. | |
7136 | * c-lang.c: Include "c-support.h". | |
7137 | (convert_ucn, convert_octal, convert_hex, convert_escape): Use | |
7138 | ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit. | |
7139 | * c-support.h: New file, with bits factored out from ... | |
7140 | * cp-name-parser.y: ... this file. | |
7141 | Include "c-support.h". | |
7142 | (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to | |
7143 | c-support.h and renamed. | |
7144 | (symbol_end, yylex): Adjust. | |
7145 | ||
0ec848ad PFC |
7146 | 2018-05-22 Pedro Franco de Carvalho <[email protected]> |
7147 | ||
7148 | * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the | |
7149 | parameter type to CORE_ADDR. | |
7150 | * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the | |
7151 | parameter type in declaration to CORE_ADDR. | |
7152 | * ppc-linux-tdep.c (ppc_linux_core_read_description): Call | |
7153 | target_auxv_search to get AT_HWCAP and use the result to get the | |
7154 | target description. | |
7155 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type | |
7156 | to CORE_ADDR. Remove the cast of the return value to unsigned | |
7157 | long. Fix error predicate of target_auxv_search. | |
7158 | (ppc_linux_nat_target::read_description): Change the type of the | |
7159 | hwcap variable to CORE_ADDR. | |
7160 | ||
0fb2aaa1 PFC |
7161 | 2018-05-22 Pedro Franco de Carvalho <[email protected]> |
7162 | ||
7163 | * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only | |
7164 | if the size of fpscr is larger than 32 bits. | |
7165 | ||
2c3305f6 PFC |
7166 | 2018-05-22 Pedro Franco de Carvalho <[email protected]> |
7167 | ||
7168 | * ppc-linux-tdep.c (ppc_linux_vsxregset): New function. | |
7169 | (ppc32_linux_vsxregmap): New global. | |
7170 | (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap, | |
7171 | regcache_supply_regset, and regcache_collect_regset. | |
7172 | * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare. | |
7173 | * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove. | |
7174 | (fetch_vsx_register, store_vsx_register): Remove. | |
7175 | (fetch_vsx_registers): Add regno parameter. Get regset using | |
7176 | ppc_linux_vsxregset. Use regset to supply registers. | |
7177 | (store_vsx_registers): Add regno parameter. Get regset using | |
7178 | ppc_linux_vsxregset. Use regset to collect registers. | |
7179 | (fetch_register): Call fetch_vsx_registers instead of | |
7180 | fetch_vsx_register. | |
7181 | (store_register): Call store_vsx_registers instead of | |
7182 | store_vsx_register. | |
7183 | (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the | |
7184 | new regno parameter. | |
7185 | (store_ppc_registers): Call store_vsx_registers with -1 for the | |
7186 | new regno parameter. | |
7187 | * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget) | |
7188 | (ppc_collect_vsxregset): Remove. | |
7189 | ||
1d75a658 PFC |
7190 | 2018-05-22 Pedro Franco de Carvalho <[email protected]> |
7191 | ||
7192 | * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register | |
7193 | offset fields. | |
7194 | * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers | |
7195 | for vector register offset fields. | |
7196 | (ppc64_fbsd_reg_offsets): Likewise. | |
7197 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
7198 | to vector register offset fields. | |
7199 | * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
7200 | to vector register offset fields. | |
7201 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to | |
7202 | vector register offset fields. | |
7203 | * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove | |
7204 | initializers for vector register offset fields. | |
7205 | (rs6000_aix64_reg_offsets): Likewise. | |
7206 | * rs6000-tdep.c (ppc_vrreg_offset): Remove. | |
7207 | (ppc_supply_vrregset): Remove. | |
7208 | (ppc_collect_vrregset): Remove. | |
7209 | * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function. | |
7210 | (ppc_linux_vrregset) : New function. | |
7211 | (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap) | |
7212 | (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals. | |
7213 | (ppc32_linux_vrregset): Remove. | |
7214 | (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset | |
7215 | and use result instead of ppc32_linux_vrregset. | |
7216 | (ppc32_linux_reg_offsets): Remove initializers for vector register | |
7217 | offset fields. | |
7218 | (ppc64_linux_reg_offsets): Likewise. | |
7219 | * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration. | |
7220 | * ppc-linux-nat.c: Include regset.h. | |
7221 | (gdb_vrregset_t): Adjust comment to account for little-endian | |
7222 | mode. | |
7223 | (supply_vrregset, fill_vrregset): Remove. | |
7224 | (fetch_altivec_register, store_altivec_register): Remove. | |
7225 | (fetch_altivec_registers): Add regno parameter. Get regset using | |
7226 | ppc_linux_vrregset. Use regset to supply registers. | |
7227 | (store_altivec_registers): Add regno parameter. Get regset using | |
7228 | ppc_linux_vrregset. Use regset to collect registers. | |
7229 | (fetch_register): Call fetch_altivec_registers instead of | |
7230 | fetch_altivec_register. | |
7231 | (store_register): Call store_altivec_registers instead of | |
7232 | store_altivec_register. | |
7233 | (fetch_ppc_registers): Call fetch_altivec_registers with -1 for | |
7234 | the new regno parameter. | |
7235 | (store_ppc_registers): Call store_altivec_registers with -1 for | |
7236 | the new regno parameter. | |
7237 | ||
d078308a PFC |
7238 | 2018-05-22 Pedro Franco de Carvalho <[email protected]> |
7239 | ||
7240 | * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET) | |
7241 | (PPC_LINUX_SIZEOF_VSXREGSET): Define. | |
7242 | * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove. | |
7243 | (gdb_vrregset_t): Change array type size to | |
7244 | PPC_LINUX_SIZEOF_VRREGSET. | |
7245 | (gdb_vsxregset_t): Change array type size to | |
7246 | PPC_LINUX_SIZEOF_VSXREGSET. | |
7247 | * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): | |
7248 | Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and | |
7249 | PPC_LINUX_SIZEOF_VSXREGSET. | |
7250 | ||
2e077f5e PFC |
7251 | 2018-05-22 Pedro Franco de Carvalho <[email protected]> |
7252 | ||
7253 | * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES. | |
7254 | * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to | |
7255 | nat/ppc-linux.c. | |
7256 | (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call | |
7257 | ppc_linux_target_wordsize with tid. | |
7258 | (ppc_linux_nat_target::read_description): Call ppc_linux_target | |
7259 | wordsize with tid. | |
7260 | * nat/ppc-linux.c: Include nat/gdb_ptrace.h. | |
7261 | (ppc64_64bit_inferior_p): Add static and inline specifiers. | |
7262 | (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add | |
7263 | tid parameter. Remove static specifier. | |
7264 | * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration. | |
7265 | (ppc_linux_target_wordsize): New declaration. | |
7266 | ||
bd64614e PFC |
7267 | 2018-05-22 Pedro Franco de Carvalho <[email protected]> |
7268 | ||
7269 | * arch/ppc-linux-common.c: New file. | |
7270 | * arch/ppc-linux-common.h: New file. | |
7271 | * arch/ppc-linux-tdesc.h: New file. | |
7272 | * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o. | |
7273 | * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o. | |
7274 | (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and | |
7275 | arch/ppc-linux-tdesc.h. | |
7276 | * ppc-linux-nat.c: Include arch/ppc-linux-common.h and | |
7277 | arch/ppc-linux-tdesc.h. | |
7278 | (ppc_linux_nat_target::read_description): Remove target | |
7279 | description matching code. Fill a ppc_linux_features struct and | |
7280 | call ppc_linux_match_description with it. Move comment about ISA | |
7281 | 2.05 to ppc-linux-common.c. | |
7282 | * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and | |
7283 | arch/ppc-linux-tdesc.h. | |
7284 | (ppc_linux_core_read_description): Remove target description | |
7285 | matching code. Fill a ppc_linux_features struct and call | |
7286 | ppc_linux_match_description with it. | |
7287 | * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l) | |
7288 | (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l) | |
7289 | (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l) | |
7290 | (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l) | |
7291 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l) | |
7292 | (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l) | |
7293 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l) | |
7294 | (tdesc_powerpc_e500l): Remove. | |
7295 | ||
241db429 JB |
7296 | 2018-05-22 Joel Brobecker <[email protected]> |
7297 | ||
7298 | * ada-lang.c (catch_assert_command): Pass empty string instead | |
7299 | of NULL for excep_string argument. | |
7300 | ||
75d74cca MR |
7301 | 2018-05-22 Maciej W. Rozycki <[email protected]> |
7302 | ||
7303 | * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if | |
7304 | the width of the requested register exceeds the width of the | |
7305 | `ptrace' data type. | |
7306 | ||
122b53ea TT |
7307 | 2018-05-21 Tom Tromey <[email protected]> |
7308 | ||
7309 | * printcmd.c (output_command): Remove. | |
7310 | (output_command_const): Rename to output_command. | |
7311 | * valprint.h (output_command): Rename from output_command_const. | |
7312 | * tracepoint.c (trace_dump_actions): Call output_command. | |
7313 | ||
bc18fbb5 TT |
7314 | 2018-05-21 Tom Tromey <[email protected]> |
7315 | ||
7316 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
7317 | (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update. | |
7318 | * ada-lang.h (create_ada_exception_catchpoint): Update. | |
7319 | * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a | |
7320 | std::string. | |
7321 | (create_excep_cond_exprs, ~ada_catchpoint) | |
7322 | (should_stop_exception, print_one_exception) | |
7323 | (print_mention_exception, print_recreate_exception): Update. | |
7324 | (ada_get_next_arg): Remove. | |
7325 | (catch_ada_exception_command_split): Use std::string. Change type | |
7326 | of "excep_string", "cond_string". | |
7327 | (catch_ada_exception_command): Update. | |
7328 | (create_ada_exception_catchpoint): Change type of excep_string. | |
7329 | (ada_exception_sal): Remove excep_string parameter. | |
7330 | (~ada_catchpoint): Remove. | |
7331 | ||
790217f6 TT |
7332 | 2018-05-21 Tom Tromey <[email protected]> |
7333 | ||
7334 | * ada-lang.c (ada_collect_symbol_completion_matches): Remove | |
7335 | cleanup. | |
7336 | ||
6f46ac85 TT |
7337 | 2018-05-21 Tom Tromey <[email protected]> |
7338 | ||
7339 | * ada-lang.c (ada_exception_message_1, ada_exception_message): | |
7340 | Return unique_xmalloc_ptr. | |
7341 | (print_it_exception): Update. | |
7342 | ||
15b6611c TT |
7343 | 2018-05-21 Tom Tromey <[email protected]> |
7344 | ||
7345 | * tracepoint.c (trace_dump_actions): Use std::string. | |
7346 | ||
c0c9f665 TT |
7347 | 2018-05-21 Tom Tromey <[email protected]> |
7348 | ||
7349 | * symfile.c (reread_symbols): Use std::string for original_name. | |
7350 | ||
22ca247e TT |
7351 | 2018-05-21 Tom Tromey <[email protected]> |
7352 | ||
7353 | * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr. | |
7354 | (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default | |
7355 | constructor. | |
7356 | ||
184cde75 SM |
7357 | 2018-05-20 Simon Marchi <[email protected]> |
7358 | ||
7359 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong | |
7360 | instance to... | |
7361 | (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this. | |
7362 | * objfiles.c (get_objfile_bfd_data): Allocate | |
7363 | objfile_per_bfd_storage with obstack_new when allocating on | |
7364 | obstack. | |
7365 | ||
e39db4db SM |
7366 | 2018-05-20 Simon Marchi <[email protected]> |
7367 | ||
7368 | * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or | |
7369 | OBSTACK_ZALLOC. | |
7370 | * dwarf2-frame.c (dwarf2_build_frame_info): Likewise. | |
7371 | * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise. | |
7372 | * mdebugread.c (mdebug_build_psymtabs): Likewise. | |
7373 | (add_pending): Likewise. | |
7374 | (parse_symbol): Likewise. | |
7375 | (parse_partial_symbols): Likewise. | |
7376 | (psymtab_to_symtab_1): Likewise. | |
7377 | (new_psymtab): Likewise. | |
7378 | (elfmdebug_build_psymtabs): Likewise. | |
7379 | * minsyms.c (terminate_minimal_symbol_table): Likewise. | |
7380 | * objfiles.c (get_objfile_bfd_data): Likewise. | |
7381 | (objfile_register_static_link): Likewise. | |
7382 | * psymtab.c (allocate_psymtab): Likewise. | |
7383 | * stabsread.c (read_member_functions): Likewise. | |
7384 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
7385 | ||
284a0e3c SM |
7386 | 2018-05-20 Simon Marchi <[email protected]> |
7387 | ||
7388 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if | |
7389 | compiler supports std::is_trivially_constructible. | |
7390 | * common/poison.h: Include obstack.h. | |
7391 | (IsMallocable): Define to is_trivially_constructible if the | |
7392 | compiler supports it, define to true_type otherwise. | |
7393 | (xobnew): New. | |
7394 | (XOBNEW): Redefine. | |
7395 | (xobnewvec): New. | |
7396 | (XOBNEWVEC): Redefine. | |
7397 | * gdb_obstack.h (obstack_zalloc): New. | |
7398 | (OBSTACK_ZALLOC): Redefine. | |
7399 | (obstack_calloc): New. | |
7400 | (OBSTACK_CALLOC): Redefine. | |
7401 | (obstack_new): New. | |
7402 | * gdbarch.sh: Include gdb_obstack in gdbarch.h. | |
7403 | (gdbarch_obstack): New declaration in gdbarch.h, definition in | |
7404 | gdbarch.c. | |
7405 | (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use | |
7406 | obstack_calloc/obstack_zalloc. | |
7407 | (gdbarch_obstack_zalloc): Remove. | |
7408 | * target-descriptions.c (tdesc_data_init): Use obstack_new. | |
7409 | ||
59f66be3 PW |
7410 | 2018-05-19 Philippe Waroquiers <[email protected]> |
7411 | ||
7412 | * stack.c (backtrace_command_1): Remove useless variable int i. | |
7413 | ||
50c65c2d PW |
7414 | 2018-05-19 Philippe Waroquiers <[email protected]> |
7415 | ||
7416 | * stack.c (print_frame_info): Fix comment. | |
7417 | ||
7ff8cb8c TT |
7418 | 2018-05-18 Tom Tromey <[email protected]> |
7419 | ||
7420 | * dwarf2read.c (struct dwz_file): Add constructor, initializers. | |
7421 | <dwz_bfd>: Now a gdb_bfd_ref_ptr. | |
7422 | (~dwarf2_per_objfile): Update | |
7423 | (dwarf2_get_dwz_file): Use new. | |
7424 | * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a | |
7425 | unique_ptr. | |
7426 | ||
400174b1 TT |
7427 | 2018-05-18 Tom Tromey <[email protected]> |
7428 | ||
7429 | * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a | |
7430 | unique_ptr. | |
7431 | * dwarf2read.c (struct dwp_file): Add constructor and | |
7432 | initializers. | |
7433 | (open_and_init_dwp_file): Return a unique_ptr. | |
7434 | (dwarf2_per_objfile, create_dwp_hash_table) | |
7435 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2) | |
7436 | (lookup_dwo_unit_in_dwp): Update. | |
7437 | (open_and_init_dwp_file, get_dwp_file): Update. | |
7438 | ||
3063847f TT |
7439 | 2018-05-18 Tom Tromey <[email protected]> |
7440 | ||
7441 | * dwarf2read.c (dwarf2_per_objfile): Update. | |
7442 | (struct mapped_index): Add initializers. | |
7443 | (dwarf2_read_index): Use new. | |
7444 | (dw2_symtab_iter_init): Update. | |
7445 | * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a | |
7446 | unique_ptr. | |
7447 | ||
d3d02dee SM |
7448 | 2018-05-18 Simon Marchi <[email protected]> |
7449 | ||
7450 | * dwarf2read.c (mapped_index) <total_size>: Remove. | |
7451 | ||
1d143c36 SM |
7452 | 2018-05-18 Simon Marchi <[email protected]> |
7453 | ||
7454 | * unittests/format_pieces-selftests.c (test_format_specifier): | |
7455 | Add ARI comments. | |
7456 | ||
ce1e8424 TT |
7457 | 2018-05-18 Tom Tromey <[email protected]> |
7458 | ||
7459 | * c-typeprint.c (maybe_print_hole): New function. | |
7460 | (c_print_type_struct_field_offset): Update. | |
7461 | (c_type_print_base_struct_union): Call maybe_print_hole. | |
7462 | ||
ddfe970e KS |
7463 | 2018-05-17 Keith Seitz <[email protected]> |
7464 | ||
7465 | * breakpoint.c (build_bpstat_chain): New function, moved from | |
7466 | bpstat_stop_status. | |
7467 | (bpstat_stop_status): Add optional parameter, `stop_chain'. | |
7468 | If no stop chain is passed, call build_bpstat_chain to build it. | |
7469 | * breakpoint.h (build_bpstat_chain): Declare. | |
7470 | (bpstat_stop_status): Move documentation here from breakpoint.c. | |
7471 | * infrun.c (handle_signal_stop): Before eliding inlined frames, | |
7472 | build the stop chain and pass it to skip_inline_frames. | |
7473 | Pass this stop chain to bpstat_stop_status. | |
7474 | * inline-frame.c: Include breakpoint.h. | |
7475 | (stopped_by_user_bp_inline_frame): New function. | |
7476 | (skip_inline_frames): Add parameter `stop_chain'. | |
7477 | Move documention to inline-frame.h. | |
7478 | If non-NULL, use stopped_by_user_bp_inline_frame to determine | |
7479 | whether the frame should be elided. | |
7480 | * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'. | |
7481 | Add moved documentation and update for new parameter. | |
7482 | ||
b17992c1 SM |
7483 | 2018-05-17 Simon Marchi <[email protected]> |
7484 | ||
7485 | PR cli/14975 | |
7486 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
7487 | unittests/format_pieces-selftests.c. | |
7488 | * common/format.h (format_piece) <operator==>: New. | |
7489 | (format_pieces) <operator[]>: Remove. | |
7490 | * common/format.c (format_pieces::format_pieces): Handle \e. | |
7491 | * unittests/format_pieces-selftests.c: New. | |
7492 | ||
58f0c718 TT |
7493 | 2018-05-17 Tom Tromey <[email protected]> |
7494 | ||
7495 | PR symtab/23010: | |
7496 | * dwarf2read.c (load_cu, dw2_do_instantiate_symtab) | |
7497 | (dw2_instantiate_symtab): Add skip_partial parameter. | |
7498 | (dw2_find_last_source_symtab, dw2_map_expand_apply) | |
7499 | (dw2_lookup_symbol, dw2_expand_symtabs_for_function) | |
7500 | (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname) | |
7501 | (dw2_expand_symtabs_matching_one) | |
7502 | (dw2_find_pc_sect_compunit_symtab) | |
7503 | (dw2_debug_names_lookup_symbol) | |
7504 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
7505 | (init_cutu_and_read_dies): Add skip_partial parameter. | |
7506 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
7507 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
7508 | (psymtab_to_symtab_1): Update. | |
7509 | (load_full_comp_unit): Add skip_partial parameter. | |
7510 | (process_imported_unit_die, dwarf2_read_addr_index) | |
7511 | (follow_die_offset, dwarf2_fetch_die_loc_sect_off) | |
7512 | (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off) | |
7513 | (read_signatured_type): Update. | |
7514 | ||
3e618834 SM |
7515 | 2018-05-17 Simon Marchi <[email protected]> |
7516 | ||
7517 | * value.c (release_value): Remove unused variable. | |
7518 | (record_latest_value): Likewise. | |
7519 | (access_value_history): Likewise. | |
7520 | (preserve_values): Likewise. | |
7521 | ||
fe10fe31 TT |
7522 | 2018-05-17 Tom Tromey <[email protected]> |
7523 | ||
7524 | * extension.h (struct ext_lang_type_printers) <py_type_printers>: | |
7525 | Initialize. | |
7526 | ||
1d761124 MR |
7527 | 2018-05-16 Maciej W. Rozycki <[email protected]> |
7528 | ||
7529 | PR gdb/22286 | |
7530 | * linux-nat-trad.c (linux_nat_trad_target::fetch_register): | |
7531 | Also handle registers whose width is not a multiple of | |
7532 | PTRACE_TYPE_RET. | |
7533 | (linux_nat_trad_target::store_register): Likewise. | |
7534 | ||
06333fea TT |
7535 | 2018-05-16 Tom Tromey <[email protected]> |
7536 | ||
7537 | * gdbcore.h (core_bfd): Redefine. | |
7538 | * corelow.c (core_target::close): Update. | |
7539 | (core_target_open): Update. | |
7540 | * progspace.h (struct program_space) <cbfd>: Now a | |
7541 | gdb_bfd_ref_ptr. | |
7542 | ||
921222e2 TT |
7543 | 2018-05-16 Tom Tromey <[email protected]> |
7544 | ||
7545 | PR cli/19551: | |
7546 | * symfile-add-flags.h (enum symfile_add_flags) | |
7547 | <SYMFILE_NOT_FILENAME>: New constant. | |
7548 | * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get | |
7549 | objfile name from BFD. | |
7550 | (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME. | |
7551 | * minidebug.c (find_separate_debug_file_in_section): Put | |
7552 | ".gnu_debugdata" into BFD's file name. | |
7553 | ||
3acb7083 SM |
7554 | 2018-05-16 Simon Marchi <[email protected]> |
7555 | ||
7556 | * regcache.c (regcache_read_ftype, regcache_write_ftype): | |
7557 | Remove. | |
7558 | ||
561a72d4 TC |
7559 | 2018-05-15 Tamar Christina <[email protected]> |
7560 | ||
7561 | PR binutils/21446 | |
7562 | * aarch64-tdep.c (aarch64_analyze_prologue, | |
7563 | aarch64_software_single_step, aarch64_displaced_step_copy_insn): | |
7564 | Indicate not interested in errors. | |
7565 | ||
4e6ff0e1 MR |
7566 | 2018-05-15 Maciej W. Rozycki <[email protected]> |
7567 | ||
7568 | * mips-linux-nat.c (mips_linux_nat_target::fetch_registers): | |
7569 | Supply the MIPS_ZERO_REGNUM register. | |
7570 | ||
ea33cd92 MR |
7571 | 2018-05-15 Maciej W. Rozycki <[email protected]> |
7572 | ||
7573 | * mips-tdep.c (mask_address_var): Make variable static. | |
7574 | ||
2d79090e TT |
7575 | 2018-05-14 Tom Tromey <[email protected]> |
7576 | ||
7577 | * dwarf2read.c (rust_union_quirks): Clear rust_unions. | |
7578 | ||
cf4912ae AB |
7579 | 2018-05-11 Andrew Burgess <[email protected]> |
7580 | ||
7581 | * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not | |
7582 | FXSAVE_ADDR for the mxcsr register. | |
7583 | ||
67e6f569 MF |
7584 | 2018-05-11 Max Filippov <[email protected]> |
7585 | ||
7586 | * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition. | |
7587 | ||
15244507 PA |
7588 | 2018-05-11 Pedro Alves <[email protected]> |
7589 | ||
7590 | * corelow.c (core_target) <core_target>: No longer inline. | |
7591 | Initialize m_core_gdbarch, m_core_vec and build the section table | |
7592 | here. | |
7593 | <~core_target>: New. | |
7594 | <core_gdbarch, get_core_register_section>: New methods. | |
7595 | <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields, | |
7596 | factored out from ... | |
7597 | <core_data, core_vec, core_gdbarch>: ... these deleted globals. | |
7598 | (core_ops): Delete. | |
7599 | (sniff_core_bfd): Add gdbarch parameter. | |
7600 | (core_close): Delete, merged into ... | |
7601 | (core_target::close): ... here. Delete self. | |
7602 | (core_close_cleanup): Delete. | |
7603 | (core_target_open): Allocate a core_target on the heap. Use a | |
7604 | unique_ptr instead of a cleanup. Bits moved into the core_target | |
7605 | ctor. Adjust to use core_target methods instead of globals. | |
7606 | (get_core_register_section): Rename to ... | |
7607 | (core_target::get_core_register_section): ... this and adjust. | |
7608 | (struct get_core_registers_cb_data): New. | |
7609 | (get_core_registers_cb): Use it. Use bool. | |
7610 | (core_target::fetch_registers, core_target::files_info) | |
7611 | (core_target::xfer_partial, core_target::read_description) | |
7612 | (core_target::pid_to, core_target::thread_name): Adjust to | |
7613 | reference class fields instead of globals. | |
7614 | * target.h (struct target_ops_deleter, target_ops_up): New. | |
7615 | ||
451953fa PA |
7616 | 2018-05-11 Pedro Alves <[email protected]> |
7617 | ||
7618 | * corefile.c (core_file_command): Move to corelow.c. | |
7619 | * corelow.c (the_core_target): Delete. | |
7620 | (core_file_command): Moved from corefile.c. Check exec_bfd | |
7621 | instead of the_core_target. Use target_detach instead of calling | |
7622 | into the_core_target directly. | |
7623 | (maybe_say_no_core_file_now): New. | |
7624 | (core_target::detach): Use it. | |
7625 | (_initialize_corelow): Remove references to the_core_target. | |
7626 | * gdbcore.h (the_core_target): Delete. | |
7627 | ||
e540a5a2 | 7628 | 2018-05-11 Tom Tromey <[email protected]> |
3afc23a6 | 7629 | Pedro Alves <[email protected]> |
e540a5a2 TT |
7630 | |
7631 | * corefile.c (core_bfd): Remove. | |
7632 | * gdbcore.h (core_bfd): Now a macro. | |
7633 | * progspace.h (struct program_space) <cbfd>: New field. | |
7634 | ||
633cf254 TT |
7635 | 2018-05-11 Tom Tromey <[email protected]> |
7636 | ||
7637 | * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use | |
7638 | gdb::def_vector. | |
7639 | ||
1a34f210 TT |
7640 | 2018-05-10 Tom Tromey <[email protected]> |
7641 | ||
7642 | * configure: Rebuild. | |
7643 | * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3. | |
7644 | ||
190852c8 JB |
7645 | 2018-05-10 Joel Brobecker <[email protected]> |
7646 | ||
7647 | PR server/23158: | |
7648 | * regformats/regdat.sh: Adjust script, following the addition | |
7649 | of the new expedite_regs parameter to init_target_desc. | |
7650 | ||
8727de56 OJ |
7651 | 2018-05-10 Omair Javaid <[email protected]> |
7652 | ||
7653 | PR gdb/23127 | |
7654 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to | |
7655 | set_gdbarch_significant_addr_bit. | |
7656 | * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to | |
7657 | set_gdbarch_significant_addr_bit. | |
7658 | * utils.c (address_significant): Update to sign extend addr. | |
7659 | ||
37d9e062 MF |
7660 | 2018-05-09 Max Filippov <[email protected]> |
7661 | ||
7662 | * xtensa-linux-tdep.c (xtensa-tdep.h): New include. | |
7663 | (xtensa_linux_init_abi): Limit tdep->num_regs by | |
7664 | tdep->num_nopriv_regs. | |
7665 | * xtensa-tdep.c (xtensa_derive_tdep): Calculate | |
7666 | tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's | |
7667 | not initialized. | |
7668 | ||
7402fbca SM |
7669 | 2018-05-08 Simon Marchi <[email protected]> |
7670 | ||
7671 | * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE. | |
7672 | ||
8ee22052 AB |
7673 | 2018-05-08 Andrew Burgess <[email protected]> |
7674 | ||
7675 | * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant. | |
7676 | (I387_MXCSR_INIT_VAL): New constant. | |
7677 | * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave | |
7678 | buffer if it was supplied by the inferior. | |
7679 | * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL. | |
7680 | (i387_xsave_get_clear_bv): New function. | |
7681 | (i387_supply_xsave): Only read x87 control registers from the | |
7682 | xsave buffer if the feature is enabled, and the state will have | |
7683 | been written, otherwise, provide a suitable default. | |
7684 | (i387_collect_xsave): Pre-clear all registers in xsave buffer, | |
7685 | including x87 control registers. Update control registers if they | |
7686 | have changed from the default value, and mark features as enabled | |
7687 | as required. | |
7688 | * i387-tdep.h (i387_xsave_get_clear_bv): Declare. | |
7689 | ||
968ae51b UW |
7690 | 2018-05-08 Ulrich Weigand <[email protected]> |
7691 | ||
7692 | * spu-tdep.c (info_spu_event_command): Fix output formatting. | |
7693 | ||
aff689d3 TT |
7694 | 2018-05-07 Tom Tromey <[email protected]> |
7695 | ||
7696 | * configure: Rebuild. | |
7697 | * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond. | |
7698 | ||
ce887586 TT |
7699 | 2018-05-07 Tom Tromey <[email protected]> |
7700 | ||
7701 | PR tdep/20362: | |
7702 | * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D | |
7703 | bit. Use correct value for VDIV. | |
7704 | ||
85e26832 TT |
7705 | 2018-05-04 Tom Tromey <[email protected]> |
7706 | ||
7707 | * configure: Rebuild. | |
7708 | * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough. | |
7709 | ||
449b1ac7 TT |
7710 | 2018-05-04 Tom Tromey <[email protected]> |
7711 | ||
7712 | * linux-record.c (record_linux_system_call) <case | |
7713 | RECORD_SYS_RECVFROM>: Add "break". | |
7714 | ||
15c9ffd6 TT |
7715 | 2018-05-04 Tom Tromey <[email protected]> |
7716 | ||
7717 | * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>: | |
7718 | Add missing "break". | |
7719 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>: | |
7720 | Add missing "break". | |
7721 | ||
e3829d13 TT |
7722 | 2018-05-04 Tom Tromey <[email protected]> |
7723 | ||
7724 | * rs6000-tdep.c (ppc_process_record_op4) | |
7725 | (ppc_process_record_op63): Add fall-through comment. | |
7726 | ||
da0e1563 TT |
7727 | 2018-05-04 Tom Tromey <[email protected]> |
7728 | ||
7729 | * i386-tdep.c (i386_process_record): Add fall-through comment. | |
7730 | ||
0019cd49 TT |
7731 | 2018-05-04 Tom Tromey <[email protected]> |
7732 | ||
7733 | * stabsread.c (define_symbol) <case 'p'>: Add fall-through | |
7734 | comment. | |
7735 | ||
565e0eda TT |
7736 | 2018-05-04 Tom Tromey <[email protected]> |
7737 | ||
7738 | * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment. | |
7739 | * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment. | |
7740 | * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through | |
7741 | comment. | |
7742 | * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through | |
7743 | comment. | |
7744 | * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through | |
7745 | comment. | |
7746 | ||
621846f4 TT |
7747 | 2018-05-04 Tom Tromey <[email protected]> |
7748 | ||
7749 | * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN. | |
7750 | ||
86a73007 TT |
7751 | 2018-05-04 Tom Tromey <[email protected]> |
7752 | ||
7753 | * s390-tdep.c (s390_process_record): Fix fall-through comments. | |
7754 | * xcoffread.c (scan_xcoff_symtab): Move comment later. | |
7755 | * symfile.c (section_is_mapped): Fix fall-through comment. | |
7756 | * stabsread.c (define_symbol, read_member_functions): Fix | |
7757 | fall-through comment. | |
7758 | * s390-linux-tdep.c (s390_process_record): Fix fall-through | |
7759 | comment. | |
7760 | * remote.c (remote_wait_as): Fix fall-through comment. | |
7761 | * p-exp.y (yylex): Fix fall-through comment. | |
7762 | * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through | |
7763 | comment. | |
7764 | * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment. | |
7765 | * mdebugread.c (parse_partial_symbols): Fix fall-through comment. | |
7766 | * jv-exp.y (yylex): Fix fall-through comment. | |
7767 | * go-exp.y (lex_one_token): Fix fall-through comment. | |
7768 | * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix | |
7769 | fall-through comment. | |
7770 | * f-exp.y (yylex): Fix fall-through comment. | |
7771 | * dwarf2read.c (process_die): Fix fall-through comments. | |
7772 | * dbxread.c (process_one_symbol): Fix fall-through comment. | |
7773 | * d-exp.y (lex_one_token): Fix fall-through comment. | |
7774 | * cp-name-parser.y (yylex): Fix fall-through comment. | |
7775 | * coffread.c (coff_symtab_read): Fix fall-through comment. | |
7776 | * c-exp.y (lex_one_token): Fix fall-through comment. | |
7777 | * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through | |
7778 | comment. | |
7779 | * arch/arm.c (arm_instruction_changes_pc): Fix fall-through | |
7780 | comment. | |
7781 | ||
56bcdbea TT |
7782 | 2018-05-04 Tom Tromey <[email protected]> |
7783 | ||
7784 | PR python/22730: | |
7785 | * NEWS: Mention gdb.execute change. | |
7786 | * gdbcmd.h (execute_control_command): Don't declare. | |
7787 | * python/python.c (execute_gdb_command): Use read_command_lines_1, | |
7788 | execute_control_commands, execute_control_commands_to_string. | |
7789 | * cli/cli-script.h (execute_control_commands) | |
7790 | (execute_control_commands_to_string): Declare. | |
7791 | (execute_control_command): Add from_tty parameter. | |
7792 | * cli/cli-script.c (execute_control_commands) | |
7793 | (execute_control_commands_to_string): New functions. | |
7794 | (execute_user_command): Use execute_control_commands. | |
7795 | (execute_control_command_1): Add "from_tty" parameter. Update. | |
7796 | (execute_control_command): Likewise. | |
7797 | ||
a913fffb TT |
7798 | 2018-05-04 Tom Tromey <[email protected]> |
7799 | ||
7800 | PR python/22731: | |
7801 | * NEWS: Mention that breakpoint commands are writable. | |
7802 | * python/py-breakpoint.c (bppy_set_commands): New function. | |
7803 | (breakpoint_object_getset) <"commands">: Use it. | |
7804 | ||
60b3cef2 TT |
7805 | 2018-05-04 Tom Tromey <[email protected]> |
7806 | ||
7807 | * tracepoint.c (actions_command): Update. | |
7808 | * mi/mi-cmd-break.c (mi_command_line_array) | |
7809 | (mi_command_line_array_cnt, mi_command_line_array_ptr) | |
7810 | (mi_read_next_line): Remove. | |
7811 | (mi_cmd_break_commands): Update. | |
7812 | * cli/cli-script.h (read_command_lines, read_command_lines_1): Use | |
7813 | function_view. | |
7814 | * cli/cli-script.c (get_command_line): Update. | |
7815 | (process_next_line): Use function_view. Constify. | |
7816 | (recurse_read_control_structure, read_command_lines) | |
7817 | (read_command_lines_1): Change argument types to function_view. | |
7818 | (do_define_command, document_command): Update. | |
7819 | * breakpoint.h (check_tracepoint_command): Don't declare. | |
7820 | * breakpoint.c (check_tracepoint_command): Remove. | |
7821 | (commands_command_1, create_tracepoint_from_upload): Update. | |
7822 | ||
7a2c85f2 TT |
7823 | 2018-05-04 Tom Tromey <[email protected]> |
7824 | ||
7825 | PR gdb/11750: | |
7826 | * cli/cli-script.h (enum command_control_type) <define_control>: | |
7827 | New constant. | |
7828 | * cli/cli-script.c (multi_line_command_p): Handle define_control. | |
7829 | (build_command_line, execute_control_command_1) | |
7830 | (process_next_line): Likewise. | |
7831 | (do_define_command): New function, extracted from define_command. | |
7832 | (define_command): Use it. | |
7833 | ||
295dc222 TT |
7834 | 2018-05-04 Tom Tromey <[email protected]> |
7835 | ||
7836 | * tracepoint.c (actions_command): Update. | |
7837 | * cli/cli-script.h (read_command_lines): Update. | |
7838 | * cli/cli-script.c (read_command_lines): Constify prompt_arg. | |
7839 | (MAX_TMPBUF): Remove define. | |
7840 | (define_command): Use string_printf. | |
7841 | (document_command): Likewise. | |
7842 | * breakpoint.c (commands_command_1): Update. | |
7843 | ||
1263a9d5 TT |
7844 | 2018-05-04 Tom Tromey <[email protected]> |
7845 | ||
7846 | * top.c (execute_command): Update. | |
7847 | * cli/cli-script.h (print_command_lines): Now varargs. | |
7848 | * cli/cli-script.c (print_command_lines): Now varargs. | |
7849 | (execute_control_command_1) <case while_control, case if_control>: | |
7850 | Update. | |
7851 | ||
12973681 TT |
7852 | 2018-05-04 Tom Tromey <[email protected]> |
7853 | ||
7854 | * tracepoint.c (all_tracepoint_actions): Rename from | |
7855 | all_tracepoint_actions_and_cleanup. Change return type. | |
7856 | (actions_command, encode_actions_1, encode_actions) | |
7857 | (trace_dump_actions, tdump_command): Update. | |
7858 | * remote.c (remote_download_command_source): Update. | |
7859 | * python/python.c (gdbpy_eval_from_control_command) | |
7860 | (python_command, python_interactive_command): Update. | |
7861 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
7862 | * guile/guile.c (guile_command) | |
7863 | (gdbscm_eval_from_control_command, guile_command): Update. | |
7864 | * compile/compile.c (compile_code_command) | |
7865 | (compile_print_command, compile_to_object): Update. | |
7866 | * cli/cli-script.h (struct command_lines_deleter): New. | |
7867 | (counted_command_line): New typedef. | |
7868 | (struct command_line): Add constructor, destructor. | |
7869 | <body_list>: Remove. | |
7870 | <body_list_0, body_list_1>: New members. | |
7871 | (command_line_up): Remove typedef. | |
7872 | (read_command_lines, read_command_lines_1, get_command_line): | |
7873 | Update. | |
7874 | (copy_command_lines): Don't declare. | |
7875 | * cli/cli-script.c (build_command_line): Use "new". | |
7876 | (get_command_line): Return counted_command_line. | |
7877 | (print_command_lines, execute_user_command) | |
7878 | (execute_control_command_1, while_command, if_command): Update. | |
7879 | (realloc_body_list): Remove. | |
7880 | (process_next_line, recurse_read_control_structure): Update. | |
7881 | (read_command_lines, read_command_lines_1): Return counted_command_line. | |
7882 | (free_command_lines): Use "delete". | |
7883 | (copy_command_lines): Remove. | |
7884 | (define_command, document_command, show_user_1): Update. | |
7885 | * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now | |
7886 | a counted_command_line. | |
7887 | * breakpoint.h (counted_command_line): Remove typedef. | |
7888 | (breakpoint_set_commands): Update. | |
7889 | * breakpoint.c (check_no_tracepoint_commands) | |
7890 | (validate_commands_for_breakpoint): Update. | |
7891 | (breakpoint_set_commands): Change commands to be a | |
7892 | counted_command_line. | |
7893 | (commands_command_1, update_dprintf_command_list) | |
7894 | (create_tracepoint_from_upload): Update. | |
7895 | ||
e2fc72e2 TT |
7896 | 2018-05-04 Tom Tromey <[email protected]> |
7897 | ||
7898 | * cli/cli-decode.h (cmd_list_element): New constructor. | |
7899 | (~cmd_list_element): New destructor. | |
7900 | (struct cmd_list_element): Add initializers. | |
7901 | * cli/cli-decode.c (do_add_cmd): Use "new". | |
7902 | (delete_cmd): Use "delete". | |
7903 | ||
a3b60e45 JK |
7904 | 2018-05-04 Jan Kratochvil <[email protected]> |
7905 | Pedro Alves <[email protected]> | |
7906 | ||
7907 | PR breakpoints/19806 and support for PR external/20207. | |
7908 | * NEWS: Mention Aarch64 watchpoint improvements. | |
7909 | * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed | |
7910 | watchpoints and PR external/20207 watchpoints. | |
7911 | * nat/aarch64-linux-hw-point.c | |
7912 | (kernel_supports_any_contiguous_range): New. | |
7913 | (aarch64_watchpoint_offset): New. | |
7914 | (aarch64_watchpoint_length): Support PR external/20207 watchpoints. | |
7915 | (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts. | |
7916 | (aarch64_point_is_aligned): Support PR external/20207 watchpoints. | |
7917 | (aarch64_align_watchpoint): New parameters aligned_offset_p and | |
7918 | next_addr_orig_p. Support PR external/20207 watchpoints. | |
7919 | (aarch64_downgrade_regs): New. | |
7920 | (aarch64_dr_state_insert_one_point): New parameters offset and | |
7921 | addr_orig. | |
7922 | (aarch64_dr_state_remove_one_point): Likewise. | |
7923 | (aarch64_handle_breakpoint): Update caller. | |
7924 | (aarch64_handle_aligned_watchpoint): Likewise. | |
7925 | (aarch64_handle_unaligned_watchpoint): Support addr_orig and | |
7926 | aligned_offset. | |
7927 | (aarch64_linux_set_debug_regs): Remove const from state. Call | |
7928 | aarch64_downgrade_regs. | |
7929 | (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp. | |
7930 | * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ... | |
7931 | (DR_CONTROL_MASK): ... this. | |
7932 | (struct aarch64_debug_reg_state): New field dr_addr_orig_wp. | |
7933 | (unsigned int aarch64_watchpoint_offset): New prototype. | |
7934 | (aarch64_linux_set_debug_regs): Remove const from state. | |
7935 | * utils.c (align_up, align_down): Move to ... | |
7936 | * common/common-utils.c (align_up, align_down): ... here. | |
7937 | * utils.h (align_up, align_down): Move to ... | |
7938 | * common/common-utils.h (align_up, align_down): ... here. | |
7939 | ||
05bc7456 JB |
7940 | 2018-05-04 Joel Brobecker <[email protected]> |
7941 | ||
7942 | * sparc-tdep.c (sparc_structure_return_p): Re-implement to | |
7943 | match the ABI as summarized in GCC's gcc/config/sparc/sparc.c. | |
7944 | (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p. | |
7945 | Re-implement to match the ABI as summarized in GCC's | |
7946 | gcc/config/sparc/sparc.c. All callers updated. | |
7947 | (sparc32_store_arguments): Remove assertion. | |
7948 | ||
2f433492 TT |
7949 | 2018-05-04 Tom Tromey <[email protected]> |
7950 | ||
7951 | * printcmd.c: Don't include tui.h. | |
7952 | (decode_format): Use skip_spaces. | |
7953 | ||
9be2ae8f TT |
7954 | 2018-05-04 Tom Tromey <[email protected]> |
7955 | ||
7956 | PR gdb/22619: | |
7957 | * printcmd.c (last_count): New global. | |
7958 | (x_command): Use saved count when repeating. | |
7959 | ||
f0b3976b TT |
7960 | 2018-05-04 Tom Tromey <[email protected]> |
7961 | ||
7962 | * nto-procfs.c (do_closedir_cleanup): Remove. | |
7963 | (procfs_pidlist): Use gdb_dir_up. | |
7964 | * procfs.c (do_closedir_cleanup): Remove. | |
7965 | (proc_update_threads): Use gdb_dir_up. | |
7966 | * common/filestuff.h (struct gdb_dir_deleter): New. | |
7967 | (gdb_dir_up): New typedef. | |
7968 | ||
862d101a TT |
7969 | 2018-05-04 Tom Tromey <[email protected]> |
7970 | ||
7971 | * ada-lang.c (print_mention_exception): Use std::string. | |
7972 | ||
cb7de75e TT |
7973 | 2018-05-04 Tom Tromey <[email protected]> |
7974 | ||
7975 | * ada-lang.c (create_excep_cond_exprs): Update. | |
7976 | (ada_exception_catchpoint_cond_string): Use std::string. | |
7977 | ||
49d83361 TT |
7978 | 2018-05-04 Tom Tromey <[email protected]> |
7979 | ||
7980 | * ada-lang.c (xget_renaming_scope): Return std::string. | |
7981 | (old_renaming_is_invisible): Update. | |
7982 | ||
ade72a34 TT |
7983 | 2018-05-04 Tom Tromey <[email protected]> |
7984 | ||
7985 | * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr. | |
7986 | (target_bfd::target_bfd, target_bfd::~target_bfd): Update. | |
7987 | ||
2be4d7f0 UW |
7988 | 2018-05-04 Ulrich Weigand <[email protected]> |
7989 | ||
7990 | * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error. | |
7991 | ||
69b6ecb0 TT |
7992 | 2018-05-04 Tom Tromey <[email protected]> |
7993 | ||
7994 | * remote.c (remote_query_supported_append): Change type. | |
7995 | (remote_check_symbols): Update. | |
7996 | ||
bf27f0e2 PP |
7997 | 2018-05-04 Paul Pluzhnikov <[email protected]> |
7998 | ||
7999 | PR gdb/11420 | |
8000 | * configure.ac: Prepend libpython. | |
8001 | * python/python-config.py: Likewise. | |
8002 | * configure: Regenerate. | |
8003 | ||
4ea17de8 SM |
8004 | 2018-05-03 Simon Marchi <[email protected]> |
8005 | ||
8006 | * Makefile.in (%.c: %.l): Use -t instead of --stdout. | |
8007 | ||
bd732259 PA |
8008 | 2018-05-03 Pedro Alves <[email protected]> |
8009 | ||
8010 | * s390-linux-nat.c | |
8011 | (s390_linux_nat_target::have_continuable_watchpoint): Mark with | |
8012 | override. Write 'true' instead of '1'. | |
8013 | (s390_linux_nat_target::watchpoint_addr_within_range): Remove | |
8014 | declaration. | |
8015 | ||
d9f719f1 PA |
8016 | 2018-05-02 Pedro Alves <[email protected]> |
8017 | ||
8018 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use | |
8019 | add_inf_child_target. | |
8020 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use | |
8021 | add_inf_child_target. | |
8022 | * aix-thread.c (aix_thread_target_info): New. | |
8023 | (aix_thread_target) <shortname, longname, doc>: Delete. | |
8024 | <info>: New. | |
8025 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use | |
8026 | add_inf_child_target. | |
8027 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use | |
8028 | add_inf_child_target. | |
8029 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use | |
8030 | add_inf_child_target. | |
8031 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use | |
8032 | add_inf_child_target. | |
8033 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use | |
8034 | add_inf_child_target. | |
8035 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use | |
8036 | add_inf_child_target. | |
8037 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use | |
8038 | add_inf_child_target. | |
8039 | * arm-linux-nat.c (_initialize_arm_linux_nat): Use | |
8040 | add_inf_child_target. | |
8041 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use | |
8042 | add_inf_child_target. | |
8043 | * bfd-target.c (target_bfd_target_info): New. | |
8044 | (target_bfd) <shortname, longname, doc>: Delete. | |
8045 | <info>: New. | |
8046 | * bsd-kvm.c (bsd_kvm_target_info): New. | |
8047 | (bsd_kvm_target) <shortname, longname, doc>: Delete. | |
8048 | <info>: New. | |
8049 | (bsd_kvm_target::open): Rename to ... | |
8050 | (bsd_kvm_target_open): ... this. Adjust. | |
8051 | * bsd-uthread.c (bsd_uthread_target_info): New. | |
8052 | (bsd_uthread_target) <shortname, longname, doc>: Delete. | |
8053 | <info>: New. | |
8054 | * corefile.c (core_file_command): Adjust. | |
8055 | * corelow.c (core_target_info): New. | |
8056 | (core_target) <shortname, longname, doc>: Delete. | |
8057 | <info>: New. | |
8058 | (core_target::open): Rename to ... | |
8059 | (core_target_open): ... this. Adjust. | |
8060 | * ctf.c (ctf_target_info): New. | |
8061 | (ctf_target) <shortname, longname, doc>: Delete. | |
8062 | <info>: New. | |
8063 | (ctf_target::open): Rename to ... | |
8064 | (ctf_target_open): ... this. | |
8065 | (_initialize_ctf): Adjust. | |
8066 | * exec.c (exec_target_info): New. | |
8067 | (exec_target) <shortname, longname, doc>: Delete. | |
8068 | <info>: New. | |
8069 | (exec_target::open): Rename to ... | |
8070 | (exec_target_open): ... this. | |
8071 | * gdbcore.h (core_target_open): Declare. | |
8072 | * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target. | |
8073 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use | |
8074 | add_inf_child_target. | |
8075 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use | |
8076 | add_inf_child_target. | |
8077 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use | |
8078 | add_inf_child_target. | |
8079 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use | |
8080 | add_inf_child_target. | |
8081 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use | |
8082 | add_inf_child_target. | |
8083 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Use | |
8084 | add_inf_child_target. | |
8085 | * i386-linux-nat.c (_initialize_i386_linux_nat): Use | |
8086 | add_inf_child_target. | |
8087 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use | |
8088 | add_inf_child_target. | |
8089 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Use | |
8090 | add_inf_child_target. | |
8091 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use | |
8092 | add_inf_child_target. | |
8093 | * inf-child.c (inf_child_target_info): New. | |
8094 | (inf_child_target::info): New. | |
8095 | (inf_child_open_target): Remove 'target' parameter. Use | |
8096 | get_native_target instead. | |
8097 | (inf_child_target::open): Delete. | |
8098 | (add_inf_child_target): New. | |
8099 | * inf-child.h (inf_child_target) <shortname, longname, doc, open>: | |
8100 | Delete. | |
8101 | <info>: New. | |
8102 | (add_inf_child_target): Declare. | |
8103 | (inf_child_open_target): Declare. | |
8104 | * linux-thread-db.c (thread_db_target_info): New. | |
8105 | (thread_db_target) <shortname, longname, doc>: Delete. | |
8106 | <info>: New. | |
8107 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use | |
8108 | add_inf_child_target. | |
8109 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use | |
8110 | add_inf_child_target. | |
8111 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use | |
8112 | add_inf_child_target. | |
8113 | * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use | |
8114 | add_inf_child_target. | |
8115 | * make-target-delegates (print_class): Adjust. | |
8116 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use | |
8117 | add_inf_child_target. | |
8118 | * mips-linux-nat.c (_initialize_mips_linux_nat): Use | |
8119 | add_inf_child_target. | |
8120 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use | |
8121 | add_inf_child_target. | |
8122 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use | |
8123 | add_inf_child_target. | |
8124 | * nto-procfs.c (nto_native_target_info): New. | |
8125 | (nto_procfs_target_native) <shortname, longname, doc>: | |
8126 | Delete. | |
8127 | <info>: New. | |
8128 | (nto_procfs_target_info): New. | |
8129 | (nto_procfs_target_procfs) <shortname, longname, doc>: | |
8130 | Delete. | |
8131 | <info>: New. | |
8132 | (init_procfs_targets): Adjust. | |
8133 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use | |
8134 | add_inf_child_target. | |
8135 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use | |
8136 | add_inf_child_target. | |
8137 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use | |
8138 | add_inf_child_target. | |
8139 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use | |
8140 | add_inf_child_target. | |
8141 | * ravenscar-thread.c (ravenscar_target_info): New. | |
8142 | (ravenscar_thread_target) <shortname, longname, doc>: | |
8143 | Delete. | |
8144 | <info>: New. | |
8145 | * record-btrace.c (record_btrace_target_info): | |
8146 | (record_btrace_target) <shortname, longname, doc>: Delete. | |
8147 | <info>: New. | |
8148 | (record_btrace_target::open): Rename to ... | |
8149 | (record_btrace_target_open): ... this. Adjust. | |
8150 | * record-full.c (record_longname, record_doc): New. | |
8151 | (record_full_base_target) <shortname, longname, doc>: Delete. | |
8152 | <info>: New. | |
8153 | (record_full_target_info): New. | |
8154 | (record_full_target): <shortname>: Delete. | |
8155 | <info>: New. | |
8156 | (record_full_core_open_1, record_full_open_1): Update comments. | |
8157 | (record_full_base_target::open): Rename to ... | |
8158 | (record_full_open): ... this. | |
8159 | (cmd_record_full_restore): Update. | |
8160 | (_initialize_record_full): Update. | |
8161 | * remote-sim.c (remote_sim_target_info): New. | |
8162 | (gdbsim_target) <shortname, longname, doc>: Delete. | |
8163 | <info>: New. | |
8164 | (gdbsim_target::open): Rename to ... | |
8165 | (gdbsim_target_open): ... this. | |
8166 | (_initialize_remote_sim): Adjust. | |
8167 | * remote.c (remote_doc): New. | |
8168 | (remote_target_info): New. | |
8169 | (remote_target) <shortname, longname, doc>: Delete. | |
8170 | <info>: New. | |
8171 | (extended_remote_target_info): New. | |
8172 | (extended_remote_target) <shortname, longname, doc>: Delete. | |
8173 | <info>: New. | |
8174 | (remote_target::open_1): Make static. Adjust. | |
8175 | * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target. | |
8176 | * s390-linux-nat.c (_initialize_s390_nat): Use | |
8177 | add_inf_child_target. | |
8178 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use | |
8179 | add_inf_child_target. | |
8180 | * sol-thread.c (thread_db_target_info): New. | |
8181 | (sol_thread_target) <shortname, longname, doc>: Delete. | |
8182 | <info>: New. | |
8183 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use | |
8184 | add_inf_child_target. | |
8185 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use | |
8186 | add_inf_child_target. | |
8187 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use | |
8188 | add_inf_child_target. | |
8189 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use | |
8190 | add_inf_child_target. | |
8191 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use | |
8192 | add_inf_child_target. | |
8193 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use | |
8194 | add_inf_child_target. | |
8195 | * spu-linux-nat.c (_initialize_spu_nat): Use | |
8196 | add_inf_child_target. | |
8197 | * spu-multiarch.c (spu_multiarch_target_info): New. | |
8198 | (spu_multiarch_target) <shortname, longname, doc>: Delete. | |
8199 | <info>: New. | |
8200 | * target-delegates.c: Regenerate. | |
8201 | * target.c: Include <unordered_map>. | |
8202 | (target_ops_p): Delete. | |
8203 | (DEF_VEC_P(target_ops_p)): Delete. | |
8204 | (target_factories): New. | |
8205 | (test_target_info): New. | |
8206 | (test_target_ops::info): New. | |
8207 | (open_target): Adjust to use target_factories. | |
8208 | (add_target_with_completer): Rename to ... | |
8209 | (add_target): ... this. Change prototype. Register target_info | |
8210 | and open callback in target_factories. Register target_info in | |
8211 | command context instead of target_ops. | |
8212 | (add_target): Delete old implementation. | |
8213 | (add_deprecated_target_alias): Change prototype. Adjust. | |
8214 | (the_native_target): New. | |
8215 | (set_native_target, get_native_target): New. | |
8216 | (find_default_run_target): Use the_native_target. | |
8217 | (find_attach_target, find_run_target): Simplify. | |
8218 | (target_ops::open): Delete. | |
8219 | (dummy_target_info): New. | |
8220 | (dummy_target::shortname, dummy_target::longname) | |
8221 | (dummy_target::doc): Delete. | |
8222 | (dummy_target::info): New. | |
8223 | (debug_target::shortname, debug_target::longname) | |
8224 | (debug_target::doc): Delete. | |
8225 | (debug_target::info): New. | |
8226 | * target.h (struct target_info): New. | |
8227 | (target_ops::~target_ops): Add comment. | |
8228 | (target_ops::info): New. | |
8229 | (target_ops::shortname, target_ops::longname, target_ops::doc): No | |
8230 | longer virtual. Implement in terms of target_info. | |
8231 | (set_native_target, get_native_target): Declare. | |
8232 | (target_open_ftype): New. | |
8233 | (add_target, add_target_with_completer) | |
8234 | (add_deprecated_target_alias): Change prototype. | |
8235 | (test_target) <shortname, longname, doc>: Delete. | |
8236 | <info>: New. | |
8237 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use | |
8238 | add_inf_child_target. | |
8239 | * tracefile-tfile.c (tfile_target_info): New. | |
8240 | (tfile_target) <shortname, longname, doc>: Delete. | |
8241 | <info>: New. | |
8242 | (tfile_target::open): Rename to ... | |
8243 | (tfile_target_open): ... this. | |
8244 | (_initialize_tracefile_tfile): Adjust. | |
8245 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use | |
8246 | add_inf_child_target. | |
8247 | * windows-nat.c (_initialize_windows_nat): Use | |
8248 | add_inf_child_target. | |
8249 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use | |
8250 | add_inf_child_target. | |
8251 | ||
135340af PA |
8252 | 2018-05-02 Pedro Alves <[email protected]> |
8253 | ||
8254 | * linux-nat.h (linux_nat_target) <low_new_thread, | |
8255 | low_delete_thread, low_new_fork, low_forget_process, | |
8256 | low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>: | |
8257 | New virtual methods. | |
8258 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
8259 | (linux_nat_new_fork_ftype, linux_nat_set_new_fork) | |
8260 | (linux_nat_forget_process_ftype, linux_nat_set_forget_process) | |
8261 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
8262 | (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event): | |
8263 | Delete. | |
8264 | * linux-fork.c (delete_fork): Adjust to call low method. | |
8265 | * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread) | |
8266 | (linux_nat_new_fork, linux_nat_forget_process_hook) | |
8267 | (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup) | |
8268 | (linux_nat_status_is_event): | |
8269 | (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp) | |
8270 | (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust | |
8271 | to call low method. | |
8272 | (sigtrap_is_event): Rename to ... | |
8273 | (linux_nat_target::low_status_is_event): ... this. | |
8274 | (linux_nat_set_status_is_event): Delete. | |
8275 | (save_stop_reason, linux_nat_wait_1) | |
8276 | (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call | |
8277 | low methods. | |
8278 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
8279 | (linux_nat_set_new_fork, linux_nat_set_forget_process) | |
8280 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
8281 | (linux_nat_set_prepare_to_resume): Delete. | |
8282 | * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to | |
8283 | low virtual methods. | |
8284 | * amd64-linux-nat.c: Likewise. | |
8285 | * arm-linux-nat.c: Likewise. | |
8286 | * i386-linux-nat.c: Likewise. | |
8287 | * ia64-linux-nat.c: Likewise. | |
8288 | * mips-linux-nat.c: Likewise. | |
8289 | * ppc-linux-nat.c: Likewise. | |
8290 | * s390-linux-nat.c: Likewise. | |
8291 | * sparc64-linux-nat.c: Likewise. | |
8292 | * x86-linux-nat.c: Likewise. | |
8293 | * x86-linux-nat.h: Include "nat/x86-linux.h". | |
8294 | (x86_linux_nat_target) <low_new_fork, low_forget_process, | |
8295 | low_prepare_to_resume, low_new_thread, low_delete_thread>: | |
8296 | Override methods. | |
8297 | ||
57810aa7 PA |
8298 | 2018-05-02 Pedro Alves <[email protected]> |
8299 | ||
8300 | * target.h (target_ops) | |
8301 | <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, | |
8302 | stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint, | |
8303 | stopped_by_watchpoint, have_continuable_watchpoint, | |
8304 | stopped_data_address, watchpoint_addr_within_range, | |
8305 | can_accel_watchpoint_condition, can_run, thread_alive, | |
8306 | has_all_memory, has_memory, has_stack, has_registers, | |
8307 | has_execution, can_async_p, is_async_p, supports_non_stop, | |
8308 | always_non_stop_p, can_execute_reverse, supports_multi_process, | |
8309 | supports_enable_disable_tracepoint, | |
8310 | supports_disable_randomization, supports_string_tracing, | |
8311 | supports_evaluation_of_breakpoint_conditions, | |
8312 | can_run_breakpoint_commands, filesystem_is_local, | |
8313 | can_download_tracepoint, get_trace_state_variable_value, | |
8314 | set_trace_notes, get_tib_address, use_agent, can_use_agent, | |
8315 | record_is_replaying, record_will_replay, | |
8316 | augmented_libraries_svr4_read>: Adjust to return bool. | |
8317 | * aarch64-linux-nat.c: All implementations adjusted. | |
8318 | * aix-thread.c: All implementations adjusted. | |
8319 | * arm-linux-nat.c: All implementations adjusted. | |
8320 | * breakpoint.c: All implementations adjusted. | |
8321 | * bsd-kvm.c: All implementations adjusted. | |
8322 | * bsd-uthread.c: All implementations adjusted. | |
8323 | * corelow.c: All implementations adjusted. | |
8324 | * ctf.c: All implementations adjusted. | |
8325 | * darwin-nat.c: All implementations adjusted. | |
8326 | * darwin-nat.h: All implementations adjusted. | |
8327 | * exec.c: All implementations adjusted. | |
8328 | * fbsd-nat.c: All implementations adjusted. | |
8329 | * fbsd-nat.h: All implementations adjusted. | |
8330 | * gnu-nat.c: All implementations adjusted. | |
8331 | * gnu-nat.h: All implementations adjusted. | |
8332 | * go32-nat.c: All implementations adjusted. | |
8333 | * ia64-linux-nat.c: All implementations adjusted. | |
8334 | * inf-child.c: All implementations adjusted. | |
8335 | * inf-child.h: All implementations adjusted. | |
8336 | * inf-ptrace.c: All implementations adjusted. | |
8337 | * inf-ptrace.h: All implementations adjusted. | |
8338 | * linux-nat.c: All implementations adjusted. | |
8339 | * linux-nat.h: All implementations adjusted. | |
8340 | * mips-linux-nat.c: All implementations adjusted. | |
8341 | * nto-procfs.c: All implementations adjusted. | |
8342 | * ppc-linux-nat.c: All implementations adjusted. | |
8343 | * procfs.c: All implementations adjusted. | |
8344 | * ravenscar-thread.c: All implementations adjusted. | |
8345 | * record-btrace.c: All implementations adjusted. | |
8346 | * record-full.c: All implementations adjusted. | |
8347 | * remote-sim.c: All implementations adjusted. | |
8348 | * remote.c: All implementations adjusted. | |
8349 | * s390-linux-nat.c: All implementations adjusted. | |
8350 | * sol-thread.c: All implementations adjusted. | |
8351 | * spu-multiarch.c: All implementations adjusted. | |
8352 | * target-delegates.c: All implementations adjusted. | |
8353 | * target.c: All implementations adjusted. | |
8354 | * target.h: All implementations adjusted. | |
8355 | * tracefile-tfile.c: All implementations adjusted. | |
8356 | * tracefile.c: All implementations adjusted. | |
8357 | * tracefile.h: All implementations adjusted. | |
8358 | * windows-nat.c: All implementations adjusted. | |
8359 | * x86-linux-nat.h: All implementations adjusted. | |
8360 | * x86-nat.h: All implementations adjusted. | |
8361 | ||
ad6a4e2d PA |
8362 | 2018-05-02 Pedro Alves <[email protected]> |
8363 | ||
8364 | * make-target-delegates (scan_target_h): Don't trim lines here. | |
8365 | Replace sequences of tabs and/or whitespace with a single | |
8366 | whitespace. | |
8367 | (top level, parsing methods): Trim each line before processing it | |
8368 | here. | |
8369 | ||
f6ac5f3d PA |
8370 | 2018-05-02 Pedro Alves <[email protected]> |
8371 | John Baldwin <[email protected]> | |
8372 | ||
8373 | * target.h (enum strata) <debug_stratum>: New. | |
8374 | (struct target_ops) <all delegation methods>: Replace by C++ | |
8375 | virtual methods, and drop "to_" prefix. All references updated | |
8376 | throughout. | |
8377 | <to_shortname, to_longname, to_doc, to_data, | |
8378 | to_have_steppable_watchpoint, to_have_continuable_watchpoint, | |
8379 | to_has_thread_control, to_attach_no_wait>: Delete, replaced by | |
8380 | virtual methods. All references updated throughout. | |
8381 | <can_attach, supports_terminal_ours, can_create_inferior, | |
8382 | get_thread_control_capabilities, attach_no_wait>: New | |
8383 | virtual methods. | |
8384 | <insert_breakpoint, remove_breakpoint>: Now | |
8385 | TARGET_DEFAULT_NORETURN methods. | |
8386 | <info_proc>: Now returns bool. | |
8387 | <to_magic>: Delete. | |
8388 | (OPS_MAGIC): Delete. | |
8389 | (current_target): Delete. All references replaced by references | |
8390 | to ... | |
8391 | (target_stack): ... this. New. | |
8392 | (target_shortname, target_longname): Adjust. | |
8393 | (target_can_run): Now a function declaration. | |
8394 | (default_child_has_all_memory, default_child_has_memory) | |
8395 | (default_child_has_stack, default_child_has_registers) | |
8396 | (default_child_has_execution): Remove target_ops parameter. | |
8397 | (complete_target_initialization): Delete. | |
8398 | (memory_breakpoint_target): New template class. | |
8399 | (test_target_ops): Refactor as a C++ class with virtual methods. | |
8400 | * make-target-delegates (NAME_PART): Tighten. | |
8401 | (POINTER_PART, CP_SYMBOL): New. | |
8402 | (SIMPLE_RETURN_PART): Reimplement. | |
8403 | (VEC_RETURN_PART): Expect less. | |
8404 | (RETURN_PART, VIRTUAL_PART): New. | |
8405 | (METHOD): Adjust to C++ virtual methods. | |
8406 | (scan_target_h): Remove reference to C99. | |
8407 | (dname): Output "target_ops::" prefix. | |
8408 | (write_function_header): Adjust to output a C++ class method. | |
8409 | (write_declaration): New. | |
8410 | (write_delegator): Adjust to output a C++ class method. | |
8411 | (tdname): Output "dummy_target::" prefix. | |
8412 | (write_tdefault, write_debugmethod): Adjust to output a C++ class | |
8413 | method. | |
8414 | (tdefault_names, debug_names): Delete. | |
8415 | (return_types, tdefaults, styles, argtypes_array): New. | |
8416 | (top level): All methods are delegators. | |
8417 | (print_class): New. | |
8418 | (top level): Print dummy_target and debug_target classes. | |
8419 | * target-delegates.c: Regenerate. | |
8420 | * target-debug.h (target_debug_print_enum_info_proc_what) | |
8421 | (target_debug_print_thread_control_capabilities) | |
8422 | (target_debug_print_thread_info_p): New. | |
8423 | * target.c (dummy_target): Delete. | |
8424 | (the_dummy_target, the_debug_target): New. | |
8425 | (target_stack): Now extern. | |
8426 | (set_targetdebug): Push/unpush debug target. | |
8427 | (default_child_has_all_memory, default_child_has_memory) | |
8428 | (default_child_has_stack, default_child_has_registers) | |
8429 | (default_child_has_execution): Remove target_ops parameter. | |
8430 | (complete_target_initialization): Delete. | |
8431 | (add_target_with_completer): No longer call | |
8432 | complete_target_initialization. | |
8433 | (target_supports_terminal_ours): Use regular delegation. | |
8434 | (update_current_target): Delete. | |
8435 | (push_target): No longer check magic number. Don't call | |
8436 | update_current_target. | |
8437 | (unpush_target): Don't call update_current_target. | |
8438 | (target_is_pushed): No longer check magic number. | |
8439 | (target_require_runnable): Skip for all stratums over | |
8440 | process_stratum. | |
8441 | (target_ops::info_proc): New. | |
8442 | (target_info_proc): Use find_target_at and | |
8443 | find_default_run_target. | |
8444 | (target_supports_disable_randomization): Use regular delegation. | |
8445 | (target_get_osdata): Use find_target_at. | |
8446 | (target_ops::open, target_ops::close, target_ops::can_attach) | |
8447 | (target_ops::attach, target_ops::can_create_inferior) | |
8448 | (target_ops::create_inferior, target_ops::can_run) | |
8449 | (target_can_run): New. | |
8450 | (default_fileio_target): Use regular delegation. | |
8451 | (target_ops::fileio_open, target_ops::fileio_pwrite) | |
8452 | (target_ops::fileio_pread, target_ops::fileio_fstat) | |
8453 | (target_ops::fileio_close, target_ops::fileio_unlink) | |
8454 | (target_ops::fileio_readlink): New. | |
8455 | (target_fileio_open_1, target_fileio_unlink) | |
8456 | (target_fileio_readlink): Always call the target method. Handle | |
8457 | FILEIO_ENOSYS. | |
8458 | (return_zero, return_zero_has_execution): Delete. | |
8459 | (init_dummy_target): Delete. | |
8460 | (dummy_target::dummy_target, dummy_target::shortname) | |
8461 | (dummy_target::longname, dummy_target::doc) | |
8462 | (debug_target::debug_target, debug_target::shortname) | |
8463 | (debug_target::longname, debug_target::doc): New. | |
8464 | (target_supports_delete_record): Use regular delegation. | |
8465 | (setup_target_debug): Delete. | |
8466 | (maintenance_print_target_stack): Skip debug_stratum. | |
8467 | (initialize_targets): Instantiate the_dummy_target and | |
8468 | the_debug_target. | |
8469 | * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to | |
8470 | use target_stack. | |
8471 | (target_auxv_search, fprint_target_auxv): Adjust. | |
8472 | (info_auxv_command): Adjust to use target_stack. | |
8473 | * auxv.h (target_auxv_parse): Remove 'ops' parameter. | |
8474 | * exceptions.c (print_flush): Handle a NULL target_stack. | |
8475 | * regcache.c (target_ops_no_register): Refactor as class with | |
8476 | virtual methods. | |
8477 | ||
8478 | * exec.c (exec_target): New class. | |
8479 | (exec_ops): Now an exec_target. | |
8480 | (exec_open, exec_close_1, exec_get_section_table) | |
8481 | (exec_xfer_partial, exec_files_info, exec_has_memory) | |
8482 | (exec_make_note_section): Refactor as exec_target methods. | |
8483 | (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops): | |
8484 | Delete. | |
8485 | (exec_target::find_memory_regions): New. | |
8486 | (_initialize_exec): Don't call init_exec_ops. | |
8487 | * gdbcore.h (exec_file_clear): Delete. | |
8488 | ||
8489 | * corefile.c (core_target): Delete. | |
8490 | (core_file_command): Adjust. | |
8491 | * corelow.c (core_target): New class. | |
8492 | (the_core_target): New. | |
8493 | (core_close): Remove target_ops parameter. | |
8494 | (core_close_cleanup): Adjust. | |
8495 | (core_target::close): New. | |
8496 | (core_open, core_detach, get_core_registers, core_files_info) | |
8497 | (core_xfer_partial, core_thread_alive, core_read_description) | |
8498 | (core_pid_to_str, core_thread_name, core_has_memory) | |
8499 | (core_has_stack, core_has_registers, core_info_proc): Rework as | |
8500 | core_target methods. | |
8501 | (ignore, core_remove_breakpoint, init_core_ops): Delete. | |
8502 | (_initialize_corelow): Initialize the_core_target. | |
8503 | * gdbcore.h (core_target): Delete. | |
8504 | (the_core_target): New. | |
8505 | ||
8506 | * ctf.c: (ctf_target): New class. | |
8507 | (ctf_ops): Now a ctf_target. | |
8508 | (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers) | |
8509 | (ctf_xfer_partial, ctf_get_trace_state_variable_value) | |
8510 | (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target | |
8511 | methods. | |
8512 | (init_ctf_ops): Delete. | |
8513 | (_initialize_ctf): Don't call it. | |
8514 | * tracefile-tfile.c (tfile_target): New class. | |
8515 | (tfile_ops): Now a tfile_target. | |
8516 | (tfile_open, tfile_close, tfile_files_info) | |
8517 | (tfile_get_tracepoint_status, tfile_trace_find) | |
8518 | (tfile_fetch_registers, tfile_xfer_partial) | |
8519 | (tfile_get_trace_state_variable_value, tfile_traceframe_info): | |
8520 | Refactor as tfile_target methods. | |
8521 | (tfile_xfer_partial_features): Remove target_ops parameter. | |
8522 | (init_tfile_ops): Delete. | |
8523 | (_initialize_tracefile_tfile): Don't call it. | |
8524 | * tracefile.c (tracefile_has_all_memory, tracefile_has_memory) | |
8525 | (tracefile_has_stack, tracefile_has_registers) | |
8526 | (tracefile_thread_alive, tracefile_get_trace_status): Refactor as | |
8527 | tracefile_target methods. | |
8528 | (init_tracefile_ops): Delete. | |
8529 | (tracefile_target::tracefile_target): New. | |
8530 | * tracefile.h: Include "target.h". | |
8531 | (tracefile_target): New class. | |
8532 | (init_tracefile_ops): Delete. | |
8533 | ||
8534 | * spu-multiarch.c (spu_multiarch_target): New class. | |
8535 | (spu_ops): Now a spu_multiarch_target. | |
8536 | (spu_thread_architecture, spu_region_ok_for_hw_watchpoint) | |
8537 | (spu_fetch_registers, spu_store_registers, spu_xfer_partial) | |
8538 | (spu_search_memory, spu_mourn_inferior): Refactor as | |
8539 | spu_multiarch_target methods. | |
8540 | (init_spu_ops): Delete. | |
8541 | (_initialize_spu_multiarch): Remove references to init_spu_ops, | |
8542 | complete_target_initialization. | |
8543 | ||
8544 | * ravenscar-thread.c (ravenscar_thread_target): New class. | |
8545 | (ravenscar_ops): Now a ravenscar_thread_target. | |
8546 | (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list) | |
8547 | (ravenscar_thread_alive, ravenscar_pid_to_str) | |
8548 | (ravenscar_fetch_registers, ravenscar_store_registers) | |
8549 | (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint) | |
8550 | (ravenscar_stopped_by_hw_breakpoint) | |
8551 | (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address) | |
8552 | (ravenscar_mourn_inferior, ravenscar_core_of_thread) | |
8553 | (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target | |
8554 | methods. | |
8555 | (init_ravenscar_thread_ops): Delete. | |
8556 | (_initialize_ravenscar): Remove references to | |
8557 | init_ravenscar_thread_ops and complete_target_initialization. | |
8558 | ||
8559 | * bsd-uthread.c (bsd_uthread_ops_hack): Delete. | |
8560 | (bsd_uthread_target): New class. | |
8561 | (bsd_uthread_ops): Now a bsd_uthread_target. | |
8562 | (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops. | |
8563 | (bsd_uthread_close, bsd_uthread_mourn_inferior) | |
8564 | (bsd_uthread_fetch_registers, bsd_uthread_store_registers) | |
8565 | (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive) | |
8566 | (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info) | |
8567 | (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods. | |
8568 | (bsd_uthread_target): Delete function. | |
8569 | (_initialize_bsd_uthread): Remove reference to | |
8570 | complete_target_initialization. | |
8571 | ||
8572 | * bfd-target.c (target_bfd_data): Delete. Fields folded into ... | |
8573 | (target_bfd): ... this new class. | |
8574 | (target_bfd_xfer_partial, target_bfd_get_section_table) | |
8575 | (target_bfd_close): Refactor as target_bfd methods. | |
8576 | (target_bfd::~target_bfd): New. | |
8577 | (target_bfd_reopen): Adjust. | |
8578 | (target_bfd::close): New. | |
8579 | ||
8580 | * record-btrace.c (record_btrace_target): New class. | |
8581 | (record_btrace_ops): Now a record_btrace_target. | |
8582 | (record_btrace_open, record_btrace_stop_recording) | |
8583 | (record_btrace_disconnect, record_btrace_close) | |
8584 | (record_btrace_async, record_btrace_info) | |
8585 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
8586 | (record_btrace_insn_history_from, record_btrace_call_history) | |
8587 | (record_btrace_call_history_range) | |
8588 | (record_btrace_call_history_from, record_btrace_record_method) | |
8589 | (record_btrace_is_replaying, record_btrace_will_replay) | |
8590 | (record_btrace_xfer_partial, record_btrace_insert_breakpoint) | |
8591 | (record_btrace_remove_breakpoint, record_btrace_fetch_registers) | |
8592 | (record_btrace_store_registers, record_btrace_prepare_to_store) | |
8593 | (record_btrace_to_get_unwinder) | |
8594 | (record_btrace_to_get_tailcall_unwinder, record_btrace_resume) | |
8595 | (record_btrace_commit_resume, record_btrace_wait) | |
8596 | (record_btrace_stop, record_btrace_can_execute_reverse) | |
8597 | (record_btrace_stopped_by_sw_breakpoint) | |
8598 | (record_btrace_supports_stopped_by_sw_breakpoint) | |
8599 | (record_btrace_stopped_by_hw_breakpoint) | |
8600 | (record_btrace_supports_stopped_by_hw_breakpoint) | |
8601 | (record_btrace_update_thread_list, record_btrace_thread_alive) | |
8602 | (record_btrace_goto_begin, record_btrace_goto_end) | |
8603 | (record_btrace_goto, record_btrace_stop_replaying_all) | |
8604 | (record_btrace_execution_direction) | |
8605 | (record_btrace_prepare_to_generate_core) | |
8606 | (record_btrace_done_generating_core): Refactor as | |
8607 | record_btrace_target methods. | |
8608 | (init_record_btrace_ops): Delete. | |
8609 | (_initialize_record_btrace): Remove reference to | |
8610 | init_record_btrace_ops. | |
8611 | * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to | |
8612 | the execution_direction global. | |
8613 | (record_full_base_target, record_full_target) | |
8614 | (record_full_core_target): New classes. | |
8615 | (record_full_ops): Now a record_full_target. | |
8616 | (record_full_core_ops): Now a record_full_core_target. | |
8617 | (record_full_target::detach, record_full_target::disconnect) | |
8618 | (record_full_core_target::disconnect) | |
8619 | (record_full_target::mourn_inferior, record_full_target::kill): | |
8620 | New. | |
8621 | (record_full_open, record_full_close, record_full_async): Refactor | |
8622 | as methods of the record_full_base_target class. | |
8623 | (record_full_resume, record_full_commit_resume): Refactor | |
8624 | as methods of the record_full_target class. | |
8625 | (record_full_wait, record_full_stopped_by_watchpoint) | |
8626 | (record_full_stopped_data_address) | |
8627 | (record_full_stopped_by_sw_breakpoint) | |
8628 | (record_full_supports_stopped_by_sw_breakpoint) | |
8629 | (record_full_stopped_by_hw_breakpoint) | |
8630 | (record_full_supports_stopped_by_hw_breakpoint): Refactor as | |
8631 | methods of the record_full_base_target class. | |
8632 | (record_full_store_registers, record_full_xfer_partial) | |
8633 | (record_full_insert_breakpoint, record_full_remove_breakpoint): | |
8634 | Refactor as methods of the record_full_target class. | |
8635 | (record_full_can_execute_reverse, record_full_get_bookmark) | |
8636 | (record_full_goto_bookmark, record_full_execution_direction) | |
8637 | (record_full_record_method, record_full_info, record_full_delete) | |
8638 | (record_full_is_replaying, record_full_will_replay) | |
8639 | (record_full_goto_begin, record_full_goto_end, record_full_goto) | |
8640 | (record_full_stop_replaying): Refactor as methods of the | |
8641 | record_full_base_target class. | |
8642 | (record_full_core_resume, record_full_core_kill) | |
8643 | (record_full_core_fetch_registers) | |
8644 | (record_full_core_prepare_to_store) | |
8645 | (record_full_core_store_registers, record_full_core_xfer_partial) | |
8646 | (record_full_core_insert_breakpoint) | |
8647 | (record_full_core_remove_breakpoint) | |
8648 | (record_full_core_has_execution): Refactor | |
8649 | as methods of the record_full_core_target class. | |
8650 | (record_full_base_target::supports_delete_record): New. | |
8651 | (init_record_full_ops): Delete. | |
8652 | (init_record_full_core_ops): Delete. | |
8653 | (record_full_save): Refactor as method of the | |
8654 | record_full_base_target class. | |
8655 | (_initialize_record_full): Remove references to | |
8656 | init_record_full_ops and init_record_full_core_ops. | |
8657 | ||
8658 | * remote.c (remote_target, extended_remote_target): New classes. | |
8659 | (remote_ops): Now a remote_target. | |
8660 | (extended_remote_ops): Now an extended_remote_target. | |
8661 | (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint) | |
8662 | (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint) | |
8663 | (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint) | |
8664 | (remote_pass_signals, remote_set_syscall_catchpoint) | |
8665 | (remote_program_signals, ) | |
8666 | (remote_thread_always_alive): Remove target_ops parameter. | |
8667 | (remote_thread_alive, remote_thread_name) | |
8668 | (remote_update_thread_list, remote_threads_extra_info) | |
8669 | (remote_static_tracepoint_marker_at) | |
8670 | (remote_static_tracepoint_markers_by_strid) | |
8671 | (remote_get_ada_task_ptid, remote_close, remote_start_remote) | |
8672 | (remote_open): Refactor as methods of remote_target. | |
8673 | (extended_remote_open, extended_remote_detach) | |
8674 | (extended_remote_attach, extended_remote_post_attach): | |
8675 | (extended_remote_supports_disable_randomization) | |
8676 | (extended_remote_create_inferior): : Refactor as method of | |
8677 | extended_remote_target. | |
8678 | (remote_set_permissions, remote_open_1, remote_detach) | |
8679 | (remote_follow_fork, remote_follow_exec, remote_disconnect) | |
8680 | (remote_resume, remote_commit_resume, remote_stop) | |
8681 | (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior) | |
8682 | (remote_terminal_ours, remote_wait, remote_fetch_registers) | |
8683 | (remote_prepare_to_store, remote_store_registers) | |
8684 | (remote_flash_erase, remote_flash_done, remote_files_info) | |
8685 | (remote_kill, remote_mourn, remote_insert_breakpoint) | |
8686 | (remote_remove_breakpoint, remote_insert_watchpoint) | |
8687 | (remote_watchpoint_addr_within_range) | |
8688 | (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint) | |
8689 | (remote_check_watch_resources, remote_stopped_by_sw_breakpoint) | |
8690 | (remote_supports_stopped_by_sw_breakpoint) | |
8691 | (remote_stopped_by_hw_breakpoint) | |
8692 | (remote_supports_stopped_by_hw_breakpoint) | |
8693 | (remote_stopped_by_watchpoint, remote_stopped_data_address) | |
8694 | (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint) | |
8695 | (remote_verify_memory): Refactor as methods of remote_target. | |
8696 | (remote_write_qxfer, remote_read_qxfer): Remove target_ops | |
8697 | parameter. | |
8698 | (remote_xfer_partial, remote_get_memory_xfer_limit) | |
8699 | (remote_search_memory, remote_rcmd, remote_memory_map) | |
8700 | (remote_pid_to_str, remote_get_thread_local_address) | |
8701 | (remote_get_tib_address, remote_read_description): Refactor as | |
8702 | methods of remote_target. | |
8703 | (remote_target::fileio_open, remote_target::fileio_pwrite) | |
8704 | (remote_target::fileio_pread, remote_target::fileio_close): New. | |
8705 | (remote_hostio_readlink, remote_hostio_fstat) | |
8706 | (remote_filesystem_is_local, remote_can_execute_reverse) | |
8707 | (remote_supports_non_stop, remote_supports_disable_randomization) | |
8708 | (remote_supports_multi_process, remote_supports_cond_breakpoints) | |
8709 | (remote_supports_enable_disable_tracepoint) | |
8710 | (remote_supports_string_tracing) | |
8711 | (remote_can_run_breakpoint_commands, remote_trace_init) | |
8712 | (remote_download_tracepoint, remote_can_download_tracepoint) | |
8713 | (remote_download_trace_state_variable, remote_enable_tracepoint) | |
8714 | (remote_disable_tracepoint, remote_trace_set_readonly_regions) | |
8715 | (remote_trace_start, remote_get_trace_status) | |
8716 | (remote_get_tracepoint_status, remote_trace_stop) | |
8717 | (remote_trace_find, remote_get_trace_state_variable_value) | |
8718 | (remote_save_trace_data, remote_get_raw_trace_data) | |
8719 | (remote_set_disconnected_tracing, remote_core_of_thread) | |
8720 | (remote_set_circular_trace_buffer, remote_traceframe_info) | |
8721 | (remote_get_min_fast_tracepoint_insn_len) | |
8722 | (remote_set_trace_buffer_size, remote_set_trace_notes) | |
8723 | (remote_use_agent, remote_can_use_agent, remote_enable_btrace) | |
8724 | (remote_disable_btrace, remote_teardown_btrace) | |
8725 | (remote_read_btrace, remote_btrace_conf) | |
8726 | (remote_augmented_libraries_svr4_read, remote_load) | |
8727 | (remote_pid_to_exec_file, remote_can_do_single_step) | |
8728 | (remote_execution_direction, remote_thread_handle_to_thread_info): | |
8729 | Refactor as methods of remote_target. | |
8730 | (init_remote_ops, init_extended_remote_ops): Delete. | |
8731 | (remote_can_async_p, remote_is_async_p, remote_async) | |
8732 | (remote_thread_events, remote_upload_tracepoints) | |
8733 | (remote_upload_trace_state_variables): Refactor as methods of | |
8734 | remote_target. | |
8735 | (_initialize_remote): Remove references to init_remote_ops and | |
8736 | init_extended_remote_ops. | |
8737 | ||
8738 | * remote-sim.c (gdbsim_target): New class. | |
8739 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill) | |
8740 | (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close) | |
8741 | (gdbsim_detach, gdbsim_resume, gdbsim_interrupt) | |
8742 | (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial) | |
8743 | (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive) | |
8744 | (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory): | |
8745 | Refactor as methods of gdbsim_target. | |
8746 | (gdbsim_ops): Now a gdbsim_target. | |
8747 | (init_gdbsim_ops): Delete. | |
8748 | (gdbsim_cntrl_c): Adjust. | |
8749 | (_initialize_remote_sim): Remove reference to init_gdbsim_ops. | |
8750 | ||
8751 | * amd64-linux-nat.c (amd64_linux_nat_target): New class. | |
8752 | (the_amd64_linux_nat_target): New. | |
8753 | (amd64_linux_fetch_inferior_registers) | |
8754 | (amd64_linux_store_inferior_registers): Refactor as methods of | |
8755 | amd64_linux_nat_target. | |
8756 | (_initialize_amd64_linux_nat): Adjust. Set linux_target. | |
8757 | * i386-linux-nat.c: Don't include "linux-nat.h". | |
8758 | (i386_linux_nat_target): New class. | |
8759 | (the_i386_linux_nat_target): New. | |
8760 | (i386_linux_fetch_inferior_registers) | |
8761 | (i386_linux_store_inferior_registers, i386_linux_resume): Refactor | |
8762 | as methods of i386_linux_nat_target. | |
8763 | (_initialize_i386_linux_nat): Adjust. Set linux_target. | |
8764 | * inf-child.c (inf_child_ops): Delete. | |
8765 | (inf_child_fetch_inferior_registers) | |
8766 | (inf_child_store_inferior_registers): Delete. | |
8767 | (inf_child_post_attach, inf_child_prepare_to_store): Refactor as | |
8768 | methods of inf_child_target. | |
8769 | (inf_child_target::supports_terminal_ours) | |
8770 | (inf_child_target::terminal_init) | |
8771 | (inf_child_target::terminal_inferior) | |
8772 | (inf_child_target::terminal_ours_for_output) | |
8773 | (inf_child_target::terminal_ours, inf_child_target::interrupt) | |
8774 | (inf_child_target::pass_ctrlc, inf_child_target::terminal_info): | |
8775 | New. | |
8776 | (inf_child_open, inf_child_disconnect, inf_child_close) | |
8777 | (inf_child_mourn_inferior, inf_child_maybe_unpush_target) | |
8778 | (inf_child_post_startup_inferior, inf_child_can_run) | |
8779 | (inf_child_pid_to_exec_file): Refactor as methods of | |
8780 | inf_child_target. | |
8781 | (inf_child_follow_fork): Delete. | |
8782 | (inf_child_target::can_create_inferior) | |
8783 | (inf_child_target::can_attach): New. | |
8784 | (inf_child_target::has_all_memory, inf_child_target::has_memory) | |
8785 | (inf_child_target::has_stack, inf_child_target::has_registers) | |
8786 | (inf_child_target::has_execution): New. | |
8787 | (inf_child_fileio_open, inf_child_fileio_pwrite) | |
8788 | (inf_child_fileio_pread, inf_child_fileio_fstat) | |
8789 | (inf_child_fileio_close, inf_child_fileio_unlink) | |
8790 | (inf_child_fileio_readlink, inf_child_use_agent) | |
8791 | (inf_child_can_use_agent): Refactor as methods of | |
8792 | inf_child_target. | |
8793 | (return_zero, inf_child_target): Delete. | |
8794 | (inf_child_target::inf_child_target): New. | |
8795 | * inf-child.h: Include "target.h". | |
8796 | (inf_child_target): Delete function prototype. | |
8797 | (inf_child_target): New class. | |
8798 | (inf_child_open_target, inf_child_mourn_inferior) | |
8799 | (inf_child_maybe_unpush_target): Delete. | |
8800 | * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New. | |
8801 | (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint) | |
8802 | (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior) | |
8803 | (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior) | |
8804 | (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach) | |
8805 | (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume) | |
8806 | (inf_ptrace_wait, inf_ptrace_xfer_partial) | |
8807 | (inf_ptrace_thread_alive, inf_ptrace_files_info) | |
8808 | (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as | |
8809 | methods of inf_ptrace_target. | |
8810 | (inf_ptrace_target): Delete function. | |
8811 | * inf-ptrace.h: Include "inf-child.h". | |
8812 | (inf_ptrace_target): Delete function declaration. | |
8813 | (inf_ptrace_target): New class. | |
8814 | (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete. | |
8815 | * linux-nat.c (linux_target): New. | |
8816 | (linux_ops, linux_ops_saved, super_xfer_partial): Delete. | |
8817 | (linux_nat_target::~linux_nat_target): New. | |
8818 | (linux_child_post_attach, linux_child_post_startup_inferior) | |
8819 | (linux_child_follow_fork, linux_child_insert_fork_catchpoint) | |
8820 | (linux_child_remove_fork_catchpoint) | |
8821 | (linux_child_insert_vfork_catchpoint) | |
8822 | (linux_child_remove_vfork_catchpoint) | |
8823 | (linux_child_insert_exec_catchpoint) | |
8824 | (linux_child_remove_exec_catchpoint) | |
8825 | (linux_child_set_syscall_catchpoint, linux_nat_pass_signals) | |
8826 | (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach) | |
8827 | (linux_nat_resume, linux_nat_stopped_by_watchpoint) | |
8828 | (linux_nat_stopped_data_address) | |
8829 | (linux_nat_stopped_by_sw_breakpoint) | |
8830 | (linux_nat_supports_stopped_by_sw_breakpoint) | |
8831 | (linux_nat_stopped_by_hw_breakpoint) | |
8832 | (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait) | |
8833 | (linux_nat_kill, linux_nat_mourn_inferior) | |
8834 | (linux_nat_xfer_partial, linux_nat_thread_alive) | |
8835 | (linux_nat_update_thread_list, linux_nat_pid_to_str) | |
8836 | (linux_nat_thread_name, linux_child_pid_to_exec_file) | |
8837 | (linux_child_static_tracepoint_markers_by_strid) | |
8838 | (linux_nat_is_async_p, linux_nat_can_async_p) | |
8839 | (linux_nat_supports_non_stop, linux_nat_always_non_stop_p) | |
8840 | (linux_nat_supports_multi_process) | |
8841 | (linux_nat_supports_disable_randomization, linux_nat_async) | |
8842 | (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space) | |
8843 | (linux_nat_core_of_thread, linux_nat_filesystem_is_local) | |
8844 | (linux_nat_fileio_open, linux_nat_fileio_readlink) | |
8845 | (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as | |
8846 | methods of linux_nat_target. | |
8847 | (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial) | |
8848 | (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops | |
8849 | parameter. | |
8850 | (check_stopped_by_watchpoint): Adjust. | |
8851 | (linux_xfer_partial): Delete. | |
8852 | (linux_target_install_ops, linux_target, linux_nat_add_target): | |
8853 | Delete. | |
8854 | (linux_nat_target::linux_nat_target): New. | |
8855 | * linux-nat.h: Include "inf-ptrace.h". | |
8856 | (linux_nat_target): New. | |
8857 | (linux_target, linux_target_install_ops, linux_nat_add_target): | |
8858 | Delete function declarations. | |
8859 | (linux_target): Declare global. | |
8860 | * linux-thread-db.c (thread_db_target): New. | |
8861 | (thread_db_target::thread_db_target): New. | |
8862 | (thread_db_ops): Delete. | |
8863 | (the_thread_db_target): New. | |
8864 | (thread_db_detach, thread_db_wait, thread_db_mourn_inferior) | |
8865 | (thread_db_update_thread_list, thread_db_pid_to_str) | |
8866 | (thread_db_extra_thread_info) | |
8867 | (thread_db_thread_handle_to_thread_info) | |
8868 | (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid) | |
8869 | (thread_db_resume): Refactor as methods of thread_db_target. | |
8870 | (init_thread_db_ops): Delete. | |
8871 | (_initialize_thread_db): Remove reference to init_thread_db_ops. | |
8872 | * x86-linux-nat.c: Don't include "linux-nat.h". | |
8873 | (super_post_startup_inferior): Delete. | |
8874 | (x86_linux_nat_target::~x86_linux_nat_target): New. | |
8875 | (x86_linux_child_post_startup_inferior) | |
8876 | (x86_linux_read_description, x86_linux_enable_btrace) | |
8877 | (x86_linux_disable_btrace, x86_linux_teardown_btrace) | |
8878 | (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as | |
8879 | methods of x86_linux_nat_target. | |
8880 | (x86_linux_create_target): Delete. Bits folded ... | |
8881 | (x86_linux_add_target): ... here. Now takes a linux_nat_target | |
8882 | pointer. | |
8883 | * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h". | |
8884 | (x86_linux_nat_target): New class. | |
8885 | (x86_linux_create_target): Delete. | |
8886 | (x86_linux_add_target): Now takes a linux_nat_target pointer. | |
8887 | * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint) | |
8888 | (x86_region_ok_for_watchpoint, x86_stopped_data_address) | |
8889 | (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint) | |
8890 | (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint) | |
8891 | (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and | |
8892 | make extern. | |
8893 | (x86_use_watchpoints): Delete. | |
8894 | * x86-nat.h: Include "breakpoint.h" and "target.h". | |
8895 | (x86_use_watchpoints): Delete. | |
8896 | (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint) | |
8897 | (x86_stopped_by_watchpoint, x86_stopped_data_address) | |
8898 | (x86_insert_watchpoint, x86_remove_watchpoint) | |
8899 | (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint) | |
8900 | (x86_stopped_by_hw_breakpoint): New declarations. | |
8901 | (x86_nat_target): New template class. | |
8902 | ||
8903 | * ppc-linux-nat.c (ppc_linux_nat_target): New class. | |
8904 | (the_ppc_linux_nat_target): New. | |
8905 | (ppc_linux_fetch_inferior_registers) | |
8906 | (ppc_linux_can_use_hw_breakpoint) | |
8907 | (ppc_linux_region_ok_for_hw_watchpoint) | |
8908 | (ppc_linux_ranged_break_num_registers) | |
8909 | (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) | |
8910 | (ppc_linux_insert_mask_watchpoint) | |
8911 | (ppc_linux_remove_mask_watchpoint) | |
8912 | (ppc_linux_can_accel_watchpoint_condition) | |
8913 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint) | |
8914 | (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint) | |
8915 | (ppc_linux_watchpoint_addr_within_range) | |
8916 | (ppc_linux_masked_watch_num_registers) | |
8917 | (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse) | |
8918 | (ppc_linux_read_description): Refactor as methods of | |
8919 | ppc_linux_nat_target. | |
8920 | (_initialize_ppc_linux_nat): Adjust. Set linux_target. | |
8921 | ||
8922 | * procfs.c (procfs_xfer_partial): Delete forward declaration. | |
8923 | (procfs_target): New class. | |
8924 | (the_procfs_target): New. | |
8925 | (procfs_target): Delete function. | |
8926 | (procfs_auxv_parse, procfs_attach, procfs_detach) | |
8927 | (procfs_fetch_registers, procfs_store_registers, procfs_wait) | |
8928 | (procfs_xfer_partial, procfs_resume, procfs_pass_signals) | |
8929 | (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior) | |
8930 | (procfs_create_inferior, procfs_update_thread_list) | |
8931 | (procfs_thread_alive, procfs_pid_to_str) | |
8932 | (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint) | |
8933 | (procfs_stopped_data_address, procfs_insert_watchpoint) | |
8934 | (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint) | |
8935 | (proc_find_memory_regions, procfs_info_proc) | |
8936 | (procfs_make_note_section): Refactor as methods of procfs_target. | |
8937 | (_initialize_procfs): Adjust. | |
8938 | * sol-thread.c (sol_thread_target): New class. | |
8939 | (sol_thread_ops): Now a sol_thread_target. | |
8940 | (sol_thread_detach, sol_thread_resume, sol_thread_wait) | |
8941 | (sol_thread_fetch_registers, sol_thread_store_registers) | |
8942 | (sol_thread_xfer_partial, sol_thread_mourn_inferior) | |
8943 | (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list) | |
8944 | (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target. | |
8945 | (init_sol_thread_ops): Delete. | |
8946 | (_initialize_sol_thread): Adjust. Remove references to | |
8947 | init_sol_thread_ops and complete_target_initialization. | |
8948 | ||
8949 | * windows-nat.c (windows_nat_target): New class. | |
8950 | (windows_fetch_inferior_registers) | |
8951 | (windows_store_inferior_registers, windows_resume, windows_wait) | |
8952 | (windows_attach, windows_detach, windows_pid_to_exec_file) | |
8953 | (windows_files_info, windows_create_inferior) | |
8954 | (windows_mourn_inferior, windows_interrupt, windows_kill_inferior) | |
8955 | (windows_close, windows_pid_to_str, windows_xfer_partial) | |
8956 | (windows_get_tib_address, windows_get_ada_task_ptid) | |
8957 | (windows_thread_name, windows_thread_alive): Refactor as | |
8958 | windows_nat_target methods. | |
8959 | (do_initial_windows_stuff): Adjust. | |
8960 | (windows_target): Delete function. | |
8961 | (_initialize_windows_nat): Adjust. | |
8962 | ||
8963 | * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt) | |
8964 | (darwin_mourn_inferior, darwin_kill_inferior) | |
8965 | (darwin_create_inferior, darwin_attach, darwin_detach) | |
8966 | (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial) | |
8967 | (darwin_pid_to_exec_file, darwin_get_ada_task_ptid) | |
8968 | (darwin_supports_multi_process): Refactor as darwin_nat_target | |
8969 | methods. | |
8970 | (darwin_resume_to, darwin_files_info): Delete. | |
8971 | (_initialize_darwin_inferior): Rename to ... | |
8972 | (_initialize_darwin_nat): ... this. Adjust to C++ification. | |
8973 | * darwin-nat.h: Include "inf-child.h". | |
8974 | (darwin_nat_target): New class. | |
8975 | (darwin_complete_target): Delete. | |
8976 | * i386-darwin-nat.c (i386_darwin_nat_target): New class. | |
8977 | (darwin_target): New. | |
8978 | (i386_darwin_fetch_inferior_registers) | |
8979 | (i386_darwin_store_inferior_registers): Refactor as methods of | |
8980 | darwin_nat_target. | |
8981 | (darwin_complete_target): Delete, with ... | |
8982 | (_initialize_i386_darwin_nat): ... bits factored out here. | |
8983 | ||
8984 | * alpha-linux-nat.c (alpha_linux_nat_target): New class. | |
8985 | (the_alpha_linux_nat_target): New. | |
8986 | (alpha_linux_register_u_offset): Refactor as | |
8987 | alpha_linux_nat_target method. | |
8988 | (_initialize_alpha_linux_nat): Adjust. | |
8989 | * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete. | |
8990 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
8991 | (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as | |
8992 | methods of linux_nat_trad_target. | |
8993 | (linux_trad_target): Delete. | |
8994 | * linux-nat-trad.h (linux_trad_target): Delete function. | |
8995 | (linux_nat_trad_target): New class. | |
8996 | * mips-linux-nat.c (mips_linux_nat_target): New class. | |
8997 | (super_fetch_registers, super_store_registers, super_close): | |
8998 | Delete. | |
8999 | (the_mips_linux_nat_target): New. | |
9000 | (mips64_linux_regsets_fetch_registers) | |
9001 | (mips64_linux_regsets_store_registers) | |
9002 | (mips64_linux_fetch_registers, mips64_linux_store_registers) | |
9003 | (mips_linux_register_u_offset, mips_linux_read_description) | |
9004 | (mips_linux_can_use_hw_breakpoint) | |
9005 | (mips_linux_stopped_by_watchpoint) | |
9006 | (mips_linux_stopped_data_address) | |
9007 | (mips_linux_region_ok_for_hw_watchpoint) | |
9008 | (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint) | |
9009 | (mips_linux_close): Refactor as methods of mips_linux_nat. | |
9010 | (_initialize_mips_linux_nat): Adjust to C++ification. | |
9011 | ||
9012 | * aix-thread.c (aix_thread_target): New class. | |
9013 | (aix_thread_ops): Now an aix_thread_target. | |
9014 | (aix_thread_detach, aix_thread_resume, aix_thread_wait) | |
9015 | (aix_thread_fetch_registers, aix_thread_store_registers) | |
9016 | (aix_thread_xfer_partial, aix_thread_mourn_inferior) | |
9017 | (aix_thread_thread_alive, aix_thread_pid_to_str) | |
9018 | (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid): | |
9019 | Refactor as methods of aix_thread_target. | |
9020 | (init_aix_thread_ops): Delete. | |
9021 | (_initialize_aix_thread): Remove references to init_aix_thread_ops | |
9022 | and complete_target_initialization. | |
9023 | * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete. | |
9024 | (rs6000_nat_target): New class. | |
9025 | (the_rs6000_nat_target): New. | |
9026 | (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers) | |
9027 | (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior) | |
9028 | (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods. | |
9029 | (super_create_inferior): Delete. | |
9030 | (_initialize_rs6000_nat): Adjust to C++ification. | |
9031 | ||
9032 | * arm-linux-nat.c (arm_linux_nat_target): New class. | |
9033 | (the_arm_linux_nat_target): New. | |
9034 | (arm_linux_fetch_inferior_registers) | |
9035 | (arm_linux_store_inferior_registers, arm_linux_read_description) | |
9036 | (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint) | |
9037 | (arm_linux_remove_hw_breakpoint) | |
9038 | (arm_linux_region_ok_for_hw_watchpoint) | |
9039 | (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint) | |
9040 | (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint) | |
9041 | (arm_linux_watchpoint_addr_within_range): Refactor as methods of | |
9042 | arm_linux_nat_target. | |
9043 | (_initialize_arm_linux_nat): Adjust to C++ification. | |
9044 | ||
9045 | * aarch64-linux-nat.c (aarch64_linux_nat_target): New class. | |
9046 | (the_aarch64_linux_nat_target): New. | |
9047 | (aarch64_linux_fetch_inferior_registers) | |
9048 | (aarch64_linux_store_inferior_registers) | |
9049 | (aarch64_linux_child_post_startup_inferior) | |
9050 | (aarch64_linux_read_description) | |
9051 | (aarch64_linux_can_use_hw_breakpoint) | |
9052 | (aarch64_linux_insert_hw_breakpoint) | |
9053 | (aarch64_linux_remove_hw_breakpoint) | |
9054 | (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint) | |
9055 | (aarch64_linux_region_ok_for_hw_watchpoint) | |
9056 | (aarch64_linux_stopped_data_address) | |
9057 | (aarch64_linux_stopped_by_watchpoint) | |
9058 | (aarch64_linux_watchpoint_addr_within_range) | |
9059 | (aarch64_linux_can_do_single_step): Refactor as methods of | |
9060 | aarch64_linux_nat_target. | |
9061 | (super_post_startup_inferior): Delete. | |
9062 | (_initialize_aarch64_linux_nat): Adjust to C++ification. | |
9063 | ||
9064 | * hppa-linux-nat.c (hppa_linux_nat_target): New class. | |
9065 | (the_hppa_linux_nat_target): New. | |
9066 | (hppa_linux_fetch_inferior_registers) | |
9067 | (hppa_linux_store_inferior_registers): Refactor as methods of | |
9068 | hppa_linux_nat_target. | |
9069 | (_initialize_hppa_linux_nat): Adjust to C++ification. | |
9070 | ||
9071 | * ia64-linux-nat.c (ia64_linux_nat_target): New class. | |
9072 | (the_ia64_linux_nat_target): New. | |
9073 | (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint) | |
9074 | (ia64_linux_stopped_data_address) | |
9075 | (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers) | |
9076 | (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as | |
9077 | ia64_linux_nat_target methods. | |
9078 | (super_xfer_partial): Delete. | |
9079 | (_initialize_ia64_linux_nat): Adjust to C++ification. | |
9080 | ||
9081 | * m32r-linux-nat.c (m32r_linux_nat_target): New class. | |
9082 | (the_m32r_linux_nat_target): New. | |
9083 | (m32r_linux_fetch_inferior_registers) | |
9084 | (m32r_linux_store_inferior_registers): Refactor as | |
9085 | m32r_linux_nat_target methods. | |
9086 | (_initialize_m32r_linux_nat): Adjust to C++ification. | |
9087 | ||
9088 | * m68k-linux-nat.c (m68k_linux_nat_target): New class. | |
9089 | (the_m68k_linux_nat_target): New. | |
9090 | (m68k_linux_fetch_inferior_registers) | |
9091 | (m68k_linux_store_inferior_registers): Refactor as | |
9092 | m68k_linux_nat_target methods. | |
9093 | (_initialize_m68k_linux_nat): Adjust to C++ification. | |
9094 | ||
9095 | * s390-linux-nat.c (s390_linux_nat_target): New class. | |
9096 | (the_s390_linux_nat_target): New. | |
9097 | (s390_linux_fetch_inferior_registers) | |
9098 | (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint) | |
9099 | (s390_insert_watchpoint, s390_remove_watchpoint) | |
9100 | (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint) | |
9101 | (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint) | |
9102 | (s390_auxv_parse, s390_read_description): Refactor as methods of | |
9103 | s390_linux_nat_target. | |
9104 | (_initialize_s390_nat): Adjust to C++ification. | |
9105 | ||
9106 | * sparc-linux-nat.c (sparc_linux_nat_target): New class. | |
9107 | (the_sparc_linux_nat_target): New. | |
9108 | (_initialize_sparc_linux_nat): Adjust to C++ification. | |
9109 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
9110 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
9111 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
9112 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
9113 | * sparc64-linux-nat.c (sparc64_linux_nat_target): New class. | |
9114 | (the_sparc64_linux_nat_target): New. | |
9115 | (_initialize_sparc64_linux_nat): Adjust to C++ification. | |
9116 | ||
9117 | * spu-linux-nat.c (spu_linux_nat_target): New class. | |
9118 | (the_spu_linux_nat_target): New. | |
9119 | (spu_child_post_startup_inferior, spu_child_post_attach) | |
9120 | (spu_child_wait, spu_fetch_inferior_registers) | |
9121 | (spu_store_inferior_registers, spu_xfer_partial) | |
9122 | (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target | |
9123 | methods. | |
9124 | (_initialize_spu_nat): Adjust to C++ification. | |
9125 | ||
9126 | * tilegx-linux-nat.c (tilegx_linux_nat_target): New class. | |
9127 | (the_tilegx_linux_nat_target): New. | |
9128 | (fetch_inferior_registers, store_inferior_registers): | |
9129 | Refactor as methods. | |
9130 | (_initialize_tile_linux_nat): Adjust to C++ification. | |
9131 | ||
9132 | * xtensa-linux-nat.c (xtensa_linux_nat_target): New class. | |
9133 | (the_xtensa_linux_nat_target): New. | |
9134 | (xtensa_linux_fetch_inferior_registers) | |
9135 | (xtensa_linux_store_inferior_registers): Refactor as | |
9136 | xtensa_linux_nat_target methods. | |
9137 | (_initialize_xtensa_linux_nat): Adjust to C++ification. | |
9138 | ||
9139 | * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete. | |
9140 | (fbsd_pid_to_exec_file, fbsd_find_memory_regions) | |
9141 | (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial) | |
9142 | (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name) | |
9143 | (fbsd_update_thread_list, fbsd_resume, fbsd_wait) | |
9144 | (fbsd_stopped_by_sw_breakpoint) | |
9145 | (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork) | |
9146 | (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint) | |
9147 | (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint) | |
9148 | (fbsd_post_startup_inferior, fbsd_post_attach) | |
9149 | (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint) | |
9150 | (fbsd_set_syscall_catchpoint) | |
9151 | (super_xfer_partial, super_resume, super_wait) | |
9152 | (fbsd_supports_stopped_by_hw_breakpoint): Delete. | |
9153 | (fbsd_handle_debug_trap): Remove target_ops parameter. | |
9154 | (fbsd_nat_add_target): Delete. | |
9155 | * fbsd-nat.h: Include "inf-ptrace.h". | |
9156 | (fbsd_nat_add_target): Delete. | |
9157 | (USE_SIGTRAP_SIGINFO): Define. | |
9158 | (fbsd_nat_target): New class. | |
9159 | ||
9160 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers) | |
9161 | (amd64bsd_store_inferior_registers): Remove target_ops parameter. | |
9162 | (amd64bsd_target): Delete. | |
9163 | * amd64-bsd-nat.h: New file. | |
9164 | * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of | |
9165 | "x86-bsd-nat.h". | |
9166 | (amd64_fbsd_nat_target): New class. | |
9167 | (the_amd64_fbsd_nat_target): New. | |
9168 | (amd64fbsd_read_description): Refactor as method of | |
9169 | amd64_fbsd_nat_target. | |
9170 | (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
9171 | (_initialize_amd64fbsd_nat): Adjust to C++ification. | |
9172 | * amd64-nat.h (amd64bsd_target): Delete function declaration. | |
9173 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers) | |
9174 | (i386bsd_store_inferior_registers): Remove target_ops parameter. | |
9175 | (i386bsd_target): Delete. | |
9176 | * i386-bsd-nat.h (i386bsd_target): Delete function declaration. | |
9177 | (i386bsd_fetch_inferior_registers) | |
9178 | (i386bsd_store_inferior_registers): Declare. | |
9179 | (i386_bsd_nat_target): New class. | |
9180 | * i386-fbsd-nat.c (i386_fbsd_nat_target): New class. | |
9181 | (the_i386_fbsd_nat_target): New. | |
9182 | (i386fbsd_resume, i386fbsd_read_description): Refactor as | |
9183 | i386_fbsd_nat_target methods. | |
9184 | (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
9185 | (_initialize_i386fbsd_nat): Adjust to C++ification. | |
9186 | * x86-bsd-nat.c (super_mourn_inferior): Delete. | |
9187 | (x86bsd_mourn_inferior, x86bsd_target): Delete. | |
9188 | (_initialize_x86_bsd_nat): Adjust to C++ification. | |
9189 | * x86-bsd-nat.h: Include "x86-nat.h". | |
9190 | (x86bsd_target): Delete declaration. | |
9191 | (x86bsd_nat_target): New class. | |
9192 | ||
9193 | * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class. | |
9194 | (the_aarch64_fbsd_nat_target): New. | |
9195 | (aarch64_fbsd_fetch_inferior_registers) | |
9196 | (aarch64_fbsd_store_inferior_registers): Refactor as methods of | |
9197 | aarch64_fbsd_nat_target. | |
9198 | (_initialize_aarch64_fbsd_nat): Adjust to C++ification. | |
9199 | * alpha-bsd-nat.c (alpha_bsd_nat_target): New class. | |
9200 | (the_alpha_bsd_nat_target): New. | |
9201 | (alphabsd_fetch_inferior_registers) | |
9202 | (alphabsd_store_inferior_registers): Refactor as | |
9203 | alpha_bsd_nat_target methods. | |
9204 | (_initialize_alphabsd_nat): Refactor as methods of | |
9205 | alpha_bsd_nat_target. | |
9206 | * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h". | |
9207 | (the_amd64_nbsd_nat_target): New. | |
9208 | (_initialize_amd64nbsd_nat): Adjust to C++ification. | |
9209 | * amd64-obsd-nat.c: Include "amd64-bsd-nat.h". | |
9210 | (the_amd64_obsd_nat_target): New. | |
9211 | (_initialize_amd64obsd_nat): Adjust to C++ification. | |
9212 | * arm-fbsd-nat.c (arm_fbsd_nat_target): New. | |
9213 | (the_arm_fbsd_nat_target): New. | |
9214 | (arm_fbsd_fetch_inferior_registers) | |
9215 | (arm_fbsd_store_inferior_registers, arm_fbsd_read_description): | |
9216 | (_initialize_arm_fbsd_nat): Refactor as methods of | |
9217 | arm_fbsd_nat_target. | |
9218 | (_initialize_arm_fbsd_nat): Adjust to C++ification. | |
9219 | * arm-nbsd-nat.c (arm_netbsd_nat_target): New class. | |
9220 | (the_arm_netbsd_nat_target): New. | |
9221 | (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as | |
9222 | arm_netbsd_nat_target. | |
9223 | (_initialize_arm_netbsd_nat): Adjust to C++ification. | |
9224 | * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class. | |
9225 | (the_hppa_nbsd_nat_target): New. | |
9226 | (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as | |
9227 | hppa_nbsd_nat_target methods. | |
9228 | (_initialize_hppanbsd_nat): Adjust to C++ification. | |
9229 | * hppa-obsd-nat.c (hppa_obsd_nat_target): New class. | |
9230 | (the_hppa_obsd_nat_target): New. | |
9231 | (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as | |
9232 | methods of hppa_obsd_nat_target. | |
9233 | (_initialize_hppaobsd_nat): Adjust to C++ification. Use | |
9234 | add_target. | |
9235 | * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New. | |
9236 | (_initialize_i386nbsd_nat): Adjust to C++ification. Use | |
9237 | add_target. | |
9238 | * i386-obsd-nat.c (the_i386_obsd_nat_target): New. | |
9239 | (_initialize_i386obsd_nat): Use add_target. | |
9240 | * m68k-bsd-nat.c (m68k_bsd_nat_target): New class. | |
9241 | (the_m68k_bsd_nat_target): New. | |
9242 | (m68kbsd_fetch_inferior_registers) | |
9243 | (m68kbsd_store_inferior_registers): Refactor as methods of | |
9244 | m68k_bsd_nat_target. | |
9245 | (_initialize_m68kbsd_nat): Adjust to C++ification. | |
9246 | * mips-fbsd-nat.c (mips_fbsd_nat_target): New class. | |
9247 | (the_mips_fbsd_nat_target): New. | |
9248 | (mips_fbsd_fetch_inferior_registers) | |
9249 | (mips_fbsd_store_inferior_registers): Refactor as methods of | |
9250 | mips_fbsd_nat_target. | |
9251 | (_initialize_mips_fbsd_nat): Adjust to C++ification. Use | |
9252 | add_target. | |
9253 | * mips-nbsd-nat.c (mips_nbsd_nat_target): New class. | |
9254 | (the_mips_nbsd_nat_target): New. | |
9255 | (mipsnbsd_fetch_inferior_registers) | |
9256 | (mipsnbsd_store_inferior_registers): Refactor as methods of | |
9257 | mips_nbsd_nat_target. | |
9258 | (_initialize_mipsnbsd_nat): Adjust to C++ification. | |
9259 | * mips64-obsd-nat.c (mips64_obsd_nat_target): New class. | |
9260 | (the_mips64_obsd_nat_target): New. | |
9261 | (mips64obsd_fetch_inferior_registers) | |
9262 | (mips64obsd_store_inferior_registers): Refactor as methods of | |
9263 | mips64_obsd_nat_target. | |
9264 | (_initialize_mips64obsd_nat): Adjust to C++ification. Use | |
9265 | add_target. | |
9266 | * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of | |
9267 | nbsd_nat_target. | |
9268 | * nbsd-nat.h: Include "inf-ptrace.h". | |
9269 | (nbsd_nat_target): New class. | |
9270 | * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list) | |
9271 | (obsd_wait): Refactor as methods of obsd_nat_target. | |
9272 | (obsd_add_target): Delete. | |
9273 | * obsd-nat.h: Include "inf-ptrace.h". | |
9274 | (obsd_nat_target): New class. | |
9275 | * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class. | |
9276 | (the_ppc_fbsd_nat_target): New. | |
9277 | (ppcfbsd_fetch_inferior_registers) | |
9278 | (ppcfbsd_store_inferior_registers): Refactor as methods of | |
9279 | ppc_fbsd_nat_target. | |
9280 | (_initialize_ppcfbsd_nat): Adjust to C++ification. Use | |
9281 | add_target. | |
9282 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class. | |
9283 | (the_ppc_nbsd_nat_target): New. | |
9284 | (ppcnbsd_fetch_inferior_registers) | |
9285 | (ppcnbsd_store_inferior_registers): Refactor as methods of | |
9286 | ppc_nbsd_nat_target. | |
9287 | (_initialize_ppcnbsd_nat): Adjust to C++ification. | |
9288 | * ppc-obsd-nat.c (ppc_obsd_nat_target): New class. | |
9289 | (the_ppc_obsd_nat_target): New. | |
9290 | (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as | |
9291 | methods of ppc_obsd_nat_target. | |
9292 | (_initialize_ppcobsd_nat): Adjust to C++ification. Use | |
9293 | add_target. | |
9294 | * sh-nbsd-nat.c (sh_nbsd_nat_target): New class. | |
9295 | (the_sh_nbsd_nat_target): New. | |
9296 | (shnbsd_fetch_inferior_registers) | |
9297 | (shnbsd_store_inferior_registers): Refactor as methods of | |
9298 | sh_nbsd_nat_target. | |
9299 | (_initialize_shnbsd_nat): Adjust to C++ification. | |
9300 | * sparc-nat.c (sparc_xfer_wcookie): Make extern. | |
9301 | (inf_ptrace_xfer_partial): Delete. | |
9302 | (sparc_xfer_partial, sparc_target): Delete. | |
9303 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
9304 | (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare. | |
9305 | (sparc_target): Delete function declaration. | |
9306 | (sparc_target): New template class. | |
9307 | * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New. | |
9308 | (_initialize_sparcnbsd_nat): Adjust to C++ification. | |
9309 | * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New. | |
9310 | (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use | |
9311 | add_target. | |
9312 | * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New. | |
9313 | (_initialize_sparc64nbsd_nat): Adjust to C++ification. | |
9314 | * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New. | |
9315 | (_initialize_sparc64obsd_nat): Adjust to C++ification. Use | |
9316 | add_target. | |
9317 | * vax-bsd-nat.c (vax_bsd_nat_target): New class. | |
9318 | (the_vax_bsd_nat_target): New. | |
9319 | (vaxbsd_fetch_inferior_registers) | |
9320 | (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target | |
9321 | methods. | |
9322 | (_initialize_vaxbsd_nat): Adjust to C++ification. | |
9323 | ||
9324 | * bsd-kvm.c (bsd_kvm_target): New class. | |
9325 | (bsd_kvm_ops): Now a bsd_kvm_target. | |
9326 | (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial) | |
9327 | (bsd_kvm_files_info, bsd_kvm_fetch_registers) | |
9328 | (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of | |
9329 | bsd_kvm_target. | |
9330 | (bsd_kvm_return_one): Delete. | |
9331 | (bsd_kvm_add_target): Adjust to C++ification. | |
9332 | ||
9333 | * nto-procfs.c (nto_procfs_target, nto_procfs_target_native) | |
9334 | (nto_procfs_target_procfs): New classes. | |
9335 | (procfs_open_1, procfs_thread_alive, procfs_update_thread_list) | |
9336 | (procfs_files_info, procfs_pid_to_exec_file, procfs_attach) | |
9337 | (procfs_post_attach, procfs_wait, procfs_fetch_registers) | |
9338 | (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint) | |
9339 | (procfs_remove_breakpoint, procfs_insert_hw_breakpoint) | |
9340 | (procfs_remove_hw_breakpoint, procfs_resume) | |
9341 | (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt) | |
9342 | (procfs_kill_inferior, procfs_store_registers) | |
9343 | (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor | |
9344 | as methods of nto_procfs_target. | |
9345 | (nto_procfs_ops): Now an nto_procfs_target_procfs. | |
9346 | (nto_native_ops): Delete. | |
9347 | (procfs_open, procfs_native_open): Delete. | |
9348 | (nto_native_ops): Now an nto_procfs_target_native. | |
9349 | (init_procfs_targets): Adjust to C++ification. | |
9350 | (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint) | |
9351 | (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint): | |
9352 | Refactor as methods of nto_procfs_target. | |
9353 | ||
9354 | * go32-nat.c (go32_nat_target): New class. | |
9355 | (the_go32_nat_target): New. | |
9356 | (go32_attach, go32_resume, go32_wait, go32_fetch_registers) | |
9357 | (go32_store_registers, go32_xfer_partial, go32_files_info) | |
9358 | (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior) | |
9359 | (go32_terminal_init, go32_terminal_info, go32_terminal_inferior) | |
9360 | (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive) | |
9361 | (go32_pid_to_str): Refactor as methods of go32_nat_target. | |
9362 | (go32_target): Delete. | |
9363 | (_initialize_go32_nat): Adjust to C++ification. | |
9364 | ||
9365 | * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior) | |
9366 | (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach) | |
9367 | (gnu_stop, gnu_thread_alive, gnu_xfer_partial) | |
9368 | (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of | |
9369 | gnu_nat_target. | |
9370 | (gnu_target): Delete. | |
9371 | * gnu-nat.h (gnu_target): Delete. | |
9372 | (gnu_nat_target): New class. | |
9373 | * i386-gnu-nat.c (gnu_base_target): New. | |
9374 | (i386_gnu_nat_target): New class. | |
9375 | (the_i386_gnu_nat_target): New. | |
9376 | (_initialize_i386gnu_nat): Adjust to C++ification. | |
9377 | ||
3fffc070 PA |
9378 | 2018-05-02 Pedro Alves <[email protected]> |
9379 | ||
9380 | * bfd-target.c (target_bfd_xclose): Rename to ... | |
9381 | (target_bfd_close): ... this. | |
9382 | (target_bfd_reopen): Adjust. | |
9383 | * target.c (target_close): Remove references to to_xclose. | |
9384 | * target.h (target_ops::to_xclose): Delete. | |
9385 | (target_ops::to_close): Update comments. | |
9386 | ||
6798487f PA |
9387 | 2018-05-02 Pedro Alves <[email protected]> |
9388 | ||
9389 | * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of | |
9390 | "linux-nat.h". | |
9391 | * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o. | |
9392 | * inf-ptrace.c (inf_ptrace_register_u_offset) | |
9393 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
9394 | (inf_ptrace_store_register, inf_ptrace_store_registers) | |
9395 | (inf_ptrace_trad_target): Move to ... | |
9396 | * linux-nat-trad.c: ... this new file. | |
9397 | * linux-nat-trad.h: New file. | |
9398 | * linux-nat.c (linux_target_install_ops): Make extern. | |
9399 | (linux_trad_target): Delete. | |
9400 | * linux-nat.h (linux_trad_target): Delete declaration. | |
9401 | (linux_target_install_ops): Declare. | |
9402 | * mips-linux-nat.c: Include "linux-nat-trad.h" instead of | |
9403 | "linux-nat.h". | |
9404 | ||
c1955e17 PA |
9405 | 2018-05-02 Pedro Alves <[email protected]> |
9406 | ||
9407 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
9408 | procfs_target/add_target here. | |
9409 | * procfs.c (procfs_target): Make static. | |
9410 | (_initialize_procfs): Call add_target here. | |
9411 | * procfs.h (struct target_ops): Remove forward declaration. | |
9412 | (procfs_target): Remove declaration. | |
9413 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete. | |
9414 | ||
b5c8fcb1 PA |
9415 | 2018-05-02 Pedro Alves <[email protected]> |
9416 | ||
9417 | * procfs.c (procfs_stopped_by_watchpoint) | |
9418 | (procfs_insert_watchpoint, procfs_remove_watchpoint) | |
9419 | (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address): | |
9420 | Forward declare. | |
9421 | (procfs_use_watchpoints): Delete, move contents... | |
9422 | (procfs_target): ... here. | |
9423 | * procfs.h (procfs_use_watchpoints): Delete declaration. | |
9424 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
9425 | procfs_use_watchpoints. | |
9426 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call | |
9427 | procfs_use_watchpoints. | |
9428 | ||
0489430a TT |
9429 | 2018-05-02 Tom Tromey <[email protected]> |
9430 | ||
9431 | PR python/20084: | |
9432 | * python/python.c (gdbpy_parameter_value): Handle var_zuinteger | |
9433 | and var_zuinteger_unlimited. | |
9434 | * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER | |
9435 | and PARAM_ZUINTEGER_UNLIMITED. | |
9436 | (set_parameter_value): Handle var_zuinteger and | |
9437 | var_zuinteger_unlimited. | |
9438 | (add_setshow_generic): Likewise. | |
9439 | (parmpy_init): Likewise. | |
9440 | ||
1632f8ba DR |
9441 | 2018-04-28 Dan Robertson <[email protected]> |
9442 | ||
9443 | PR rust/23124 | |
9444 | * gdb/rust-exp.y (convert_params_to_types): Ensure that the params | |
9445 | pointer is not null before dereferencing it. | |
9446 | ||
76761936 TT |
9447 | 2018-04-30 Tom Tromey <[email protected]> |
9448 | ||
9449 | * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of | |
9450 | is_mi_like_p. | |
9451 | ||
2d33446d TT |
9452 | 2018-04-30 Tom Tromey <[email protected]> |
9453 | ||
9454 | * breakpoint.c (mention): Remove use of is_mi_like_p. | |
9455 | (print_mention_ranged_breakpoint): Likewise. | |
9456 | * break-catch-throw.c (print_it_exception_catchpoint): Remove use | |
9457 | of is_mi_like_p. | |
9458 | ||
f3c6abab TT |
9459 | 2018-04-30 Tom Tromey <[email protected]> |
9460 | ||
9461 | * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p. | |
9462 | ||
40c03530 TT |
9463 | 2018-04-30 Tom Tromey <[email protected]> |
9464 | ||
9465 | * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist) | |
9466 | (info_spu_event_command): Remove some uses of is_mi_like_p. | |
9467 | ||
2038b7fd TT |
9468 | 2018-04-30 Tom Tromey <[email protected]> |
9469 | ||
9470 | * python/py-framefilter.c (py_print_single_arg) | |
9471 | (enumerate_locals, py_print_args, py_print_frame): Remove some | |
9472 | uses of is_mi_like_p. | |
9473 | ||
4904c3c6 TT |
9474 | 2018-04-30 Tom Tromey <[email protected]> |
9475 | ||
9476 | * ui-out.c: Update. | |
9477 | * cli-out.h (cli_ui_out::do_is_mi_like_p): Update. | |
9478 | * ui-out.h (ui_out::is_mi_like_p): Now const. | |
9479 | (ui_out::do_is_mi_like_p): Now const. | |
9480 | * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update. | |
9481 | ||
7c66fffc TT |
9482 | 2018-04-30 Tom Tromey <[email protected]> |
9483 | ||
9484 | * varobj.c (varobj_set_visualizer): Use new_reference. | |
9485 | * python/python.c (gdbpy_decode_line): Use new_reference. | |
9486 | * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use | |
9487 | new_reference. | |
9488 | ||
bbfa6f00 TT |
9489 | 2018-04-30 Tom Tromey <[email protected]> |
9490 | ||
9491 | * varobj.c (install_new_value): Use new_reference. | |
9492 | * value.h (value_incref): Return void. Swap intro comment with | |
9493 | value_decref. | |
9494 | * value.c (set_value_parent): Use new_reference. | |
9495 | (value_incref): Return void. Update intro comment. | |
9496 | (release_value): Use new_reference. | |
9497 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference. | |
9498 | ||
1831a9f9 TT |
9499 | 2018-04-30 Tom Tromey <[email protected]> |
9500 | ||
9501 | * symfile-mem.c (symbol_file_add_from_memory): Use new_reference. | |
9502 | * gdb_bfd.h (new_bfd_ref): Remove. | |
9503 | (gdb_bfd_open): Update comment. | |
9504 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
9505 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion) | |
9506 | (gdb_bfd_fdopenr): Use new_reference. | |
9507 | * exec.c (exec_file_attach): Use new_reference. | |
9508 | ||
7c1b5f3d TT |
9509 | 2018-04-30 Tom Tromey <[email protected]> |
9510 | ||
9511 | * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static | |
9512 | method. | |
9513 | ||
e11fb955 TT |
9514 | 2018-04-30 Tom Tromey <[email protected]> |
9515 | ||
9516 | * jit.c (jit_read_code_entry): Use type_align. | |
9517 | * i386-tdep.c (i386_gdbarch_init): Don't call | |
9518 | set_gdbarch_long_long_align_bit. | |
9519 | * gdbarch.sh: Remove long_long_align_bit. | |
9520 | * gdbarch.c, gdbarch.h: Rebuild. | |
9521 | * arc-tdep.c (arc_type_align): New function. | |
9522 | (arc_gdbarch_init): Use arc_type_align. Don't call | |
9523 | set_gdbarch_long_long_align_bit. | |
9524 | ||
2fff16dd TT |
9525 | 2018-04-30 Tom Tromey <[email protected]> |
9526 | ||
9527 | * rust-lang.c (rust_type_alignment): Remove. | |
9528 | (rust_composite_type): Use type_align. | |
9529 | ||
6d7bb824 TT |
9530 | 2018-04-30 Tom Tromey <[email protected]> |
9531 | ||
9532 | * NEWS: Mention Type.align. | |
9533 | * python/py-type.c (typy_get_alignof): New function. | |
9534 | (type_object_getset): Add "alignof". | |
9535 | ||
007e1530 TT |
9536 | 2018-04-30 Tom Tromey <[email protected]> |
9537 | ||
9538 | PR exp/17095: | |
9539 | * NEWS: Update. | |
9540 | * std-operator.def (UNOP_ALIGNOF): New operator. | |
9541 | * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>: | |
9542 | New. | |
9543 | * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New. | |
9544 | * c-lang.c (c_op_print_tab): Add alignof. | |
9545 | * c-exp.y (ALIGNOF): New token. | |
9546 | (exp): Add "ALIGNOF" production. | |
9547 | (ident_tokens): Add _Alignof and alignof. | |
9548 | ||
2b4424c3 TT |
9549 | 2018-04-30 Tom Tromey <[email protected]> |
9550 | ||
9551 | * i386-tdep.c (i386_type_align): New function. | |
9552 | (i386_gdbarch_init): Update. | |
9553 | * gdbarch.sh (type_align): New method. | |
9554 | * gdbarch.c, gdbarch.h: Rebuild. | |
9555 | * arch-utils.h (default_type_align): Declare. | |
9556 | * arch-utils.c (default_type_align): New function. | |
9557 | * gdbtypes.h (TYPE_ALIGN_BITS): New define. | |
9558 | (struct type) <align_log2>: New field. | |
9559 | <instance_flags>: Now a bitfield. | |
9560 | (TYPE_RAW_ALIGN): New macro. | |
9561 | (type_align, type_raw_align, set_type_align): Declare. | |
9562 | * gdbtypes.c (type_align, type_raw_align, set_type_align): New | |
9563 | functions. | |
9564 | * dwarf2read.c (quirk_rust_enum): Set type alignment. | |
9565 | (get_alignment, maybe_set_alignment): New functions. | |
9566 | (read_structure_type, read_enumeration_type, read_array_type) | |
9567 | (read_set_type, read_tag_pointer_type, read_tag_reference_type) | |
9568 | (read_subrange_type, read_base_type): Set type alignment. | |
9569 | ||
d33bc52e SM |
9570 | 2018-04-30 Simon Marchi <[email protected]> |
9571 | ||
9572 | * dwarf2read.c (read_index_from_section): Use bool. | |
9573 | ||
e28b63a9 FG |
9574 | 2018-04-29 Fabian Groffen <[email protected]> |
9575 | ||
9576 | PR gdb/22950 | |
9577 | * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys | |
9578 | with #ifdef. | |
9579 | ||
cd8c76e4 JR |
9580 | 2018-04-29 John Reiser <[email protected]> |
9581 | ||
9582 | PR build/22873 | |
9583 | * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the | |
9584 | last step, and do it atomically. | |
9585 | ||
476d250e AO |
9586 | 2018-04-27 Alexandre Oliva <[email protected]> |
9587 | ||
9588 | * compile/compile-c-types.c (convert_int, convert_float): | |
9589 | Update for C FE v1. | |
9590 | ||
6873858b TT |
9591 | 2018-04-27 Tom Tromey <[email protected]> |
9592 | ||
9593 | PR rust/22545: | |
9594 | * rust-lang.c (rust_inclusive_range_type_p): New function. | |
9595 | (rust_range): Handle inclusive ranges. | |
9596 | (rust_compute_range): Likewise. | |
9597 | * rust-exp.y (struct rust_op) <inclusive>: New field. | |
9598 | (DOTDOTEQ): New constant. | |
9599 | (range_expr): Add "..=" productions. | |
9600 | (operator_tokens): Add "..=" token. | |
9601 | (ast_range): Add "inclusive" parameter. | |
9602 | (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive | |
9603 | ranges. | |
9604 | * parse.c (operator_length_standard) <case OP_RANGE>: Handle new | |
9605 | bounds values. | |
9606 | * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE, | |
9607 | LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants. | |
9608 | Update comments. | |
9609 | * expprint.c (print_subexp_standard): Handle new bounds values. | |
9610 | (dump_subexp_body_standard): Likewise. | |
9611 | ||
632e107b TT |
9612 | 2018-04-27 Tom Tromey <[email protected]> |
9613 | ||
9614 | * configure: Rebuild. | |
9615 | * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override. | |
9616 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not | |
9617 | "OVERRIDE". | |
9618 | (class symbol_needs_eval_context): Likewise. | |
9619 | * dwarf2read.c (mock_mapped_index::symbol_name_count) | |
9620 | (mock_mapped_index::symbol_name_at): Use "override". Remove | |
9621 | "virtual". | |
9622 | * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use | |
9623 | "override". | |
9624 | (class dwarf_expr_executor): Use "override", not "OVERRIDE". | |
9625 | * aarch64-tdep.c (instruction_reader::read): Use "override". | |
9626 | (instruction_reader_test::read): Likewise. | |
9627 | * arm-tdep.c (instruction_reader::read): Use "override". | |
9628 | (instruction_reader_thumb::read): Likewise. | |
9629 | ||
b75abf5b AK |
9630 | 2018-04-26 Andrzej Kaczmarek <[email protected]> |
9631 | ||
9632 | PR remote/9665 | |
9633 | * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result | |
9634 | instead of remote_send. | |
9635 | (remote_send): Remove. | |
9636 | ||
79188d8d PA |
9637 | 2018-04-26 Pedro Alves <[email protected]> |
9638 | ||
9639 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use | |
9640 | find_function_start_sal instead of find_pc_line. | |
9641 | ||
f50776aa PA |
9642 | 2018-04-26 Pedro Alves <[email protected]> |
9643 | ||
9644 | * breakpoint.c (set_breakpoint_location_function): Handle | |
9645 | mst_data_gnu_ifunc. | |
9646 | * c-exp.y (variable production): Handle mst_data_gnu_ifunc. | |
9647 | * elfread.c (elf_symtab_read): Give data symbols with | |
9648 | BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. | |
9649 | (elf_rel_plt_read): Update comment. | |
9650 | * linespec.c (convert_linespec_to_sals): Handle | |
9651 | mst_data_gnu_ifunc. | |
9652 | (minsym_found): Handle mst_data_gnu_ifunc. | |
9653 | * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) | |
9654 | (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. | |
9655 | * parse.c (find_minsym_type_and_address): Handle | |
9656 | mst_data_gnu_ifunc. | |
9657 | * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. | |
9658 | * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. | |
9659 | * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update | |
9660 | comment. | |
9661 | <mst_data_gnu_ifunc>: New enumerator. | |
9662 | ||
20944a6e PA |
9663 | 2018-04-26 Pedro Alves <[email protected]> |
9664 | ||
9665 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ... | |
9666 | (lookup_minimal_symbol_by_pc_section): ... this. Replace | |
9667 | 'want_trampoline' parameter by a lookup_msym_prefer parameter. | |
9668 | Handle it. | |
9669 | (lookup_minimal_symbol_by_pc_section): Delete old implementation. | |
9670 | (lookup_minimal_symbol_by_pc): Adjust. | |
9671 | (in_gnu_ifunc_stub): Prefer GNU ifunc symbols. | |
9672 | (lookup_solib_trampoline_symbol_by_pc): Adjust. | |
9673 | * minsyms.h (lookup_msym_prefer): New enum. | |
9674 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
9675 | parameter by a lookup_msym_prefer parameter. | |
9676 | ||
1adeb822 PA |
9677 | 2018-04-26 Pedro Alves <[email protected]> |
9678 | ||
9679 | * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name | |
9680 | ends in "@plt" instead of looking at the symbol's section. | |
9681 | ||
a0aca7b0 PA |
9682 | 2018-04-26 Pedro Alves <[email protected]> |
9683 | ||
9684 | * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove | |
9685 | all references. | |
9686 | (find_pc_partial_function_gnu_ifunc): Rename to ... | |
9687 | (find_pc_partial_function): ... this, and remove references to | |
9688 | 'is_gnu_ifunc_p'. | |
9689 | (find_pc_partial_function): Delete old implementation. | |
9690 | * symtab.h (find_pc_partial_function_gnu_ifunc): Delete. | |
9691 | ||
76af0f26 PA |
9692 | 2018-04-26 Pedro Alves <[email protected]> |
9693 | ||
9694 | * linespec.c (struct bound_minimal_symbol_search_key): New. | |
9695 | (convert_linespec_to_sals): Sort minimal symbols earlier. Don't | |
9696 | skip first line if we found a GNU ifunc minimal symbol by name. | |
9697 | (compare_msymbols): Change parameters to work with a destructured | |
9698 | lhs minsym. | |
9699 | (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New | |
9700 | functions. | |
9701 | ||
3467ec66 PA |
9702 | 2018-04-26 Pedro Alves <[email protected]> |
9703 | ||
9704 | * breakpoint.c (set_breakpoint_location_function): Don't resolve | |
9705 | ifunc targets here. Instead, if we have an ifunc minsym, use its | |
9706 | address/name. | |
9707 | (add_location_to_breakpoint): Store the minsym and the objfile in | |
9708 | the breakpoint location. | |
9709 | * breakpoint.h (bp_location) <msymbol, objfile>: New fields. | |
9710 | * linespec.c (minsym_found): Resolve GNU ifunc targets here. | |
9711 | Record the minsym in the sal. | |
9712 | * symtab.h (symtab_and_line) <msymbol>: New field. | |
9713 | ||
28f4fa4d PA |
9714 | 2018-04-26 Pedro Alves <[email protected]> |
9715 | ||
9716 | * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P | |
9717 | unless we actually resolved the ifunc. | |
9718 | ||
ca31ab1d PA |
9719 | 2018-04-26 Pedro Alves <[email protected]> |
9720 | ||
9721 | * c-exp.y (variable production): Prefer ifunc minsyms over | |
9722 | regular function symbols. | |
9723 | * symtab.c (find_gnu_ifunc): New function. | |
9724 | * minsyms.h (lookup_msym_prefer): New enum. | |
9725 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
9726 | parameter by a lookup_msym_prefer parameter. | |
9727 | * symtab.h (find_gnu_ifunc): New declaration. | |
9728 | ||
8388016d PA |
9729 | 2018-04-26 Pedro Alves <[email protected]> |
9730 | ||
9731 | * blockframe.c (find_gnu_ifunc_target_type): New function. | |
9732 | (find_function_type): New. | |
9733 | * eval.c (evaluate_var_msym_value): For GNU ifunc types, always | |
9734 | return a value with a memory address. | |
9735 | (eval_call): For calls to GNU ifunc functions, try to find the | |
9736 | type of the target function from the type that the resolver | |
9737 | returns. | |
9738 | * gdbtypes.c (objfile_type): Don't install a return type for ifunc | |
9739 | symbols. | |
9740 | * infcall.c (find_function_return_type): Delete. | |
9741 | (find_function_addr): Add 'function_type' parameter. For calls to | |
9742 | GNU ifunc functions, try to find the type of the target function | |
9743 | from the type that the resolver returns, and return it via | |
9744 | FUNCTION_TYPE. | |
9745 | (call_function_by_hand_dummy): Adjust to use the function type | |
9746 | returned by find_function_addr. | |
9747 | (find_function_addr): Add 'function_type' parameter and move | |
9748 | description here. | |
9749 | * symtab.h (find_function_type, find_gnu_ifunc_target_type): New | |
9750 | declarations. | |
9751 | ||
a376e11d PA |
9752 | 2018-04-26 Pedro Alves <[email protected]> |
9753 | ||
9754 | * c-exp.y (variable production): Skip finding an alias for ifunc | |
9755 | symbols. | |
9756 | ||
02e169e2 PA |
9757 | 2018-04-26 Pedro Alves <[email protected]> |
9758 | ||
9759 | * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too. | |
9760 | ||
249b5733 PA |
9761 | 2018-04-25 Pedro Alves <[email protected]> |
9762 | ||
9763 | * infcmd.c (kill_command): Print the pid as string, not the whole | |
9764 | thread's ptid. Add comment. s/has been killed/killed/ in output | |
9765 | message. | |
9766 | * remote.c (remote_detach_1): Print the pid as string, not the | |
9767 | whole thread's ptid. | |
9768 | ||
f67c0c91 SDJ |
9769 | 2018-04-24 Jan Kratochvil <[email protected]> |
9770 | Sergio Durigan Junior <[email protected]> | |
9771 | Pedro Alves <[email protected]> | |
9772 | ||
9773 | * infcmd.c (kill_command): Print message when inferior has | |
9774 | been killed. | |
9775 | * inferior.c (print_inferior_events): Remove 'static'. Set as | |
9776 | '1'. | |
9777 | (add_inferior): Improve message printed when | |
9778 | 'print_inferior_events' is on. | |
9779 | (exit_inferior): Remove message printed when | |
9780 | 'print_inferior_events' is on. | |
9781 | (detach_inferior): Improve message printed when | |
9782 | 'print_inferior_events' is on. | |
9783 | (initialize_inferiors): Use 'add_inferior_silent' to set | |
9784 | 'current_inferior_'. | |
9785 | * inferior.h (print_inferior_events): Declare here as | |
9786 | 'extern'. | |
9787 | * infrun.c (follow_fork_inferior): Print '[Attaching...]' or | |
9788 | '[Detaching...]' messages when 'print_inferior_events' is on. | |
9789 | Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']' | |
9790 | as prefix/suffix for messages. Remove periods. Fix erroneous | |
9791 | 'Detaching after fork from child...', replace it by '... from | |
9792 | parent...'. | |
9793 | (handle_vfork_child_exec_or_exit): Add '[' and ']' as | |
9794 | prefix/suffix when printing 'Detaching...' messages. Print | |
9795 | them when 'print_inferior_events' is on. | |
9796 | * remote.c (remote_detach_1): Print message when detaching | |
9797 | from inferior and '!is_fork_parent'. | |
9798 | ||
e427af18 TT |
9799 | 2018-04-24 Tom Tromey <[email protected]> |
9800 | ||
9801 | * cli-out.h: Reindent. | |
9802 | ||
05b1d8d6 TT |
9803 | 2018-04-24 Tom Tromey <[email protected]> |
9804 | ||
9805 | * cli-out.c (cli_ui_out::out_field_fmt): Remove. | |
9806 | (cli_ui_out::do_field_string): Use fputs_filtered. | |
9807 | * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove. | |
9808 | ||
a95c7dab TT |
9809 | 2018-04-23 Tom Tromey <[email protected]> |
9810 | ||
9811 | * guile/scm-frame.c (gdbscm_frame_read_var): Use | |
9812 | gdb::unique_xmalloc_ptr. | |
9813 | ||
458412c3 TT |
9814 | 2018-04-23 Tom Tromey <[email protected]> |
9815 | ||
9816 | * configure: Rebuild. | |
9817 | ||
db86b02b RS |
9818 | 2018-04-22 Rajendra SY <[email protected]> |
9819 | ||
9820 | PR gdb/23095 | |
9821 | * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to | |
9822 | prepare_for_testing. Set normal_bp to r_debug_state if target | |
9823 | is bsd. | |
9824 | ||
00aecdcf PA |
9825 | 2018-04-21 Pedro Alves <[email protected]> |
9826 | Rajendra SY <[email protected]> | |
9827 | ||
9828 | * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing. | |
9829 | * remote.c (extended_remote_attach): In all-stop mode, mark the | |
9830 | thread as executing. | |
9831 | ||
224608c3 PW |
9832 | 2018-04-19 Philippe Waroquiers <[email protected]> |
9833 | ||
9834 | * thread.c (thread_apply_all_command): Fix comment. | |
9835 | (thread_command): Fix comment. | |
9836 | ||
3b74854b AH |
9837 | 2018-04-10 Alan Hayward <[email protected]> |
9838 | ||
9839 | * common/tdesc.h (tdesc_create_feature): Remove xml filename | |
9840 | parameter. | |
9841 | * features/aarch64-core.c (create_feature_aarch64_core): | |
9842 | Regenerate. | |
9843 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): | |
9844 | Likewise. | |
9845 | * features/i386/32bit-avx.c (create_feature_i386_32bit_avx): | |
9846 | Likewise. | |
9847 | * features/i386/32bit-avx512.c | |
9848 | (create_feature_i386_32bit_avx512): Likewise. | |
9849 | * features/i386/32bit-core.c (create_feature_i386_32bit_core): | |
9850 | Likewise. | |
9851 | * features/i386/32bit-linux.c (create_feature_i386_32bit_linux): | |
9852 | Likewise. | |
9853 | * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx): | |
9854 | Likewise. | |
9855 | * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys): | |
9856 | Likewise. | |
9857 | * features/i386/32bit-sse.c (create_feature_i386_32bit_sse): | |
9858 | Likewise. | |
9859 | * features/i386/64bit-avx.c (create_feature_i386_64bit_avx): | |
9860 | Likewise. | |
9861 | * features/i386/64bit-avx512.c | |
9862 | (create_feature_i386_64bit_avx512): Likewise. | |
9863 | * features/i386/64bit-core.c (create_feature_i386_64bit_core): | |
9864 | Likewise. | |
9865 | * features/i386/64bit-linux.c (create_feature_i386_64bit_linux): | |
9866 | Likewise. | |
9867 | * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx): | |
9868 | Likewise. | |
9869 | * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys): | |
9870 | Likewise. | |
9871 | * features/i386/64bit-segments.c | |
9872 | (create_feature_i386_64bit_segments): Likewise. | |
9873 | * features/i386/64bit-sse.c (create_feature_i386_64bit_sse): | |
9874 | Likewise. | |
9875 | * features/i386/x32-core.c | |
9876 | (create_feature_i386_x32_core): Likewise. | |
9877 | * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise. | |
9878 | * features/tic6x-core.c (create_feature_tic6x_core): Likewise. | |
9879 | * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise. | |
9880 | * target-descriptions.c: In generated code, don't pass xml | |
9881 | filename. | |
9882 | ||
e98577a9 AH |
9883 | 2018-04-18 Alan Hayward <[email protected]> |
9884 | ||
9885 | * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing. | |
9886 | (print_xml_feature::visit_post): Likewise. | |
9887 | (print_xml_feature::visit): Likewise. | |
9888 | * common/tdesc.h (tdesc_get_features_xml): Use const tdesc. | |
9889 | (print_xml_feature): Add new class. | |
9890 | * regformats/regdat.sh: Null xmltarget on feature targets. | |
9891 | * target-descriptions.c (struct target_desc): Add xmltarget. | |
9892 | (maintenance_check_tdesc_xml_convert): Add unittest function. | |
9893 | (tdesc_get_features_xml): Add function to get xml. | |
9894 | (maintenance_check_xml_descriptions): Test xml generation. | |
9895 | * xml-tdesc.c (string_read_description_xml): Add function. | |
9896 | * xml-tdesc.h (string_read_description_xml): Add declaration. | |
9897 | ||
ad7fc756 AH |
9898 | 2018-04-18 Alan Hayward <[email protected]> |
9899 | ||
9900 | * features/Makefile: Add feature marker to targets with new style | |
9901 | target descriptions. | |
9902 | * regformats/aarch64.dat: Regenerate. | |
9903 | * regformats/i386/amd64-avx-avx512-linux.dat: Likewise. | |
9904 | * regformats/i386/amd64-avx-linux.dat: Likewise. | |
9905 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise. | |
9906 | * regformats/i386/amd64-avx-mpx-linux.dat: Likewise. | |
9907 | * regformats/i386/amd64-linux.dat: Likewise. | |
9908 | * regformats/i386/amd64-mpx-linux.dat: Likewise. | |
9909 | * regformats/i386/amd64.dat: Likewise. | |
9910 | * regformats/i386/i386-avx-avx512-linux.dat: Likewise. | |
9911 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
9912 | * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise. | |
9913 | * regformats/i386/i386-avx-mpx-linux.dat: Likewise. | |
9914 | * regformats/i386/i386-linux.dat: Likewise. | |
9915 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
9916 | * regformats/i386/i386-mpx-linux.dat: Likewise. | |
9917 | * regformats/i386/i386.dat: Likewise. | |
9918 | * regformats/i386/x32-avx-avx512-linux.dat: Likewise. | |
9919 | * regformats/i386/x32-avx-linux.dat: Likewise. | |
9920 | * regformats/i386/x32-linux.dat: Likewise. | |
9921 | * regformats/tic6x-c62x-linux.dat: Likewise. | |
9922 | * regformats/tic6x-c64x-linux.dat: Likewise. | |
9923 | * regformats/tic6x-c64xp-linux.dat: Likewise. | |
9924 | * regformats/regdat.sh: Parse feature marker. | |
9925 | ||
d278f585 AH |
9926 | 2018-04-18 Alan Hayward <[email protected]> |
9927 | ||
9928 | * common/tdesc.h (tdesc_architecture_name): Add new declaration. | |
9929 | (tdesc_osabi_name): Likewise. | |
9930 | * target-descriptions.c (tdesc_architecture_name): Add new | |
9931 | function. | |
9932 | (tdesc_osabi_name): Likewise. | |
9933 | ||
eee8a18d AH |
9934 | 2018-04-18 Alan Hayward <[email protected]> |
9935 | ||
9936 | * common/tdesc.c (tdesc_predefined_type): Move to here. | |
9937 | (tdesc_named_type): Likewise. | |
9938 | (tdesc_create_vector): Likewise. | |
9939 | (tdesc_create_struct): Likewise. | |
9940 | (tdesc_set_struct_size): Likewise. | |
9941 | (tdesc_create_union): Likewise. | |
9942 | (tdesc_create_flags): Likewise. | |
9943 | (tdesc_create_enum): Likewise. | |
9944 | (tdesc_add_field): Likewise. | |
9945 | (tdesc_add_typed_bitfield): Likewise. | |
9946 | (tdesc_add_bitfield): Likewise. | |
9947 | (tdesc_add_flag): Likewise. | |
9948 | (tdesc_add_enum_value): Likewise. | |
9949 | * common/tdesc.h (struct tdesc_type_builtin): Likewise. | |
9950 | (struct tdesc_type_vector): Likewise. | |
9951 | (struct tdesc_type_field): Likewise. | |
9952 | (struct tdesc_type_with_fields): Likewise. | |
9953 | (tdesc_create_enum): Add declaration. | |
9954 | (tdesc_add_typed_bitfield): Likewise. | |
9955 | (tdesc_add_enum_value): Likewise. | |
9956 | * target-descriptions.c (tdesc_type_field): Move from here. | |
9957 | (tdesc_type_builtin): Likewise. | |
9958 | (tdesc_type_vector): Likewise. | |
9959 | (tdesc_type_with_fields): Likewise. | |
9960 | (tdesc_predefined_types): Likewise. | |
9961 | (tdesc_named_type): Likewise. | |
9962 | (tdesc_create_vector): Likewise. | |
9963 | (tdesc_create_struct): Likewise. | |
9964 | (tdesc_set_struct_size): Likewise. | |
9965 | (tdesc_create_union): Likewise. | |
9966 | (tdesc_create_flags): Likewise. | |
9967 | (tdesc_create_enum): Likewise. | |
9968 | (tdesc_add_field): Likewise. | |
9969 | (tdesc_add_typed_bitfield): Likewise. | |
9970 | (tdesc_add_bitfield): Likewise. | |
9971 | (tdesc_add_flag): Likewise. | |
9972 | (tdesc_add_enum_value): Likewise. | |
9973 | * gdb/target-descriptions.h (tdesc_create_enum): Likewise. | |
9974 | (tdesc_add_typed_bitfield): Likewise. | |
9975 | (tdesc_add_enum_value): Likewise. | |
9976 | ||
82ec9bc7 AH |
9977 | 2018-04-18 Alan Hayward <[email protected]> |
9978 | ||
9979 | * common/tdesc.c (tdesc_feature::accept): Move to here. | |
9980 | (tdesc_feature::operator==): Likewise. | |
9981 | (tdesc_create_reg): Likewise. | |
9982 | * common/tdesc.h (tdesc_type_kind): Likewise. | |
9983 | (struct tdesc_type): Likewise. | |
9984 | (struct tdesc_feature): Likewise. | |
9985 | * regformats/regdat.sh: Create a feature. | |
9986 | * target-descriptions.c (tdesc_type_kind): Move from here. | |
9987 | (tdesc_type): Likewise. | |
9988 | (tdesc_type_up): Likewise. | |
9989 | (tdesc_feature): Likewise. | |
9990 | (tdesc_create_reg): Likewise. | |
9991 | ||
ea3e7d71 AH |
9992 | 2018-04-18 Alan Hayward <[email protected]> |
9993 | ||
9994 | * Makefile.in: Add arch/tdesc.c | |
9995 | * common/tdesc.c: New file. | |
9996 | * common/tdesc.h (tdesc_element_visitor): Move to here. | |
9997 | (tdesc_element): Likewise. | |
9998 | (tdesc_reg): Likewise. | |
9999 | (tdesc_reg_up): Likewise. | |
10000 | * regformats/regdef.h (reg): Add offset to constructors. | |
10001 | * target-descriptions.c (tdesc_element_visitor): Move from here. | |
10002 | (tdesc_element): Likewise. | |
10003 | (tdesc_reg): Likewise. | |
10004 | (tdesc_reg_up): Likewise. | |
10005 | ||
bedda9ac TT |
10006 | 2018-04-17 Tom Tromey <[email protected]> |
10007 | ||
10008 | * dwarf2read.c (quirk_rust_enum): Conditionally drop the | |
10009 | discriminant field. | |
10010 | ||
a037790e TT |
10011 | 2018-04-17 Tom Tromey <[email protected]> |
10012 | ||
10013 | * dwarf2read.c (quirk_rust_enum): Handle unions correctly. | |
10014 | ||
c7dcbf88 AA |
10015 | 2018-04-17 Andreas Arnez <[email protected]> |
10016 | ||
10017 | * symtab.c (print_symbol_info): Skip printing filename and line | |
10018 | number when `last' is NULL. | |
10019 | (symtab_symbol_info): Use empty string instead of NULL for first | |
10020 | invocation of print_symbol_info. | |
10021 | (rbreak_command): Pass NULL to `last' parameter of | |
10022 | print_symbol_info. | |
10023 | ||
07d28c77 SM |
10024 | 2018-04-16 Simon Marchi <[email protected]> |
10025 | ||
10026 | * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data | |
10027 | instead of nullptr. | |
10028 | ||
8a3de5e1 PA |
10029 | 2018-04-16 Pedro Alves <[email protected]> |
10030 | ||
10031 | * MAINTAINERS (sh): Remove. | |
10032 | * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. | |
10033 | (HFILES_NO_SRCDIR): Remove sh64-tdep.h. | |
10034 | (ALLDEPFILES): Remove sh64-tdep.c. | |
10035 | * NEWS: Mentions that support for SH-5/SH64 is removed. | |
10036 | * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. | |
10037 | (sh*-*-openbsd*): Ditto. | |
10038 | (sh64-*-elf*): Remove. | |
10039 | (sh*): Remove. | |
10040 | * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. | |
10041 | * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. | |
10042 | * sh-tdep.c: No longer include "sh64-tdep.h". | |
10043 | (sh_gdbarch_init): Remove reference to bfd_mach_sh5. | |
10044 | * sh64-tdep.c, sh64-tdep.h: Remove files. | |
10045 | ||
a2a79012 PA |
10046 | 2018-04-16 Pedro Alves <[email protected]> |
10047 | ||
10048 | * MAINTAINERS: Remove m88k. | |
10049 | * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o. | |
10050 | (HFILES_NO_SRCDIR): Remove m88k-tdep.h. | |
10051 | (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c. | |
10052 | * NEWS: Mention that support for m88k was removed. | |
10053 | * configure.host (m88*-*-*): Remove support. | |
10054 | * configure.nat (m88k-*-*): Remove support. | |
10055 | * configure.tgt (m88*-*-openbsd*): Remove. | |
10056 | * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete. | |
10057 | ||
eda4efb1 SM |
10058 | 2018-04-15 Simon Marchi <[email protected]> |
10059 | ||
10060 | * configure.tgt (x86_tobjs): New variable. | |
10061 | (amd64_tobjs, i386_tobjs): Use it. | |
10062 | ||
b744723f AA |
10063 | 2018-04-13 Andreas Arnez <[email protected]> |
10064 | ||
10065 | * symtab.c (print_symbol_info): Precede the symbol definition by | |
10066 | the line number when available. | |
10067 | * NEWS: Advertise this enhancement. | |
10068 | ||
4a4495d6 MM |
10069 | 2018-04-13 Markus Metzger <[email protected]> |
10070 | ||
10071 | * NEWS (New options): announce set/show record btrace cpu. | |
10072 | * btrace.c: Include record-btrace.h. | |
10073 | (btrace_compute_ftrace_pt): Skip enabling errata workarounds if | |
10074 | the vendor is unknown. | |
10075 | (btrace_compute_ftrace_1): Add cpu parameter. Update callers. | |
10076 | Maybe overwrite the btrace configuration's cpu. | |
10077 | (btrace_compute_ftrace): Add cpu parameter. Update callers. | |
10078 | (btrace_fetch): Add cpu parameter. Update callers. | |
10079 | (btrace_maint_update_pt_packets): Call record_btrace_get_cpu. | |
10080 | Maybe overwrite the btrace configuration's cpu. Skip enabling | |
10081 | errata workarounds if the vendor is unknown. | |
10082 | * python/py-record-btrace.c: Include record-btrace.h. | |
10083 | (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history) | |
10084 | (recpy_bt_function_call_history): Call record_btrace_get_cpu. | |
10085 | * record-btrace.c (record_btrace_cpu_state_kind): New. | |
10086 | (record_btrace_cpu): New. | |
10087 | (set_record_btrace_cpu_cmdlist): New. | |
10088 | (record_btrace_get_cpu): New. | |
10089 | (require_btrace_thread, record_btrace_info) | |
10090 | (record_btrace_resume_thread): Call record_btrace_get_cpu. | |
10091 | (cmd_set_record_btrace_cpu_none): New. | |
10092 | (cmd_set_record_btrace_cpu_auto): New. | |
10093 | (cmd_set_record_btrace_cpu): New. | |
10094 | (cmd_show_record_btrace_cpu): New. | |
10095 | (_initialize_record_btrace): Initialize set/show record btrace cpu | |
10096 | commands. | |
10097 | * record-btrace.h (record_btrace_get_cpu): New. | |
10098 | ||
69f90c75 MM |
10099 | 2018-04-13 Markus Metzger <[email protected]> |
10100 | ||
10101 | * record.c (set_record_command): Fix typo in message. | |
10102 | ||
b85310e1 MM |
10103 | 2018-04-13 Markus Metzger <[email protected]> |
10104 | ||
10105 | * record-btrace.c (cmd_set_record_btrace): Print sub-commands. | |
10106 | ||
1d509aa6 MM |
10107 | 2018-04-13 Markus Metzger <[email protected]> |
10108 | ||
10109 | * infrun.c (process_event_stop_test): Call | |
10110 | gdbarch_in_indirect_branch_thunk. | |
10111 | * gdbarch.sh (in_indirect_branch_thunk): New. | |
10112 | * gdbarch.c: Regenerated. | |
10113 | * gdbarch.h: Regenerated. | |
10114 | * x86-tdep.h: New. | |
10115 | * x86-tdep.c: New. | |
10116 | * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o. | |
10117 | (HFILES_NO_SRCDIR): Add x86-tdep.h. | |
10118 | (ALLDEPFILES): Add x86-tdep.c. | |
10119 | * arch-utils.h (default_in_indirect_branch_thunk): New. | |
10120 | * arch-utils.c (default_in_indirect_branch_thunk): New. | |
10121 | * i386-tdep: Include x86-tdep.h. | |
10122 | (i386_in_indirect_branch_thunk): New. | |
10123 | (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch | |
10124 | function. | |
10125 | * amd64-tdep: Include x86-tdep.h. | |
10126 | (amd64_in_indirect_branch_thunk): New. | |
10127 | (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function. | |
10128 | ||
b4be9bfd JK |
10129 | 2018-04-12 Jan Kratochvil <[email protected]> |
10130 | ||
10131 | PR gdb/23053 | |
10132 | * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type) | |
10133 | (recursively_write_psymbols) (debug_names::recursively_write_psymbols) | |
10134 | (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG | |
10135 | regression. | |
10136 | ||
53d7df28 TT |
10137 | 2018-04-12 Tom Tromey <[email protected]> |
10138 | ||
10139 | * rust-lang.c (rust_print_struct_def): Remove univariant code. | |
10140 | (rust_evaluate_subexp): Likewise. | |
10141 | ||
70b33f19 PA |
10142 | 2018-04-12 Pedro Alves <[email protected]> |
10143 | ||
10144 | * procfs.c (procfs_detach): Make forward declaration's prototype | |
10145 | match definition's protototype. | |
10146 | (proc_get_LDT_entry): Remove stale do_cleanups call. | |
10147 | ||
436411b1 PA |
10148 | 2018-04-12 Pedro Alves <[email protected]> |
10149 | ||
10150 | * target.h (target_ops::to_has_exited): Delete. | |
10151 | (target_has_exited): Delete. | |
10152 | * target-delegates.c: Regenerate. | |
10153 | ||
20db9c52 PA |
10154 | 2018-04-11 Pedro Alves <[email protected]> |
10155 | ||
10156 | * target.c (fileio_fh_t::t): Add comment. | |
10157 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
10158 | (target_fileio_close): Handle a NULL target. | |
10159 | (invalidate_fileio_fh): New. | |
10160 | (target_close): Call it. | |
10161 | * remote.c (remote_hostio_send_command): No longer check whether | |
10162 | remote_desc is open. | |
10163 | ||
5ff79300 PA |
10164 | 2018-04-11 Pedro Alves <[email protected]> |
10165 | ||
10166 | * target.c (fileio_fh_t): Make it a named struct instead of a | |
10167 | typedef. | |
10168 | (fileio_fh_t::is_closed): New method. | |
10169 | (DEF_VEC_O (fileio_fh_t)): Remove. | |
10170 | (fileio_fhandles): Now a std::vector. | |
10171 | (is_closed_fileio_fh): Delete. | |
10172 | (acquire_fileio_fd): Adjust. Rename parameters. | |
10173 | (release_fileio_fd): Adjust. | |
10174 | (fileio_fd_to_fh): Reimplement as a function instead of a macro. | |
10175 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
10176 | (target_fileio_close): Adjust. | |
10177 | ||
6e22e10d SM |
10178 | 2018-04-10 Simon Marchi <[email protected]> |
10179 | ||
10180 | * auto-load.c (auto_load_safe_path_vec_update): Iterate by | |
10181 | index. | |
10182 | ||
731f534f PA |
10183 | 2018-04-10 Pedro Alves <[email protected]> |
10184 | ||
10185 | * gdbthread.h (finish_thread_state_cleanup): Delete declaration. | |
10186 | (scoped_finish_thread_state): New class. | |
10187 | * infcmd.c (run_command_1): Use it instead of finish_thread_state | |
10188 | cleanup. | |
10189 | * infrun.c (proceed, prepare_for_detach, wait_for_inferior) | |
10190 | (fetch_inferior_event, normal_stop): Likewise. | |
10191 | * thread.c (finish_thread_state_cleanup): Delete. | |
10192 | ||
d5f4488f SM |
10193 | 2018-04-09 Simon Marchi <[email protected]> |
10194 | Pedro Alves <[email protected]> | |
10195 | ||
10196 | * value.c: Include "selftest.h" and "common/array-view.h". | |
10197 | (struct range) <operator ==>: New. | |
10198 | (test_ranges_contain): New. | |
10199 | (check_ranges_vector): New. | |
10200 | (test_insert_into_bit_range_vector): New. | |
10201 | (_initialize_values): Register selftests. | |
10202 | * common/array-view.h (operator==, operator!=): New. | |
10203 | ||
b24531ed SM |
10204 | 2018-04-09 Simon Marchi <[email protected]> |
10205 | ||
10206 | * common/gdb_vecs.h (unordered_remove): Add overload that takes | |
10207 | an iterator. | |
10208 | * inline-frame.c: Include <algorithm>. | |
10209 | (struct inline_state): Add constructor. | |
10210 | (inline_state_s): Remove. | |
10211 | (DEF_VEC_O(inline_state_s)): Remove. | |
10212 | (inline_states): Change type to std::vector. | |
10213 | (find_inline_frame_state): Adjust to std::vector. | |
10214 | (allocate_inline_frame_state): Remove. | |
10215 | (clear_inline_frame_state): Adjust to std::vector. | |
10216 | (skip_inline_frames): Adjust to std::vector. | |
10217 | ||
c252925c SM |
10218 | 2018-04-09 Simon Marchi <[email protected]> |
10219 | ||
10220 | * tracepoint.h (struct trace_state_variable): Add constructor. | |
10221 | <name>: Change type to std::string. | |
10222 | * tracepoint.c (tsv_s): Remove. | |
10223 | (DEF_VEC_O(tsv_s)): Remove. | |
10224 | (tvariables): Change to std::vector. | |
10225 | (create_trace_state_variable): Adjust to std::vector. | |
10226 | (find_trace_state_variable): Likewise. | |
10227 | (find_trace_state_variable_by_number): Likewise. | |
10228 | (delete_trace_state_variable): Likewise. | |
10229 | (trace_variable_command): Adjust to std::string. | |
10230 | (delete_trace_variable_command): Likewise. | |
10231 | (tvariables_info_1): Adjust to std::vector. | |
10232 | (save_trace_state_variables): Likewise. | |
10233 | (start_tracing): Likewise. | |
10234 | (merge_uploaded_trace_state_variables): Adjust to std::vector | |
10235 | and std::string. | |
10236 | * target.h (struct target_ops) | |
10237 | <to_download_trace_state_variable>: Pass reference to | |
10238 | trace_state_variable. | |
10239 | * target-debug.h (target_debug_print_const_trace_state_variable_r): New. | |
10240 | * target-delegates.c: Re-generate. | |
10241 | * mi/mi-interp.c (mi_tsv_created): Adjust to std::string. | |
10242 | (mi_tsv_deleted): Likewise. | |
10243 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. | |
10244 | * remote.c (remote_download_trace_state_variable): Change | |
10245 | pointer to reference and adjust. | |
10246 | * make-target-delegates (parse_argtypes): Handle references. | |
10247 | (write_function_header): Likewise. | |
10248 | (munge_type): Likewise. | |
10249 | ||
c9638d26 SM |
10250 | 2018-04-09 Simon Marchi <[email protected]> |
10251 | ||
10252 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
10253 | string_view-selftests.c. | |
10254 | * unittests/basic_string_view/capacity/1.cc: Adapt to GDB | |
10255 | testsuite. | |
10256 | * unittests/basic_string_view/cons/char/1.cc: Likewise. | |
10257 | * unittests/basic_string_view/cons/char/2.cc: Likewise. | |
10258 | * unittests/basic_string_view/cons/char/3.cc: Likewise. | |
10259 | * unittests/basic_string_view/element_access/char/1.cc: | |
10260 | Likewise. | |
10261 | * unittests/basic_string_view/element_access/char/empty.cc: | |
10262 | Likewise. | |
10263 | * unittests/basic_string_view/element_access/char/front_back.cc: | |
10264 | Likewise. | |
10265 | * unittests/basic_string_view/inserters/char/2.cc: Likewise. | |
10266 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: | |
10267 | Likewise. | |
10268 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: | |
10269 | Likewise. | |
10270 | * unittests/basic_string_view/modifiers/swap/char/1.cc: | |
10271 | Likewise. | |
10272 | * unittests/basic_string_view/operations/compare/char/1.cc: | |
10273 | Likewise. | |
10274 | * unittests/basic_string_view/operations/compare/char/13650.cc: | |
10275 | Likewise. | |
10276 | * unittests/basic_string_view/operations/copy/char/1.cc: | |
10277 | Likewise. | |
10278 | * unittests/basic_string_view/operations/data/char/1.cc: | |
10279 | Likewise. | |
10280 | * unittests/basic_string_view/operations/find/char/1.cc: | |
10281 | Likewise. | |
10282 | * unittests/basic_string_view/operations/find/char/2.cc: | |
10283 | Likewise. | |
10284 | * unittests/basic_string_view/operations/find/char/3.cc: | |
10285 | Likewise. | |
10286 | * unittests/basic_string_view/operations/find/char/4.cc: | |
10287 | Likewise. | |
10288 | * unittests/basic_string_view/operations/rfind/char/1.cc: | |
10289 | Likewise. | |
10290 | * unittests/basic_string_view/operations/rfind/char/2.cc: | |
10291 | Likewise. | |
10292 | * unittests/basic_string_view/operations/rfind/char/3.cc: | |
10293 | Likewise. | |
10294 | * unittests/basic_string_view/operations/substr/char/1.cc: | |
10295 | Likewise. | |
10296 | * unittests/basic_string_view/operators/char/2.cc: Likewise. | |
10297 | * unittests/string_view-selftests.c: New file. | |
10298 | ||
fdc11678 SM |
10299 | 2018-04-09 Simon Marchi <[email protected]> |
10300 | ||
10301 | * unittests/basic_string_view/capacity/1.cc: New file. | |
10302 | * unittests/basic_string_view/capacity/empty_neg.cc: New file. | |
10303 | * unittests/basic_string_view/cons/char/1.cc: New file. | |
10304 | * unittests/basic_string_view/cons/char/2.cc: New file. | |
10305 | * unittests/basic_string_view/cons/char/3.cc: New file. | |
10306 | * unittests/basic_string_view/cons/wchar_t/1.cc: New file. | |
10307 | * unittests/basic_string_view/cons/wchar_t/2.cc: New file. | |
10308 | * unittests/basic_string_view/cons/wchar_t/3.cc: New file. | |
10309 | * unittests/basic_string_view/element_access/char/1.cc: New file. | |
10310 | * unittests/basic_string_view/element_access/char/2.cc: New file. | |
10311 | * unittests/basic_string_view/element_access/char/empty.cc: New file. | |
10312 | * unittests/basic_string_view/element_access/char/front_back.cc: New file. | |
10313 | * unittests/basic_string_view/element_access/wchar_t/1.cc: New file. | |
10314 | * unittests/basic_string_view/element_access/wchar_t/2.cc: New file. | |
10315 | * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file. | |
10316 | * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file. | |
10317 | * unittests/basic_string_view/include.cc: New file. | |
10318 | * unittests/basic_string_view/inserters/char/1.cc: New file. | |
10319 | * unittests/basic_string_view/inserters/char/2.cc: New file. | |
10320 | * unittests/basic_string_view/inserters/char/3.cc: New file. | |
10321 | * unittests/basic_string_view/inserters/pod/10081-out.cc: New file. | |
10322 | * unittests/basic_string_view/inserters/wchar_t/1.cc: New file. | |
10323 | * unittests/basic_string_view/inserters/wchar_t/2.cc: New file. | |
10324 | * unittests/basic_string_view/inserters/wchar_t/3.cc: New file. | |
10325 | * unittests/basic_string_view/literals/types.cc: New file. | |
10326 | * unittests/basic_string_view/literals/values.cc: New file. | |
10327 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file. | |
10328 | * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file. | |
10329 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file. | |
10330 | * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file. | |
10331 | * unittests/basic_string_view/modifiers/swap/char/1.cc: New file. | |
10332 | * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file. | |
10333 | * unittests/basic_string_view/operations/compare/char/1.cc: New file. | |
10334 | * unittests/basic_string_view/operations/compare/char/13650.cc: New file. | |
10335 | * unittests/basic_string_view/operations/compare/char/2.cc: New file. | |
10336 | * unittests/basic_string_view/operations/compare/char/70483.cc: New file. | |
10337 | * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file. | |
10338 | * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file. | |
10339 | * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file. | |
10340 | * unittests/basic_string_view/operations/copy/char/1.cc: New file. | |
10341 | * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file. | |
10342 | * unittests/basic_string_view/operations/data/char/1.cc: New file. | |
10343 | * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file. | |
10344 | * unittests/basic_string_view/operations/find/char/1.cc: New file. | |
10345 | * unittests/basic_string_view/operations/find/char/2.cc: New file. | |
10346 | * unittests/basic_string_view/operations/find/char/3.cc: New file. | |
10347 | * unittests/basic_string_view/operations/find/char/4.cc: New file. | |
10348 | * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file. | |
10349 | * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file. | |
10350 | * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file. | |
10351 | * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file. | |
10352 | * unittests/basic_string_view/operations/rfind/char/1.cc: New file. | |
10353 | * unittests/basic_string_view/operations/rfind/char/2.cc: New file. | |
10354 | * unittests/basic_string_view/operations/rfind/char/3.cc: New file. | |
10355 | * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file. | |
10356 | * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file. | |
10357 | * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file. | |
10358 | * unittests/basic_string_view/operations/string_conversion/1.cc: New file. | |
10359 | * unittests/basic_string_view/operations/substr/char/1.cc: New file. | |
10360 | * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file. | |
10361 | * unittests/basic_string_view/operators/char/2.cc: New file. | |
10362 | * unittests/basic_string_view/operators/wchar_t/2.cc: New file. | |
10363 | * unittests/basic_string_view/range_access/char/1.cc: New file. | |
10364 | * unittests/basic_string_view/range_access/wchar_t/1.cc: New file. | |
10365 | * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file. | |
10366 | * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file. | |
10367 | * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file. | |
10368 | * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file. | |
10369 | * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file. | |
10370 | * unittests/basic_string_view/requirements/typedefs.cc: New file. | |
10371 | * unittests/basic_string_view/typedefs.cc: New file. | |
10372 | * unittests/basic_string_view/types/1.cc: New file. | |
10373 | ||
8345c4a2 SM |
10374 | 2018-04-09 Simon Marchi <[email protected]> |
10375 | ||
10376 | * common/gdb_string_view.h: Remove libstdc++ implementation | |
10377 | details, adjust to gdb reality. | |
10378 | * common/gdb_string_view.tcc: Likewise. | |
10379 | * cli/cli-script.c (struct string_view): Remove. | |
10380 | (user_args) <m_args>: Change element type to gdb::string_view. | |
10381 | (user_args::insert_args): Adjust. | |
10382 | ||
7adcdf08 SM |
10383 | 2018-04-09 Simon Marchi <[email protected]> |
10384 | ||
10385 | * common/gdb_string_view.h: New file. | |
10386 | * common/gdb_string_view.tcc: New file. | |
10387 | ||
41260ac2 SM |
10388 | 2018-04-09 Simon Marchi <[email protected]> |
10389 | ||
10390 | * ax_cxx_compile_stdcxx.m4: Sync with upstream. | |
10391 | * configure: Re-generate. | |
10392 | ||
0bee6dd4 PA |
10393 | 2018-04-09 Pedro Alves <[email protected]> |
10394 | ||
10395 | * gdbarch.sh: Include "observable.h" instead of "observer.h". | |
10396 | (set_target_gdbarch): Call | |
10397 | gdb::observers::architecture_changed.notify instead of | |
10398 | observer_notify_architecture_changed. | |
10399 | ||
6f14adc5 SM |
10400 | 2018-04-07 Simon Marchi <[email protected]> |
10401 | ||
10402 | * tracepoint.c (struct current_traceframe_cleanup): Remove. | |
10403 | (do_restore_current_traceframe_cleanup): Remove. | |
10404 | (restore_current_traceframe_cleanup_dtor): Remove. | |
10405 | (make_cleanup_restore_current_traceframe): Remove. | |
10406 | (scoped_restore_current_traceframe::scoped_restore_current_traceframe): | |
10407 | New. | |
10408 | * tracepoint.h (struct scoped_restore_current_traceframe): New. | |
10409 | * infrun.c (fetch_inferior_event): Use | |
10410 | scoped_restore_current_traceframe. | |
10411 | ||
b2bdb8cf SM |
10412 | 2018-04-07 Simon Marchi <[email protected]> |
10413 | ||
10414 | * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>: | |
10415 | Remove. | |
10416 | <n_allocated_type_units>: Remove. | |
10417 | <all_type_units>: Change to std::vector. | |
10418 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
10419 | to std::vector change. | |
10420 | (dwarf2_per_objfile::get_cutu): Likewise. | |
10421 | (dwarf2_per_objfile::get_tu): Likewise. | |
10422 | (create_signatured_type_table_from_index): Likewise. | |
10423 | (create_signatured_type_table_from_debug_names): Likewise. | |
10424 | (dw2_symtab_iter_next): Likewise. | |
10425 | (dw2_print_stats): Likewise. | |
10426 | (dw2_expand_all_symtabs): Likewise. | |
10427 | (dw2_expand_marked_cus): Likewise. | |
10428 | (dw2_debug_names_iterator::next): Likewise. | |
10429 | (dwarf2_initialize_objfile): Likewise. | |
10430 | (add_signatured_type_cu_to_table): Likewise. | |
10431 | (create_all_type_units): Likewise. | |
10432 | (add_type_unit): Likewise. | |
10433 | (struct tu_abbrev_offset): Add constructor. | |
10434 | (build_type_psymtabs_1): Adjust to std::vector change. | |
10435 | (print_tu_stats): Likewise. | |
10436 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
10437 | (write_debug_names): Likewise. | |
10438 | ||
b76e467d SM |
10439 | 2018-04-07 Simon Marchi <[email protected]> |
10440 | ||
10441 | * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise. | |
10442 | Make an std::vector. | |
10443 | <n_comp_units>: Remove. | |
10444 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
10445 | to std::vector change. | |
10446 | (dwarf2_per_objfile::get_cutu): Likewise. | |
10447 | (dwarf2_per_objfile::get_cu): Likewise. | |
10448 | (create_cus_from_index): Likewise. | |
10449 | (create_addrmap_from_index): Likewise. | |
10450 | (create_addrmap_from_aranges): Likewise. | |
10451 | (dwarf2_read_index): Likewise. | |
10452 | (dw2_find_last_source_symtab): Likewise. | |
10453 | (dw2_map_symtabs_matching_filename): Likewise. | |
10454 | (dw2_symtab_iter_next): Likewise. | |
10455 | (dw2_print_stats): Likewise. | |
10456 | (dw2_expand_all_symtabs): Likewise. | |
10457 | (dw2_expand_symtabs_with_fullname): Likewise. | |
10458 | (dw2_expand_marked_cus): Likewise. | |
10459 | (dw2_map_symbol_filenames): Likewise. | |
10460 | (create_cus_from_debug_names): Likewise. | |
10461 | (dwarf2_read_debug_names): Likewise. | |
10462 | (dw2_debug_names_iterator::next): Likewise. | |
10463 | (dwarf2_initialize_objfile): Likewise. | |
10464 | (set_partial_user): Likewise. | |
10465 | (dwarf2_build_psymtabs_hard): Likewise. | |
10466 | (read_comp_units_from_section): Remove arguments, adjust to | |
10467 | std::vector change. | |
10468 | (create_all_comp_units): Adjust to std::vector and | |
10469 | read_comp_units_from_section changes. | |
10470 | (dwarf2_find_containing_comp_unit): Adjust to std::vector | |
10471 | change. | |
10472 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
10473 | (psyms_seen_size): Likewise. | |
10474 | (write_gdbindex): Likewise. | |
10475 | (write_debug_names): Likewise. | |
10476 | ||
12359b5e SM |
10477 | 2018-04-07 Simon Marchi <[email protected]> |
10478 | ||
10479 | * dwarf2read.c (create_cus_from_index_list): Replace objfile arg | |
10480 | with dwarf2_per_objfile. | |
10481 | (create_cus_from_index): Likewise. | |
10482 | (create_signatured_type_table_from_index): Likewise. | |
10483 | (dwarf2_read_index): Likewise. | |
10484 | (dwarf2_initialize_objfile): Likewise. | |
10485 | (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from | |
10486 | per_cu rather than get_dwarf2_per_objfile. | |
10487 | ||
ff4c9fec SM |
10488 | 2018-04-07 Simon Marchi <[email protected]> |
10489 | ||
10490 | * dwarf2read.h (struct signatured_type): Forward declare. | |
10491 | (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>: | |
10492 | New methods. | |
10493 | * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from... | |
10494 | (dw2_get_cutu): ...this. | |
10495 | (dwarf2_per_objfile::get_cu): Rename from... | |
10496 | (dw2_get_cu): ...this. | |
10497 | (dwarf2_per_objfile::get_tu): New. | |
10498 | (create_addrmap_from_index): Adjust. | |
10499 | (create_addrmap_from_aranges): Adjust. | |
10500 | (dw2_find_last_source_symtab): Adjust. | |
10501 | (dw2_map_symtabs_matching_filename): Adjust. | |
10502 | (dw2_symtab_iter_next): Adjust. | |
10503 | (dw2_print_stats): Adjust. | |
10504 | (dw2_expand_all_symtabs): Adjust. | |
10505 | (dw2_expand_symtabs_with_fullname): Adjust. | |
10506 | (dw2_expand_marked_cus): Adjust. | |
10507 | (dw_expand_symtabs_matching_file_matcher): Adjust. | |
10508 | (dw2_map_symbol_filenames): Adjust. | |
10509 | (dw2_debug_names_iterator::next): Adjust. | |
10510 | (dwarf2_initialize_objfile): Adjust. | |
10511 | (set_partial_user): Adjust. | |
10512 | (dwarf2_build_psymtabs_hard): Adjust. | |
10513 | ||
5ca3fcb6 SM |
10514 | 2018-04-07 Simon Marchi <[email protected]> |
10515 | ||
10516 | * dwarf2read.c (create_signatured_type_table_from_debug_names): | |
10517 | Remove unused variables. | |
10518 | (dw2_map_symtabs_matching_filename): Likewise. | |
10519 | (dwarf2_record_block_ranges): Likewise. | |
10520 | (dwarf2_read_addr_index): Likewise. | |
10521 | (follow_die_offset): Likewise. | |
10522 | ||
b2e586e8 SM |
10523 | 2018-04-07 Simon Marchi <[email protected]> |
10524 | ||
10525 | * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET | |
10526 | to symbol_file_add_main. | |
10527 | ||
7c4e78cf SM |
10528 | 2018-04-07 Simon Marchi <[email protected]> |
10529 | ||
10530 | PR mi/22299 | |
10531 | * mi/mi-console.c (do_fputc_async_safe): New. | |
10532 | (mi_console_file::write_async_safe): New. | |
10533 | (mi_console_file::flush): Adjust calls to fputstrn_unfiltered. | |
10534 | * mi/mi-console.h (class mi_console_file) <write_async_safe>: | |
10535 | New. | |
10536 | * ui-file.c (ui_file::putstrn): Adjust call to | |
10537 | fputstrn_unfiltered. | |
10538 | * utils.c (printchar): Replace do_fputs and do_fprintf | |
10539 | parameters by do_fputc. | |
10540 | (fputstr_filtered): Adjust call to printchar. | |
10541 | (fputstr_unfiltered): Likewise. | |
10542 | (fputstrn_filtered): Likewise. | |
10543 | (fputstrn_unfiltered): Add do_fputc parameter, pass to | |
10544 | printchar. | |
10545 | * utils.h (do_fputc_ftype): New typedef. | |
10546 | (fputstrn_unfiltered): Add do_fputc parameter. | |
10547 | ||
5dc026d3 SM |
10548 | 2018-04-07 Simon Marchi <[email protected]> |
10549 | ||
10550 | * regformats/i386/i386-avx.dat: Remove. | |
10551 | ||
c912f608 SM |
10552 | 2018-04-07 Simon Marchi <[email protected]> |
10553 | ||
10554 | PR gdb/22979 | |
10555 | * amd64-tdep.c (amd64_none_init_abi): New function. | |
10556 | (amd64_x32_none_init_abi): New function. | |
10557 | (_initialize_amd64_tdep): Register handlers for x86-64 and | |
10558 | x64_32 with GDB_OSABI_NONE. | |
10559 | * osabi.c (gdbarch_init_osabi): Allow running handlers for the | |
10560 | GDB_OSABI_NONE osabi. | |
10561 | ||
26540402 SM |
10562 | 2018-04-07 Simon Marchi <[email protected]> |
10563 | ||
10564 | PR gdb/22980 | |
10565 | * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add | |
10566 | GDB_OSABI_NONE. | |
10567 | * arch-utils.c (gdbarch_info_init): Don't set info->osabi. | |
10568 | * osabi.c (gdb_osabi_names): Add "unknown" entry. | |
10569 | ||
9018be22 SM |
10570 | 2018-04-07 Simon Marchi <[email protected]> |
10571 | ||
10572 | * common/byte-vector.h (char_vector): New type. | |
10573 | * target.h (target_read_alloc): Return | |
10574 | gdb::optional<byte_vector>. | |
10575 | (target_read_stralloc): Return gdb::optional<char_vector>. | |
10576 | (target_get_osdata): Return gdb::optional<char_vector>. | |
10577 | * target.c (target_read_alloc_1): Templatize. Replacement | |
10578 | manual memory management with vector. | |
10579 | (target_read_alloc): Change return type, adjust. | |
10580 | (target_read_stralloc): Change return type, adjust. | |
10581 | (target_get_osdata): Change return type, adjust. | |
10582 | * auxv.c (struct auxv_info) <length>: Remove. | |
10583 | <data>: Change type to gdb::optional<byte_vector>. | |
10584 | (auxv_inferior_data_cleanup): Free auxv_info with delete. | |
10585 | (get_auxv_inferior_data): Allocate auxv_info with new, adjust. | |
10586 | (target_auxv_search): Adjust. | |
10587 | (fprint_target_auxv): Adjust. | |
10588 | * avr-tdep.c (avr_io_reg_read_command): Adjust. | |
10589 | * linux-tdep.c (linux_spu_make_corefile_notes): Adjust. | |
10590 | (linux_make_corefile_notes): Adjust. | |
10591 | * osdata.c (get_osdata): Adjust. | |
10592 | * remote.c (remote_get_threads_with_qxfer): Adjust. | |
10593 | (remote_memory_map): Adjust. | |
10594 | (remote_traceframe_info): Adjust. | |
10595 | (btrace_read_config): Adjust. | |
10596 | (remote_read_btrace): Adjust. | |
10597 | (remote_pid_to_exec_file): Adjust. | |
10598 | * solib-aix.c (solib_aix_get_library_list): Adjust. | |
10599 | * solib-dsbt.c (decode_loadmap): Don't free buf. | |
10600 | (dsbt_get_initial_loadmaps): Adjust. | |
10601 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust. | |
10602 | * solib-target.c (solib_target_current_sos): Adjust. | |
10603 | * tracepoint.c (sdata_make_value): Adjust. | |
10604 | * xml-support.c (xinclude_start_include): Adjust. | |
10605 | (xml_fetch_content_from_file): Adjust. | |
10606 | * xml-support.h (xml_fetch_another): Change return type. | |
10607 | (xml_fetch_content_from_file): Change return type. | |
10608 | * xml-syscall.c (xml_init_syscalls_info): Adjust. | |
10609 | * xml-tdesc.c (file_read_description_xml): Adjust. | |
10610 | (fetch_available_features_from_target): Change return type. | |
10611 | (target_fetch_description_xml): Adjust. | |
10612 | (target_read_description_xml): Adjust. | |
10613 | ||
14c88955 TT |
10614 | 2018-04-06 Tom Tromey <[email protected]> |
10615 | ||
10616 | * value.c (~value): Update. | |
10617 | (struct value) <contents>: Now unique_xmalloc_ptr. | |
10618 | (value_contents_bits_eq, allocate_value_contents) | |
10619 | (value_contents_raw, value_contents_all_raw) | |
10620 | (value_contents_for_printing, value_contents_for_printing_const) | |
10621 | (set_value_enclosing_type): Update. | |
10622 | ||
0c7e6dd8 TT |
10623 | 2018-04-06 Tom Tromey <[email protected]> |
10624 | ||
10625 | * value.c (range_s): Remove typedef, VEC. | |
10626 | (struct range): Add operator<. | |
10627 | (range_lessthan): Remove. | |
10628 | (ranges_contain): Change type. | |
10629 | (~value): Update. | |
10630 | (struct value) <unavailable, optimized_out>: Now std::vector. | |
10631 | (value_entirely_available) | |
10632 | (value_entirely_covered_by_range_vector) | |
10633 | (value_entirely_unavailable, value_entirely_optimized_out): | |
10634 | Update. | |
10635 | (insert_into_bit_range_vector): Change argument type. | |
10636 | (find_first_range_overlap): Likewise. | |
10637 | (struct ranges_and_idx, value_contents_bits_eq) | |
10638 | (require_not_optimized_out, require_available): Update. | |
10639 | (ranges_copy_adjusted): Change argument types. | |
10640 | (value_optimized_out, value_copy, value_fetch_lazy): Update. | |
10641 | ||
2c8331b9 TT |
10642 | 2018-04-06 Tom Tromey <[email protected]> |
10643 | ||
10644 | * value.c (~value): Update. | |
10645 | (struct value) <parent>: Now a value_ref_ptr. | |
10646 | (value_parent, set_value_parent, value_address, value_copy): | |
10647 | Update. | |
10648 | ||
466ce3ae TT |
10649 | 2018-04-06 Tom Tromey <[email protected]> |
10650 | ||
10651 | * value.c (struct value): Add constructor, destructor, and member | |
10652 | initializers. | |
10653 | (allocate_value_lazy, value_decref): Update. | |
10654 | ||
062d818d TT |
10655 | 2018-04-06 Tom Tromey <[email protected]> |
10656 | ||
10657 | * value.c (struct value) <released, next>: Remove. | |
10658 | (all_values): Now a std::vector. | |
10659 | (allocate_value_lazy): Update. | |
10660 | (value_next): Remove. | |
10661 | (value_mark, value_free_to_mark, release_value) | |
10662 | (value_release_to_mark): Update. | |
10663 | ||
a6535de1 TT |
10664 | 2018-04-06 Tom Tromey <[email protected]> |
10665 | ||
10666 | * value.h (fetch_subexp_value, value_release_to_mark): Update. | |
10667 | (free_value_chain): Remove. | |
10668 | * value.c (free_value_chain): Remove. | |
10669 | (value_release_to_mark): Return a std::vector. | |
10670 | * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a | |
10671 | std::vector. | |
10672 | (check_condition): Update. | |
10673 | * eval.c (fetch_subexp_value): Change "val_chain" to a | |
10674 | std::vector. | |
10675 | * breakpoint.c (update_watchpoint): Update. | |
10676 | (can_use_hardware_watchpoint): Change "vals" to a std::vector. | |
10677 | ||
b5621201 TT |
10678 | 2018-04-06 Tom Tromey <[email protected]> |
10679 | ||
10680 | * value.h (free_all_values): Remove. | |
10681 | * value.c (free_all_values): Remove. | |
10682 | ||
4d0266a0 TT |
10683 | 2018-04-06 Tom Tromey <[email protected]> |
10684 | ||
10685 | * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk) | |
10686 | (value_history_chain, value_history_count): Remove. | |
10687 | (value_history): New global. | |
10688 | (record_latest_value, access_value_history, show_values) | |
10689 | (preserve_values): Update. | |
10690 | ||
b4d61099 TT |
10691 | 2018-04-06 Tom Tromey <[email protected]> |
10692 | ||
10693 | * varobj.h (struct varobj) <value>: Now a value_ref_ptr. | |
10694 | * varobj.c (varobj_set_display_format, varobj_set_value) | |
10695 | (install_default_visualizer, construct_visualizer) | |
10696 | (install_new_value, ~varobj, varobj_get_value_type) | |
10697 | (my_value_of_variable, varobj_editable_p): Update. | |
10698 | * c-varobj.c (c_describe_child, c_value_of_variable) | |
10699 | (cplus_number_of_children, cplus_describe_child): Update. | |
10700 | * ada-varobj.c (ada_number_of_children, ada_name_of_child) | |
10701 | (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child) | |
10702 | (ada_value_of_variable, ada_value_is_changeable_p): Update. | |
10703 | ||
9b558729 TT |
10704 | 2018-04-06 Tom Tromey <[email protected]> |
10705 | ||
10706 | * printcmd.c (last_examine_address): Change type to | |
10707 | value_ref_ptr. | |
10708 | (do_examine, x_command): Update. | |
10709 | ||
850645cf TT |
10710 | 2018-04-06 Tom Tromey <[email protected]> |
10711 | ||
10712 | * value.c (release_value): Update. | |
10713 | * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr. | |
10714 | (struct bpstats) <val>: Now a value_ref_ptr. | |
10715 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
10716 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
10717 | (~watchpoint, print_it_watchpoint, watch_command_1) | |
10718 | (invalidate_bp_value_on_memory_change): Update. | |
10719 | ||
22bc8444 TT |
10720 | 2018-04-06 Tom Tromey <[email protected]> |
10721 | ||
10722 | * varobj.c (varobj_clear_saved_item) | |
10723 | (update_dynamic_varobj_children, install_new_value, ~varobj): | |
10724 | Update. | |
10725 | * value.h (value_incref): Move declaration earlier. | |
10726 | (value_decref): Rename from value_free. | |
10727 | (struct value_ref_policy): New. | |
10728 | (value_ref_ptr): New typedef. | |
10729 | (struct value_deleter): Remove. | |
10730 | (gdb_value_up): Remove typedef. | |
10731 | (release_value): Change return type. | |
10732 | (release_value_or_incref): Remove. | |
10733 | * value.c (set_value_parent): Update. | |
10734 | (value_incref): Change return type. | |
10735 | (value_decref): Rename from value_free. | |
10736 | (value_free_to_mark, free_all_values, free_value_chain): Update. | |
10737 | (release_value): Return value_ref_ptr. | |
10738 | (release_value_or_incref): Remove. | |
10739 | (record_latest_value, set_internalvar, clear_internalvar): | |
10740 | Update. | |
10741 | * stack.c (info_frame_command): Don't call value_free. | |
10742 | * python/py-value.c (valpy_dealloc, valpy_new) | |
10743 | (value_to_value_object): Update. | |
10744 | * printcmd.c (do_examine): Update. | |
10745 | * opencl-lang.c (lval_func_free_closure): Update. | |
10746 | * mi/mi-main.c (register_changed_p): Don't call value_free. | |
10747 | * mep-tdep.c (mep_frame_prev_register): Don't call value_free. | |
10748 | * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free. | |
10749 | * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call | |
10750 | value_free. | |
10751 | * guile/scm-value.c (vlscm_free_value_smob) | |
10752 | (vlscm_scm_from_value): Update. | |
10753 | * frame.c (frame_register_unwind, frame_unwind_register_signed) | |
10754 | (frame_unwind_register_unsigned, get_frame_register_bytes) | |
10755 | (put_frame_register_bytes): Don't call value_free. | |
10756 | * findvar.c (address_from_register): Don't call value_free. | |
10757 | * dwarf2read.c (dwarf2_compute_name): Don't call value_free. | |
10758 | * dwarf2loc.c (entry_data_value_free_closure) | |
10759 | (value_of_dwarf_reg_entry, free_pieced_value_closure) | |
10760 | (dwarf2_evaluate_loc_desc_full): Update. | |
10761 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
10762 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
10763 | (~watchpoint, watch_command_1) | |
10764 | (invalidate_bp_value_on_memory_change): Update. | |
10765 | * alpha-tdep.c (alpha_register_to_value): Don't call value_free. | |
10766 | ||
7f8a5d38 SM |
10767 | 2018-04-06 Simon Marchi <[email protected]> |
10768 | ||
10769 | PR gdb/23022 | |
10770 | * warning.m4: Add -Wno-error=deprecated-register. | |
10771 | * configure: Re-generate. | |
10772 | ||
8a76bd3b TT |
10773 | 2018-04-05 Tom Tromey <[email protected]> |
10774 | ||
10775 | * linespec.h: Remove include of "vec.h". | |
10776 | ||
8e8d776e TT |
10777 | 2018-04-05 Tom Tromey <[email protected]> |
10778 | ||
10779 | * linespec.c (typep): Remove typedef. | |
10780 | (find_methods, find_superclass_methods): Take a std::vector. | |
10781 | (find_method): Use std::vector. | |
10782 | ||
9b2f8581 TT |
10783 | 2018-04-05 Tom Tromey <[email protected]> |
10784 | ||
10785 | * utils.c (compare_strings): Remove. | |
10786 | * utils.h (compare_strings): Remove. | |
10787 | * objc-lang.h (find_imps): Update. | |
10788 | * objc-lang.c (find_methods): Take a std::vector. | |
10789 | (uniquify_strings, find_imps): Likewise. | |
10790 | * linespec.c (find_methods): Take a std::vector. | |
10791 | (decode_objc): Use std::vector. | |
10792 | (add_all_symbol_names_from_pspace, find_superclass_methods): Take | |
10793 | a std::vector. | |
10794 | (find_method, find_function_symbols): Use std::vector. | |
10795 | ||
459a2e4c TT |
10796 | 2018-04-05 Tom Tromey <[email protected]> |
10797 | ||
10798 | * completer.c (completion_tracker::completion_tracker): Remove | |
10799 | cast. | |
10800 | (completion_tracker::discard_completions): Likewise. | |
10801 | * breakpoint.c (ambiguous_names_p): Remove cast. | |
10802 | * ada-lang.c (_initialize_ada_language): Remove cast. | |
10803 | * utils.h (streq): Update. | |
10804 | (streq_hash): Add new declaration. | |
10805 | * utils.c (streq): Return bool. | |
10806 | (streq_hash): New function. | |
10807 | ||
9be2c17a TT |
10808 | 2018-04-05 Tom Tromey <[email protected]> |
10809 | ||
10810 | * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>: | |
10811 | Remove a string copy. | |
10812 | ||
f73c6ece TT |
10813 | 2018-04-05 Tom Tromey <[email protected]> |
10814 | ||
10815 | * linespec.c (filter_results): Use std::vector. | |
10816 | (decode_line_2, decode_line_full): Update. | |
10817 | ||
53a0f8a2 TT |
10818 | 2018-04-05 Tom Tromey <[email protected]> |
10819 | ||
10820 | * linespec.c (canonical_to_fullform): Return std::string. | |
10821 | (filter_results): Update. | |
10822 | (struct decode_line_2_item): Add constructor. | |
10823 | <fullform, displayform>: Now std::string. | |
10824 | (decode_line_2_compare_items): Now a std::sort comparator. | |
10825 | (decode_line_2): Update. | |
10826 | ||
a5b5adf5 TT |
10827 | 2018-04-05 Tom Tromey <[email protected]> |
10828 | ||
10829 | * linespec.c (copy_token_string): Return a unique_xmalloc_ptr. | |
10830 | (unexpected_linespec_error): Update. | |
10831 | (linespec_parse_basic, parse_linespec): Update. | |
10832 | ||
6a307fc5 TT |
10833 | 2018-04-05 Tom Tromey <[email protected]> |
10834 | ||
10835 | * linespec.c (linespec_parse_basic): Reindent. | |
10836 | ||
41c1efc6 TT |
10837 | 2018-04-05 Tom Tromey <[email protected]> |
10838 | ||
10839 | * minsyms.h (iterate_over_minimal_symbols): Update. | |
10840 | * minsyms.c (iterate_over_minimal_symbols): Take a | |
10841 | gdb::function_view. | |
10842 | * linespec.c (struct collect_minsyms): Remove. | |
10843 | (compare_msyms): Now a std::sort comparator. | |
10844 | (add_minsym): Add parameters. | |
10845 | (search_minsyms_for_name): Update. Use std::vector. | |
10846 | ||
c5edbf3d TT |
10847 | 2018-04-03 Tom Tromey <[email protected]> |
10848 | ||
10849 | * mipsread.c (read_alphacoff_dynamic_symtab): Use | |
10850 | gdb::byte_vector. | |
10851 | ||
b39efc48 WP |
10852 | 2018-04-02 Weimin Pan <[email protected]> |
10853 | ||
10854 | * MAINTAINERS (Write After Approval): Add Weimin Pan. | |
10855 | ||
121ad66c | 10856 | 2018-04-02 Weimin Pan <[email protected]> |
79f18731 WP |
10857 | |
10858 | PR gdb/16959 | |
10859 | * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when | |
10860 | printing static type. | |
10861 | ||
09473be8 TT |
10862 | 2018-04-01 Tom Tromey <[email protected]> |
10863 | ||
10864 | * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector. | |
10865 | (rs6000_xfer_shared_libraries): Update. | |
10866 | ||
ec1f2d91 SM |
10867 | 2018-04-01 Simon Marchi <[email protected]> |
10868 | ||
10869 | * common/gdb_vecs.h (char_ptr): Remove. | |
10870 | * tracepoint.c (encode_actions_1): Remove usage of char_ptr. | |
10871 | ||
d8611974 SM |
10872 | 2018-03-30 Simon Marchi <[email protected]> |
10873 | ||
10874 | * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC | |
10875 | with std::vector. | |
10876 | * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove. | |
10877 | ||
a18ba4e4 SM |
10878 | 2018-03-30 Simon Marchi <[email protected]> |
10879 | ||
10880 | * tracepoint.h (struct uploaded_tp): Initialize fields. | |
10881 | <actions, step_actions, cmd_strings>: Change type to | |
10882 | std::vector<char *>. | |
10883 | * tracepoint.c (get_uploaded_tp): Allocate with new. | |
10884 | (free_uploaded_tps): Free with delete. | |
10885 | (parse_tracepoint_definition): Adjust to std::vector change. | |
10886 | * breakpoint.c (read_uploaded_action): Likewise. | |
10887 | (create_tracepoint_from_upload): Likewise. | |
10888 | * ctf.c (ctf_write_uploaded_tp): Likewise. | |
10889 | (SET_ARRAY_FIELD): Likewise. | |
10890 | * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise. | |
10891 | ||
a7961323 TT |
10892 | 2018-03-30 Tom Tromey <[email protected]> |
10893 | ||
10894 | * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return | |
10895 | std::unique_ptr. | |
10896 | (svr4_keep_data_in_core): Update. | |
10897 | (svr4_read_so_list): Update. | |
10898 | ||
e83e4e24 TT |
10899 | 2018-03-30 Tom Tromey <[email protected]> |
10900 | ||
10901 | * windows-nat.c (handle_output_debug_string, handle_exception): | |
10902 | Update. | |
10903 | * target.h (target_read_string): Update. | |
10904 | * target.c (target_read_string): Change "string" to | |
10905 | unique_xmalloc_ptr. | |
10906 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
10907 | Update. | |
10908 | * solib-frv.c (frv_current_sos): Update. | |
10909 | * solib-dsbt.c (dsbt_current_sos): Update. | |
10910 | * solib-darwin.c (darwin_current_sos): Update. | |
10911 | * linux-thread-db.c (inferior_has_bug): Update. | |
10912 | * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>: | |
10913 | Update. Remove alloca. | |
10914 | * ada-lang.c (ada_main_name): Update. | |
10915 | ||
263db9a1 TT |
10916 | 2018-03-30 Tom Tromey <[email protected]> |
10917 | ||
10918 | * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove. | |
10919 | (struct dwo_file_deleter): New. | |
10920 | (dwo_file_up): New typedef. | |
10921 | (open_and_init_dwo_file): Use dwo_file_up. | |
10922 | (free_dwo_file_cleanup): Remove. | |
10923 | ||
5dafb3d1 TT |
10924 | 2018-03-30 Tom Tromey <[email protected]> |
10925 | ||
10926 | * dwarf2read.c (free_dwo_file): Remove "objfile" parameter. | |
10927 | (free_dwo_file_cleanup, free_dwo_file_from_slot): Update. | |
10928 | ||
11ed8cad TT |
10929 | 2018-03-30 Tom Tromey <[email protected]> |
10930 | ||
10931 | * dwarf2read.c (class free_cached_comp_units): New class. | |
10932 | (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it. | |
10933 | (free_cached_comp_units): Remove function. | |
10934 | ||
9ae79dac TT |
10935 | 2018-03-30 Tom Tromey <[email protected]> |
10936 | ||
10937 | * utils.h (make_cleanup_unpush_target): Remove. | |
10938 | * inf-ptrace.c (struct target_unpusher): New. | |
10939 | (target_unpush_up) New typedef. | |
10940 | (inf_ptrace_create_inferior, inf_ptrace_attach): Use | |
10941 | target_unpush_up. | |
10942 | * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove. | |
10943 | ||
5aa89276 TT |
10944 | 2018-03-27 Tom Tromey <[email protected]> |
10945 | ||
10946 | * utils.c (prompt_for_continue): Use unique_xmalloc_ptr. | |
10947 | ||
1dbeed45 TT |
10948 | 2018-03-27 Pedro Alves <[email protected]> |
10949 | Tom Tromey <[email protected]> | |
10950 | ||
10951 | * top.c (class gdb_readline_wrapper_cleanup): Add constructor, | |
10952 | destructor. Now a class. | |
10953 | (gdb_readline_wrapper_cleanup): Remove function. | |
10954 | (gdb_readline_wrapper): Remove cleanups. | |
10955 | ||
c819b2c0 TT |
10956 | 2018-03-27 Tom Tromey <[email protected]> |
10957 | ||
10958 | * typeprint.h (struct type_print_options) <local_typedefs, | |
10959 | global_typedefs>: Remove "struct" keyword. | |
10960 | (class typedef_hash_table): New class. | |
10961 | (recursively_update_typedef_hash, add_template_parameters) | |
10962 | (create_typedef_hash, free_typedef_hash, copy_typedef_hash) | |
10963 | (find_typedef_in_hash): Don't declare. | |
10964 | * typeprint.c (struct typedef_hash_table): Move to typeprint.h. | |
10965 | (typedef_hash_table::recursively_update): Rename from | |
10966 | recursively_update_typedef_hash. Now a member. | |
10967 | (typedef_hash_table::add_template_parameters): Rename from | |
10968 | add_template_parameters. Now a member. | |
10969 | (typedef_hash_table::typedef_hash_table): Now a constructor; | |
10970 | rename from create_typedef_hash. | |
10971 | (typedef_hash_table::~typedef_hash_table): Now a destructor; | |
10972 | rename from free_typedef_hash. | |
10973 | (do_free_typedef_hash, make_cleanup_free_typedef_hash) | |
10974 | (do_free_global_table): Remove. | |
10975 | (typedef_hash_table::typedef_hash_table): New constructor; renamed | |
10976 | from copy_type_recursive. | |
10977 | (create_global_typedef_table): Remove. | |
10978 | (typedef_hash_table::find_global_typedef): Now a member of | |
10979 | typedef_hash_table. | |
10980 | (typedef_hash_table::find_typedef): Rename from | |
10981 | find_typedef_in_hash; now a member. | |
10982 | (whatis_exp): Update. | |
10983 | * extension.h (struct ext_lang_type_printers): Add constructor and | |
10984 | destructor. | |
10985 | (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't | |
10986 | declare. | |
10987 | * extension.c (ext_lang_type_printers::ext_lang_type_printers): | |
10988 | Now a constructor; rename from start_ext_lang_type_printers. | |
10989 | (ext_lang_type_printers): Now a destructor; rename from | |
10990 | free_ext_lang_type_printers. | |
10991 | * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1): | |
10992 | Update. | |
10993 | (c_type_print_base_struct_union): Update. Remove cleanups. | |
10994 | ||
608219fb TT |
10995 | 2018-03-27 Tom Tromey <[email protected]> |
10996 | ||
10997 | * dwarf-index-write.c: Include <cmath>. | |
10998 | ||
3fcded8f JB |
10999 | 2018-03-27 Joel Brobecker <[email protected]> |
11000 | ||
11001 | * NEWS: Add entry describing new "set|show varsize-limit" command. | |
11002 | * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit" | |
11003 | command. | |
11004 | * printcmd.c (_initialize_printcmd): Add "set var" alias of | |
11005 | "set variable". | |
11006 | ||
cd4fb1b2 SM |
11007 | 2018-03-27 Simon Marchi <[email protected]> |
11008 | ||
11009 | * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and | |
11010 | dwarf-index-write.c | |
11011 | (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h. | |
11012 | * dwarf-index-common.c: New file. | |
11013 | * dwarf-index-common.h: New file. | |
11014 | * dwarf-index-write.c: New file. | |
11015 | * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h. | |
11016 | (struct dwarf2_section_info): Move from here. | |
11017 | (dwarf2_section_info_def): Likewise. | |
11018 | (DEF_VEC_O (dwarf2_section_info_def)): Likewise. | |
11019 | (offset_type): Likewise. | |
11020 | (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise. | |
11021 | (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise. | |
11022 | (DW2_GDB_INDEX_CU_SET_VALUE): Likewise. | |
11023 | (byte_swap): Likewise. | |
11024 | (MAYBE_SWAP): Likewise. | |
11025 | (dwarf2_per_cu_ptr): Likewise. | |
11026 | (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise. | |
11027 | (struct tu_stats): Likewise. | |
11028 | (struct dwarf2_per_objfile): Likewise. | |
11029 | (struct dwarf2_per_cu_data): Likewise. | |
11030 | (struct signatured_type): Likewise. | |
11031 | (sig_type_ptr): Likewise. | |
11032 | (DEF_VEC_P (sig_type_ptr)): Likewise. | |
11033 | (INDEX4_SUFFIX): Likewise. | |
11034 | (INDEX5_SUFFIX): Likewise. | |
11035 | (DEBUG_STR_SUFFIX): Likewise. | |
11036 | (dwarf2_read_section): Make non-static. | |
11037 | (mapped_index_string_hash): Move from here. | |
11038 | (dwarf5_djb_hash): Likewise. | |
11039 | (file_write): Likewise. | |
11040 | (class data_buf): Likewise. | |
11041 | (struct symtab_index_entry): Likewise. | |
11042 | (struct mapped_symtab): Likewise. | |
11043 | (find_slot): Likewise. | |
11044 | (hash_expand): Likewise. | |
11045 | (add_index_entry): Likewise. | |
11046 | (uniquify_cu_indices): Likewise. | |
11047 | (class c_str_view): Likewise. | |
11048 | (class c_str_view_hasher): Likewise. | |
11049 | (class vector_hasher): Likewise. | |
11050 | (write_hash_table): Likewise. | |
11051 | (psym_index_map): Likewise. | |
11052 | (struct addrmap_index_data): Likewise. | |
11053 | (add_address_entry): Likewise. | |
11054 | (add_address_entry_worker): Likewise. | |
11055 | (write_address_map): Likewise. | |
11056 | (symbol_kind): Likewise. | |
11057 | (write_psymbols): Likewise. | |
11058 | (struct signatured_type_index_data): Likewise. | |
11059 | (write_one_signatured_type): Likewise. | |
11060 | (recursively_count_psymbols): Likewise. | |
11061 | (recursively_write_psymbols): Likewise. | |
11062 | (class debug_names): Likewise. | |
11063 | (check_dwarf64_offsets): Likewise. | |
11064 | (psyms_seen_size): Likewise. | |
11065 | (write_gdbindex): Likewise. | |
11066 | (write_debug_names): Likewise. | |
11067 | (assert_file_size): Likewise. | |
11068 | (write_psymtabs_to_index): Likewise. | |
11069 | (save_gdb_index_command): Likewise. | |
11070 | (_initialize_dwarf2_read): Don't register the "save gdb-index" | |
11071 | command. | |
11072 | * dwarf2read.h: New file. | |
11073 | ||
59cc4834 JB |
11074 | 2018-03-27 Joel Brobecker <[email protected]> |
11075 | ||
11076 | PR gdb/22670 | |
11077 | * dwarf2read.c (dwarf2_physname): Do not return the demangled | |
11078 | symbol name if the CU's language stores symbol names in linkage | |
11079 | format. | |
11080 | * language.h (struct language_defn) | |
11081 | <la_store_sym_names_in_linkage_form_p>: New field. Adjust | |
11082 | all instances of this struct. | |
11083 | ||
67501539 TT |
11084 | 2018-03-26 Tom Tromey <[email protected]> |
11085 | ||
11086 | * stack.c (backtrace_command_1): Remove verbose code. | |
11087 | ||
76c939ac TT |
11088 | 2018-03-26 Tom Tromey <[email protected]> |
11089 | ||
11090 | * python/py-framefilter.c (py_print_type): Don't catch | |
11091 | exceptions. Return void. | |
11092 | (py_print_value): Likewise. | |
11093 | (py_print_single_arg): Likewise. | |
11094 | (enumerate_args): Don't catch exceptions. | |
11095 | (py_print_args): Likewise. | |
11096 | (py_print_frame): Likewise. | |
11097 | (gdbpy_apply_frame_filter): Catch exceptions here. | |
11098 | ||
9507b29c TT |
11099 | 2018-03-26 Tom Tromey <[email protected]> |
11100 | ||
11101 | * stack.c (_initialize_stack): Remove trailing newlines from help | |
11102 | text. Add "Usage" line to "backtrace" help. | |
11103 | ||
eb68e487 TT |
11104 | 2018-03-26 Tom Tromey <[email protected]> |
11105 | ||
11106 | PR python/16486: | |
11107 | * python/py-framefilter.c (py_print_args): Call wrap_hint. | |
11108 | ||
1f111921 TT |
11109 | 2018-03-26 Tom Tromey <[email protected]> |
11110 | ||
11111 | * python/py-framefilter.c (py_print_single_arg): Return | |
11112 | EXT_LANG_BT_ERROR from catch. | |
11113 | ||
fb7eb8b5 TT |
11114 | 2018-03-26 Tom Tromey <[email protected]> |
11115 | ||
11116 | PR backtrace/15584: | |
11117 | * stack.c (backtrace_command_1): Move some code into no-filters | |
11118 | "if". | |
11119 | ||
4ca59a9f TT |
11120 | 2018-03-26 Tom Tromey <[email protected]> |
11121 | ||
11122 | * python/py-framefilter.c (throw_quit_or_print_exception): New | |
11123 | function. | |
11124 | (gdbpy_apply_frame_filter): Use it. | |
11125 | ||
92256134 TT |
11126 | 2018-03-26 Tom Tromey <[email protected]> |
11127 | ||
11128 | PR cli/17716: | |
11129 | * python/py-framefilter.c (py_print_type, py_print_value) | |
11130 | (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use | |
11131 | RETURN_MASK_ERROR. | |
11132 | ||
7a630bc2 TT |
11133 | 2018-03-26 Tom Tromey <[email protected]> |
11134 | ||
11135 | * python/py-framefilter.c (enumerate_args): Use | |
11136 | gdb::unique_xmalloc_ptr. | |
11137 | ||
63283d4a TT |
11138 | 2018-03-26 Tom Tromey <[email protected]> |
11139 | ||
11140 | * python/py-framefilter.c (py_print_frame): Return | |
11141 | EXT_LANG_BT_OK. | |
11142 | (gdbpy_apply_frame_filter): Update comment. | |
11143 | * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>: | |
11144 | Remove. | |
11145 | <EXT_LANG_BT_NO_FILTERS>: Change value. | |
11146 | ||
978d6c75 TT |
11147 | 2018-03-26 Tom Tromey <[email protected]> |
11148 | ||
11149 | PR backtrace/15582: | |
11150 | * stack.c (backtrace_command): Parse "hide" argument. | |
11151 | * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE. | |
11152 | * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New | |
11153 | constant. | |
11154 | ||
1cf7e640 TT |
11155 | 2018-03-26 Tom Tromey <[email protected]> |
11156 | ||
11157 | * stack.c (backtrace_command_1): Remove "show_locals" parameter, | |
11158 | add "flags". | |
11159 | (backtrace_command): Remove "fulltrace", add "flags". | |
11160 | ||
ea3b0687 TT |
11161 | 2018-03-26 Tom Tromey <[email protected]> |
11162 | ||
11163 | * stack.c (backtrace_command): Rewrite command line parsing. | |
11164 | ||
9f034d75 SM |
11165 | 2018-03-26 Simon Marchi <[email protected]> |
11166 | ||
11167 | * dwarf2read.c (DEF_VEC_I(offset_type)): Remove. | |
11168 | ||
ce1459e5 SM |
11169 | 2018-03-26 Simon Marchi <[email protected]> |
11170 | ||
11171 | * filename-seen-cache.h: Add include guard. | |
11172 | ||
4f7ae6f5 KS |
11173 | 2018-03-26 Keith Seitz <[email protected]> |
11174 | ||
11175 | * symfile.c (place_section): Remove "struct" from section_addr_info | |
11176 | in comment. | |
11177 | * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove | |
11178 | "struct" keyword from section_addr_info. | |
11179 | ||
5cd3e386 AH |
11180 | 2018-03-26 Alan Hayward <[email protected]> |
11181 | ||
11182 | * regformats/regdef.h (reg): Add constructors. | |
11183 | ||
3e5ef9a4 PA |
11184 | 2018-03-25 Pedro Alves <[email protected]> |
11185 | ||
11186 | * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE | |
11187 | if then/else bodies in var_func_name extraction. | |
11188 | ||
c88d2fcc | 11189 | 2018-03-23 Weimin Pan <[email protected]> |
bce02d88 WP |
11190 | |
11191 | * minsyms.c (lookup_minimal_symbol_and_objfile): Use | |
11192 | lookup_minimal_symbol() to find symbol entry. | |
11193 | * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment. | |
11194 | ||
b7fee5a3 KS |
11195 | 2018-03-23 Keith Seitz <[email protected]> |
11196 | ||
11197 | PR c++/22968 | |
11198 | * dwarf2read.c (scan_partial_symbols): Scan structs/classes for | |
11199 | nested type definitions for C++, too. | |
11200 | ||
2cc9b304 TT |
11201 | 2018-03-23 Tom Tromey <[email protected]> |
11202 | ||
11203 | * machoread.c (struct oso_el): Add a constructor. Don't define as | |
11204 | a typedef. | |
11205 | (macho_register_oso): Remove. | |
11206 | (macho_symtab_read): Take a std::vector. | |
11207 | (oso_el_compare_name): Now a std::sort comparator. | |
11208 | (macho_symfile_read_all_oso): Take a std::vector. | |
11209 | (macho_symfile_read): Use std::vector. Remove cleanups. | |
11210 | ||
a2b2bc12 TT |
11211 | 2018-03-22 Tom Tromey <[email protected]> |
11212 | ||
11213 | * record-full.c (record_full_exec_insn): Use gdb::byte_vector. | |
11214 | (record_full_goto_bookmark): Use std::string. | |
11215 | ||
7a8f494c PFC |
11216 | 2018-03-22 Pedro Franco de Carvalho <[email protected]> |
11217 | ||
11218 | PR tdep/18295 | |
11219 | * rs6000-tdep.c (skip_prologue): Match both stwux and stdux | |
11220 | a single mask. | |
11221 | ||
dd6d677f PFC |
11222 | 2018-03-22 Pedro Franco de Carvalho <[email protected]> |
11223 | ||
11224 | * rs6000-tdep.c (store_insn_p): New function. | |
11225 | (skip_prologue): New variable alloca_reg_offset. Set lr_reg | |
11226 | and cr_reg to their unshifted values. Use store_insn_p to | |
11227 | match LR saves using either R1 or fdata->alloca_reg. Use | |
11228 | store_insn_p to match CR saves. Set alloca_reg_offset | |
11229 | when alloca_reg and framep are set. Remove lr_reg shift | |
11230 | when assigning to fdata->lr_register. | |
11231 | ||
26d6cec4 AA |
11232 | 2018-03-22 Andreas Arnez <[email protected]> |
11233 | ||
11234 | * linux-tdep.c (linux_info_proc): For "info proc cmdline", print | |
11235 | command line args instead of emitting a warning. | |
11236 | ||
5d9310c4 SM |
11237 | 2018-03-22 Simon Marchi <[email protected]> |
11238 | ||
11239 | * tracepoint.h (struct static_tracepoint_marker): Initialize | |
11240 | fields, define default constructor, move constructor and move | |
11241 | assignment, disable the rest. | |
11242 | <str_id, extra>: Make std::string. | |
11243 | (release_static_tracepoint_marker): Remove. | |
11244 | (free_current_marker): Remove. | |
11245 | * tracepoint.c (free_current_marker): Remove. | |
11246 | (parse_static_tracepoint_marker_definition): Adjust to | |
11247 | std::string, use new hex2str overload. | |
11248 | (release_static_tracepoint_marker): Remove. | |
11249 | (print_one_static_tracepoint_marker): Get marker by reference | |
11250 | and adjust to std::string. | |
11251 | (info_static_tracepoint_markers_command): Adjust to std::vector | |
11252 | changes | |
11253 | * target.h (static_tracepoint_marker_p): Remove typedef. | |
11254 | (DEF_VEC_P(static_tracepoint_marker_p)): Remove. | |
11255 | (struct target_ops) <to_static_tracepoint_marker_at>: Return | |
11256 | bool. | |
11257 | <to_static_tracepoint_markers_by_strid>: Return std::vector. | |
11258 | * target-debug.h | |
11259 | (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove. | |
11260 | (target_debug_print_std_vector_static_tracepoint_marker): New. | |
11261 | (target_debug_print_struct_static_tracepoint_marker_p): Rename | |
11262 | to... | |
11263 | (target_debug_print_static_tracepoint_marker_p): ... this. | |
11264 | * target-delegates.c: Re-generate. | |
11265 | * breakpoint.h (struct tracepoint) <static_trace_marker_id>: | |
11266 | Make std::string. | |
11267 | * breakpoint.c (init_breakpoint_sal): Adjust to std::string. | |
11268 | (decode_static_tracepoint_spec): Adjust to std::vector. | |
11269 | (tracepoint_print_one_detail): Adjust to std::string. | |
11270 | (strace_marker_decode_location): Adjust to std::string. | |
11271 | (update_static_tracepoint): Adjust to std::string, remove call | |
11272 | to release_static_tracepoint_marker. | |
11273 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
11274 | Adjust to std::vector. | |
11275 | * remote.c (remote_static_tracepoint_marker_at): Return bool. | |
11276 | (remote_static_tracepoint_markers_by_strid): Adjust to | |
11277 | std::vector. | |
11278 | * common/rsp-low.h (hex2str): New overload with explicit count | |
11279 | of bytes. | |
11280 | * common/rsp-low.c (hex2str): New overload with explicit count | |
11281 | of bytes. | |
11282 | * unittests/rsp-low-selftests.c (test_hex2str): New function. | |
11283 | (_initialize_rsp_low_selftests): Add test_hex2str test. | |
11284 | * unittests/tracepoint-selftests.c | |
11285 | (test_parse_static_tracepoint_marker_definition): Adjust to | |
11286 | std::string. | |
11287 | ||
62c222b6 SM |
11288 | 2018-03-22 Simon Marchi <[email protected]> |
11289 | ||
11290 | * tracepoint.c (parse_static_tracepoint_marker_definition): | |
11291 | Consider case where the definition is followed by more | |
11292 | definitions. | |
11293 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
11294 | tracepoint-selftests.c. | |
11295 | * unittests/tracepoint-selftests.c: New. | |
11296 | ||
7eb2418f PFC |
11297 | 2018-03-21 Pedro Franco de Carvalho <[email protected]> |
11298 | ||
11299 | * MAINTAINERS (Write After Approval): Add Pedro Franco de | |
11300 | Carvalho. | |
11301 | ||
7cbe16e9 SR |
11302 | 2018-03-20 Stephen Roberts <[email protected]> |
11303 | ||
3d6b3b82 | 11304 | * symtab.c (find_pc_sect_line): fixed indentation. |
7cbe16e9 | 11305 | |
4ee89e90 SR |
11306 | 2018-03-20 Stephen Roberts <[email protected]> |
11307 | ||
3d6b3b82 | 11308 | * symtab.c (find_pc_sect_line): now uses binary search. |
4ee89e90 | 11309 | |
92630041 TT |
11310 | 2018-03-19 Tom Tromey <[email protected]> |
11311 | ||
11312 | * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain | |
11313 | "IDENT" production. | |
11314 | ||
76727919 TT |
11315 | 2018-03-19 Pedro Alves <[email protected]> |
11316 | Tom Tromey <[email protected]> | |
11317 | ||
11318 | * unittests/observable-selftests.c: New file. | |
11319 | * common/observable.h: New file. | |
11320 | * observable.h: New file. | |
11321 | * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c, | |
11322 | arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c, | |
11323 | breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c, | |
11324 | corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c, | |
11325 | extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c, | |
11326 | infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c, | |
11327 | linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c, | |
11328 | mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c, | |
11329 | ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c, | |
11330 | python/py-breakpoint.c, python/py-finishbreakpoint.c, | |
11331 | python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c, | |
11332 | record-btrace.c, record-full.c, record.c, regcache.c, remote.c, | |
11333 | riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c, | |
11334 | spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c, | |
11335 | symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c, | |
11336 | tui/tui-interp.c, valops.c: Update all users. | |
11337 | * tui/tui-hooks.c (tui_bp_created_observer) | |
11338 | (tui_bp_deleted_observer, tui_bp_modified_observer) | |
11339 | (tui_inferior_exit_observer, tui_before_prompt_observer) | |
11340 | (tui_normal_stop_observer, tui_register_changed_observer): | |
11341 | Remove. | |
11342 | (tui_observers_token): New global. | |
11343 | (attach_or_detach, tui_attach_detach_observers): New functions. | |
11344 | (tui_install_hooks, tui_remove_hooks): Use | |
11345 | tui_attach_detach_observers. | |
11346 | * record-btrace.c (record_btrace_thread_observer): Remove. | |
11347 | (record_btrace_thread_observer_token): New global. | |
11348 | * observer.sh: Remove. | |
11349 | * observer.c: Rename to observable.c. | |
11350 | * observable.c (namespace gdb_observers): Define new objects. | |
11351 | (observer_debug): Move into gdb_observers namespace. | |
11352 | (struct observer, struct observer_list, xalloc_observer_list_node) | |
11353 | (xfree_observer_list_node, generic_observer_attach) | |
11354 | (generic_observer_detach, generic_observer_notify): Remove. | |
11355 | (_initialize_observer): Update. | |
11356 | Don't include observer.inc. | |
11357 | * Makefile.in (generated_files): Remove observer.h, observer.inc. | |
11358 | (clean mostlyclean): Likewise. | |
11359 | (observer.h, observer.inc): Remove targets. | |
11360 | (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c. | |
11361 | (COMMON_SFILES): Use observable.c, not observer.c. | |
11362 | * .gitignore: Remove observer.h. | |
11363 | ||
1cb1f3da TT |
11364 | 2018-03-18 Tom Tromey <[email protected]> |
11365 | ||
11366 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use | |
11367 | gdb::def_vector. | |
11368 | (bfd_lookup_symbol_from_dyn_symtab): Likewise. | |
11369 | ||
a06ab151 TT |
11370 | 2018-03-17 Tom Tromey <[email protected]> |
11371 | ||
11372 | * auto-load.c (auto_load_objfile_script_1): Use std::string. | |
11373 | ||
770623f7 TT |
11374 | 2018-03-17 Tom Tromey <[email protected]> |
11375 | ||
11376 | * target.c (class scoped_target_fd): New. | |
11377 | (target_fileio_close_cleanup): Remove. | |
11378 | (target_fileio_read_alloc_1): Use scoped_target_fd. | |
11379 | ||
39be3c7e SM |
11380 | 2018-03-16 Simon Marchi <[email protected]> |
11381 | ||
11382 | * silent-rules.mk: New. | |
11383 | * Makefile.in: Include silent-rules.mk | |
11384 | (srcdir, VPATH, top_srcdir): Move up. | |
11385 | (COMPILE): Add ECHO_CXX. | |
11386 | (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD. | |
11387 | (init.c): Add ECHO_INIT_C. | |
11388 | (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
11389 | (version.c): Add ECHO_GEN. | |
11390 | (printcmd.o): Add ECHO_CXX. | |
11391 | (target-float.o): Add ECHO_CXX. | |
11392 | (ada-exp.o): Add ECHO_CXX. | |
11393 | (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN. | |
11394 | (insight$(EXEEXT)): Add ECHO_CXXLD. | |
11395 | * gnulib/configure.ac: Add AM_SILENT_RULES. | |
11396 | * gnulib/aclocal.m4: Re-generate. | |
11397 | * gnulib/configure: Re-generate. | |
11398 | * gnulib/import/Makefile.in: Re-generate. | |
11399 | ||
37e136b1 TT |
11400 | 2018-03-16 Tom Tromey <[email protected]> |
11401 | ||
11402 | * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs". | |
11403 | * utils.h (make_cleanup_free_section_addr_info): Don't declare. | |
11404 | * utils.c (do_free_section_addr_info) | |
11405 | (make_cleanup_free_section_addr_info): Remove. | |
11406 | * symfile.h (struct other_sections): Add constructor. | |
11407 | (struct section_addr_info): Remove. | |
11408 | (section_addr_info): New typedef. | |
11409 | (struct sym_fns) <sym_offsets>: Change type of parameter. | |
11410 | (build_section_addr_info_from_objfile) | |
11411 | (relative_addr_info_to_section_offsets, addr_info_make_relative) | |
11412 | (default_symfile_offsets, symbol_file_add) | |
11413 | (symbol_file_add_from_bfd) | |
11414 | (build_section_addr_info_from_section_table): Update. | |
11415 | (alloc_section_addr_info, free_section_addr_info): Don't declare. | |
11416 | * symfile.c (alloc_section_addr_info): Remove. | |
11417 | (build_section_addr_info_from_section_table): Change return type. | |
11418 | Update. | |
11419 | (build_section_addr_info_from_bfd) | |
11420 | (build_section_addr_info_from_objfile): Likewise. | |
11421 | (free_section_addr_info): Remove. | |
11422 | (relative_addr_info_to_section_offsets): Change type of "addrs". | |
11423 | (addrs_section_compar): Now a std::sort comparator. | |
11424 | (addrs_section_sort): Change return type. | |
11425 | (addr_info_make_relative): Change type of "addrs". Update. | |
11426 | (default_symfile_offsets, syms_from_objfile_1) | |
11427 | (syms_from_objfile, symbol_file_add_with_addrs): Likewise. | |
11428 | (symbol_file_add_separate): Update. | |
11429 | (symbol_file_add): Change type of "addrs". Update. | |
11430 | (add_symbol_file_command): Update. Remove cleanups. | |
11431 | * symfile-mem.c (symbol_file_add_from_memory): Update. Remove | |
11432 | cleanups. | |
11433 | * symfile-debug.c (debug_sym_offsets): Change type of "info". | |
11434 | * solib.c (solib_read_symbols): Update. | |
11435 | * objfiles.c (objfile_relocate): Update. Remove cleanups. | |
11436 | * machoread.c (macho_symfile_offsets): Update. | |
11437 | * jit.c (jit_bfd_try_read_symtab): Update. | |
11438 | ||
03afa6ef SM |
11439 | 2018-03-15 Simon Marchi <[email protected]> |
11440 | ||
11441 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
11442 | unittests/utils-selftests.c. | |
11443 | * unittests/utils-selftests.c: New file. | |
11444 | ||
3ae9ce5d TT |
11445 | 2018-03-14 Tom Tromey <[email protected]> |
11446 | ||
11447 | PR cli/14977: | |
11448 | * printcmd.c (printf_c_string, printf_wide_c_string): Special case | |
11449 | for NULL. | |
11450 | ||
b8c2339b TT |
11451 | 2018-03-14 Tom Tromey <[email protected]> |
11452 | ||
11453 | PR cli/19918: | |
11454 | * printcmd.c (printf_pointer): Allow "-" in format. | |
11455 | ||
80ae639d TT |
11456 | 2018-03-14 Tom Tromey <[email protected]> |
11457 | ||
11458 | * printcmd.c (_initialize_printcmd): Add usage to printf. | |
11459 | ||
0d671d99 YQ |
11460 | 2018-03-14 Yao Qi <[email protected]> |
11461 | ||
11462 | * MAINTAINERS: Update my email address. | |
11463 | ||
b577b6af TT |
11464 | 2018-03-13 Tom Tromey <[email protected]> |
11465 | ||
11466 | * machoread.c (macho_check_dsym): Change filenamep to a | |
11467 | std::string*. | |
11468 | (macho_symfile_read): Update. | |
11469 | * symfile.c (load_command): Use std::string. | |
11470 | ||
89a3b63e AB |
11471 | 2018-03-12 Andrew Burgess <[email protected]> |
11472 | ||
11473 | * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization | |
11474 | to error message string. | |
11475 | (riscv_register_name): Use xsnprintf instead of sprintf. | |
11476 | (riscv_insn::fetch_instruction): Use gdb_assert instead of | |
11477 | internal_error. | |
11478 | (riscv_print_arg_location): Use gdb_assert_not_reached instead of | |
11479 | error. | |
11480 | (riscv_push_dummy_call): Likewise. | |
11481 | ||
984c7238 TT |
11482 | 2018-03-12 Tom Tromey <[email protected]> |
11483 | ||
11484 | * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix): | |
11485 | Use gdb::byte_vector. | |
11486 | * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector. | |
11487 | ||
933522d1 YQ |
11488 | 2018-03-12 Yao Qi <[email protected]> |
11489 | ||
11490 | * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change | |
11491 | parameter type to readable_regcache. | |
11492 | * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update | |
11493 | the declaration. | |
11494 | ||
be2daae6 TT |
11495 | 2018-03-11 Tom Tromey <[email protected]> |
11496 | ||
11497 | * dwarf2read.c (struct nextfield): Add initializers. | |
11498 | (struct nextfnfield): Remove. | |
11499 | (struct fnfieldlist): Add initializers. Remove "length" and | |
11500 | "head", use std::vector. | |
11501 | (struct decl_field_list): Remove. | |
11502 | (struct field_info): Add initializers. | |
11503 | <fields, baseclasses>: Now std::vector. | |
11504 | <nbaseclasses, nfnfields, typedef_field_list_count, | |
11505 | nested_types_list_count>: Remove. | |
11506 | (dwarf2_add_field, dwarf2_add_type_defn) | |
11507 | (dwarf2_attach_fields_to_type, dwarf2_add_member_fn) | |
11508 | (dwarf2_attach_fn_fields_to_type, handle_struct_member_die) | |
11509 | (process_structure_scope): Update. | |
11510 | ||
484cf504 TT |
11511 | 2018-03-11 Tom Tromey <[email protected]> |
11512 | ||
11513 | * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable | |
11514 | for use by std::sort. | |
11515 | (build_type_psymtabs_1): Use std::vector. | |
11516 | ||
9bd8e0b0 EZ |
11517 | 2018-03-09 Eli Zaretskii <[email protected]> |
11518 | ||
11519 | * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, | |
11520 | and LIBMPFR in the printed configuration. | |
11521 | ||
5dc1a704 TT |
11522 | 2018-03-08 Tom Tromey <[email protected]> |
11523 | ||
11524 | * source.c (get_filename_and_charpos): Use scoped_fd. | |
11525 | * nto-procfs.c (procfs_open_1): Use scoped_fd. | |
11526 | (procfs_pidlist): Likewise. | |
11527 | * procfs.c (proc_get_LDT_entry): Use scoped_fd. | |
11528 | (iterate_over_mappings): Likewise. | |
11529 | ||
fdf07f3a TT |
11530 | 2018-03-08 Tom Tromey <[email protected]> |
11531 | ||
11532 | * infcall.c (struct call_return_meta_info) | |
11533 | <stack_temporaries_enabled>: Remove. | |
11534 | (get_call_return_value, call_function_by_hand_dummy): Update. | |
11535 | * thread.c (disable_thread_stack_temporaries): Remove. | |
11536 | (enable_thread_stack_temporaries): Remove. | |
11537 | (thread_stack_temporaries_enabled_p): Return bool. | |
11538 | (push_thread_stack_temporary, value_in_thread_stack_temporaries) | |
11539 | (get_last_thread_stack_temporary): Update. | |
11540 | * eval.c (evaluate_subexp): Update. | |
11541 | * gdbthread.h (class enable_thread_stack_temporaries): Now a | |
11542 | class, not a function. | |
11543 | (value_ptr, value_vec): Remove typedefs. | |
11544 | (class thread_info) <stack_temporaries_enabled>: Now bool. | |
11545 | <stack_temporaries>: Now a std::vector. | |
11546 | (thread_stack_temporaries_enabled_p) | |
11547 | (value_in_thread_stack_temporaries): Return bool. | |
11548 | ||
567a3e54 SM |
11549 | 2018-03-08 Simon Marchi <[email protected]> |
11550 | ||
11551 | * remote.c (putpkt_binary): Fix omitted bytes reporting. | |
11552 | (getpkt_or_notif_sane_1): Likewise. | |
11553 | ||
00b40057 SM |
11554 | 2018-03-08 Simon Marchi <[email protected]> |
11555 | ||
11556 | * build-id.c (build_id_to_debug_bfd): Use std::string. | |
11557 | ||
a8dbfd58 SM |
11558 | 2018-03-08 Simon Marchi <[email protected]> |
11559 | ||
11560 | * build-id.c (find_separate_debug_file_by_buildid): Return | |
11561 | std::string. | |
11562 | * build-id.h (find_separate_debug_file_by_buildid): Return | |
11563 | std::string. | |
11564 | * coffread.c (coff_symfile_read): Adjust to std::string. | |
11565 | * elfread.c (elf_symfile_read): Adjust to std::string. | |
11566 | * symfile.c (separate_debug_file_exists): Change parameter to | |
11567 | std::string. | |
11568 | (find_separate_debug_file): Return std::string. | |
11569 | (find_separate_debug_file_by_debuglink): Return std::string. | |
11570 | * symfile.h (find_separate_debug_file_by_debuglink): Return | |
11571 | std::string. | |
11572 | ||
e6a58aa8 SM |
11573 | 2018-03-08 Simon Marchi <[email protected]> |
11574 | ||
11575 | * common/xml-utils.c (xml_escape_text): Move code to... | |
11576 | (xml_escape_text_append): ... this new function. | |
11577 | * common/xml-utils.h (xml_escape_text_append): New declaration. | |
11578 | * unittests/xml-utils-selftests.c (test_xml_escape_text_append): | |
11579 | New function. | |
11580 | (_initialize_xml_utils): register test_xml_escape_text_append as | |
11581 | a selftest. | |
11582 | ||
4ef0bef6 AH |
11583 | 2018-03-07 Alan Hayward <[email protected]> |
11584 | ||
11585 | * defs.h: Remove MAX_REGISTER_SIZE. | |
11586 | * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE | |
11587 | asserts. | |
11588 | * python/py-unwind.c (pyuw_sniffer): Likewise. | |
11589 | ||
e0d3522b TT |
11590 | 2018-03-07 Tom Tromey <[email protected]> |
11591 | ||
11592 | * linux-tdep.c (linux_info_proc): Update. | |
11593 | * target.h (struct target_ops) <to_fileio_readlink>: Return | |
11594 | optional<string>. | |
11595 | (target_fileio_readlink): Return optional<string>. | |
11596 | * remote.c (remote_hostio_readlink): Return optional<string>. | |
11597 | * inf-child.c (inf_child_fileio_readlink): Return | |
11598 | optional<string>. | |
11599 | * target.c (target_fileio_readlink): Return optional<string>. | |
11600 | ||
ea005f31 AB |
11601 | 2018-03-07 Andrew Burgess <[email protected]> |
11602 | ||
11603 | * regcache.c (cooked_read_test): Add riscv to the list of | |
11604 | architectures that have a save_reggroup. | |
11605 | ||
e95a97d4 AA |
11606 | 2018-03-07 Andreas Arnez <[email protected]> |
11607 | ||
11608 | * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given | |
11609 | value is not a dynamic class object. | |
11610 | ||
d8344f3d TT |
11611 | 2018-03-06 Tom Tromey <[email protected]> |
11612 | ||
11613 | * rust-exp.y: Formatting fixes. | |
11614 | ||
9add17f2 AB |
11615 | 2018-03-06 Andrew Burgess <[email protected]> |
11616 | ||
11617 | * riscv-tdep.c (riscv_register_name): Remove target description | |
11618 | support. | |
11619 | (riscv_gdbarch_init): Remove target description check. | |
11620 | ||
c9486dfe AB |
11621 | 2018-03-06 Andrew Burgess <[email protected]> |
11622 | ||
11623 | * riscv-tdep.c: Remove 'Contributed by ...' lines from header | |
11624 | comment. | |
11625 | * riscv-tdep.h: Likewise. | |
11626 | ||
d74aff3d AB |
11627 | 2018-03-06 Andrew Burgess <[email protected]> |
11628 | ||
11629 | * riscv-tdep.c (riscv_pseudo_register_read): Delete. | |
11630 | (riscv_pseudo_register_write): Delete. | |
11631 | (riscv_gdbarch_init): Remove all use of pseudo registers. | |
11632 | ||
7ea78b59 SM |
11633 | 2018-03-06 Simon Marchi <[email protected]> |
11634 | ||
11635 | * record-btrace.c (btrace_print_lines): Replace cleanup | |
11636 | parameter with RAII equivalents. | |
11637 | (btrace_insn_history): Replace cleanup with RAII equivalents. | |
11638 | * ui-out.h (make_cleanup_ui_out_list_begin_end, | |
11639 | make_cleanup_ui_out_tuple_begin_end): Remove. | |
11640 | * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end, | |
11641 | make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end, | |
11642 | make_cleanup_ui_out_list_begin_end): Remove. | |
11643 | ||
53127008 SM |
11644 | 2018-03-06 Simon Marchi <[email protected]> |
11645 | ||
11646 | * record-btrace.c (record_btrace_maybe_mark_async_event): Change | |
11647 | parameter types to std::vector. Use bool. | |
11648 | (record_btrace_wait): Replace VEC(tp_t) with | |
11649 | std::vector<thread_info *>. | |
11650 | * common/gdb_vecs.h (unordered_remove, ordered_remove): New. | |
11651 | ||
228f1508 SM |
11652 | 2018-03-06 Simon Marchi <[email protected]> |
11653 | ||
11654 | * record-btrace.c (record_btrace_disable_callback): Remove. | |
11655 | (struct scoped_btrace_disable): New. | |
11656 | (record_btrace_open): Use scoped_btrace_disable. | |
11657 | ||
b2970c23 AB |
11658 | 2018-03-06 Andrew Burgess <[email protected]> |
11659 | ||
11660 | * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for | |
11661 | reading values from registers. | |
11662 | ||
fb294655 AB |
11663 | 2018-03-06 Andrew Burgess <[email protected]> |
11664 | ||
11665 | * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz | |
11666 | where appropriate. | |
11667 | ||
cab5bb9d AB |
11668 | 2018-03-06 Andrew Burgess <[email protected]> |
11669 | ||
11670 | * riscv-tdep.c (riscv_print_arg_location): Add header comment, | |
11671 | change parameter type. Use GDB's print functions, and use | |
11672 | core_addr_to_string where appropriate. | |
11673 | (riscv_push_dummy_call): Use core_addr_to_string where | |
11674 | appropriate, update call to riscv_print_arg_location, and reindent | |
11675 | a few lines. | |
11676 | (riscv_return_value): Update call to riscv_print_arg_location. | |
11677 | ||
dbbb1059 AB |
11678 | 2018-03-06 Andrew Burgess <[email protected]> |
11679 | Tim Newsome <[email protected]> | |
11680 | Albert Ou <[email protected]> | |
11681 | Darius Rad <[email protected]> | |
11682 | ||
11683 | * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o | |
11684 | (HFILES_NO_SRCDIR): Add riscv-tdep.h. | |
11685 | (ALLDEPFILES): Add riscv-tdep.c | |
11686 | * configure.tgt: Add riscv support. | |
11687 | * riscv-tdep.c: New file. | |
11688 | * riscv-tdep.h: New file. | |
11689 | * NEWS: Mention new target. | |
11690 | * MAINTAINERS: Add entry for riscv. | |
11691 | ||
5dc43913 AB |
11692 | 2018-03-06 Andrew Burgess <[email protected]> |
11693 | ||
11694 | * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized | |
11695 | fields within aggregates. | |
11696 | ||
3dea1ef7 SM |
11697 | 2018-03-04 Simon Marchi <[email protected]> |
11698 | ||
11699 | * record-btrace.c (btrace_print_lines): Change type of flags to | |
11700 | gdb_disassembly_flags. | |
11701 | ||
7efba073 JB |
11702 | 2018-03-04 John Baldwin <[email protected]> |
11703 | ||
11704 | * fbsd-nat.c: Include "inf-ptrace.h". | |
11705 | (USE_SIGTRAP_SIGINFO): Conditionally define. | |
11706 | [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function. | |
11707 | (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap". | |
11708 | [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New | |
11709 | function. | |
11710 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint): | |
11711 | Likewise. | |
11712 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint): | |
11713 | Likewise. | |
11714 | (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set | |
11715 | "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint", | |
11716 | "supports_stopped_by_hw_breakpoint" target methods. | |
11717 | ||
386a8676 JB |
11718 | 2018-03-04 John Baldwin <[email protected]> |
11719 | ||
11720 | * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat". | |
11721 | * fbsd-nat.c (debug_fbsd_nat): New variable. | |
11722 | (show_fbsd_nat_debug): New function. | |
11723 | (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled. | |
11724 | (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command. | |
11725 | ||
12279366 JB |
11726 | 2018-03-04 John Baldwin <[email protected]> |
11727 | ||
11728 | * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function. | |
11729 | * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New | |
11730 | prototype. | |
11731 | * x86-nat.c (x86_stopped_by_hw_breakpoint): New function. | |
11732 | (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target | |
11733 | method. | |
11734 | ||
54693cf5 SM |
11735 | 2018-03-02 Simon Marchi <[email protected]> |
11736 | ||
11737 | * common/gdb_vecs.c (free_char_ptr_vec): Remove. | |
11738 | * common/gdb_vecs.h (free_char_ptr_vec): Remove. | |
11739 | ||
ccb2231c SM |
11740 | 2018-03-02 Simon Marchi <[email protected]> |
11741 | ||
11742 | * charset.c (struct charset_vector): New. | |
11743 | (charsets): Change type to charset_vector. | |
11744 | (find_charset_names): Adjust. | |
11745 | (add_one): Adjust. | |
11746 | (_initialize_charset): Adjust. | |
11747 | ||
6fb16ce6 SM |
11748 | 2018-03-02 Simon Marchi <[email protected]> |
11749 | ||
11750 | * progspace.h (struct program_space) <deleted_solibs>: Change | |
11751 | type to std::vector<std::string>. | |
11752 | * progspace.c (clear_program_space_solib_cache): Adjust. | |
11753 | * breakpoint.c (print_solib_event): Adjust. | |
11754 | (check_status_catch_solib): Adjust. | |
11755 | * solib.c (update_solib_list): Adjust. | |
11756 | * ui-out.h (class ui_out) <field_string>: New overload. | |
11757 | * ui-out.c (ui_out::field_string): New overload. | |
11758 | ||
564b1e3f SM |
11759 | 2018-03-02 Simon Marchi <[email protected]> |
11760 | ||
11761 | * progspace.h (struct program_space): Add constructor and | |
11762 | destructor, initialize fields. | |
11763 | (add_program_space): Remove. | |
11764 | * progspace.c (add_program_space): Rename to... | |
11765 | (program_space::program_space): ... this. | |
11766 | (release_program_space): Rename to... | |
11767 | (program_space::~program_space): ... this. | |
11768 | (delete_program_space): Use delete to delete program_space. | |
11769 | (initialize_progspace): Use new to allocate program_space. | |
11770 | * inferior.c (add_inferior_with_spaces): Likewise. | |
11771 | (clone_inferior_command): Likewise. | |
11772 | * infrun.c (follow_fork_inferior): Likewise. | |
11773 | (handle_vfork_child_exec_or_exit): Likewise. | |
11774 | ||
e80aaf61 SM |
11775 | 2018-03-02 Simon Marchi <[email protected]> |
11776 | ||
11777 | * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove. | |
11778 | (delim_string_to_char_ptr_vec): Return std::vector of | |
11779 | gdb::unique_xmalloc_ptr. | |
11780 | (dirnames_to_char_ptr_vec_append): Take std::vector of | |
11781 | gdb::unique_xmalloc_ptr. | |
11782 | (dirnames_to_char_ptr_vec): Return std::vector of | |
11783 | gdb::unique_xmalloc_ptr. | |
11784 | * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): | |
11785 | Take std::vector of gdb::unique_xmalloc_ptr, adjust the code. | |
11786 | (delim_string_to_char_ptr_vec): Return an std::vector of | |
11787 | gdb::unique_xmalloc_ptr, adjust the code. | |
11788 | (dirnames_to_char_ptr_vec_append): Take an std::vector of | |
11789 | gdb::unique_xmalloc_ptr, adjust the code. | |
11790 | (dirnames_to_char_ptr_vec): Return an std::vector of | |
11791 | gdb::unique_xmalloc_ptr, adjust the code. | |
11792 | * auto-load.c (auto_load_safe_path_vec): Change type to | |
11793 | std::vector of gdb::unique_xmalloc_ptr. | |
11794 | (auto_load_expand_dir_vars): Return an std::vector of | |
11795 | gdb::unique_xmalloc_ptr, adjust the code. | |
11796 | (auto_load_safe_path_vec_update): Adjust. | |
11797 | (filename_is_in_auto_load_safe_path_vec): Adjust. | |
11798 | (auto_load_objfile_script_1): Adjust. | |
11799 | * build-id.c (build_id_to_debug_bfd): Adjust. | |
11800 | * linux-thread-db.c (thread_db_load_search): Adjust. | |
11801 | * source.c (add_path): Adjust. | |
11802 | (openp): Adjust. | |
11803 | * symfile.c (find_separate_debug_file): Adjust. | |
11804 | * utils.c (do_free_char_ptr_vec): Remove. | |
11805 | (make_cleanup_free_char_ptr_vec): Remove. | |
11806 | ||
ab818ade SDJ |
11807 | 2018-03-01 Sergio Durigan Junior <[email protected]> |
11808 | ||
11809 | PR gdb/22907 | |
11810 | * common/pathstuff.c: Conditionally include "<windows.h>". | |
11811 | ||
e1e6f073 GS |
11812 | 2018-03-01 Georg Sauthoff <[email protected]> |
11813 | ||
11814 | PR gdb/22888 | |
11815 | * gcore.in: Quote variables and switch interpreter to bash. | |
11816 | ||
c7b15a66 TT |
11817 | 2018-03-01 Tom Tromey <[email protected]> |
11818 | ||
11819 | * dwarf2read.c (alloc_discriminant_info): Fix default_index | |
11820 | assertion. Add assertion for discriminant_index. | |
11821 | (quirk_rust_enum): Use correct base type name in univariant case. | |
11822 | ||
0cb7c7b0 SM |
11823 | 2018-03-01 Simon Marchi <[email protected]> |
11824 | ||
11825 | * record.c (get_call_history_modifiers): Return a | |
11826 | record_print_flags. | |
11827 | (cmd_record_call_history): Adjust. | |
11828 | * record-btrace.c (record_btrace_call_history): Adjust. | |
11829 | (record_btrace_call_history_range): Adjust. | |
11830 | (record_btrace_call_history_from): Adjust. | |
11831 | * target-debug.h (target_debug_print_record_print_flags): New. | |
11832 | * target-delegates.c: Re-generate. | |
11833 | * target.c (target_call_history): Change flags type. | |
11834 | (target_call_history_from): Likewise. | |
11835 | (target_call_history_range): Likewise. | |
11836 | * target.h (struct target_ops) <target_call_history>: Likewise. | |
11837 | (target_call_history_from): Likewise. | |
11838 | (target_call_history_range): Likewise. | |
11839 | ||
25e3c82c SDJ |
11840 | 2018-02-28 Sergio Durigan Junior <[email protected]> |
11841 | Simon Marchi <[email protected]> | |
11842 | ||
11843 | * common/common-utils.c: Include "sys/stat.h". | |
11844 | (is_regular_file): Move here from "source.c"; change return | |
11845 | type to "bool". | |
11846 | * common/common-utils.h (is_regular_file): New prototype. | |
11847 | * common/pathstuff.c (contains_dir_separator): New function. | |
11848 | * common/pathstuff.h (contains_dir_separator): New prototype. | |
11849 | * source.c: Don't include "sys/stat.h". | |
11850 | (is_regular_file): Move to "common/common-utils.c". | |
11851 | ||
b4987c95 SDJ |
11852 | 2018-02-28 Sergio Durigan Junior <[email protected]> |
11853 | ||
11854 | * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c". | |
11855 | (HFILES_NO_SRCDIR): Add "common/pathstuff.h". | |
11856 | * auto-load.c: Include "common/pathstuff.h". | |
11857 | * common/common-def.h (current_directory): Move here. | |
11858 | * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New | |
11859 | function. | |
11860 | * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New | |
11861 | prototype. | |
11862 | * common/pathstuff.c: New file. | |
11863 | * common/pathstuff.h: New file. | |
11864 | * compile/compile.c: Include "common/pathstuff.h". | |
11865 | * defs.h (current_directory): Move to "common/common-defs.h". | |
11866 | * dwarf2read.c: Include "common/pathstuff.h". | |
11867 | * exec.c: Likewise. | |
11868 | * guile/scm-safe-call.c: Likewise. | |
11869 | * linux-thread-db.c: Likewise. | |
11870 | * main.c: Likewise. | |
11871 | * nto-tdep.c: Likewise. | |
11872 | * objfiles.c: Likewise. | |
11873 | * source.c: Likewise. | |
11874 | * symtab.c: Likewise. | |
11875 | * utils.c: Include "common/pathstuff.h". | |
11876 | (gdb_realpath): Move to "common/pathstuff.c". | |
11877 | (gdb_realpath_keepfile): Likewise. | |
11878 | (gdb_abspath): Likewise. | |
11879 | * utils.h (gdb_realpath): Move to "common/pathstuff.h". | |
11880 | (gdb_realpath_keepfile): Likewise. | |
11881 | (gdb_abspath): Likewise. | |
11882 | ||
f169cfdc JB |
11883 | 2018-02-28 John Baldwin <[email protected]> |
11884 | ||
11885 | * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a | |
11886 | wildcard process pid for super_resume for kernels with a | |
11887 | specific bug. | |
11888 | ||
e05cac70 PM |
11889 | 2018-02-27 Phil Muldoon <[email protected]> |
11890 | ||
11891 | * compile/compile.c (get_args): Add additional comments | |
11892 | explaining function. | |
11893 | ||
55089490 TT |
11894 | 2018-02-27 Simon Marchi <[email protected]> |
11895 | Tom Tromey <[email protected]> | |
11896 | ||
11897 | * target.h (memory_write_request_s): Remove typedef. Don't define | |
11898 | VEC. | |
11899 | (target_write_memory_blocks): Change argument to std::vector. | |
11900 | (struct memory_write_request): Add constructor. | |
11901 | * target-memory.c (compare_block_starting_address): Return bool. | |
11902 | Change argument types. | |
11903 | (claim_memory): Change arguments to use std::vector. | |
11904 | (split_regular_and_flash_blocks, blocks_to_erase) | |
11905 | (compute_garbled_blocks): Likewise. | |
11906 | (cleanup_request_data, cleanup_write_requests_vector): Remove. | |
11907 | (target_write_memory_blocks): Change argument to std::vector. | |
11908 | * symfile.c (struct load_section_data): Add constructor and | |
11909 | destructor. Use std::vector for "requests". | |
11910 | (struct load_progress_data): Add initializers. | |
11911 | (load_section_callback): Update. Use "new". | |
11912 | (clear_memory_write_data): Remove. | |
11913 | (generic_load): Update. | |
11914 | ||
0c305b61 AH |
11915 | 2018-02-27 Alan Hayward <[email protected]> |
11916 | ||
11917 | * arch/aarch64.h: Use common/tdesc.h. | |
11918 | ||
c5196c92 MR |
11919 | 2018-02-26 Maciej W. Rozycki <[email protected]> |
11920 | ||
11921 | * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD | |
11922 | architecture with a 64-bit ABI. | |
11923 | ||
37c33887 MR |
11924 | 2018-02-26 Maciej W. Rozycki <[email protected]> |
11925 | ||
11926 | * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination | |
11927 | ahead of target description loading. | |
11928 | ||
d4dd3282 TT |
11929 | 2018-02-26 Tom Tromey <[email protected]> |
11930 | ||
11931 | * stack.c (backtrace_command_1): Update. | |
11932 | * python/python-internal.h (gdbpy_apply_frame_filter): Change type | |
11933 | of "flags". | |
11934 | * python/py-framefilter.c (py_print_frame) | |
11935 | (gdbpy_apply_frame_filter): Change type of "flags". | |
11936 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type | |
11937 | of "flags". | |
11938 | (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals) | |
11939 | (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update. | |
11940 | * extension.h (enum frame_filter_flag): Rename from | |
11941 | frame_filter_flags. | |
11942 | (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE. | |
11943 | (apply_ext_lang_frame_filter): Change type of "flags". | |
11944 | * extension.c (apply_ext_lang_frame_filter): Change type of | |
11945 | "flags". | |
11946 | * extension-priv.h (struct extension_language_ops) | |
11947 | <apply_frame_filter>: Change type of "flags". | |
11948 | ||
6893c19a TT |
11949 | 2018-02-26 Tom Tromey <[email protected]> |
11950 | ||
11951 | PR python/16497: | |
11952 | * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix | |
11953 | off-by-one in py_end computation. | |
11954 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle | |
11955 | PRINT_MORE_FRAMES. | |
11956 | * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New | |
11957 | constant. | |
11958 | ||
2ddeaf8a TT |
11959 | 2018-02-26 Tom Tromey <[email protected]> |
11960 | ||
11961 | * dwarf2read.c (struct variant_field): New. | |
11962 | (struct nextfield) <variant>: New field. | |
11963 | (dwarf2_add_field): Handle DW_TAG_variant_part. | |
11964 | (dwarf2_attach_fields_to_type): Attach a discriminant_info to a | |
11965 | discriminated union. | |
11966 | (read_structure_type): Handle DW_TAG_variant_part. | |
11967 | (handle_struct_member_die): New function, extracted from | |
11968 | process_structure_scope. Handle DW_TAG_variant. | |
11969 | (process_structure_scope): Handle discriminated unions. Call | |
11970 | handle_struct_member_die. | |
11971 | ||
c9317f21 TT |
11972 | 2018-02-26 Tom Tromey <[email protected]> |
11973 | ||
11974 | * rust-lang.h (rust_last_path_segment): Declare. | |
11975 | * rust-lang.c (rust_last_path_segment): Now public. Change | |
11976 | contract. | |
11977 | (struct disr_info): Remove. | |
11978 | (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL) | |
11979 | (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged) | |
11980 | (rust_get_disr_info, rust_tuple_variant_type_p): Remove. | |
11981 | (rust_enum_p, rust_enum_variant): New function. | |
11982 | (rust_underscore_fields): Remove "offset" parameter. | |
11983 | (rust_print_enum): New function. | |
11984 | (rust_val_print) <TYPE_CODE_UNION>: Remove enum code. | |
11985 | <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate. | |
11986 | (rust_print_struct_def): Add "for_rust_enum" parameter. Handle | |
11987 | enums. | |
11988 | (rust_internal_print_type): New function, from rust_print_type. | |
11989 | Remove enum code. | |
11990 | (rust_print_type): Call rust_internal_print_type. | |
11991 | (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>: | |
11992 | Update enum handling. | |
11993 | * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field. | |
11994 | (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum) | |
11995 | (rust_union_quirks): New functions. | |
11996 | (process_full_comp_unit, process_full_type_unit): Call | |
11997 | rust_union_quirks. | |
11998 | (process_structure_scope): Update rust_unions if necessary. | |
11999 | ||
7c22600a TT |
12000 | 2018-02-26 Tom Tromey <[email protected]> |
12001 | ||
12002 | * value.h (value_union_variant): Declare. | |
12003 | * valops.c (value_union_variant): New function. | |
12004 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. | |
12005 | (struct discriminant_info): New. | |
12006 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New | |
12007 | enumerator. | |
12008 | (struct main_type) <flag_discriminated_union>: New field. | |
12009 | ||
15ce8941 TT |
12010 | 2018-02-26 Tom Tromey <[email protected]> |
12011 | ||
12012 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12013 | unittests/unpack-selftests.c. | |
12014 | * unittests/unpack-selftests.c: New file. | |
12015 | * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases. | |
12016 | ||
48fbe735 YQ |
12017 | 2018-02-26 Yao Qi <[email protected]> |
12018 | ||
12019 | * dwarf2read.c (struct partial_die_info) <read>: New method. | |
12020 | (read_partial_die): Remove the declaration. | |
12021 | (load_partial_dies): Update. | |
12022 | (partial_die_info::partial_die_info): | |
12023 | (read_partial_die): Change it to partial_die_info::read. | |
12024 | ||
52356b79 YQ |
12025 | 2018-02-26 Yao Qi <[email protected]> |
12026 | ||
12027 | * dwarf2read.c (struct partial_die_info) <fixup>: New method. | |
12028 | (fixup_partial_die): Remove declaration. | |
12029 | (scan_partial_symbols): Update. | |
12030 | (partial_die_parent_scope): Likewise. | |
12031 | (partial_die_full_name): Likewise. | |
12032 | (fixup_partial_die): Change it to partial_die_info::fixup. | |
12033 | ||
35cc7ed7 YQ |
12034 | 2018-02-26 Yao Qi <[email protected]> |
12035 | ||
12036 | * dwarf2read.c (read_partial_die): Update the declaration. | |
12037 | (load_partial_dies): Caller update. | |
12038 | (read_partial_die): Remove one argument abbrev_len. | |
12039 | ||
6f06d47b YQ |
12040 | 2018-02-26 Yao Qi <[email protected]> |
12041 | ||
12042 | * dwarf2read.c (struct partial_die_info): Add ctor, delete | |
12043 | assignment operator. | |
12044 | (load_partial_dies): Use ctor and copy ctor. | |
12045 | (read_partial_die): Update. | |
12046 | (dwarf2_cu::find_partial_die): Use ctor. | |
12047 | ||
d590ff25 YQ |
12048 | 2018-02-26 Yao Qi <[email protected]> |
12049 | ||
12050 | * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method. | |
12051 | (find_partial_die_in_comp_unit): Change it to | |
12052 | dwarf2_cu::find_partial_die. | |
12053 | (find_partial_die): Update. | |
12054 | ||
fd0a254f YQ |
12055 | 2018-02-26 Yao Qi <[email protected]> |
12056 | ||
12057 | * dwarf2read.c (read_partial_die): Remove the code checking abbrev | |
12058 | is NULL. | |
12059 | ||
cd9983dd YQ |
12060 | 2018-02-26 Yao Qi <[email protected]> |
12061 | ||
12062 | * dwarf2read.c (load_partial_dies): Move the location of XOBNEW. | |
12063 | ||
f46cd62a AH |
12064 | 2018-02-26 Alan Hayward <[email protected]> |
12065 | ||
12066 | * arch/amd64.h: Use common/tdesc.h. | |
12067 | * arch/i386.c: Likewise. | |
12068 | * arch/i386.h: Likewise. | |
12069 | * arch/tic6x.c: Likewise. | |
12070 | * arch/tdesc.h: Move file from here... | |
12071 | * common/tdesc.h: ...to here. | |
12072 | * features/aarch64-core.c: Regenerate. | |
12073 | * features/aarch64-fpu.c: Regenerate. | |
12074 | * features/i386/32bit-avx.c: Regenerate. | |
12075 | * features/i386/32bit-avx512.c: Regenerate. | |
12076 | * features/i386/32bit-core.c: Regenerate. | |
12077 | * features/i386/32bit-linux.c: Regenerate. | |
12078 | * features/i386/32bit-mpx.c: Regenerate. | |
12079 | * features/i386/32bit-pkeys.c: Regenerate. | |
12080 | * features/i386/32bit-sse.c: Regenerate. | |
12081 | * features/i386/64bit-avx.c: Regenerate. | |
12082 | * features/i386/64bit-avx512.c: Regenerate. | |
12083 | * features/i386/64bit-core.c: Regenerate. | |
12084 | * features/i386/64bit-linux.c: Regenerate. | |
12085 | * features/i386/64bit-mpx.c: Regenerate. | |
12086 | * features/i386/64bit-pkeys.c: Regenerate. | |
12087 | * features/i386/64bit-segments.c: Regenerate. | |
12088 | * features/i386/64bit-sse.c: Regenerate. | |
12089 | * features/i386/x32-core.c: Regenerate. | |
12090 | * features/tic6x-c6xp.c: Regenerate. | |
12091 | * features/tic6x-core.c: Regenerate. | |
12092 | * features/tic6x-gp.c: Regenerate. | |
12093 | * target-descriptions.c: Use common/tdesc.h. | |
12094 | * target-descriptions.h: Likewise. | |
12095 | ||
9b292f68 TT |
12096 | 2018-02-24 Tom Tromey <[email protected]> |
12097 | ||
12098 | * linux-thread-db.c (try_thread_db_load_from_pdir_1) | |
12099 | (try_thread_db_load_from_dir, thread_db_load_search): Use | |
12100 | std::string. | |
12101 | (info_auto_load_libthread_db_compare): Return bool. Change | |
12102 | argument types. | |
12103 | (info_auto_load_libthread_db): Use std::vector, std::string. | |
12104 | Remove cleanups. | |
12105 | ||
281d762b TT |
12106 | 2018-02-24 Tom Tromey <[email protected]> |
12107 | ||
12108 | * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a | |
12109 | std::string. | |
12110 | * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a | |
12111 | std::string*. | |
12112 | * gdbarch.c: Rebuild. | |
12113 | * gdbarch.h: Rebuild. | |
12114 | * breakpoint.c (check_fast_tracepoint_sals): Use std::string. | |
12115 | * arch-utils.h (default_fast_tracepoint_valid_at): Update. | |
12116 | * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a | |
12117 | std::string*. | |
12118 | ||
9d8780f0 SM |
12119 | 2018-02-23 Simon Marchi <[email protected]> |
12120 | ||
12121 | * gdbtypes.h (sect_offset): Change type to uint64_t. | |
12122 | (sect_offset_str): New function. | |
12123 | * dwarf2read.c (create_addrmap_from_aranges): Use | |
12124 | sect_offset_str. | |
12125 | (error_check_comp_unit_head): Likewise. | |
12126 | (create_debug_type_hash_table): Likewise. | |
12127 | (read_cutu_die_from_dwo): Likewise. | |
12128 | (init_cutu_and_read_dies): Likewise. | |
12129 | (init_cutu_and_read_dies_no_follow): Likewise. | |
12130 | (process_psymtab_comp_unit_reader): Likewise. | |
12131 | (partial_die_parent_scope): Likewise. | |
12132 | (peek_die_abbrev): Likewise. | |
12133 | (process_queue): Likewise. | |
12134 | (dwarf2_physname): Likewise. | |
12135 | (read_namespace_alias): Likewise. | |
12136 | (read_import_statement): Likewise. | |
12137 | (create_dwo_cu_reader): Likewise. | |
12138 | (create_cus_hash_table): Likewise. | |
12139 | (lookup_dwo_cutu): Likewise. | |
12140 | (inherit_abstract_dies): Likewise. | |
12141 | (read_func_scope): Likewise. | |
12142 | (read_call_site_scope): Likewise. | |
12143 | (dwarf2_add_member_fn): Likewise. | |
12144 | (read_common_block): Likewise. | |
12145 | (read_module_type): Likewise. | |
12146 | (read_typedef): Likewise. | |
12147 | (read_subrange_type): Likewise. | |
12148 | (load_partial_dies): Likewise. | |
12149 | (read_partial_die): Likewise. | |
12150 | (find_partial_die): Likewise. | |
12151 | (read_str_index): Likewise. | |
12152 | (dwarf2_string_attr): Likewise. | |
12153 | (build_error_marker_type): Likewise. | |
12154 | (lookup_die_type): Likewise. | |
12155 | (dump_die_shallow): Likewise. | |
12156 | (follow_die_ref): Likewise. | |
12157 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
12158 | (dwarf2_fetch_constant_bytes): Likewise. | |
12159 | (follow_die_sig): Likewise. | |
12160 | (get_signatured_type): Likewise. | |
12161 | (get_DW_AT_signature_type): Likewise. | |
12162 | (dwarf2_find_containing_comp_unit): Likewise. | |
12163 | (set_die_type): Likewise. | |
12164 | ||
8ec57239 JB |
12165 | 2018-02-21 John Baldwin <[email protected]> |
12166 | ||
12167 | * arch/aarch64.c: Include "common-defs.h". | |
12168 | * arch/amd64.c: Likewise. | |
12169 | * arch/i386.c: Likewise. | |
12170 | ||
3eac2b65 TT |
12171 | 2018-02-21 Tom Tromey <[email protected]> |
12172 | ||
12173 | * value.h: (extract_field_op): Update. | |
12174 | * eval.c (extract_field_op): Return a const char *. | |
12175 | * expression.h (parse_expression_for_completion): Update. | |
12176 | * completer.c (complete_expression): Update. | |
12177 | (add_struct_fields): Make fieldname const. | |
12178 | * parse.c (expout_completion_name): Now a unique_xmalloc_ptr. | |
12179 | (mark_completion_tag, parse_exp_in_context_1): Update. | |
12180 | (parse_expression_for_completion): Change "name" to | |
12181 | unique_xmalloc_ptr*. | |
12182 | ||
6ccb583f TT |
12183 | 2018-02-21 Tom Tromey <[email protected]> |
12184 | ||
12185 | * infcall.c (call_function_by_hand_dummy): Use std::vector. | |
12186 | ||
c113ed0c YQ |
12187 | 2018-02-21 Yao Qi <[email protected]> |
12188 | ||
12189 | * avr-tdep.c (avr_read_pc): Change parameter type to | |
12190 | readable_regcache. | |
12191 | * gdbarch.sh (read_pc): Likewise. | |
12192 | * gdbarch.c: Re-generated. | |
12193 | * gdbarch.h: Re-generated. | |
12194 | * hppa-tdep.c (hppa_read_pc): Change parameter type to | |
12195 | readable_regcache. | |
12196 | * ia64-tdep.c (ia64_read_pc): Likewise. | |
12197 | * mips-tdep.c (mips_read_pc): Likewise. | |
12198 | * spu-tdep.c (spu_read_pc): Likewise. | |
12199 | ||
4c74fe6b YQ |
12200 | 2018-02-21 Yao Qi <[email protected]> |
12201 | ||
12202 | * Makefile.in (COMMON_SFILES): Add regcache-dump.c | |
12203 | * regcache-dump.c: New file. | |
12204 | * regcache.c: Move register_dump to regcache-dump.c. | |
12205 | (maintenance_print_registers): Likewise. | |
12206 | (maintenance_print_raw_registers): Likewise. | |
12207 | (maintenance_print_cooked_registers): Likewise. | |
12208 | (maintenance_print_register_groups): Likewise. | |
12209 | (maintenance_print_remote_registers): Likewise. | |
12210 | (_initialize_regcache): Likewise. | |
12211 | * regcache.h (register_dump): Moved from regcache.c. | |
12212 | ||
796bb026 YQ |
12213 | 2018-02-21 Yao Qi <[email protected]> |
12214 | ||
12215 | * regcache.c (regcache::regcache): Update. | |
12216 | (regcache::invalidate): Move it to detached_regcache::invalidate. | |
12217 | (get_thread_arch_aspace_regcache): Update. | |
12218 | (regcache::raw_update): Update. | |
12219 | (regcache::cooked_read): Remove some code. | |
12220 | (regcache::cooked_read_value): Likewise. | |
12221 | (regcache::raw_write): Remove assert on m_readonly_p. | |
12222 | (regcache::raw_supply_integer): Move it to | |
12223 | detached_regcache::raw_supply_integer. | |
12224 | (regcache::raw_supply_zeroed): Likewise. | |
12225 | * regcache.h (detached_regcache) <raw_supply_integer>: New | |
12226 | declaration. | |
12227 | <raw_supply_zeroed, invalidate>: Likewise. | |
12228 | (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. | |
12229 | <invalidate>: Likewise. | |
12230 | <m_readonly_p>: Removed. | |
12231 | ||
215c69dc YQ |
12232 | 2018-02-21 Yao Qi <[email protected]> |
12233 | ||
12234 | * infcmd.c (get_return_value): Let stop_regs point to | |
12235 | get_current_regcache. | |
12236 | * regcache.c (regcache::regcache): Remove. | |
12237 | (register_dump_reg_buffer): New class. | |
12238 | (regcache_print): Adjust. | |
12239 | * regcache.h (regcache): Remove constructors. | |
12240 | ||
f3384e66 YQ |
12241 | 2018-02-21 Yao Qi <[email protected]> |
12242 | ||
12243 | * regcache.c (class register_dump): New class. | |
12244 | (register_dump_regcache, register_dump_none): New class. | |
12245 | (register_dump_remote, register_dump_groups): New class. | |
12246 | (regcache_print): Update. | |
12247 | * regcache.h (regcache_dump_what): Move it to regcache.c. | |
12248 | (regcache) <dump>: Remove. | |
12249 | ||
c8ec2f33 YQ |
12250 | 2018-02-21 Yao Qi <[email protected]> |
12251 | ||
12252 | * jit.c (struct jit_unwind_private) <regcache>: Change its type to | |
12253 | reg_buffer_rw *. | |
12254 | (jit_unwind_reg_set_impl): Call raw_supply. | |
12255 | (jit_frame_sniffer): Use reg_buffer_rw. | |
12256 | * record-full.c (record_full_core_regbuf): Change its type. | |
12257 | (record_full_core_open_1): Use reg_buffer_rw. | |
12258 | (record_full_close): Likewise. | |
12259 | (record_full_core_fetch_registers): Use regcache->raw_supply. | |
12260 | (record_full_core_store_registers): Likewise. | |
12261 | * regcache.c (regcache::get_register_status): Move it to | |
12262 | reg_buffer. | |
12263 | (regcache_raw_set_cached_value): Remove. | |
12264 | (regcache::raw_set_cached_value): Remove. | |
12265 | (regcache::raw_write): Call raw_supply. | |
12266 | (regcache::raw_supply): Move it to reg_buffer_rw. | |
12267 | * regcache.h (regcache_raw_set_cached_value): Remove. | |
12268 | (reg_buffer_rw): New class. | |
12269 | ||
daf6667d YQ |
12270 | 2018-02-21 Yao Qi <[email protected]> |
12271 | ||
12272 | * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use | |
12273 | readonly_detached_regcache. | |
12274 | (dummy_frame_prev_register): Use regcache->cooked_read. | |
12275 | * frame.c (frame_save_as_regcache): Change return type. | |
12276 | (frame_pop): Update. | |
12277 | * frame.h (frame_save_as_regcache): Update declaration. | |
12278 | * inferior.h (get_infcall_suspend_state_regcache): Update | |
12279 | declaration. | |
12280 | * infrun.c (infcall_suspend_state) <registers>: use | |
12281 | readonly_detached_regcache. | |
12282 | (save_infcall_suspend_state): Don't use regcache_dup. | |
12283 | (get_infcall_suspend_state_regcache): Change return type. | |
12284 | * linux-fork.c (struct fork_info) <savedregs>: Change to | |
12285 | readonly_detached_regcache. | |
12286 | <pc>: New field. | |
12287 | (fork_save_infrun_state): Don't use regcache_dup. | |
12288 | (info_checkpoints_command): Adjust. | |
12289 | * mi/mi-main.c (register_changed_p): Update declaration. | |
12290 | (mi_cmd_data_list_changed_registers): Use | |
12291 | readonly_detached_regcache. | |
12292 | (register_changed_p): Change parameter type to | |
12293 | readonly_detached_regcache. | |
12294 | * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use | |
12295 | readonly_detached_regcache. | |
12296 | (ppu2spu_sniffer): Construct a new readonly_detached_regcache. | |
12297 | * regcache.c (readonly_detached_regcache::readonly_detached_regcache): | |
12298 | New. | |
12299 | (regcache::save): Move it to reg_buffer. | |
12300 | (regcache::restore): Change parameter type. | |
12301 | (regcache_dup): Remove. | |
12302 | * regcache.h (reg_buffer) <save>: New method. | |
12303 | (readonly_detached_regcache): New class. | |
12304 | * spu-tdep.c (spu2ppu_cache) <regcache>: Use | |
12305 | readonly_detached_regcache. | |
12306 | (spu2ppu_sniffer): Construct a new readonly_detached_regcache. | |
12307 | ||
fc5b8736 YQ |
12308 | 2018-02-21 Yao Qi <[email protected]> |
12309 | ||
12310 | * frame.c (frame_save_as_regcache): Use regcache method save. | |
12311 | (frame_pop): Use regcache method restore. | |
12312 | * infrun.c (restore_infcall_suspend_state): Likewise. | |
12313 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
12314 | * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method | |
12315 | save. | |
12316 | * regcache.c (regcache_save): Remove. | |
12317 | (regcache::restore): More asserts. | |
12318 | (regcache_cpy): Remove. | |
12319 | * regcache.h (regcache_save): Remove the declaration. | |
12320 | (regcache::restore): Move from private to public. | |
12321 | Remove the friend declaration of regcache_cpy. | |
12322 | (regcache_cpy): Remove declaration. | |
12323 | ||
849d0ba8 YQ |
12324 | 2018-02-21 Yao Qi <[email protected]> |
12325 | ||
12326 | * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change | |
12327 | parameter type to 'readable_regcache *'. | |
12328 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
12329 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
12330 | (arm_pseudo_read): Likewise. | |
12331 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
12332 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
12333 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
12334 | * gdbarch.c: Re-generated. | |
12335 | * gdbarch.h: Re-generated. | |
12336 | * gdbarch.sh (pseudo_register_read): Change parameter type to | |
12337 | 'readable_regcache *'. | |
12338 | (pseudo_register_read_value): Likewise. | |
12339 | * h8300-tdep.c (pseudo_from_raw_register): Likewise. | |
12340 | (h8300_pseudo_register_read): Likewise. | |
12341 | * hppa-tdep.c (hppa_pseudo_register_read): Likewise. | |
12342 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
12343 | (i386_pseudo_register_read_into_value): Likewise. | |
12344 | (i386_pseudo_register_read_value): Likewise. | |
12345 | * i386-tdep.h (i386_pseudo_register_read_into_value): Update | |
12346 | declaration. | |
12347 | * ia64-tdep.c (ia64_pseudo_register_read): Likewise. | |
12348 | * m32c-tdep.c (m32c_raw_read): Likewise. | |
12349 | (m32c_read_flg): Likewise. | |
12350 | (m32c_banked_register): Likewise. | |
12351 | (m32c_banked_read): Likewise. | |
12352 | (m32c_sb_read): Likewise. | |
12353 | (m32c_part_read): Likewise. | |
12354 | (m32c_cat_read): Likewise. | |
12355 | (m32c_r3r2r1r0_read): Likewise. | |
12356 | (m32c_pseudo_register_read): Likewise. | |
12357 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
12358 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
12359 | (mep_pseudo_cr64_read): Likewise. | |
12360 | (mep_pseudo_register_read): Likewise. | |
12361 | * mips-tdep.c (mips_pseudo_register_read): Likewise. | |
12362 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
12363 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
12364 | * regcache.c (regcache::raw_read): Move it to readable_regcache. | |
12365 | (regcache::cooked_read): Likewise. | |
12366 | (regcache::cooked_read_value): Likewise. | |
12367 | (regcache_cooked_read_signed): | |
12368 | (regcache::cooked_read): Likewise. | |
12369 | * regcache.h (readable_regcache): New class. | |
12370 | (regcache): Inherit readable_regcache. Move some methods to | |
12371 | readable_regcache. | |
12372 | * rl78-tdep.c (rl78_pseudo_register_read): Change | |
12373 | parameter type to 'readable_regcache *'. | |
12374 | * rs6000-tdep.c (do_regcache_raw_read): Remove. | |
12375 | (e500_pseudo_register_read): Change parameter type to | |
12376 | 'readable_regcache *'. | |
12377 | (dfp_pseudo_register_read): Likewise. | |
12378 | (vsx_pseudo_register_read): Likewise. | |
12379 | (efpr_pseudo_register_read): Likewise. | |
12380 | * s390-tdep.c (s390_pseudo_register_read): Likewise. | |
12381 | * sh-tdep.c (sh_pseudo_register_read): Likewise. | |
12382 | * sh64-tdep.c (pseudo_register_read_portions): Likewise. | |
12383 | (sh64_pseudo_register_read): Likewise. | |
12384 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
12385 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
12386 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
12387 | (spu_pseudo_register_read): Likewise. | |
12388 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
12389 | (xtensa_pseudo_register_read): Likewise. | |
12390 | ||
31716595 YQ |
12391 | 2018-02-21 Yao Qi <[email protected]> |
12392 | ||
12393 | * regcache.c (regcache::regcache): Call reg_buffer ctor. | |
12394 | (regcache::arch): Move it to reg_buffer::arch. | |
12395 | (regcache::register_buffer): Likewise. | |
12396 | (regcache::assert_regnum): Likewise. | |
12397 | (regcache::num_raw_registers): Likewise. | |
12398 | * regcache.h (reg_buffer): New class. | |
12399 | (regcache): Inherit reg_buffer. | |
12400 | ||
7104e59b SM |
12401 | 2018-02-20 Simon Marchi <[email protected]> |
12402 | ||
12403 | * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, | |
12404 | gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. | |
12405 | ||
2d8adcbd MM |
12406 | 2018-02-20 Markus Metzger <[email protected]> |
12407 | ||
12408 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. | |
12409 | ||
b5884fa7 AH |
12410 | 2018-02-19 Alan Hayward <[email protected]> |
12411 | ||
12412 | * Makefile.in: (COMMON_SFILES): Add common/*.c files. | |
12413 | (SFILES): Remove common/*.c files. | |
12414 | (COMMON_OBS): Remove some *.o files built from common/*.c files. | |
12415 | * common/common.host: Add common reference. | |
12416 | * configure.ac: Likewise. | |
12417 | * configure: Regenerate. | |
12418 | ||
fd90ace4 YQ |
12419 | 2018-02-16 Yao Qi <[email protected]> |
12420 | ||
12421 | * block.c (block_namespace_info): Inherit allocate_on_obstack. | |
12422 | (block_initialize_namespace): Use new. | |
12423 | * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. | |
12424 | (dwarf2_free_objfile): Use delete. | |
12425 | * gdbtypes.c (type_pair): Inherit allocate_on_obstack. | |
12426 | (copy_type_recursive): Use new. | |
12427 | * gdb_obstack.h (allocate_on_obstack): New. | |
12428 | ||
85046ae2 YQ |
12429 | 2018-02-15 Yao Qi <[email protected]> |
12430 | ||
12431 | PR gdb/22849 | |
12432 | * inferior.c (exit_inferior_1): Reset inf->control. | |
12433 | ||
355c559b JB |
12434 | 2018-02-15 Joel Brobecker <[email protected]> |
12435 | ||
12436 | * ada-lang.c (ada_to_fixed_value_create): Delete advance | |
12437 | declaration. | |
12438 | ||
980548fd PA |
12439 | 2018-02-14 Pedro Alves <[email protected]> |
12440 | ||
12441 | * frame-unwind.c (frame_unwind_try_unwinder): Always call | |
12442 | frame_cleanup_after_sniffer on exception. | |
12443 | ||
692d6f97 TT |
12444 | 2018-02-14 Tom Tromey <[email protected]> |
12445 | ||
12446 | * solist.h (struct target_so_ops) <bfd_open>: Make pathname | |
12447 | const. | |
12448 | (solib_bfd_open): Make pathname const. | |
12449 | * solib.c (solib_bfd_open): Make pathname const. | |
12450 | * solib-spu.c (spu_bfd_fopen): Make name const. | |
12451 | (spu_bfd_open): Make pathname const. | |
12452 | * solib-darwin.c (darwin_bfd_open): Make pathname const. | |
12453 | * solib-aix.c (solib_aix_bfd_open): Make pathname const. | |
12454 | ||
e0cc99a6 TT |
12455 | 2018-02-14 Tom Tromey <[email protected]> |
12456 | ||
12457 | * symfile.c (symfile_bfd_open): Update. | |
12458 | * source.h (openp, source_full_path_of, find_and_open_source): | |
12459 | Change argument type to unique_xmalloc_ptr. | |
12460 | * source.c (openp): Take a unique_xmalloc_ptr. | |
12461 | (source_full_path_of, find_and_open_source): Likewise. | |
12462 | (open_source_file, symtab_to_fullname): Update. | |
12463 | * solist.h (struct target_so_ops) <find_and_open_solib>: Take a | |
12464 | unique_xmalloc_ptr. | |
12465 | * solib.c (solib_find_1): Use unique_xmalloc_ptr. | |
12466 | (exec_file_find): Update. | |
12467 | * psymtab.c (psymtab_to_fullname): Update. | |
12468 | * nto-tdep.h (nto_find_and_open_solib): Update. | |
12469 | * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a | |
12470 | unique_xmalloc_ptr. | |
12471 | * exec.c (exec_file_attach): Update. | |
12472 | * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. | |
12473 | * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. | |
12474 | ||
b46a8d7c TT |
12475 | 2018-02-14 Tom Tromey <[email protected]> |
12476 | ||
12477 | * solib.c: Include source.h. | |
12478 | * nto-tdep.c: Include source.h. | |
12479 | * mi/mi-cmd-env.c: Include source.h. | |
12480 | * infcmd.c: Include source.h. | |
12481 | * exec.c: Include source.h. | |
12482 | * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
12483 | (add_path, directory_switch, source_path, init_source_path): Move | |
12484 | declarations... | |
12485 | * source.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
12486 | (add_path, directory_switch, source_path, init_source_path): | |
12487 | ...here. | |
12488 | ||
797bc1cb TT |
12489 | 2018-02-14 Tom Tromey <[email protected]> |
12490 | ||
12491 | * solist.h (exec_file_find, solib_find): Return | |
12492 | unique_xmalloc_ptr. | |
12493 | (solib_bfd_fopen): Take a const char *. | |
12494 | * solib.c (solib_find_1): Return unique_xmalloc_ptr. | |
12495 | (exec_file_find, solib_find): Likewise. | |
12496 | (solib_bfd_fopen): Do not take ownership of "pathname". | |
12497 | (solib_bfd_open): Use unique_xmalloc_ptr. | |
12498 | * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. | |
12499 | * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. | |
12500 | * infrun.c (follow_exec): Use unique_xmalloc_ptr. | |
12501 | * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. | |
12502 | ||
f98b2e33 JB |
12503 | 2018-02-14 Joel Brobecker <[email protected]> |
12504 | ||
12505 | * ada-lang.c (name_match_type_from_name): Remove reference to | |
12506 | ada_name_for_lookup in function's documentation. | |
12507 | * ada-lang.h (ada_name_for_lookup): Delete declaration. | |
12508 | ||
24b9144d SM |
12509 | 2018-02-13 Simon Marchi <[email protected]> |
12510 | ||
12511 | * defs.h (enum openp_flags): New enum. | |
12512 | (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): | |
12513 | Move to enum openp_flags. | |
12514 | (openp_flags): New enum flags. | |
12515 | (openp): Change parameter type to openp_flags. | |
12516 | * source.c (openp): Change parameter type to openp_flags. | |
12517 | * cli/cli-cmds.c (find_and_open_script): Use openp_flags. | |
12518 | * dwarf2read.c (try_open_dwop_file): Use openp_flags. | |
12519 | ||
387cd15b SM |
12520 | 2018-02-13 Simon Marchi <[email protected]> |
12521 | ||
12522 | * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show | |
12523 | per-command. | |
12524 | ||
b303c6f6 AB |
12525 | 2018-02-12 Andrew Burgess <[email protected]> |
12526 | ||
12527 | * dwarf2read.c (dwarf2_release_queue): Delete function, move body | |
12528 | into... | |
12529 | (class dwarf2_queue_guard): ...the destructor of this new class. | |
12530 | (dw2_do_instantiate_symtab): Create instance of the new class | |
12531 | dwarf2_queue_guard, remove cleanup. | |
12532 | ||
9c3630e9 TT |
12533 | 2018-02-09 Tom Tromey <[email protected]> |
12534 | ||
12535 | * source.c (find_source_lines): Don't reference past the end of | |
12536 | the vector. | |
12537 | ||
c4e12631 MM |
12538 | 2018-02-09 Markus Metzger <[email protected]> |
12539 | ||
12540 | * remote.c (remote_btrace_maybe_reopen): Change error message. | |
12541 | * btrace.c (btrace_enable): Likewise. | |
12542 | (parse_xml_btrace): Likewise. | |
12543 | (parse_xml_btrace_conf): Likewise. | |
12544 | ||
88711fbf MM |
12545 | 2018-02-09 Markus Metzger <[email protected]> |
12546 | ||
12547 | * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. | |
12548 | (linux_enable_pt, linux_enable_bts): Call | |
12549 | diagnose_perf_event_open_fail. | |
12550 | ||
17ad2a4f MM |
12551 | 2018-02-09 Markus Metzger <[email protected]> |
12552 | ||
12553 | * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. | |
12554 | Remove parameter and change return type. Update callers. Move it. | |
12555 | (linux_enable_bts, linux_enable_pt): Improve error message. | |
12556 | (linux_enable_pt): Remove zero buffer size check. | |
12557 | (linux_enable_btrace): Improve error messages. Remove NULL return | |
12558 | check. | |
12559 | ||
de6242d3 MM |
12560 | 2018-02-09 Markus Metzger <[email protected]> |
12561 | ||
12562 | * btrace.c (btrace_enable): Remove target_supports_btrace call. | |
12563 | * nat/linux-btrace.c (perf_event_pt_event_type): Move. | |
12564 | (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) | |
12565 | (linux_supports_pt, linux_supports_btrace): Remove. | |
12566 | (linux_enable_bts): Call cpu_supports_bts. | |
12567 | * nat/linux-btrace.h (linux_supports_btrace): Remove. | |
12568 | * remote.c (remote_supports_btrace): Remove. | |
12569 | (init_remote_ops): Remove remote_supports_btrace. | |
12570 | * target-delegates.c: Regenerated. | |
12571 | * target.c (target_supports_btrace): Remove. | |
12572 | * target.h (target_ops) <to_supports_btrace>: Remove | |
12573 | (target_supports_btrace): Remove. | |
12574 | * x86-linux-nat.c (x86_linux_create_target): Remove | |
12575 | linux_supports_btrace. | |
12576 | ||
9ee23a85 MM |
12577 | 2018-02-09 Markus Metzger <[email protected]> |
12578 | ||
12579 | * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling | |
12580 | btrace failed. | |
12581 | * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling | |
12582 | exception and use message in own exception. | |
12583 | ||
5c3284c1 MM |
12584 | 2018-02-09 Markus Metzger <[email protected]> |
12585 | ||
12586 | * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. | |
12587 | (perf_event_pt_event_type): Use gdb_file_up. | |
12588 | (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, | |
12589 | scoped_fd, and scoped_mmap. | |
12590 | ||
84696f37 MM |
12591 | 2018-02-09 Markus Metzger <[email protected]> |
12592 | ||
12593 | * common/scoped_mmap.h: New. | |
12594 | * unittests/scoped_mmap-selftest.c: New. | |
12595 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12596 | unittests/scoped_mmap-selftest.c. | |
12597 | ||
ea4a0888 MM |
12598 | 2018-02-09 Markus Metzger <[email protected]> |
12599 | ||
12600 | * common/scoped_fd.h: New. | |
12601 | * unittests/scoped_fd-selftest.c: New. | |
12602 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12603 | unittests/scoped_fd-selftest.c. | |
12604 | ||
869e8290 TT |
12605 | 2018-02-09 Tom Tromey <[email protected]> |
12606 | ||
12607 | * auto-load.c (auto_load_section_scripts): Use | |
12608 | gdb::unique_xmalloc_ptr. | |
12609 | ||
a37a2ae7 TT |
12610 | 2018-02-09 Tom Tromey <[email protected]> |
12611 | ||
12612 | * auto-load.c (execute_script_contents): Use std::string. | |
12613 | ||
4e725347 JB |
12614 | 2018-02-09 Joel Brobecker <[email protected]> |
12615 | ||
12616 | * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new | |
12617 | Python function, rather than a new command. | |
12618 | ||
9a897d43 TT |
12619 | 2018-02-08 Tom Tromey <[email protected]> |
12620 | ||
12621 | * solib.c (solib_find_1): Use std::string. | |
12622 | (solib_bfd_fopen): Use unique_xmalloc_ptr. | |
12623 | ||
58ef3771 TT |
12624 | 2018-02-08 Tom Tromey <[email protected]> |
12625 | ||
12626 | * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. | |
12627 | ||
a9abc434 TT |
12628 | 2018-02-08 Tom Tromey <[email protected]> |
12629 | ||
12630 | * source.c (find_source_lines): Use gdb::def_vector. | |
12631 | ||
84f27c6f TT |
12632 | 2018-02-08 Tom Tromey <[email protected]> |
12633 | ||
12634 | * macrocmd.c (struct temporary_macro_definition): New. | |
12635 | (macro_define_command): Use temporary_macro_definition. Remove | |
12636 | cleanups. | |
12637 | (free_macro_definition_ptr): Remove. | |
12638 | ||
0354904b TT |
12639 | 2018-02-08 Tom Tromey <[email protected]> |
12640 | ||
12641 | * macroexp.c (maybe_expand): Use std::string. | |
12642 | ||
1739cf24 TT |
12643 | 2018-02-08 Tom Tromey <[email protected]> |
12644 | ||
12645 | * macroexp.c (struct macro_buffer): Add initializers for some | |
12646 | members. | |
12647 | (init_buffer, init_shared_buffer, free_buffer) | |
12648 | (free_buffer_return_text): Remove. | |
12649 | (macro_buffer): New constructors. | |
12650 | (~macro_buffer): New destructor. | |
12651 | (macro_buffer::set_shared): New method. | |
12652 | (macro_buffer::resize_buffer, macro_buffer::appendc) | |
12653 | (macro_buffer::appendmem): Now methods, not free functions. | |
12654 | (set_token, append_tokens_without_splicing, stringify) | |
12655 | (macro_stringify): Update. | |
12656 | (gather_arguments): Change return type. Remove argc_p argument, | |
12657 | add args_ptr argument. Use std::vector. | |
12658 | (substitute_args): Remove argc argument. Accept std::vector. | |
12659 | (expand): Update. Use std::vector. | |
12660 | (scan, macro_expand, macro_expand_next): Update. | |
12661 | ||
f6c2623e TT |
12662 | 2018-02-08 Tom Tromey <[email protected]> |
12663 | ||
12664 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
12665 | Use unique_xmalloc_ptr. | |
12666 | * macroscope.h: (sal_macro_scope, user_macro_scope) | |
12667 | (default_macro_scope): Return unique_xmalloc_ptr. | |
12668 | * macroscope.c (sal_macro_scope, user_macro_scope) | |
12669 | (default_macro_scope): Return unique_xmalloc_ptr. | |
12670 | * macroexp.h (macro_expand, macro_expand_once): Return | |
12671 | unique_xmalloc_ptr. | |
12672 | * macroexp.c (macro_expand, macro_expand_once): Return | |
12673 | unique_xmalloc_ptr. | |
12674 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
12675 | (info_macro_command, info_macros_command): Use | |
12676 | unique_xmalloc_ptr. | |
12677 | * compile/compile-c-support.c (write_macro_definitions): Use | |
12678 | unique_xmalloc_ptr. | |
12679 | * c-exp.y (c_parse): Use unique_xmalloc_ptr. | |
12680 | ||
c2e0e465 SM |
12681 | 2018-02-07 Simon Marchi <[email protected]> |
12682 | ||
12683 | * value.c (value_static_field): Assign field type instead of | |
12684 | containing type when returning an optimized out value. | |
12685 | ||
3f8c94b4 YQ |
12686 | 2018-02-06 Yao Qi <[email protected]> |
12687 | ||
12688 | * ft32-tdep.c (ft32_read_pc): Remove. | |
12689 | (ft32_write_pc): Remove. | |
12690 | (ft32_gdbarch_init): Update. | |
12691 | * m32r-tdep.c (m32r_read_pc): Remove. | |
12692 | (m32r_gdbarch_init): Update. | |
12693 | * mep-tdep.c (mep_read_pc): Remove. | |
12694 | (mep_gdbarch_init): Update. | |
12695 | * microblaze-tdep.c (microblaze_write_pc): Remove. | |
12696 | (microblaze_gdbarch_init): Update. | |
12697 | * mn10300-tdep.c (mn10300_read_pc): Remove. | |
12698 | (mn10300_write_pc): Remove. | |
12699 | (mn10300_gdbarch_init): Update. | |
12700 | * moxie-tdep.c (moxie_read_pc): Remove. | |
12701 | (moxie_write_pc): Remove. | |
12702 | (moxie_gdbarch_init): Update. | |
12703 | ||
bca65a23 YQ |
12704 | 2018-02-06 Yao Qi <[email protected]> |
12705 | ||
12706 | * expprint.c (print_subexp_standard): Handle | |
12707 | OP_F77_UNDETERMINED_ARGLIST. | |
12708 | (dump_subexp_body_standard): Likewise. | |
12709 | ||
583e3f90 | 12710 | 2018-02-05 Alan Hayward <[email protected]> |
b8df6ca7 | 12711 | |
583e3f90 YQ |
12712 | * target-descriptions.c (tdesc_element_visitor) Add empty |
12713 | implementations. | |
b8df6ca7 AH |
12714 | (tdesc_type): Move make_gdb_type from here. |
12715 | (tdesc_type_builtin): Likewise. | |
12716 | (tdesc_type_vector): Likewise. | |
12717 | (tdesc_type_with_fields): Move make_gdb_type_ functions from here. | |
12718 | (make_gdb_type_struct): Move from tdesc_type_with_fields. | |
12719 | (make_gdb_type_union): Likewise. | |
12720 | (make_gdb_type_flags): Likewise. | |
12721 | (make_gdb_type_enum): Likewise. | |
12722 | (make_gdb_type): New function. | |
12723 | (tdesc_register_type): Use static make_gdb_type. | |
12724 | ||
e813d34a RK |
12725 | 2018-02-05 Ruslan Kabatsayev <[email protected]> |
12726 | ||
12727 | * infcmd.c (default_print_one_register_info): Align natural-format | |
12728 | column values consistently one under another. | |
12729 | (pad_to_column): New function. | |
12730 | ||
0eb876f5 JB |
12731 | 2018-02-05 Joel Brobecker <[email protected]> |
12732 | ||
12733 | * dwarf2read.c (dwarf2_physname): Move commment. | |
12734 | ||
0625771b LS |
12735 | 2018-02-01 Leszek Swirski <[email protected]> |
12736 | ||
12737 | * varobj.c (varobj_formatted_print_options): Allow recursive | |
12738 | pretty printing if pretty printing is enabled. | |
12739 | ||
59498c30 LS |
12740 | 2018-02-01 Leszek Swirski <[email protected]> |
12741 | ||
12742 | * c-exp.y (lex_one_token, classify_name, yylex): Don't classify | |
12743 | names after a structop as a filename. | |
12744 | ||
2d9e6acb YQ |
12745 | 2018-02-01 Yao Qi <[email protected]> |
12746 | ||
12747 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. | |
12748 | (arm_record_coproc_data_proc): Likewise. | |
12749 | ||
df95a9cf YQ |
12750 | 2018-02-01 Yao Qi <[email protected]> |
12751 | ||
12752 | * arm-tdep.c (arm_record_extension_space): Change ret to signed. | |
12753 | ||
07e5f5cf NP |
12754 | 2018-01-31 Nikola Prica <[email protected]> |
12755 | ||
12756 | * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and | |
12757 | assign shifted lr_reg to fdata->lr_register when lr_reg is set. | |
12758 | ||
3045b475 PA |
12759 | 2018-01-31 Pedro Alves <[email protected]> |
12760 | ||
12761 | * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. | |
12762 | * inflow.c (child_terminal_save_inferior): Wrap reference to | |
12763 | tcgetpgrp in HAVE_TERMIOS_H. | |
12764 | (child_interrupt, child_pass_ctrlc): Wrap references to signal in | |
12765 | _WIN32. | |
12766 | * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and | |
12767 | always iterate over all inferiors. | |
12768 | (gdbsim_cntrl_c): Adjust. | |
12769 | * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. | |
12770 | ||
929b5ad4 JB |
12771 | 2018-01-31 Joel Brobecker <[email protected]> |
12772 | ||
12773 | * gdbtypes.c (lookup_array_range_type): Make sure the array's | |
12774 | index type is objfile-owned if the element type is as well. | |
12775 | ||
29236ca2 JB |
12776 | 2018-01-31 Joel Brobecker <[email protected]> |
12777 | ||
12778 | GDB 8.1 released. | |
12779 | ||
c81e8879 PR |
12780 | 2018-01-30 Philipp Rudo <[email protected]> |
12781 | ||
12782 | * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and | |
12783 | "features/s390x-linux64.c". | |
12784 | (_initialize_s390_linux_tdep): Remove initialization of tdescs | |
12785 | s390_linux32 and s390x_linux64. | |
12786 | (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set | |
12787 | default tdesc. | |
12788 | * s390-tdep.c: Include "features/s390-linux32.c" and | |
12789 | "features/s390x-linux64.c". | |
12790 | (s390_tdesc_valid): Add check for tdesc_has_registers. | |
12791 | (s390_gdbarch_init): Make sure there is always a valid tdesc. | |
12792 | (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and | |
12793 | tdesc_s390x_linux64. | |
12794 | * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and | |
12795 | tdesc_s390x_linux64 to... | |
12796 | * s390-tdep.h: ...here. | |
12797 | ||
e671cd59 PA |
12798 | 2018-01-30 Pedro Alves <[email protected]> |
12799 | ||
12800 | PR gdb/13211 | |
12801 | * config.in, configure: Regenerate. | |
12802 | * configure.ac: Check for getpgid. | |
12803 | * go32-nat.c (go32_pass_ctrlc): New. | |
12804 | (go32_target): Install it. | |
12805 | * inf-child.c (inf_child_target): Install | |
12806 | child_terminal_save_inferior, child_pass_ctrlc and | |
12807 | child_interrupt. | |
12808 | * inf-ptrace.c (inf_ptrace_interrupt): Delete. | |
12809 | (inf_ptrace_target): No longer install it. | |
12810 | * infcmd.c (interrupt_target_1): Adjust. | |
12811 | * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) | |
12812 | (child_interrupt): Declare. | |
12813 | (inferior::terminal_state): New. | |
12814 | * inflow.c (struct terminal_info): Update comments. | |
12815 | (inferior_process_group): Delete. | |
12816 | (terminal_is_ours): Delete. | |
12817 | (gdb_tty_state): New. | |
12818 | (child_terminal_init): Adjust. | |
12819 | (is_gdb_terminal, sharing_input_terminal_1) | |
12820 | (sharing_input_terminal): New functions. | |
12821 | (child_terminal_inferior): Adjust. Use sharing_input_terminal. | |
12822 | Set the process's actual process group in the foreground if | |
12823 | possible. Handle is_ours_for_output/is_ours distinction. Don't | |
12824 | mark terminal as the inferior's if not sharing GDB's terminal. | |
12825 | Don't check attach_flag. | |
12826 | (child_terminal_ours_for_output, child_terminal_ours): Adjust to | |
12827 | pass down a target_terminal_state. | |
12828 | (child_terminal_save_inferior): New, factored out from ... | |
12829 | (child_terminal_ours_1): ... this. Handle | |
12830 | target_terminal_state::is_ours_for_output. | |
12831 | (child_interrupt, child_pass_ctrlc): New. | |
12832 | (inflow_inferior_exit): Clear the inferior's terminal_state. | |
12833 | (copy_terminal_info): Copy the inferior's terminal state. | |
12834 | (_initialize_inflow): Remove reference to terminal_is_ours. | |
12835 | * inflow.h (inferior_process_group): Delete. | |
12836 | * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. | |
12837 | * procfs.c (procfs_target): Don't install procfs_interrupt. | |
12838 | (procfs_interrupt): Delete. | |
12839 | * remote.c (remote_serial_quit_handler): Adjust. | |
12840 | (remote_interrupt): Remove ptid parameter. Adjust. | |
12841 | * target-delegates.c: Regenerate. | |
12842 | * target.c: Include "terminal.h". | |
12843 | (target_terminal::terminal_state): Rename to ... | |
12844 | (target_terminal::m_terminal_state): ... this. | |
12845 | (target_terminal::init): Adjust. | |
12846 | (target_terminal::inferior): Adjust to per-inferior | |
12847 | terminal_state. | |
12848 | (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. | |
12849 | (target_terminal::ours, target_terminal::ours_for_output): Use | |
12850 | target_terminal_is_ours_kind. | |
12851 | (target_interrupt): Remove ptid parameter. Adjust. | |
12852 | (default_target_pass_ctrlc): Adjust. | |
12853 | * target.h (target_ops::to_terminal_save_inferior): New field. | |
12854 | (target_ops::to_interrupt): Remove ptid_t parameter. | |
12855 | (target_interrupt): Remove ptid_t parameter. Update comment. | |
12856 | (target_pass_ctrlc): Update comment. | |
12857 | * target/target.h (target_terminal_state): New scoped enum, | |
12858 | factored out of ... | |
12859 | (target_terminal::terminal_state): ... here. | |
12860 | (target_terminal::inferior): Update comments. | |
12861 | (target_terminal::restore_inferior): New. | |
12862 | (target_terminal::is_inferior, target_terminal::is_ours) | |
12863 | (target_terminal::is_ours_for_output): Adjust. | |
12864 | (target_terminal::scoped_restore_terminal_state): Adjust to | |
12865 | rename, and call restore_inferior() instead of inferior(). | |
12866 | (target_terminal::scoped_restore_terminal_state::m_state): Change | |
12867 | type. | |
12868 | (target_terminal::terminal_state): Rename to ... | |
12869 | (target_terminal::m_terminal_state): ... this and change type. | |
12870 | ||
9c3a5d93 PA |
12871 | 2018-01-30 Pedro Alves <[email protected]> |
12872 | ||
12873 | * linux-nat.c (wait_for_signal): New function. | |
12874 | (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend | |
12875 | directly. | |
12876 | (async_terminal_is_ours) | |
12877 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. | |
12878 | (linux_nat_add_target): Don't override | |
12879 | to_terminal_inferior/to_terminal_ours. | |
12880 | ||
69ab5edb SDJ |
12881 | 2018-01-29 Sergio Durigan Junior <[email protected]> |
12882 | ||
12883 | * remote.c (remote_follow_fork): Don't call "detach_inferior". | |
12884 | ||
fc8e7e75 SM |
12885 | 2018-01-28 Simon Marchi <[email protected]> |
12886 | ||
12887 | * dwarf2read.c (free_dwo_files): Add forward-declaration. | |
12888 | (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from | |
12889 | dwarf2_per_objfile_free here. | |
12890 | (dwarf2_per_objfile_free): Remove. | |
12891 | (_initialize_dwarf2_read): Don't register | |
12892 | dwarf2_per_objfile_free as a registry cleanup. | |
12893 | ||
b2a426e2 EZ |
12894 | 2018-01-27 Eli Zaretskii <[email protected]> |
12895 | ||
12896 | Avoid compilation errors in MinGW native builds | |
12897 | ||
12898 | The error is triggered by including python-internal.h, and the | |
12899 | error message is: | |
12900 | ||
12901 | In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, | |
12902 | from build-gnulib/import/math.h:27, | |
12903 | from d:/usr/Python26/include/pyport.h:235, | |
12904 | from d:/usr/Python26/include/Python.h:58, | |
12905 | from python/python-internal.h:94, | |
12906 | from python/py-arch.c:24: | |
12907 | d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared | |
12908 | using ::hypot; | |
12909 | ^~~~~ | |
12910 | ||
12911 | This happens because Python headers define 'hypot' to expand t | |
12912 | '_hypot' in the Windows builds. | |
12913 | * python/python-internal.h (_hypot) [__MINGW32__]: Define back to | |
12914 | 'hypoth'. This avoids a compilation error. | |
12915 | ||
0bdd8eac AH |
12916 | 2018-01-26 Alan Hayward <[email protected]> |
12917 | ||
12918 | * MAINTAINERS (Write After Approval): Fix ordering. | |
12919 | ||
56ae9dc3 AH |
12920 | 2018-01-26 Alan Hayward <[email protected]> |
12921 | ||
12922 | * MAINTAINERS (Write After Approval): Add Alan Hayward. | |
12923 | ||
7433498b AM |
12924 | 2018-01-26 Alan Modra <[email protected]> |
12925 | ||
12926 | * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. | |
12927 | (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. | |
12928 | Remove nop. Make const. Comment. | |
12929 | (powerpc32_plt_stub_so_2): New. | |
12930 | (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. | |
12931 | Correct count. Update uses. | |
12932 | (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. | |
12933 | Move common code reading PLT entry word. Correct | |
12934 | powerpc32_plt_stub PLT address calculation. | |
12935 | * ppc64-tdep.c (ppc64_standard_linkage1): Make const. | |
12936 | (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. | |
12937 | (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. | |
12938 | (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. | |
12939 | (ppc64_standard_linkage8): Likewise. | |
12940 | * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. | |
12941 | Correct insns description. | |
12942 | * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. | |
12943 | ||
0f59d5fc PA |
12944 | 2018-01-24 Pedro Alves <[email protected]> |
12945 | ||
12946 | GCC PR libstdc++/83906 | |
12947 | * gdbtypes.c (operator==(const dynamic_prop &, | |
12948 | const dynamic_prop &)): New. | |
12949 | (operator==(const range_bounds &, const range_bounds &)): New. | |
12950 | (check_types_equal): Use them instead of memcmp. | |
12951 | * gdbtypes.h (operator==(const dynamic_prop &, | |
12952 | const dynamic_prop &)): Declare. | |
12953 | (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. | |
12954 | (operator==(const range_bounds &, const range_bounds &)): Declare. | |
12955 | (operator!=(const range_bounds &, const range_bounds &)): Declare. | |
12956 | ||
ef8914a4 PR |
12957 | 2018-01-23 Philipp Rudo <[email protected]> |
12958 | ||
12959 | * s390-linux-tdep.c (s390_record_address_mask) | |
12960 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
12961 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
12962 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
12963 | (s390_process_record): Move to s390-tdep.c. | |
12964 | (s390_linux_init_abi_any): Adjust. | |
12965 | * s390-tdep.c (s390_record_address_mask) | |
12966 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
12967 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
12968 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
12969 | (s390_process_record): Moved from s390-linux-tdep.c | |
12970 | (s390_gdbarch_init): Adjust. | |
12971 | ||
d6e58945 PR |
12972 | 2018-01-23 Philipp Rudo <[email protected]> |
12973 | ||
12974 | * s390-linux-nat.c (s390-tdep.h): New include. | |
12975 | * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. | |
12976 | (HFILES_NO_SRCDIR): Add s390-tdep.h. | |
12977 | (ALLDEPFILES): Add s390-tdep.c. | |
12978 | * configure.tgt (s390*-*-linux*): Add s390-tdep.o. | |
12979 | * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... | |
12980 | * s390-tdep.h: ...this. New file. | |
12981 | * s390-linux-tdep.c (s390-tdep.h): New include. | |
12982 | (_initialize_s390_tdep): Rename to... | |
12983 | (_initialize_s390_linux_tdep): ...this and adjust. | |
12984 | (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) | |
12985 | (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to | |
12986 | s390-tdep.h. | |
12987 | (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) | |
12988 | (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) | |
12989 | (s390_is_partial_instruction, s390_software_single_step) | |
12990 | (is_non_branch_ril, s390_displaced_step_copy_insn) | |
12991 | (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) | |
12992 | (s390_prologue_data, s390_addr, s390_store, s390_load) | |
12993 | (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) | |
12994 | (s390_register_call_saved, s390_guess_tracepoint_registers) | |
12995 | (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) | |
12996 | (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) | |
12997 | (s390_pseudo_register_name, s390_pseudo_register_type) | |
12998 | (s390_pseudo_register_read, s390_pseudo_register_write) | |
12999 | (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) | |
13000 | (s390_ax_pseudo_register_push_stack, s390_gen_return_address) | |
13001 | (s390_addr_bits_remove, s390_address_class_type_flags) | |
13002 | (s390_address_class_type_flags_to_name) | |
13003 | (s390_address_class_name_to_type_flags, s390_effective_inner_type) | |
13004 | (s390_function_arg_float, s390_function_arg_vector) | |
13005 | (is_power_of_two, s390_function_arg_integer, s390_arg_state) | |
13006 | (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) | |
13007 | (s390_frame_align, s390_register_return_value, s390_return_value) | |
13008 | (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) | |
13009 | (s390_unwind_pseudo_register, s390_adjust_frame_regnum) | |
13010 | (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) | |
13011 | (s390_trad_frame_prev_register, s390_unwind_cache) | |
13012 | (s390_prologue_frame_unwind_cache) | |
13013 | (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) | |
13014 | (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) | |
13015 | (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) | |
13016 | (s390_stub_frame_this_id, s390_stub_frame_prev_register) | |
13017 | (s390_stub_frame_sniffer, s390_stub_frame_unwind) | |
13018 | (s390_frame_base_address, s390_local_base_address) | |
13019 | (s390_frame_base, s390_gcc_target_options) | |
13020 | (s390_gnu_triplet_regexp, s390_stap_is_single_operand) | |
13021 | (s390_validate_reg_range, s390_tdesc_valid) | |
13022 | (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... | |
13023 | * s390-tdep.c: ...this. New file. | |
13024 | ||
9c0b896e PR |
13025 | 2018-01-23 Philipp Rudo <[email protected]> |
13026 | ||
13027 | * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. | |
13028 | (s390_process_record, s390_gdbarch_tdep_alloc) | |
13029 | (s390_linux_init_abi_any): Use/set new hook. | |
13030 | ||
7042632b PR |
13031 | 2018-01-23 Philipp Rudo <[email protected]> |
13032 | ||
13033 | * s390-linux-tdep.c (osabi.h): New include. | |
13034 | (s390_linux_init_abi_31, s390_linux_init_abi_64) | |
13035 | (s390_linux_init_abi_any): New functions. | |
13036 | (s390_gdbarch_init, _initialize_s390_tdep): Adjust. | |
13037 | ||
650f5e13 PR |
13038 | 2018-01-23 Philipp Rudo <[email protected]> |
13039 | ||
13040 | * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for | |
13041 | tdesc_has_registers check | |
13042 | ||
47c9317e PR |
13043 | 2018-01-23 Philipp Rudo <[email protected]> |
13044 | ||
13045 | * s390-linux-tdep.c (s390_tdesc_valid): New function. | |
13046 | (s390_validate_reg_range): New macro. | |
13047 | (s390_gdbarch_init): Adjust. | |
13048 | ||
095085d8 PR |
13049 | 2018-01-23 Philipp Rudo <[email protected]> |
13050 | ||
13051 | * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. | |
13052 | (s390_gdbarch_tdep_alloc): Adjust. | |
13053 | (s390_gdbarch_init): Adjust. | |
13054 | ||
ab9bcc67 PR |
13055 | 2018-01-23 Philipp Rudo <[email protected]> |
13056 | ||
13057 | * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> | |
13058 | <have_tdb>: Change type to bool. | |
13059 | (s390_gdbarch_tdep_alloc): Adjust. | |
13060 | (s390_gdbarch_init): Adjust. | |
13061 | ||
21f6f5ff PR |
13062 | 2018-01-23 Philipp Rudo <[email protected]> |
13063 | ||
13064 | * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. | |
13065 | (gdbarch_tdep) <have_upper, have_vx>: New fields. | |
13066 | (s390_gdbarch_tdep_alloc): New function. | |
13067 | (s390_gdbarch_init): Allocate tdep at start and use its fields | |
13068 | instead of separate variables. | |
13069 | ||
0eb97953 PR |
13070 | 2018-01-23 Philipp Rudo <[email protected]> |
13071 | ||
13072 | * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks | |
13073 | when looking for cached gdbarch and add comment for remaining. | |
13074 | ||
5c319bb2 PA |
13075 | 2018-01-22 Pedro Alves <[email protected]> |
13076 | Sergio Durigan Junior <[email protected]> | |
13077 | ||
13078 | * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" | |
13079 | case. | |
13080 | ||
d65ce302 MR |
13081 | 2018-01-22 Maciej W. Rozycki <[email protected]> |
13082 | ||
13083 | * MAINTAINERS: Update my company e-mail address. | |
13084 | ||
ec7a5fcb YQ |
13085 | 2018-01-22 Yao Qi <[email protected]> |
13086 | ||
13087 | * regcache.c (cooked_write_test): New function. | |
13088 | (_initialize_regcache): Register the test. | |
13089 | ||
11f57cb6 YQ |
13090 | 2018-01-22 Yao Qi <[email protected]> |
13091 | ||
13092 | * ia64-tdep.c (ia64_pseudo_register_read): Call | |
13093 | regcache->cooked_read instead of regcache_cooked_read_unsigned. | |
13094 | * m32c-tdep.c (m32c_cat_read): Likewise. | |
13095 | (m32c_r3r2r1r0_read): Likewise. | |
13096 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
13097 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
13098 | ||
03f50fc8 YQ |
13099 | 2018-01-22 Yao Qi <[email protected]> |
13100 | ||
13101 | * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache | |
13102 | method raw_read instead of regcache_raw_read. | |
13103 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
13104 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
13105 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
13106 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
13107 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
13108 | * h8300-tdep.c (h8300_pseudo_register_read): Likewise. | |
13109 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
13110 | (i386_pseudo_register_read_into_value): Likewise. | |
13111 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
13112 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
13113 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
13114 | * rl78-tdep.c (rl78_pseudo_register_read): Likewise. | |
13115 | * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. | |
13116 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
13117 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
13118 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
13119 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
13120 | ||
dc711524 YQ |
13121 | 2018-01-22 Yao Qi <[email protected]> |
13122 | ||
13123 | * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. | |
13124 | * configure.tgt: Remove target mt. | |
13125 | * mt-tdep.c: Remove. | |
13126 | * regcache.c (cooked_read_test): Remove the check for mt. | |
13127 | ||
3f5a868b YQ |
13128 | 2018-01-22 Yao Qi <[email protected]> |
13129 | ||
13130 | * jit.c (jit_frame_prev_register): Call regcache::cooked_read | |
13131 | instead of gdbarch_pseudo_register_read_value. | |
13132 | ||
de4cb04a JB |
13133 | 2018-01-22 Joel Brobecker <[email protected]> |
13134 | ||
13135 | * dwarf2read.c (need_gnat_info): Return nonzero if the cu's | |
13136 | language is Ada. | |
13137 | ||
a9e40818 JB |
13138 | 2018-01-22 Joel Brobecker <[email protected]> |
13139 | ||
13140 | * linespec.c (create_sals_line_offset): Remove code that preserved | |
13141 | the symtab_and_line's line number. | |
13142 | ||
e707fc44 AB |
13143 | 2018-01-21 Andrew Burgess <[email protected]> |
13144 | ||
13145 | * varobj.c (varobj_create): Don't set valid_block when creating a | |
13146 | floating varobj. | |
13147 | ||
03d0bf7b AB |
13148 | 2018-01-21 Andrew Burgess <[email protected]> |
13149 | ||
13150 | * varobj.c (varobj_create): Remove out of date comment. | |
13151 | ||
ae451627 AB |
13152 | 2018-01-21 Andrew Burgess <[email protected]> |
13153 | ||
13154 | PR mi/20395 | |
13155 | * ada-exp.y (write_var_from_sym): Pass extra parameter when | |
13156 | updating innermost block. | |
13157 | * parse.c (innermost_block_tracker::update): Take extra type | |
13158 | parameter, and check types match before updating innermost block. | |
13159 | (write_dollar_variable): Update innermost block for registers. | |
13160 | * parser-defs.h (enum innermost_block_tracker_type): New enum. | |
13161 | (innermost_block_tracker::innermost_block_tracker): Initialise | |
13162 | m_types member. | |
13163 | (innermost_block_tracker::reset): Take type parameter. | |
13164 | (innermost_block_tracker::update): Take type parameter, and pass | |
13165 | type through as needed. | |
13166 | (innermost_block_tracker::m_types): New member. | |
13167 | * varobj.c (varobj_create): Pass type when reseting innermost | |
13168 | block. | |
13169 | ||
aee1fcdf AB |
13170 | 2018-01-21 Andrew Burgess <[email protected]> |
13171 | ||
13172 | * ada-exp.y (write_var_from_sym): Switch to innermost_block API. | |
13173 | * ada-lang.c (resolve_subexp): Likewise. | |
13174 | * breakpoint.c (set_breakpoint_condition) Likewise. | |
13175 | (watch_command_1) Likewise. | |
13176 | * c-exp.y (variable): Likewise. | |
13177 | * d-exp.y (PrimaryExpression): Likewise. | |
13178 | * f-exp.y (variable): Likewise. | |
13179 | * go-exp.y (variable): Likewise. | |
13180 | * m2-exp.y (variable): Likewise. | |
13181 | * objfiles.c (objfile::~objfile): Likewise. | |
13182 | * p-exp.y (variable): Likewise. | |
13183 | * parse.c (innermost_block): Change type. | |
13184 | * parser-defs.h (class innermost_block_tracker): New. | |
13185 | (innermost_block): Change to innermost_block_tracker. | |
13186 | * printcmd.c (display_command): Switch to innermost_block API. | |
13187 | (do_one_display): Likewise. | |
13188 | * rust-exp.y (do_one_display): Likewise. | |
13189 | * symfile.c (clear_symtab_users): Likewise. | |
13190 | * varobj.c (varobj_create): Switch to innermost_block API, replace | |
13191 | use of innermost_block with block stored on varobj object. | |
13192 | ||
396af9a1 AB |
13193 | 2018-01-21 Andrew Burgess <[email protected]> |
13194 | ||
13195 | * expression.h (innermost_block): Remove declaration. | |
13196 | * varobj.c: Add 'parser-defs.h' include. | |
13197 | ||
fcfcc376 TT |
13198 | 2018-01-19 Tom Tromey <[email protected]> |
13199 | ||
13200 | * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified | |
13201 | symbols in the static and global blocks. | |
13202 | ||
5a6c3296 JC |
13203 | 2018-01-19 James Clarke <[email protected]> |
13204 | ||
13205 | * nat/linux-ptrace.c: Remove unnecessary reinclusion of | |
13206 | gdb_ptrace.h, and move including gdb_wait.h ... | |
13207 | * nat/linux-ptrace.h: ... to here. | |
13208 | ||
bc09b0c1 SM |
13209 | 2018-01-19 Simon Marchi <[email protected]> |
13210 | ||
13211 | * inf-ptrace.c (inf_ptrace_detach): Adjust call to | |
13212 | inf_ptrace_detach_success. | |
13213 | (inf_ptrace_detach_success): Add inferior parameter, use it | |
13214 | instead of inferior_ptid, pass it to detach_inferior. | |
13215 | * inf-ptrace.h (inf_ptrace_detach_success): Add inferior | |
13216 | parameter. | |
13217 | * inferior.c (detach_inferior): Add overload that takes an | |
13218 | inferior object. | |
13219 | * inferior.h (detach_inferior): Likewise. | |
13220 | * linux-nat.c (linux_nat_detach): Use the inf parameter, don't | |
13221 | use inferior_ptid, adjust call to inf_ptrace_detach_success. | |
13222 | * linux-thread-db.c (thread_db_detach): Use inf parameter. | |
13223 | ||
6e1e1966 SM |
13224 | 2018-01-19 Simon Marchi <[email protected]> |
13225 | ||
13226 | * target.h (struct target_ops) <to_detach>: Add inferior | |
13227 | parameter. | |
13228 | (target_detach): Likewise. | |
13229 | * target.c (dispose_inferior): Pass inferior down. | |
13230 | (target_detach): Pass inferior down. Assert that it is equal to | |
13231 | the current inferior. | |
13232 | * aix-thread.c (aix_thread_detach): Pass inferior down. | |
13233 | * corefile.c (core_file_command): Pass current_inferior() down. | |
13234 | * corelow.c (core_detach): Add inferior parameter. | |
13235 | * darwin-nat.c (darwin_detach): Likewise. | |
13236 | * gnu-nat.c (gnu_detach): Likewise. | |
13237 | * inf-ptrace.c (inf_ptrace_detach): Likewise. | |
13238 | * infcmd.c (detach_command): Pass current_inferior() down to | |
13239 | target_detach. | |
13240 | * infrun.c (follow_fork_inferior): Pass parent_inf to | |
13241 | target_detach. | |
13242 | (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to | |
13243 | target_detach. | |
13244 | * linux-nat.c (linux_nat_detach): Add inferior parameter. | |
13245 | * linux-thread-db.c (thread_db_detach): Likewise. | |
13246 | * nto-procfs.c (procfs_detach): Likewise. | |
13247 | * procfs.c (procfs_detach): Likewise. | |
13248 | * record.c (record_detach): Likewise. | |
13249 | * record.h (struct inferior): Forward-declare. | |
13250 | (record_detach): Add inferior parameter. | |
13251 | * remote-sim.c (gdbsim_detach): Likewise. | |
13252 | * remote.c (remote_detach_1): Likewise. | |
13253 | (remote_detach): Likewise. | |
13254 | (extended_remote_detach): Likewise. | |
13255 | * sol-thread.c (sol_thread_detach): Likewise. | |
13256 | * target-debug.h (target_debug_print_inferior_p): New macro. | |
13257 | * target-delegates.c: Re-generate. | |
13258 | * top.c (kill_or_detach): Pass inferior down to target_detach. | |
13259 | * windows-nat.c (windows_detach): Add inferior parameter. | |
13260 | ||
6bd6f3b6 SM |
13261 | 2018-01-19 Simon Marchi <[email protected]> |
13262 | ||
13263 | * target.h (struct target_ops) <to_detach>: Remove args | |
13264 | parameter. | |
13265 | (target_detach): Likewise. | |
13266 | * target.c (dispose_inferior): Adjust. | |
13267 | (target_detach): Remove args parameter, adjust. | |
13268 | * aix-thread.c (aix_thread_detach): Adjust. | |
13269 | * corefile.c (core_file_command): Adjust. | |
13270 | * corelow.c (core_detach): Adjust. | |
13271 | * darwin-nat.c (darwin_detach): Adjust. | |
13272 | * gnu-nat.c (gnu_detach): Adjust. | |
13273 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
13274 | * infcmd.c (detach_command): Adjust | |
13275 | * infrun.c (follow_fork_inferior): Adjust. | |
13276 | (handle_vfork_child_exec_or_exit): Adjust. | |
13277 | * linux-fork.c (linux_fork_detach): Remove args parameter. | |
13278 | * linux-fork.h (linux_fork_detach): Likewise. | |
13279 | * linux-nat.c (linux_nat_detach): Likewise, and adjust. | |
13280 | * linux-thread-db.c (thread_db_detach): Likewise. | |
13281 | * nto-procfs.c (procfs_detach): Likewise. | |
13282 | * procfs.c (procfs_detach): Likewise. | |
13283 | (do_detach): Remove signo parameter. | |
13284 | * record.c (record_detach): Remove args parameter. | |
13285 | * record.h (record_detach): Likewise. | |
13286 | * remote-sim.c (gdbsim_detach): Likewise. | |
13287 | * remote.c (remote_detach_1): Likewise. | |
13288 | (remote_detach): Likewise. | |
13289 | (extended_remote_detach): Likewise. | |
13290 | * sol-thread.c (sol_thread_detach): Likewise. | |
13291 | * target-delegates.c: Re-generate. | |
13292 | * top.c (struct qt_args) <args>: Remove field. | |
13293 | (kill_or_detach): Don't pass args. | |
13294 | (quit_force): Don't set args. | |
13295 | * windows-nat.c (windows_detach): Remove args parameter. | |
13296 | ||
88af8ea8 YQ |
13297 | 2018-01-19 Yao Qi <[email protected]> |
13298 | ||
13299 | * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. | |
13300 | (arm_linux_init_abi): Install it. | |
13301 | ||
dea445b9 YQ |
13302 | 2018-01-19 Yao Qi <[email protected]> |
13303 | ||
13304 | * osabi.c (gdb_osabi_names): Extend the regexp for | |
13305 | arm-linux-gnueabihf. | |
13306 | ||
4a17f768 YQ |
13307 | 2018-01-18 Yao Qi <[email protected]> |
13308 | ||
13309 | * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to | |
13310 | m_abbrevs. | |
13311 | (abbrev_table::add_abbrev): Update. | |
13312 | (abbrev_table::lookup_abbrev): Update. | |
13313 | ||
d679c21a YQ |
13314 | 2018-01-18 Yao Qi <[email protected]> |
13315 | ||
13316 | * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. | |
13317 | ||
7d937cad SDJ |
13318 | 2018-01-17 Sergio Durigan Junior <[email protected]> |
13319 | ||
13320 | * compile/compile.c (compile_to_object): Convert "triplet_rx" | |
13321 | to "std::string". | |
13322 | ||
9e14690d TT |
13323 | 2018-01-17 Tom Tromey <[email protected]> |
13324 | ||
13325 | * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. | |
13326 | ||
50a82047 TT |
13327 | 2018-01-17 Tom Tromey <[email protected]> |
13328 | ||
13329 | * gdbtypes.h (add_dyn_prop): Remove objfile parameter. | |
13330 | * gdbtypes.c (add_dyn_prop): Remove objfile parameter. | |
13331 | (create_array_type_with_stride): Update. | |
13332 | * dwarf2read.c (set_die_type): Update. | |
13333 | ||
c89b44cd TT |
13334 | 2018-01-17 Tom Tromey <[email protected]> |
13335 | ||
13336 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
13337 | (dwarf2_cu::method_info): Now a std::vector. | |
13338 | (add_to_method_list): Update. | |
13339 | (free_delayed_list): Remove. | |
13340 | (compute_delayed_physnames): Update. | |
13341 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
13342 | list. Remove cleanups. | |
13343 | (psymtab_include_file_name): Add name_holder parameter. Use | |
13344 | unique_xmalloc_ptr. | |
13345 | (dwarf_decode_lines): Update. | |
13346 | ||
fcd3b13d SM |
13347 | 2018-01-17 Tom Tromey <[email protected]> |
13348 | Simon Marchi <[email protected]> | |
13349 | ||
13350 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
13351 | (dwarf2_per_objfile::free_cached_comp_units) | |
13352 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
13353 | (init_cutu_and_read_dies_no_follow): Update. | |
13354 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
13355 | (dwarf2_cu::~dwarf2_cu): New. | |
13356 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
13357 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
13358 | ||
685af9cd TT |
13359 | 2018-01-17 Tom Tromey <[email protected]> |
13360 | Simon Marchi <[email protected]> | |
13361 | ||
13362 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
13363 | (struct die_reader_specs) <abbrev_table>: New member. | |
13364 | (struct abbrev_table): Add constructor. | |
13365 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
13366 | <abbrev_obstack>: Now an auto_obstack. | |
13367 | (abbrev_table_up): New typedef. | |
13368 | (init_cu_die_reader): Add abbrev_table parameter. | |
13369 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
13370 | Add result_dwo_abbrev_table. | |
13371 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
13372 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
13373 | Update. | |
13374 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
13375 | parameter. | |
13376 | (skip_children): Update. | |
13377 | (abbrev_table::alloc_abbrev): Rename from | |
13378 | abbrev_table_alloc_abbrev. | |
13379 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
13380 | (abbrev_table::lookup_abbrev): Rename from | |
13381 | abbrev_table_lookup_abbrev. | |
13382 | (abbrev_table_read_table): Return abbrev_table_up. | |
13383 | (abbrev_table_free, abbrev_table_free_cleanup) | |
13384 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
13385 | (load_partial_dies): Update. | |
13386 | ||
5e2db402 TT |
13387 | 2018-01-17 Tom Tromey <[email protected]> |
13388 | ||
13389 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
13390 | (read_func_scope, read_variable): Update. | |
13391 | (new_symbol): Remove. | |
13392 | (new_symbol_full): Rename to new_symbol. | |
13393 | ||
ee7f689e | 13394 | 2018-01-17 Mike Gulick <[email protected]> |
41667530 MG |
13395 | |
13396 | PR gdb/16577 | |
13397 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
13398 | a warning instead of throwing an error, set section size to 0 and return | |
13399 | NULL. | |
13400 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
13401 | ||
4d9b86e1 SM |
13402 | 2018-01-17 Simon Marchi <[email protected]> |
13403 | ||
13404 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
13405 | std::string. | |
13406 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
13407 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
13408 | Likewise. | |
13409 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
13410 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
13411 | ||
a7b2d0fb SM |
13412 | 2018-01-17 Simon Marchi <[email protected]> |
13413 | ||
13414 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
13415 | ||
f517c180 EA |
13416 | 2018-01-17 Eldar Abusalimov <[email protected]> |
13417 | ||
13418 | PR gdb/21559 | |
13419 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
13420 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
13421 | * configure: Regenerate. | |
13422 | ||
7045b1ca YQ |
13423 | 2018-01-17 Yao Qi <[email protected]> |
13424 | ||
13425 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
13426 | function. | |
13427 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
13428 | gcc_target_options. | |
13429 | ||
db422fb2 PA |
13430 | 2018-01-15 Pedro Alves <[email protected]> |
13431 | ||
13432 | * common/signals-state-save-restore.c | |
13433 | (save_original_signals_state): Fix typos. | |
13434 | ||
ba643918 SDJ |
13435 | 2017-01-12 Tom Tromey <[email protected]> |
13436 | Sergio Durigan Junior <[email protected]> | |
13437 | ||
13438 | * Makefile.in (install-only): Install gdb-add-index. | |
13439 | ||
906b4aac JB |
13440 | 2018-01-12 John Baldwin <[email protected]> |
13441 | ||
13442 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
13443 | ||
bdf2a94a AA |
13444 | 2018-01-12 Andreas Arnez <[email protected]> |
13445 | ||
13446 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
13447 | insert_breakpoints fails. | |
13448 | ||
71d378ae PA |
13449 | 2018-01-11 Pedro Alves <[email protected]> |
13450 | ||
13451 | PR gdb/22583 | |
13452 | * infrun.c (resume): Rename to ... | |
13453 | (resume_1): ... this. | |
13454 | (resume): Reimplement as wrapper around resume_1. | |
13455 | ||
3cada740 PA |
13456 | 2018-01-11 Pedro Alves <[email protected]> |
13457 | ||
13458 | PR remote/22597 | |
13459 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
13460 | general thread instead of to 'magic_null_ptid'. | |
13461 | ||
618daa93 PA |
13462 | 2018-01-10 Pedro Alves <[email protected]> |
13463 | ||
13464 | * language.h (language_get_symbol_name_matcher): Rename ... | |
13465 | (get_symbol_name_matcher): ... this. | |
13466 | * language.c (language_get_symbol_name_matcher): Ditto. | |
13467 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
13468 | callers adjusted. | |
13469 | ||
c63d3e8d PA |
13470 | 2018-01-10 Pedro Alves <[email protected]> |
13471 | ||
13472 | PR gdb/22670 | |
13473 | * dwarf2read.c | |
13474 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
13475 | Adjust to use language_get_symbol_name_matcher instead of | |
13476 | language_defn::la_get_symbol_name_matcher. | |
13477 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
13478 | and the lookup name is a verbatim match, return Ada's matcher. | |
13479 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
13480 | (ada_lookup_name_info::verbatim_p):: New method. | |
13481 | ||
d4c2a405 PA |
13482 | 2018-01-10 Pedro Alves <[email protected]> |
13483 | ||
13484 | PR gdb/22670 | |
13485 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
13486 | minsym's language is language_auto or language_cplus, pass down | |
13487 | language_ada instead. | |
13488 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
13489 | ||
8825213e PA |
13490 | 2018-01-10 Pedro Alves <[email protected]> |
13491 | ||
13492 | PR gdb/22670 | |
13493 | * minsyms.c (linkage_name_str): New function. | |
13494 | (iterate_over_minimal_symbols): Use it. | |
13495 | ||
2d97a5d9 JB |
13496 | 2018-01-09 John Baldwin <[email protected]> |
13497 | ||
13498 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
13499 | ||
92fce24d JB |
13500 | 2018-01-09 John Baldwin <[email protected]> |
13501 | ||
13502 | * configure.ac: Check for kinfo_getfile in libutil. | |
13503 | * configure: Regenerate. | |
13504 | * config.in: Regenerate. | |
13505 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
13506 | (fbsd_fetch_cmdline): New. | |
13507 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
13508 | rather than calling error. | |
13509 | (fbsd_info_proc): New. | |
13510 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
13511 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
13512 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
13513 | ||
262f62f5 JB |
13514 | 2018-01-09 John Baldwin <[email protected]> |
13515 | ||
13516 | * fbsd-nat.c (struct free_deleter): Remove. | |
13517 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
13518 | ||
b999e203 JB |
13519 | 2018-01-09 John Baldwin <[email protected]> |
13520 | ||
13521 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
13522 | NULL for an empty pathname. | |
13523 | ||
d2176225 JB |
13524 | 2018-01-09 John Baldwin <[email protected]> |
13525 | ||
13526 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
13527 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
13528 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
13529 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
13530 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
13531 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
13532 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
13533 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
13534 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
13535 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
13536 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
13537 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
13538 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
13539 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
13540 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
13541 | ||
9c4ac400 ST |
13542 | 2018-01-08 Samuel Thibault <[email protected]> |
13543 | ||
13544 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
13545 | (gnu_xfer_auxv): New function. | |
13546 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
13547 | TARGET_OBJECT_AUXV. | |
13548 | ||
1e5ded6c YQ |
13549 | 2018-01-08 Yao Qi <[email protected]> |
13550 | Simon Marchi <[email protected]> | |
13551 | ||
13552 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
13553 | common/selftest.c. | |
13554 | (COMMON_OBS): Remove selftest.o. | |
13555 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
13556 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
13557 | * configure: Re-generated. | |
13558 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
13559 | GDB_SELF_TEST. | |
13560 | (maintenance_info_selftests): Likewise. | |
13561 | ||
04bafb1e XR |
13562 | 2018-01-08 Xavier Roirand <[email protected]> |
13563 | ||
13564 | * ada-valprint.c (val_print_packed_array_elements): Use | |
13565 | proper number of elements when printing an array indexed | |
13566 | by an enumeration type. | |
13567 | ||
518817b3 SM |
13568 | 2018-01-07 Simon Marchi <[email protected]> |
13569 | ||
13570 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
13571 | (dw2_get_file_names_reader): Adjust. | |
13572 | (lookup_dwo_signatured_type): Adjust. | |
13573 | (lookup_dwp_signatured_type): Adjust. | |
13574 | (lookup_signatured_type): Adjust. | |
13575 | (create_type_unit_group): Adjust. | |
13576 | (get_type_unit_group): Adjust. | |
13577 | (process_psymtab_comp_unit_reader): Adjust. | |
13578 | (build_type_psymtabs_reader): Adjust. | |
13579 | (scan_partial_symbols): Adjust. | |
13580 | (add_partial_symbol): Adjust. | |
13581 | (add_partial_subprogram): Adjust. | |
13582 | (peek_die_abbrev): Adjust. | |
13583 | (fixup_go_packaging): Adjust. | |
13584 | (process_imported_unit_die): Adjust. | |
13585 | (dwarf2_compute_name): Adjust. | |
13586 | (dwarf2_physname): Adjust. | |
13587 | (read_import_statement): Adjust. | |
13588 | (handle_DW_AT_stmt_list): Adjust. | |
13589 | (read_file_scope): Adjust. | |
13590 | (read_func_scope): Adjust. | |
13591 | (read_lexical_block_scope): Adjust. | |
13592 | (read_call_site_scope): Adjust. | |
13593 | (read_variable): Adjust. | |
13594 | (dwarf2_rnglists_process): Adjust. | |
13595 | (dwarf2_ranges_process): Adjust. | |
13596 | (dwarf2_ranges_read): Adjust. | |
13597 | (dwarf2_get_pc_bounds): Adjust. | |
13598 | (dwarf2_record_block_ranges): Adjust. | |
13599 | (dwarf2_add_field): Adjust. | |
13600 | (dwarf2_add_member_fn): Adjust. | |
13601 | (read_structure_type): Adjust. | |
13602 | (process_structure_scope): Adjust. | |
13603 | (read_enumeration_type): Adjust. | |
13604 | (read_array_type): Adjust. | |
13605 | (mark_common_block_symbol_computed): Adjust. | |
13606 | (read_common_block): Adjust. | |
13607 | (read_namespace_type): Adjust. | |
13608 | (read_namespace): Adjust. | |
13609 | (read_module_type): Adjust. | |
13610 | (read_tag_pointer_type): Adjust. | |
13611 | (read_tag_ptr_to_member_type): Adjust. | |
13612 | (read_tag_string_type): Adjust. | |
13613 | (read_subroutine_type): Adjust. | |
13614 | (read_typedef): Adjust. | |
13615 | (read_base_type): Adjust. | |
13616 | (attr_to_dynamic_prop): Adjust. | |
13617 | (read_subrange_type): Adjust. | |
13618 | (read_unspecified_type): Adjust. | |
13619 | (dwarf2_read_abbrevs): Adjust. | |
13620 | (load_partial_dies): Adjust. | |
13621 | (read_partial_die): Adjust. | |
13622 | (find_partial_die): Adjust. | |
13623 | (guess_partial_die_structure_name): Adjust. | |
13624 | (fixup_partial_die): Adjust. | |
13625 | (read_attribute_value): Adjust. | |
13626 | (read_addr_index): Adjust. | |
13627 | (read_addr_index_from_leb128): Adjust. | |
13628 | (read_str_index): Adjust. | |
13629 | (dwarf2_string_attr): Adjust. | |
13630 | (get_debug_line_section): Adjust. | |
13631 | (dwarf_decode_line_header): Adjust. | |
13632 | (lnp_state_machine::check_line_address): Adjust. | |
13633 | (dwarf_decode_lines_1): Adjust. | |
13634 | (dwarf_decode_lines): Adjust. | |
13635 | (dwarf2_start_symtab): Adjust. | |
13636 | (var_decode_location): Adjust. | |
13637 | (new_symbol_full): Adjust. | |
13638 | (dwarf2_const_value_data): Adjust. | |
13639 | (dwarf2_const_value_attr): Adjust. | |
13640 | (dwarf2_const_value): Adjust. | |
13641 | (die_type): Adjust. | |
13642 | (die_containing_type): Adjust. | |
13643 | (build_error_marker_type): Adjust. | |
13644 | (lookup_die_type): Adjust. | |
13645 | (guess_full_die_structure_name): Adjust. | |
13646 | (anonymous_struct_prefix): Adjust. | |
13647 | (determine_prefix): Adjust. | |
13648 | (dwarf2_name): Adjust. | |
13649 | (follow_die_ref_or_sig): Adjust. | |
13650 | (follow_die_offset): Adjust. | |
13651 | (follow_die_ref): Adjust. | |
13652 | (follow_die_sig_1): Adjust. | |
13653 | (follow_die_sig): Adjust. | |
13654 | (get_signatured_type): Adjust. | |
13655 | (get_DW_AT_signature_type): Adjust. | |
13656 | (decode_locdesc): Adjust. | |
13657 | (dwarf_decode_macros): Adjust. | |
13658 | (cu_debug_loc_section): Adjust. | |
13659 | (fill_in_loclist_baton): Adjust. | |
13660 | (dwarf2_symbol_mark_computed): Adjust. | |
13661 | (init_one_comp_unit): Don't assign | |
13662 | dwarf2_cu::dwarf2_per_objfile. | |
13663 | (set_die_type): Adjust. | |
13664 | ||
ed2dc618 SM |
13665 | 2018-01-07 Simon Marchi <[email protected]> |
13666 | ||
13667 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
13668 | <dwarf2_per_objfile>: New field. | |
13669 | (dwarf2_per_objfile): Remove global. | |
13670 | (get_dwarf2_per_objfile): New function. | |
13671 | (set_dwarf2_per_objfile): New function. | |
13672 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
13673 | dwarf2_per_objfile. | |
13674 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
13675 | (read_abbrev_offset): Likewise. | |
13676 | (read_indirect_string): Likewise. | |
13677 | (read_indirect_line_string): Likewise. | |
13678 | (read_indirect_string_at_offset): Likewise. | |
13679 | (read_indirect_string_from_dwz): Likewise. | |
13680 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
13681 | dwarf2_per_objfile. | |
13682 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
13683 | (create_all_comp_units): Change objfile parameter to | |
13684 | dwarf2_per_objfile. | |
13685 | (create_all_type_units): Likewise. | |
13686 | (process_queue): Add dwarf2_per_objfile parameter. | |
13687 | (read_and_check_comp_unit_head): Likewise. | |
13688 | (lookup_dwo_unit_in_dwp): Likewise. | |
13689 | (get_dwp_file): Likewise. | |
13690 | (process_cu_includes): Likewise. | |
13691 | (struct free_dwo_file_cleanup_data): New struct. | |
13692 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
13693 | set_dwarf2_per_objfile. | |
13694 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
13695 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
13696 | context, adjust calls. | |
13697 | (dw2_instantiate_symtab): Likewise. | |
13698 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
13699 | (dw2_get_cu): Likewise. | |
13700 | (create_cu_from_index_list): Change objfile parameter to | |
13701 | dwarf2_per_objfile. | |
13702 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
13703 | context, adjust calls. | |
13704 | (create_cus_from_index): Likewise. | |
13705 | (create_signatured_type_table_from_index): Change objfile | |
13706 | parameter to dwarf2_per_objfile. | |
13707 | (create_signatured_type_table_from_debug_names): Change objfile | |
13708 | parameter to dwarf2_per_objfile. | |
13709 | (create_addrmap_from_index): Likewise. | |
13710 | (create_addrmap_from_aranges): Likewise. | |
13711 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
13712 | (dw2_setup): Remove. | |
13713 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
13714 | context. | |
13715 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
13716 | get_dwarf2_per_objfile. | |
13717 | (dw2_forget_cached_source_info): Likewise. | |
13718 | (dw2_map_symtabs_matching_filename): Likewise. | |
13719 | (struct dw2_symtab_iterator) <index>: Remove. | |
13720 | <dwarf2_per_objfile>: New field. | |
13721 | (dw2_symtab_iter_init): Replace index parameter with | |
13722 | dwarf2_per_objfile. | |
13723 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
13724 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
13725 | (dw2_print_stats): Likewise. | |
13726 | (dw2_dump): Likewise. | |
13727 | (dw2_expand_symtabs_for_function): Likewise. | |
13728 | (dw2_expand_all_symtabs): Likewise. | |
13729 | (dw2_expand_symtabs_with_fullname): Likewise. | |
13730 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
13731 | with dwarf2_per_objfile. | |
13732 | (dw_expand_symtabs_matching_file_matcher): Add | |
13733 | dwarf2_per_objfile parameter and adjust calls. | |
13734 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
13735 | adjust calls. | |
13736 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
13737 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
13738 | adjust calls. | |
13739 | (create_cus_from_debug_names_list): Replace objfile parameter | |
13740 | with dwarf2_per_objfile and adjust calls. | |
13741 | (create_cus_from_debug_names): Likewise. | |
13742 | (dwarf2_read_debug_names): Likewise. | |
13743 | (mapped_debug_names::namei_to_name): Adjust call. | |
13744 | (dw2_debug_names_iterator::next): Likewise. | |
13745 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
13746 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
13747 | (dw2_debug_names_dump): Likewise. | |
13748 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
13749 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
13750 | (dwarf2_initialize_objfile): Likewise. | |
13751 | (dwarf2_build_psymtabs): Likewise. | |
13752 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
13753 | this_cu. | |
13754 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
13755 | (read_and_check_comp_unit_head): Likewise. | |
13756 | (read_abbrev_offset): Likewise. | |
13757 | (create_debug_type_hash_table): Likewise. | |
13758 | (create_debug_types_hash_table): Likewise. | |
13759 | (create_all_type_units): Replace objfile parameter with | |
13760 | dwarf2_per_objfile. | |
13761 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
13762 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
13763 | with dwarf2_per_objfile. | |
13764 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
13765 | (lookup_dwp_signatured_type): Likewise. | |
13766 | (lookup_signatured_type): Likewise. | |
13767 | (read_cutu_die_from_dwo): Likewise. | |
13768 | (init_tu_and_read_dwo_dies): Likewise. | |
13769 | (init_cutu_and_read_dies): Likewise. | |
13770 | (init_cutu_and_read_dies_no_follow): Likewise. | |
13771 | (allocate_type_unit_groups_table): Add objfile parameter. | |
13772 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
13773 | (get_type_unit_group): Likewise. | |
13774 | (process_psymtab_comp_unit): Update call. | |
13775 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
13776 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
13777 | (print_tu_stats): Likewise. | |
13778 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
13779 | in void* parameter. | |
13780 | (build_type_psymtabs): Change objfile parameter to | |
13781 | dwarf2_per_objfile. | |
13782 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
13783 | passed in void* parameter. | |
13784 | (process_skeletonless_type_units): Change objfile parameter to | |
13785 | dwarf2_per_objfile. | |
13786 | (set_partial_user): Likewise. | |
13787 | (dwarf2_build_psymtabs_hard): Likewise. | |
13788 | (read_comp_units_from_section): Likewise. | |
13789 | (create_all_comp_units): Likewise. | |
13790 | (scan_partial_symbols): Update calls. | |
13791 | (add_partial_symbol): Likewise. | |
13792 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
13793 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
13794 | (process_queue): Add dwarf2_per_objfile parameter. | |
13795 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
13796 | (compute_compunit_symtab_includes): Likewise. | |
13797 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
13798 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
13799 | (process_full_type_unit): Likewise. | |
13800 | (process_imported_unit_die): Update call. | |
13801 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
13802 | (read_file_scope): Likewise. | |
13803 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
13804 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
13805 | (create_cus_hash_table): Likewise. | |
13806 | (create_dwp_hash_table): Likewise. | |
13807 | (create_dwo_unit_in_dwp_v1): Likewise. | |
13808 | (create_dwp_v2_section): Likewise. | |
13809 | (create_dwo_unit_in_dwp_v2): Likewise. | |
13810 | (lookup_dwo_unit_in_dwp): Likewise. | |
13811 | (try_open_dwop_file): Likewise. | |
13812 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
13813 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
13814 | cleanup to include a reference to dwarf2_per_objfile. | |
13815 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
13816 | (open_and_init_dwp_file): Likewise. | |
13817 | (get_dwp_file): Likewise. | |
13818 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
13819 | (queue_and_load_all_dwo_tus): Update call. | |
13820 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
13821 | data. | |
13822 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
13823 | (dwarf2_ranges_process): Likewise. | |
13824 | (dwarf2_get_pc_bounds): Likewise. | |
13825 | (mark_common_block_symbol_computed): Likewise. | |
13826 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
13827 | (dwarf2_read_abbrevs): Update call. | |
13828 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
13829 | (find_partial_die): Likewise. | |
13830 | (fixup_partial_die): Likewise. | |
13831 | (read_attribute_value): Likewise. | |
13832 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
13833 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
13834 | parameter. | |
13835 | (read_indirect_string_from_dwz): Add objfile parameter. | |
13836 | (read_indirect_string): Add objfile parameter. | |
13837 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
13838 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
13839 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
13840 | call dw2_setup. | |
13841 | (read_str_index): Use dwarf2_per_objfile from cu. | |
13842 | (get_debug_line_section): Likewise. | |
13843 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
13844 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
13845 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
13846 | (build_error_marker_type): Likewise. | |
13847 | (lookup_die_type): Likewise. | |
13848 | (determine_prefix): Likewise. | |
13849 | (follow_die_offset): Likewise. | |
13850 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
13851 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
13852 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
13853 | (dwarf2_get_die_type): Likewise. | |
13854 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
13855 | (get_signatured_type): Likewise. | |
13856 | (get_DW_AT_signature_type): Likewise. | |
13857 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
13858 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
13859 | (cu_debug_loc_section): Likewise. | |
13860 | (fill_in_loclist_baton): Likewise. | |
13861 | (dwarf2_symbol_mark_computed): Likewise. | |
13862 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
13863 | dwarf2_per_objfile. | |
13864 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
13865 | parameter. | |
13866 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
13867 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
13868 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
13869 | (set_die_type): Use dwarf2_free_objfile from cu. | |
13870 | (get_die_type_at_offset): Likewise. | |
13871 | (dwarf2_per_objfile_free): Don't assign global variable. | |
13872 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
13873 | parameter, update m_debugstrlookup construction. | |
13874 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
13875 | parameter. | |
13876 | <m_dwarf2_per_objfile>: New field. | |
13877 | <lookup>: Use m_dwarf2_per_objfile. | |
13878 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
13879 | (psyms_seen_size): Likewise. | |
13880 | (write_gdbindex): Replace objfile parameter with | |
13881 | dwarf2_per_objfile. | |
13882 | (write_debug_names): Likewise. | |
13883 | (write_psymtabs_to_index): Likewise. | |
13884 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
13885 | calls. | |
13886 | ||
e3b94546 SM |
13887 | 2018-01-07 Simon Marchi <[email protected]> |
13888 | ||
13889 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
13890 | <dwarf2_per_objfile>: New field. | |
13891 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
13892 | <dwarf2_per_objfile>: New field. | |
13893 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
13894 | of objfile. | |
13895 | (create_signatured_type_table_from_index): Likewise. | |
13896 | (create_debug_type_hash_table): Likewise. | |
13897 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
13898 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
13899 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
13900 | objfile. | |
13901 | (create_partial_symtab): Access objfile through | |
13902 | dwarf2_per_objfile. | |
13903 | (process_psymtab_comp_unit_reader): Likewise. | |
13904 | (read_comp_units_from_section): Likewise. | |
13905 | (scan_partial_symbols): Likewise. | |
13906 | (add_partial_symbol): Likewise. | |
13907 | (add_partial_subprogram): Likewise. | |
13908 | (peek_die_abbrev): Likewise. | |
13909 | (fixup_go_packaging): Likewise. | |
13910 | (process_full_comp_unit): Likewise. | |
13911 | (process_full_type_unit): Likewise. | |
13912 | (process_imported_unit_die): Likewise. | |
13913 | (dwarf2_compute_name): Likewise. | |
13914 | (dwarf2_physname): Likewise. | |
13915 | (read_import_statement): Likewise. | |
13916 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
13917 | objfile. | |
13918 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
13919 | (read_lexical_block_scope): Likewise. | |
13920 | (read_call_site_scope): Likewise. | |
13921 | (read_variable): Likewise. | |
13922 | (dwarf2_rnglists_process): Likewise. | |
13923 | (dwarf2_ranges_process): Likewise. | |
13924 | (dwarf2_ranges_read): Likewise. | |
13925 | (dwarf2_record_block_ranges): Likewise. | |
13926 | (dwarf2_add_field): Likewise. | |
13927 | (dwarf2_add_member_fn): Likewise. | |
13928 | (read_structure_type): Likewise. | |
13929 | (process_structure_scope): Likewise. | |
13930 | (read_enumeration_type): Likewise. | |
13931 | (read_array_type): Likewise. | |
13932 | (read_common_block): Likewise. | |
13933 | (read_namespace_type): Likewise. | |
13934 | (read_namespace): Likewise. | |
13935 | (read_module_type): Likewise. | |
13936 | (read_tag_pointer_type): Likewise. | |
13937 | (read_tag_ptr_to_member_type): Likewise. | |
13938 | (read_tag_string_type): Likewise. | |
13939 | (read_subroutine_type): Likewise. | |
13940 | (read_typedef): Likewise. | |
13941 | (read_base_type): Likewise. | |
13942 | (attr_to_dynamic_prop): Likewise. | |
13943 | (read_subrange_type): Likewise. | |
13944 | (read_unspecified_type): Likewise. | |
13945 | (load_partial_dies): Likewise. | |
13946 | (read_partial_die): Likewise. | |
13947 | (find_partial_die): Likewise. | |
13948 | (guess_partial_die_structure_name): Likewise. | |
13949 | (fixup_partial_die): Likewise. | |
13950 | (read_attribute_value): Likewise. | |
13951 | (read_addr_index_from_leb128): Likewise. | |
13952 | (dwarf2_read_addr_index): Likewise. | |
13953 | (dwarf2_string_attr): Likewise. | |
13954 | (lnp_state_machine::check_line_address): Likewise. | |
13955 | (dwarf_decode_lines_1): Likewise. | |
13956 | (dwarf_decode_lines): Likewise. | |
13957 | (dwarf2_start_symtab): Likewise. | |
13958 | (var_decode_location): Likewise. | |
13959 | (new_symbol_full): Likewise. | |
13960 | (dwarf2_const_value_data): Likewise. | |
13961 | (dwarf2_const_value_attr): Likewise. | |
13962 | (dwarf2_const_value): Likewise. | |
13963 | (die_type): Likewise. | |
13964 | (die_containing_type): Likewise. | |
13965 | (lookup_die_type): Likewise. | |
13966 | (guess_full_die_structure_name): Likewise. | |
13967 | (anonymous_struct_prefix): Likewise. | |
13968 | (dwarf2_name): Likewise. | |
13969 | (follow_die_ref_or_sig): Likewise. | |
13970 | (follow_die_offset): Likewise. | |
13971 | (follow_die_ref): Likewise. | |
13972 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
13973 | (dwarf2_fetch_constant_bytes): Likewise. | |
13974 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
13975 | (dwarf2_get_die_type): Likewise. | |
13976 | (follow_die_sig): Likewise. | |
13977 | (decode_locdesc): Likewise. | |
13978 | (dwarf2_per_cu_objfile): Likewise. | |
13979 | (dwarf2_per_cu_text_offset): Likewise. | |
13980 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
13981 | objfile. | |
13982 | (set_die_type): Access objfile through | |
13983 | dwarf2_per_objfile. | |
13984 | ||
b01ba14d SM |
13985 | 2018-01-07 Simon Marchi <[email protected]> |
13986 | ||
13987 | * valprint.c (converted_character_d): Remove typedef. | |
13988 | (DEF_VEC_O (converted_character_d)): Remove. | |
13989 | (count_next_character): Use std::vector. | |
13990 | (print_converted_chars_to_obstack): Likewise. | |
13991 | (generic_printstr): Likewise. | |
13992 | ||
4d0fdd9b SM |
13993 | 2018-01-07 Simon Marchi <[email protected]> |
13994 | ||
13995 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
13996 | <value>: Change type to unique_xmalloc_ptr. | |
13997 | (gdb_xml_value_s): Remove typedef. | |
13998 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
13999 | (gdb_xml_element_start_handler): Change parameter type to | |
14000 | std::vector. | |
14001 | (xml_find_attribute): Likewise. | |
14002 | * xml-support.c (xml_find_attribute): Change parameter type to | |
14003 | std::vector and adjust. | |
14004 | (gdb_xml_values_cleanup): Remove. | |
14005 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
14006 | (xinclude_start_include): Change paraeter type to std::vector | |
14007 | and adjust. | |
14008 | * btrace.c (check_xml_btrace_version): Likewise. | |
14009 | (parse_xml_btrace_block): Likewise. | |
14010 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
14011 | (parse_xml_btrace_pt): Likewise. | |
14012 | (parse_xml_btrace_conf_bts): Likewise. | |
14013 | (parse_xml_btrace_conf_pt): Likewise. | |
14014 | * memory-map.c (memory_map_start_memory): Likewise. | |
14015 | (memory_map_start_property): Likewise. | |
14016 | * osdata.c (osdata_start_osdata): Likewise. | |
14017 | (osdata_start_item): Likewise. | |
14018 | (osdata_start_column): Likewise. | |
14019 | * remote.c (start_thread): Likewise. | |
14020 | * solib-aix.c (library_list_start_library): Likewise. | |
14021 | (library_list_start_list): Likewise. | |
14022 | * solib-svr4.c (library_list_start_library): Likewise. | |
14023 | (svr4_library_list_start_list): Likewise. | |
14024 | * solib-target.c (library_list_start_segment): Likewise. | |
14025 | (library_list_start_section): Likewise. | |
14026 | (library_list_start_library): Likewise. | |
14027 | (library_list_start_list): Likewise. | |
14028 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
14029 | (traceframe_info_start_tvar): Likewise. | |
14030 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
14031 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
14032 | (tdesc_start_feature): Likewise. | |
14033 | (tdesc_start_reg): Likewise. | |
14034 | (tdesc_start_union): Likewise. | |
14035 | (tdesc_start_struct): Likewise. | |
14036 | (tdesc_start_flags): Likewise. | |
14037 | (tdesc_start_enum): Likewise. | |
14038 | (tdesc_start_field): Likewise. | |
14039 | (tdesc_start_enum_value): Likewise. | |
14040 | (tdesc_start_vector): Likewise. | |
14041 | ||
f979c73f SM |
14042 | 2018-01-07 Simon Marchi <[email protected]> |
14043 | ||
14044 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
14045 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
14046 | Remove. | |
14047 | (python_xmethod_worker::clone): Remove. | |
14048 | * valops.c (find_overload_match): Use std::move instead of | |
14049 | clone. | |
14050 | ||
ba18742c SM |
14051 | 2018-01-07 Simon Marchi <[email protected]> |
14052 | ||
14053 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
14054 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
14055 | <free_xmethod_worker_data>: Remove. | |
14056 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
14057 | <get_xmethod_arg_types>: Remove. | |
14058 | <get_xmethod_result_type>: Remove. | |
14059 | <invoke_xmethod>: Remove. | |
14060 | * extension.c (new_xmethod_worker): Remove. | |
14061 | (clone_xmethod_worker): Remove. | |
14062 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
14063 | pointer. | |
14064 | (get_xmethod_arg_types): Rename to... | |
14065 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
14066 | (get_xmethod_result_type): Rename to... | |
14067 | (xmethod_worker::get_result_type): ... this, and adjust. | |
14068 | (invoke_xmethod): Remove. | |
14069 | (free_xmethod_worker): Remove. | |
14070 | (free_xmethod_worker_vec): Remove. | |
14071 | * extension.h (enum ext_lang_rc): Move here from | |
14072 | extension-priv.h. | |
14073 | (struct xmethod_worker): Add constructor and destructor. | |
14074 | <data>: Remove. | |
14075 | <value>: Remove. | |
14076 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
14077 | virtual pure methods. | |
14078 | <get_arg_types, get_result_type>: New methods. | |
14079 | (xmethod_worker_ptr): Remove typedef. | |
14080 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
14081 | (xmethod_worker_vec): Remove typedef. | |
14082 | (xmethod_worker_up): New typedef. | |
14083 | (invoke_xmethod): Remove. | |
14084 | (clone_xmethod_worker): Remove. | |
14085 | (free_xmethod_worker): Remove. | |
14086 | (free_xmethod_worker_vec): Remove. | |
14087 | (get_xmethod_arg_types): Remove. | |
14088 | (get_xmethod_result_type): Remove. | |
14089 | * valops.c (find_method_list): Use std::vector, don't use | |
14090 | intermediate vector. | |
14091 | (value_find_oload_method_list): Use std::vector. | |
14092 | (find_overload_match): Use std::vector. | |
14093 | (find_oload_champ): Use std::vector. | |
14094 | * value.c (value_free): Use operator delete. | |
14095 | (value_of_xmethod): Rename to... | |
14096 | (value_from_xmethod): ... this. Don't assign | |
14097 | xmethod_worker::value, take rvalue-reference. | |
14098 | (result_type_of_xmethod): Adjust. | |
14099 | (call_xmethod): Adjust. | |
14100 | * value.h: Include extension.h. | |
14101 | (struct xmethod_worker): Don't forward-declare. | |
14102 | (value_of_xmethod): Rename to... | |
14103 | (value_from_xmethod): ... this, take rvalue-reference. | |
14104 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
14105 | (struct python_xmethod_worker): ... this, add constructor and | |
14106 | destructor. | |
14107 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
14108 | (gdbpy_free_xmethod_worker_data): Rename to... | |
14109 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
14110 | adjust. | |
14111 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
14112 | (python_xmethod_worker::clone): ... this and adjust. | |
14113 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
14114 | temporary vector. | |
14115 | (gdbpy_get_xmethod_arg_types): Rename to... | |
14116 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
14117 | (gdbpy_get_xmethod_result_type): Rename to... | |
14118 | (python_xmethod_worker::do_get_result_type): ... this and | |
14119 | adjust. | |
14120 | (gdbpy_invoke_xmethod): Rename to... | |
14121 | (python_xmethod_worker::invoke): ... this and adjust. | |
14122 | (new_python_xmethod_worker): Rename to... | |
14123 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
14124 | adjust. | |
14125 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
14126 | Remove. | |
14127 | (gdbpy_free_xmethod_worker_data): Remove. | |
14128 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
14129 | (gdbpy_get_xmethod_arg_types): Remove. | |
14130 | (gdbpy_get_xmethod_result_type): Remove. | |
14131 | (gdbpy_invoke_xmethod): Remove. | |
14132 | * python/python.c (python_extension_ops): Remove obsolete | |
14133 | callbacks. | |
14134 | ||
e379cee6 PA |
14135 | 2018-01-05 Pedro Alves <[email protected]> |
14136 | ||
14137 | PR gdb/18653 | |
14138 | * common/signals-state-save-restore.c | |
14139 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
14140 | find a custom handler preinstalled, instead of internal erroring. | |
14141 | But only warn if !quiet. | |
14142 | * common/signals-state-save-restore.h | |
14143 | (save_original_signals_state): New parameter 'quiet'. | |
14144 | * main.c (captured_main_1): Move save_original_signals_state call | |
14145 | after option handling, and pass QUIET. | |
14146 | ||
a655456c PA |
14147 | 2018-01-05 Pedro Alves <[email protected]> |
14148 | ||
14149 | * spu-tdep.c (spu_catch_start): Pass | |
14150 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
14151 | ||
de63c46b PA |
14152 | 2018-01-05 Pedro Alves <[email protected]> |
14153 | ||
14154 | PR gdb/22670 | |
14155 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
14156 | (ada_get_symbol_name_matcher): Use it for | |
14157 | symbol_name_match_type::SEARCH_NAME. | |
14158 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
14159 | it down instead of assuming symbol_name_match_type::FULL. | |
14160 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
14161 | * c-valprint.c (print_unpacked_pointer): Use | |
14162 | lookup_symbol_search_name instead of lookup_symbol. | |
14163 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
14164 | symbol_name_match_type::SEARCH_NAME. | |
14165 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
14166 | symbol_name_match_type::FULL. | |
14167 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
14168 | symbol_name_match_type::SEARCH_NAME. | |
14169 | * infrun.c (insert_exception_resume_breakpoint): Use | |
14170 | lookup_symbol_search_name. | |
14171 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
14172 | * psymtab.c (maintenance_check_psymtabs): Use | |
14173 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
14174 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
14175 | SYMBOL_SEARCH_NAME. | |
14176 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
14177 | if symbol_name_match_type::SEARCH_NAME. | |
14178 | (lookup_symbol_in_language): Pass down | |
14179 | symbol_name_match_type::FULL. | |
14180 | (lookup_symbol_search_name): New. | |
14181 | (lookup_language_this): Pass down | |
14182 | symbol_name_match_type::SEARCH_NAME. | |
14183 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
14184 | 'match_type'. Pass it down. | |
14185 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
14186 | (lookup_symbol_search_name): New declaration. | |
14187 | (lookup_symbol_in_block): New 'match_type' parameter. | |
14188 | ||
f98fc17b PA |
14189 | 2018-01-05 Pedro Alves <[email protected]> |
14190 | ||
14191 | PR gdb/22670 | |
14192 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
14193 | ada_lookup_symbol. | |
14194 | (ada_lookup_symbol): Reimplement in terms of | |
14195 | ada_lookup_symbol_list, bits factored out from | |
14196 | ada_lookup_encoded_symbol. | |
14197 | ||
342f8240 JB |
14198 | 2018-01-05 Joel Brobecker <[email protected]> |
14199 | ||
14200 | * ada-exp.y (write_object_renaming): When subscripting an array | |
14201 | using a symbol as the index, pass the block in call to | |
14202 | ada_lookup_encoded_symbol when looking that symbol up. | |
14203 | ||
7150d33c JG |
14204 | 2018-01-05 Jerome Guitton <[email protected]> |
14205 | ||
14206 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
14207 | TYPE_INDEX_TYPE. | |
14208 | ||
cc0e770c JB |
14209 | 2018-01-05 Joel Brobecker <[email protected]> |
14210 | ||
14211 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
14212 | the case where VALUE_LVAL (val0) is not lval_memory. | |
14213 | ||
f79da888 | 14214 | 2018-01-05 Xavier Roirand <[email protected]> |
e3861a03 XR |
14215 | |
14216 | * ada-valprint.c (print_optional_low_bound): Handle | |
14217 | character-indexed array printing like boolean-indexed array | |
14218 | printing. | |
14219 | ||
cd385f94 JB |
14220 | 2018-01-05 Joel Brobecker <[email protected]> |
14221 | ||
14222 | * NEWS: Create a new section for the next release branch. | |
14223 | Rename the section of the current branch, now that it has | |
14224 | been cut. | |
14225 | ||
09aca949 JB |
14226 | 2018-01-05 Joel Brobecker <[email protected]> |
14227 | ||
14228 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
14229 | * version.in: Bump version to 8.1.50.DATE-git. | |
14230 | ||
9f757bf7 XR |
14231 | 2018-01-03 Xavier Roirand <[email protected]> |
14232 | ||
14233 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
14234 | Add field. | |
14235 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
14236 | Add field. | |
14237 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
14238 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
14239 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
14240 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
14241 | Update all callers. | |
14242 | (create_excep_cond_exprs) <ex>: Add parameter. | |
14243 | (re_set_exception): Update create_excep_cond_exprs call. | |
14244 | (print_it_exception, print_one_exception, print_mention_exception) | |
14245 | (print_recreate_exception): Add "catch handler" handling. | |
14246 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
14247 | (check_status_catch_handlers, print_it_catch_handlers) | |
14248 | (print_one_catch_handlers, print_mention_catch_handlers) | |
14249 | (print_recreate_catch_handlers): New function. | |
14250 | (catch_handlers_breakpoint_ops): New variable. | |
14251 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
14252 | Add parameter. Add "catch handler" handling. | |
14253 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
14254 | Add "catch handler" handling. | |
14255 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
14256 | handling. | |
14257 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
14258 | call. | |
14259 | (catch_ada_handlers_command): New function. | |
14260 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
14261 | operations structure. | |
14262 | (_initialize_ada_language): Add "catch handlers" command entry. | |
14263 | * NEWS: Document "catch handlers" feature. | |
14264 | ||
9fe561ab JB |
14265 | 2018-01-02 Joel Brobecker <[email protected]> |
14266 | ||
14267 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
14268 | account when creating the array type of the slice. | |
14269 | (ada_value_slice): Likewise. | |
14270 | ||
a405673c JB |
14271 | 2018-01-02 Joel Brobecker <[email protected]> |
14272 | ||
14273 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
14274 | New enum value. | |
14275 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
14276 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
14277 | New parameter. Update all callers in this file. | |
14278 | (array_type_has_dynamic_stride): New function. | |
14279 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
14280 | of arrays with dynamic byte strides. | |
14281 | * dwarf2read.c (read_array_type): Add support for dynamic | |
14282 | DW_AT_byte_stride attributes. | |
14283 | ||
74a2f8ff JB |
14284 | 2018-01-02 Joel Brobecker <[email protected]> |
14285 | ||
14286 | * dwarf2read.c (read_unspecified_type): Treat | |
14287 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
14288 | ||
e2882c85 JB |
14289 | 2018-01-01 Joel Brobecker <[email protected]> |
14290 | ||
14291 | Update copyright year range in all GDB files. | |
14292 | ||
5e70ee09 | 14293 | 2018-01-01, 18 Joel Brobecker <[email protected]> |
1690bb24 JB |
14294 | |
14295 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
14296 | and gdb/testsuite/gdb.base/step-line.c. | |
14297 | ||
0f0c98a8 JB |
14298 | 2018-01-01 Joel Brobecker <[email protected]> |
14299 | ||
14300 | * copyright.py (main): Dump the contents of | |
14301 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
14302 | even if BY_HAND is empty. | |
14303 | ||
82e1e79a JB |
14304 | 2018-01-01 Joel Brobecker <[email protected]> |
14305 | ||
14306 | * top.c (print_gdb_version): Update Copyright year in version | |
14307 | message. | |
14308 | ||
053f54e5 | 14309 | 2018-01-01 Joel Brobecker <[email protected]> |
47fea877 | 14310 | |
053f54e5 | 14311 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 14312 | |
053f54e5 | 14313 | For older changes see ChangeLog-2017. |
c906108c SS |
14314 | \f |
14315 | Local Variables: | |
14316 | mode: change-log | |
14317 | left-margin: 8 | |
14318 | fill-column: 74 | |
14319 | version-control: never | |
57da7796 | 14320 | coding: utf-8 |
c906108c | 14321 | End: |