Commit | Line | Data |
---|---|---|
5a82b8a1 KR |
1 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
2 | ||
3 | * regformats/regdef.h: Put reg in gdb namespace. | |
4 | ||
fb516a69 KR |
5 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
6 | ||
7 | * i386-bsd-nat.c (gdb_ptrace): New. | |
8 | * (i386bsd_fetch_inferior_registers, | |
9 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
10 | * (i386bsd_fetch_inferior_registers, | |
11 | i386bsd_store_inferior_registers) Use gdb_ptrace. | |
12 | ||
1c0aa1fb KR |
13 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
14 | ||
15 | * amd64-bsd-nat.c (gdb_ptrace): New. | |
16 | * (amd64bsd_fetch_inferior_registers, | |
17 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
18 | * (amd64bsd_fetch_inferior_registers, | |
19 | amd64bsd_store_inferior_registers) Use gdb_ptrace. | |
20 | ||
5ccd2fb7 KR |
21 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
22 | ||
23 | * user-regs.c (user_reg::read): Rename to... | |
24 | (user_reg::xread): ...this. | |
25 | * (append_user_reg): Rename argument `read' to `xread'. | |
26 | * (user_reg_add_builtin): Likewise. | |
27 | * (user_reg_add): Likewise. | |
28 | * (value_of_user_reg): Likewise. | |
29 | ||
2108a63a KR |
30 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
31 | ||
32 | * sparc-nat.c (gdb_ptrace): New. | |
33 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
34 | (sparc_store_inferior_registers) Remove obsolete comment. | |
35 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
36 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. | |
37 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
38 | (sparc_store_inferior_registers) Use gdb_ptrace. | |
39 | ||
a225c9a8 KR |
40 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
41 | ||
42 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
43 | it to the ptrace call. | |
44 | * sh-nbsd-nat.c (store_registers): Likewise. | |
45 | ||
98097623 KR |
46 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
47 | ||
48 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from | |
49 | nbsd_nat_target instead of inf_ptrace_target. | |
50 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
51 | nbsd_nat_target. | |
52 | ||
9e38d619 KR |
53 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
54 | ||
55 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". | |
56 | ||
a2ecbe9f KR |
57 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
58 | ||
59 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and | |
60 | <sys/sysctl.h>. | |
61 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. | |
62 | ||
58990295 TV |
63 | 2020-03-17 Tom de Vries <tdevries@suse.de> |
64 | ||
65 | PR gdb/23710 | |
66 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang | |
67 | fields. | |
68 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang | |
69 | fields. | |
70 | (process_imported_unit_die): Skip import of c++ CUs. | |
71 | ||
771dd3a8 TT |
72 | 2020-03-16 Tom Tromey <tom@tromey.com> |
73 | ||
74 | * p-valprint.c (pascal_object_print_value): Initialize | |
75 | base_value. | |
76 | ||
817a7585 AK |
77 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> |
78 | Shahab Vahedi <shahab@synopsys.com> | |
79 | ||
80 | * Makefile.in: Add arch/arc.o | |
81 | * configure.tgt: Likewise. | |
82 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. | |
83 | (_initialize_arc_tdep): Don't initialize old target descriptions. | |
84 | (arc_read_description): New function to cache target descriptions. | |
85 | * arc-tdep.h (arc_read_description): Add proto type. | |
86 | * arch/arc.c: New file. | |
87 | * arch/arc.h: Likewise. | |
88 | * features/Makefile: Replace old target descriptions with new. | |
89 | * features/arc-arcompact.c: Remove. | |
90 | * features/arc-arcompact.xml: Likewise. | |
91 | * features/arc-v2.c: Likewise | |
92 | * features/arc-v2.xml: Likewise | |
93 | * features/arc/aux-arcompact.xml: New file. | |
94 | * features/arc/aux-v2.xml: Likewise. | |
95 | * features/arc/core-arcompact.xml: Likewise. | |
96 | * features/arc/core-v2.xml: Likewise. | |
97 | * features/arc/aux-arcompact.c: Generate. | |
98 | * features/arc/aux-v2.c: Likewise. | |
99 | * features/arc/core-arcompact.c: Likewise. | |
100 | * features/arc/core-v2.c: Likewise. | |
101 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. | |
102 | ||
67430cd0 TT |
103 | 2020-03-16 Tom Tromey <tromey@adacore.com> |
104 | ||
105 | PR gdb/25663: | |
106 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after | |
107 | putting value into bcache. | |
108 | ||
30efb6c7 SM |
109 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
110 | ||
111 | PR gdb/21500 | |
112 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename | |
113 | to... | |
114 | (amd64_windows_init_abi_common): ... this. Don't set size of | |
115 | long type. | |
116 | (amd64_windows_init_abi): New function. | |
117 | (amd64_cygwin_init_abi): New function. | |
118 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for | |
119 | the Cygwin OS ABI. | |
120 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify | |
121 | comment. | |
122 | ||
8db52437 SM |
123 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
124 | ||
125 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. | |
126 | * windows-tdep.c (CYGWIN_DLL_NAME): New. | |
127 | (pe_import_directory_entry): New struct type. | |
128 | (is_linked_with_cygwin_dll): New function. | |
129 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select | |
130 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. | |
131 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. | |
132 | ||
5982a56a SM |
133 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
134 | ||
135 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except | |
136 | i386_cygwin_core_osabi_sniffer. | |
137 | ||
7a1998df SM |
138 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
139 | ||
140 | * i386-cygwin-tdep.c: Rename to... | |
141 | * i386-windows-tdep.c: ... this. | |
142 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to | |
143 | i386-windows-tdep.c. | |
144 | * configure.tgt: Likewise. | |
145 | ||
053205cc SM |
146 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
147 | ||
148 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. | |
149 | * osabi.c (gdb_osabi_names): Add "Windows". | |
150 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return | |
151 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". | |
152 | (i386_cygwin_core_osabi_sniffer): New function, extracted from | |
153 | i386_cygwin_osabi_sniffer. | |
154 | (_initialize_i386_cygwin_tdep): Register OS ABI | |
155 | GDB_OSABI_WINDOWS for i386. | |
156 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return | |
157 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". | |
158 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS | |
159 | for x86-64. | |
160 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI | |
161 | when the target matches '*-*-mingw*'. | |
162 | ||
fe4b2ee6 SM |
163 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
164 | ||
165 | * defs.h (enum gdb_osabi): Move to... | |
166 | * osabi.h (enum gdb_osabi): ... here. | |
167 | * gdbarch.sh: Include osabi.h in gdbarch.h. | |
168 | * gdbarch.h: Re-generate. | |
169 | ||
cb9b645d SM |
170 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
171 | ||
172 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New | |
173 | function. | |
174 | (_initialize_amd64_windows_tdep): Register osabi sniffer. | |
175 | ||
3293bbaf TT |
176 | 2020-03-14 Tom Tromey <tom@tromey.com> |
177 | ||
178 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" | |
179 | for C++. | |
180 | (c_type_print_modifier): Likewise. Add "language" parameter. | |
181 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) | |
182 | (c_type_print_base_1): Update. | |
183 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New | |
184 | constants. | |
185 | * type-stack.c (type_stack::insert): Handle tp_atomic and | |
186 | tp_restrict. | |
187 | (type_stack::follow_type_instance_flags): Likewise. | |
188 | (type_stack::follow_types): Likewise. Merge type-following code. | |
189 | * c-exp.y (RESTRICT, ATOMIC): New tokens. | |
190 | (space_identifier, cv_with_space_id) | |
191 | (const_or_volatile_or_space_identifier_noopt) | |
192 | (const_or_volatile_or_space_identifier): Remove. | |
193 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New | |
194 | rules. | |
195 | (ptr_operator, typebase): Update. | |
196 | (enum token_flag) <FLAG_C>: New constant. | |
197 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and | |
198 | "_Atomic". | |
199 | (lex_one_token): Handle FLAG_C. | |
200 | ||
154151a6 KR |
201 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
202 | ||
203 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass | |
204 | it to the ptrace call. | |
205 | * m68k-bsd-nat.c (store_registers): Likewise. | |
206 | ||
bc107784 KR |
207 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
208 | ||
209 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to | |
210 | gdb_byte *. | |
211 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
212 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. | |
213 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. | |
214 | ||
01a80117 KR |
215 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
216 | ||
217 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from | |
218 | nbsd_nat_target instead of inf_ptrace_target. | |
219 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
220 | nbsd_nat_target. | |
221 | ||
f90280ca KR |
222 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
223 | ||
224 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
225 | register_t. | |
226 | ||
6def66f1 KR |
227 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
228 | ||
229 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass | |
230 | it to the ptrace call. | |
231 | * alpha-bsd-nat.c (store_registers): Likewise. | |
232 | ||
66eaca97 KR |
233 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
234 | ||
235 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from | |
236 | includes. | |
237 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. | |
238 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, | |
239 | fill_fpregset): Likewise. | |
240 | ||
4fed520b KR |
241 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
242 | ||
243 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from | |
244 | nbsd_nat_target instead of inf_ptrace_target. | |
245 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
246 | nbsd_nat_target. | |
247 | ||
2190cf06 KR |
248 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
249 | ||
250 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
251 | register_t. | |
252 | ||
75c56d3d KR |
253 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
254 | ||
255 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass | |
256 | it to the ptrace call. | |
257 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. | |
258 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. | |
259 | * arm-nbsd-nat.c (store_register): Likewise. | |
260 | * arm-nbsd-nat.c (store_regs): Likewise. | |
261 | * arm-nbsd-nat.c (store_fp_register): Likewise. | |
262 | * arm-nbsd-nat.c (store_fp_regs): Likewise. | |
263 | ||
6018d381 KR |
264 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
265 | ||
266 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from | |
267 | nbsd_nat_target instead of inf_ptrace_target. | |
268 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
269 | nbsd_nat_target. | |
270 | ||
013f99f0 KR |
271 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
272 | ||
273 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass | |
274 | it to the ptrace call. | |
275 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. | |
276 | ||
12753073 KR |
277 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
278 | ||
6227b330 KR |
279 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass |
280 | it to the ptrace call. | |
281 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. | |
282 | ||
283 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
284 | ||
285 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const | |
286 | gdb_byte *. | |
12753073 KR |
287 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. |
288 | ||
d5be5fa4 KR |
289 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
290 | ||
291 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target | |
292 | instead of inf_ptrace_target. | |
293 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
294 | nbsd_nat_target. | |
295 | ||
8110f842 KR |
296 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
297 | ||
298 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
299 | register_t. | |
300 | ||
52feded7 KR |
301 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
302 | ||
303 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
304 | register_t. | |
305 | ||
25567eee KR |
306 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
307 | ||
308 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
309 | register_t. | |
310 | ||
426a9c18 TT |
311 | 2020-03-13 Tom Tromey <tom@tromey.com> |
312 | ||
313 | * value.h (val_print): Don't declare. | |
314 | * valprint.h (val_print_array_elements) | |
315 | (val_print_scalar_formatted, generic_val_print): Don't declare. | |
316 | * valprint.c (generic_val_print_array): Take a struct value. | |
317 | (generic_val_print_ptr, generic_val_print_memberptr) | |
318 | (generic_val_print_bool, generic_val_print_int) | |
319 | (generic_val_print_char, generic_val_print_complex) | |
320 | (generic_val_print): Remove. | |
321 | (generic_value_print): Update. | |
322 | (do_val_print): Remove unused parameters. Don't call | |
323 | la_val_print. | |
324 | (val_print): Remove. | |
325 | (common_val_print): Update. Don't call value_check_printable. | |
326 | (val_print_scalar_formatted, val_print_array_elements): Remove. | |
327 | * rust-lang.c (rust_val_print): Remove. | |
328 | (rust_language_defn): Update. | |
329 | * p-valprint.c (pascal_val_print): Remove. | |
330 | (pascal_value_print_inner): Update. | |
331 | (pascal_object_print_val_fields, pascal_object_print_val): | |
332 | Remove. | |
333 | (pascal_object_print_static_field): Update. | |
334 | * p-lang.h (pascal_val_print): Don't declare. | |
335 | * p-lang.c (pascal_language_defn): Update. | |
336 | * opencl-lang.c (opencl_language_defn): Update. | |
337 | * objc-lang.c (objc_language_defn): Update. | |
338 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. | |
339 | * m2-lang.h (m2_val_print): Don't declare. | |
340 | * m2-lang.c (m2_language_defn): Update. | |
341 | * language.h (struct language_defn) <la_val_print>: Remove. | |
342 | * language.c (unk_lang_value_print_inner): Rename. Change | |
343 | argument types. | |
344 | (unknown_language_defn, auto_language_defn): Update. | |
345 | * go-valprint.c (go_val_print): Remove. | |
346 | * go-lang.h (go_val_print): Don't declare. | |
347 | * go-lang.c (go_language_defn): Update. | |
348 | * f-valprint.c (f_val_print): Remove. | |
349 | * f-lang.h (f_value_print): Don't declare. | |
350 | * f-lang.c (f_language_defn): Update. | |
351 | * d-valprint.c (d_val_print): Remove. | |
352 | * d-lang.h (d_value_print): Don't declare. | |
353 | * d-lang.c (d_language_defn): Update. | |
354 | * cp-valprint.c (cp_print_value_fields) | |
355 | (cp_print_value_fields_rtti, cp_print_value): Remove. | |
356 | (cp_print_static_field): Update. | |
357 | * c-valprint.c (c_val_print_array, c_val_print_ptr) | |
358 | (c_val_print_struct, c_val_print_union, c_val_print_int) | |
359 | (c_val_print_memberptr, c_val_print): Remove. | |
360 | * c-lang.h (c_val_print_array, cp_print_value_fields) | |
361 | (cp_print_value_fields_rtti): Don't declare. | |
362 | * c-lang.c (c_language_defn, cplus_language_defn) | |
363 | (asm_language_defn, minimal_language_defn): Update. | |
364 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. | |
365 | (ada_val_print_enum): Take a struct value. | |
366 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) | |
367 | (ada_val_print): Remove. | |
368 | (ada_value_print_1): Update. | |
369 | (printable_val_type): Remove. | |
370 | * ada-lang.h (ada_val_print): Don't declare. | |
371 | * ada-lang.c (ada_language_defn): Update. | |
372 | ||
42331a1e TT |
373 | 2020-03-13 Tom Tromey <tom@tromey.com> |
374 | ||
375 | * valprint.c (do_val_print): Update. | |
376 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take | |
377 | a struct value. | |
378 | (value_to_value_object_no_release): Declare. | |
379 | * python/py-value.c (value_to_value_object_no_release): New | |
380 | function. | |
381 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a | |
382 | struct value. | |
383 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New | |
384 | function. | |
385 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take | |
386 | a struct value. | |
387 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): | |
388 | Declare. | |
389 | (gdbscm_apply_val_pretty_printer): Take a struct value. | |
390 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct | |
391 | value. | |
392 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct | |
393 | value. | |
394 | * extension-priv.h (struct extension_language_ops) | |
395 | <apply_val_pretty_printer>: Take a struct value. | |
396 | * cp-valprint.c (cp_print_value): Create a struct value. | |
397 | (cp_print_value): Update. | |
398 | ||
3a916a97 TT |
399 | 2020-03-13 Tom Tromey <tom@tromey.com> |
400 | ||
401 | * ada-valprint.c (print_field_values): Call common_val_print. | |
402 | ||
b59eac37 TT |
403 | 2020-03-13 Tom Tromey <tom@tromey.com> |
404 | ||
405 | * ada-valprint.c (val_print_packed_array_elements): Remove | |
406 | bitoffset and val parameters. Call common_val_print. | |
407 | (ada_val_print_string): Remove offset, address, and original_value | |
408 | parameters. | |
409 | (ada_val_print_array): Update. | |
410 | (ada_value_print_array): New function. | |
411 | (ada_value_print_1): Call it. | |
412 | ||
03371129 TT |
413 | 2020-03-13 Tom Tromey <tom@tromey.com> |
414 | ||
415 | * ada-valprint.c (ada_value_print): Use common_val_print. | |
416 | ||
2e088f8b TT |
417 | 2020-03-13 Tom Tromey <tom@tromey.com> |
418 | ||
419 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. | |
420 | ||
39ef85a8 TT |
421 | 2020-03-13 Tom Tromey <tom@tromey.com> |
422 | ||
423 | * ada-valprint.c (ada_value_print_num): New function. | |
424 | (ada_value_print_1): Use it. | |
425 | ||
b9fa6e07 TT |
426 | 2020-03-13 Tom Tromey <tom@tromey.com> |
427 | ||
428 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. | |
429 | ||
416595d6 TT |
430 | 2020-03-13 Tom Tromey <tom@tromey.com> |
431 | ||
432 | * ada-valprint.c (ada_value_print_ptr): New function. | |
433 | (ada_value_print_1): Use it. | |
434 | ||
5b5e15ec TT |
435 | 2020-03-13 Tom Tromey <tom@tromey.com> |
436 | ||
437 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; | |
438 | call common_val_print. | |
439 | (ada_val_print_1): Update. | |
440 | (ada_value_print_1): New function. | |
441 | (ada_value_print_inner): Rewrite. | |
442 | ||
fbf54e75 TT |
443 | 2020-03-13 Tom Tromey <tom@tromey.com> |
444 | ||
445 | * cp-valprint.c (cp_print_value_fields): Update. | |
446 | (cp_print_value): New function. | |
447 | ||
64b653ca TT |
448 | 2020-03-13 Tom Tromey <tom@tromey.com> |
449 | ||
450 | * m2-valprint.c (m2_value_print_inner): Use | |
451 | cp_print_value_fields. | |
452 | * cp-valprint.c (cp_print_value_fields): New function. | |
453 | * c-valprint.c (c_value_print_struct): New function. | |
454 | (c_value_print_inner): Use c_value_print_struct. | |
455 | * c-lang.h (cp_print_value_fields): Declare. | |
456 | ||
6999f067 TT |
457 | 2020-03-13 Tom Tromey <tom@tromey.com> |
458 | ||
459 | * c-valprint.c (c_value_print_array): New function. | |
460 | (c_value_print_inner): Use it. | |
461 | ||
ce80b8bd TT |
462 | 2020-03-13 Tom Tromey <tom@tromey.com> |
463 | ||
464 | * c-valprint.c (c_value_print_memberptr): New function. | |
465 | (c_value_print_inner): Use it. | |
466 | ||
2faac269 TT |
467 | 2020-03-13 Tom Tromey <tom@tromey.com> |
468 | ||
469 | * c-valprint.c (c_value_print_int): New function. | |
470 | (c_value_print_inner): Use it. | |
471 | ||
da3e2c29 TT |
472 | 2020-03-13 Tom Tromey <tom@tromey.com> |
473 | ||
474 | * c-valprint.c (c_value_print_ptr): New function. | |
475 | (c_value_print_inner): Use it. | |
476 | ||
50836231 TT |
477 | 2020-03-13 Tom Tromey <tom@tromey.com> |
478 | ||
479 | * c-valprint.c (c_value_print_inner): Rewrite. | |
480 | ||
4f412b6e TT |
481 | 2020-03-13 Tom Tromey <tom@tromey.com> |
482 | ||
483 | * valprint.c (generic_value_print_complex): New function. | |
484 | (generic_value_print): Use it. | |
485 | ||
f5354008 TT |
486 | 2020-03-13 Tom Tromey <tom@tromey.com> |
487 | ||
488 | * valprint.c (generic_val_print_float): Don't call | |
489 | val_print_scalar_formatted. | |
490 | (generic_val_print, generic_value_print): Update. | |
491 | ||
3eec3b05 TT |
492 | 2020-03-13 Tom Tromey <tom@tromey.com> |
493 | ||
494 | * valprint.c (generic_value_print_char): New function | |
495 | (generic_value_print): Use it. | |
496 | ||
fdddfccb TT |
497 | 2020-03-13 Tom Tromey <tom@tromey.com> |
498 | ||
499 | * valprint.c (generic_value_print_int): New function. | |
500 | (generic_value_print): Use it. | |
501 | ||
6dde7521 TT |
502 | 2020-03-13 Tom Tromey <tom@tromey.com> |
503 | ||
504 | * valprint.c (generic_value_print_bool): New function. | |
505 | (generic_value_print): Use it. | |
506 | ||
4112d2e6 TT |
507 | 2020-03-13 Tom Tromey <tom@tromey.com> |
508 | ||
509 | * valprint.c (generic_val_print_func): Simplify. | |
510 | (generic_val_print, generic_value_print): Update. | |
511 | ||
65786af6 TT |
512 | 2020-03-13 Tom Tromey <tom@tromey.com> |
513 | ||
514 | * valprint.c (generic_val_print_flags): Remove. | |
515 | (generic_val_print, generic_value_print): Update. | |
516 | (val_print_type_code_flags): Add original_value parameter. | |
517 | ||
40f3ce18 TT |
518 | 2020-03-13 Tom Tromey <tom@tromey.com> |
519 | ||
520 | * valprint.c (generic_val_print): Update. | |
521 | (generic_value_print): Update. | |
522 | * valprint.c (generic_val_print_enum): Don't call | |
523 | val_print_scalar_formatted. | |
524 | ||
2a5b130b TT |
525 | 2020-03-13 Tom Tromey <tom@tromey.com> |
526 | ||
527 | * valprint.c (generic_value_print): Call generic_value_print_ptr. | |
528 | * valprint.c (generic_value_print_ptr): New function. | |
529 | ||
abc66ce9 TT |
530 | 2020-03-13 Tom Tromey <tom@tromey.com> |
531 | ||
532 | * valprint.c (generic_value_print): Rewrite. | |
533 | ||
07a32858 TT |
534 | 2020-03-13 Tom Tromey <tom@tromey.com> |
535 | ||
536 | * p-valprint.c (pascal_object_print_value_fields) | |
537 | (pascal_object_print_value): New functions. | |
538 | ||
64d64d3a TT |
539 | 2020-03-13 Tom Tromey <tom@tromey.com> |
540 | ||
541 | * p-valprint.c (pascal_value_print_inner): Rewrite. | |
542 | ||
6a95a1f5 TT |
543 | 2020-03-13 Tom Tromey <tom@tromey.com> |
544 | ||
545 | * f-valprint.c (f_value_print_innner): Rewrite. | |
546 | ||
59fcdac6 TT |
547 | 2020-03-13 Tom Tromey <tom@tromey.com> |
548 | ||
549 | * m2-valprint.c (m2_print_unbounded_array): New overload. | |
550 | (m2_print_unbounded_array): Update. | |
551 | (m2_print_array_contents): Take a struct value. | |
552 | (m2_value_print_inner): Rewrite. | |
553 | ||
d133c3e1 TT |
554 | 2020-03-13 Tom Tromey <tom@tromey.com> |
555 | ||
556 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. | |
557 | (d_value_print_inner): New function. | |
558 | * d-lang.h (d_value_print_inner): Declare. | |
559 | * d-lang.c (d_language_defn): Use d_value_print_inner. | |
560 | ||
23b0f06b TT |
561 | 2020-03-13 Tom Tromey <tom@tromey.com> |
562 | ||
563 | * go-valprint.c (go_value_print_inner): New function. | |
564 | * go-lang.h (go_value_print_inner): Declare. | |
565 | * go-lang.c (go_language_defn): Use go_value_print_inner. | |
566 | ||
5f56f7cb TT |
567 | 2020-03-13 Tom Tromey <tom@tromey.com> |
568 | ||
569 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value | |
570 | API. | |
571 | (rust_val_print): Rewrite. | |
572 | (rust_value_print_inner): New function, from rust_val_print. | |
573 | (rust_language_defn): Use rust_value_print_inner. | |
574 | ||
26792ee0 TT |
575 | 2020-03-13 Tom Tromey <tom@tromey.com> |
576 | ||
577 | * ada-valprint.c (ada_value_print_inner): New function. | |
578 | * ada-lang.h (ada_value_print_inner): Declare. | |
579 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. | |
580 | ||
24051bbe TT |
581 | 2020-03-13 Tom Tromey <tom@tromey.com> |
582 | ||
583 | * f-valprint.c (f_value_print_innner): New function. | |
584 | * f-lang.h (f_value_print_innner): Declare. | |
585 | * f-lang.c (f_language_defn): Use f_value_print_innner. | |
586 | ||
c0941be6 TT |
587 | 2020-03-13 Tom Tromey <tom@tromey.com> |
588 | ||
589 | * p-valprint.c (pascal_value_print_inner): New function. | |
590 | * p-lang.h (pascal_value_print_inner): Declare. | |
591 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. | |
592 | ||
62c4663d TT |
593 | 2020-03-13 Tom Tromey <tom@tromey.com> |
594 | ||
595 | * m2-valprint.c (m2_value_print_inner): New function. | |
596 | * m2-lang.h (m2_value_print_inner): Declare. | |
597 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. | |
598 | ||
62182190 TT |
599 | 2020-03-13 Tom Tromey <tom@tromey.com> |
600 | ||
601 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. | |
602 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. | |
603 | * c-valprint.c (c_value_print_inner): New function. | |
604 | * c-lang.h (c_value_print_inner): Declare. | |
605 | * c-lang.c (c_language_defn, cplus_language_defn) | |
606 | (asm_language_defn, minimal_language_defn): Use | |
607 | c_value_print_inner. | |
608 | ||
1e592a8a TT |
609 | 2020-03-13 Tom Tromey <tom@tromey.com> |
610 | ||
611 | * p-valprint.c (pascal_object_print_value_fields): Now static. | |
612 | * p-lang.h (pascal_object_print_value_fields): Don't declare. | |
613 | ||
7fe471e9 TT |
614 | 2020-03-13 Tom Tromey <tom@tromey.com> |
615 | ||
616 | * c-valprint.c (c_val_print_array): Simplify. | |
617 | ||
d121c6ce TT |
618 | 2020-03-13 Tom Tromey <tom@tromey.com> |
619 | ||
620 | * valprint.c (value_print_array_elements): New function. | |
621 | * valprint.h (value_print_array_elements): Declare. | |
622 | ||
4dba70ee TT |
623 | 2020-03-13 Tom Tromey <tom@tromey.com> |
624 | ||
625 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. | |
626 | * mips-tdep.c (mips_print_register): Use | |
627 | value_print_scalar_formatted. | |
628 | ||
4f9ae810 TT |
629 | 2020-03-13 Tom Tromey <tom@tromey.com> |
630 | ||
631 | * valprint.h (value_print_scalar_formatted): Declare. | |
632 | * valprint.c (value_print_scalar_formatted): New function. | |
633 | ||
156bfec9 TT |
634 | 2020-03-13 Tom Tromey <tom@tromey.com> |
635 | ||
636 | * valprint.h (generic_value_print): Declare. | |
637 | * valprint.c (generic_value_print): New function. | |
638 | ||
2b4e573d TT |
639 | 2020-03-13 Tom Tromey <tom@tromey.com> |
640 | ||
641 | * valprint.c (do_val_print): Call la_value_print_inner, if | |
642 | available. | |
643 | * rust-lang.c (rust_language_defn): Update. | |
644 | * p-lang.c (pascal_language_defn): Update. | |
645 | * opencl-lang.c (opencl_language_defn): Update. | |
646 | * objc-lang.c (objc_language_defn): Update. | |
647 | * m2-lang.c (m2_language_defn): Update. | |
648 | * language.h (struct language_defn) <la_value_print_inner>: New | |
649 | member. | |
650 | * language.c (unknown_language_defn, auto_language_defn): Update. | |
651 | * go-lang.c (go_language_defn): Update. | |
652 | * f-lang.c (f_language_defn): Update. | |
653 | * d-lang.c (d_language_defn): Update. | |
654 | * c-lang.c (c_language_defn, cplus_language_defn) | |
655 | (asm_language_defn, minimal_language_defn): Update. | |
656 | * ada-lang.c (ada_language_defn): Update. | |
657 | ||
a1f6a07c TT |
658 | 2020-03-13 Tom Tromey <tom@tromey.com> |
659 | ||
660 | * c-valprint.c (c_value_print): Use common_val_print. | |
661 | ||
410cf315 TT |
662 | 2020-03-13 Tom Tromey <tom@tromey.com> |
663 | ||
664 | * cp-valprint.c (cp_print_static_field): Use common_val_print. | |
665 | ||
72a45c93 TT |
666 | 2020-03-13 Tom Tromey <tom@tromey.com> |
667 | ||
668 | * f-valprint.c (f77_print_array_1, f_val_print): Use | |
669 | common_val_print. | |
670 | ||
040f66bd TT |
671 | 2020-03-13 Tom Tromey <tom@tromey.com> |
672 | ||
673 | * riscv-tdep.c (riscv_print_one_register_info): Use | |
674 | common_val_print. | |
675 | ||
a6e05a6c TT |
676 | 2020-03-13 Tom Tromey <tom@tromey.com> |
677 | ||
678 | * mi/mi-main.c (output_register): Use common_val_print. | |
679 | ||
3444c526 TT |
680 | 2020-03-13 Tom Tromey <tom@tromey.com> |
681 | ||
682 | * infcmd.c (default_print_one_register_info): Use | |
683 | common_val_print. | |
684 | ||
c2a44efe TT |
685 | 2020-03-13 Tom Tromey <tom@tromey.com> |
686 | ||
687 | * valprint.h (common_val_print_checked): Declare. | |
688 | * valprint.c (common_val_print_checked): New function. | |
689 | * stack.c (print_frame_arg): Use common_val_print_checked. | |
690 | ||
b0c26e99 TT |
691 | 2020-03-13 Tom Tromey <tom@tromey.com> |
692 | ||
693 | * valprint.c (do_val_print): New function, from val_print. | |
694 | (val_print): Use do_val_print. | |
695 | (common_val_print): Use do_val_print. | |
696 | ||
ce3acbe9 TT |
697 | 2020-03-13 Tom Tromey <tom@tromey.com> |
698 | ||
699 | * valprint.c (value_print): Use scoped_value_mark. | |
700 | ||
96c7f873 TV |
701 | 2020-03-13 Tom de Vries <tdevries@suse.de> |
702 | ||
703 | PR symtab/25646 | |
704 | * psymtab.c (partial_symtab::partial_symtab): Don't set | |
705 | globals_offset and statics_offset. Push element onto | |
706 | current_global_psymbols and current_static_psymbols stacks. | |
707 | (concat): New function. | |
708 | (end_psymtab_common): Set globals_offset and statics_offset. Pop | |
709 | element from current_global_psymbols and current_static_psymbols | |
710 | stacks. Concat popped elements to global_psymbols and | |
711 | static_symbols. | |
712 | (add_psymbol_to_list): Use current_global_psymbols and | |
713 | current_static_psymbols stacks. | |
714 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and | |
715 | current_static_psymbols fields. | |
716 | ||
6ba0a321 CB |
717 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
718 | ||
719 | * corelow.c (sniff_core_bfd): Remove. | |
720 | (class core_target) <m_core_vec>: Remove. | |
721 | (core_target::core_target): Update. | |
722 | (core_file_fns): Remove. | |
723 | (deprecated_add_core_fns): Remove. | |
724 | (default_core_sniffer): Remove. | |
725 | (sniff_core_bfd): Remove. | |
726 | (default_check_format): Remove. | |
727 | (gdb_check_format): Remove. | |
728 | (core_target_open): Update. | |
729 | (core_target::get_core_register_section): Update. | |
730 | (get_core_registers_cb): Update. | |
731 | (core_target::fetch_registers): Update. | |
732 | * gdbcore.h (struct core_fns): Remove. | |
733 | (deprecated_add_core_fns): Remove. | |
734 | (default_core_sniffer): Remove. | |
735 | (default_check_format): Remove. | |
736 | ||
227031b2 TT |
737 | 2020-03-12 Tom Tromey <tom@tromey.com> |
738 | ||
739 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a | |
740 | CORE_ADDR. | |
741 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. | |
742 | ||
53807e9f TT |
743 | 2020-03-12 Tom Tromey <tom@tromey.com> |
744 | ||
745 | * remote.c (remote_target::download_tracepoint) | |
746 | (remote_target::enable_tracepoint) | |
747 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. | |
748 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not | |
749 | sprintf_vma. | |
750 | ||
64f25102 TT |
751 | 2020-03-12 Tom Tromey <tom@tromey.com> |
752 | ||
753 | * symfile-mem.c: Update CORE_ADDR size assert. | |
754 | ||
272cd5a3 SM |
755 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
756 | ||
757 | * selftest.m4: Move to gdbsupport/. | |
758 | * acinclude.m4: Update path to selftest.m4. | |
759 | ||
74cd3f9d SM |
760 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
761 | ||
762 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... | |
763 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, | |
764 | gdbarch-selfselftests.c and selftest-arch.c. | |
765 | (SUBDIR_UNITTESTS_OBS): Rename to... | |
766 | (SELFTESTS_OBS): ... this. | |
767 | (COMMON_SFILES): Remove disasm-selftests.c and | |
768 | gdbarch-selftests.c. | |
769 | * configure.ac: Don't add selftest-arch.{c,o} to | |
770 | CONFIG_{SRCS,OBS}. | |
771 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST | |
772 | preprocessor conditions. | |
773 | ||
db6878ac SM |
774 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
775 | ||
776 | * configure.ac: Don't source bfd/development.sh. | |
777 | * selftest.m4: Modify comment. | |
778 | * configure: Re-generate. | |
779 | ||
4d696a5c SM |
780 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
781 | ||
782 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is | |
783 | not "true" or "false". | |
784 | * configure: Re-generate. | |
785 | ||
8dd8e1c7 CB |
786 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
787 | ||
788 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. | |
789 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and | |
790 | renamed to arm_nbsd_supply_gregset. | |
791 | (fetch_register): Update to call arm_nbsd_supply_gregset. | |
792 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. | |
793 | (arm_netbsd_nat_target::fetch_registers): Update. | |
794 | (fetch_elfcore_registers): Removed. | |
795 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. | |
796 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. | |
797 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to | |
798 | not require NetBSD system headers. | |
799 | (arm_nbsd_regset): New struct. | |
800 | (arm_nbsd_iterate_over_regset_sections): New function. | |
801 | (arm_netbsd_init_abi_common): Updated to call | |
802 | set_gdbarch_iterate_over_regset_sections. | |
803 | * arm-nbsd-tdep.h: New file. | |
804 | ||
dd69bf7a KB |
805 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> |
806 | ||
807 | * symtab.c (find_pc_sect_line): Add check which prevents infinite | |
808 | recursion. | |
809 | ||
a0761e34 SM |
810 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
811 | ||
812 | * configure: Re-generate. | |
813 | ||
e7a82140 TT |
814 | 2020-03-11 Tom Tromey <tromey@adacore.com> |
815 | ||
816 | * ada-typeprint.c (print_choices): Fix comment. | |
817 | ||
dcc050c8 AB |
818 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
819 | ||
820 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing | |
821 | previous item in the list, when the list has no items. | |
822 | ||
1c33af77 TV |
823 | 2020-03-11 Tom de Vries <tdevries@suse.de> |
824 | ||
825 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in | |
826 | PROP_LOCLIST handling code. | |
827 | ||
8c95582d AB |
828 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> |
829 | ||
830 | * buildsym-legacy.c (record_line): Pass extra parameter to | |
831 | record_line. | |
832 | * buildsym.c (buildsym_compunit::record_line): Take an extra | |
833 | parameter, reduce duplication in the line table, and record the | |
834 | is_stmt flag in the line table. | |
835 | * buildsym.h (buildsym_compunit::record_line): Add extra | |
836 | parameter. | |
837 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore | |
838 | non-statement lines. | |
839 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass | |
840 | this to the symtab builder. | |
841 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. | |
842 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag | |
843 | through to dwarf_record_line_1. | |
844 | * infrun.c (process_event_stop_test): When stepping, don't stop at | |
845 | a non-statement instruction, and only refresh the step info when | |
846 | we land in the middle of a line's range. Also add an extra | |
847 | comment. | |
848 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt | |
849 | field. | |
850 | * record-btrace.c (btrace_find_line_range): Only record lines | |
851 | marked as is-statement. | |
852 | * stack.c (frame_show_address): Show the frame address if we are | |
853 | in a non-statement sal. | |
854 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. | |
855 | (maintenance_print_one_line_table): Print a header for the is_stmt | |
856 | column, and include is_stmt information in the output. | |
857 | * symtab.c (find_pc_sect_line): Find lines marked as statements in | |
858 | preference to non-statements. | |
859 | (find_pcs_for_symtab_line): Prefer is-statement entries. | |
860 | (find_line_common): Likewise. | |
861 | * symtab.h (struct linetable_entry): Add is_stmt field. | |
862 | (struct symtab_and_line): Likewise. | |
863 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when | |
864 | arranging the line table. | |
865 | ||
e4003a34 TV |
866 | 2020-03-07 Tom de Vries <tdevries@suse.de> |
867 | ||
868 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder | |
869 | DIE. | |
870 | ||
e8932576 TT |
871 | 2020-03-07 Tom Tromey <tom@tromey.com> |
872 | ||
873 | * valops.c (value_literal_complex): Remove obsolete comment. | |
874 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete | |
875 | comment. | |
876 | ||
29734269 SM |
877 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
878 | ||
879 | * infrun.h: Forward-declare thread_info. | |
880 | (set_step_info): Add thread_info parameter, add doc. | |
881 | * infrun.c (set_step_info): Add thread_info parameter, move doc | |
882 | to header. | |
883 | * infrun.c (process_event_stop_test): Pass thread to | |
884 | set_step_info call. | |
885 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to | |
886 | set_step_info. | |
887 | (prepare_one_step): Add thread_info parameter, pass it to | |
888 | set_step_frame and prepare_one_step (recursive) call. | |
889 | (step_1): Pass thread to prepare_one_step call. | |
890 | (step_command_fsm::should_stop): Pass thread to | |
891 | prepare_one_step. | |
892 | (until_next_fsm): Pass thread to set_step_frame call. | |
893 | (finish_command): Pass thread to set_step_info call. | |
894 | ||
b7d64b29 HD |
895 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> |
896 | ||
897 | * windows-tdep.c (windows_solib_create_inferior_hook): | |
898 | Check if inferior is running. | |
899 | ||
09f2921c TV |
900 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
901 | ||
902 | * NEWS: Fix "the the". | |
903 | * ctfread.c: Same. | |
904 | ||
fd760e79 TV |
905 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
906 | ||
907 | * psymtab.c (psymtab_to_symtab): Don't print "done.". | |
908 | ||
20ea4a60 AB |
909 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
910 | ||
911 | * .dir-locals.el: Add a comment referencing the other copies of | |
912 | this file. | |
913 | ||
0afbabf0 JB |
914 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> |
915 | ||
916 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for | |
917 | psargs. | |
918 | ||
842806cb TBA |
919 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
920 | ||
921 | * .gitattributes: New file. | |
922 | ||
be1e3d3e TT |
923 | 2020-03-04 Tom Tromey <tom@tromey.com> |
924 | ||
925 | * symmisc.c (print_symbol_bcache_statistics) | |
926 | (print_objfile_statistics): Update. | |
927 | * symfile.c (allocate_symtab): Use intern. | |
928 | * psymtab.c (partial_symtab::partial_symtab): Use intern. | |
929 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
930 | macro_cache>: Remove. | |
931 | <string_cache>: New member. | |
932 | (struct objfile) <intern>: New methods. | |
933 | * elfread.c (elf_symtab_read): Use intern. | |
934 | * dwarf2/read.c (fixup_go_packaging): Intern package name. | |
935 | (dwarf2_compute_name, dwarf2_physname) | |
936 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern | |
937 | names. | |
938 | (guess_partial_die_structure_name): Update. | |
939 | (partial_die_info::fixup): Intern name. | |
940 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern | |
941 | name. | |
942 | (dwarf2_name): Intern name. Update. | |
943 | * buildsym.c (buildsym_compunit::get_macro_table): Use | |
944 | string_cache. | |
945 | ||
4e7625fd TT |
946 | 2020-03-04 Tom Tromey <tom@tromey.com> |
947 | ||
948 | * jit.c (bfd_open_from_target_memory): Make "target" const. | |
949 | * corefile.c (gnutarget): Now const. | |
950 | * gdbcore.h (gnutarget): Now const. | |
951 | ||
46f9f931 HD |
952 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> |
953 | ||
954 | * NEWS: Mention support for WOW64 processes. | |
955 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. | |
956 | (amd64_windows_segment_register_p): Remove static. | |
957 | (_initialize_amd64_windows_nat): Update. | |
958 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. | |
959 | * i386-windows-nat.c (context_offset): Update. | |
960 | (i386_mappings): Rename and remove static. | |
961 | (i386_windows_segment_register_p): Remove static. | |
962 | (_initialize_i386_windows_nat): Update. | |
963 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. | |
964 | (STATUS_WX86_SINGLE_STEP): New macro. | |
965 | (EnumProcessModulesEx): New macro. | |
966 | (Wow64SuspendThread): New macro. | |
967 | (Wow64GetThreadContext): New macro. | |
968 | (Wow64SetThreadContext): New macro. | |
969 | (Wow64GetThreadSelectorEntry): New macro. | |
970 | (windows_set_context_register_offsets): Add static. | |
971 | (windows_set_segment_register_p): Likewise. | |
972 | (windows_add_thread): Adapt for WOW64 processes. | |
973 | (windows_fetch_one_register): Likewise. | |
974 | (windows_nat_target::fetch_registers): Likewise. | |
975 | (windows_store_one_register): Likewise. | |
976 | (display_selector): Likewise. | |
977 | (display_selectors): Likewise. | |
978 | (handle_exception): Likewise. | |
979 | (windows_continue): Likewise. | |
980 | (windows_nat_target::resume): Likewise. | |
981 | (windows_add_all_dlls): Likewise. | |
982 | (do_initial_windows_stuff): Likewise. | |
983 | (windows_nat_target::attach): Likewise. | |
984 | (windows_get_exec_module_filename): Likewise. | |
985 | (windows_nat_target::create_inferior): Likewise. | |
986 | (windows_xfer_siginfo): Likewise. | |
987 | (_initialize_loadable): Initialize Wow64SuspendThread, | |
988 | Wow64GetThreadContext, Wow64SetThreadContext, | |
989 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. | |
990 | * windows-nat.h (windows_set_context_register_offsets): | |
991 | Remove declaration. | |
992 | (windows_set_segment_register_p): Likewise. | |
993 | (i386_windows_segment_register_p): Add declaration. | |
994 | (amd64_windows_segment_register_p): Likewise. | |
995 | ||
440cf44e LM |
996 | 2020-03-04 Luis Machado <luis.machado@linaro.org> |
997 | ||
998 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions | |
999 | in "info registers" for AArch64/ARM. | |
1000 | ||
1001 | The change caused "info registers" to not print GPR's. | |
1002 | ||
1003 | gdb/ChangeLog: | |
1004 | ||
1005 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
1006 | ||
1007 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
1008 | when reg->group is empty and reggroup is not. | |
1009 | ||
1009d92f TT |
1010 | 2020-03-03 Tom Tromey <tromey@adacore.com> |
1011 | ||
1012 | * dwarf2/frame.c (struct dwarf2_frame_cache) | |
1013 | <checked_tailcall_bottom, entry_cfa_sp_offset, | |
1014 | entry_cfa_sp_offset_p>: Remove members. | |
1015 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. | |
1016 | (dwarf2_frame_prev_register): Don't call | |
1017 | dwarf2_tailcall_sniffer_first. | |
1018 | (dwarf2_append_unwinders): Don't append tailcall unwinder. | |
1019 | * frame-unwind.c (add_unwinder): New fuction. | |
1020 | (frame_unwind_init): Use it. Add tailcall unwinder. | |
1021 | ||
5e5d66b6 AB |
1022 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> |
1023 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
1024 | ||
1025 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero | |
1026 | value should be printed as true. | |
1027 | ||
584cf46d HD |
1028 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> |
1029 | ||
1030 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. | |
1031 | (windows_init_abi): Set and use windows_so_ops. | |
1032 | ||
7b973adc SDJ |
1033 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> |
1034 | ||
1035 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR | |
1036 | when verifying if dealing with a convenience variable. | |
1037 | ||
bb7b70ab LM |
1038 | 2020-03-03 Luis Machado <luis.machado@linaro.org> |
1039 | ||
1040 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. | |
1041 | ||
9822cb57 SM |
1042 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
1043 | ||
1044 | * infrun.c (gdbarch_supports_displaced_stepping): New. | |
1045 | (use_displaced_stepping): Break up conditions in smaller pieces. | |
1046 | Use gdbarch_supports_displaced_stepping. | |
1047 | (displaced_step_prepare_throw): Use | |
1048 | gdbarch_supports_displaced_stepping. | |
1049 | ||
63e163f2 AB |
1050 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1051 | ||
1052 | * NEWS: Mention new behaviour of the history filename. | |
1053 | * top.c (write_history_p): Add comment. | |
1054 | (show_write_history_p): Add header comment, give a different | |
1055 | message when history writing is on, but the history filename is | |
1056 | empty. | |
1057 | (history_filename): Add comment. | |
1058 | (history_filename_empty): New function. | |
1059 | (show_history_filename): Add header comment, give a different | |
1060 | message when the filename is empty. | |
1061 | (init_history): Compare history_filename against nullptr, and only | |
1062 | read history if the filename is not empty. | |
1063 | (set_history_filename): Add header comment, and only make | |
1064 | non-empty filenames absolute. | |
1065 | (init_main): Make the filename argument to 'set history filename' | |
1066 | optional. | |
1067 | ||
81b86b97 CB |
1068 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> |
1069 | ||
1070 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... | |
1071 | (arm_supply_vfpregset): ...this, and update to use VFP registers. | |
1072 | (fetch_fp_register): Update. | |
1073 | (fetch_fp_regs): Update. | |
1074 | (store_fp_register): Update. | |
1075 | (store_fp_regs): Update. | |
1076 | (arm_netbsd_nat_target::read_description): New function. | |
1077 | (fetch_elfcore_registers): Update. | |
1078 | ||
24ed6739 AB |
1079 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1080 | ||
1081 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the | |
1082 | general_thread if the stop reply is missing a thread-id. | |
1083 | (remote_target::process_stop_reply): Use the first non-exited | |
1084 | thread if the target didn't pass a thread-id. | |
1085 | * infrun.c (do_target_wait): Move call to | |
1086 | switch_to_inferior_no_thread to .... | |
1087 | (do_target_wait_1): ... here. | |
1088 | ||
a84bb2a0 JT |
1089 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> |
1090 | ||
1091 | * debuginfod-support.c: Include defs.h first. | |
1092 | ||
658dadf0 TV |
1093 | 2020-02-28 Tom de Vries <tdevries@suse.de> |
1094 | ||
1095 | * symfile.c (set_initial_language): Use default language for lookup. | |
1096 | ||
4ebe4877 SM |
1097 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> |
1098 | ||
1099 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove | |
1100 | reader variable, pass `this` to read_cutu_die_from_dwo. | |
1101 | ||
e5da1139 AM |
1102 | 2020-02-27 Aaron Merey <amerey@redhat.com> |
1103 | ||
1104 | * source.c (open_source_file): Check for nullptr when computing | |
1105 | srcpath. | |
1106 | ||
317f7127 TT |
1107 | 2020-02-27 Tom Tromey <tromey@adacore.com> |
1108 | ||
1109 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a | |
1110 | member. | |
1111 | (dwarf2_add_field): Don't update nfields. | |
1112 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. | |
1113 | ||
3104d9ee AB |
1114 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
1115 | ||
1116 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not | |
1117 | abs. | |
1118 | ||
b83470bf TT |
1119 | 2020-02-26 Tom Tromey <tom@tromey.com> |
1120 | ||
1121 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. | |
1122 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. | |
1123 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) | |
1124 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for | |
1125 | per_cu_data. | |
1126 | ||
edfe0a0c TT |
1127 | 2020-02-26 Tom Tromey <tom@tromey.com> |
1128 | ||
1129 | * dwarf2/index-write.c (psym_index_map): Change type. | |
1130 | (add_address_entry_worker, write_one_signatured_type) | |
1131 | (recursively_count_psymbols, recursively_write_psymbols) | |
1132 | (class debug_names, psyms_seen_size, write_gdbindex) | |
1133 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. | |
1134 | ||
0d79cdc4 AM |
1135 | 2020-02-26 Aaron Merey <amerey@redhat.com> |
1136 | ||
1137 | * Makefile.in: Handle optional debuginfod support. | |
1138 | * NEWS: Update. | |
1139 | * README: Add --with-debuginfod summary. | |
1140 | * config.in: Regenerate. | |
1141 | * configure: Regenerate. | |
1142 | * configure.ac: Handle optional debuginfod support. | |
1143 | * debuginfod-support.c: debuginfod helper functions. | |
1144 | * debuginfod-support.h: Ditto. | |
1145 | * doc/gdb.texinfo: Add --with-debuginfod to configure options | |
1146 | summary. | |
1147 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers | |
1148 | when a dwz file cannot be found. | |
1149 | * elfread.c (elf_symfile_read): Query debuginfod servers when a | |
1150 | debuginfo file cannot be found. | |
1151 | * source.c (open_source_file): Query debuginfod servers when a | |
1152 | source file cannot be found. | |
1153 | * top.c (print_gdb_configuration): Include | |
1154 | --{with,without}-debuginfod in the output. | |
1155 | ||
b65ce565 JG |
1156 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
1157 | ||
1158 | * thread.c (thr_try_catch_cmd): Print thread name. | |
1159 | ||
d4c9a4f8 SM |
1160 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> |
1161 | ||
1162 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, | |
1163 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
1164 | dwarf2_fetch_die_type_sect_off): Move to... | |
1165 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
1166 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
1167 | dwarf2_fetch_die_type_sect_off): ... here. | |
1168 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
1169 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
1170 | dwarf2_fetch_die_type_sect_off): Move doc to header file. | |
1171 | ||
0dce4280 TV |
1172 | 2020-02-26 Tom de Vries <tdevries@suse.de> |
1173 | ||
1174 | PR gdb/25603 | |
1175 | * symfile.c (set_initial_language): Exit-early if | |
1176 | language_mode == language_mode_manual. | |
1177 | ||
450a1bfc SM |
1178 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
1179 | ||
1180 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... | |
1181 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. | |
1182 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. | |
1183 | ||
9e80cfa1 AB |
1184 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1185 | ||
1186 | * gdbtypes.c (create_array_type_with_stride): Handle negative | |
1187 | array strides. | |
1188 | * valarith.c (value_subscripted_rvalue): Likewise. | |
1189 | ||
09624f1f LM |
1190 | 2020-02-25 Luis Machado <luis.machado@linaro.org> |
1191 | ||
1192 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. | |
1193 | ||
8cb5117c SM |
1194 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
1195 | ||
1196 | * loc.h (dwarf2_get_die_type): Move to... | |
1197 | * read.h (dwarf2_get_die_type): ... here. | |
1198 | * read.c (dwarf2_get_die_type): Move doc to header. | |
1199 | ||
c325c44e JB |
1200 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> |
1201 | ||
1202 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and | |
1203 | 'gnulib/Makefile.in' to the list. | |
1204 | ||
4ac93832 TT |
1205 | 2020-02-24 Tom Tromey <tom@tromey.com> |
1206 | ||
1207 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: | |
1208 | Remove. | |
1209 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use | |
1210 | XOBNEWVEC. | |
1211 | ||
197400e8 TT |
1212 | 2020-02-24 Tom Tromey <tom@tromey.com> |
1213 | ||
1214 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: | |
1215 | New method. | |
1216 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. | |
1217 | (dw2_do_instantiate_symtab, dw2_get_file_names) | |
1218 | (build_type_psymtab_dependencies, load_full_type_unit): Update. | |
1219 | ||
76935768 TT |
1220 | 2020-02-24 Tom Tromey <tom@tromey.com> |
1221 | ||
1222 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use | |
1223 | make_scoped_restore. | |
1224 | (dwarf2_psymtab::read_symtab): Don't clear | |
1225 | reading_partial_symbols. | |
1226 | ||
a88ef40d TV |
1227 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
1228 | ||
1229 | PR gdb/25592 | |
1230 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. | |
1231 | ||
c9af6521 TV |
1232 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
1233 | ||
1234 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for | |
1235 | commands layout next/prev/regs. | |
1236 | ||
5707a07a TT |
1237 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1238 | ||
1239 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
1240 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
1241 | ||
3b0fb49e TT |
1242 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1243 | ||
1244 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
1245 | ||
283be8bf TT |
1246 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1247 | ||
1248 | * tui/tui-win.c (_initialize_tui_win): Add usage text. | |
1249 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. | |
1250 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. | |
1251 | * tui/tui.c (_initialize_tui): Add usage text. | |
1252 | ||
ca793b96 TT |
1253 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1254 | ||
1255 | * tui/tui-win.c (tui_set_focus_command) | |
1256 | (tui_set_win_height_command): Use error_no_arg. | |
1257 | (_initialize_tui_win): Update help text. | |
1258 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. | |
1259 | ||
432b5c40 TT |
1260 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1261 | ||
1262 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. | |
1263 | * tui/tui-disasm.h (struct tui_disasm_window) | |
1264 | <display_start_addr>: Declare. | |
1265 | * tui/tui-source.h (struct tui_source_window) | |
1266 | <display_start_addr>: Declare. | |
1267 | * tui/tui-winsource.h (struct tui_source_window_base) | |
1268 | <show_source_line, display_start_addr>: New methods. | |
1269 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: | |
1270 | Rename and move to protected section. | |
1271 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) | |
1272 | (tui_source_window_base::do_erase_source_content): Update. | |
1273 | (tui_source_window_base::show_source_line): Now a method. | |
1274 | (tui_source_window_base::show_source_content) | |
1275 | (tui_source_window_base::tui_source_window_base) | |
1276 | (tui_source_window_base::rerender) | |
1277 | (tui_source_window_base::refill) | |
1278 | (tui_source_window_base::do_scroll_horizontal) | |
1279 | (tui_source_window_base::set_is_exec_point_at) | |
1280 | (tui_source_window_base::update_breakpoint_info) | |
1281 | (tui_source_window_base::update_exec_info): Update. | |
1282 | * tui/tui-source.c (tui_source_window::set_contents) | |
1283 | (tui_source_window::showing_source_p) | |
1284 | (tui_source_window::do_scroll_vertical) | |
1285 | (tui_source_window::location_matches_p) | |
1286 | (tui_source_window::line_is_displayed): Update. | |
1287 | (tui_source_window::display_start_addr): New method. | |
1288 | * tui/tui-disasm.c (tui_disasm_window::set_contents) | |
1289 | (tui_disasm_window::do_scroll_vertical) | |
1290 | (tui_disasm_window::location_matches_p): Update. | |
1291 | (tui_disasm_window::display_start_addr): New method. | |
1292 | ||
01b1af32 TT |
1293 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1294 | ||
1295 | * NEWS: Add entry for gdb.register_window_type. | |
1296 | * tui/tui-layout.h (window_factory): New typedef. | |
1297 | (tui_register_window): Declare. | |
1298 | * tui/tui-layout.c (saved_tui_windows): New global. | |
1299 | (tui_apply_current_layout): Use it. | |
1300 | (tui_register_window): New function. | |
1301 | * python/python.c (do_start_initialization): Call | |
1302 | gdbpy_initialize_tui. | |
1303 | (python_GdbMethods): Add "register_window_type" function. | |
1304 | * python/python-internal.h (gdbpy_register_tui_window) | |
1305 | (gdbpy_initialize_tui): Declare. | |
1306 | * python/py-tui.c: New file. | |
1307 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. | |
1308 | ||
fc96d20b TT |
1309 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1310 | ||
1311 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. | |
1312 | ||
935c78c0 TT |
1313 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1314 | ||
1315 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. | |
1316 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. | |
1317 | * tui/tui-data.c (tui_set_win_with_focus): Remove. | |
1318 | (tui_set_win_focus_to): Move from tui-win.c. | |
1319 | ||
0240c8f1 TT |
1320 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1321 | ||
1322 | * tui/tui-layout.c (make_standard_window, get_locator_window): New | |
1323 | functions. | |
1324 | (known_window_types): New global. | |
1325 | (tui_get_window_by_name): Reimplement. | |
1326 | (initialize_known_windows): New function. | |
1327 | (validate_window_name): Rewrite. | |
1328 | (_initialize_tui_layout): Call initialize_known_windows. | |
1329 | ||
fdb01f0c TT |
1330 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1331 | ||
1332 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: | |
1333 | Remove constants. | |
1334 | * tui/tui-winsource.h (struct tui_source_window_base) | |
1335 | <tui_source_window_base>: Remove parameter. | |
1336 | * tui/tui-winsource.c | |
1337 | (tui_source_window_base::tui_source_window_base): Remove | |
1338 | parameter. | |
1339 | (tui_source_window_base::refill): Update. | |
1340 | * tui/tui-stack.h (struct tui_locator_window) | |
1341 | <tui_locator_window>: Update. | |
1342 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: | |
1343 | Default the constructor. | |
1344 | * tui/tui-regs.h (struct tui_data_item_window) | |
1345 | <tui_data_item_window>: Default the constructor. | |
1346 | (struct tui_data_window) <tui_data_window>: Likewise. | |
1347 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: | |
1348 | Default the constructor. | |
1349 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: | |
1350 | Default the constructor. | |
1351 | <type>: Remove. | |
1352 | (struct tui_win_info) <tui_win_info>: Default the constructor. | |
1353 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. | |
1354 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: | |
1355 | Default the constructor. | |
1356 | ||
865a5aec TT |
1357 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1358 | ||
1359 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. | |
1360 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. | |
1361 | * tui/tui-win.c (tui_resize_all): Don't call | |
1362 | tui_delete_invisible_windows. | |
1363 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when | |
1364 | done. | |
1365 | (tui_set_layout): Update. | |
1366 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. | |
1367 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. | |
1368 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. | |
1369 | ||
e098d18c TT |
1370 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1371 | ||
1372 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity | |
1373 | correctly. | |
1374 | ||
eb9c8874 TT |
1375 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1376 | ||
1377 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. | |
1378 | ||
7eed1a8e TT |
1379 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1380 | ||
1381 | * tui/tui-winsource.h (struct tui_source_window_iterator) | |
1382 | <inner_iterator>: New etytypedef. | |
1383 | <tui_source_window_iterator>: Take "end" parameter. | |
1384 | <tui_source_window_iterator>: Take iterator. | |
1385 | <operator*, advance>: Update. | |
1386 | <m_iter>: Change type. | |
1387 | <m_end>: New field. | |
1388 | (struct tui_source_windows) <begin, end>: Update. | |
1389 | * tui/tui-layout.c (tui_windows): New global. | |
1390 | (tui_apply_current_layout): Clear tui_windows. | |
1391 | (tui_layout_window::apply): Update tui_windows. | |
1392 | * tui/tui-data.h (tui_windows): Declare. | |
1393 | (all_tui_windows): Now inline function. | |
1394 | (class tui_window_iterator, struct all_tui_windows): Remove. | |
1395 | ||
7c043ba6 TT |
1396 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1397 | ||
1398 | PR tui/17850: | |
1399 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. | |
1400 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add | |
1401 | "height" argument. | |
1402 | (class tui_layout_window) <get_sizes>: Likewise. | |
1403 | (class tui_layout_split) <tui_layout_split>: Add "vertical" | |
1404 | argument. | |
1405 | <get_sizes>: Add "height" argument. | |
1406 | <m_vertical>: New field. | |
1407 | * tui/tui-layout.c (tui_layout_split::clone): Update. | |
1408 | (tui_layout_split::get_sizes): Add "height" argument. | |
1409 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. | |
1410 | (tui_new_layout_command): Parse "-horizontal". | |
1411 | (_initialize_tui_layout): Update help string. | |
1412 | (tui_layout_split::specification): Add "-horizontal" when needed. | |
1413 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" | |
1414 | argument. | |
1415 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: | |
1416 | New methods. | |
1417 | ||
6bc56648 TT |
1418 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1419 | ||
1420 | * tui/tui-layout.h (enum tui_adjust_result): New. | |
1421 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. | |
1422 | (class tui_layout_window) <adjust_size>: Return | |
1423 | tui_adjust_result. Rewrite. | |
1424 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. | |
1425 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. | |
1426 | ||
c22fef7e TT |
1427 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1428 | ||
1429 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change | |
1430 | parameter and return types. | |
1431 | (class tui_layout_base) <specification>: Add "depth". | |
1432 | (class tui_layout_window) <specification>: Add "depth". | |
1433 | (class tui_layout_split) <specification>: Add "depth". | |
1434 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter | |
1435 | and return types. | |
1436 | (tui_new_layout_command): Parse sub-layouts. | |
1437 | (_initialize_tui_layout): Update help string. | |
1438 | (tui_layout_window::specification): Add "depth". | |
1439 | (add_layout_command): Update. | |
1440 | ||
ee325b61 TT |
1441 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1442 | ||
1443 | * NEWS: Add "tui new-layout" item. | |
1444 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. | |
1445 | Add new-layout command to help text. | |
1446 | (validate_window_name): New function. | |
1447 | (tui_new_layout_command): New function. | |
1448 | (_initialize_tui_layout): Register "new-layout". | |
1449 | (tui_layout_window::specification): New method. | |
1450 | (tui_layout_window::specification): New method. | |
1451 | * tui/tui-layout.h (class tui_layout_base) <specification>: New | |
1452 | method. | |
1453 | (class tui_layout_window) <specification>: New method. | |
1454 | (class tui_layout_split) <specification>: New method. | |
1455 | ||
416eb92d TT |
1456 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1457 | ||
1458 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. | |
1459 | * tui/tui-win.c (window_name_completer): Update comment. | |
1460 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: | |
1461 | Declare method. | |
1462 | (class tui_layout_window) <replace_window>: Likewise. | |
1463 | (class tui_layout_split) <replace_window>: Likewise. | |
1464 | (tui_set_layout): Don't declare. | |
1465 | (tui_set_initial_layout): Declare function. | |
1466 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) | |
1467 | (asm_regs_layout): New globals. | |
1468 | (tui_current_layout, show_layout): Remove. | |
1469 | (tui_set_layout, tui_add_win_to_layout): Rewrite. | |
1470 | (find_layout, tui_apply_layout): New function. | |
1471 | (layout_completer): Remove. | |
1472 | (tui_next_layout): Reimplement. | |
1473 | (tui_next_layout_command): New function. | |
1474 | (tui_set_initial_layout, tui_prev_layout_command): New functions. | |
1475 | (tui_regs_layout): Reimplement. | |
1476 | (tui_regs_layout_command): New function. | |
1477 | (extract_display_start_addr): Rewrite. | |
1478 | (next_layout, prev_layout): Remove. | |
1479 | (tui_layout_window::replace_window): New method. | |
1480 | (tui_layout_split::replace_window): New method. | |
1481 | (destroy_layout): New function. | |
1482 | (layout_list): New global. | |
1483 | (add_layout_command): New function. | |
1484 | (initialize_layouts): Update. | |
1485 | (tui_layout_command): New function. | |
1486 | (_initialize_tui_layout): Install "layout" commands. | |
1487 | * tui/tui-data.h (enum tui_layout_type): Remove. | |
1488 | (tui_current_layout): Don't declare. | |
1489 | ||
0dbc2fc7 TT |
1490 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1491 | ||
1492 | * tui/tui-regs.c (tui_reg_layout): Remove. | |
1493 | (tui_reg_command): Use tui_regs_layout. | |
1494 | * tui/tui-layout.h (tui_reg_command): Declare. | |
1495 | * tui/tui-layout.c (tui_reg_command): New function. | |
1496 | ||
5afe342e TT |
1497 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1498 | ||
1499 | * tui/tui.c (tui_rl_delete_other_windows): Call | |
1500 | tui_remove_some_windows. | |
1501 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: | |
1502 | Declare method. | |
1503 | (class tui_layout_window) <remove_windows>: New method. | |
1504 | (class tui_layout_split) <remove_windows>: Declare. | |
1505 | (tui_remove_some_windows): Declare. | |
1506 | * tui/tui-layout.c (tui_remove_some_windows): New function. | |
1507 | (tui_layout_split::remove_windows): New method. | |
1508 | ||
427326a8 TT |
1509 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1510 | ||
1511 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. | |
1512 | * tui/tui-layout.h (tui_next_layout): Declare. | |
1513 | * tui/tui-layout.c (tui_next_layout): New function. | |
1514 | ||
3fe12b6d TT |
1515 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1516 | ||
1517 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use | |
1518 | correct coordinates. | |
1519 | ||
59b8b5d2 TT |
1520 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1521 | ||
1522 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. | |
1523 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove | |
1524 | DATA_WIN case. | |
1525 | ||
2a3d458b TT |
1526 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1527 | ||
1528 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use | |
1529 | TUI_DISASM_WIN, not tui_win_list. | |
1530 | ||
3f0cbb04 TT |
1531 | 2020-02-22 Tom Tromey <tom@tromey.com> |
1532 | ||
1533 | * valprint.c (generic_val_print_enum_1) | |
1534 | (val_print_type_code_flags): Style member names. | |
1535 | * rust-lang.c (val_print_struct, rust_print_enum) | |
1536 | (rust_print_struct_def, rust_internal_print_type): Style member | |
1537 | names. | |
1538 | * p-valprint.c (pascal_object_print_value_fields): Style member | |
1539 | names. Only call fprintf_symbol_filtered for static members. | |
1540 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. | |
1541 | * f-valprint.c (f_val_print): Style member names. | |
1542 | * f-typeprint.c (f_type_print_base): Style member names. | |
1543 | * cp-valprint.c (cp_print_value_fields): Style member names. Only | |
1544 | call fprintf_symbol_filtered for static members. | |
1545 | (cp_print_class_member): Style member names. | |
1546 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style | |
1547 | member names. | |
1548 | * ada-valprint.c (ada_print_scalar): Style enum names. | |
1549 | (ada_val_print_enum): Likewise. | |
1550 | * ada-typeprint.c (print_enum_type): Style enum names. | |
1551 | ||
d4d947ae TT |
1552 | 2020-02-21 Tom Tromey <tom@tromey.com> |
1553 | ||
1554 | * psympriv.h (struct partial_symtab): Update comment. | |
1555 | ||
e94e944b TT |
1556 | 2020-02-21 Tom Tromey <tromey@adacore.com> |
1557 | ||
1558 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter | |
1559 | type is CORE_ADDR. | |
1560 | ||
1eb73179 TV |
1561 | 2020-02-21 Tom de Vries <tdevries@suse.de> |
1562 | ||
1563 | PR gdb/25534 | |
1564 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency | |
1565 | if dependencies[i]->user != NULL. | |
1566 | ||
4f180d53 AT |
1567 | 2020-02-21 Ali Tamur <tamur@google.com> |
1568 | ||
1569 | * dwarf2/read.c (dwarf2_name): Add null check. | |
1570 | ||
22b6cd70 TT |
1571 | 2020-02-20 Tom Tromey <tom@tromey.com> |
1572 | ||
1573 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not | |
1574 | ">=", in binary search. | |
1575 | (dwarf2_find_containing_comp_unit): New overload. | |
1576 | (run_test): New self-test. | |
1577 | (_initialize_dwarf2_read): Register new test. | |
1578 | ||
bd0cf5a6 NC |
1579 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
1580 | ||
1581 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. | |
1582 | * riscv-tdep.h: Likewise. | |
1583 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without | |
1584 | rv32-only CSR. | |
1585 | * features/riscv/64bit-csr.xml: Regenerated. | |
1586 | ||
3f702acd SDJ |
1587 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
1588 | Tom Tromey <tom@tromey.com> | |
1589 | ||
1590 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead | |
1591 | of 'fputc_unfiltered'. | |
1592 | (putchar_unfiltered): Call 'fputc_unfiltered'. | |
1593 | (fputc_unfiltered): Call 'fputs_unfiltered'. | |
1594 | ||
d13c7322 AB |
1595 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> |
1596 | ||
1597 | * config.in: Regenerate. | |
1598 | * configure: Regenerate. | |
1599 | * configure.ac: Add --with-python-libdir option. | |
1600 | * main.c: Use WITH_PYTHON_LIBDIR. | |
1601 | ||
869d8950 TT |
1602 | 2020-02-19 Tom Tromey <tom@tromey.com> |
1603 | ||
1604 | * symtab.c (general_symbol_info::compute_and_set_names): Use | |
1605 | obstack_strndup. Simplify call to symbol_set_demangled_name. | |
1606 | ||
298e9637 SM |
1607 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> |
1608 | ||
1609 | * dwarf2/read.c (allocate_signatured_type_table, | |
1610 | allocate_dwo_unit_table, allocate_type_unit_groups_table, | |
1611 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): | |
1612 | Remove objfile parameter, update all callers. | |
1613 | ||
08410482 DE |
1614 | 2020-02-19 Doug Evans <dje@google.com> |
1615 | ||
1616 | PR rust/25535 | |
1617 | * rust-lang.c (rust_print_enum): Apply embedded_offset to | |
1618 | rust_enum_variant calculation. | |
1619 | ||
dfdeeca1 TT |
1620 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
1621 | ||
1622 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. | |
1623 | ||
2ef5453b TT |
1624 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
1625 | ||
1626 | * ada-lang.c (cache_symbol): Use obstack_strdup. | |
1627 | ||
9f1528a1 AB |
1628 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
1629 | ||
1630 | * configure: Regenerate. | |
1631 | ||
d3c22fa8 TT |
1632 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
1633 | ||
1634 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove | |
1635 | NULL check. | |
1636 | ||
bf84f706 MR |
1637 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
1638 | ||
1639 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. | |
1640 | ||
d1c9b20f AB |
1641 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
1642 | ||
1643 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define | |
1644 | if GDBSERVER is not defined. | |
1645 | (riscv_tdesc_cache): Likewise, also store const target_desc. | |
1646 | (STATIC_IN_GDB): Define. | |
1647 | (riscv_create_target_description): Update declaration with | |
1648 | STATIC_IN_GDB. | |
1649 | (riscv_lookup_target_description): New function, only define if | |
1650 | GDBSERVER is not defined. | |
1651 | * arch/riscv.h (riscv_create_target_description): Declare only | |
1652 | when GDBSERVER is defined. | |
1653 | (riscv_lookup_target_description): New declaration when GDBSERVER | |
1654 | is not defined. | |
1655 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... | |
1656 | (riscv_linux_read_features): ...this, and return | |
1657 | riscv_gdbarch_features instead of target_desc. | |
1658 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. | |
1659 | (riscv_linux_read_description): Rename to... | |
1660 | (riscv_linux_read_features): ...this. | |
1661 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
1662 | Update to use riscv_gdbarch_features and | |
1663 | riscv_lookup_target_description. | |
1664 | * riscv-tdep.c (riscv_find_default_target_description): Use | |
1665 | riscv_lookup_target_description instead of | |
1666 | riscv_create_target_description. | |
1667 | ||
373d7ac0 SM |
1668 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
1669 | ||
1670 | * valprint.c (generic_val_print_enum_1): When printing a flag | |
1671 | enum with value 0 and there is no enumerator with value 0, print | |
1672 | just "0" instead of "(unknown: 0x0)". | |
1673 | ||
b29a2df0 SM |
1674 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
1675 | ||
1676 | * valprint.c (generic_val_print_enum_1): Print unknown part of | |
1677 | flag enum in hex. | |
1678 | ||
6740f0cc SM |
1679 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
1680 | ||
1681 | * dwarf2/read.c (update_enumeration_type_from_children): Allow | |
1682 | flag enums to contain duplicate enumerators. | |
1683 | * valprint.c (generic_val_print_enum_1): Update comment. | |
1684 | ||
edd45eb0 SM |
1685 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
1686 | ||
1687 | * dwarf2/read.c: Include "count-one-bits.h". | |
1688 | (update_enumeration_type_from_children): If an enumerator has | |
1689 | multiple bits set, don't treat the enumeration as a "flag enum". | |
1690 | * valprint.c (generic_val_print_enum_1): Assert that enumerators | |
1691 | of flag enums have 0 or 1 bit set. | |
1692 | ||
6d0cf446 BE |
1693 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1694 | ||
1695 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit | |
1696 | conversion. | |
1697 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
1698 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
1699 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
1700 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
1701 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
1702 | ||
7001c1b7 SM |
1703 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
1704 | ||
1705 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. | |
1706 | ||
fdb61c6c SM |
1707 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
1708 | ||
1709 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use | |
1710 | displaced_step_closure_up. | |
1711 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
1712 | (struct displaced_step_closure_up): | |
1713 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
1714 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
1715 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): | |
1716 | Likewise. | |
1717 | * gdbarch.sh (displaced_step_copy_insn): Likewise. | |
1718 | * gdbarch.c, gdbarch.h: Re-generate. | |
1719 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use | |
1720 | displaced_step_closure_up. | |
1721 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
1722 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
1723 | * infrun.h (displaced_step_closure_up): New type alias. | |
1724 | (struct displaced_step_inferior_state) <step_closure>: Change | |
1725 | type to displaced_step_closure_up. | |
1726 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use | |
1727 | displaced_step_closure_up. | |
1728 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
1729 | ||
a4a38eb4 TT |
1730 | 2020-02-14 Tom Tromey <tom@tromey.com> |
1731 | ||
1732 | * minidebug.c (gnu_debug_key): New global. | |
1733 | (find_separate_debug_file_in_section): Use it. | |
1734 | ||
e8217e61 SM |
1735 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
1736 | ||
1737 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an | |
1738 | std::unique_ptr. | |
1739 | * gdbarch.c: Re-generate. | |
1740 | * gdbarch.h: Re-generate. | |
1741 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr | |
1742 | change. | |
1743 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return | |
1744 | type to std::unique_ptr. | |
1745 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
1746 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
1747 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
1748 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
1749 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. | |
1750 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
1751 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
1752 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
1753 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
1754 | ||
d8d83535 SM |
1755 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
1756 | ||
1757 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to | |
1758 | std::unique_ptr. | |
1759 | (displaced_step_clear): Rename to... | |
1760 | (displaced_step_reset): ... this. Just call displaced->reset (). | |
1761 | (displaced_step_clear_cleanup): Rename to... | |
1762 | (displaced_step_reset_cleanup): ... this. | |
1763 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. | |
1764 | (displaced_step_fixup): Likewise. | |
1765 | (resume_1): Likewise. | |
1766 | (handle_inferior_event): Restore child's memory before calling | |
1767 | displaced_step_fixup on the parent. | |
1768 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust | |
1769 | to std::unique_ptr. | |
1770 | <step_closure>: Change type to std::unique_ptr. | |
1771 | ||
5f661e03 SM |
1772 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
1773 | ||
1774 | * arm-tdep.c: Include count-one-bits.h. | |
1775 | (cleanup_block_store_pc): Use count_one_bits. | |
1776 | (cleanup_block_load_pc): Use count_one_bits. | |
1777 | (arm_copy_block_xfer): Use count_one_bits. | |
1778 | (thumb2_copy_block_xfer): Use count_one_bits. | |
1779 | (thumb_copy_pop_pc_16bit): Use count_one_bits. | |
1780 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. | |
1781 | (thumb_get_next_pcs_raw): Use count_one_bits. | |
1782 | (arm_get_next_pcs_raw): Use count_one_bits_l. | |
1783 | * arch/arm.c (bitcount): Remove. | |
1784 | * arch/arm.h (bitcount): Remove. | |
1785 | ||
8084e579 TT |
1786 | 2020-02-14 Tom Tromey <tromey@adacore.com> |
1787 | ||
1788 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): | |
1789 | Update. | |
1790 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. | |
1791 | * dwarf2/loc.c (call_site_find_chain_1): Return | |
1792 | unique_xmalloc_ptr. | |
1793 | (call_site_find_chain): Likewise. | |
1794 | ||
258bf0ee RB |
1795 | 2020-02-14 Richard Biener <rguenther@suse.de> |
1796 | ||
1797 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE | |
1798 | on expression with division operators. | |
1799 | ||
f98a8458 AKS |
1800 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
1801 | ||
1802 | * MAINTAINERS (Write After Approval): Adding myself. | |
1803 | ||
d1437c0e TT |
1804 | 2020-02-12 Tom Tromey <tom@tromey.com> |
1805 | ||
1806 | * event-loop.c (event_data, gdb_event, event_handler_func): | |
1807 | Remove. | |
1808 | ||
3d4560f7 TT |
1809 | 2020-02-12 Tom Tromey <tom@tromey.com> |
1810 | ||
1811 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. | |
1812 | (dwarf2_frame_objfile_data): Add comment. | |
1813 | (find_comp_unit, set_comp_unit): New functions. | |
1814 | (dwarf2_frame_find_fde): Use find_comp_unit. | |
1815 | (dwarf2_build_frame_info): Use set_comp_unit. | |
1816 | ||
21982304 TT |
1817 | 2020-02-12 Tom Tromey <tom@tromey.com> |
1818 | ||
1819 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. | |
1820 | (comp_unit): Don't initialize objfile. | |
1821 | (execute_cfa_program): Add text_offset parameter. | |
1822 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) | |
1823 | (dwarf2_frame_cache): Update. | |
1824 | (dwarf2_build_frame_info): Don't set "objfile" member. | |
1825 | ||
4debb237 TT |
1826 | 2020-02-12 Tom Tromey <tom@tromey.com> |
1827 | ||
1828 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. | |
1829 | (decode_frame_entry): Likewise. | |
1830 | (dwarf2_build_frame_info): Update. | |
1831 | ||
0d404d44 TT |
1832 | 2020-02-12 Tom Tromey <tom@tromey.com> |
1833 | ||
1834 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. | |
1835 | (decode_frame_entry_1): Use the comp_unit obstack. | |
1836 | ||
a7a3ae5c TT |
1837 | 2020-02-12 Tom Tromey <tom@tromey.com> |
1838 | ||
1839 | * dwarf2/frame.c (struct comp_unit): Add initializers and | |
1840 | constructor. | |
1841 | (dwarf2_frame_objfile_data): Store a comp_unit. | |
1842 | (dwarf2_frame_find_fde): Update. | |
1843 | (dwarf2_build_frame_info): Use "new". | |
1844 | ||
a9d65418 TT |
1845 | 2020-02-12 Tom Tromey <tom@tromey.com> |
1846 | ||
1847 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. | |
1848 | (dwarf2_fde_table): Typedef for std::vector. | |
1849 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. | |
1850 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) | |
1851 | (decode_frame_entry): Update. | |
1852 | (dwarf2_build_frame_info): Use "new". | |
1853 | ||
7559c217 CB |
1854 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
1855 | ||
1856 | * arm-tdep.c (arm_gdbarch_init): Update. | |
1857 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, | |
1858 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, | |
1859 | have_neon, is_m>: Change to bool. | |
1860 | ||
aeefc73c CB |
1861 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
1862 | ||
1863 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. | |
1864 | ||
d27b8e5f TT |
1865 | 2020-02-12 Tom Tromey <tom@tromey.com> |
1866 | ||
1867 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. | |
1868 | ||
cd5900f3 HD |
1869 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
1870 | ||
1871 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. | |
1872 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. | |
1873 | ||
f056b22b TT |
1874 | 2020-02-11 Tom Tromey <tom@tromey.com> |
1875 | ||
1876 | * psymtab.h: Update comment. | |
1877 | ||
f92ff6b5 TT |
1878 | 2020-02-11 Tom Tromey <tom@tromey.com> |
1879 | ||
1880 | * gdb_obstack.h (struct auto_obstack): Use | |
1881 | DISABLE_COPY_AND_ASSIGN. | |
1882 | ||
3fd6912b TT |
1883 | 2020-02-11 Tom Tromey <tom@tromey.com> |
1884 | ||
1885 | * dwarf2/frame.h (struct objfile): Don't forward declare. | |
1886 | ||
69ed9b74 CB |
1887 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
1888 | ||
1889 | * cris-tdep.c (cris_supply_gregset): Change signature to match | |
1890 | what struct regset expects. | |
1891 | (cris_regset): New struct. | |
1892 | (fetch_core_registers): Remove. | |
1893 | (cris_iterate_over_regset_sections): New function. | |
1894 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. | |
1895 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. | |
1896 | ||
bda874f6 CB |
1897 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
1898 | ||
1899 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 | |
1900 | registers. | |
1901 | ||
754e1564 CB |
1902 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
1903 | ||
1904 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. | |
1905 | ||
8ddd8e0e SM |
1906 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
1907 | ||
1908 | * configure: Re-generate. | |
1909 | ||
898e7f60 SM |
1910 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
1911 | ||
1912 | * configure: Re-generate. | |
1913 | ||
58df732b SM |
1914 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
1915 | ||
1916 | * acinclude: Update warning.m4 path. | |
1917 | * warning.m4: Move to gdbsupport. | |
1918 | ||
da5bd37e TT |
1919 | 2020-02-11 Tom Tromey <tromey@adacore.com> |
1920 | ||
1921 | * remote.c (remote_console_output): Update. | |
1922 | * printcmd.c (printf_command): Update. | |
1923 | * event-loop.c (gdb_wait_for_event): Update. | |
1924 | * linux-nat.c (sigchld_handler): Update. | |
1925 | * remote-sim.c (gdb_os_write_stdout): Update. | |
1926 | (gdb_os_flush_stdout): Update. | |
1927 | (gdb_os_flush_stderr): Update. | |
1928 | (gdb_os_write_stderr): Update. | |
1929 | * exceptions.c (print_exception): Update. | |
1930 | * remote-fileio.c (remote_fileio_func_read): Update. | |
1931 | (remote_fileio_func_write): Update. | |
1932 | * tui/tui.c (tui_enable): Update. | |
1933 | * tui/tui-interp.c (tui_interp::init): Update. | |
1934 | * utils.c (init_page_info): Update. | |
1935 | (putchar_unfiltered, fputc_unfiltered): Update. | |
1936 | (gdb_flush): Update. | |
1937 | (emit_style_escape): Update. | |
1938 | (flush_wrap_buffer, fputs_maybe_filtered): Update. | |
1939 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) | |
1940 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. | |
1941 | (stderr_file::write): Update. | |
1942 | (stderr_file::puts): Update. | |
1943 | * ui-file.h (ui_file_isatty, ui_file_write) | |
1944 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) | |
1945 | (ui_file_puts): Don't declare. | |
1946 | ||
85f0dd3c TV |
1947 | 2020-02-10 Tom de Vries <tdevries@suse.de> |
1948 | ||
1949 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL | |
1950 | sentinel to char *. | |
1951 | ||
2e927613 TV |
1952 | 2020-02-09 Tom de Vries <tdevries@suse.de> |
1953 | ||
1954 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to | |
1955 | filename if it matches "<artificial>". | |
1956 | ||
6bafc845 HD |
1957 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
1958 | ||
1959 | * windows-tdep.c (struct enum_value_name): New struct. | |
1960 | (create_enum): New function. | |
1961 | (windows_get_siginfo_type): Create and use enum types. | |
1962 | ||
7928d571 HD |
1963 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
1964 | ||
1965 | * NEWS: Mention $_siginfo support for Windows. | |
1966 | * windows-nat.c (handle_exception): Set siginfo_er. | |
1967 | (windows_nat_target::mourn_inferior): Reset siginfo_er. | |
1968 | (windows_xfer_siginfo): New function. | |
1969 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. | |
1970 | * windows-tdep.c (struct windows_gdbarch_data): New struct. | |
1971 | (init_windows_gdbarch_data): New function. | |
1972 | (get_windows_gdbarch_data): New function. | |
1973 | (windows_get_siginfo_type): New function. | |
1974 | (windows_init_abi): Register windows_get_siginfo_type. | |
1975 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. | |
1976 | ||
6751ebae TT |
1977 | 2020-02-08 Tom Tromey <tom@tromey.com> |
1978 | ||
1979 | * dwarf2/read.c (class cutu_reader) <cutu_reader, | |
1980 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. | |
1981 | <keep>: Declare method. | |
1982 | <m_keep>: Remove member. | |
1983 | <~cutu_reader>: Remove. | |
1984 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
1985 | (cutu_reader::cutu_reader): Update. | |
1986 | (cutu_reader::keep): Rename from ~cutu_reader. | |
1987 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
1988 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
1989 | (load_full_comp_unit, dwarf2_read_addr_index) | |
1990 | (read_signatured_type): Update. | |
1991 | ||
135f5437 TT |
1992 | 2020-02-08 Tom Tromey <tom@tromey.com> |
1993 | ||
1994 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove | |
1995 | "want_partial_unit" parameter. | |
1996 | (process_psymtab_comp_unit): Change want_partial_unit to bool. | |
1997 | Inline check for DW_TAG_partial_unit. | |
1998 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. | |
1999 | ||
9f66ff1c TT |
2000 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2001 | ||
2002 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to | |
2003 | read.c. | |
2004 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from | |
2005 | read.c. | |
2006 | ||
c8a7a66f TT |
2007 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2008 | ||
2009 | * dwarf2/read.c (read_address): Move to comp-unit.c. | |
2010 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
2011 | (read_attribute_value, dwarf_decode_lines_1) | |
2012 | (var_decode_location, decode_locdesc): Update. | |
2013 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from | |
2014 | read.c. Remove "cu" parameter. | |
2015 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New | |
2016 | method. | |
2017 | ||
8266302d TT |
2018 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2019 | ||
2020 | * dwarf2/read.c (read_attribute_value, read_indirect_string) | |
2021 | (read_indirect_line_string): Update. | |
2022 | * dwarf2/comp-unit.c (read_offset): Remove. | |
2023 | (read_comp_unit_head): Update. | |
2024 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New | |
2025 | method. | |
2026 | (read_offset): Don't declare. | |
2027 | ||
4057dfde TT |
2028 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2029 | ||
2030 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. | |
2031 | * dwarf2/read.c (struct comp_unit_head): Move to | |
2032 | dwarf2/comp-unit.h. | |
2033 | (enum class rcuh_kind): Move to comp-unit.h. | |
2034 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. | |
2035 | (read_comp_unit_head, error_check_comp_unit_head) | |
2036 | (read_and_check_comp_unit_head): Move to comp-unit.c. | |
2037 | (read_offset, dwarf_unit_type_name): Likewise. | |
2038 | (create_debug_type_hash_table, read_cutu_die_from_dwo) | |
2039 | (cutu_reader::cutu_reader, read_call_site_scope) | |
2040 | (find_partial_die, follow_die_offset): Update. | |
2041 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. | |
2042 | ||
24aa364d TT |
2043 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2044 | ||
2045 | * dwarf2/read.c (read_offset_1): Move to leb.c. | |
2046 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) | |
2047 | (dwarf_decode_macro_bytes): Update. | |
2048 | * dwarf2/leb.c (read_offset): Rename; move from read.c. | |
2049 | * dwarf2/leb.h (read_offset): Declare. | |
2050 | ||
2c7d5afc TT |
2051 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2052 | ||
2053 | * dwarf2/read.c (dwarf2_section_size): Remove. | |
2054 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): | |
2055 | Update. | |
2056 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. | |
2057 | ||
4075cb26 TT |
2058 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2059 | ||
2060 | * dwarf2/read.c (read_initial_length): Move to leb.c. | |
2061 | * dwarf2/leb.h (read_initial_length): Declare. | |
2062 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add | |
2063 | handle_nonstd parameter. | |
2064 | * dwarf2/frame.c (read_initial_length): Remove. | |
2065 | (decode_frame_entry_1): Update. | |
2066 | ||
09ba997f TT |
2067 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2068 | ||
2069 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
2070 | (dwarf_evaluate_loc_desc::get_tls_address) | |
2071 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
2072 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) | |
2073 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) | |
2074 | (dwarf2_compile_property_to_c) | |
2075 | (dwarf2_loc_desc_get_symbol_read_needs) | |
2076 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) | |
2077 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) | |
2078 | (loclist_describe_location, loclist_tracepoint_var_ref) | |
2079 | (loclist_generate_c_location): Update. | |
2080 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. | |
2081 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) | |
2082 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) | |
2083 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. | |
2084 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) | |
2085 | (dwarf2_per_cu_data::addr_size) | |
2086 | (dwarf2_per_cu_data::ref_addr_size) | |
2087 | (dwarf2_per_cu_data::text_offset) | |
2088 | (dwarf2_per_cu_data::addr_type): Now methods. | |
2089 | (per_cu_header_read_in): Make per_cu "const". | |
2090 | (dwarf2_version): Remove. | |
2091 | (dwarf2_per_cu_data::int_type): Now a method. | |
2092 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. | |
2093 | (set_die_type, read_array_type, read_subrange_index_type) | |
2094 | (read_tag_string_type, read_subrange_type): Update. | |
2095 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, | |
2096 | offset_size, ref_addr_size, text_offset, addr_type, version, | |
2097 | objfile, int_type, addr_sized_int_type>: Declare methods. | |
2098 | ||
96c738c0 TT |
2099 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2100 | ||
2101 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: | |
2102 | Move earlier. | |
2103 | ||
8fdd972c TT |
2104 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2105 | ||
2106 | * dwarf2/read.h (dwarf_line_debug): Declare. | |
2107 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. | |
2108 | * dwarf2/read.c: Move line_header code to new files. | |
2109 | (dwarf_line_debug): No longer static. | |
2110 | * dwarf2/line-header.c: New file. | |
2111 | * dwarf2/line-header.h: New file. | |
2112 | ||
03075812 TT |
2113 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2114 | ||
2115 | * dwarf2/read.c (struct line_header) <file_full_name, | |
2116 | file_file_name>: Return unique_xmalloc_ptr. | |
2117 | (line_header::file_file_name): Update. | |
2118 | (line_header::file_full_name): Update. | |
2119 | (dw2_get_file_names_reader): Update. | |
2120 | (macro_start_file): Update. | |
2121 | ||
bb822404 TT |
2122 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2123 | ||
2124 | * dwarf2/read.c (struct line_header) <file_full_name, | |
2125 | file_file_name>: Declare methods. | |
2126 | (dw2_get_file_names_reader): Update. | |
2127 | (file_file_name): Now a method. | |
2128 | (file_full_name): Likewise. | |
2129 | (macro_start_file): Update. | |
2130 | ||
009b64fc TT |
2131 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2132 | ||
2133 | * dwarf2/read.c (dwarf_always_disassemble) | |
2134 | (show_dwarf_always_disassemble): Move to loc.c. | |
2135 | (_initialize_dwarf2_read): Move "always-disassemble" registration | |
2136 | to loc.c. | |
2137 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. | |
2138 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now | |
2139 | static. | |
2140 | (show_dwarf_always_disassemble): Move from read.c. | |
2141 | (_initialize_dwarf2loc): Move always-disassemble from read.c. | |
2142 | ||
5895093f TT |
2143 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2144 | ||
2145 | * dwarf2/read.c (~dwarf2_per_objfile): Update. | |
2146 | (create_quick_file_names_table): Return htab_up. | |
2147 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): | |
2148 | Update. | |
2149 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
2150 | <quick_file_names_table>: Now htab_up. | |
2151 | ||
b3b32279 TT |
2152 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2153 | ||
2154 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. | |
2155 | ||
1d33d811 TT |
2156 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2157 | ||
2158 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. | |
2159 | Rewrite. | |
2160 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. | |
2161 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. | |
2162 | (abbrev_table::abbrev_table): No longer inline. | |
2163 | (ABBREV_HASH_SIZE): Remove. | |
2164 | (abbrev_table::m_abbrevs): Now an htab_up. | |
2165 | ||
86de1d91 TT |
2166 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2167 | ||
2168 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. | |
2169 | (cutu_reader): Update. | |
2170 | (build_type_psymtabs_1): Update. | |
2171 | * dwarf2/abbrev.c (abbrev_table::read): Rename. | |
2172 | (abbrev_table::alloc_abbrev): Update. | |
2173 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. | |
2174 | (abbrev_table::read): New static method, renamed from | |
2175 | abbrev_table_read_table. | |
2176 | (abbrev_table::alloc_abbrev) | |
2177 | (abbrev_table::add_abbrev): Now private. | |
2178 | (abbrev_table::abbrev_table): Now private. | |
2179 | (abbrev_table::m_abbrev_obstack): Now private. Rename. | |
2180 | ||
0335378b TT |
2181 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2182 | ||
2183 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. | |
2184 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now | |
2185 | htab_up. | |
2186 | ||
48b490f2 TT |
2187 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2188 | ||
2189 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now | |
2190 | htab_up. | |
2191 | (lookup_dwo_unit_in_dwp): Update. | |
2192 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate | |
2193 | on obstack. | |
2194 | ||
bc68fb19 TT |
2195 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2196 | ||
2197 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on | |
2198 | obstack. | |
2199 | ||
d15acc42 TT |
2200 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2201 | ||
2202 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete | |
2203 | line_header_hash. | |
2204 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. | |
2205 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: | |
2206 | Change type to htab_up. | |
2207 | ||
eaa5fa8b TT |
2208 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2209 | ||
2210 | * dwarf2/read.c (allocate_type_unit_groups_table): Return | |
2211 | htab_up. Don't allocate on obstack. | |
2212 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. | |
2213 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: | |
2214 | Change type to htab_up. | |
2215 | ||
b0b6a987 TT |
2216 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2217 | ||
2218 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: | |
2219 | Change type to htab_up. | |
2220 | * dwarf2/read.c (create_signatured_type_table_from_index) | |
2221 | (create_signatured_type_table_from_debug_names) | |
2222 | (create_all_type_units, add_type_unit) | |
2223 | (lookup_dwo_signatured_type, lookup_signatured_type) | |
2224 | (process_skeletonless_type_unit): Update. | |
2225 | (create_debug_type_hash_table, create_debug_types_hash_table): | |
2226 | Change type of types_htab. | |
2227 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return | |
2228 | htab_up. Don't allocate on obstack. | |
2229 | (create_cus_hash_table): Change type of cus_htab parameter. | |
2230 | (struct dwo_file) <cus, tus>: Now htab_up. | |
2231 | (lookup_dwo_signatured_type, lookup_dwo_cutu) | |
2232 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) | |
2233 | (queue_and_load_all_dwo_tus): Update. | |
2234 | * dwarf2/index-write.c (write_gdbindex): Update. | |
2235 | (write_debug_names): Update. | |
2236 | ||
39856def TT |
2237 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2238 | ||
2239 | * dwarf2/read.h (struct dwarf2_queue_item): Move from | |
2240 | dwarf2/read.c. Remove "next" member. Add constructor ntad | |
2241 | destructor. | |
2242 | (struct dwarf2_per_objfile) <queue>: New member. | |
2243 | * dwarf2/read.c (struct dwarf2_queue_item): Move to | |
2244 | dwarf2/read.h. | |
2245 | (dwarf2_queue, dwarf2_queue_tail): Remove. | |
2246 | (class dwarf2_queue_guard): Add parameter to constructor. Use | |
2247 | DISABLE_COPY_AND_ASSIGN. | |
2248 | <m_per_objfile>: New member. | |
2249 | <~dwarf2_queue_guard>: Rewrite. | |
2250 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): | |
2251 | Update. | |
2252 | (~dwarf2_queue_item): New. | |
2253 | ||
3e225074 TT |
2254 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2255 | ||
2256 | * dwarf2/read.c (struct die_info) <has_children>: New member. | |
2257 | (dw2_get_file_names_reader): Remove has_children. | |
2258 | (dw2_get_file_names): Update. | |
2259 | (read_cutu_die_from_dwo): Remove has_children. | |
2260 | (cutu_reader::init_tu_and_read_dwo_dies) | |
2261 | (cutu_reader::cutu_reader): Update. | |
2262 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): | |
2263 | Remove has_children. | |
2264 | (build_type_psymtabs_1, process_skeletonless_type_unit) | |
2265 | (load_partial_comp_unit, load_full_comp_unit): Update. | |
2266 | (create_dwo_cu_reader): Remove has_children. | |
2267 | (create_cus_hash_table, read_die_and_children): Update. | |
2268 | (read_full_die_1,read_full_die): Remove has_children. | |
2269 | (read_signatured_type): Update. | |
2270 | (class cutu_reader) <has_children>: Remove. | |
2271 | ||
82ca8957 TT |
2272 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2273 | ||
2274 | * dwarf2/expr.c: Rename from dwarf2expr.c. | |
2275 | * dwarf2/expr.h: Rename from dwarf2expr.h. | |
2276 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. | |
2277 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. | |
2278 | * dwarf2/frame.c: Rename from dwarf2-frame.c. | |
2279 | * dwarf2/frame.h: Rename from dwarf2-frame.h. | |
2280 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. | |
2281 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. | |
2282 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. | |
2283 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. | |
2284 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. | |
2285 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. | |
2286 | * dwarf2/loc.c: Rename from dwarf2loc.c. | |
2287 | * dwarf2/loc.h: Rename from dwarf2loc.h. | |
2288 | * dwarf2/read.c: Rename from dwarf2read.c. | |
2289 | * dwarf2/read.h: Rename from dwarf2read.h. | |
2290 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, | |
2291 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, | |
2292 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, | |
2293 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, | |
2294 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, | |
2295 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, | |
2296 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, | |
2297 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, | |
2298 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, | |
2299 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, | |
2300 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, | |
2301 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, | |
2302 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: | |
2303 | Update. | |
2304 | * Makefile.in (COMMON_SFILES): Update. | |
2305 | (HFILES_NO_SRCDIR): Update. | |
2306 | ||
9e35d499 TT |
2307 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2308 | ||
2309 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. | |
2310 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. | |
2311 | ||
1eba2311 TT |
2312 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2313 | ||
2314 | * dwarf2read.h (struct die_info): Don't declare. | |
2315 | ||
e41c2da2 TT |
2316 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2317 | ||
2318 | * dwarf2read.h (die_info_ptr): Remove typedef. | |
2319 | ||
4fc6c0d5 TT |
2320 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2321 | ||
2322 | * dwarf2read.c (read_call_site_scope) | |
2323 | (handle_data_member_location, dwarf2_add_member_fn) | |
2324 | (mark_common_block_symbol_computed, read_common_block) | |
2325 | (attr_to_dynamic_prop, partial_die_info::read) | |
2326 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) | |
2327 | (dwarf2_symbol_mark_computed, set_die_type): Update. | |
2328 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare | |
2329 | method. | |
2330 | (attr_form_is_block): Don't declare. | |
2331 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. | |
2332 | ||
cd6c91b4 TT |
2333 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2334 | ||
2335 | * dwarf2read.c (dwarf2_find_base_address, ) | |
2336 | (read_call_site_scope, rust_containing_type) | |
2337 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
2338 | (handle_data_member_location, dwarf2_add_member_fn) | |
2339 | (get_alignment, read_structure_type, process_structure_scope) | |
2340 | (mark_common_block_symbol_computed, read_common_block) | |
2341 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) | |
2342 | (partial_die_info::read, read_attribute_value, new_symbol) | |
2343 | (lookup_die_type, dwarf2_get_ref_die_offset) | |
2344 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) | |
2345 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) | |
2346 | (dwarf2_symbol_mark_computed): Update. | |
2347 | * dwarf2/attribute.h (struct attribute) <value_as_address, | |
2348 | form_is_section_offset, form_is_constant, form_is_ref>: Declare | |
2349 | methods. | |
2350 | (value_as_address, attr_form_is_section_offset) | |
2351 | (attr_form_is_constant, attr_form_is_ref): Don't declare. | |
2352 | * dwarf2/attribute.c (attribute::value_as_address) | |
2353 | (attribute::form_is_section_offset, attribute::form_is_constant) | |
2354 | (attribute::form_is_ref): Now methods. | |
2355 | ||
162dce55 TT |
2356 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2357 | ||
2358 | * dwarf2read.c (struct attribute, DW_STRING) | |
2359 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) | |
2360 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) | |
2361 | (attr_form_is_block, attr_form_is_section_offset) | |
2362 | (attr_form_is_constant, attr_form_is_ref): Move. | |
2363 | * dwarf2/attribute.h: New file. | |
2364 | * dwarf2/attribute.c: New file, from dwarf2read.c. | |
2365 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. | |
2366 | ||
3054dd54 TT |
2367 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2368 | ||
2369 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) | |
2370 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): | |
2371 | Move. | |
2372 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. | |
2373 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) | |
2374 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to | |
2375 | abbrev.c. | |
2376 | * dwarf2/abbrev.h: New file. | |
2377 | * dwarf2/abbrev.c: New file, from dwarf2read.c. | |
2378 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. | |
2379 | ||
96b79293 TT |
2380 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2381 | ||
2382 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) | |
2383 | (dwarf2_section_size, dwarf2_get_section_info) | |
2384 | (create_signatured_type_table_from_debug_names) | |
2385 | (create_addrmap_from_aranges, read_debug_names_from_section) | |
2386 | (get_gdb_index_contents_from_section, read_comp_unit_head) | |
2387 | (error_check_comp_unit_head, read_abbrev_offset) | |
2388 | (create_debug_type_hash_table, init_cu_die_reader) | |
2389 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) | |
2390 | (read_comp_units_from_section, create_cus_hash_table) | |
2391 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
2392 | (create_dwp_v2_section, dwarf2_rnglists_process) | |
2393 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) | |
2394 | (abbrev_table_read_table, read_indirect_string_at_offset_from) | |
2395 | (read_indirect_string_from_dwz, read_addr_index_1) | |
2396 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) | |
2397 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
2398 | (fill_in_loclist_baton): Update. | |
2399 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, | |
2400 | get_containing_section, get_bfd_owner, get_bfd_section, | |
2401 | get_file_name, get_id, get_flags, empty, read>: Declare methods. | |
2402 | (dwarf2_read_section, get_section_name, get_section_file_name) | |
2403 | (get_containing_section, get_section_bfd_owner) | |
2404 | (get_section_bfd_section, get_section_name, get_section_file_name) | |
2405 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't | |
2406 | declare. | |
2407 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) | |
2408 | (dwarf2_section_info::get_bfd_owner) | |
2409 | (dwarf2_section_info::get_bfd_section) | |
2410 | (dwarf2_section_info::get_name) | |
2411 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) | |
2412 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) | |
2413 | (dwarf2_section_info::read): Now methods. | |
2414 | * dwarf-index-write.c (class debug_names): Update. | |
2415 | ||
2c86cff9 TT |
2416 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2417 | ||
2418 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): | |
2419 | Move to dwarf2/section.h. | |
2420 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) | |
2421 | (get_section_bfd_section, get_section_name) | |
2422 | (get_section_file_name, get_section_id, get_section_flags) | |
2423 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to | |
2424 | dwarf2/section.c. | |
2425 | * dwarf2/section.h: New file. | |
2426 | * dwarf2/section.c: New file, from dwarf2read.c. | |
2427 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. | |
2428 | ||
f4382c45 TT |
2429 | 2020-02-08 Tom Tromey <tom@tromey.com> |
2430 | ||
2431 | * dwarf2read.h (read_unsigned_leb128): Don't declare. | |
2432 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
2433 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) | |
2434 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. | |
2435 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. | |
2436 | * dwarf2/leb.h: New file, from dwarf2read.c. | |
2437 | * dwarf2/leb.c: New file, from dwarf2read.c. | |
2438 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): | |
2439 | Remove. | |
2440 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. | |
2441 | (COMMON_SFILES): Add dwarf2/leb.c. | |
2442 | ||
01840b7a JB |
2443 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> |
2444 | ||
2445 | GDB 9.1 released. | |
2446 | ||
dfcb27e4 IB |
2447 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
2448 | ||
2449 | PR gdb/25190: | |
2450 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. | |
2451 | * gdb/remote.c (remote_console_output): Update. | |
2452 | * gdb/ui-file.c (fputs_unfiltered): Rename to... | |
2453 | (ui_file_puts): ...this. | |
2454 | * gdb/ui-file.h (ui_file_puts): Add declaration. | |
2455 | * gdb/utils.c (emit_style_escape): Update. | |
2456 | (flush_wrap_buffer): Update. | |
2457 | (fputs_maybe_filtered): Update. | |
2458 | (fputs_unfiltered): Add function. | |
2459 | ||
faa17681 IB |
2460 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
2461 | ||
2462 | * gdb/event-loop.c (gdb_wait_for_event): Update. | |
2463 | * gdb/printcmd.c (printf_command): Update. | |
2464 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. | |
2465 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. | |
2466 | (gdb_os_flush_stderr): Update. | |
2467 | * gdb/remote.c (remote_console_output): Update. | |
2468 | * gdb/ui-file.c (gdb_flush): Rename to... | |
2469 | (ui_file_flush): ...this. | |
2470 | (stderr_file::write): Update. | |
2471 | (stderr_file::puts): Update. | |
2472 | * gdb/ui-file.h (gdb_flush): Rename to... | |
2473 | (ui_file_flush): ...this. | |
2474 | * gdb/utils.c (gdb_flush): Add function. | |
2475 | * gdb/utils.h (gdb_flush): Add declaration. | |
2476 | ||
5abbbe1d TT |
2477 | 2020-02-07 Tom Tromey <tromey@adacore.com> |
2478 | ||
2479 | PR breakpoints/24915: | |
2480 | * source.c (find_and_open_source): Do not check basenames_may_differ. | |
2481 | ||
919adfe8 TT |
2482 | 2020-02-07 Tom Tromey <tom@tromey.com> |
2483 | ||
2484 | * README: Update gdbserver documentation. | |
2485 | * gdbserver: Move to top level. | |
2486 | * configure.tgt (build_gdbserver): Remove. | |
2487 | * configure.ac: Remove --enable-gdbserver. | |
2488 | * configure: Rebuild. | |
2489 | * Makefile.in (distclean): Don't mention gdbserver. | |
2490 | ||
1d5d29e7 SV |
2491 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
2492 | ||
2493 | * source-cache.c (source_cache::ensure): Surround | |
2494 | get_plain_source_lines with a try/catch. | |
2495 | (source_cache::get_line_charpos): Get rid of try/catch | |
2496 | and only check for the return value of "ensure". | |
2497 | * tui/tui-source.c (tui_source_window::set_contents): | |
2498 | Simplify "nlines" calculation. | |
2499 | ||
6eb1129c SV |
2500 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
2501 | ||
2502 | * MAINTAINERS (Write After Approval): Add myself. | |
2503 | ||
c6a42d11 CB |
2504 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
2505 | ||
2506 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class | |
2507 | function call. | |
2508 | ||
c8ecdda6 CB |
2509 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
2510 | ||
2511 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. | |
2512 | ||
f6480e70 MR |
2513 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> |
2514 | ||
2515 | * nat/riscv-linux-tdesc.h: New file. | |
2516 | * nat/riscv-linux-tdesc.c: New file, taking code from... | |
2517 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
2518 | ... here. | |
2519 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to | |
2520 | NATDEPFILES. | |
2521 | ||
dcc9fbc6 AB |
2522 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> |
2523 | ||
2524 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that | |
2525 | we don't set the fake simulator ptid to the null_ptid. | |
2526 | ||
719546c4 SM |
2527 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> |
2528 | ||
2529 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. | |
2530 | * gdbthread.h (class thread_info) <resumed>: Likewise. | |
2531 | * infrun.c (resume_1): Likewise. | |
2532 | (proceed): Likewise. | |
2533 | (infrun_thread_stop_requested): Likewise. | |
2534 | (stop_all_threads): Likewise. | |
2535 | (handle_inferior_event): Likewise. | |
2536 | (restart_threads): Likewise. | |
2537 | (finish_step_over): Likewise. | |
2538 | (keep_going_stepped_thread): Likewise. | |
2539 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. | |
2540 | (linux_handle_extended_wait): Likewise. | |
2541 | * record-btrace.c (get_thread_current_frame_id): Likewise. | |
2542 | * record-full.c (record_full_wait_1): Likewise. | |
2543 | * remote.c (remote_target::process_initial_stop_replies): Likewise. | |
2544 | * target.c (target_resume): Likewise. | |
2545 | * thread.c (set_running_thread): Likewise. | |
2546 | ||
e409c542 AKS |
2547 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
2548 | ||
2549 | * f-valprint.c (f77_print_array_1): Changed datatype of index | |
2550 | variable to LONGEST from int to enable it to contain bound | |
2551 | values correctly. | |
2552 | ||
ee98c0da MR |
2553 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> |
2554 | ||
2555 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. | |
2556 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer | |
2557 | offsets according to FLEN determined. | |
2558 | (riscv_linux_nat_target::read_description): Determine FLEN | |
2559 | dynamically. | |
2560 | (riscv_linux_nat_target::fetch_registers): Size regset buffer | |
2561 | according to FLEN determined. | |
2562 | (riscv_linux_nat_target::store_registers): Likewise. | |
2563 | ||
aa66aac4 SV |
2564 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
2565 | ||
2566 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
2567 | when reg->group is empty and reggroup is not. | |
2568 | ||
fd9faca8 TT |
2569 | 2020-01-31 Tom Tromey <tromey@adacore.com> |
2570 | ||
2571 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): | |
2572 | Call beneath target's mourn_inferior after unpushing. | |
2573 | ||
42330a68 AB |
2574 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
2575 | ||
2576 | PR tui/9765 | |
2577 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't | |
2578 | have enough lines to fill the screen, still return the lowest | |
2579 | address we found. | |
2580 | ||
7a27a45b AB |
2581 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
2582 | ||
2583 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', | |
2584 | '-', '<', and '>' commands. | |
2585 | ||
c47f70e2 PA |
2586 | 2020-01-29 Pedro Alves <palves@redhat.com> |
2587 | Sergio Durigan Junior <sergiodj@redhat.com> | |
2588 | ||
2589 | * infcmd.c (construct_inferior_arguments): Assert that | |
2590 | 'argc' is greater than 0. | |
2591 | ||
5133a315 LM |
2592 | 2020-01-29 Luis Machado <luis.machado@linaro.org> |
2593 | ||
2594 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. | |
2595 | (BRK_INSN_MASK): Define to 0xd4200000. | |
2596 | (aarch64_program_breakpoint_here_p): New function. | |
2597 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. | |
2598 | * arch-utils.c (default_program_breakpoint_here_p): Moved from | |
2599 | breakpoint.c. | |
2600 | * arch-utils.h (default_program_breakpoint_here_p): Moved from | |
2601 | breakpoint.h | |
2602 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and | |
2603 | call gdbarch_program_breakpoint_here_p. | |
2604 | (program_breakpoint_here): Moved to arch-utils.c, renamed to | |
2605 | default_program_breakpoint_here_p, changed return type to bool and | |
2606 | simplified. | |
2607 | * breakpoint.h (program_breakpoint_here): Moved prototype to | |
2608 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed | |
2609 | return type to bool. | |
2610 | * gdbarch.c: Regenerate. | |
2611 | * gdbarch.h: Regenerate. | |
2612 | * gdbarch.sh (program_breakpoint_here_p): New method. | |
2613 | * infrun.c (handle_signal_stop): Call | |
2614 | gdbarch_program_breakpoint_here_p. | |
2615 | ||
168f8c6b TT |
2616 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2617 | ||
2618 | * ctfread.c (struct ctf_fp_info): Reindent. | |
2619 | (_initialize_ctfread): Remove. | |
2620 | ||
128a391f TT |
2621 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2622 | ||
2623 | * psymtab.c (partial_map_expand_apply) | |
2624 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
2625 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
2626 | (psym_print_stats, psym_expand_symtabs_for_function) | |
2627 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
2628 | (psym_expand_symtabs_matching) | |
2629 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
2630 | (maintenance_check_psymtabs): Use new methods. | |
2631 | * psympriv.h (struct partial_symtab) <readin_p, | |
2632 | get_compunit_symtab>: New methods. | |
2633 | <readin, compunit_symtab>: Remove members. | |
2634 | (struct standard_psymtab): New. | |
2635 | (struct legacy_psymtab): Derive from standard_psymtab. | |
2636 | * dwarf2read.h (struct dwarf2_psymtab): Derive from | |
2637 | standard_psymtab. | |
2638 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. | |
2639 | ||
0494dbec TT |
2640 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2641 | ||
2642 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call | |
2643 | read_dependencies. Add assert. | |
2644 | * psymtab.c (partial_symtab::read_dependencies): New method. | |
2645 | * psympriv.h (struct partial_symtab) <read_dependencies>: New | |
2646 | method. | |
2647 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. | |
2648 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call | |
2649 | read_dependencies. | |
2650 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. | |
2651 | Add assert. | |
2652 | ||
8566b89b TT |
2653 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2654 | ||
2655 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. | |
2656 | Call expand_psymtab. | |
2657 | (xcoff_read_symtab): Call expand_psymtab. | |
2658 | (xcoff_start_psymtab, xcoff_end_psymtab): Set | |
2659 | legacy_expand_psymtab. | |
2660 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New | |
2661 | method. | |
2662 | (struct legacy_psymtab) <expand_psymtab>: Implement. | |
2663 | <legacy_expand_psymtab>: New member. | |
2664 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. | |
2665 | (parse_partial_symbols): Set legacy_expand_psymtab. | |
2666 | (psymtab_to_symtab_1): Change argument order. Call | |
2667 | expand_psymtab. | |
2668 | (new_psymtab): Set legacy_expand_psymtab. | |
2669 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. | |
2670 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call | |
2671 | expand_psymtab. | |
2672 | (dwarf2_psymtab::expand_psymtab): Rename from | |
2673 | psymtab_to_symtab_1. Call expand_psymtab. | |
2674 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. | |
2675 | (dbx_end_psymtab): Likewise. | |
2676 | (dbx_psymtab_to_symtab_1): Change argument order. Call | |
2677 | expand_psymtab. | |
2678 | (dbx_read_symtab): Call expand_psymtab. | |
2679 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. | |
2680 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. | |
2681 | (ctf_psymtab::read_symtab): Call expand_psymtab. | |
2682 | ||
077cbab2 TT |
2683 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2684 | ||
2685 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. | |
2686 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" | |
2687 | messages. | |
2688 | * mdebugread.c (mdebug_read_symtab): Remove prints. | |
2689 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add | |
2690 | assert. | |
2691 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. | |
2692 | ||
891813be TT |
2693 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2694 | ||
2695 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) | |
2696 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) | |
2697 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use | |
2698 | legacy_symtab. | |
2699 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. | |
2700 | * psymtab.c (psymtab_to_symtab): Call method. | |
2701 | (dump_psymtab): Update. | |
2702 | * psympriv.h (struct partial_symtab): Add virtual destructor. | |
2703 | <read_symtab>: New method. | |
2704 | (struct legacy_symtab): New. | |
2705 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. | |
2706 | (struct pst_map) <pst>: Now a legacy_psymtab. | |
2707 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) | |
2708 | (new_psymtab): Use legacy_psymtab. | |
2709 | * dwarf2read.h (struct dwarf2_psymtab): New. | |
2710 | (struct dwarf2_per_cu_data) <psymtab>: Use it. | |
2711 | * dwarf2read.c (dwarf2_create_include_psymtab) | |
2712 | (dwarf2_build_include_psymtabs, create_type_unit_group) | |
2713 | (create_partial_symtab, process_psymtab_comp_unit_reader) | |
2714 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) | |
2715 | (set_partial_user): Use dwarf2_psymtab. | |
2716 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. | |
2717 | (psymtab_to_symtab_1, process_full_comp_unit) | |
2718 | (process_full_type_unit, dwarf2_ranges_read) | |
2719 | (dwarf2_get_pc_bounds, psymtab_include_file_name) | |
2720 | (dwarf_decode_lines): Use dwarf2_psymtab. | |
2721 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. | |
2722 | (add_address_entry_worker, write_one_signatured_type) | |
2723 | (recursively_count_psymbols, recursively_write_psymbols) | |
2724 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) | |
2725 | (write_debug_names): Likewise. | |
2726 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. | |
2727 | <pst>: Now a legacy_psymtab. | |
2728 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. | |
2729 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) | |
2730 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. | |
2731 | * ctfread.c (struct ctf_psymtab): New. | |
2732 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a | |
2733 | ctf_psymtab. | |
2734 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. | |
2735 | (create_partial_symtab): Return a ctf_psymtab. | |
2736 | (scan_partial_symbols): Update. | |
2737 | ||
c3693a1d TT |
2738 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2739 | ||
2740 | * xcoffread.c (xcoff_start_psymtab): Use new. | |
2741 | * psymtab.c (partial_symtab::partial_symtab): New constructor, | |
2742 | renamed from start_psymtab_common. | |
2743 | * psympriv.h (struct partial_symtab): Add new constructor. | |
2744 | (start_psymtab_common): Don't declare. | |
2745 | * mdebugread.c (parse_partial_symbols): Use new. | |
2746 | * dwarf2read.c (create_partial_symtab): Use new. | |
2747 | * dbxread.c (start_psymtab): Use new. | |
2748 | * ctfread.c (create_partial_symtab): Use new. | |
2749 | ||
32caafd0 TT |
2750 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2751 | ||
2752 | * xcoffread.c (xcoff_end_psymtab): Use new. | |
2753 | * psymtab.c (start_psymtab_common): Use new. | |
2754 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. | |
2755 | Update. | |
2756 | * psympriv.h (struct partial_symtab): Add parameters to | |
2757 | constructor. Don't inline. | |
2758 | (allocate_psymtab): Don't declare. | |
2759 | * mdebugread.c (new_psymtab): Use new. | |
2760 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. | |
2761 | * dbxread.c (dbx_end_psymtab): Use new. | |
2762 | ||
abaa2f23 TT |
2763 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2764 | ||
2765 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from | |
2766 | allocate_psymtab. Update documentation. | |
2767 | * psymtab.c (psymtab_storage::install_psymtab): Rename from | |
2768 | allocate_psymtab. Do not use new. | |
2769 | (allocate_psymtab): Use new. Update. | |
2770 | ||
6d94535f TT |
2771 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2772 | ||
2773 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
2774 | * psymtab.c (psym_print_stats): Update. | |
2775 | * psympriv.h (struct partial_symtab) <readin, | |
2776 | psymtabs_addrmap_supported, anonymous>: Now bool. | |
2777 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
2778 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) | |
2779 | (build_type_psymtabs_reader, psymtab_to_symtab_1) | |
2780 | (process_full_comp_unit, process_full_type_unit): Update. | |
2781 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
2782 | * ctfread.c (psymtab_to_symtab): Update. | |
2783 | ||
6f17252b TT |
2784 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2785 | ||
2786 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. | |
2787 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. | |
2788 | * psymtab.c (psymtab_storage): Delete psymtabs. | |
2789 | (psymtab_storage::allocate_psymtab): Use new. | |
2790 | (psymtab_storage::discard_psymtab): Use delete. | |
2791 | * psympriv.h (struct partial_symtab): Add constructor and | |
2792 | initializers. | |
2793 | ||
f6f1cebc TT |
2794 | 2020-01-26 Tom Tromey <tom@tromey.com> |
2795 | ||
2796 | * machoread.c: Do not include psympriv.h. | |
2797 | ||
e47e48f6 PW |
2798 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2799 | ||
2800 | * NEWS: Mention the new option and the set/show commands. | |
2801 | ||
a2fedca9 PW |
2802 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2803 | ||
2804 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) | |
2805 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) | |
2806 | (validate_exec_file): New variables, enums, functions. | |
2807 | (exec_file_locate_attach, print_section_info): Style the filenames. | |
2808 | (_initialize_exec): Install show_exec_file_mismatch_command and | |
2809 | set_exec_file_mismatch_command. | |
2810 | * gdbcore.h (validate_exec_file): Declare. | |
2811 | * infcmd.c (attach_command): Call validate_exec_file. | |
2812 | * remote.c ( remote_target::remote_add_inferior): Likewise. | |
2813 | ||
7ffa82e1 AB |
2814 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
2815 | ||
2816 | * frame.c (find_frame_sal): Move call to get_next_frame into more | |
2817 | inner scope. | |
2818 | * inline-frame.c (inilne_state) <inline_state>: Update argument | |
2819 | types. | |
2820 | (inilne_state) <skipped_symbol>: Rename to... | |
2821 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. | |
2822 | (skip_inline_frames): Build vector of skipped symbols and use this | |
2823 | to reate the inline_state. | |
2824 | (inline_skipped_symbol): Add a comment and some assertions, fetch | |
2825 | skipped symbol from the list. | |
2826 | ||
3d92a3e3 AB |
2827 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
2828 | ||
2829 | * buildsym.c (lte_is_less_than): Delete. | |
2830 | (buildsym_compunit::end_symtab_with_blockvector): Create local | |
2831 | lambda function to sort line table entries, and use | |
2832 | std::stable_sort instead of std::sort. | |
2833 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence | |
2834 | markers when looking for a previous line. | |
2835 | ||
94a72be7 AB |
2836 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
2837 | ||
2838 | * dwarf2read.c (lnp_state_machine::record_line): Include | |
2839 | end_sequence parameter in debug print out. Record the line if we | |
2840 | are at an end_sequence marker even if it's not the start of a | |
2841 | statement. | |
2842 | * symmisc.c (maintenance_print_one_line_table): Print end of | |
2843 | sequence markers with 'END' not '0'. | |
2844 | ||
53af73bf PA |
2845 | 2020-01-24 Pedro Alves <palves@redhat.com> |
2846 | ||
2847 | PR gdb/25410 | |
2848 | * thread.c (scoped_restore_current_thread::restore): Use | |
2849 | switch_to_inferior_no_thread. | |
2850 | * exec.c: Include "progspace-and-thread.h". | |
2851 | (add_target_sections, remove_target_sections): | |
2852 | scoped_restore_current_pspace_and_thread instead of | |
2853 | scoped_restore_current_thread. | |
2854 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace | |
2855 | and aspace to the inferior before calling clone_program_space. | |
2856 | Remove stale comment. | |
2857 | ||
3050c6f4 CB |
2858 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
2859 | ||
2860 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... | |
2861 | (arm_netbsd_nat_target::fetch_registers): ...this. | |
2862 | (arm_nbsd_nat_target::store_registers): Rename to... | |
2863 | (arm_netbsd_nat_target::store_registers): ...this. | |
2864 | ||
73685c7e CB |
2865 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
2866 | ||
2867 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
2868 | register_t. | |
2869 | ||
89203d40 CB |
2870 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
2871 | ||
2872 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): | |
2873 | Update comment. | |
2874 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): | |
2875 | Likewise. | |
2876 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. | |
2877 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to | |
2878 | the correct replacement (iterate_over_regset_sections). | |
2879 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): | |
2880 | Update comment. | |
2881 | ||
1ba1ac88 AB |
2882 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> |
2883 | ||
2884 | PR gdb/23718 | |
2885 | * gdb/python/python.c (execute_gdb_command): Call | |
2886 | async_enable_stdin in catch block. | |
2887 | ||
f3364a6d AB |
2888 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
2889 | ||
2890 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with | |
2891 | SWITCH_THRU_ALL_UIS. | |
2892 | ||
733d0a67 AB |
2893 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
2894 | ||
2895 | PR tui/9765 | |
2896 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header | |
2897 | comment, add extra parameter, and update to store previous symbol | |
2898 | when appropriate. | |
2899 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, | |
2900 | add extra parameter. | |
2901 | * tui/tui-disasm.c (tui_disassemble): Update header comment, | |
2902 | remove unneeded parameter, add try/catch around gdb_print_insn, | |
2903 | rewrite to add items to asm_lines vector. | |
2904 | (tui_find_backward_disassembly_start_address): New function. | |
2905 | (tui_find_disassembly_address): Updated throughout. | |
2906 | (tui_disasm_window::set_contents): Update for changes to | |
2907 | tui_disassemble. | |
2908 | (tui_disasm_window::do_scroll_vertical): No need to adjust the | |
2909 | number of lines to scroll. | |
2910 | ||
b3b3bada SM |
2911 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
2912 | ||
2913 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. | |
2914 | (SECT_OFF_DATA): Likewise. | |
2915 | (SECT_OFF_RODATA): Likewise. | |
2916 | (SECT_OFF_TEXT): Likewise. | |
2917 | (SECT_OFF_BSS): Likewise. | |
2918 | (struct objfile) <text_section_offset, data_section_offset>: New | |
2919 | methods. | |
2920 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use | |
2921 | objfile::text_section_offset. | |
2922 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. | |
2923 | * coffread.c (coff_symtab_read): Likewise. | |
2924 | (enter_linenos): Likewise. | |
2925 | (process_coff_symbol): Likewise. | |
2926 | * ctfread.c (get_objfile_text_range): Likewise. | |
2927 | * dtrace-probe.c (dtrace_probe::get_relocated_address): | |
2928 | Use objfile::data_section_offset. | |
2929 | * dwarf2-frame.c (execute_cfa_program): Use | |
2930 | objfile::text_section_offset. | |
2931 | (dwarf2_frame_find_fde): Likewise. | |
2932 | * dwarf2read.c (create_addrmap_from_index): Likewise. | |
2933 | (create_addrmap_from_aranges): Likewise. | |
2934 | (dw2_find_pc_sect_compunit_symtab): Likewise. | |
2935 | (process_psymtab_comp_unit_reader): Likewise. | |
2936 | (add_partial_symbol): Likewise. | |
2937 | (add_partial_subprogram): Likewise. | |
2938 | (process_full_comp_unit): Likewise. | |
2939 | (read_file_scope): Likewise. | |
2940 | (read_func_scope): Likewise. | |
2941 | (read_lexical_block_scope): Likewise. | |
2942 | (read_call_site_scope): Likewise. | |
2943 | (dwarf2_rnglists_process): Likewise. | |
2944 | (dwarf2_ranges_process): Likewise. | |
2945 | (dwarf2_ranges_read): Likewise. | |
2946 | (dwarf_decode_lines_1): Likewise. | |
2947 | (new_symbol): Likewise. | |
2948 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
2949 | (dwarf2_per_cu_text_offset): Likewise. | |
2950 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
2951 | * hppa-tdep.c (read_unwind_info): Likewise. | |
2952 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. | |
2953 | * psympriv.h (struct partial_symtab): Likewise. | |
2954 | * psymtab.c (find_pc_sect_psymtab): Likewise. | |
2955 | * solib-svr4.c (enable_break): Likewise. | |
2956 | * stap-probe.c (relocate_address): Use | |
2957 | objfile::data_section_offset. | |
2958 | * xcoffread.c (enter_line_range): Use | |
2959 | objfile::text_section_offset. | |
2960 | (read_xcoff_symtab): Likewise. | |
2961 | ||
ab53f382 SM |
2962 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
2963 | ||
2964 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` | |
2965 | declaration to narrower scopes. | |
2966 | ||
e7eee665 SM |
2967 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
2968 | ||
2969 | * darwin-nat.h (struct darwin_exception_msg, enum | |
2970 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): | |
2971 | Move up. | |
2972 | (class darwin_nat_target) <wait_1, check_new_threads, | |
2973 | decode_exception_message, decode_message, stop_inferior, | |
2974 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. | |
2975 | * darwin-nat.c (darwin_check_new_threads): Rename to... | |
2976 | (darwin_nat_target::check_new_threads): ... this. | |
2977 | (darwin_suspend_inferior_it): Remove. | |
2978 | (darwin_decode_exception_message): Rename to... | |
2979 | (darwin_nat_target::decode_exception_message): ... this. | |
2980 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. | |
2981 | (darwin_decode_message): Rename to... | |
2982 | (darwin_nat_target::decode_message): ... this. | |
2983 | (cancel_breakpoint): Rename to... | |
2984 | (darwin_nat_target::cancel_breakpoint): ... this. | |
2985 | (darwin_wait): Rename to... | |
2986 | (darwin_nat_target::wait_1): ... this. Use range-based for loop | |
2987 | instead of iterate_over_inferiors. | |
2988 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. | |
2989 | (darwin_stop_inferior): Rename to... | |
2990 | (darwin_nat_target::stop_inferior): ... this. | |
2991 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. | |
2992 | (darwin_init_thread_list): Rename to... | |
2993 | (darwin_nat_target::init_thread_list): ... this. | |
2994 | (darwin_ptrace_him): Rename to... | |
2995 | (darwin_nat_target::ptrace_him): ... this. | |
2996 | (darwin_nat_target::create_inferior): Pass lambda function to | |
2997 | fork_inferior. | |
2998 | (darwin_nat_target::detach): Call stop_inferior instead of | |
2999 | darwin_stop_inferior. | |
3000 | * fork-inferior.h (fork_inferior): Change init_trace_fun | |
3001 | parameter to gdb::function_view. | |
3002 | * fork-inferior.c (fork_inferior): Likewise. | |
3003 | ||
c162ed3e HD |
3004 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> |
3005 | ||
3006 | * i386-cygwin-tdep.c (core_process_module_section): Update. | |
3007 | * windows-nat.c (struct lm_info_windows): Add text_offset. | |
3008 | (windows_xfer_shared_libraries): Update. | |
3009 | * windows-tdep.c (windows_xfer_shared_library): | |
3010 | Add text_offset_cached argument. | |
3011 | * windows-tdep.h (windows_xfer_shared_library): Update. | |
3012 | ||
a1237872 SM |
3013 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
3014 | ||
3015 | * gdbarch.sh: Add declaration for _initialize_gdbarch. | |
3016 | ||
b3ee6dd9 SM |
3017 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
3018 | ||
3019 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. | |
3020 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, | |
3021 | replace with range-based for. | |
3022 | (gdbsim_interrupt_inferior): Remove. | |
3023 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use | |
3024 | with a range-based for. Inline code from | |
3025 | gdbsim_interrupt_inferior. | |
3026 | ||
f9fac3c8 SM |
3027 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
3028 | ||
3029 | * infrun.c (proceed): Fix indentation. | |
3030 | ||
f6474de9 TT |
3031 | 2020-01-21 Tom Tromey <tromey@adacore.com> |
3032 | ||
3033 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. | |
3034 | * python/python.c (python_extension_ops): Update. | |
3035 | (gdbpy_colorize): New function. | |
3036 | * python/lib/gdb/__init__.py (colorize): New function. | |
3037 | * extension.h (ext_lang_colorize): Declare. | |
3038 | * extension.c (ext_lang_colorize): New function. | |
3039 | * extension-priv.h (struct extension_language_ops) <colorize>: New | |
3040 | member. | |
3041 | * cli/cli-style.c (_initialize_cli_style): Update help text. | |
3042 | ||
f0c702d4 LM |
3043 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
3044 | ||
3045 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) | |
3046 | <cond>: Change type to bool. | |
3047 | (aarch64_displaced_step_b_cond): Update cond to use bool type. | |
3048 | (aarch64_displaced_step_cb): Likewise. | |
3049 | (aarch64_displaced_step_tb): Likewise. | |
3050 | ||
1ab139e5 LM |
3051 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
3052 | ||
3053 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging | |
3054 | output. | |
3055 | ||
0c271889 LM |
3056 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
3057 | ||
3058 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) | |
3059 | <pc_adjust>: Adjust the documentation. | |
3060 | (aarch64_displaced_step_fixup): Check if PC really moved before | |
3061 | adjusting it. | |
3062 | ||
4d89c1c7 TT |
3063 | 2020-01-19 Tom Tromey <tom@tromey.com> |
3064 | ||
3065 | * disasm.c (~gdb_disassembler): New destructor. | |
3066 | (gdb_buffered_insn_length): Call disassemble_free_target. | |
3067 | * disasm.h (class gdb_disassembler): Declare destructor. Use | |
3068 | DISABLE_COPY_AND_ASSIGN. | |
3069 | ||
c0ab21c2 TT |
3070 | 2020-01-19 Tom Tromey <tom@tromey.com> |
3071 | ||
3072 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. | |
3073 | (die_reader_func_ftype): Remove. | |
3074 | (cutu_reader): New class. | |
3075 | (dw2_get_file_names_reader): Remove "data" parameter. | |
3076 | (dw2_get_file_names): Use cutu_reader. | |
3077 | (create_debug_type_hash_table): Update. | |
3078 | (read_cutu_die_from_dwo): Update comment. | |
3079 | (lookup_dwo_unit): Add dwo_name parameter. | |
3080 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove | |
3081 | die_reader_func_ftype and data parameters. | |
3082 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. | |
3083 | Remove die_reader_func_ftype and data parameters. | |
3084 | (~cutu_reader): New; from init_cutu_and_read_dies. | |
3085 | (cutu_reader::cutu_reader): Rename from | |
3086 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype | |
3087 | and data parameters. | |
3088 | (init_cutu_and_read_dies_simple): Remove. | |
3089 | (struct process_psymtab_comp_unit_data): Remove. | |
3090 | (process_psymtab_comp_unit_reader): Remove data parameter; add | |
3091 | want_partial_unit and pretend_language parameters. | |
3092 | (process_psymtab_comp_unit): Use cutu_reader. | |
3093 | (build_type_psymtabs_reader): Remove data parameter. | |
3094 | (build_type_psymtabs_1): Use cutu_reader. | |
3095 | (process_skeletonless_type_unit): Likewise. | |
3096 | (load_partial_comp_unit_reader): Remove. | |
3097 | (load_partial_comp_unit): Use cutu_reader. | |
3098 | (load_full_comp_unit_reader): Remove. | |
3099 | (load_full_comp_unit): Use cutu_reader. | |
3100 | (struct create_dwo_cu_data): Remove. | |
3101 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and | |
3102 | dwo_unit parameters. | |
3103 | (create_cus_hash_table): Use cutu_reader. | |
3104 | (struct dwarf2_read_addr_index_data): Remove. | |
3105 | (dwarf2_read_addr_index_reader): Remove. | |
3106 | (dwarf2_read_addr_index): Use cutu_reader. | |
3107 | (read_signatured_type_reader): Remove. | |
3108 | (read_signatured_type): Use cutu_reader. | |
3109 | ||
45bbae5c TT |
3110 | 2020-01-19 Tom Tromey <tom@tromey.com> |
3111 | ||
3112 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. | |
3113 | * tui/tui-wingeneral.h (class tui_suppress_output): New. | |
3114 | (tui_wrefresh): Declare. | |
3115 | * tui/tui-wingeneral.c (suppress_output): New global. | |
3116 | (tui_suppress_output, ~tui_suppress_output): New constructor and | |
3117 | destructor. | |
3118 | (tui_wrefresh): New function. | |
3119 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. | |
3120 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. | |
3121 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare | |
3122 | method. | |
3123 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call | |
3124 | tui_wrefresh. | |
3125 | (tui_data_window::no_refresh): New method. | |
3126 | (tui_data_item_window::refresh_window): Call tui_wrefresh. | |
3127 | (tui_reg_command): Use tui_suppress_output | |
3128 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. | |
3129 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New | |
3130 | method. | |
3131 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. | |
3132 | ||
4f13c1c0 TT |
3133 | 2020-01-19 Tom Tromey <tom@tromey.com> |
3134 | ||
3135 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
3136 | Handle case where symtab is null. | |
3137 | ||
fa47e446 SM |
3138 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
3139 | ||
3140 | * linux-fork.c (one_fork_p): Simplify. | |
3141 | ||
26f42329 SM |
3142 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
3143 | ||
3144 | * top.c (struct qt_args): Remove. | |
3145 | (kill_or_detach): Change return type to void, replace `void *` | |
3146 | parameter with a proper one. | |
3147 | (print_inferior_quit_action): Likewise. | |
3148 | (quit_confirm): Use range-based for loop to iterate over inferiors. | |
3149 | (quit_force): Likewise. | |
3150 | ||
a9ac81b1 SM |
3151 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
3152 | ||
3153 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace | |
3154 | `void *` parameter with proper parameters. | |
3155 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. | |
3156 | (print_one_inferior): Change return type to void, replace `void *` | |
3157 | parameter with proper parameters. | |
3158 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over | |
3159 | inferiors. | |
3160 | (get_other_inferior): Remove. | |
3161 | (mi_cmd_remove_inferior): Use range-based loop to iterate over | |
3162 | inferiors. | |
3163 | ||
788eca49 SM |
3164 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
3165 | ||
3166 | * mi/mi-interp.c (report_initial_inferior): Remove. | |
3167 | (mi_interp::init): Use range-based for to iterate over inferiors. | |
3168 | ||
d9bc85b6 SM |
3169 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
3170 | ||
3171 | * python/py-inferior.c (build_inferior_list): Remove. | |
3172 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. | |
3173 | ||
40c94099 CB |
3174 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> |
3175 | ||
3176 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). | |
3177 | (btrace_stitch_trace): Likewise. | |
3178 | * charset.c (intermediate_encoding): Likewise (vaild). | |
3179 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). | |
3180 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). | |
3181 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). | |
3182 | ||
e0cdfe3c HD |
3183 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> |
3184 | ||
3185 | * windows-tdep.c (windows_get_tlb_type): | |
3186 | Add rtl_user_process_parameters type. | |
3187 | ||
790f1718 PA |
3188 | 2020-01-16 Pedro Alves <palves@redhat.com> |
3189 | Norbert Lange <nolange79@gmail.com> | |
3190 | ||
3191 | PR build/24805 | |
3192 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. | |
3193 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) | |
3194 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) | |
3195 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) | |
3196 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) | |
3197 | (ps_plog): Redeclare exported functions with default visibility. | |
3198 | ||
3112ed97 NA |
3199 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> |
3200 | ||
3201 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle | |
3202 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. | |
3203 | ||
8dc3273e SM |
3204 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> |
3205 | ||
3206 | * infcmd.c (post_create_inferior): Use get_thread_regcache | |
3207 | instead of get_current_regcache. | |
3208 | ||
ff47f4f0 TT |
3209 | 2020-01-14 Tom Tromey <tom@tromey.com> |
3210 | ||
3211 | PR symtab/12535: | |
3212 | * python/python.c (gdbpy_decode_line): Treat empty string the same | |
3213 | as no argument. | |
3214 | ||
975f45b7 TT |
3215 | 2020-01-14 Tom Tromey <tom@tromey.com> |
3216 | ||
3217 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). | |
3218 | ||
25e57356 TT |
3219 | 2020-01-14 Tom Tromey <tom@tromey.com> |
3220 | ||
3221 | * nat/linux-btrace.c: Don't include <config.h>. | |
3222 | * nat/linux-ptrace.c: Don't include <config.h>. | |
3223 | * nat/x86-linux-dregs.c: Don't include <config.h>. | |
3224 | ||
05ea2a05 TT |
3225 | 2020-01-14 Tom Tromey <tom@tromey.com> |
3226 | ||
3227 | * configure: Rebuild. | |
3228 | * configure.ac: Move many checks to ../gdbsupport/common.m4. | |
3229 | ||
01027315 TT |
3230 | 2020-01-14 Tom Tromey <tom@tromey.com> |
3231 | ||
3232 | * nat/x86-linux-dregs.c: Include configh.h. | |
3233 | * nat/linux-ptrace.c: Include configh.h. | |
3234 | * nat/linux-btrace.c: Include configh.h. | |
3235 | * defs.h: Include config.h, bfd.h. | |
3236 | * configure.ac: Don't source common.host. | |
3237 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. | |
3238 | * configure: Rebuild. | |
3239 | * acinclude.m4: Update path. | |
3240 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. | |
3241 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. | |
3242 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. | |
3243 | (CLIBS): Add LIBSUPPORT. | |
3244 | (CDEPS): Likewise. | |
3245 | (COMMON_SFILES): Remove gdbsupport files. | |
3246 | (HFILES_NO_SRCDIR): Likewise. | |
3247 | (stamp-version): Update path to create-version.sh. | |
3248 | (ALLDEPFILES): Remove gdbsupport files. | |
3249 | ||
b2ceabe8 TT |
3250 | 2020-01-14 Tom Tromey <tom@tromey.com> |
3251 | ||
3252 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and | |
3253 | USE_WIN32API when needed. | |
3254 | * configure.ac (USE_WIN32API): Don't define. | |
3255 | (WIN32LIBS): Use WIN32APILIBS. | |
3256 | * configure: Rebuild. | |
3257 | ||
25c51f71 TT |
3258 | 2020-01-14 Tom Tromey <tom@tromey.com> |
3259 | ||
3260 | * configure: Rebuild. | |
3261 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. | |
3262 | ||
717c684d BE |
3263 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3264 | ||
3265 | * skip.c (skip_function_command): Make skip w/o arguments use the | |
3266 | name of the inlined function if pc is inside any inlined function. | |
3267 | ||
7da6a5b9 LM |
3268 | 2020-01-14 Luis Machado <luis.machado@linaro.org> |
3269 | ||
3270 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. | |
3271 | * infrun.c (resume_1): Likewise. | |
3272 | (handle_inferior_event): Remove stale comment. | |
3273 | * linux-nat.c (linux_nat_target::resume): Update comments. | |
3274 | (save_stop_reason): Likewise. | |
3275 | (linux_nat_filter_event): Likewise. | |
3276 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. | |
3277 | ||
44e4c775 AB |
3278 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
3279 | ||
3280 | * elfread.c (record_minimal_symbol): Set section index to 0 for | |
3281 | non-allocatable sections. | |
3282 | ||
18a8505e AT |
3283 | |
3284 | 2020-01-13 Ali Tamur <tamur@google.com> | |
3285 | ||
3286 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. | |
3287 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base | |
3288 | to gdb::optional. Update comments. | |
3289 | (dwo_file): Update comments. | |
3290 | (read_attribute): Update API to take an additional out parameter, | |
3291 | need_reprocess. This is used to mark attributes that need other | |
3292 | attributes (e.g. str_offsets_base) for correct computation which may not | |
3293 | have been read yet. | |
3294 | (read_attribute_reprocess): New function declaration. | |
3295 | (read_addr_index): Likewise. | |
3296 | (read_dwo_str_index): Likewise. | |
3297 | (read_stub_str_index): Likewise. | |
3298 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. | |
3299 | (lookup_addr_base): New function definition. | |
3300 | (lookup_ranges_base): Likewise. | |
3301 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, | |
3302 | lookup_ranges_base. | |
3303 | (init_cutu_and_read_dies): Update comments. | |
3304 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile | |
3305 | unit. This is used to inherit parent's str_offsets_base and addr_base. | |
3306 | Update comments. | |
3307 | (init_cutu_and_read_dies_simple): Reflect API changes. | |
3308 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. | |
3309 | (create_cus_hash_table): Change API to take parent compile unit. | |
3310 | Reflect API changes. | |
3311 | (open_and_init_dwo_file): Reflect API changes. | |
3312 | (dwarf2_get_pc_bounds): Update comments. | |
3313 | (dwarf2_record_block_ranges): Likewise. | |
3314 | (read_full_die_1): Change implementation to reprocess attributes that | |
3315 | need str_offsets_base and addr_base. | |
3316 | (partial_die_info::read): Likewise. | |
3317 | (read_attribute_reprocess): New function definition. | |
3318 | (read_attribute_value): Change API to take an additional out parameter, | |
3319 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error | |
3320 | when a non-dwo compile unit has index based attributes. | |
3321 | (read_attribute): Reflect API changes. | |
3322 | (read_addr_index_1): Reflect API changes. Update comments. | |
3323 | (dwarf2_read_addr_index_data): Reflect API changes. | |
3324 | (dwarf2_read_addr_index): Likewise. | |
3325 | (read_str_index): Change API and implementation. This becomes a helper | |
3326 | to be used by the new string index related methods. Update error | |
3327 | message and comments. | |
3328 | (read_dwo_str_index): New function definition. | |
3329 | (read_stub_str_index): Likewise. | |
3330 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. | |
3331 | * symfile.h (dwarf2_debug_sections): Likewise. | |
3332 | * xcoffread.c (dwarf2_debug_sections): Likewise. | |
3333 | ||
0cac9354 SM |
3334 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
3335 | ||
3336 | * gdbcore.h (struct core_fns) <core_read_registers>: Change | |
3337 | core_reg_sect type to gdb_byte *. | |
3338 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. | |
3339 | * cris-tdep.c (fetch_core_registers): Likewise. | |
3340 | * corelow.c (core_target::get_core_register_section): Change | |
3341 | type of `contents` to gdb::byte_vector. | |
3342 | ||
9a6d629c AB |
3343 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
3344 | ||
3345 | * tui/tui-wingeneral.c (box_win): Position the title in the center | |
3346 | of the border. | |
3347 | ||
d8b2f9e3 SM |
3348 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
3349 | ||
3350 | * corelow.c (core_target::get_core_register_section): Use | |
3351 | std::vector instead of alloca. | |
3352 | ||
bb564c58 SM |
3353 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
3354 | ||
3355 | * warning.m4: Add -Wmissing-declarations to build_warnings. | |
3356 | * configure: Re-generate. | |
3357 | ||
6b366111 SM |
3358 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
3359 | ||
3360 | * python/python.c (init__gdb_module): Add declaration. | |
3361 | ||
6c265988 SM |
3362 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
3363 | ||
3364 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. | |
3365 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. | |
3366 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. | |
3367 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. | |
3368 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. | |
3369 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. | |
3370 | * ada-exp.y (_initialize_ada_exp): Add declaration. | |
3371 | * ada-lang.c (_initialize_ada_language): Add declaration. | |
3372 | * ada-tasks.c (_initialize_tasks): Add declaration. | |
3373 | * agent.c (_initialize_agent): Add declaration. | |
3374 | * aix-thread.c (_initialize_aix_thread): Add declaration. | |
3375 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. | |
3376 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. | |
3377 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. | |
3378 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. | |
3379 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. | |
3380 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. | |
3381 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. | |
3382 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. | |
3383 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. | |
3384 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. | |
3385 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. | |
3386 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. | |
3387 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. | |
3388 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. | |
3389 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. | |
3390 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. | |
3391 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. | |
3392 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. | |
3393 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. | |
3394 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. | |
3395 | * annotate.c (_initialize_annotate): Add declaration. | |
3396 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. | |
3397 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. | |
3398 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. | |
3399 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. | |
3400 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. | |
3401 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. | |
3402 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. | |
3403 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. | |
3404 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. | |
3405 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. | |
3406 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. | |
3407 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. | |
3408 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. | |
3409 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. | |
3410 | * auto-load.c (_initialize_auto_load): Add declaration. | |
3411 | * auxv.c (_initialize_auxv): Add declaration. | |
3412 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. | |
3413 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. | |
3414 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. | |
3415 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. | |
3416 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. | |
3417 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. | |
3418 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. | |
3419 | * breakpoint.c (_initialize_breakpoint): Add declaration. | |
3420 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. | |
3421 | * btrace.c (_initialize_btrace): Add declaration. | |
3422 | * charset.c (_initialize_charset): Add declaration. | |
3423 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. | |
3424 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. | |
3425 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. | |
3426 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. | |
3427 | * cli/cli-script.c (_initialize_cli_script): Add declaration. | |
3428 | * cli/cli-style.c (_initialize_cli_style): Add declaration. | |
3429 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. | |
3430 | * coffread.c (_initialize_coffread): Add declaration. | |
3431 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. | |
3432 | * compile/compile.c (_initialize_compile): Add declaration. | |
3433 | * complaints.c (_initialize_complaints): Add declaration. | |
3434 | * completer.c (_initialize_completer): Add declaration. | |
3435 | * copying.c (_initialize_copying): Add declaration. | |
3436 | * corefile.c (_initialize_core): Add declaration. | |
3437 | * corelow.c (_initialize_corelow): Add declaration. | |
3438 | * cp-abi.c (_initialize_cp_abi): Add declaration. | |
3439 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. | |
3440 | * cp-support.c (_initialize_cp_support): Add declaration. | |
3441 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. | |
3442 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. | |
3443 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. | |
3444 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. | |
3445 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. | |
3446 | * ctfread.c (_initialize_ctfread): Add declaration. | |
3447 | * d-lang.c (_initialize_d_language): Add declaration. | |
3448 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. | |
3449 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. | |
3450 | * dbxread.c (_initialize_dbxread): Add declaration. | |
3451 | * dcache.c (_initialize_dcache): Add declaration. | |
3452 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. | |
3453 | * disasm.c (_initialize_disasm): Add declaration. | |
3454 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. | |
3455 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. | |
3456 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. | |
3457 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. | |
3458 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. | |
3459 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. | |
3460 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. | |
3461 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. | |
3462 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. | |
3463 | * elfread.c (_initialize_elfread): Add declaration. | |
3464 | * exec.c (_initialize_exec): Add declaration. | |
3465 | * extension.c (_initialize_extension): Add declaration. | |
3466 | * f-lang.c (_initialize_f_language): Add declaration. | |
3467 | * f-valprint.c (_initialize_f_valprint): Add declaration. | |
3468 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. | |
3469 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. | |
3470 | * filesystem.c (_initialize_filesystem): Add declaration. | |
3471 | * findcmd.c (_initialize_mem_search): Add declaration. | |
3472 | * findvar.c (_initialize_findvar): Add declaration. | |
3473 | * fork-child.c (_initialize_fork_child): Add declaration. | |
3474 | * frame-base.c (_initialize_frame_base): Add declaration. | |
3475 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. | |
3476 | * frame.c (_initialize_frame): Add declaration. | |
3477 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. | |
3478 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. | |
3479 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. | |
3480 | * gcore.c (_initialize_gcore): Add declaration. | |
3481 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. | |
3482 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. | |
3483 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. | |
3484 | * gdbarch.c (_initialize_gdbarch): Add declaration. | |
3485 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. | |
3486 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. | |
3487 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. | |
3488 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. | |
3489 | * go-lang.c (_initialize_go_language): Add declaration. | |
3490 | * go32-nat.c (_initialize_go32_nat): Add declaration. | |
3491 | * guile/guile.c (_initialize_guile): Add declaration. | |
3492 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. | |
3493 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. | |
3494 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. | |
3495 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. | |
3496 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. | |
3497 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. | |
3498 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. | |
3499 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. | |
3500 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. | |
3501 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. | |
3502 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. | |
3503 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. | |
3504 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. | |
3505 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. | |
3506 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. | |
3507 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. | |
3508 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. | |
3509 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. | |
3510 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. | |
3511 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. | |
3512 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. | |
3513 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. | |
3514 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. | |
3515 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. | |
3516 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. | |
3517 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. | |
3518 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. | |
3519 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. | |
3520 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. | |
3521 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. | |
3522 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. | |
3523 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. | |
3524 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. | |
3525 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. | |
3526 | * infcall.c (_initialize_infcall): Add declaration. | |
3527 | * infcmd.c (_initialize_infcmd): Add declaration. | |
3528 | * inflow.c (_initialize_inflow): Add declaration. | |
3529 | * infrun.c (_initialize_infrun): Add declaration. | |
3530 | * interps.c (_initialize_interpreter): Add declaration. | |
3531 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. | |
3532 | * jit.c (_initialize_jit): Add declaration. | |
3533 | * language.c (_initialize_language): Add declaration. | |
3534 | * linux-fork.c (_initialize_linux_fork): Add declaration. | |
3535 | * linux-nat.c (_initialize_linux_nat): Add declaration. | |
3536 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. | |
3537 | * linux-thread-db.c (_initialize_thread_db): Add declaration. | |
3538 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. | |
3539 | * m2-lang.c (_initialize_m2_language): Add declaration. | |
3540 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. | |
3541 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. | |
3542 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. | |
3543 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. | |
3544 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. | |
3545 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. | |
3546 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. | |
3547 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. | |
3548 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. | |
3549 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. | |
3550 | * machoread.c (_initialize_machoread): Add declaration. | |
3551 | * macrocmd.c (_initialize_macrocmd): Add declaration. | |
3552 | * macroscope.c (_initialize_macroscope): Add declaration. | |
3553 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. | |
3554 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. | |
3555 | * maint.c (_initialize_maint_cmds): Add declaration. | |
3556 | * mdebugread.c (_initialize_mdebugread): Add declaration. | |
3557 | * memattr.c (_initialize_mem): Add declaration. | |
3558 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. | |
3559 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. | |
3560 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. | |
3561 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. | |
3562 | * mi/mi-main.c (_initialize_mi_main): Add declaration. | |
3563 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. | |
3564 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. | |
3565 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. | |
3566 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. | |
3567 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. | |
3568 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. | |
3569 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. | |
3570 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. | |
3571 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. | |
3572 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. | |
3573 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. | |
3574 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. | |
3575 | * mipsread.c (_initialize_mipsread): Add declaration. | |
3576 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. | |
3577 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. | |
3578 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. | |
3579 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. | |
3580 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. | |
3581 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. | |
3582 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. | |
3583 | * nto-procfs.c (_initialize_procfs): Add declaration. | |
3584 | * objc-lang.c (_initialize_objc_language): Add declaration. | |
3585 | * observable.c (_initialize_observer): Add declaration. | |
3586 | * opencl-lang.c (_initialize_opencl_language): Add declaration. | |
3587 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. | |
3588 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. | |
3589 | * osabi.c (_initialize_gdb_osabi): Add declaration. | |
3590 | * osdata.c (_initialize_osdata): Add declaration. | |
3591 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. | |
3592 | * parse.c (_initialize_parse): Add declaration. | |
3593 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. | |
3594 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. | |
3595 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. | |
3596 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. | |
3597 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. | |
3598 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. | |
3599 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. | |
3600 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. | |
3601 | * printcmd.c (_initialize_printcmd): Add declaration. | |
3602 | * probe.c (_initialize_probe): Add declaration. | |
3603 | * proc-api.c (_initialize_proc_api): Add declaration. | |
3604 | * proc-events.c (_initialize_proc_events): Add declaration. | |
3605 | * proc-service.c (_initialize_proc_service): Add declaration. | |
3606 | * procfs.c (_initialize_procfs): Add declaration. | |
3607 | * producer.c (_initialize_producer): Add declaration. | |
3608 | * psymtab.c (_initialize_psymtab): Add declaration. | |
3609 | * python/python.c (_initialize_python): Add declaration. | |
3610 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. | |
3611 | * record-btrace.c (_initialize_record_btrace): Add declaration. | |
3612 | * record-full.c (_initialize_record_full): Add declaration. | |
3613 | * record.c (_initialize_record): Add declaration. | |
3614 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. | |
3615 | * regcache.c (_initialize_regcache): Add declaration. | |
3616 | * reggroups.c (_initialize_reggroup): Add declaration. | |
3617 | * remote-notif.c (_initialize_notif): Add declaration. | |
3618 | * remote-sim.c (_initialize_remote_sim): Add declaration. | |
3619 | * remote.c (_initialize_remote): Add declaration. | |
3620 | * reverse.c (_initialize_reverse): Add declaration. | |
3621 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. | |
3622 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. | |
3623 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. | |
3624 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. | |
3625 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. | |
3626 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. | |
3627 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. | |
3628 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): | |
3629 | Add declaration. | |
3630 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. | |
3631 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. | |
3632 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. | |
3633 | * rust-exp.y (_initialize_rust_exp): Add declaration. | |
3634 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. | |
3635 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. | |
3636 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. | |
3637 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. | |
3638 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. | |
3639 | * score-tdep.c (_initialize_score_tdep): Add declaration. | |
3640 | * ser-go32.c (_initialize_ser_dos): Add declaration. | |
3641 | * ser-mingw.c (_initialize_ser_windows): Add declaration. | |
3642 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. | |
3643 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. | |
3644 | * ser-uds.c (_initialize_ser_socket): Add declaration. | |
3645 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. | |
3646 | * serial.c (_initialize_serial): Add declaration. | |
3647 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. | |
3648 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. | |
3649 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. | |
3650 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. | |
3651 | * skip.c (_initialize_step_skip): Add declaration. | |
3652 | * sol-thread.c (_initialize_sol_thread): Add declaration. | |
3653 | * solib-aix.c (_initialize_solib_aix): Add declaration. | |
3654 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. | |
3655 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. | |
3656 | * solib-frv.c (_initialize_frv_solib): Add declaration. | |
3657 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. | |
3658 | * solib-target.c (_initialize_solib_target): Add declaration. | |
3659 | * solib.c (_initialize_solib): Add declaration. | |
3660 | * source-cache.c (_initialize_source_cache): Add declaration. | |
3661 | * source.c (_initialize_source): Add declaration. | |
3662 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. | |
3663 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. | |
3664 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. | |
3665 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. | |
3666 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. | |
3667 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. | |
3668 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. | |
3669 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. | |
3670 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. | |
3671 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. | |
3672 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. | |
3673 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. | |
3674 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. | |
3675 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. | |
3676 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. | |
3677 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. | |
3678 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. | |
3679 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. | |
3680 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. | |
3681 | * stabsread.c (_initialize_stabsread): Add declaration. | |
3682 | * stack.c (_initialize_stack): Add declaration. | |
3683 | * stap-probe.c (_initialize_stap_probe): Add declaration. | |
3684 | * std-regs.c (_initialize_frame_reg): Add declaration. | |
3685 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. | |
3686 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. | |
3687 | * symfile.c (_initialize_symfile): Add declaration. | |
3688 | * symmisc.c (_initialize_symmisc): Add declaration. | |
3689 | * symtab.c (_initialize_symtab): Add declaration. | |
3690 | * target.c (_initialize_target): Add declaration. | |
3691 | * target-connection.c (_initialize_target_connection): Add | |
3692 | declaration. | |
3693 | * target-dcache.c (_initialize_target_dcache): Add declaration. | |
3694 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. | |
3695 | * thread.c (_initialize_thread): Add declaration. | |
3696 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. | |
3697 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. | |
3698 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. | |
3699 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. | |
3700 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. | |
3701 | * tracectf.c (_initialize_ctf): Add declaration. | |
3702 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. | |
3703 | * tracefile.c (_initialize_tracefile): Add declaration. | |
3704 | * tracepoint.c (_initialize_tracepoint): Add declaration. | |
3705 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. | |
3706 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. | |
3707 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. | |
3708 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. | |
3709 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. | |
3710 | * tui/tui-win.c (_initialize_tui_win): Add declaration. | |
3711 | * tui/tui.c (_initialize_tui): Add declaration. | |
3712 | * typeprint.c (_initialize_typeprint): Add declaration. | |
3713 | * ui-style.c (_initialize_ui_style): Add declaration. | |
3714 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. | |
3715 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. | |
3716 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. | |
3717 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. | |
3718 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. | |
3719 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. | |
3720 | * unittests/filtered_iterator-selftests.c | |
3721 | (_initialize_filtered_iterator_selftests): Add declaration. | |
3722 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. | |
3723 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. | |
3724 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. | |
3725 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. | |
3726 | * unittests/main-thread-selftests.c | |
3727 | (_initialize_main_thread_selftests): Add declaration. | |
3728 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. | |
3729 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. | |
3730 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. | |
3731 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. | |
3732 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. | |
3733 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. | |
3734 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. | |
3735 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. | |
3736 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. | |
3737 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. | |
3738 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. | |
3739 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. | |
3740 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. | |
3741 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. | |
3742 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add | |
3743 | declaration. | |
3744 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. | |
3745 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. | |
3746 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. | |
3747 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. | |
3748 | * user-regs.c (_initialize_user_regs): Add declaration. | |
3749 | * utils.c (_initialize_utils): Add declaration. | |
3750 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. | |
3751 | * valops.c (_initialize_valops): Add declaration. | |
3752 | * valprint.c (_initialize_valprint): Add declaration. | |
3753 | * value.c (_initialize_values): Add declaration. | |
3754 | * varobj.c (_initialize_varobj): Add declaration. | |
3755 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. | |
3756 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. | |
3757 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. | |
3758 | * windows-nat.c (_initialize_windows_nat): Add declaration. | |
3759 | (_initialize_check_for_gdb_ini): Add declaration. | |
3760 | (_initialize_loadable): Add declaration. | |
3761 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. | |
3762 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. | |
3763 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. | |
3764 | * xcoffread.c (_initialize_xcoffread): Add declaration. | |
3765 | * xml-support.c (_initialize_xml_support): Add declaration. | |
3766 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. | |
3767 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. | |
3768 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. | |
3769 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. | |
3770 | ||
e2de1eec SM |
3771 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
3772 | ||
3773 | * regformats/regdat.sh: Generate declaration for init function. | |
3774 | ||
e0037b4c SM |
3775 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
3776 | ||
3777 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move | |
3778 | up. | |
3779 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, | |
3780 | close_one_inferior>: New methods. | |
3781 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, | |
3782 | pass down target to find_inferior_pid. | |
3783 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): | |
3784 | Pass down target to find_inferior_ptid. | |
3785 | (gdbsim_target::create_inferior): Pass down target to | |
3786 | add_thread_silent. | |
3787 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass | |
3788 | target down to find_inferior_ptid and switch_to_thread. | |
3789 | (gdbsim_target::close): Update to call close_one_inferior. | |
3790 | (struct resume_data): Remove. | |
3791 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments | |
3792 | directly, rather than through a void pointer. | |
3793 | (gdbsim_target::resume): Update to call resume_one_inferior. | |
3794 | ||
58920b5b SM |
3795 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
3796 | ||
3797 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. | |
3798 | ||
4ec89149 PA |
3799 | 2020-01-12 Pedro Alves <palves@redhat.com> |
3800 | ||
3801 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent | |
3802 | directly for the current inferior instead of | |
3803 | discard_all_inferiors. | |
3804 | (discard_all_inferiors): Delete. | |
3805 | ||
7c392d1d TT |
3806 | 2020-01-11 Tom Tromey <tom@tromey.com> |
3807 | ||
3808 | * tui/tui-wingeneral.c (box_win): Check cli_styling. | |
3809 | * tui/tui-winsource.c (tui_source_window_base::refill): Use | |
3810 | deprecated_safe_get_selected_frame. | |
3811 | ||
d9ebdab7 TBA |
3812 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3813 | ||
3814 | * inferior.c (print_inferior): Switch inferior before printing it. | |
3815 | ||
f3c469b9 PA |
3816 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> |
3817 | Pedro Alves <palves@redhat.com> | |
3818 | ||
3819 | * progspace-and-thread.c (switch_to_program_space_and_thread): | |
3820 | Assert there's an inferior for PSPACE. Use | |
3821 | switch_to_inferior_no_thread to switch the inferior too. | |
3822 | * progspace.c (program_space::~program_space): Call | |
3823 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. | |
3824 | (program_space::free_all_objfiles): Don't call clear_symtab_users | |
3825 | here. | |
3826 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. | |
3827 | ||
65c574f6 PA |
3828 | 2020-01-10 Pedro Alves <palves@redhat.com> |
3829 | ||
3830 | * NEWS: Mention multi-target debugging, "info connections", and | |
3831 | "add-inferior -no-connection". | |
3832 | ||
2f4fcf00 PA |
3833 | 2020-01-10 Pedro Alves <palves@redhat.com> |
3834 | ||
3835 | * infrun.c: Include "target-connection.h". | |
3836 | (check_multi_target_resumption): New. | |
3837 | (proceed): Call it. | |
3838 | * target-connection.c (make_target_connection_string): Make | |
3839 | extern. | |
3840 | * target-connection.h (make_target_connection_string): Declare. | |
3841 | ||
121b3efd PA |
3842 | 2020-01-10 Pedro Alves <palves@redhat.com> |
3843 | ||
3844 | * Makefile.in (COMMON_SFILES): Add target-connection.c. | |
3845 | * inferior.c (uiout_field_connection): New function. | |
3846 | (print_inferior): Add new "connection-id" column. | |
3847 | (add_inferior_command): Show connection number/string of added | |
3848 | inferior. | |
3849 | * process-stratum-target.h | |
3850 | (process_stratum_target::connection_string): New virtual method. | |
3851 | (process_stratum_target::connection_number): New field. | |
3852 | * remote.c (remote_target::connection_string): New override. | |
3853 | * target-connection.c: New file. | |
3854 | * target-connection.h: New file. | |
3855 | * target.c (decref_target): Remove process_stratum targets from | |
3856 | the connection list. | |
3857 | (target_stack::push): Add process_stratum targets to the | |
3858 | connection list. | |
3859 | ||
4f837581 PA |
3860 | 2020-01-10 Pedro Alves <palves@redhat.com> |
3861 | ||
3862 | Revert: | |
3863 | 2016-04-12 Pedro Alves <palves@redhat.com> | |
3864 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
3865 | Remove references to name. | |
3866 | * serial.h (struct serial) <name>: Delete. | |
3867 | ||
f4ec508e PA |
3868 | 2020-01-10 Pedro Alves <palves@redhat.com> |
3869 | ||
3870 | * gdbarch-selftests.c (register_to_value_test): Remove "target | |
3871 | already pushed" check. | |
3872 | ||
5b6d1e4f PA |
3873 | 2020-01-10 Pedro Alves <palves@redhat.com> |
3874 | John Baldwin <jhb@FreeBSD.org> | |
3875 | ||
3876 | * aarch64-linux-nat.c | |
3877 | (aarch64_linux_nat_target::thread_architecture): Adjust. | |
3878 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. | |
3879 | (task_command_1): Likewise. | |
3880 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) | |
3881 | (aix_thread_target::wait, aix_thread_target::fetch_registers) | |
3882 | (aix_thread_target::store_registers) | |
3883 | (aix_thread_target::thread_alive): Adjust. | |
3884 | * amd64-fbsd-tdep.c: Include "inferior.h". | |
3885 | (amd64fbsd_get_thread_local_address): Pass down target. | |
3886 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle | |
3887 | thread's gdbarch instead of target_gdbarch. | |
3888 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to | |
3889 | get_last_target_status. | |
3890 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
3891 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all | |
3892 | inferiors. | |
3893 | (update_inserted_breakpoint_locations): Skip if inferiors with no | |
3894 | execution. | |
3895 | (update_global_location_list): When handling moribund locations, | |
3896 | find representative inferior for location's pspace, and use thread | |
3897 | count of its process_stratum target. | |
3898 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. | |
3899 | * bsd-uthread.c (bsd_uthread_target::wait): Use | |
3900 | as_process_stratum_target and adjust thread_change_ptid and | |
3901 | add_thread calls. | |
3902 | (bsd_uthread_target::update_thread_list): Use | |
3903 | as_process_stratum_target and adjust find_thread_ptid, | |
3904 | thread_change_ptid and add_thread calls. | |
3905 | * btrace.c (maint_btrace_packet_history_cmd): Adjust | |
3906 | find_thread_ptid call. | |
3907 | * corelow.c (add_to_thread_list): Adjust add_thread call. | |
3908 | (core_target_open): Adjust add_thread_silent and thread_count | |
3909 | calls. | |
3910 | (core_target::pid_to_str): Adjust find_inferior_ptid call. | |
3911 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. | |
3912 | * event-top.c (async_disconnect): Pop targets from all inferiors. | |
3913 | * exec.c (add_target_sections): Push exec target on all inferiors | |
3914 | sharing the program space. | |
3915 | (remove_target_sections): Remove the exec target from all | |
3916 | inferiors sharing the program space. | |
3917 | (exec_on_vfork): New. | |
3918 | * exec.h (exec_on_vfork): Declare. | |
3919 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. | |
3920 | Pass it down. | |
3921 | (fbsd_nat_target::update_thread_list): Adjust. | |
3922 | (fbsd_nat_target::resume): Adjust. | |
3923 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it | |
3924 | down. | |
3925 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. | |
3926 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust | |
3927 | get_thread_arch_regcache call. | |
3928 | * fork-child.c (gdb_startup_inferior): Pass target down to | |
3929 | startup_inferior and set_executing. | |
3930 | * gdbthread.h (struct process_stratum_target): Forward declare. | |
3931 | (add_thread, add_thread_silent, add_thread_with_info) | |
3932 | (in_thread_list): Add process_stratum_target parameter. | |
3933 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
3934 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target | |
3935 | parameter. | |
3936 | (all_threads()): Delete overload. | |
3937 | (all_threads, all_non_exited_threads): Add process_stratum_target | |
3938 | parameter. | |
3939 | (all_threads_safe): Use brace initialization. | |
3940 | (thread_count): Add process_stratum_target parameter. | |
3941 | (set_resumed, set_running, set_stop_requested, set_executing) | |
3942 | (threads_are_executing, finish_thread_state): Add | |
3943 | process_stratum_target parameter. | |
3944 | (switch_to_thread): Use is_current_thread. | |
3945 | * i386-fbsd-tdep.c: Include "inferior.h". | |
3946 | (i386fbsd_get_thread_local_address): Pass down target. | |
3947 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. | |
3948 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove | |
3949 | have_inferiors check. | |
3950 | * inf-ptrace.c (inf_ptrace_target::create_inferior) | |
3951 | (inf_ptrace_target::attach): Adjust. | |
3952 | * infcall.c (run_inferior_call): Adjust. | |
3953 | * infcmd.c (run_command_1): Pass target to | |
3954 | scoped_finish_thread_state. | |
3955 | (proceed_thread_callback): Skip inferiors with no execution. | |
3956 | (continue_command): Rename 'all_threads' local to avoid hiding | |
3957 | 'all_threads' function. Adjust get_last_target_status call. | |
3958 | (prepare_one_step): Adjust set_running call. | |
3959 | (signal_command): Use user_visible_resume_target. Compare thread | |
3960 | pointers instead of inferior_ptid. | |
3961 | (info_program_command): Adjust to pass down target. | |
3962 | (attach_command): Mark target's 'thread_executing' flag. | |
3963 | (stop_current_target_threads_ns): New, factored out from ... | |
3964 | (interrupt_target_1): ... this. Switch inferior before making | |
3965 | target calls. | |
3966 | * inferior-iter.h | |
3967 | (struct all_inferiors_iterator, struct all_inferiors_range) | |
3968 | (struct all_inferiors_safe_range) | |
3969 | (struct all_non_exited_inferiors_range): Filter on | |
3970 | process_stratum_target too. Remove explicit. | |
3971 | * inferior.c (inferior::inferior): Push dummy target on target | |
3972 | stack. | |
3973 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): | |
3974 | Add process_stratum_target parameter, and pass it down. | |
3975 | (have_live_inferiors): Adjust. | |
3976 | (switch_to_inferior_and_push_target): New. | |
3977 | (add_inferior_command, clone_inferior_command): Handle | |
3978 | "-no-connection" parameter. Use | |
3979 | switch_to_inferior_and_push_target. | |
3980 | (_initialize_inferior): Mention "-no-connection" option in | |
3981 | the help of "add-inferior" and "clone-inferior" commands. | |
3982 | * inferior.h: Include "process-stratum-target.h". | |
3983 | (interrupt_target_1): Use bool. | |
3984 | (struct inferior) <push_target, unpush_target, target_is_pushed, | |
3985 | find_target_beneath, top_target, process_target, target_at, | |
3986 | m_stack>: New. | |
3987 | (discard_all_inferiors): Delete. | |
3988 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) | |
3989 | (all_inferiors, all_non_exited_inferiors): Add | |
3990 | process_stratum_target parameter. | |
3991 | * infrun.c: Include "gdb_select.h" and <unordered_map>. | |
3992 | (target_last_proc_target): New global. | |
3993 | (follow_fork_inferior): Push target on new inferior. Pass target | |
3994 | to add_thread_silent. Call exec_on_vfork. Handle target's | |
3995 | reference count. | |
3996 | (follow_fork): Adjust get_last_target_status call. Also consider | |
3997 | target. | |
3998 | (follow_exec): Push target on new inferior. | |
3999 | (struct execution_control_state) <target>: New field. | |
4000 | (user_visible_resume_target): New. | |
4001 | (do_target_resume): Call target_async. | |
4002 | (resume_1): Set target's threads_executing flag. Consider resume | |
4003 | target. | |
4004 | (commit_resume_all_targets): New. | |
4005 | (proceed): Also consider resume target. Skip threads of inferiors | |
4006 | with no execution. Commit resumtion in all targets. | |
4007 | (start_remote): Pass current inferior to wait_for_inferior. | |
4008 | (infrun_thread_stop_requested): Consider target as well. Pass | |
4009 | thread_info pointer to clear_inline_frame_state instead of ptid. | |
4010 | (infrun_thread_thread_exit): Consider target as well. | |
4011 | (random_pending_event_thread): New inferior parameter. Use it. | |
4012 | (do_target_wait): Rename to ... | |
4013 | (do_target_wait_1): ... this. Add inferior parameter, and pass it | |
4014 | down. | |
4015 | (threads_are_resumed_pending_p, do_target_wait): New. | |
4016 | (prepare_for_detach): Adjust calls. | |
4017 | (wait_for_inferior): New inferior parameter. Handle it. Use | |
4018 | do_target_wait_1 instead of do_target_wait. | |
4019 | (fetch_inferior_event): Adjust. Switch to representative | |
4020 | inferior. Pass target down. | |
4021 | (set_last_target_status): Add process_stratum_target parameter. | |
4022 | Save target in global. | |
4023 | (get_last_target_status): Add process_stratum_target parameter and | |
4024 | handle it. | |
4025 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. | |
4026 | (context_switch): Check inferior_ptid == null_ptid before calling | |
4027 | inferior_thread(). | |
4028 | (get_inferior_stop_soon): Pass down target. | |
4029 | (wait_one): Rename to ... | |
4030 | (poll_one_curr_target): ... this. | |
4031 | (struct wait_one_event): New. | |
4032 | (wait_one): New. | |
4033 | (stop_all_threads): Adjust. | |
4034 | (handle_no_resumed, handle_inferior_event): Adjust to consider the | |
4035 | event's target. | |
4036 | (switch_back_to_stepped_thread): Also consider target. | |
4037 | (print_stop_event): Update. | |
4038 | (normal_stop): Update. Also consider the resume target. | |
4039 | * infrun.h (wait_for_inferior): Remove declaration. | |
4040 | (user_visible_resume_target): New declaration. | |
4041 | (get_last_target_status, set_last_target_status): New | |
4042 | process_stratum_target parameter. | |
4043 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
4044 | process_stratum_target parameter, and use it. | |
4045 | (clear_inline_frame_state (thread_info*)): New. | |
4046 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
4047 | process_stratum_target parameter. | |
4048 | (clear_inline_frame_state (thread_info*)): Declare. | |
4049 | * linux-fork.c (delete_checkpoint_command): Pass target down to | |
4050 | find_thread_ptid. | |
4051 | (checkpoint_command): Adjust. | |
4052 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread | |
4053 | instead of just tweaking inferior_ptid. | |
4054 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. | |
4055 | (exit_lwp): Pass target down to find_thread_ptid. | |
4056 | (attach_proc_task_lwp_callback): Pass target down to | |
4057 | add_thread/set_running/set_executing. | |
4058 | (linux_nat_target::attach): Pass target down to | |
4059 | thread_change_ptid. | |
4060 | (get_detach_signal): Pass target down to find_thread_ptid. | |
4061 | Consider last target status's target. | |
4062 | (linux_resume_one_lwp_throw, resume_lwp) | |
4063 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) | |
4064 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) | |
4065 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. | |
4066 | (linux_nat_target::async_wait_fd): New. | |
4067 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass | |
4068 | target down. | |
4069 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. | |
4070 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. | |
4071 | * linux-thread-db.c (struct thread_db_info::process_target): New | |
4072 | field. | |
4073 | (add_thread_db_info): Save target. | |
4074 | (get_thread_db_info): New process_stratum_target parameter. Also | |
4075 | match target. | |
4076 | (delete_thread_db_info): New process_stratum_target parameter. | |
4077 | Also match target. | |
4078 | (thread_from_lwp): Adjust to pass down target. | |
4079 | (thread_db_notice_clone): Pass down target. | |
4080 | (check_thread_db_callback): Pass down target. | |
4081 | (try_thread_db_load_1): Always push the thread_db target. | |
4082 | (try_thread_db_load, record_thread): Pass target down. | |
4083 | (thread_db_target::detach): Pass target down. Always unpush the | |
4084 | thread_db target. | |
4085 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass | |
4086 | target down. Always unpush the thread_db target. | |
4087 | (find_new_threads_callback, thread_db_find_new_threads_2) | |
4088 | (thread_db_target::update_thread_list): Pass target down. | |
4089 | (thread_db_target::pid_to_str): Pass current inferior down. | |
4090 | (thread_db_target::get_thread_local_address): Pass target down. | |
4091 | (thread_db_target::resume, maintenance_check_libthread_db): Pass | |
4092 | target down. | |
4093 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. | |
4094 | * procfs.c (procfs_target::procfs_init_inferior): Declare. | |
4095 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. | |
4096 | (procfs_init_inferior): Rename to ... | |
4097 | (procfs_target::procfs_init_inferior): ... this and adjust. | |
4098 | (procfs_target::create_inferior, procfs_notice_thread) | |
4099 | (procfs_do_thread_registers): Adjust. | |
4100 | * ppc-fbsd-tdep.c: Include "inferior.h". | |
4101 | (ppcfbsd_get_thread_local_address): Pass down target. | |
4102 | * proc-service.c (ps_xfer_memory): Switch current inferior and | |
4103 | program space as well. | |
4104 | (get_ps_regcache): Pass target down. | |
4105 | * process-stratum-target.c | |
4106 | (process_stratum_target::thread_address_space) | |
4107 | (process_stratum_target::thread_architecture): Pass target down. | |
4108 | * process-stratum-target.h | |
4109 | (process_stratum_target::threads_executing): New field. | |
4110 | (as_process_stratum_target): New. | |
4111 | * ravenscar-thread.c | |
4112 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. | |
4113 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target | |
4114 | down. | |
4115 | * record-btrace.c (record_btrace_target::info_record): Adjust. | |
4116 | (record_btrace_target::record_method) | |
4117 | (record_btrace_target::record_is_replaying) | |
4118 | (record_btrace_target::fetch_registers) | |
4119 | (get_thread_current_frame_id, record_btrace_target::resume) | |
4120 | (record_btrace_target::wait, record_btrace_target::stop): Pass | |
4121 | target down. | |
4122 | * record-full.c (record_full_wait_1): Switch to event thread. | |
4123 | Pass target down. | |
4124 | * regcache.c (regcache::regcache) | |
4125 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add | |
4126 | process_stratum_target parameter and handle it. | |
4127 | (current_thread_target): New global. | |
4128 | (get_thread_regcache): Add process_stratum_target parameter and | |
4129 | handle it. Switch inferior before calling target method. | |
4130 | (get_thread_regcache): Pass target down. | |
4131 | (get_thread_regcache_for_ptid): Pass target down. | |
4132 | (registers_changed_ptid): Add process_stratum_target parameter and | |
4133 | handle it. | |
4134 | (registers_changed_thread, registers_changed): Pass target down. | |
4135 | (test_get_thread_arch_aspace_regcache): New. | |
4136 | (current_regcache_test): Define a couple local test_target_ops | |
4137 | instances and use them for testing. | |
4138 | (readwrite_regcache): Pass process_stratum_target parameter. | |
4139 | (cooked_read_test, cooked_write_test): Pass mock_target down. | |
4140 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) | |
4141 | (get_thread_arch_aspace_regcache): Add process_stratum_target | |
4142 | parameter. | |
4143 | (regcache::target): New method. | |
4144 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) | |
4145 | (regcache::registers_changed_ptid): Add process_stratum_target | |
4146 | parameter. | |
4147 | (regcache::m_target): New field. | |
4148 | (registers_changed_ptid): Add process_stratum_target parameter. | |
4149 | * remote.c (remote_state::supports_vCont_probed): New field. | |
4150 | (remote_target::async_wait_fd): New method. | |
4151 | (remote_unpush_and_throw): Add remote_target parameter. | |
4152 | (get_current_remote_target): Adjust. | |
4153 | (remote_target::remote_add_inferior): Push target. | |
4154 | (remote_target::remote_add_thread) | |
4155 | (remote_target::remote_notice_new_inferior) | |
4156 | (get_remote_thread_info): Pass target down. | |
4157 | (remote_target::update_thread_list): Skip threads of inferiors | |
4158 | bound to other targets. (remote_target::close): Don't discard | |
4159 | inferiors. (remote_target::add_current_inferior_and_thread) | |
4160 | (remote_target::process_initial_stop_replies) | |
4161 | (remote_target::start_remote) | |
4162 | (remote_target::remote_serial_quit_handler): Pass down target. | |
4163 | (remote_target::remote_unpush_target): New remote_target | |
4164 | parameter. Unpush the target from all inferiors. | |
4165 | (remote_target::remote_unpush_and_throw): New remote_target | |
4166 | parameter. Pass it down. | |
4167 | (remote_target::open_1): Check whether the current inferior has | |
4168 | execution instead of checking whether any inferior is live. Pass | |
4169 | target down. | |
4170 | (remote_target::remote_detach_1): Pass down target. Use | |
4171 | remote_unpush_target. | |
4172 | (extended_remote_target::attach): Pass down target. | |
4173 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. | |
4174 | (remote_target::append_resumption): Pass down target. | |
4175 | (remote_target::append_pending_thread_resumptions) | |
4176 | (remote_target::remote_resume_with_hc, remote_target::resume) | |
4177 | (remote_target::commit_resume): Pass down target. | |
4178 | (remote_target::remote_stop_ns): Check supports_vCont_probed. | |
4179 | (remote_target::interrupt_query) | |
4180 | (remote_target::remove_new_fork_children) | |
4181 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
4182 | (remote_target::remote_parse_stop_reply) | |
4183 | (remote_target::process_stop_reply): Pass down target. | |
4184 | (first_remote_resumed_thread): New remote_target parameter. Pass | |
4185 | it down. | |
4186 | (remote_target::wait_as): Pass down target. | |
4187 | (unpush_and_perror): New remote_target parameter. Pass it down. | |
4188 | (remote_target::readchar, remote_target::remote_serial_write) | |
4189 | (remote_target::getpkt_or_notif_sane_1) | |
4190 | (remote_target::kill_new_fork_children, remote_target::kill): Pass | |
4191 | down target. | |
4192 | (remote_target::mourn_inferior): Pass down target. Use | |
4193 | remote_unpush_target. | |
4194 | (remote_target::core_of_thread) | |
4195 | (remote_target::remote_btrace_maybe_reopen): Pass down target. | |
4196 | (remote_target::pid_to_exec_file) | |
4197 | (remote_target::thread_handle_to_thread_info): Pass down target. | |
4198 | (remote_target::async_wait_fd): New. | |
4199 | * riscv-fbsd-tdep.c: Include "inferior.h". | |
4200 | (riscv_fbsd_get_thread_local_address): Pass down target. | |
4201 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. | |
4202 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) | |
4203 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): | |
4204 | Adjust. | |
4205 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. | |
4206 | * solib-svr4.c (enable_break): Pass down target. | |
4207 | * spu-multiarch.c (parse_spufs_run): Pass down target. | |
4208 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. | |
4209 | * target-delegates.c: Regenerate. | |
4210 | * target.c (g_target_stack): Delete. | |
4211 | (current_top_target): Return the current inferior's top target. | |
4212 | (target_has_execution_1): Refer to the passed-in inferior's top | |
4213 | target. | |
4214 | (target_supports_terminal_ours): Check whether the initial | |
4215 | inferior was already created. | |
4216 | (decref_target): New. | |
4217 | (target_stack::push): Incref/decref the target. | |
4218 | (push_target, push_target, unpush_target): Adjust. | |
4219 | (target_stack::unpush): Defref target. | |
4220 | (target_is_pushed): Return bool. Adjust to refer to the current | |
4221 | inferior's target stack. | |
4222 | (dispose_inferior): Delete, and inline parts ... | |
4223 | (target_preopen): ... here. Only dispose of the current inferior. | |
4224 | (target_detach): Hold strong target reference while detaching. | |
4225 | Pass target down. | |
4226 | (target_thread_name): Add assertion. | |
4227 | (target_resume): Pass down target. | |
4228 | (target_ops::beneath, find_target_at): Adjust to refer to the | |
4229 | current inferior's target stack. | |
4230 | (get_dummy_target): New. | |
4231 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that | |
4232 | has a thread running. | |
4233 | (initialize_targets): Rename to ... | |
4234 | (_initialize_target): ... this. | |
4235 | * target.h: Include "gdbsupport/refcounted-object.h". | |
4236 | (struct target_ops): Inherit refcounted_object. | |
4237 | (target_ops::shortname, target_ops::longname): Make const. | |
4238 | (target_ops::async_wait_fd): New method. | |
4239 | (decref_target): Declare. | |
4240 | (struct target_ops_ref_policy): New. | |
4241 | (target_ops_ref): New typedef. | |
4242 | (get_dummy_target): Declare function. | |
4243 | (target_is_pushed): Return bool. | |
4244 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) | |
4245 | (all_matching_threads_iterator::all_matching_threads_iterator): | |
4246 | Handle filter target. | |
4247 | * thread-iter.h (struct all_matching_threads_iterator, struct | |
4248 | all_matching_threads_range, class all_non_exited_threads_range): | |
4249 | Filter by target too. Remove explicit. | |
4250 | * thread.c (threads_executing): Delete. | |
4251 | (inferior_thread): Pass down current inferior. | |
4252 | (clear_thread_inferior_resources): Pass down thread pointer | |
4253 | instead of ptid_t. | |
4254 | (add_thread_silent, add_thread_with_info, add_thread): Add | |
4255 | process_stratum_target parameter. Use it for thread and inferior | |
4256 | searches. | |
4257 | (is_current_thread): New. | |
4258 | (thread_info::deletable): Use it. | |
4259 | (find_thread_ptid, thread_count, in_thread_list) | |
4260 | (thread_change_ptid, set_resumed, set_running): New | |
4261 | process_stratum_target parameter. Pass it down. | |
4262 | (set_executing): New process_stratum_target parameter. Pass it | |
4263 | down. Adjust reference to 'threads_executing'. | |
4264 | (threads_are_executing): New process_stratum_target parameter. | |
4265 | Adjust reference to 'threads_executing'. | |
4266 | (set_stop_requested, finish_thread_state): New | |
4267 | process_stratum_target parameter. Pass it down. | |
4268 | (switch_to_thread): Also match inferior. | |
4269 | (switch_to_thread): New process_stratum_target parameter. Pass it | |
4270 | down. | |
4271 | (update_threads_executing): Reimplement. | |
4272 | * top.c (quit_force): Pop targets from all inferior. | |
4273 | (gdb_init): Don't call initialize_targets. | |
4274 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: | |
4275 | Declare. | |
4276 | (windows_add_thread, windows_delete_thread): Adjust. | |
4277 | (get_windows_debug_event): Rename to ... | |
4278 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. | |
4279 | * tracefile-tfile.c (tfile_target_open): Pass down target. | |
4280 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): | |
4281 | Forward declare. | |
4282 | (switch_to_thread): Add process_stratum_target parameter. | |
4283 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target | |
4284 | parameter. Use it. | |
4285 | (mi_on_resume): Pass target down. | |
4286 | * nat/fork-inferior.c (startup_inferior): Add | |
4287 | process_stratum_target parameter. Pass it down. | |
4288 | * nat/fork-inferior.h (startup_inferior): Add | |
4289 | process_stratum_target parameter. | |
4290 | * python/py-threadevent.c (py_get_event_thread): Pass target down. | |
4291 | ||
75c6c844 PA |
4292 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4293 | ||
4294 | * remote.c (remote_target::start_remote): Don't set inferior_ptid | |
4295 | directly. Instead find the first thread in the thread list and | |
4296 | use switch_to_thread. | |
4297 | ||
78f2c40a PA |
4298 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4299 | ||
4300 | * remote.c (remote_target::remote_add_inferior): Don't bind a | |
4301 | process to the current inferior if the current inferior is already | |
4302 | bound to a process. | |
4303 | ||
e7af6c70 TBA |
4304 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4305 | Pedro Alves <palves@redhat.com> | |
4306 | ||
4307 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: | |
4308 | If no process is specified, return null_ptid instead of | |
4309 | inferior_ptid. | |
4310 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / | |
4311 | TARGET_WAITKIND_SIGNALLED with no pid. | |
4312 | ||
31ba933e PA |
4313 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4314 | ||
4315 | * remote.c (first_remote_resumed_thread): New. | |
4316 | (remote_target::wait_as): Use it as default event_ptid instead of | |
4317 | inferior_ptid. | |
4318 | ||
735fc2ca PA |
4319 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4320 | ||
4321 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. | |
4322 | ||
c17e02e1 PA |
4323 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4324 | ||
4325 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is | |
4326 | not -1. | |
4327 | ||
ab1ddbcf PA |
4328 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4329 | ||
4330 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a | |
4331 | ptid to get_last_target_status. | |
4332 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a | |
4333 | ptid to get_last_target_status. | |
4334 | * infcmd.c (continue_command): Don't pass a target_waitstatus to | |
4335 | get_last_target_status. | |
4336 | (info_program_command): Don't pass a target_waitstatus to | |
4337 | get_last_target_status. | |
4338 | * infrun.c (init_wait_for_inferior): Use | |
4339 | nullify_last_target_wait_ptid. | |
4340 | (get_last_target_status): Handle nullptr arguments. | |
4341 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. | |
4342 | (print_stop_event): Don't pass a ptid to get_last_target_status. | |
4343 | (normal_stop): Don't pass a ptid to get_last_target_status. | |
4344 | * infrun.h (get_last_target_status, set_last_target_status): Move | |
4345 | comments here and update. | |
4346 | (nullify_last_target_wait_ptid): Declare. | |
4347 | * linux-fork.c (fork_load_infrun_state): Remove local extern | |
4348 | declaration of nullify_last_target_wait_ptid. | |
4349 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus | |
4350 | to get_last_target_status. | |
4351 | ||
f3f8ece4 PA |
4352 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4353 | ||
4354 | * gdbthread.h (scoped_restore_current_thread) | |
4355 | <dont_restore, restore, m_dont_restore>: Declare. | |
4356 | * thread.c (thread_alive): Add assertion. Return bool. | |
4357 | (switch_to_thread_if_alive): New. | |
4358 | (prune_threads): Switch inferior/thread. | |
4359 | (print_thread_info_1): Switch thread before calling target methods. | |
4360 | (scoped_restore_current_thread::restore): New, factored out from | |
4361 | ... | |
4362 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
4363 | ... this. | |
4364 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
4365 | Add assertion. | |
4366 | (thread_apply_all_command, thread_select): Use | |
4367 | switch_to_thread_if_alive. | |
4368 | * infrun.c (proceed, restart_threads, handle_signal_stop) | |
4369 | (switch_back_to_stepped_thread): Switch current thread before | |
4370 | calling target methods. | |
4371 | ||
db2d40f7 PA |
4372 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4373 | ||
4374 | * inferior.c (switch_to_inferior_no_thread): New function, | |
4375 | factored out from ... | |
4376 | (inferior_command): ... here. | |
4377 | * inferior.h (switch_to_inferior_no_thread): Declare. | |
4378 | * mi/mi-main.c (run_one_inferior): Use | |
4379 | switch_to_inferior_no_thread. | |
4380 | ||
bd420a2d PA |
4381 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4382 | ||
4383 | * infcmd.c (kill_command): Remove dead code. | |
4384 | ||
ddf5db90 PA |
4385 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4386 | ||
4387 | * remote.c (remote_target::mourn_inferior): No longer check | |
4388 | whether the target is running. | |
4389 | ||
5018ce90 PA |
4390 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4391 | ||
4392 | * corelow.c (core_target::has_execution): Change parameter type to | |
4393 | inferior pointer. | |
4394 | * inferior.c (number_of_live_inferiors): Use | |
4395 | inferior::has_execution instead of target_has_execution_1. | |
4396 | * inferior.h (inferior::has_execution): New. | |
4397 | * linux-thread-db.c (thread_db_target::update_thread_list): Use | |
4398 | inferior::has_execution instead of target_has_execution_1. | |
4399 | * process-stratum-target.c | |
4400 | (process_stratum_target::has_execution): Change parameter type to | |
4401 | inferior pointer. Check the inferior's PID instead of | |
4402 | inferior_ptid. | |
4403 | * process-stratum-target.h | |
4404 | (process_stratum_target::has_execution): Change parameter type to | |
4405 | inferior pointer. | |
4406 | * record-full.c (record_full_core_target::has_execution): Change | |
4407 | parameter type to inferior pointer. | |
4408 | * target.c (target_has_execution_1): Change parameter type to | |
4409 | inferior pointer. | |
4410 | (target_has_execution_current): Adjust. | |
4411 | * target.h (target_ops::has_execution): Change parameter type to | |
4412 | inferior pointer. | |
4413 | (target_has_execution_1): Change parameter type to inferior | |
4414 | pointer. Change return type to bool. | |
4415 | * tracefile.h (tracefile_target::has_execution): Change parameter | |
4416 | type to inferior pointer. | |
4417 | ||
74375d18 PA |
4418 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4419 | ||
4420 | * exceptions.c (print_flush): Remove current_top_target() check. | |
4421 | ||
acdf84a6 PA |
4422 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4423 | ||
4424 | * remote.c (show_remote_exec_file): Show the current inferior's | |
4425 | exec-file instead of the command variable's value. | |
4426 | ||
ec506636 PA |
4427 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4428 | ||
4429 | * record-full.c (record_full_resume_ptid): New global. | |
4430 | (record_full_target::resume): Set it. | |
4431 | (record_full_wait_1): Use record_full_resume_ptid instead of | |
4432 | inferior_ptid. | |
4433 | ||
873657b9 PA |
4434 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4435 | ||
4436 | * gdbthread.h (scoped_restore_current_thread) | |
4437 | <dont_restore, restore, m_dont_restore>: Declare. | |
4438 | * thread.c (thread_alive): Add assertion. Return bool. | |
4439 | (switch_to_thread_if_alive): New. | |
4440 | (prune_threads): Switch inferior/thread. | |
4441 | (print_thread_info_1): Switch thread before calling target methods. | |
4442 | (scoped_restore_current_thread::restore): New, factored out from | |
4443 | ... | |
4444 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
4445 | ... this. | |
4446 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
4447 | Add assertion. | |
4448 | (thread_apply_all_command, thread_select): Use | |
4449 | switch_to_thread_if_alive. | |
4450 | ||
7f0ae84c GB |
4451 | 2020-01-10 George Barrett <bob@bob131.so> |
4452 | ||
4453 | * stap-probe.c (stap_modify_semaphore): Don't check for null | |
4454 | semaphores. | |
4455 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check | |
4456 | for null semaphores. | |
4457 | ||
f5a7c406 AB |
4458 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
4459 | ||
4460 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update | |
4461 | all source windows, and maintain horizontal scroll status while | |
4462 | doing so. | |
4463 | ||
9ae6bf64 TT |
4464 | 2020-01-09 Tom Tromey <tom@tromey.com> |
4465 | ||
4466 | PR tui/18932: | |
4467 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call | |
4468 | update_source_window, not print_source_lines. | |
4469 | ||
b2efe70c AB |
4470 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
4471 | ||
4472 | * tui/tui.c (tui_enable): Register tui hooks after calling | |
4473 | tui_display_main. | |
4474 | ||
5f23a082 CB |
4475 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
4476 | ||
4477 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. | |
4478 | ||
3061113b SM |
4479 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> |
4480 | ||
4481 | * thread.c (print_thread_info_1): Fix indentation. | |
4482 | ||
57d75002 CB |
4483 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
4484 | ||
4485 | * symtab.c (general_symbol_info::compute_and_set_names): Move the | |
4486 | unique_xmalloc_ptr outside the if to always free the demangled name. | |
4487 | ||
6a053cb1 TT |
4488 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
4489 | ||
4490 | * xcoffread.c (enter_line_range, read_xcoff_symtab) | |
4491 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. | |
4492 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. | |
4493 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): | |
4494 | Remove. | |
4495 | (section_offsets): New typedef. | |
4496 | * symtab.c (fixup_section, get_msymbol_address): Update. | |
4497 | * symmisc.c (dump_msymbols): Update. | |
4498 | * symfile.h (relative_addr_info_to_section_offsets) | |
4499 | (symfile_map_offsets_to_segments): Update. | |
4500 | * symfile.c (build_section_addr_info_from_objfile) | |
4501 | (init_objfile_sect_indices): Update. | |
4502 | (struct place_section_arg): Change type of "offsets". | |
4503 | (place_section): Update. | |
4504 | (relative_addr_info_to_section_offsets): Change type of | |
4505 | "section_offsets". Remove "num_sections" parameter. | |
4506 | (default_symfile_offsets, syms_from_objfile_1) | |
4507 | (set_objfile_default_section_offset): Update. | |
4508 | (reread_symbols): No need to preserve section offsets by hand. | |
4509 | (symfile_map_offsets_to_segments): Change type of "offsets". | |
4510 | * stap-probe.c (relocate_address): Update. | |
4511 | * stabsread.h (process_one_symbol): Update. | |
4512 | * solib-target.c (struct lm_info_target) <offsets>: Change type. | |
4513 | (solib_target_relocate_section_addresses): Update. | |
4514 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): | |
4515 | Update. | |
4516 | * solib-frv.c (frv_relocate_main_executable): Update. | |
4517 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. | |
4518 | * solib-aix.c (solib_aix_get_section_offsets): Change return | |
4519 | type. | |
4520 | (solib_aix_solib_create_inferior_hook): Update. | |
4521 | * remote.c (remote_target::get_offsets): Update. | |
4522 | * psymtab.c (find_pc_sect_psymtab): Update. | |
4523 | * psympriv.h (struct partial_symbol) <address, text_low, | |
4524 | text_high>: Update. | |
4525 | * objfiles.h (obj_section_offset): Update. | |
4526 | (struct objfile) <section_offsets>: Change type. | |
4527 | <num_sections>: Remove. | |
4528 | (objfile_relocate): Update. | |
4529 | * objfiles.c (entry_point_address_query): Update | |
4530 | (relocate_one_symbol): Change type of "section_offsets". | |
4531 | (objfile_relocate1, objfile_relocate1): Change type of | |
4532 | "new_offsets". | |
4533 | (objfile_rebase1): Update. | |
4534 | * mipsread.c (mipscoff_symfile_read): Update. | |
4535 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" | |
4536 | parameter. | |
4537 | * mdebugread.c (parse_symbol): Change type of "section_offsets". | |
4538 | (parse_external, psymtab_to_symtab_1): Update. | |
4539 | * machoread.c (macho_symfile_offsets): Update. | |
4540 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
4541 | * hppa-tdep.c (read_unwind_info): Update. | |
4542 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. | |
4543 | * dwarf2read.c (create_addrmap_from_index) | |
4544 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
4545 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
4546 | (add_partial_subprogram, process_full_comp_unit) | |
4547 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
4548 | (read_call_site_scope, dwarf2_rnglists_process) | |
4549 | (dwarf2_ranges_process, dwarf2_ranges_read) | |
4550 | (dwarf_decode_lines_1, var_decode_location, new_symbol) | |
4551 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): | |
4552 | Update. | |
4553 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): | |
4554 | Update. | |
4555 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. | |
4556 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. | |
4557 | (process_one_symbol): Change type of "section_offsets". | |
4558 | * ctfread.c (get_objfile_text_range): Update. | |
4559 | * coffread.c (coff_symtab_read, enter_linenos) | |
4560 | (process_coff_symbol): Update. | |
4561 | * coff-pe-read.c (add_pe_forwarded_sym): Update. | |
4562 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. | |
4563 | ||
456e800a TT |
4564 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
4565 | ||
4566 | * dwarf2read.c (parse_macro_definition): Use std::string. | |
4567 | (parse_macro_definition): Likewise. | |
4568 | ||
6dfa2fc2 TT |
4569 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
4570 | ||
4571 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. | |
4572 | (ATTR_ALLOC_CHUNK): Remove. | |
4573 | ||
421d1616 TT |
4574 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
4575 | ||
4576 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. | |
4577 | ||
43816ebc TT |
4578 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
4579 | ||
4580 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. | |
4581 | (dwarf2_compute_name, open_dwo_file): Likewise. | |
4582 | (process_enumeration_scope): Use std::vector. | |
4583 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. | |
4584 | (partial_die_info::fixup, dwarf2_start_subfile) | |
4585 | (guess_full_die_structure_name, dwarf2_name): Likewise. | |
4586 | (determine_prefix): Update. | |
4587 | (guess_full_die_structure_name): Make return type const. | |
4588 | (partial_die_full_name): Return unique_xmalloc_ptr. | |
4589 | (DW_FIELD_ALLOC_CHUNK): Remove. | |
4590 | ||
4212d509 TT |
4591 | 2020-01-07 Tom Tromey <tromey@adacore.com> |
4592 | ||
4593 | PR build/24937: | |
4594 | * stap-probe.c (class stap_static_probe_ops): Add constructor. | |
4595 | ||
06a6207a JT |
4596 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
4597 | ||
4598 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. | |
4599 | ||
153d79c4 AB |
4600 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
4601 | ||
4602 | * stack.c (print_frame_info): Move disassemble_next_line code | |
4603 | inside source_print block. | |
4604 | ||
66182876 EZ |
4605 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
4606 | ||
4607 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of | |
4608 | gdb/signals.h, as we are now using native signal symbols. | |
4609 | ||
cbfa8581 SV |
4610 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
4611 | ||
4612 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid | |
4613 | overflow by an early check of content vs threshold. | |
4614 | * tui/tui-source.c (tui_source_window::line_is_displayed): | |
4615 | Likewise. | |
4616 | ||
3f602821 EZ |
4617 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
4618 | ||
4619 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. | |
4620 | ||
a08c904d JT |
4621 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
4622 | ||
4623 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the | |
4624 | export table if no section contains it's RVA. | |
4625 | ||
89a65580 EZ |
4626 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
4627 | ||
4628 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. | |
4629 | ||
8b7fcda2 HD |
4630 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> |
4631 | ||
4632 | * source.c (print_source_lines_base): Set last_line_listed. | |
4633 | ||
a61b4f69 SV |
4634 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
4635 | ||
4636 | * tui/tui-disasm.c: Remove trailing spaces. | |
4637 | ||
559e7e50 EZ |
4638 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
4639 | Pedro Alves <palves@redhat.com> | |
4640 | ||
4641 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. | |
4642 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. | |
4643 | (windows_gdb_signal_to_target): New function, uses the above | |
4644 | enumeration to convert GDB internal signal codes to equivalent | |
4645 | Windows codes. | |
4646 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. | |
4647 | * windows-nat.c: Include "gdb_wait.h". | |
4648 | (get_windows_debug_event): Extract the fatal exception from the | |
4649 | exit status and convert to the equivalent Posix signal number. | |
4650 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the | |
4651 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. | |
4652 | * gdbsupport/gdb_wait.c: New file, implements | |
4653 | windows_status_to_termsig. | |
4654 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) | |
4655 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. | |
4656 | ||
f2302a34 AB |
4657 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> |
4658 | ||
4659 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not | |
4660 | show_layout. | |
4661 | ||
6a5206eb LM |
4662 | 2020-01-05 Luis Machado <luis.machado@linaro.org> |
4663 | ||
4664 | * aarch64-linux-nat.c | |
4665 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 | |
4666 | and bfd_mach_aarch64. | |
4667 | ||
6ec1d75e PW |
4668 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4669 | ||
4670 | * ui-file.c (stdio_file::can_emit_style_escape) | |
4671 | (tee_file::can_emit_style_escape): Ensure style is used also on | |
4672 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly | |
4673 | to gdb_stdout. | |
4674 | * main.c (set_gdb_data_directory): Use file style to output the | |
4675 | warning that the given pathname is not a directory. | |
4676 | * top.c (show_history_filename, gdb_safe_append_history) | |
4677 | (show_gdb_datadir): Use file style. | |
4678 | ||
44f81a76 HD |
4679 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
4680 | ||
4681 | * solib-target.c (struct lm_info_target): | |
4682 | Change offsets to be a unique_xmalloc_ptr. | |
4683 | (solib_target_relocate_section_addresses): Update. | |
4684 | ||
25057eb0 HD |
4685 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
4686 | ||
4687 | * windows-nat.c (windows_clear_solib): Free so_list linked list. | |
4688 | ||
6e2118f5 BE |
4689 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4690 | ||
4691 | * MAINTAINERS (Write After Approval): Add myself. | |
4692 | ||
8133c7dc LM |
4693 | 2020-01-02 Luis Machado <luis.machado@linaro.org> |
4694 | ||
4695 | * proc-service.c (get_ps_regcache): Remove reference to obsolete | |
4696 | Cell BE architecture. | |
4697 | * target.h (struct target_ops) <thread_architecture>: Likewise. | |
4698 | ||
48189bec HD |
4699 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
4700 | ||
4701 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
4702 | ||
ead1063b HD |
4703 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
4704 | ||
4705 | * MAINTAINERS (Write After Approval): Add myself. | |
4706 | ||
e5d78223 JB |
4707 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
4708 | ||
4709 | * gdbarch.sh: Update copyright year range of generated files. | |
4710 | ||
b811d2c2 JB |
4711 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
4712 | ||
4713 | Update copyright year range in all GDB files. | |
4714 | ||
5f4def5c JB |
4715 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
4716 | ||
4717 | * copyright.py: Convert to Python 3. | |
4718 | ||
51fd4002 JB |
4719 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
4720 | ||
4721 | * copyright.py: Adapt after move of gnulib directory from gdb | |
4722 | directory to toplevel directory. | |
4723 | ||
5fb651f2 JB |
4724 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
4725 | ||
4726 | * copyright.py (main): Exit if run from the wrong directory. | |
4727 | ||
5dd8bf88 JB |
4728 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
4729 | ||
4730 | * top.c (print_gdb_version): Change copyright year to 2020. | |
4731 | ||
9f71dacb | 4732 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
3d34df0a | 4733 | |
9f71dacb | 4734 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. |
3d34df0a | 4735 | |
9f71dacb | 4736 | For older changes see ChangeLog-2019. |
c906108c SS |
4737 | \f |
4738 | Local Variables: | |
4739 | mode: change-log | |
4740 | left-margin: 8 | |
4741 | fill-column: 74 | |
4742 | version-control: never | |
57da7796 | 4743 | coding: utf-8 |
c906108c | 4744 | End: |