]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Rename "target child" to "target native".
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4ebfc96e
PA
12014-05-21 Pedro Alves <palves@redhat.com>
2
3 * inf-child.c (inf_child_open): Remove mention of "child".
4 (inf_child_target): Rename target to "native" instead of "child".
5
2648dfed
AA
62014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7
8 * Makefile.in (SFILES): Delete "regset.c".
9 (COMMON_OBS): Delete "regset.o".
10 * regset.c: Remove.
11 * regset.h (regset_alloc): Delete prototype.
12
b13feb94
AA
132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
14
15 * sparc-linux-tdep.c (sparc32_linux_gregset)
16 (sparc32_linux_fpregset): New static regset structures.
17 (sparc32_linux_init_abi): Drop dynamic regset allocations.
18 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
19 'fpregset' fields.
20 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
21 (sparc64_linux_fpregset): New static regset structures.
22 (sparc64_linux_init_abi): Drop dynamic regset allocations.
23 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
24 New static regset structures.
25 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
26 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
27 New static regset structures.
28 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
29 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
30 New static regset structures.
31 (sparc64obsd_init_abi): Drop dynamic regset allocations.
32 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
33 New static regset structures.
34 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
35
b4fd25c9
AA
362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
37
38 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
39 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
40 register maps ("regmaps") from "*regset" to "*regmap". Do this
41 for all regmap types and variables.
42 * sparc-linux-tdep.c (sparc32_linux_step_trap)
43 (sparc32_linux_supply_core_gregset)
44 (sparc32_linux_collect_core_gregset)
45 (sparc32_linux_supply_core_fpregset)
46 (sparc32_linux_collect_core_fpregset): Likewise.
47 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
48 (sparc_gregmap, sparc_fpregmap): ... these.
49 (sparc_supply_gregset, sparc_collect_gregset)
50 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
51 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
52 (_initialize_sparc_nat): Rename regmaps.
53 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
54 (sparc_gregmap, sparc_fpregmap): ... these.
55 (sparc_supply_gregset, sparc_collect_gregset)
56 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
57 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
58 Rename macros to...
59 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
60 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
61 Likewise.
62 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
63 Rename to...
64 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
65 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
66 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
67 regmaps.
68 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
69 (sparc32_bsd_fpregset): Rename to...
70 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
71 (sparc32_bsd_fpregmap): ... these.
72 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
73 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
74 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
75 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
76 (struct sparc_gregmap, struct sparc_fpregmap)
77 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
78 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
79 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
80 (sparc32_supply_regset, sparc32_collect_gregset)
81 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
82 prototypes.
83 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
84 (sparc64_linux_ptrace_gregmap): ... this.
85 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
86 (_initialize_sparc64_linux_nat): Rename regmaps.
87 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
88 (sparc64_linux_core_gregmap): ... this.
89 (sparc64_linux_supply_core_gregset)
90 (sparc64_linux_collect_core_gregset)
91 (sparc64_linux_supply_core_fpregset)
92 (sparc64_linux_collect_core_fpregset): Rename regmaps.
93 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
94 (sparc64_sol2_fpregset): Rename to...
95 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
96 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
97 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
98 regmaps.
99 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
100 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
101 (sparc64_bsd_fpregset): Rename to...
102 (struct sparc_gregmap, sparc64_sol2_gregmap)
103 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
104 (sparc64_bsd_fpregmap): ... these.
105 (sparc64_supply_gregset, sparc64_collect_gregset)
106 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
107 prototypes.
108 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
109 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
110 (sparc64fbsd_gregmap): ... this.
111 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
112 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
113 Rename regmaps.
114 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
115 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
116 (sparc64nbsd_collect_fpregset): Likewise.
117 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
118 (sparc64nbsd_gregmap): ... this.
119 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
120 regmaps.
121 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
122 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
123 (sparc64obsd_gregmap): ... this.
124 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
125 regmaps.
126 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
127 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
128 (sparc32nbsd_gregmap): ... this.
129 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
130 regmaps.
131
8fea3224
AA
1322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
133
134 * score-tdep.c (score7_linux_gregset): New static regset
135 structure.
136 (score7_linux_regset_from_core_section): Remove dynamic regset
137 allocation.
138 (score_gdbarch_init): Drop allocation of tdep structure.
139 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
140
24534243
AA
1412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
142
143 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
144 regset structures.
145 (am33_regset_from_core_section): Remove dynamic regset
146 allocations.
147
b7195f27
AA
1482014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
149
150 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
151 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
152 structures.
153 (mips_linux_regset_from_core_section): Remove dynamic regset
154 allocations.
155 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
156 'gregset64', 'fpregset', and 'fpregset64'.
157 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
158 deleted tdep fields.
159
ecc37a5a
AA
1602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
161
162 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
163 regset structures.
164 (amd64_regset_from_core_section): Remove dynamic regset
165 allocations.
166 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
167 structure.
168 (amd64obsd_regset_from_core_section): Remove dynamic regset
169 allocation.
170 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
171 Likewise.
172 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
173 x86-common regset supply function.
174 * i386-tdep.c (i386_collect_gregset): Make static.
175 (i386_gregset): New global regset structure.
176 (i386_fpregset, i386_xstateregset): New static regset structures.
177 (i386_regset_from_core_section): Remove dynamic regset
178 allocations.
179 (i386_gdbarch_init): Remove initialization of tdep fields
180 'gregset', 'fpregset', and 'xstateregset'.
181 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
182 'fpregset', and 'xstateregset'.
183 (i386_collect_gregset): Remove prototype.
184 (i386_gregset): New declaration.
185 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
186 structure.
187 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
188 allocation.
189
b7611c43
AA
1902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
191
192 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
193 (arm_linux_vfpregset): New static regset structures.
194 (arm_linux_regset_from_core_section): Remove dynamic allocation of
195 regset structures.
196 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
197 and 'vfpregset' fields.
198
a069a2bd
AA
1992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
200
201 * aarch64-linux-tdep.c (aarch64_linux_gregset)
202 (aarch64_linux_fpregset): New static regset structures.
203 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
204 of regset structures.
205 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
206 'fpregset' fields.
207
09424cff
AA
2082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
209
210 * regset.h (struct regset): Remove gdbarch field.
211 * regset.c (regset_alloc): Drop initialization of gdbarch field.
212 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
213 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
214 Likewise.
215 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
216 (ppc32_linux_fpregset, ppc32_linux_vrregset)
217 (ppc32_linux_vsxregset): Likewise.
218 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
219 via the regcache instead of the regset.
220 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
221 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
222 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
223 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
224 Likewise.
225
3ca7dae4
AA
2262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
227
228 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
229 Constify structures.
230 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
231 (alphanbsd_aout_gregset): Likewise.
232 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
233 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
234 Likewise.
235 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
236 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
237 Likewise.
238 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
239 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
240 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
241 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
242 * m88k-tdep.c (m88k_gregset): Likewise.
243 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
244 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
245 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
246 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
247 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
248 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
249 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
250 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
251 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
252 Likewise.
253 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
254 * sh-tdep.h (sh_corefile_gregset): Likewise.
255 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
256 * vax-tdep.c (vax_gregset): Likewise.
257
5876f503
JK
2582014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
259
260 Fix TLS access for -static -pthread.
261 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
262 (try_thread_db_load_1): Initialize it.
263 (thread_db_get_thread_local_address): Call it if LM is zero.
264 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
265 * target.h (struct target_ops) (to_get_thread_local_address): Add
266 load_module_addr comment.
267
0256a6ac
PA
2682014-05-21 Pedro Alves <palves@redhat.com>
269
270 * dcache.c (dcache_read_memory_partial): If reading the cache line
271 fails, fallback to reading just the memory the caller wanted.
272
227533ac
DE
2732014-05-20 Doug Evans <dje@google.com>
274
275 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
276 instead of get_current_arch.
277
936d2992
PA
2782014-05-20 Pedro Alves <palves@redhat.com>
279
280 * NEWS: Mention that compare-sections now works with all targets.
281
282 * remote.c (PACKET_qCRC): New enum value.
283 (remote_verify_memory): Don't send qCRC if the target has no
284 execution. Use packet_support/packet_ok. If the target doesn't
285 support the qCRC packet, fallback to a deep memory copy.
286 (compare_sections_command): Say "target image" instead of "remote
287 executable".
288 (_initialize_remote): Add PACKET_qCRC to the list of config
289 packets that have no associated command. Extend comment.
290 * target.c (simple_verify_memory, default_verify_memory): New
291 function.
292 * target.h (struct target_ops) <to_verify_memory>: Default to
293 default_verify_memory.
294 (simple_verify_memory): New declaration.
295 * target-delegates.c: Regenerate.
296
e59fa00f
MM
2972014-05-20 Markus Metzger <markus.t.metzger@intel.com>
298
299 * record-btrace.c (record_btrace_step_thread): Check for empty history.
300
f2205de0
HZ
3012014-05-20 Hui Zhu <hui@codesourcery.com>
302 Yao Qi <yao@codesourcery.com>
303
304 PR backtrace/16558
305 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
306 and change address of sp and pc.
307
c4e54771
TT
3082014-05-19 Tom Tromey <tromey@redhat.com>
309
310 * gdbtypes.c (rank_function): Use XNEWVEC.
311 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
312
73051182
DE
3132014-05-19 Doug Evans <dje@google.com>
314
315 * dwarf2read.c (build_type_psymtabs_1): Renamed from
316 build_type_unit_groups and moved closer to only caller. Remove
317 arguments. All references updated. Remove outdated .gdb_index
318 comment.
319 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
320 build_type_psymtabs_1.
321
8832e7e3
DE
3222014-05-19 Doug Evans <dje@google.com>
323
324 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
325 n_type_unit_groups, all_type_unit_groups. All uses removed.
326 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
327 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
328 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
329 (add_type_unit_group_to_table): Delete.
330
cd8ae15e
DE
3312014-05-19 Doug Evans <dje@google.com>
332
333 * eval.c (evaluate_subexp_standard): Add some comments.
334
08f4850b
DE
3352014-05-17 Doug Evans <xdje42@gmail.com>
336
337 * progspace.c (remove_program_space): Delete, unused.
338 * progspace.h (remove_program_space): Ditto.
339
bed8455c
DE
3402014-05-17 Doug Evans <xdje42@gmail.com>
341
342 * inferior.c (prune_inferiors): Fix comment.
343 (remove_inferior_command): Call prune_program_spaces.
344
8d551b02
DE
3452014-05-16 Doug Evans <dje@google.com>
346
347 New command line option -D.
348 * NEWS: Mention it.
349 * main.c (set_gdb_data_directory): New function.
350 (captured_main): Recognize -D. Flag error for --data-directory "".
351 Call set_gdb_data_directory.
352 (print_gdb_help): Print --data-directory, -D.
353 * main.h (set_gdb_data_directory): Declare.
354 * top.c (staged_gdb_datadir): New static global.
355 (set_gdb_datadir): Call set_gdb_data_directory
356 (show_gdb_datadir): New function.
357 (init_main): Update init of data-directory parameter.
358
18848e28
GF
3592014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
360
361 Import the "dirfd" gnulib module.
362 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
363 * gnulib/aclocal.m4: Update.
364 * gnulib/config.in: Update.
365 * gnulib/configure: Update.
366 * gnulib/import/Makefile.am: Update.
367 * gnulib/import/Makefile.in: Update.
368 * gnulib/import/dirfd.c: New.
369 * gnulib/import/m4/dirfd.m4: New.
370 * gnulib/import/m4/gnulib-cache.m4: Update.
371 * gnulib/import/m4/gnulib-comp.m4: Update.
372
95c64f92
YQ
3732014-05-16 Pierre Muller <muller@sourceware.org>
374 Yao Qi <yao@codesourcery.com>
375
376 * valprint.c (print_wchar): Move the code on checking whether
377 W is a printable wide char to the default branch of switch
378 statement below. Call wchar_printable instead of gdb_iswprint.
379
cac395ea
TM
3802014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
381
19679eca 382 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
383 ldr.w and ldrd instructions.
384
83655187
DE
3852014-05-15 Doug Evans <dje@google.com>
386
387 * dwarf2read.c (read_structure_type): Delete outdated comments.
388
dd756689
TT
3892014-05-14 Tom Tromey <tromey@redhat.com>
390
391 * macrocmd.c (print_macro_definition): Reindent.
392
75ddda77
DE
3932014-05-13 Doug Evans <xdje42@gmail.com>
394
395 * python/py-cmd.c (cmdpy_completer): Add comment.
396 (completers): Make const.
397
b0f16a3e
SM
3982014-05-13 Simon Marchi <simon.marchi@ericsson.com>
399
400 * infrun.c (resume): Remove should_resume (unused). Move up
401 declaration of resume_ptid.
402
033c3379
TT
4032014-05-13 Tom Tromey <tromey@redhat.com>
404
405 * language.h (unop_type_check): Remove.
406 (binop_type_check): Don't declare.
407
9b44a3a5
AA
4082014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
409
410 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
411 call to regcache_raw_collect.
412
303a33fa
SM
4132014-05-12 Simon Marchi <simon.marchi@ericsson.com>
414
415 * mi/mi-console.c (mi_console_raw_packet): Use the value from
416 mi_console->quote as the quoting character.
417
196100a0
SM
4182014-05-12 Simon Marchi <simon.marchi@ericsson.com>
419
420 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
421
f989a1c8
TT
4222014-04-29 Tom Tromey <tromey@redhat.com>
423
424 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
425 "show debug varobj".
426
9404b58f
KM
4272014-05-07 Kyle McMartin <kyle@redhat.com>
428
429 Pushed by Joel Brobecker <brobecker@adacore.com>.
430 * aarch64-tdep.c (aarch64_software_single_step): New function.
431 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
432 with aarch64_software_single_step.
433
5e49ba57
JB
4342014-05-05 Joel Brobecker <brobecker@adacore.com>
435
436 GDB 7.7.1 released.
437
c888a17d
KS
4382014-05-05 Keith Seitz <keiths@redhat.com>
439
440 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
441 variable or history value is successfully parsed.
442
290a839c
YQ
4432014-05-05 Yao Qi <yao@codesourcery.com>
444 Pedro Alves <palves@redhat.com>
445
446 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
447 address of blocks that intersects the requested range. Trim
448 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
449 sections.
450 * ctf.c (ctf_xfer_partial): Likewise.
451
91256dc2
YQ
4522014-05-05 Yao Qi <yao@codesourcery.com>
453
454 * printcmd.c (display_command): Remove the check to
455 target_has_execution.
456
07284463
MK
4572014-05-03 Mark Kettenis <kettenis@gnu.org>
458
459 * ppcobsd-nat.c: Include "obsd-nat.h".
460 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
461 add_target.
462 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
463
30a1e6cc
SDJ
4642014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
465
466 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
467 and 16-bit signed and unsigned arguments. Update comment.
468 (stap_parse_probe_arguments): Extend code to handle such
469 arguments. Use warning instead of complaint to notify about
470 unrecognized bitness.
471
f33da99a
SDJ
4722014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
473
474 PR breakpoints/16889
475 * stap-probe.c (stap_parse_probe_arguments): Simplify
476 check for non-prefixed probes (i.e., probes whose
477 arguments do not start with "N@"). Always set the
478 argument type to a sane value.
479
95cf3b38
DT
4802014-05-01 David Taylor <dtaylor@emc.com>
481
482 * remote.c (compare_sections_command): Add -r option to compare
483 all loadable read-only sections.
484
1cfdf534
SC
4852014-04-30 Siva Chandra Reddy <sivachandra@google.com>
486
487 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
488 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
489 Update all callers.
490 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
491 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
492 Remove unused CORE_ADDR argument. Update all callers.
493
ca4f7f8b
PA
4942014-04-29 Pedro Alves <palves@redhat.com>
495
496 * remote.c (struct packet_config) <detect>: Extend comment.
497 (add_packet_config_cmd): Don't set the config's detect or support
498 fields here.
499 (init_all_packet_configs): Also initialize the config's 'detect'
500 field.
501 (reset_all_packet_configs_support): New function.
502 (remote_open_1): Call reset_all_packet_configs_support instead of
503 init_all_packet_configs.
504 (_initialize_remote): Initialize all packet configs. Assert that
505 all packets have an associated command, except a few known
506 outliers.
507
11c1ba78
JB
5082014-04-28 Joel Brobecker <brobecker@adacore.com>
509
510 * dwarf2read.c (read_subrange_type): Handle dynamic
511 DW_AT_lower_bound attributes.
512
8739bc53
JB
5132014-04-28 Joel Brobecker <brobecker@adacore.com>
514
515 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
516 dynamic bounds before computing its upper bound.
517 (ada_discrete_type_low_bound): Same as above with the lower bound.
518
6f8a3220
JB
5192014-04-28 Joel Brobecker <brobecker@adacore.com>
520
521 * dwarf2read.c (is_dynamic_type): Return true for dynamic
522 range types. Adjust the array handling implementation to
523 take advantage of this change.
524 (resolve_dynamic_range): New function, mostly extracted from
525 resolve_dynamic_bounds.
526 (resolve_dynamic_array): New function, mostly extracted from
527 resolve_dynamic_bounds.
528 (resolve_dynamic_bounds): Delete.
529 (resolve_dynamic_type): Reimplement. Add handling of
530 TYPE_CODE_RANGE types.
531
4d072ce4
JB
5322014-04-28 Joel Brobecker <brobecker@adacore.com>
533
534 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
535 handling of parallel ___XA types.
536
52865325
JB
5372014-04-28 Joel Brobecker <brobecker@adacore.com>
538
539 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
540 unnecessary second call to static_unwrap_type.
541
433e77fa
HZ
5422014-04-27 Hui Zhu <hui@codesourcery.com>
543
544 * stack.c (print_frame_info): Call do_gdb_disassembly with
545 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
546
b51a69ee
DE
5472014-04-26 Doug Evans <xdje42@gmail.com>
548
549 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
550
7ae1a6a6
PA
5512014-04-25 Pedro Alves <palves@redhat.com>
552
553 PR server/16255
554 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
555 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
556 and newline from built string.
557 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
558 (linux_ptrace_attach_fail_reason): ... this.
559 * linux-nat.c (linux_nat_attach): Adjust to use
560 linux_ptrace_attach_fail_reason.
561
4082afcc
PA
5622014-04-25 Pedro Alves <palves@redhat.com>
563
564 * remote.c (struct remote_state): Remove multi_process_aware,
565 non_stop_aware, cond_tracepoints, cond_breakpoints,
566 breakpoint_commands, fast_tracepoints, static_tracepoints,
567 install_in_trace, disconnected_tracing,
568 enable_disable_tracepoints, string_tracing, and
569 augmented_libraries_svr4_read fields.
570 (remote_multi_process_p): Move further below in the file.
571 (struct packet_config): Add comments.
572 (update_packet_config): Delete function.
573 (show_packet_config_cmd): Use packet_config_support.
574 (add_packet_config_cmd): Use NULL as set callback.
575 (packet_ok): "set remote foo-packet"-style commands no longer
576 change config->supported -- adjust.
577 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
578 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
579 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
580 (PACKET_QNonStop, PACKET_multiprocess_feature)
581 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
582 (PACKET_DisconnectedTracing_feature)
583 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
584 (set_remote_protocol_packet_cmd): Delete function.
585 (packet_config_support, packet_support): New functions.
586 (set_remote_protocol_Z_packet_cmd): Don't call
587 update_packet_config.
588 (remote_query_attached, remote_pass_signals)
589 (remote_program_signals, remote_threads_info)
590 (remote_threads_extra_info, remote_start_remote): Use
591 packet_support.
592 (remote_start_remote): Use packet_config_support and
593 packet_support.
594 (init_all_packet_configs): Set all packets to unknown support,
595 instead of calling update_packet_config.
596 (remote_check_symbols): Use packet_support.
597 (remote_supported_packet): Unconditionally set the packet config's
598 support status.
599 (remote_multi_process_feature, remote_non_stop_feature)
600 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
601 (remote_breakpoint_commands_feature)
602 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
603 (remote_install_in_trace_feature)
604 (remote_disconnected_tracing_feature)
605 (remote_enable_disable_tracepoint_feature)
606 (remote_string_tracing_feature)
607 (remote_augmented_libraries_svr4_read_feature): Delete functions.
608 (remote_protocol_features): Adjust to use remote_supported_packet
609 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
610 "ConditionalTracepoints", "ConditionalBreakpoints",
611 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
612 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
613 "EnableDisableTracepoints", and "tracenz".
614 (remote_query_supported): Use packet_support.
615 (remote_open_1): Adjust.
616 (extended_remote_attach_1): Use packet_support. Switch on the
617 result of packet_ok instead of checking whether the packet ended
618 up disabled.
619 (remote_vcont_resume): Use packet_support.
620 (remote_resume, remote_stop_ns, fetch_register_using_p)
621 (remote_prepare_to_store, store_register_using_P)
622 (check_binary_download, remote_write_bytes): Use packet_support.
623 (remote_vkill): Use packet_support. Switch on the result of
624 packet_ok instead of checking whether the packet ended up
625 disabled.
626 (extended_remote_supports_disable_randomization): Use
627 packet_support.
628 (extended_remote_run): Switch on the result of packet_ok instead
629 of checking whether the packet ended up disabled.
630 (remote_insert_breakpoint, remote_remove_breakpoint)
631 (remote_insert_watchpoint, remote_remove_watchpoint)
632 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
633 packet_support.
634 (remote_search_memory): Use packet_config_support.
635 (remote_get_thread_local_address, remote_get_tib_address)
636 (remote_hostio_send_command, remote_can_execute_reverse): Use
637 packet_support.
638 (remote_supports_cond_tracepoints)
639 (remote_supports_cond_breakpoints)
640 (remote_supports_fast_tracepoints)
641 (remote_supports_static_tracepoints)
642 (remote_supports_install_in_trace)
643 (remote_supports_enable_disable_tracepoint)
644 (remote_supports_string_tracing)
645 (remote_can_run_breakpoint_commands): Rewrite, checking whether
646 the packet config says the feature is enabled or disabled.
647 (remote_download_tracepoint, remote_trace_set_readonly_regions)
648 (remote_get_trace_status): Use packet_support.
649 (remote_set_disconnected_tracing): Adjust to check whether the
650 feature is enabled with packet_support.
651 (remote_set_trace_buffer_size, remote_use_agent)
652 (remote_can_use_agent, remote_supports_btrace): Use
653 packet_support.
654 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
655 Use packet_config_support.
656 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
657 the packet config says the feature is enabled or disabled.
658 (set_range_stepping): Use packet_support.
659
bdb52a22
TT
6602014-04-25 Tom Tromey <tromey@redhat.com>
661
662 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
663 argument.
664
e9475ead
SA
6652014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
666
667 * NEWS: Mention support for C99 variable length arrays.
668
82eacd52
JB
6692014-04-24 Joel Brobecker <brobecker@adacore.com>
670
671 * ada-lang.c (standard_exc): Expand introductory comment.
672
01f9f808
MS
6732014-04-24 Michael Sturm <michael.sturm@mintel.com>
674 Walfred Tedeschi <walfred.tedeschi@intel.com>
675
676 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
677 AVX512 registers.
678 (amd64_linux_read_description): Add code to handle AVX512 xstate
679 mask and return respective tdesc.
680 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
681 and features/i386/x32-avx512-linux.c.
682 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
683 (amd64_linux_core_read_description): Add code to handle AVX512
684 xstate mask and return respective tdesc.
685 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
686 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
687 calculation.
688 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
689 (tdesc_amd64_avx512_linux): New prototype.
690 (tdesc_x32_avx512_linux): Likewise.
691 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
692 features/i386/x32-avx512.c.
693 (amd64_ymm_avx512_names): New register names for pseudo
694 registers YMM16-31.
695 (amd64_ymmh_avx512_names): New register names for raw registers
696 YMMH16-31.
697 (amd64_k_names): New register names for K registers.
698 (amd64_zmmh_names): New register names for ZMM raw registers.
699 (amd64_zmm_names): New registers names for ZMM pseudo registers.
700 (amd64_xmm_avx512_names): New register names for XMM16-31
701 registers.
702 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
703 registers.
704 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
705 if feature is present.
706 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
707 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
708 (AMD64_NUM_REGS): Adjust to new number of registers.
709 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
710 registers supplied via XSTATE by AVX512 registers.
711 (i386_linux_read_description): Add case for AVX512.
712 * i386-linux-tdep.c: Include i386-avx512-linux.c.
713 (i386_linux_gregset_reg_offset): Add AVX512 registers.
714 (i386_linux_core_read_description): Add case for AVX512.
715 (i386_linux_init_abi): Install supported register note section
716 for AVX512.
717 (_initialize_i386_linux_tdep): Add call to tdesc init function for
718 AVX512.
719 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
720 registers to be number of zmm7h + 1.
721 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
722 * i386-tdep.c: Include features/i386/i386-avx512.c.
723 (i386_zmm_names): Add ZMM pseudo register names array.
724 (i386_zmmh_names): Add ZMM raw register names array.
725 (i386_k_names): Add K raw register names array.
726 (num_lower_zmm_regs): Add constant for the number of lower ZMM
727 registers. AVX512 has 16 more ZMM registers than there are YMM
728 registers.
729 (i386_zmmh_regnum_p): Add function to look up register number of
730 ZMM raw registers.
731 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
732 (i386_k_regnum_p): Likewise for K raw registers.
733 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
734 registers added by AVX512.
735 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
736 registers added by AVX512.
737 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
738 added by AVX512.
739 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
740 (i386_pseudo_register_name): Add ZMM pseudo registers.
741 (i386_zmm_type): Construct and return vector registers type for ZMM
742 registers.
743 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
744 ZMM0-31 pseudo registers and K registers.
745 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
746 and YMM16-31 registers from register cache.
747 (i386_pseudo_register_write): Add code to write K, ZMM and
748 YMM16-31 registers.
749 (i386_register_reggroup_p): Add code to include/exclude AVX512
750 registers in/from respective register groups.
751 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
752 registers if feature is present in xcr0.
753 (i386_gdbarch_init): Add code to initialize AVX512 feature
754 variables in tdep structure, wire in pseudo registers and call
755 initialize_tdesc_i386_avx512.
756 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
757 variables.
758 (i386_regnum): Add AVX512 registers.
759 (I386_SSE_NUM_REGS): New define for number of SSE registers.
760 (I386_AVX_NUM_REGS): Likewise for AVX registers.
761 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
762 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
763 512 bits wide.
764 (i386_xmm_avx512_regnum_p): New prototype for register look up.
765 (i386_ymm_avx512_regnum_p): Likewise.
766 (i386_k_regnum_p): Likewise.
767 (i386_zmm_regnum_p): Likewise.
768 (i386_zmmh_regnum_p): Likewise.
769 * i387-tdep.c : Update year in copyright notice.
770 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
771 XSAVE buffer.
772 (XSAVE_YMM_AVX512_ADDR): New macro.
773 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
774 XSAVE buffer.
775 (XSAVE_XMM_AVX512_ADDR): New macro.
776 (xsave_avx512_k_offset): New table for K register offsets in
777 XSAVE buffer.
778 (XSAVE_AVX512_K_ADDR): New macro.
779 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
780 in XSAVE buffer.
781 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
782 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
783 buffer.
784 (i387_collect_xsave): Add code to collect AVX512 registers from
785 XSAVE buffer.
786 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
787 of XMM16-31 registers.
788 (I387_NUM_K_REGS): New define for number of K registers.
789 (I387_K0_REGNUM): New define for K0 register number.
790 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
791 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
792 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
793 registers.
794 (I387_YMM16H_REGNUM): New define for YMM16H register number.
795 (I387_XMM16_REGNUM): New define for XMM16 register number.
796 (I387_YMM0_REGNUM): New define for YMM0 register number.
797 (I387_KEND_REGNUM): New define for last K register number.
798 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
799 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
800 number.
801 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
802 number.
803 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
804 size.
805 * features/Makefile: Add AVX512 related files.
806 * features/i386/32bit-avx512.xml: New file.
807 * features/i386/64bit-avx512.xml: Likewise.
808 * features/i386/amd64-avx512-linux.c: Likewise.
809 * features/i386/amd64-avx512-linux.xml: Likewise.
810 * features/i386/amd64-avx512.c: Likewise.
811 * features/i386/amd64-avx512.xml: Likewise.
812 * features/i386/i386-avx512-linux.c: Likewise.
813 * features/i386/i386-avx512-linux.xml: Likewise.
814 * features/i386/i386-avx512.c: Likewise.
815 * features/i386/i386-avx512.xml: Likewise.
816 * features/i386/x32-avx512-linux.c: Likewise.
817 * features/i386/x32-avx512-linux.xml: Likewise.
818 * features/i386/x32-avx512.c: Likewise.
819 * features/i386/x32-avx512.xml: Likewise.
820 * regformats/i386/amd64-avx512-linux.dat: New file.
821 * regformats/i386/amd64-avx512.dat: Likewise.
822 * regformats/i386/i386-avx512-linux.dat: Likewise.
823 * regformats/i386/i386-avx512.dat: Likewise.
824 * regformats/i386/x32-avx512-linux.dat: Likewise.
825 * regformats/i386/x32-avx512.dat: Likewise.
826 * NEWS: Add note about new support for AVX512.
827
828
08351840
PA
8292014-04-23 Pedro Alves <palves@redhat.com>
830
831 * breakpoint.c (insert_bp_location): Tolerate errors if the
832 breakpoint is set in a user-loaded objfile.
833 (remove_breakpoint_1): Likewise. Also tolerate errors if the
834 location is marked shlib_disabled. If the breakpoint is set in a
835 user-loaded objfile is a GDB-side memory breakpoint, validate it
836 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
837 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
838 flag.
839 * mem-break.c (memory_validate_breakpoint): New function.
840 * objfiles.c (userloaded_objfile_contains_address_p): New
841 function.
842 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
843 * target.h (memory_validate_breakpoint): New declaration.
844
076855f9
PA
8452014-04-23 Pedro Alves <palves@redhat.com>
846
847 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
848 the breakpoint is set in a shared library, only suppress
849 errors for software breakpoints, not hardware breakpoints.
850
483805cf
PA
8512014-04-22 Pedro Alves <palves@redhat.com>
852
853 * infrun.c (schedlock_applies): New function, factored out from
854 find_thread_needs_step_over.
855 (find_thread_needs_step_over): Use it.
856 (switch_back_to_stepped_thread): Always clear trap_expected if the
857 step over is finished. Return early if scheduler locking applies.
858 Look for the stepping thread and a potential step-over thread with
859 a single loop.
860 (currently_stepping_or_nexting_callback): Delete.
861
a75fef0e
NC
8622014-04-22 Nick Clifton <nickc@redhat.com>
863
864 * NEWS: Mention that ARM sim now supports tracing.
865
48b6e87e
YQ
8662014-04-22 Yao Qi <yao@codesourcery.com>
867
868 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
869 to ...
870 * tracefile.c (tracefile_fetch_registers): ... it. New
871 function.
872 * tracefile.h (tracefile_fetch_registers): Declare.
873 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
874 tracefile_fetch_registers.
875
17617f2d
EZ
8762014-04-19 Eli Zaretskii <eliz@gnu.org>
877
878 PR gdb/14018
879 * windows-nat.c (thread_rec): Don't display a warning when
880 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
881 fails for any reason, set th->suspended to -1, so that we don't
882 try to resume such a thread. Also, don't return NULL in these
883 cases, to avoid completely ruin the session due to "PC register is
884 not available" error.
885 (do_windows_fetch_inferior_registers): Check errors in
886 GetThreadContext call.
887 (windows_continue): Accept an additional argument KILLED; if not
888 zero, ignore errors in the SetThreadContext call, since the
889 inferior was killed and is shutting down.
890 (windows_resume, get_windows_debug_event)
891 (windows_create_inferior, windows_mourn_inferior)
892 (windows_kill_inferior): All callers of windows_continue changed
893 to adjust to its new calling sequence.
894
5723a6fd
YQ
8952014-04-19 Yao Qi <yao@codesourcery.com>
896
897 * ctf.c (ctf_open): Call post_create_inferior.
898
614d5099
YQ
8992014-04-19 Yao Qi <yao@codesourcery.com>
900
901 * ctf.c (handle_id): New static variable.
902 (ctf_open_dir): Get handle_id from bt_context_add_trace return
903 value. Get the declaration of event "register" and get length
904 of field "contents".
905
dac3e710
YQ
9062014-04-19 Yao Qi <yao@codesourcery.com>
907
908 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
909
2bca57ba
SC
9102014-04-18 Siva Chandra Reddy <sivachandra@google.com>
911
912 * valops.c (oload_method_static): Remove unnecessary argument
913 METHOD. Update all callers.
914
51d48146
PA
9152014-04-18 Pedro alves <palves@redhat.com>
916 Tom Tromey <tromey@redhat.com>
917
918 PR backtrace/15558
919 * frame.c (get_prev_frame_1): Rename to ...
920 (get_prev_frame_always): ... this, and make extern. Adjust.
921 (skip_artificial_frames): Use get_prev_frame_always.
922 (frame_unwind_caller_id, frame_pop, get_prev_frame)
923 (get_frame_unwind_stop_reason): Adjust to rename.
924 * frame.h (get_prev_frame_always): Declare.
925 * inline-frame.c: Include frame.h.
926 (inline_frame_this_id): Use get_prev_frame_always.
927
1bdad2e0
TG
9282014-04-18 Tristan Gingold <gingold@adacore.com>
929
930 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
931 code by using bfd_mach_o_get_base_address.
932
7ce16bd4
UW
9332014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
934
935 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
936 (spu_ax_pseudo_register_collect): New function.
937 (spu_ax_pseudo_register_push_stack): Likewise.
938 (spu_dwarf_reg_to_regnum): Likewise.
939 (spu_gdbarch_init): Install them. Append DWARF unwinders.
940
2ed3c037
UW
9412014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
942
943 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
944 Replace FRAME argument with FRAME_ID.
945 * gdbarch.c, gdbarch.h: Regenerate.
946 * findvar.c (default_value_from_register): Add GDBARCH argument;
947 replace FRAME by FRAME_ID. No longer call get_frame_id.
948 (value_from_register): Update call to gdbarch_value_from_register.
949 * value.h (default_value_from_register): Update prototype.
950 * s390-linux-tdep.c (s390_value_from_register): Update interface
951 and call to default_value_from_register.
952 * spu-tdep.c (spu_value_from_register): Likewise.
953
954 * findvar.c (address_from_register): Remove TYPE argument.
955 Do not call value_from_register; use gdbarch_value_from_register
956 with null_frame_id instead.
957 * value.h (address_from_register): Update prototype.
958 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
959 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
960 address_from_register interface change.
961
71e50e83
YQ
9622014-04-17 Yao Qi <yao@codesourcery.com>
963
964 * gdbtypes.h: Update comments to link to types and macros'
965 definitions.
966
7a23c549
SC
9672014-04-16 Siva Chandra Reddy <sivachandra@google.com>
968
969 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
970
22869d73
KS
9712014-04-16 Keith Seitz <keiths@redhat.com>
972
973 PR gdb/15827
974 * dwarf2read.c (skip_one_die): Check that all relative-offset
975 sibling DIEs fall within range of the current reader's buffer.
976 (read_partial_die): Likewise.
977
c4f87ca6
KS
9782014-04-16 Keith Seitz <keiths@redhat.com>
979
980 PR c++/16597
981 * cp-namespace.c (lookup_symbol_file): If the type name of
982 `this' is NULL, return immediately.
983
b50c8614
KS
9842014-04-14 Keith Seitz <keiths@redhat.com>
985
986 PR c++/16253
987 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
988 from symbol_matches_domain in symtab.c. All local callers
989 of symbol_matches_domain updated.
990 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
991 search STRUCT_DOMAIN.
992 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
993 independently. standard_lookup will do that automatically.
994 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
995 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
996 (cp_lookup_symbol_in_namespace): Likewise.
997 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
998 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
999 may return a STRUCT_DOMAIN match.
1000 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1001 * cp-support.c: Include language.h.
1002 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1003 VAR_DOMAIN.
1004 * psymtab.c (match_partial_symbol): Compare the requested
1005 domain with the symbol's domain directly.
1006 (lookup_partial_symbol): Likewise.
1007 * symtab.c (lookup_symbol_in_language): Explain when/why
1008 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1009 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1010 appropriate languages.
1011 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1012 and moved to ada-lang.c
1013 (lookup_block_symbol): Explain that this function only returns
1014 symbol matching the requested DOMAIN.
1015 Compare the requested domain with the symbol's domain directly.
1016 (iterate_over_symbols): Compare the requested domain with the
1017 symbol's domain directly.
1018 * symtab.h (symbol_matches_domain): Remove.
1019
3d567982
TT
10202014-04-14 Tom Tromey <tromey@redhat.com>
1021
1022 PR c++/15246:
1023 * c-exp.y (type_aggregate_p): New function.
1024 (qualified_name, classify_inner_name): Use it.
1025 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1026 and TYPE_TARGET_TYPE of an enum type.
1027 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1028 an enum type.
1029 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1030 handle TYPE_DECLARED_CLASS.
1031 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1032 types.
1033 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1034 * valops.c (enum_constant_from_type): New function.
1035 (value_aggregate_elt): Use it.
1036 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1037 TYPE_CODE_ENUM.
1038
c848d642
TT
10392014-04-14 Tom Tromey <tromey@redhat.com>
1040
1041 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1042 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1043 const.
1044 * value.h (value_aggregate_elt): Update.
1045
0626fc76
TT
10462014-04-14 Tom Tromey <tromey@redhat.com>
1047
1048 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1049
5ecaaa66
SA
10502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1051
1052 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1053 (evaluate_subexp_standard): Pass noside argument.
1054 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1055 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1056 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1057 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1058 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1059
1612e0c0
SA
10602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1061
1062 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1063 points to a constant blob.
1064
c451ebe5
SA
10652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1066
1067 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1068 property and store it as the high bound and flag the range accordingly.
1069 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1070 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1071 * gdbtypes.h (enum range_flags): New enum.
1072 (struct range_bounds): Add flags member.
1073
1d42e4c4
SA
10742014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1075
1076 * c-typeprint.c (c_type_print_varspec_suffix): Added
1077 check for not yet resolved high bound. If unresolved, print
1078 "variable length" string to the console instead of random
1079 length.
1080
9f1f738a
SA
10812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1082
1083 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1084 value.
1085 (ada_template_to_fixed_record_type_1): Likewise.
1086 (ada_to_fixed_type_1): Likewise.
1087 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1088 (cp_print_value): Likewise.
1089 * d-valprint.c (dynamic_array_type): Likewise.
1090 * findvar.c (address_of_variable): Likewise.
1091 * jv-valprint.c (java_value_print): Likewise.
1092 * valops.c (value_ind): Likewise.
1093 * value.c (coerce_ref): Likewise.
1094
3c8452d4
SA
10952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1096
1097 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1098 value and retrieve the dynamic type size.
1099
4ad88275
SA
11002014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1101
1102 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1103 passed to sizeof is dynamic evaluate the argument to compute the length.
1104
80180f79
SA
11052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1106 Joel Brobecker <brobecker@adacore.com>
1107
1108 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1109 (dwarf2_evaluate_property): New function.
1110 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1111 * dwarf2read.c (attr_to_dynamic_prop): New function.
1112 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1113 attribute.
1114 * gdbtypes.c: Include dwarf2loc.h.
1115 (is_dynamic_type): New function.
1116 (resolve_dynamic_type): New function.
1117 (resolve_dynamic_bounds): New function.
1118 (get_type_length): New function.
1119 (check_typedef): Use get_type_length to compute type length.
1120 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1121 (TYPE_LOW_BOUND_KIND): New macro.
1122 (is_dynamic_type): New function prototype.
1123 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1124 to resolve dynamic properties of the type. Update comment.
1125 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1126
a1556843
RH
11272014-04-14 Richard Henderson <rth@redhat.com>
1128
1129 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1130
0be03e84
DE
11312014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1132 Doug Evans <xdje42@gmail.com>
1133
1134 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1135 dereference TYPE_CODE_REF values.
1136
6b662e19
JB
11372014-04-11 Joel Brobecker <brobecker@adacore.com>
1138
1139 Revert the following changes due to regressions:
1140
1141 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1142 (dwarf2_evaluate_property): New function.
1143 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1144 * dwarf2read.c (attr_to_dynamic_prop): New function.
1145 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1146 attribute.
1147 * gdbtypes.c: Include dwarf2loc.h.
1148 (is_dynamic_type): New function.
1149 (resolve_dynamic_type): New function.
1150 (resolve_dynamic_bounds): New function.
1151 (get_type_length): New function.
1152 (check_typedef): Use get_type_length to compute type length.
1153 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1154 (TYPE_LOW_BOUND_KIND): New macro.
1155 (is_dynamic_type): New function prototype.
1156 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1157 to resolve dynamic properties of the type. Update comment.
1158 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1159
1160 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1161 passed to sizeof is dynamic evaluate the argument to compute the length.
1162
1163 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1164 value and retrieve the dynamic type size.
1165
1166 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1167 (ada_template_to_fixed_record_type_1): Likewise.
1168 (ada_to_fixed_type_1): Likewise.
1169 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1170 (cp_print_value): Likewise.
1171 * d-valprint.c (dynamic_array_type): Likewise.
1172 * eval.c (evaluate_subexp_with_coercion): Likewise.
1173 * findvar.c (address_of_variable): Likewise.
1174 * jv-valprint.c (java_value_print): Likewise.
1175 * valops.c (value_ind): Likewise.
1176 * value.c (coerce_ref): Likewise.
1177
1178 * c-typeprint.c (c_type_print_varspec_suffix): Added
1179 check for not yet resolved high bound. If unresolved, print
1180 "variable length" string to the console instead of random
1181 length.
1182
1183 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1184 property and store it as the high bound and flag the range accordingly.
1185 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1186 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1187 * gdbtypes.h (enum range_flags): New enum.
1188 (struct range_bounds): Add flags member.
1189
1190 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1191 points to a constant blob.
1192
1193 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1194 (evaluate_subexp_standard): Pass noside argument.
1195 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1196 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1197 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1198 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1199 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1200
245a5f0b
KS
12012014-04-11 Keith Seitz <keiths@redhat.com>
1202
1203 PR c++/16675
1204 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1205 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1206 reference types.
1207
3bce8237
SA
12082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1209
1210 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1211 (evaluate_subexp_standard): Pass noside argument.
1212 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1213 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1214 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1215 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1216 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1217
92b09522
SA
12182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1219
1220 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1221 points to a constant blob.
1222
e1969afb
SA
12232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1224
1225 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1226 property and store it as the high bound and flag the range accordingly.
1227 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1228 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1229 * gdbtypes.h (enum range_flags): New enum.
1230 (struct range_bounds): Add flags member.
1231
b86138fb
SA
12322014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1233
1234 * c-typeprint.c (c_type_print_varspec_suffix): Added
1235 check for not yet resolved high bound. If unresolved, print
1236 "variable length" string to the console instead of random
1237 length.
1238
bcd629a4
SA
12392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1240
1241 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1242 (ada_template_to_fixed_record_type_1): Likewise.
1243 (ada_to_fixed_type_1): Likewise.
1244 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1245 (cp_print_value): Likewise.
1246 * d-valprint.c (dynamic_array_type): Likewise.
1247 * eval.c (evaluate_subexp_with_coercion): Likewise.
1248 * findvar.c (address_of_variable): Likewise.
1249 * jv-valprint.c (java_value_print): Likewise.
1250 * valops.c (value_ind): Likewise.
1251 * value.c (coerce_ref): Likewise.
1252
04b19544
SA
12532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1254
1255 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1256 value and retrieve the dynamic type size.
1257
26cb189f
SA
12582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1259
1260 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1261 passed to sizeof is dynamic evaluate the argument to compute the length.
1262
37c1ab67
SA
12632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1264
1265 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1266 (dwarf2_evaluate_property): New function.
1267 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1268 * dwarf2read.c (attr_to_dynamic_prop): New function.
1269 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1270 attribute.
1271 * gdbtypes.c: Include dwarf2loc.h.
1272 (is_dynamic_type): New function.
1273 (resolve_dynamic_type): New function.
1274 (resolve_dynamic_bounds): New function.
1275 (get_type_length): New function.
1276 (check_typedef): Use get_type_length to compute type length.
1277 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1278 (TYPE_LOW_BOUND_KIND): New macro.
1279 (is_dynamic_type): New function prototype.
1280 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1281 to resolve dynamic properties of the type. Update comment.
1282 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1283
729efb13
SA
12842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1285
1286 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1287 declaring high/low bounds and change uses accordingly. Call
1288 create_range_type instead of create_static_range_type.
1289 * gdbtypes.c (create_range_type): New function.
1290 (create_range_type): Convert bounds into struct bound_prop and pass
1291 them to create_range_type.
1292 * gdbtypes.h (struct bound_prop): New struct.
1293 (create_range_type): New function prototype.
1294 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1295 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1296 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1297 part of the bound.
1298 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1299
0c9c3474
SA
13002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1301
1302 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1303 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1304 * ada-lang.c: All uses of create_range_type updated.
1305 * coffread.c: All uses of create_range_type updated.
1306 * dwarf2read.c: All uses of create_range_type updated.
1307 * f-exp.y: All uses of create_range_type updated.
1308 * m2-valprint.c: All uses of create_range_type updated.
1309 * mdebugread.c: All uses of create_range_type updated.
1310 * stabsread.c: All uses of create_range_type updated.
1311 * valops.c: All uses of create_range_type updated.
1312 * valprint.c: All uses of create_range_type updated.
1313
9d497a19
PA
13142014-04-10 Pedro Alves <palves@redhat.com>
1315
1316 * breakpoint.c (single_step_breakpoints)
1317 (single_step_gdbarch): Move up in the file.
1318 (one_breakpoint_xfer_memory): New function, factored out from ...
1319 (breakpoint_xfer_memory): ... here. Also process single-step
1320 breakpoints.
1321
15a9128a
TG
13222014-04-09 Tristan Gingold <gingold@adacore.com>
1323
1324 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1325 comments.
1326 (darwin_decode_exception_message): Free port only after use.
1327
9c97a070
PL
13282014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1329
1330 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1331 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1332 when setting the size of call_length.
1333
7af389b8
SC
13342014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1335
1336 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1337 dereference TYPE_CODE_REF values.
1338
86ad98c3
JB
13392014-04-07 Joel Brobecker <brobecker@adacore.com>
1340
1341 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1342 end of warning message.
1343
b0aeadb3
DE
13442014-04-03 Doug Evans <dje@google.com>
1345
1346 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1347 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1348
5979d6b6
AM
13492014-04-02 Alan Modra <amodra@gmail.com>
1350
1351 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1352 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1353 (struct symbol_file_add_from_memory_args): Add size field.
1354 (find_vdso_size): New function.
1355 (add_vsyscall_page): Attempt to find vdso size.
1356
0d60c288
DE
13572014-04-01 Doug Evans <dje@google.com>
1358
1359 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1360
a41f2563
TG
13612014-04-01 Tristan Gingold <gingold@adacore.com>
1362
1363 * darwin-nat.c (darwin_encode_reply): Add prototype.
1364 (darwin_decode_exception_message): Reply to unknown inferiors.
1365 (darwin_decode_message): Handle message by id. Ignore message
1366 to unknown inferior.
1367 (darwin_wait): Discard unknown messages, add debug trace.
1368
11a865c8
DE
13692014-03-31 Doug Evans <dje@google.com>
1370
1371 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1372 comp_dir_string.
1373
770e7fc7
DE
13742014-03-31 Doug Evans <dje@google.com>
1375
1376 New option "set print symbol-loading".
1377 * NEWS: Mention it.
1378 * solib.c (solib_read_symbols): Only print symbol loading messages
1379 if requested.
1380 (solib_add): If symbol loading is in "brief" mode, notify user
1381 symbols are being loaded.
1382 (reload_shared_libraries_1): Ditto.
1383 * symfile.c (print_symbol_loading_off): New static global.
1384 (print_symbol_loading_brief): New static global.
1385 (print_symbol_loading_full): New static global.
1386 (print_symbol_loading_enums): New static global.
1387 (print_symbol_loading): New static global.
1388 (print_symbol_loading_p): New function.
1389 (symbol_file_add_with_addrs): Only print symbol loading messages
1390 if requested.
1391 (_initialize_symfile): Register "print symbol-loading" set/show
1392 command.
1393 * symfile.h (print_symbol_loading_p): Declare.
1394
c32c64b7
DE
13952014-03-30 Doug Evans <xdje42@gmail.com>
1396
1397 * infrun.c (set_last_target_status): New function.
1398 (handle_inferior_event): Call it.
1399
7c0bc051
DE
14002014-03-30 Doug Evans <xdje42@gmail.com>
1401
1402 * inferior.h (enum stop_kind): Improve comment.
1403
8776cfe9
JB
14042014-03-28 Joel Brobecker <brobecker@adacore.com>
1405
1406 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1407 a reference, strip the reference layer before calling
1408 the lang_ops value_has_mutated callback.
1409
410a0ff2
SDJ
14102014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1411
1412 Remove some globals from our parser.
1413 * language.c (unk_lang_parser): Add "struct parser_state"
1414 argument.
1415 * language.h (struct language_defn) <la_parser>: Likewise.
1416 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1417 (initialize_expout): Add "struct parser_state" argument.
1418 Rewrite function to use the parser state.
1419 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1420 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1421 write_exp_elt_longcst, write_exp_elt_dblcst,
1422 write_exp_elt_decfloatcst, write_exp_elt_type,
1423 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1424 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1425 write_dollar_variable): Likewise.
1426 (parse_exp_in_context_1): Use parser state.
1427 (insert_type_address_space): Add "struct parser_state" argument.
1428 Use parser state.
1429 (increase_expout_size): New function.
1430 * parser-defs.h: Forward declare "struct language_defn" and
1431 "struct parser_state".
1432 (expout, expout_size, expout_ptr): Remove extern declarations.
1433 (parse_gdbarch, parse_language): Rewrite macro declarations to
1434 accept the parser state.
1435 (struct parser_state): New struct.
1436 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1437 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1438 write_exp_elt_decfloatcst, write_exp_elt_type,
1439 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1440 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1441 write_exp_msymbol, write_dollar_variable,
1442 mark_struct_expression, insert_type_address_space): Add "struct
1443 parser_state" argument.
1444 (increase_expout_size): New function.
1445 * utils.c (do_clear_parser_state): New function.
1446 (make_cleanup_clear_parser_state): Likewise.
1447 * utils.h (make_cleanup_clear_parser_state): New function
1448 prototype.
1449 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1450 Update calls to write_exp* in order to pass the parser state.
1451 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1452 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1453 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1454 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1455 * stap-probe.c (stap_parse_register_operand): Likewise.
1456 (stap_parse_single_operand): Likewise.
1457 (stap_parse_argument_1): Likewise.
1458 (stap_parse_argument): Use parser state.
1459 * stap-probe.h: Include "parser-defs.h".
1460 (struct stap_parse_info) <pstate>: New field.
1461 * c-exp.y (parse_type): Rewrite to use parser state.
1462 (yyparse): Redefine to c_parse_internal.
1463 (pstate): New global variable.
1464 (parse_number): Add "struct parser_state" argument.
1465 (write_destructor_name): Likewise.
1466 (type_exp): Update calls to write_exp* and similars in order to
1467 use parser state.
1468 (exp1, exp, variable, qualified_name, space_identifier,
1469 typename, typebase): Likewise.
1470 (write_destructor_name, parse_number, lex_one_token,
1471 classify_name, classify_inner_name, c_parse): Add "struct
1472 parser_state" argument. Update function to use parser state.
1473 * c-lang.h: Forward declare "struct parser_state".
1474 (c_parse): Add "struct parser_state" argument.
1475 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1476 (yyparse): Redefine macro to ada_parse_internal.
1477 (pstate): New variable.
1478 (write_int, write_object_renaming, write_var_or_type,
1479 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1480 type_int, type_long, type_long_long, type_float, type_double,
1481 type_long_double, type_char, type_boolean, type_system_address):
1482 Add "struct parser_state" argument.
1483 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1484 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1485 var_or_type, aggregate, aggregate_component_list,
1486 positional_list, others, component_group,
1487 component_associations): Update calls to write_exp* and similar
1488 functions in order to use parser state.
1489 (ada_parse, write_var_from_sym, write_int,
1490 write_exp_op_with_string, write_object_renaming,
1491 find_primitive_type, write_selectors, write_ambiguous_var,
1492 write_var_or_type, write_name_assoc, type_int, type_long,
1493 type_long_long, type_float, type_double, type_long_double,
1494 type_char, type_boolean, type_system_address): Add "struct
1495 parser_state" argument. Adjust function to use parser state.
1496 * ada-lang.c (parse): Likewise.
1497 * ada-lang.h: Forward declare "struct parser_state".
1498 (ada_parse): Add "struct parser_state" argument.
1499 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1500 calls to both functions.
1501 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1502 parser state.
1503 (yyparse): Redefine macro to f_parse_internal.
1504 (pstate): New variable.
1505 (parse_number): Add "struct parser_state" argument.
1506 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1507 and similars in order to use parser state.
1508 (parse_number): Adjust code to use parser state.
1509 (yylex): Likewise.
1510 (f_parse): New function.
1511 * f-lang.h: Forward declare "struct parser_state".
1512 (f_parse): Add "struct parser_state" argument.
1513 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1514 parser state.
1515 (yyparse): Redefine macro for java_parse_internal.
1516 (pstate): New variable.
1517 (push_expression_name, push_expression_name, insert_exp): Add
1518 "struct parser_state" argument.
1519 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1520 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1521 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1522 PostIncrementExpression, PostDecrementExpression,
1523 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1524 UnaryExpressionNotPlusMinus, CastExpression,
1525 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1526 RelationalExpression, EqualityExpression, AndExpression,
1527 ExclusiveOrExpression, InclusiveOrExpression,
1528 ConditionalAndExpression, ConditionalOrExpression,
1529 ConditionalExpression, Assignment, LeftHandSide): Update
1530 calls to write_exp* and similars in order to use parser state.
1531 (parse_number): Ajust code to use parser state.
1532 (yylex): Likewise.
1533 (java_parse): New function.
1534 (push_variable): Add "struct parser_state" argument. Adjust
1535 code to user parser state.
1536 (push_fieldnames, push_qualified_expression_name,
1537 push_expression_name, insert_exp): Likewise.
1538 * jv-lang.h: Forward declare "struct parser_state".
1539 (java_parse): Add "struct parser_state" argument.
1540 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1541 parser state.
1542 (yyparse): Redefine macro to m2_parse_internal.
1543 (pstate): New variable.
1544 (type_exp, exp, fblock, variable, type): Update calls to
1545 write_exp* and similars to use parser state.
1546 (yylex): Likewise.
1547 (m2_parse): New function.
1548 * m2-lang.h: Forward declare "struct parser_state".
1549 (m2_parse): Add "struct parser_state" argument.
1550 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1551 * objc-lang.h: Forward declare "struct parser_state".
1552 (end_msglist): Add "struct parser_state" argument.
1553 * p-exp.y (parse_type): Rewrite macro to use parser state.
1554 (yyparse): Redefine macro to pascal_parse_internal.
1555 (pstate): New variable.
1556 (parse_number): Add "struct parser_state" argument.
1557 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1558 write_exp* and similars in order to use parser state.
1559 (parse_number, yylex): Adjust code to use parser state.
1560 (pascal_parse): New function.
1561 * p-lang.h: Forward declare "struct parser_state".
1562 (pascal_parse): Add "struct parser_state" argument.
1563 * go-exp.y (parse_type): Rewrite macro to use parser state.
1564 (yyparse): Redefine macro to go_parse_internal.
1565 (pstate): New variable.
1566 (parse_number): Add "struct parser_state" argument.
1567 (type_exp, exp1, exp, variable, type): Update calls to
1568 write_exp* and similars in order to use parser state.
1569 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1570 to use parser state.
1571 (go_parse): Likewise.
1572 * go-lang.h: Forward declare "struct parser_state".
1573 (go_parse): Add "struct parser_state" argument.
1574
342587c4
DE
15752014-03-27 Doug Evans <dje@google.com>
1576
1577 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1578
33e80786
DE
15792014-03-27 Doug Evans <dje@google.com>
1580
1581 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1582 Remove argument abbrev_section. All callers updated.
1583
1dbab08b
DE
15842014-03-27 Doug Evans <dje@google.com>
1585
1586 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1587 addr_base, ranges_base.
1588
318d3177
KS
15892014-03-26 Keith Seitz <keiths@redhat.com>
1590
1591 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1592 types, not VAR_DOMAIN.
1593
1e54db15
SL
15942014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1595
1596 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1597 "ra" registers.
1598 * features/nios2-linux.c: Regenerated.
1599 * features/nios2.c: Regenerated.
1600
d3839ede
PA
16012014-03-25 Pedro Alves <palves@redhat.com>
1602
1603 * cli/cli-script.c (script_from_file): Force the interpreter to
1604 sync mode.
1605
7588d2ec
PL
16062014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1607
1608 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1609 small stack allocation.
1610
a6290449
TG
16112014-03-24 Tristan Gingold <gingold@adacore.com>
1612
1613 * darwin-nat.c (exc_server): Remove unused prototype.
1614 (darwin_dump_message): Correctly display data on x86_64.
1615 (darwin_encode_reply): Fix style.
1616 Add comments and fix indentation.
1617
31ae9d24 16182014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
1619
1620 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1621
6339bfc4
DE
16222014-03-22 Doug Evans <xdje42@gmail.com>
1623
1624 * infcmd.c: Whitespace fixes.
1625 (interrupt_command): Merge two function comments into one.
1626
0a07590b
DE
16272014-03-22 Doug Evans <xdje42@gmail.com>
1628
1629 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1630 All uses updated.
1631
b55fbac4
YQ
16322014-03-22 Yao Qi <yao@codesourcery.com>
1633
1634 * remote.c (target_read_live_memory): Remove.
1635 (memory_xfer_live_readonly_partial): Rename it to
1636 remote_xfer_live_readonly_partial. Remove argument 'object'.
1637 All callers updated. Call remote_read_bytes_1
1638 instead of target_read_live_memory.
1639 * tracepoint.c (set_traceframe_number): Remove.
1640 (make_cleanup_restore_traceframe_number): Likewise .
1641 * tracepoint.h (set_traceframe_number): Remove declaration.
1642 (make_cleanup_restore_traceframe_number): Likewise.
1643
9217e74e
YQ
16442014-03-22 Yao Qi <yao@codesourcery.com>
1645
1646 * remote.c (remote_read_bytes): Move code on reading from the
1647 remote stub to ...
1648 (remote_read_bytes_1): ... here. New function.
1649
8acf9577
YQ
16502014-03-22 Yao Qi <yao@codesourcery.com>
1651
1652 * ctf.c (ctf_xfer_partial): Check the return value of
1653 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1654 return TARGET_XFER_UNAVAILABLE.
1655 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1656 * target.c (target_read_live_memory): Move it to remote.c.
1657 (memory_xfer_live_readonly_partial): Likewise.
1658 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1659 * remote.c (target_read_live_memory): Moved from target.c.
1660 (memory_xfer_live_readonly_partial): Likewise.
1661 (remote_read_bytes): Factored out from
1662 memory_xfer_partial_1.
1663
feef67ab
DE
16642014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1665
1666 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1667 NULL pointer.
1668
b65dc60b
PA
16692014-03-21 Pedro Alves <palves@redhat.com>
1670
1671 * infrun.c (normal_stop): Extend comment.
1672
b4ab256d
HZ
16732014-03-21 Hui Zhu <hui@codesourcery.com>
1674 Pedro Alves <palves@redhat.com>
1675
1676 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1677 static buffer.
1678 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1679 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1680 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1681
deba7593
MR
16822014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1683
1684 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1685 `z' formatted output modifier.
1686
1bff71c3
SDJ
16872014-03-20 Tom Tromey <tromey@redhat.com>
1688 Sergio Durigan Junior <sergiodj@redhat.com>
1689
1690 * probe.c (parse_probes): Turn assert into an ordinary error.
1691 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1692 exceptions when parsing probes. Rearrange the code for clarity.
1693
90e28950
TT
16942014-03-20 Tom Tromey <tromey@redhat.com>
1695
1696 PR gdb/14135
1697 * top.c (execute_command): Only dispatch events if the command
1698 started the target.
1699
beb460e8
PA
17002014-03-20 Tom Tromey <tromey@redhat.com>
1701
1702 PR cli/15718
1703 * infcall.c: Include event-top.h.
1704 (run_inferior_call): Call async_disable_stdin if needed.
1705
99619bea
PA
17062014-03-20 Pedro Alves <palves@redhat.com>
1707
1708 * infrun.c (prepare_to_proceed): Delete.
1709 (thread_still_needs_step_over): New function.
1710 (find_thread_needs_step_over): New function.
1711 (proceed): If the current thread needs a step-over, set its
1712 steping_over_breakpoint flag. Adjust to use
1713 find_thread_needs_step_over instead of prepare_to_proceed.
1714 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1715 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1716 breakpoint.
1717 (switch_back_to_stepped_thread): Step over breakpoints of all
1718 threads not the stepping thread, before switching back to the
1719 stepping thread.
1720
2adfaa28
PA
17212014-03-20 Pedro Alves <palves@redhat.com>
1722
1723 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1724 extern.
1725 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1726 * infrun.c (saved_singlestep_ptid)
1727 (stepping_past_singlestep_breakpoint): Delete.
1728 (resume): Remove stepping_past_singlestep_breakpoint handling.
1729 (proceed): Store the prev_pc of the stepping thread too.
1730 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1731 singlestep_pc.
1732 (enum infwait_states): Delete infwait_thread_hop_state.
1733 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1734 field.
1735 (handle_inferior_event): Adjust.
1736 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1737 handling and the thread-hop code. Before removing single-step
1738 breakpoints, check whether the thread hit a single-step breakpoint
1739 of another thread. If it did, the trap is not a random signal.
1740 (switch_back_to_stepped_thread): If the event thread hit a
1741 single-step breakpoint, unblock it before switching to the
1742 stepping thread. Handle the case of the stepped thread having
1743 advanced already.
1744 (keep_going): Handle the case of the current thread moving past a
1745 single-step breakpoint.
1746
31e77af2
PA
17472014-03-20 Pedro Alves <palves@redhat.com>
1748
1749 PR breakpoints/7143
1750 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1751 are being stepped over.
1752 (breakpoint_address_match): Make extern.
1753 * breakpoint.h (breakpoint_address_match): New declaration.
1754 * inferior.h (stepping_past_instruction_at): New declaration.
1755 * infrun.c (struct step_over_info): New type.
1756 (step_over_info): New global.
1757 (set_step_over_info, clear_step_over_info)
1758 (stepping_past_instruction_at): New functions.
1759 (handle_inferior_event): Clear the step-over info when
1760 trap_expected is cleared.
1761 (resume): Remove now stale comment.
1762 (clear_proceed_status): Clear step-over info.
1763 (proceed): Adjust step-over handling to set or clear the step-over
1764 info instead of removing all breakpoints.
1765 (handle_signal_stop): When setting up a thread-hop, don't remove
1766 breakpoints here.
1767 (stop_stepping): Clear step-over info.
1768 (keep_going): Adjust step-over handling to set or clear step-over
1769 info and then always inserting breakpoints, instead of removing
1770 all breakpoints when stepping over one.
1771
b9f437de
PA
17722014-03-20 Pedro Alves <palves@redhat.com>
1773
1774 * infrun.c (previous_inferior_ptid): Adjust comment.
1775 (deferred_step_ptid): Delete.
1776 (infrun_thread_ptid_changed, prepare_to_proceed)
1777 (init_wait_for_inferior): Adjust.
1778 (handle_signal_stop): Delete deferred_step_ptid handling.
1779
06c868a8
JK
17802014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1781
1782 PR gdb/15358
1783 * defs.h (sync_quit_force_run): New declaration.
1784 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1785 * event-top.c (async_sigterm_handler): New declaration.
1786 (async_sigterm_token): New variable.
1787 (async_init_signals): Create also async_sigterm_token.
1788 (async_sigterm_handler): New function.
1789 (sync_quit_force_run): New variable.
1790 (handle_sigterm): Replace quit_force call by other calls.
1791 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1792
dea80df0
MR
17932014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1794
1795 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1796 offset into SPE pseudo registers.
1797
0c7e1a46
PA
17982014-03-18 Pedro Alves <palves@redhat.com>
1799
1800 PR gdb/13860
1801 * inferior.h (print_stop_event): Declare.
1802 * infrun.c (print_stop_event): New, factored out from ...
1803 (normal_stop): ... this.
1804 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1805 of bpstat_print/print_stack_frame.
1806
9c1fcd01
TT
18072014-03-17 Tom Tromey <tromey@redhat.com>
1808
1809 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1810
11aa919a
PMR
18112014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1812
1813 * ada-lang.c (decode_constrained_packed_array): Perform a
1814 minimal coercion for reference with coerce_ref instead of
1815 ada_coerce_ref.
1816
d4ccb5e0
TG
18172014-03-17 Tristan Gingold <gingold@adacore.com>
1818
1819 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1820 (darwin_solib_create_inferior_hook): Emit a warning if version
1821 is unhandled.
1822
49840f2a
UW
18232014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
1824
1825 * python/py-value.c (get_field_flag): Cast flag_name argument to
1826 PyObject_GetAttrString to support Python 2.4.
1827
ed4123e5
JK
18282014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1829
1830 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1831 (Global Maintainers): Remove Jan Kratochvil.
1832
d6b64346
PA
18332014-03-14 Pedro Alves <palves@redhat.com>
1834
1835 * inferior.h (terminal_ours_for_output): Rename to ...
1836 (child_terminal_ours_for_output): ... this.
1837 (terminal_save_ours): Rename to ...
1838 (child_terminal_save_ours): ... this.
1839 (terminal_ours): Rename to ...
1840 (child_terminal_ours): ... this.
1841 (terminal_inferior): Rename to ...
1842 (child_terminal_inferior): ... this.
1843 (terminal_init_inferior): Rename to ...
1844 (child_terminal_init_inferior): ... this.
1845 (terminal_init_inferior_with_pgrp): Rename to ...
1846 (child_terminal_init_inferior_with_pgrp): ... this.
1847 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1848 (child_terminal_init_with_pgrp): ... this.
1849 (terminal_save_ours): Rename to ...
1850 (child_terminal_save_ours): ... this.
1851 (terminal_init_inferior): Rename to ...
1852 (child_terminal_init): ... this. Adjust.
1853 (terminal_inferior): Rename to ...
1854 (child_terminal_inferior): ... this.
1855 (terminal_ours_for_output): Rename to ...
1856 (child_terminal_ours_for_output): ... this. Adjust.
1857 (terminal_ours): Rename to ...
1858 (child_terminal_ours): ... this.
1859 (terminal_ours_1): Rename to ...
1860 (child_terminal_ours_1): ... this. Adjust.
1861 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1862 * windows-nat.c (do_initial_windows_stuff): Adjust.
1863 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1864 (gnu_terminal_init): ... this. Adjust.
1865 (gnu_target): Adjust.
1866 * inf-child.c (inf_child_target): Adjust.
1867
5a1e8c7a
DE
18682014-03-13 Doug Evans <xdje42@gmail.com>
1869
1870 PR guile/16612
1871 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1872 new eq?-hashtab.
1873
350e1a76
DE
18742014-03-13 Doug Evans <xdje42@gmail.com>
1875
1876 * value.c (record_latest_value): Call release_value_or_incref
1877 instead of release_value.
1878
a69900ae
PA
18792014-03-13 Pedro Alves <palves@redhat.com>
1880
1881 * procfs.c (procfs_target): Don't override to_shortname,
1882 to_longname or to_doc.
1883
5db9f0bd
PA
18842014-03-13 Pedro Alves <palves@redhat.com>
1885
1886 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1887 Unix in user visible strings.
1888
5e3a2c38
SS
18892014-03-12 Stan Shebs <stan@codesourcery.com>
1890
1891 * gdbtypes.h: Annotate comments for Doxygen, add a page
1892 block comment with some general info.
1893
8bc2fe48
PA
18942014-03-12 Pedro Alves <palves@redhat.com>
1895
1896 * infcmd.c (prepare_execution_command): New function, factored out
1897 from several execution commands.
1898 (run_command_1, continue_command, step_1, jump_command)
1899 (signal_command, until_command, advance_command, finish_command)
1900 (attach_command): Use prepare_execution_command.
1901
638c5f49
OJ
19022014-03-12 Omair Javaid <omair.javaid@linaro.org>
1903
1904 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1905 (MAX_BPTS): Define.
1906 (MAX_WPTS): Define.
1907 (struct arm_linux_thread_points): Removed.
1908 (struct arm_linux_process_info): New.
1909 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1910 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1911 (arm_linux_find_breakpoints_by_tid): Removed.
1912 (struct arch_lwp_info): New.
1913 (arm_linux_find_process_pid): New functions.
1914 (arm_linux_add_process): New functions.
1915 (arm_linux_process_info_get): New functions.
1916 (arm_linux_forget_process): New function.
1917 (arm_linux_get_debug_reg_state): New function.
1918 (struct update_registers_data): New.
1919 (update_registers_callback): New function.
1920 (arm_linux_insert_hw_breakpoint1): Updated.
1921 (arm_linux_remove_hw_breakpoint1): Updated.
1922 (arm_linux_insert_hw_breakpoint): Updated.
1923 (arm_linux_remove_hw_breakpoint): Updated.
1924 (arm_linux_insert_watchpoint): Updated.
1925 (arm_linux_remove_watchpoint): Updated.
1926 (arm_linux_new_thread): Updated.
1927 (arm_linux_prepare_to_resume): New function.
1928 (arm_linux_new_fork): New function.
1929 (_initialize_arm_linux_nat): Updated.
1930
6d03af93
PA
19312014-03-12 Pedro Alves <palves@redhat.com>
1932
1933 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1934
b3ccfe11
TT
19352014-03-12 Tom Tromey <tromey@redhat.com>
1936
1937 * inf-child.c (return_zero): New function.
1938 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1939 * aix-thread.c (aix_thread_inferior_created): New function.
1940 (aix_thread_attach): Remove.
1941 (init_aix_thread_ops): Don't set to_attach.
1942 (_initialize_aix_thread): Register inferior_created observer.
1943 * corelow.c (init_core_ops): Don't set to_attach or
1944 to_create_inferior.
1945 * exec.c (init_exec_ops): Don't set to_attach or
1946 to_create_inferior.
1947 * infcmd.c (run_command_1): Use find_run_target. Make direct
1948 target calls.
1949 (attach_command): Use find_attach_target. Make direct target
1950 calls.
1951 * record-btrace.c (init_record_btrace_ops): Don't set
1952 to_create_inferior.
1953 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1954 Remove.
1955 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1956 set to_create_inferior.
1957 * target.c (complete_target_initialization): Add assertion.
1958 (target_create_inferior): Remove.
1959 (find_default_attach, find_default_create_inferior): Remove.
1960 (find_attach_target, find_run_target): New functions.
1961 (find_default_is_async_p, find_default_can_async_p)
1962 (target_supports_non_stop, target_attach): Remove.
1963 (init_dummy_target): Don't set to_create_inferior or
1964 to_supports_non_stop.
1965 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1966 TARGET_DEFAULT_FUNC.
1967 <to_create_inferior>: Add comment.
1968 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1969 TARGET_DEFAULT_RETURN.
1970 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1971 (find_attach_target, find_run_target): Declare.
1972 (target_create_inferior): Remove.
1973 (target_has_execution_1): Update comment.
1974 (target_supports_non_stop): Remove.
1975 * target-delegates.c: Rebuild.
1976
91f83b02
PA
19772014-03-12 Pedro Alves <palves@redhat.com>
1978
1979 * inf-child.h: Update comment to not mention Unix.
1980
f1aea813
PA
19812014-03-12 Pedro Alves <palves@redhat.com>
1982
1983 * inf-child.c: Update top comment to not mention Unix. Add
1984 generic comment describing how this target is meant to be used.
1985 (inf_child_post_attach, inf_child_post_startup_inferior)
1986 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1987 Unix in comment.
1988
ee8e9165
PA
19892014-03-12 Pedro Alves <palves@redhat.com>
1990
1991 * nto-procfs.c: Include inf-child.h.
1992 (procfs_ops): Delete global.
1993 (procfs_can_run): Delete method.
1994 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1995 target pointer instead of referencing procfs_ops.
1996 (procfs_prepare_to_store): Delete.
1997 (init_procfs_ops): Delete function.
1998 (procfs_target): New function, based on init_procfs_ops, but
1999 inherit inf_child_target.
2000 (_initialize_procfs): Use procfs_target.
2001
51a9c8c5
PA
20022014-03-12 Pedro Alves <palves@redhat.com>
2003
2004 * windows-nat.c: Include inf-child.h.
2005 (windows_ops): Delete global.
2006 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2007 methods.
2008 (init_windows_ops): Delete function.
2009 (windows_target): New function, based on init_windows_ops, but
2010 inherit inf_child_target.
2011 (_initialize_windows_nat): Use windows_target. Install x86
2012 specific target methods here.
2013
c1966e26
DE
20142014-03-10 Doug Evans <xdje42@gmail.com>
2015
2016 * guile/guile.c (call_initialize_gdb_module): New function.
2017 (initialize_guile): Replace call to scm_init_guile with call to
2018 scm_with_guile.
2019
023db19c
JB
20202014-03-10 Joel Brobecker <brobecker@adacore.com>
2021
2022 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2023 in call to TYPE_CODE macro.
2024
5ec18f2b
JG
20252014-03-10 Jerome Guitton <guitton@adacore.com>
2026
8668be63
JB
2027 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2028 Resolve tagged types to full view.
5ec18f2b 2029
7d03f2eb
HZ
20302014-03-10 Hui Zhu <hui@codesourcery.com>
2031
2032 * target.h (target_insert_breakpoint): Remove "hardware" from its
2033 comments.
2034
c5164cbc
DE
20352014-03-07 Doug Evans <dje@google.com>
2036
2037 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2038
c4a3fee2
DE
20392014-03-07 Doug Evans <dje@google.com>
2040
2041 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2042 Remove unused local comp_dir_attr. Assert exactly one of
2043 stub_comp_unit_die, stub_comp_dir is non-NULL.
2044
3156469c
JB
20452014-03-07 Joel Brobecker <brobecker@adacore.com>
2046
2047 * target.h (complete_target_initialization, add_target):
2048 Add comment.
2049
c1a7b7c6
PA
20502014-03-07 Pedro Alves <palves@redhat.com>
2051
2052 * go32-nat.c: Include inf-child.h.
2053 (go32_ops): Delete global.
2054 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2055 Delete methods.
2056 (go32_create_inferior): Push the passed in target pointer instead
2057 of referencing go32_ops.
2058 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2059 (go32_target): New function, based on init_go32_ops, but inherit
2060 inf_child_target.
2061 (_initialize_go32_nat): Use go32_target. Move parts of
2062 init_go32_ops here.
2063
d3c1a85f
JB
20642014-03-06 Joel Brobecker <brobecker@adacore.com>
2065
2066 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2067 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2068 SYMBOL_VALUE_ADDRESS.
2069 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2070
5fa1d40e
YQ
20712014-03-06 Yao Qi <yao@codesourcery.com>
2072
2073 * breakpoint.c (get_tracepoint_by_number): Remove argument
2074 optional_p. All callers updated. Adjust comments. Update
2075 output message.
2076 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2077
0c13193f
YQ
20782014-03-06 Yao Qi <yao@codesourcery.com>
2079
2080 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2081 early if get_number returns zero. Use 'p' instead of 'args'.
2082
2217da06
YQ
20832014-03-06 Yao Qi <yao@codesourcery.com>
2084
2085 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2086 message.
2087
cc3da688
YQ
20882014-03-06 Yao Qi <yao@codesourcery.com>
2089
2090 PR breakpoints/16508
2091 * tracepoint.c (check_trace_running): New function.
2092 (trace_find_command): Move code to check_trace_running and
2093 call check_trace_running.
2094 (trace_find_pc_command): Likewise.
2095 (trace_find_tracepoint_command): Likewise.
2096 (trace_find_line_command): Likewise.
2097 (trace_find_range_command): Likewise.
2098 * tracepoint.h (check_trace_running): Likewise.
2099 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2100
6a5f844b
YQ
21012014-03-06 Yao Qi <yao@codesourcery.com>
2102
2103 * target.h (struct target_ops) <to_traceframe_info>: Use
2104 TARGET_DEFAULT_NORETURN (tcomplain ()).
2105 * target-delegates.c: Regenerated.
2106
0f26cec1
PA
21072014-03-05 Pedro Alves <palves@redhat.com>
2108
2109 PR gdb/16575
2110 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2111 void. Update comment.
2112 (dcache_xfer_memory): Delete.
2113 (dcache_read_memory_partial): New, based on the read bits of
2114 dcache_xfer_memory.
2115 (dcache_update): Add status parameter. Use ULONGEST for len, and
2116 adjust. Discard cache lines if the reason for the update was
2117 error.
2118 * dcache.h (dcache_xfer_memory): Delete declaration.
2119 (dcache_read_memory_partial): New declaration.
2120 (dcache_update): Update prototype.
2121 * target.c (raw_memory_xfer_partial): Update the dcache here.
2122 (memory_xfer_partial_1): Don't handle dcache writes here.
2123
b2b255bd
MF
21242014-03-05 Mike Frysinger <vapier@gentoo.org>
2125
2126 * remote-sim.c (gdbsim_load): Add const to prog.
2127
5d9cf8a4
TT
21282014-03-03 Tom Tromey <tromey@redhat.com>
2129
2130 * elfread.c (probe_key): Change to bfd_data.
2131 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2132 now per-BFD, not per-objfile.
2133 * stap-probe.c (stap_probe_destroy): Update comment.
2134 (handle_stap_probe): Allocate on the per-BFD obstack.
2135
729662a5
TT
21362014-03-03 Tom Tromey <tromey@redhat.com>
2137
2138 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2139 * breakpoint.c (create_longjmp_master_breakpoint): Use
2140 get_probe_address.
2141 (add_location_to_breakpoint, bkpt_probe_insert_location)
2142 (bkpt_probe_remove_location): Update.
2143 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2144 * elfread.c (elf_symfile_relocate_probe): Remove.
2145 (elf_probe_fns): Update.
2146 (insert_exception_resume_breakpoint): Change type of "probe"
2147 parameter to bound_probe.
2148 (check_exception_resume): Update.
2149 * objfiles.c (objfile_relocate1): Don't relocate probes.
2150 * probe.c (bound_probe_s): New typedef.
2151 (parse_probes): Use get_probe_address. Set sal's objfile.
2152 (find_probe_by_pc): Return a bound_probe.
2153 (collect_probes): Return a VEC(bound_probe_s).
2154 (compare_probes): Update.
2155 (gen_ui_out_table_header_info): Change type of "probes"
2156 parameter. Update.
2157 (info_probes_for_ops): Update.
2158 (get_probe_address): New function.
2159 (probe_safe_evaluate_at_pc): Update.
2160 * probe.h (struct probe_ops) <get_probe_address>: New field.
2161 <set_semaphore, clear_semaphore>: Add objfile parameter.
2162 (struct probe) <objfile>: Remove field.
2163 <arch>: New field.
2164 <address>: Update comment.
2165 (struct bound_probe): New.
2166 (find_probe_by_pc): Return a bound_probe.
2167 (get_probe_address): Declare.
2168 * solib-svr4.c (struct probe_and_action) <address>: New field.
2169 (hash_probe_and_action, equal_probe_and_action): Update.
2170 (register_solib_event_probe): Add address parameter.
2171 (solib_event_probe_at): Update.
2172 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2173 get_probe_address.
2174 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2175 (stap_get_probe_address): New function.
2176 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2177 (compile_probe_arg): Update.
2178 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2179 address.
2180 (handle_stap_probe): Don't relocate the probe.
2181 (stap_relocate): Remove.
2182 (stap_gen_info_probes_table_values): Update.
2183 (stap_probe_ops): Remove stap_relocate.
2184 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2185 (debug_sym_probe_fns): Update.
2186 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2187 * symtab.c (init_sal): Use memset.
2188 * symtab.h (struct symtab_and_line) <objfile>: New field.
2189 * tracepoint.c (start_tracing, stop_tracing): Update.
2190
ff887920
TT
21912014-03-03 Tom Tromey <tromey@redhat.com>
2192
2193 * probe.h (parse_probes, find_probe_by_pc)
2194 (find_probes_in_objfile): Fix comments.
2195
f0407826
DE
21962014-03-02 Doug Evans <xdje42@gmail.com>
2197
2198 * infrun.c (handle_signal_stop): Replace test for
2199 TARGET_WAITKIND_STOPPED with an assert.
2200
35e6a711
DE
22012014-03-02 Doug Evans <xdje42@gmail.com>
2202
2203 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2204
667f9d0b
DE
22052014-03-02 Doug Evans <xdje42@gmail.com>
2206
2207 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2208
dc92ace0
MK
22092014-03-01 Mark Kettenis <kettenis@gnu.org>
2210
2211 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2212
a900370f
MK
22132014-03-01 Mark Kettenis <kettenis@gnu.org>
2214
2215 * i386obsd-nat.c: Include "obsd-nat.h".
2216 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2217 add_target.
2218 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2219
b72a7981
MK
22202014-03-01 Mark Kettenis <kettenis@gnu.org>
2221
2222 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2223
96c70aba
MK
22242014-03-01 Mark Kettenis <kettenis@gnu.org>
2225
2226 * mips64obsd-nat.c: Include "obsd-nath".
2227 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2228 add_target
2229 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2230
874a80af
MK
22312014-03-01 Mark Kettenis <kettenis@gnu.org>
2232
8fd408f1
MK
2233 * amd64obsd-nat.c: Include "obsd-nat,h.
2234 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2235 add_target.
874a80af
MK
2236 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2237
9cf95373
SC
22382014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2239
2240 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2241 (find_overload_match): Update call to find_oload_champ.
2242 (find_oload_champ_namespace_loop): Likewise
2243
863e4da4
MK
22442014-02-28 Mark Kettenis <kettenis@gnu.org>
2245
025cac40
MK
2246 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2247
1ed586ce
MK
2248 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2249 * config/sparc/obsd64.mh: New file.
2250 * sparc64obsd-nat.c: New file.
2251
863e4da4
MK
2252 * obsd-nat.h: New file.
2253 * obsd-nat.c: New file.
2254 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2255 (ALLDEPFILES): Add obsd-nat.c.
2256
89de4da4
TT
22572014-02-28 Tom Tromey <tromey@redhat.com>
2258
2259 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2260 * cli-out.h (cli_ui_out_impl): Now const.
2261 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2262 * ui-out.c (struct ui_out) <impl>: Now const.
2263 (default_ui_out_impl): Now const.
2264 (ui_out_new): Make 'impl' parameter const.
2265 * ui-out.h (ui_out_new): Update.
2266
c725e7b6
MK
22672014-02-27 Mark Kettenis <kettenis@gnu.org>
2268
2269 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2270
670b46b3
MK
22712014-02-27 Mark Kettenis <kettenis@gnu.org>
2272
2273 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2274
c91550fc
JK
22752014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2276
2277 Additional PR 8882 fix.
2278 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2279
2fa0369e
PA
22802014-02-27 Pedro Alves <palves@redhat.com>
2281
2282 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2283 isn't set.
2284
d632a097
PA
22852014-02-27 Pedro Alves <palves@redhat.com>
2286
2287 PR 12702
2288 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2289 * nat/linux-waitpid.c: Include string.h.
2290 (status_to_str): Moved here and made extern.
2291 * nat/linux-waitpid.h (status_to_str): New declaration.
2292
2ebd5a35
HZ
22932014-02-27 Hui Zhu <hui@codesourcery.com>
2294
2295 PR 12702
2296 * infrun.c (ptid_match): Move ...
2297 * common/ptid.c (ptid_match): ... here.
2298 * inferior.h (ptid_match): Move ...
2299 * common/ptid.h (ptid_match): ... here.
2300
3cdd631f
MK
23012014-02-27 Mark Kettenis <kettenis@gnu.org>
2302
2303 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2304 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2305 gdb_target_obs.
2306
bee30a64
MK
23072014-02-27 Mark Kettenis <kettenis@gnu.org>
2308
2309 * obsd-tdep.c (obsd_auxv_parse): New function.
2310 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
2311
2312 * gdbarch.sh (auxv_parse): New.
2313 * gdbarch.h: Regenerated.
2314 * gdbarch.c: Regenerated.
2315 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2316
7a5a839f
LC
23172014-02-26 Ludovic Courtès <ludo@gnu.org>
2318
2319 * guile/scm-value.c (gdbscm_history_append_x): New function.
2320 (value_functions): Add it.
2321
31aa7e4e
JB
23222014-02-27 Joel Brobecker <brobecker@adacore.com>
2323
2324 * dwarf2read.c (attr_value_as_address): New function.
2325 (dwarf2_find_base_address, read_call_site_scope): Use
2326 attr_value_as_address in place of DW_ADDR.
2327 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2328 the low and high addresses. Slight rework of the handling
2329 of the high pc being a constant form, and limit it to
2330 DWARF verson 4 or higher.
2331 (dwarf2_record_block_ranges): Likewise.
2332 (read_partial_die): Likewise.
2333 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2334
9b333ba3
TT
23352014-02-26 Tom Tromey <tromey@redhat.com>
2336
2337 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2338
5f6cac40
TT
23392014-02-26 Tom Tromey <tromey@redhat.com>
2340
2341 * elfread.c (elf_read_minimal_symbols): Return early if
2342 minimal symbols have already been read. Add "ei" parameter.
2343 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2344 * minsyms.c (prim_record_minimal_symbol_full): Update.
2345 * objfiles.h (struct objstats) <n_minsyms>: Move...
2346 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2347 * symmisc.c (print_objfile_statistics): Update.
2348
2750ef27
TT
23492014-02-26 Tom Tromey <tromey@redhat.com>
2350
2351 * elfread.c (elf_read_minimal_symbols): New function, from
2352 elf_symfile_read.
2353 (elf_symfile_read): Call it.
2354
34643a32
TT
23552014-02-26 Tom Tromey <tromey@redhat.com>
2356
2357 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2358 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2359 (lookup_minimal_symbol_solib_trampoline)
2360 (lookup_minimal_symbol_by_pc_section_1)
2361 (lookup_minimal_symbol_and_objfile): Update.
2362 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2363 Don't allocate a minimal symbol if minsyms have already been read.
2364 (build_minimal_symbol_hash_tables): Update.
2365 (install_minimal_symbols): Do nothing if minsyms already read.
2366 Use the per-BFD obstack.
2367 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2368 * objfiles.c (allocate_objfile): Call
2369 terminate_minimal_symbol_table later.
2370 (have_minimal_symbols): Update.
2371 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2372 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2373 Move from struct objfile.
2374 <minsyms_read>: New field.
2375 (struct objfile) <msymbols, minimal_symbol_count,
2376 msymbol_hash, msymbol_demangled_hash>: Move.
2377 (ALL_OBJFILE_MSYMBOLS): Update.
2378 * symfile.c (read_symbols): Set minsyms_read.
2379 (reread_symbols): Update.
2380 * symmisc.c (dump_objfile, dump_msymbols): Update.
2381
2273f0ac
TT
23822014-02-26 Tom Tromey <tromey@redhat.com>
2383
2384 * minsyms.c (msymbols_sort): Remove.
2385 * minsyms.h (msymbols_sort): Remove.
2386 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2387 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2388 * elfread.c (elf_symtab_read): Don't add section offsets.
2389 * xcoffread.c (record_minimal_symbol): Don't add section offset
2390 to minimal symbol address.
2391 * somread.c (text_offset, data_offset): Remove.
2392 (som_symtab_read): Don't add section offsets to minimal symbol
2393 addresses.
2394 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2395 Don't add section offsets to minimal symbols.
2396 * coffread.c (coff_symtab_read): Don't add section offsets
2397 to minimal symbol addresses.
2398 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2399 to minimal symbol addresses.
2400 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2401 section offset to minimal symbol addresses.
2402 * mdebugread.c (parse_partial_symbols): Don't add section
2403 offset to minimal symbol addresses.
2404 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2405 offset to minimal symbol addresses.
2406
77e371c0
TT
24072014-02-26 Tom Tromey <tromey@redhat.com>
2408
2409 * ada-lang.c (ada_main_name): Update.
2410 (ada_add_standard_exceptions): Update.
2411 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2412 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2413 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2414 * auxv.c (ld_so_xfer_auxv): Update.
2415 * avr-tdep.c (avr_scan_prologue): Update.
2416 * ax-gdb.c (gen_var_ref): Update.
2417 * blockframe.c (get_pc_function_start)
2418 (find_pc_partial_function_gnu_ifunc): Update.
2419 * breakpoint.c (create_overlay_event_breakpoint)
2420 (create_longjmp_master_breakpoint)
2421 (create_std_terminate_master_breakpoint)
2422 (create_exception_master_breakpoint): Update.
2423 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2424 * c-valprint.c (c_val_print): Update.
2425 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2426 * common/agent.c (agent_look_up_symbols): Update.
2427 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2428 * dwarf2loc.c (call_site_to_target_addr): Update.
2429 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2430 * elfread.c (elf_gnu_ifunc_record_cache)
2431 (elf_gnu_ifunc_resolve_by_got): Update.
2432 * findvar.c (default_read_var_value): Update.
2433 * frame.c (inside_main_func): Update.
2434 * frv-tdep.c (frv_frame_this_id): Update.
2435 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2436 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2437 Update.
2438 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2439 (hppa_hpux_find_dummy_bpaddr): Update.
2440 * hppa-tdep.c (hppa_symbol_address): Update.
2441 * infcmd.c (until_next_command): Update.
2442 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2443 Update.
2444 * linespec.c (minsym_found, add_minsym): Update.
2445 * linux-nat.c (get_signo): Update.
2446 * linux-thread-db.c (inferior_has_bug): Update.
2447 * m32c-tdep.c (m32c_return_value)
2448 (m32c_m16c_address_to_pointer): Update.
2449 * m32r-tdep.c (m32r_frame_this_id): Update.
2450 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2451 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2452 * maint.c (maintenance_translate_address): Update.
2453 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2454 (frob_address): New function.
2455 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2456 frob_address. Rename parameter to "pc_in".
2457 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2458 addresses.
2459 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2460 Update.
2461 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2462 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2463 * objc-lang.c (find_objc_msgsend): Update.
2464 * objfiles.c (objfile_relocate1): Update.
2465 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2466 * p-valprint.c (pascal_val_print): Update.
2467 * parse.c (write_exp_msymbol): Update.
2468 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2469 (ppc_elfv2_skip_entrypoint): Update.
2470 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2471 * printcmd.c (build_address_symbolic, msym_info)
2472 (address_info): Update.
2473 * proc-service.c (ps_pglobal_lookup): Update.
2474 * psymtab.c (find_pc_sect_psymtab_closer)
2475 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2476 Change msymbol parameter to bound_minimal_symbol.
2477 * ravenscar-thread.c (get_running_thread_id): Update.
2478 * remote.c (remote_check_symbols): Update.
2479 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2480 address.
2481 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2482 * solib-dsbt.c (lm_base): Update.
2483 * solib-frv.c (lm_base, main_got): Update.
2484 * solib-irix.c (locate_base): Update.
2485 * solib-som.c (som_solib_create_inferior_hook)
2486 (link_map_start): Update.
2487 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2488 * solib-svr4.c (elf_locate_base, enable_break): Update.
2489 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2490 (flush_ea_cache): Update.
2491 * stabsread.c (define_symbol, scan_file_globals): Update.
2492 * stack.c (find_frame_funname): Update.
2493 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2494 (debug_qf_find_pc_sect_symtab): Update.
2495 * symfile.c (simple_read_overlay_table)
2496 (simple_overlay_update): Update.
2497 * symfile.h (struct quick_symbol_functions)
2498 <find_pc_sect_symtab>: Change type of msymbol to
2499 bound_minimal_symbol.
2500 * symmisc.c (dump_msymbols): Update.
2501 * symtab.c (find_pc_sect_symtab_via_partial)
2502 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2503 (search_symbols, print_msymbol_info): Update.
2504 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2505 (MSYMBOL_VALUE_ADDRESS): Redefine.
2506 (BMSYMBOL_VALUE_ADDRESS): New macro.
2507 * tracepoint.c (scope_info): Update.
2508 * tui/tui-disasm.c (tui_find_disassembly_address)
2509 (tui_get_begin_asm_address): Update.
2510 * valops.c (find_function_in_inferior): Update.
2511 * value.c (value_static_field, value_fn_field): Update.
2512
3b7344d5
TT
25132014-02-26 Tom Tromey <tromey@redhat.com>
2514
2515 * ada-lang.c (ada_update_initial_language): Update.
2516 (ada_main_name, ada_has_this_exception_support): Update.
2517 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2518 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2519 * arm-tdep.c (arm_skip_stub): Update.
2520 * auxv.c (ld_so_xfer_auxv): Update.
2521 * avr-tdep.c (avr_scan_prologue): Update.
2522 * ax-gdb.c (gen_var_ref): Update.
2523 * breakpoint.c (struct breakpoint_objfile_data)
2524 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2525 type to bound_minimal_symbol.
2526 (create_overlay_event_breakpoint)
2527 (create_longjmp_master_breakpoint)
2528 (create_std_terminate_master_breakpoint)
2529 (create_exception_master_breakpoint): Update.
2530 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2531 * c-exp.y (classify_name): Update.
2532 * coffread.c (coff_symfile_read): Update.
2533 * common/agent.c (agent_look_up_symbols): Update.
2534 * d-lang.c (d_main_name): Update.
2535 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2536 * dec-thread.c (enable_dec_thread): Update.
2537 * dwarf2loc.c (call_site_to_target_addr): Update.
2538 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2539 * eval.c (evaluate_subexp_standard): Update.
2540 * findvar.c (struct minsym_lookup_data) <result>: Change type
2541 to bound_minimal_symbol.
2542 <objfile>: Remove.
2543 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2544 * frame.c (inside_main_func): Update.
2545 * frv-tdep.c (frv_frame_this_id): Update.
2546 * gcore.c (call_target_sbrk): Update.
2547 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2548 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2549 Update.
2550 * go-lang.c (go_main_name): Update.
2551 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2552 (hppa_hpux_find_import_stub_for_addr): Update.
2553 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2554 Update. Change return type.
2555 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2556 type.
2557 * jit.c (jit_breakpoint_re_set_internal): Update.
2558 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2559 Update.
2560 * linux-nat.c (get_signo): Update.
2561 * linux-thread-db.c (inferior_has_bug): Update
2562 * m32c-tdep.c (m32c_return_value)
2563 (m32c_m16c_address_to_pointer): Update.
2564 * m32r-tdep.c (m32r_frame_this_id): Update.
2565 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2566 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2567 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2568 lookup_minimal_symbol. Change return type.
2569 (lookup_minimal_symbol): Remove.
2570 (lookup_bound_minimal_symbol): Update.
2571 (lookup_minimal_symbol_text): Change return type.
2572 (lookup_minimal_symbol_solib_trampoline): Change return type.
2573 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2574 (lookup_minimal_symbol_solib_trampoline): Change return type.
2575 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2576 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2577 (value_nsstring, find_imps): Update.
2578 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2579 * p-lang.c (pascal_main_name): Update.
2580 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2581 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2582 * proc-service.c (ps_pglobal_lookup): Update.
2583 * ravenscar-thread.c (get_running_thread_msymbol): Change
2584 return type.
2585 (has_ravenscar_runtime, get_running_thread_id): Update.
2586 * remote.c (remote_check_symbols): Update.
2587 * sol-thread.c (ps_pglobal_lookup): Update.
2588 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2589 * solib-dsbt.c (lm_base): Update.
2590 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2591 Update.
2592 * solib-irix.c (locate_base): Update.
2593 * solib-som.c (som_solib_create_inferior_hook)
2594 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2595 Update.
2596 * solib-spu.c (spu_enable_break): Update.
2597 * solib-svr4.c (elf_locate_base, enable_break): Update.
2598 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2599 (flush_ea_cache): Update.
2600 * stabsread.c (define_symbol): Update.
2601 * symfile.c (simple_read_overlay_table): Update.
2602 * symtab.c (find_pc_sect_line): Update.
2603 * tracepoint.c (scope_info): Update.
2604 * tui-disasm.c (tui_get_begin_asm_address): Update.
2605 * value.c (value_static_field): Update.
2606
40c1a007
TT
26072014-02-26 Tom Tromey <tromey@redhat.com>
2608
2609 * minsyms.c (prim_record_minimal_symbol_full): Use
2610 SET_MSYMBOL_VALUE_ADDRESS.
2611 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2612 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2613 SET_MSYMBOL_VALUE_ADDRESS.
2614 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2615 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2616
efd66ac6
TT
26172014-02-26 Tom Tromey <tromey@redhat.com>
2618
2619 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2620 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2621 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2622 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2623 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2624 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2625 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2626 * ada-lang.c (ada_main_name): Update.
2627 (ada_lookup_simple_minsym): Update.
2628 (ada_make_symbol_completion_list): Update.
2629 (ada_add_standard_exceptions): Update.
2630 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2631 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2632 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2633 * arm-tdep.c (skip_prologue_function): Update.
2634 (arm_skip_stack_protector, arm_skip_stub): Update.
2635 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2636 (arm_wince_skip_main_prologue): Update.
2637 * auxv.c (ld_so_xfer_auxv): Update.
2638 * avr-tdep.c (avr_scan_prologue): Update.
2639 * ax-gdb.c (gen_var_ref): Update.
2640 * block.c (call_site_for_pc): Update.
2641 * blockframe.c (get_pc_function_start): Update.
2642 (find_pc_partial_function_gnu_ifunc): Update.
2643 * breakpoint.c (create_overlay_event_breakpoint): Update.
2644 (create_longjmp_master_breakpoint): Update.
2645 (create_std_terminate_master_breakpoint): Update.
2646 (create_exception_master_breakpoint): Update.
2647 (resolve_sal_pc): Update.
2648 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2649 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2650 Update.
2651 * c-valprint.c (c_val_print): Update.
2652 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2653 * coffread.c (coff_symfile_read): Update.
2654 * common/agent.c (agent_look_up_symbols): Update.
2655 * dbxread.c (find_stab_function_addr): Update.
2656 (end_psymtab): Update.
2657 * dwarf2loc.c (call_site_to_target_addr): Update.
2658 (func_verify_no_selftailcall): Update.
2659 (tailcall_dump): Update.
2660 (call_site_find_chain_1): Update.
2661 (dwarf_expr_reg_to_entry_parameter): Update.
2662 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2663 (elf_gnu_ifunc_resolve_by_got): Update.
2664 * f-valprint.c (info_common_command): Update.
2665 * findvar.c (read_var_value): Update.
2666 * frame.c (get_prev_frame_1): Update.
2667 (inside_main_func): Update.
2668 * frv-tdep.c (frv_skip_main_prologue): Update.
2669 (frv_frame_this_id): Update.
2670 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2671 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2672 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2673 (gnuv3_skip_trampoline): Update.
2674 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2675 (hppa64_hpux_in_solib_call_trampoline): Update.
2676 (hppa_hpux_skip_trampoline_code): Update.
2677 (hppa64_hpux_search_dummy_call_sequence): Update.
2678 (hppa_hpux_find_import_stub_for_addr): Update.
2679 (hppa_hpux_find_dummy_bpaddr): Update.
2680 * hppa-tdep.c (hppa_symbol_address)
2681 (hppa_lookup_stub_minimal_symbol): Update.
2682 * i386-tdep.c (i386_skip_main_prologue): Update.
2683 (i386_pe_skip_trampoline_code): Update.
2684 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2685 * infcall.c (get_function_name): Update.
2686 * infcmd.c (until_next_command): Update.
2687 * jit.c (jit_breakpoint_re_set_internal): Update.
2688 (jit_inferior_init): Update.
2689 * linespec.c (minsym_found): Update.
2690 (add_minsym): Update.
2691 * linux-fork.c (info_checkpoints_command): Update.
2692 * linux-nat.c (get_signo): Update.
2693 * linux-thread-db.c (inferior_has_bug): Update.
2694 * m32c-tdep.c (m32c_return_value): Update.
2695 (m32c_m16c_address_to_pointer): Update.
2696 (m32c_m16c_pointer_to_address): Update.
2697 * m32r-tdep.c (m32r_frame_this_id): Update.
2698 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2699 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2700 * maint.c (maintenance_translate_address): Update.
2701 * minsyms.c (add_minsym_to_hash_table): Update.
2702 (add_minsym_to_demangled_hash_table): Update.
2703 (msymbol_objfile): Update.
2704 (lookup_minimal_symbol): Update.
2705 (iterate_over_minimal_symbols): Update.
2706 (lookup_minimal_symbol_text): Update.
2707 (lookup_minimal_symbol_by_pc_name): Update.
2708 (lookup_minimal_symbol_solib_trampoline): Update.
2709 (lookup_minimal_symbol_by_pc_section_1): Update.
2710 (lookup_minimal_symbol_and_objfile): Update.
2711 (prim_record_minimal_symbol_full): Update.
2712 (compare_minimal_symbols): Update.
2713 (compact_minimal_symbols): Update.
2714 (build_minimal_symbol_hash_tables): Update.
2715 (install_minimal_symbols): Update.
2716 (terminate_minimal_symbol_table): Update.
2717 (find_solib_trampoline_target): Update.
2718 (minimal_symbol_upper_bound): Update.
2719 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2720 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2721 (mips_skip_pic_trampoline_code): Update.
2722 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2723 * objc-lang.c (selectors_info): Update.
2724 (classes_info): Update.
2725 (find_methods): Update.
2726 (find_imps): Update.
2727 (find_objc_msgsend): Update.
2728 * objfiles.c (objfile_relocate1): Update.
2729 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2730 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2731 * p-valprint.c (pascal_val_print): Update.
2732 * parse.c (write_exp_msymbol): Update.
2733 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2734 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2735 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2736 * printcmd.c (build_address_symbolic): Update.
2737 (sym_info): Update.
2738 (address_info): Update.
2739 * proc-service.c (ps_pglobal_lookup): Update.
2740 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2741 (find_pc_sect_psymtab): Update.
2742 * python/py-framefilter.c (py_print_frame): Update.
2743 * ravenscar-thread.c (get_running_thread_id): Update.
2744 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2745 Update.
2746 * remote.c (remote_check_symbols): Update.
2747 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2748 (rs6000_skip_trampoline_code): Update.
2749 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2750 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2751 * solib-dsbt.c (lm_base): Update.
2752 * solib-frv.c (lm_base): Update.
2753 (main_got): Update.
2754 * solib-irix.c (locate_base): Update.
2755 * solib-som.c (som_solib_create_inferior_hook): Update.
2756 (som_solib_desire_dynamic_linker_symbols): Update.
2757 (link_map_start): Update.
2758 * solib-spu.c (spu_enable_break): Update.
2759 (ocl_enable_break): Update.
2760 * solib-svr4.c (elf_locate_base): Update.
2761 (enable_break): Update.
2762 * spu-tdep.c (spu_get_overlay_table): Update.
2763 (spu_catch_start): Update.
2764 (flush_ea_cache): Update.
2765 * stabsread.c (define_symbol): Update.
2766 (scan_file_globals): Update.
2767 * stack.c (find_frame_funname): Update.
2768 (frame_info): Update.
2769 * symfile.c (simple_read_overlay_table): Update.
2770 (simple_overlay_update): Update.
2771 * symmisc.c (dump_msymbols): Update.
2772 * symtab.c (fixup_section): Update.
2773 (find_pc_sect_line): Update.
2774 (skip_prologue_sal): Update.
2775 (search_symbols): Update.
2776 (print_msymbol_info): Update.
2777 (rbreak_command): Update.
2778 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2779 (completion_list_objc_symbol): Update.
2780 (default_make_symbol_completion_list_break_on): Update.
2781 * tracepoint.c (scope_info): Update.
2782 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2783 (tui_get_begin_asm_address): Update.
2784 * valops.c (find_function_in_inferior): Update.
2785 * value.c (value_static_field): Update.
2786 (value_fn_field): Update.
2787
50e65b17
TT
27882014-02-26 Tom Tromey <tromey@redhat.com>
2789
2790 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2791 bound minimal symbols. Move code that knows about minsym
2792 table layout...
2793 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2794 function.
2795 * minsyms.h (minimal_symbol_upper_bound): Declare.
2796 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2797 minimal_symbol_upper_bound.
2798
1b588015
JB
27992014-02-27 Joel Brobecker <brobecker@adacore.com>
2800
2801 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2802 Use the type's name if its basic type does not have a tag.
2803
dbb9c2b1
JB
28042014-02-27 Joel Brobecker <brobecker@adacore.com>
2805
2806 * dwarf2read.c (read_subrange_type): Add comment.
2807
55426c9d
JB
28082014-02-27 Joel Brobecker <brobecker@adacore.com>
2809
2810 * dwarf2read.c (update_enumeration_type_from_children): New
2811 function, mostly extracted from process_structure_scope.
2812 (read_enumeration_type): Call update_enumeration_type_from_children.
2813 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2814 and flag_flag_enum fields.
2815
f2fce0ca
PA
28162014-02-26 Pedro Alves <palves@redhat.com>
2817
2818 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2819 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2820 to_xfer_partial method.
2821
7a44e40e
PA
28222014-02-26 Pedro Alves <palves@redhat.com>
2823
2824 * target.c (complete_target_initialization): Don't install
2825 default_xfer_partial as to_xfer_partial hook.
2826 (nomemory): Delete.
2827 (update_current_target): Don't INHERIT nor de_fault
2828 deprecated_xfer_memory. Delete de_fault macro.
2829 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2830 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2831 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2832 field.
2833
bd265cd0
PA
28342014-02-26 Pedro Alves <palves@redhat.com>
2835
2836 * go32-nat.c (my_write_child): New function.
2837 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2838 (go32_xfer_partial): New function.
2839 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2840 Instead install a to_xfer_partial hook.
2841
9d46c4e5
PA
28422014-02-26 Pedro Alves <palves@redhat.com>
2843
2844 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2845 to_xfer_partial helper. Rewrite.
2846 (procfs_xfer_partial): New function.
2847 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2848 Install a to_xfer_partial hook.
2849
a1583b1f
PA
28502014-02-26 Pedro Alves <palves@redhat.com>
2851
2852 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2853 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2854 (m32r_xfer_partial): New function.
2855 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2856 Install a to_xfer_partial hook.
2857
6df1b29f
PA
28582014-02-26 Pedro Alves <palves@redhat.com>
2859
2860 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2861 helper.
2862 (mips_xfer_partial): New function.
2863 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2864 hook. Install a to_xfer_partial hook.
2865
dc53a7ad
JB
28662014-02-26 Joel Brobecker <brobecker@adacore.com>
2867
2868 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2869 * gdbtypes.c (create_array_type_with_stride): New function,
2870 renaming create_array_type, but with an added parameter
2871 called "bit_stride".
2872 (create_array_type): Re-implement using
2873 create_array_type_with_stride.
2874 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2875 and DW_AT_bit_stride attributes.
2876
12ab52e9
PA
28772014-02-26 Pedro Alves <palves@redhat.com>
2878
2879 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2880 task-specific breakpoints.
2881
d16461ae
PA
28822014-02-25 Pedro Alves <palves@redhat.com>
2883
2884 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2885 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2886
a8b16220
SS
28872014-02-25 Stan Shebs <stan@codesourcery.com>
2888
2889 * defs.h: Annotate comments for Doxygen.
2890
b9e795ee
TT
28912014-02-25 Tom Tromey <tromey@redhat.com>
2892
2893 * target.h (target_ignore): Don't declare.
2894 * target.c (target_ignore): Remove.
2895
849c862e
JK
28962014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2897
2898 PR gdb/16626
2899 * auto-load.c (auto_load_objfile_script_1): Change filename to
2900 debugfile.
2901
475109d8
JB
29022014-02-25 Joel Brobecker <brobecker@adacore.com>
2903
2904 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2905 documentation. Adjust prototype to match the target_ops
2906 to_xfer_partial method. Adjust implementation accordingly.
2907
e186c3bd
HZ
29082014-02-25 Hui Zhu <hui@codesourcery.com>
2909
2910 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2911 to_traceframe_info.
2912
6d451942
KB
29132014-02-25 Kevin Buettner <kevinb@redhat.com>
2914
041ab8b4 2915 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
2916 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2917 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2918 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2919 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2920 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2921 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2922 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2923 New constants.
2924 (rl78_register_type): Use a data pointer type for SP and
2925 new pseudo registers mentioned above. Use a 16 bit integer
2926 type for all other register pairs.
2927 (rl78_register_name, rl78_g10_register_name): Update for
2928 new pseudo registers.
2929 (rl78_pseudo_register_read): Likewise.
2930 (rl78_pseudo_register_write): Likewise.
2931 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2932 to the newly added pseudo registers.
2933
eddf0bae
DE
29342014-02-24 Doug Evans <dje@google.com>
2935
2936 * value.c (record_latest_value): Fix comment.
2937 * printcmd.c (print_command_1): Remove code to handle -1 return from
2938 record_latest_value.
2939
e96027e0
PA
29402014-02-24 Pedro Alves <palves@redhat.com>
2941
2942 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2943 deprecated_xfer_memory hook.
2944 (procfs_xfer_partial): Call procfs_xfer_memory instead
2945 of the deprecated_xfer_memory target hook.
2946 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2947 helper.
2948
0837c976
YZ
29492014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2950
2951 * windows-nat.c (windows_xfer_shared_libraries): Return
2952 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2953 requested object is TARGET_OBJECT_LIBRARIES.
2954
bc113b4e
YQ
29552014-02-24 Yao Qi <yao@codesourcery.com>
2956
2957 * target.h (enum target_xfer_status)
2958 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2959 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2960 explicitly. New.
2961 * corefile.c (memory_error_message): User updated.
2962 * exec.c (section_table_read_available_memory): Likewise.
2963 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2964 * target.c (target_xfer_status_to_string): Likewise.
2965 (raw_memory_xfer_partial): Likewise.
2966 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2967 * valops.c (read_value_memory): Likewise.
2968 * exec.h: Update comments.
2969
01cb8804
YQ
29702014-02-24 Yao Qi <yao@codesourcery.com>
2971
2972 * target.c (target_xfer_status_to_string): Rename argument err
2973 to status.
2974 * target.h (target_xfer_status_to_string): Update declaration.
2975 Replace target_xfer_error_to_string with
2976 target_xfer_status_to_string in comment.
2977
93063aa6
YQ
29782014-02-24 Yao Qi <yao@codesourcery.com>
2979
2980 * mips-linux-nat.c (super_close): Update its type.
2981 (mips_linux_close): Pass 'self' to super_close.
2982
5c328c05
YQ
29832014-02-24 Yao Qi <yao@codesourcery.com>
2984
2985 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2986 * corefile.c (read_memory): Adjusted.
2987 * target.c (target_write_with_progress): Adjusted.
2988
f73023dd
YQ
29892014-02-23 Yao Qi <yao@codesourcery.com>
2990
2991 Revert two patches:
2992
2993 2013-10-25 Yao Qi <yao@codesourcery.com>
2994
2995 * remote.c (remote_traceframe_info): Return early if
2996 traceframe is not selected.
2997
2998 2013-07-19 Yao Qi <yao@codesourcery.com>
2999
3000 * target.c (update_current_target): Change the default action
3001 of 'to_traceframe_info' from tcomplain to return_zero.
3002 * target.h (struct target_ops) <to_traceframe_info>: Add more
3003 comments.
3004
5a2eb0ef
YQ
30052014-02-23 Yao Qi <yao@codesourcery.com>
3006
3007 * valops.c (read_value_memory): Rewrite it. Call
3008 target_xfer_partial in a loop.
3009 * exec.h (section_table_available_memory): Remove declaration.
3010 Move comments to ...
3011 * exec.c (section_table_available_memory): ... here. Make it
3012 static.
3013
1ee79381
YQ
30142014-02-23 Yao Qi <yao@codesourcery.com>
3015
3016 * exec.c (section_table_read_available_memory): New function.
3017 * exec.h (section_table_read_available_memory): Declare.
3018 * ctf.c (ctf_xfer_partial): Call
3019 section_table_read_available_memory.
3020 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3021
1ca49d37
YQ
30222014-02-23 Yao Qi <yao@codesourcery.com>
3023
3024 * ctf.c (ctf_xfer_partial): Move code to ...
3025 * exec.c (exec_read_partial_read_only): ... it. New function.
3026 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3027 * tracefile.c: Include "exec.h".
3028 * exec.h (exec_read_partial_read_only): Declare.
3029
a283690e
YQ
30302014-02-23 Yao Qi <yao@codesourcery.com>
3031
3032 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3033 (tfile_has_memory): Remove.
3034 (init_tfile_ops): Don't set fields to_has_all_memory and
3035 to_has_memory of tfile_ops.
3036 * tracefile.c (tracefile_has_all_memory): New function.
3037 (tracefile_has_memory): New function.
3038 (init_tracefile_ops): Initialize fields to_has_all_memory and
3039 to_has_memory of 'ops'.
3040
12e03cd0
YQ
30412014-02-23 Yao Qi <yao@codesourcery.com>
3042
3043 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3044 (ctf_thread_alive, ctf_get_trace_status): Remove.
3045 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3046 init_tracefile_ops.
3047 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3048 (tfile_has_stack, tfile_has_registers): Remove.
3049 (tfile_thread_alive): Remove.
3050 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3051 init_tracefile_ops.
3052 * tracefile.c (tracefile_has_stack): New function.
3053 (tracefile_has_registers): New function.
3054 (tracefile_thread_alive): New function.
3055 (tracefile_get_trace_status): New function.
3056 (init_tracefile_ops): New function.
3057 * tracefile.h (init_tracefile_ops): Declare.
3058
11395323
YQ
30592014-02-23 Yao Qi <yao@codesourcery.com>
3060
3061 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3062 (O_LARGEFILE): Likewise.
3063 (tfile_ops): Likewise.
3064 (TRACE_HEADER_SIZE): Likewise.
3065 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3066 (cur_data_size): Likewise.
3067 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3068 (tfile_close, tfile_files_info): Likewise.
3069 (tfile_get_trace_status): Likewise.
3070 (tfile_get_tracepoint_status): Likewise.
3071 (tfile_get_traceframe_address): Likewise.
3072 (tfile_trace_find, match_blocktype): Likewise.
3073 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3074 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3075 (tfile_get_trace_state_variable_value): Likewise.
3076 (tfile_has_all_memory, tfile_has_memory): Likewise.
3077 (tfile_has_stack, tfile_has_registers): Likewise.
3078 (tfile_thread_alive, build_traceframe_info): Likewise.
3079 (tfile_traceframe_info, init_tfile_ops): Likewise.
3080 (_initialize_tracepoint): Don't call init_tfile_ops
3081 and add_target_with_completer.
3082 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3083 exec.h, completer.h and filenames.h.
3084 (_initialize_tracefile_tfile): New function.
3085
7951c4eb
YQ
30862014-02-23 Yao Qi <yao@codesourcery.com>
3087
3088 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3089 tracefile-tfile.o.
3090 (HFILES_NO_SRCDIR): Add tracefile.h.
3091 * ctf.c: Include "tracefile.h".
3092 * tracefile.h: New file.
3093 * tracefile.c: New file
3094 * tracefile-tfile.c: New file.
3095 * tracepoint.c: Include "tracefile.h".
3096 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3097 (stop_reason_names): Add const.
3098 (trace_file_writer_xfree): Move it to tracefile.c.
3099 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3100 (trace_save_ctf): Likewise.
3101 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3102 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3103 (tfile_write_header, tfile_write_regblock_type): Likewise.
3104 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3105 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3106 (tfile_write_raw_data, tfile_end): Likewise.
3107 (tfile_trace_file_writer_new): Likewise.
3108 (free_uploaded_tp): Make it extern.
3109 (free_uploaded_tsv): Make it extern.
3110 (_initialize_tracepoint): Move code to register command 'tsave'
3111 to tracefile.c.
3112 * tracepoint.h (stop_reason_names): Declare.
3113 (struct trace_frame_write_ops): Move it to tracefile.h.
3114 (struct trace_file_write_ops): Likewise.
3115 (struct trace_file_writer): Likewise.
3116 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3117
184cd072
JK
31182014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3119
3120 PR gdb/16594
3121 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3122 process name.
3123 (get_cores_used_by_process): New parameter num_cores, use it.
3124 (linux_xfer_osdata_processes): Pass num_cores to it.
3125 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3126 process name.
3127
c63528fc
AK
31282014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3129
3130 * target.c (memory_xfer_partial): Fix length arg in call to
3131 breakpoint_xfer_memory.
3132
d7b30f67
SDJ
31332014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3134
3135 PR tdep/16397
3136 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3137 number comes after the + or - signs. Adjust length of register
3138 name to be extracted.
3139
8838afaf
TT
31402014-02-20 Tom Tromey <tromey@redhat.com>
3141
3142 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3143 (ada_varobj_ops): Mark "extern".
3144
05227d14
TT
31452014-02-20 Tom Tromey <tromey@redhat.com>
3146
3147 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3148
1254eefc
DE
31492014-02-20 Doug Evans <xdje42@gmail.com>
3150
3151 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3152 All callers updated.
3153 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3154 All callers updated.
3155 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3156 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3157
adde2bff
DE
31582014-02-20 lin zuojian <manjian2006@gmail.com>
3159 Joel Brobecker <brobecker@adacore.com>
3160 Doug Evans <xdje42@gmail.com>
3161
3162 PR symtab/16581
3163 * dwarf2read.c (struct die_info): New member in_process.
3164 (reset_die_in_process): New function.
3165 (process_die): Set it at the start, reset when returning.
3166 (inherit_abstract_dies): Only call process_die if origin_child_die
3167 not already being processed.
3168
3be75f87
JB
31692014-02-20 Joel Brobecker <brobecker@adacore.com>
3170
3171 * windows-nat.c (handle_unload_dll): Add function documentation.
3172 (do_initial_windows_stuff): Add comment explaining why we wait
3173 until after inferior initialization has finished before
3174 processing all DLLs.
3175
47f7ffdb
JB
31762014-02-20 Joel Brobecker <brobecker@adacore.com>
3177
3178 * windows-nat.c (get_module_name): Delete.
3179 (windows_get_exec_module_filename): New function, mostly
3180 inspired from get_module_name.
3181 (windows_pid_to_exec_file): Replace call to get_module_name
3182 by call to windows_get_exec_module_filename.
3183
1cd9feab
JB
31842014-02-20 Joel Brobecker <brobecker@adacore.com>
3185
3186 * windows-nat.c (handle_load_dll): Rewrite this function's
3187 introductory comment. Remove code using get_module_name
3188 to get the DLL's name.
3189
ea39ad35
JB
31902014-02-20 Joel Brobecker <brobecker@adacore.com>
3191
3192 * windows-nat.c (get_windows_debug_event): Ignore
3193 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3194 if windows_initialization_done == 0.
3195 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3196 Adjust implementation to always load all DLLs.
3197 (do_initial_windows_stuff): Replace call to
3198 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3199
95060284
JB
32002014-02-20 Joel Brobecker <brobecker@adacore.com>
3201
3202 * windows-nat.c (_initialize_windows_nat): Deprecate the
3203 "dll-symbols" command. Turn the "add-shared-symbol-files"
3204 and "assf" aliases into commands, and deprecate them as well.
3205 * NEWS: Add entry explaining that "dll-symbols" and its two
3206 aliases are now deprecated.
3207
8d4fdb12
JB
32082014-02-20 Joel Brobecker <brobecker@adacore.com>
3209
3210 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3211 new-line in debug string. Remove trailing spaces.
3212
1b281443
SS
32132014-02-19 Stan Shebs <stan@codesourcery.com>
3214
3215 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3216
f7bd0f78
SC
32172014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3218
3219 * NEWS: Add entry for the new feature
3220 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3221 and class values.
3222
399ebc3d
SS
32232014-02-19 Stan Shebs <stan@codesourcery.com>
3224
3225 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3226
c658158d
PA
32272014-02-19 Pedro Alves <palves@redhat.com>
3228
3229 * common/ptid.h (struct ptid): Mention that process_stratum
3230 targets should prefer ptid.lwp.
3231
ba348170
PA
32322014-02-19 Pedro Alves <palves@redhat.com>
3233
3234 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3235 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3236 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3237 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3238 store remote thread ids rather than ptid.tid.
3239 (_initialize_remote): Adjust.
3240
ac01945b
TT
32412014-02-19 Tom Tromey <tromey@redhat.com>
3242
3243 * target.c (target_get_unwinder): Rewrite.
3244 (target_get_tailcall_unwinder): Rewrite.
3245 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3246 (record_btrace_to_get_tailcall_unwinder): New function.
3247 (init_record_btrace_ops): Update.
3248 * target.h (struct target_ops) <to_get_unwinder,
3249 to_get_tailcall_unwinder>: Now function pointers. Use
3250 TARGET_DEFAULT_RETURN.
3251
8476dc92
TT
32522014-02-19 Tom Tromey <tromey@redhat.com>
3253
3254 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3255 argument.
3256 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3257
c0eca49f
TT
32582014-02-19 Tom Tromey <tromey@redhat.com>
3259
3260 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3261 directly.
3262 * target-delegates.c: Rebuild.
3263 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3264 TARGET_DEFAULT_FUNC.
3265 * target.c (default_target_decr_pc_after_break): Rename from
3266 forward_target_decr_pc_after_break. Simplify.
3267 (target_decr_pc_after_break): Rely on delegation.
3268
596b6b39
TT
32692014-02-19 Tom Tromey <tromey@redhat.com>
3270
3271 * target.c (update_current_target): Do not INHERIT to_doc or
3272 to_magic. Do not de_fault to_open or to_close.
3273
b427c1bc
TT
32742014-02-19 Tom Tromey <tromey@redhat.com>
3275
3276 * gcore.h (objfile_find_memory_regions): Declare.
3277 * gcore.c (objfile_find_memory_regions): No longer static. Add
3278 "self" argument.
3279 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3280 * exec.c: Include gcore.h.
3281 (exec_set_find_memory_regions): Remove.
3282 (exec_find_memory_regions): Remove.
3283 (exec_do_find_memory_regions): Remove.
3284 (init_exec_ops): Update.
3285 * defs.h (exec_set_find_memory_regions): Remove.
3286
9b144037
TT
32872014-02-19 Tom Tromey <tromey@redhat.com>
3288
3289 * target-delegates.c: Rebuild.
3290 * target.h (struct target_ops) <to_extra_thread_info,
3291 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3292 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3293 not 0, in TARGET_DEFAULT_RETURN.
3294
555bbdeb
TT
32952014-02-19 Tom Tromey <tromey@redhat.com>
3296
3297 * target.c (complete_target_initialization): Remove casts. Use
3298 return_zero_has_execution.
3299 (return_zero): Add "ignore" argument.
3300 (return_zero_has_execution): New function.
3301 (init_dummy_target): Remove casts. Use
3302 return_zero_has_execution.
3303
be4ddd36
TT
33042014-02-19 Tom Tromey <tromey@redhat.com>
3305
3306 * target.c (update_current_target): Update comments. Do not
3307 INHERIT to_stratum.
3308
2117c711
TT
33092014-02-19 Tom Tromey <tromey@redhat.com>
3310
3311 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3312 needed.
3313 * corelow.c (core_read_description): Delegate when needed.
3314 * remote.c (remote_read_description): Delegate when needed.
3315 * target-delegates.c: Rebuild.
3316 * target.c (target_read_description): Rewrite.
3317 * target.h (struct target_ops) <to_read_description>: Update
3318 comment. Use TARGET_DEFAULT_RETURN.
3319
e88ef65c
TT
33202014-02-19 Tom Tromey <tromey@redhat.com>
3321
3322 * target-delegates.c: Rebuild.
3323 * target.c (update_current_target): Don't inherit or default
3324 to_can_run.
3325 (find_default_run_target): Check against delegate_can_run.
3326 * target.h (struct target_ops) <to_can_run>: Use
3327 TARGET_DEFAULT_RETURN.
3328
86a0854a
TT
33292014-02-19 Tom Tromey <tromey@redhat.com>
3330
3331 * target-delegates.c: Rebuild.
3332 * target.c (target_disconnect): Unconditionally delegate.
3333 * target.h (struct target_ops) <to_disconnect>: Use
3334 TARGET_DEFAULT_NORETURN.
3335
ee97f592
TT
33362014-02-19 Tom Tromey <tromey@redhat.com>
3337
3338 * record.c (record_stop): Unconditionally delegate.
3339 * target-delegates.c: Rebuild.
3340 * target.c (target_stop_recording): Unconditionally delegate.
3341 * target.h (struct target_ops) <to_stop_recording>: Use
3342 TARGET_DEFAULT_IGNORE.
3343
6dc7fcf4
TT
33442014-02-19 Tom Tromey <tromey@redhat.com>
3345
3346 * target-delegates.c: Rebuild.
3347 * target.c (target_enable_btrace): Unconditionally delegate.
3348 * target.h (struct target_ops) <to_enable_btrace>: Use
3349 TARGET_DEFAULT_NORETURN.
3350
eb5b20d4
TT
33512014-02-19 Tom Tromey <tromey@redhat.com>
3352
3353 * target-delegates.c: Rebuild.
3354 * target.c (target_read_btrace): Unconditionally delegate.
3355 * target.h (struct target_ops) <to_read_btrace>: Use
3356 TARGET_DEFAULT_NORETURN.
3357
9ace480d
TT
33582014-02-19 Tom Tromey <tromey@redhat.com>
3359
3360 * target-delegates.c: Rebuild.
3361 * target.c (target_teardown_btrace): Unconditionally delegate.
3362 * target.h (struct target_ops) <to_teardown_btrace>: Use
3363 TARGET_DEFAULT_NORETURN.
3364
8dc292d3
TT
33652014-02-19 Tom Tromey <tromey@redhat.com>
3366
3367 * target-delegates.c: Rebuild.
3368 * target.c (target_disable_btrace): Unconditionally delegate.
3369 * target.h (struct target_ops) <to_disable_btrace>: Use
3370 TARGET_DEFAULT_NORETURN.
3371
58a5184e
TT
33722014-02-19 Tom Tromey <tromey@redhat.com>
3373
3374 * target-delegates.c: Rebuild.
3375 * target.c (default_search_memory): New function.
3376 (simple_search_memory): Update comment.
3377 (target_search_memory): Unconditionally delegate.
3378 * target.h (struct target_ops) <to_search_memory>: Use
3379 TARGET_DEFAULT_FUNC.
3380
8de71aab
TT
33812014-02-19 Tom Tromey <tromey@redhat.com>
3382
3383 * auxv.c (default_auxv_parse): No longer static.
3384 (target_auxv_parse): Unconditionally delegate.
3385 * auxv.h (default_auxv_parse): Declare.
3386 * target-delegates.c: Rebuild.
3387 * target.c: Include auxv.h.
3388 * target.h (struct target_ops) <to_auxv_parse>: Use
3389 TARGET_DEFAULT_FUNC.
3390
6b2c5a57
TT
33912014-02-19 Tom Tromey <tromey@redhat.com>
3392
3393 * target-delegates.c: Rebuild.
3394 * target.c (target_memory_map): Unconditionally delegate.
3395 * target.h (struct target_ops) <to_memory_map>: Use
3396 TARGET_DEFAULT_RETURN.
3397
cbffc065
TT
33982014-02-19 Tom Tromey <tromey@redhat.com>
3399
3400 * target-delegates.c: Rebuild.
3401 * target.c (target_thread_alive): Unconditionally delegate.
3402 * target.h (struct target_ops) <to_thread_alive>: Use
3403 TARGET_DEFAULT_RETURN.
3404
f09e2107
TT
34052014-02-19 Tom Tromey <tromey@redhat.com>
3406
3407 * target-delegates.c: Rebuild.
3408 * target.c (target_save_record): Unconditionally delegate.
3409 * target.h (struct target_ops) <to_save_record>: Use
3410 TARGET_DEFAULT_NORETURN.
3411
07366925
TT
34122014-02-19 Tom Tromey <tromey@redhat.com>
3413
3414 * target-delegates.c: Rebuild.
3415 * target.c (target_delete_record): Unconditionally delegate.
3416 * target.h (struct target_ops) <to_delete_record>: Use
3417 TARGET_DEFAULT_NORETURN.
3418
dd2e9d25
TT
34192014-02-19 Tom Tromey <tromey@redhat.com>
3420
3421 * target-delegates.c: Rebuild.
3422 * target.c (target_record_is_replaying): Unconditionally
3423 delegate.
3424 * target.h (struct target_ops) <to_record_is_replaying>: Use
3425 TARGET_DEFAULT_RETURN.
3426
671e76cc
TT
34272014-02-19 Tom Tromey <tromey@redhat.com>
3428
3429 * target-delegates.c: Rebuild.
3430 * target.c (target_goto_record_begin): Unconditionally delegate.
3431 * target.h (struct target_ops) <to_goto_record_begin>: Use
3432 TARGET_DEFAULT_NORETURN.
3433
e9179bb3
TT
34342014-02-19 Tom Tromey <tromey@redhat.com>
3435
3436 * target-delegates.c: Rebuild.
3437 * target.c (target_goto_record_end): Unconditionally delegate.
3438 * target.h (struct target_ops) <to_goto_record_end>: Use
3439 TARGET_DEFAULT_NORETURN.
3440
05969c84
TT
34412014-02-19 Tom Tromey <tromey@redhat.com>
3442
3443 * target-delegates.c: Rebuild.
3444 * target.c (target_goto_record): Unconditionally delegate.
3445 * target.h (struct target_ops) <to_goto_record>: Use
3446 TARGET_DEFAULT_NORETURN.
3447
3679abfa
TT
34482014-02-19 Tom Tromey <tromey@redhat.com>
3449
3450 * target-delegates.c: Rebuild.
3451 * target.c (target_insn_history): Unconditionally delegate.
3452 * target.h (struct target_ops) <to_insn_history>: Use
3453 TARGET_DEFAULT_NORETURN.
3454
8444ab58
TT
34552014-02-19 Tom Tromey <tromey@redhat.com>
3456
3457 * target-delegates.c: Rebuild.
3458 * target.c (target_insn_history_from): Unconditionally delegate.
3459 * target.h (struct target_ops) <to_insn_history_from>: Use
3460 TARGET_DEFAULT_NORETURN.
3461
c29302cc
TT
34622014-02-19 Tom Tromey <tromey@redhat.com>
3463
3464 * target-delegates.c: Rebuild.
3465 * target.c (target_insn_history_range): Unconditionally delegate.
3466 * target.h (struct target_ops) <to_insn_history_range>: Use
3467 TARGET_DEFAULT_NORETURN.
3468
170049d4
TT
34692014-02-19 Tom Tromey <tromey@redhat.com>
3470
3471 * target-delegates.c: Rebuild.
3472 * target.c (target_call_history): Unconditionally delegate.
3473 * target.h (struct target_ops) <to_call_history>: Use
3474 TARGET_DEFAULT_NORETURN.
3475
16fc27d6
TT
34762014-02-19 Tom Tromey <tromey@redhat.com>
3477
3478 * target-delegates.c: Rebuild.
3479 * target.c (target_call_history_from): Unconditionally delegate.
3480 * target.h (struct target_ops) <to_call_history_from>: Use
3481 TARGET_DEFAULT_NORETURN.
3482
115d9817
TT
34832014-02-19 Tom Tromey <tromey@redhat.com>
3484
3485 * target-delegates.c: Rebuild.
3486 * target.c (target_call_history_range): Unconditionally delegate.
3487 * target.h (struct target_ops) <to_call_history_range>: Use
3488 TARGET_DEFAULT_NORETURN.
3489
eb276a6b
TT
34902014-02-19 Tom Tromey <tromey@redhat.com>
3491
3492 * target-delegates.c: Rebuild.
3493 * target.c (target_verify_memory): Unconditionally delegate.
3494 * target.h (struct target_ops) <to_verify_memory>: Use
3495 TARGET_DEFAULT_NORETURN.
3496
9e538d0d
TT
34972014-02-19 Tom Tromey <tromey@redhat.com>
3498
3499 * target-delegates.c: Rebuild.
3500 * target.c (target_core_of_thread): Unconditionally delegate.
3501 * target.h (struct target_ops) <to_core_of_thread>: Use
3502 TARGET_DEFAULT_RETURN.
3503
f6fb2925
TT
35042014-02-19 Tom Tromey <tromey@redhat.com>
3505
3506 * target-delegates.c: Rebuild.
3507 * target.c (target_flash_done): Unconditionally delegate.
3508 * target.h (struct target_ops) <to_flash_done>: Use
3509 TARGET_DEFAULT_NORETURN.
3510
e8a6c6ac
TT
35112014-02-19 Tom Tromey <tromey@redhat.com>
3512
3513 * target-delegates.c: Rebuild.
3514 * target.c (target_flash_erase): Unconditionally delegate.
3515 * target.h (struct target_ops) <to_flash_erase>: Use
3516 TARGET_DEFAULT_NORETURN.
3517
7e35c012
TT
35182014-02-19 Tom Tromey <tromey@redhat.com>
3519
3520 * target-delegates.c: Rebuild.
3521 * target.c (target_get_section_table): Unconditionally delegate.
3522 * target.h (struct target_ops) <to_get_section_table>: Use
3523 TARGET_DEFAULT_RETURN.
3524
770234d3
TT
35252014-02-19 Tom Tromey <tromey@redhat.com>
3526
3527 * target-delegates.c: Rebuild.
3528 * target.c (target_pid_to_str): Unconditionally delegate.
3529 (init_dummy_target): Don't initialize to_pid_to_str.
3530 (default_pid_to_str): Rename from dummy_pid_to_str.
3531 * target.h (struct target_ops) <to_pid_to_str>: Use
3532 TARGET_DEFAULT_FUNC.
3533
09b0dc2b
TT
35342014-02-19 Tom Tromey <tromey@redhat.com>
3535
3536 * target-delegates.c: Rebuild.
3537 * target.c (target_find_new_threads): Unconditionally delegate.
3538 * target.h (struct target_ops) <to_find_new_threads>: Use
3539 TARGET_DEFAULT_RETURN.
3540
7d4f8efa
TT
35412014-02-19 Tom Tromey <tromey@redhat.com>
3542
3543 * target-delegates.c: Rebuild.
3544 * target.c (target_program_signals): Unconditionally delegate.
3545 * target.h (struct target_ops) <to_program_signals>: Use
3546 TARGET_DEFAULT_IGNORE.
3547
035cad7f
TT
35482014-02-19 Tom Tromey <tromey@redhat.com>
3549
3550 * target-delegates.c: Rebuild.
3551 * target.c (target_pass_signals): Unconditionally delegate.
3552 * target.h (struct target_ops) <to_pass_signals>: Use
3553 TARGET_DEFAULT_IGNORE.
3554
8d657035
TT
35552014-02-19 Tom Tromey <tromey@redhat.com>
3556
3557 * target-delegates.c: Rebuild.
3558 * target.c (default_mourn_inferior): New function.
3559 (target_mourn_inferior): Unconditionally delegate.
3560 * target.h (struct target_ops) <to_mourn_inferior>: Use
3561 TARGET_DEFAULT_FUNC.
3562
098dba18
TT
35632014-02-19 Tom Tromey <tromey@redhat.com>
3564
3565 * target-delegates.c: Rebuild.
3566 * target.c (default_follow_fork): New function.
3567 (target_follow_fork): Unconditionally delegate.
3568 * target.h (struct target_ops) <to_follow_fork>: Use
3569 TARGET_DEFAULT_FUNC.
3570
423a4807
TT
35712014-02-19 Tom Tromey <tromey@redhat.com>
3572
3573 * target-delegates.c: Rebuild.
3574 * target.c (target_kill): Unconditionally delegate.
3575 * target.h (struct target_ops) <to_kill>: Use
3576 TARGET_DEFAULT_NORETURN.
3577
6c7e5e5c
TT
35782014-02-19 Tom Tromey <tromey@redhat.com>
3579
3580 * target-delegates.c: Rebuild.
3581 * target.c (target_masked_watch_num_registers): Unconditionally
3582 delegate.
3583 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3584 Use TARGET_DEFAULT_RETURN.
3585
8b1c364c
TT
35862014-02-19 Tom Tromey <tromey@redhat.com>
3587
3588 * target-delegates.c: Rebuild.
3589 * target.c (target_remove_mask_watchpoint): Unconditionally
3590 delegate.
3591 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3592 TARGET_DEFAULT_RETURN.
3593
cd4ae029
TT
35942014-02-19 Tom Tromey <tromey@redhat.com>
3595
3596 * target-delegates.c: Rebuild.
3597 * target.c (target_insert_mask_watchpoint): Unconditionally
3598 delegate.
3599 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3600 TARGET_DEFAULT_RETURN.
3601
a134316b
TT
36022014-02-19 Tom Tromey <tromey@redhat.com>
3603
3604 * target-delegates.c: Rebuild.
3605 * target.c (target_ranged_break_num_registers): Unconditionally
3606 delegate.
3607 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3608 Use TARGET_DEFAULT_RETURN.
3609
ad5989bd
TT
36102014-02-19 Tom Tromey <tromey@redhat.com>
3611
3612 * target-delegates.c: Rebuild.
3613 * target.c (target_fetch_registers): Unconditionally delegate.
3614 * target.h (struct target_ops) <to_fetch_registers>: Use
3615 TARGET_DEFAULT_NORETURN.
3616
46ee7e8d
TT
36172014-02-19 Tom Tromey <tromey@redhat.com>
3618
3619 * target-delegates.c: Rebuild.
3620 * target.c (update_current_target): Don't inherit or default
3621 to_stop.
3622 * target.h (struct target_ops) <to_stop>: Use
3623 TARGET_DEFAULT_IGNORE.
3624
843f59ed
TT
36252014-02-19 Tom Tromey <tromey@redhat.com>
3626
3627 * target-delegates.c: Rebuild.
3628 * target.c (update_current_target): Don't inherit or default
3629 to_can_run_breakpoint_commands.
3630 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3631 Use TARGET_DEFAULT_RETURN.
3632
ccfde2a0
TT
36332014-02-19 Tom Tromey <tromey@redhat.com>
3634
3635 * target-delegates.c: Rebuild.
3636 * target.c (update_current_target): Don't inherit or default
3637 to_supports_evaluation_of_breakpoint_conditions.
3638 * target.h (struct target_ops)
3639 <to_supports_evaluation_of_breakpoint_conditions>: Use
3640 TARGET_DEFAULT_RETURN.
3641
0de91722
TT
36422014-02-19 Tom Tromey <tromey@redhat.com>
3643
3644 * target-delegates.c: Rebuild.
3645 * target.c (update_current_target): Don't inherit or default
3646 to_augmented_libraries_svr4_read.
3647 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3648 Use TARGET_DEFAULT_RETURN.
3649
9a7d8b48
TT
36502014-02-19 Tom Tromey <tromey@redhat.com>
3651
3652 * target-delegates.c: Rebuild.
3653 * target.c (update_current_target): Don't inherit or default
3654 to_can_use_agent.
3655 * target.h (struct target_ops) <to_can_use_agent>: Use
3656 TARGET_DEFAULT_RETURN.
3657
d9db5b21
TT
36582014-02-19 Tom Tromey <tromey@redhat.com>
3659
3660 * target-delegates.c: Rebuild.
3661 * target.c (update_current_target): Don't inherit or default
3662 to_use_agent.
3663 * target.h (struct target_ops) <to_use_agent>: Use
3664 TARGET_DEFAULT_NORETURN.
3665
92155eeb
TT
36662014-02-19 Tom Tromey <tromey@redhat.com>
3667
3668 * target-delegates.c: Rebuild.
3669 * target.c (update_current_target): Don't inherit or default
3670 to_traceframe_info.
3671 (return_null): Remove.
3672 * target.h (struct target_ops) <to_traceframe_info>: Use
3673 TARGET_DEFAULT_RETURN.
3674
d6522a22
TT
36752014-02-19 Tom Tromey <tromey@redhat.com>
3676
3677 * target-delegates.c: Rebuild.
3678 * target.c (update_current_target): Don't inherit or default
3679 to_static_tracepoint_markers_by_strid.
3680 * target.h (struct target_ops)
3681 <to_static_tracepoint_markers_by_strid>: Use
3682 TARGET_DEFAULT_NORETURN.
3683
4c3e4425
TT
36842014-02-19 Tom Tromey <tromey@redhat.com>
3685
3686 * target-delegates.c: Rebuild.
3687 * target.c (update_current_target): Don't inherit or default
3688 to_static_tracepoint_marker_at.
3689 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3690 Use TARGET_DEFAULT_RETURN.
3691
dcd6917f
TT
36922014-02-19 Tom Tromey <tromey@redhat.com>
3693
3694 * target-delegates.c: Rebuild.
3695 * target.c (update_current_target): Don't inherit or default
3696 to_set_permissions.
3697 * target.h (struct target_ops) <to_set_permissions>: Use
3698 TARGET_DEFAULT_IGNORE.
3699
22bcceee
TT
37002014-02-19 Tom Tromey <tromey@redhat.com>
3701
3702 * target-delegates.c: Rebuild.
3703 * target.c (update_current_target): Don't inherit or default
3704 to_get_tib_address.
3705 * target.h (struct target_ops) <to_get_tib_address>: Use
3706 TARGET_DEFAULT_NORETURN.
3707
8586ccaa
TT
37082014-02-19 Tom Tromey <tromey@redhat.com>
3709
3710 * target-delegates.c: Rebuild.
3711 * target.c (update_current_target): Don't inherit or default
3712 to_set_trace_notes.
3713 * target.h (struct target_ops) <to_set_trace_notes>: Use
3714 TARGET_DEFAULT_RETURN.
3715
91df8d1d
TT
37162014-02-19 Tom Tromey <tromey@redhat.com>
3717
3718 * target-delegates.c: Rebuild.
3719 * target.c (update_current_target): Don't initialize
3720 to_set_trace_buffer_size.
3721 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3722 TARGET_DEFAULT_IGNORE.
3723
8d526939
TT
37242014-02-19 Tom Tromey <tromey@redhat.com>
3725
3726 * target-delegates.c: Rebuild.
3727 * target.c (update_current_target): Don't inherit or default
3728 to_set_circular_trace_buffer.
3729 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3730 TARGET_DEFAULT_IGNORE.
3731
0bcfeddf
TT
37322014-02-19 Tom Tromey <tromey@redhat.com>
3733
3734 * target-delegates.c: Rebuild.
3735 * target.c (update_current_target): Don't inherit or default
3736 to_set_disconnected_tracing.
3737 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3738 TARGET_DEFAULT_IGNORE.
3739
9249843f
TT
37402014-02-19 Tom Tromey <tromey@redhat.com>
3741
3742 * target-delegates.c: Rebuild.
3743 * target.c (update_current_target): Don't inherit or default
3744 to_get_min_fast_tracepoint_insn_len.
3745 (return_minus_one): Remove.
3746 * target.h (struct target_ops)
3747 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3748
ace92e7d
TT
37492014-02-19 Tom Tromey <tromey@redhat.com>
3750
3751 * target-delegates.c: Rebuild.
3752 * target.c (update_current_target): Don't inherit or default
3753 to_get_raw_trace_data.
3754 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3755 TARGET_DEFAULT_NORETURN.
3756
08120467
TT
37572014-02-19 Tom Tromey <tromey@redhat.com>
3758
3759 * target-delegates.c: Rebuild.
3760 * target.c (update_current_target): Don't inherit or default
3761 to_upload_trace_state_variables.
3762 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3763 Use TARGET_DEFAULT_RETURN.
3764
1e949b00
TT
37652014-02-19 Tom Tromey <tromey@redhat.com>
3766
3767 * target-delegates.c: Rebuild.
3768 * target.c (update_current_target): Don't inherit or default
3769 to_upload_tracepoints.
3770 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3771 TARGET_DEFAULT_RETURN.
3772
a2e6c147
TT
37732014-02-19 Tom Tromey <tromey@redhat.com>
3774
3775 * target-delegates.c: Rebuild.
3776 * target.c (update_current_target): Don't inherit or default
3777 to_save_trace_data.
3778 * target.h (struct target_ops) <to_save_trace_data>: Use
3779 TARGET_DEFAULT_NORETURN.
3780
959bcd0b
TT
37812014-02-19 Tom Tromey <tromey@redhat.com>
3782
3783 * target-delegates.c: Rebuild.
3784 * target.c (update_current_target): Don't inherit or default
3785 to_get_trace_state_variable_value.
3786 * target.h (struct target_ops)
3787 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3788
afc94e66
TT
37892014-02-19 Tom Tromey <tromey@redhat.com>
3790
3791 * target-delegates.c: Rebuild.
3792 * target.c (update_current_target): Don't inherit or default
3793 to_trace_find.
3794 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3795
e51c07ea
TT
37962014-02-19 Tom Tromey <tromey@redhat.com>
3797
3798 * target-delegates.c: Rebuild.
3799 * target.c (update_current_target): Don't inherit or default
3800 to_trace_stop.
3801 * target.h (struct target_ops) <to_trace_stop>: Use
3802 TARGET_DEFAULT_NORETURN.
3803
6fea14cd
TT
38042014-02-19 Tom Tromey <tromey@redhat.com>
3805
3806 * target-delegates.c: Rebuild.
3807 * target.c (update_current_target): Don't inherit or default
3808 to_get_tracepoint_status.
3809 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3810 TARGET_DEFAULT_NORETURN.
3811
4072d4ff
TT
38122014-02-19 Tom Tromey <tromey@redhat.com>
3813
3814 * target-delegates.c: Rebuild.
3815 * target.c (update_current_target): Don't inherit or default
3816 to_get_trace_status.
3817 * target.h (struct target_ops) <to_get_trace_status>: Use
3818 TARGET_DEFAULT_RETURN.
3819
25da2e80
TT
38202014-02-19 Tom Tromey <tromey@redhat.com>
3821
3822 * target-delegates.c: Rebuild.
3823 * target.c (update_current_target): Don't inherit or default
3824 to_trace_start.
3825 * target.h (struct target_ops) <to_trace_start>: Use
3826 TARGET_DEFAULT_NORETURN.
3827
86dd181d
TT
38282014-02-19 Tom Tromey <tromey@redhat.com>
3829
3830 * target-delegates.c: Rebuild.
3831 * target.c (update_current_target): Don't inherit or default
3832 to_trace_set_readonly_regions.
3833 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3834 Use TARGET_DEFAULT_NORETURN.
3835
05c41993
TT
38362014-02-19 Tom Tromey <tromey@redhat.com>
3837
3838 * target-delegates.c: Rebuild.
3839 * target.c (update_current_target): Don't inherit or default
3840 to_disable_tracepoint.
3841 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3842 TARGET_DEFAULT_NORETURN.
3843
151f70f1
TT
38442014-02-19 Tom Tromey <tromey@redhat.com>
3845
3846 * target-delegates.c: Rebuild.
3847 * target.c (update_current_target): Don't inherit or default
3848 to_enable_tracepoint.
3849 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3850 TARGET_DEFAULT_NORETURN.
3851
94eb98b9
TT
38522014-02-19 Tom Tromey <tromey@redhat.com>
3853
3854 * target-delegates.c: Rebuild.
3855 * target.c (update_current_target): Don't inherit or default
3856 to_download_trace_state_variable.
3857 * target.h (struct target_ops) <to_download_trace_state_variable>:
3858 Use TARGET_DEFAULT_NORETURN.
3859
719acc4a
TT
38602014-02-19 Tom Tromey <tromey@redhat.com>
3861
3862 * target-delegates.c: Rebuild.
3863 * target.c (update_current_target): Don't inherit or default
3864 to_can_download_tracepoint.
3865 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3866 TARGET_DEFAULT_RETURN.
3867
9a980a22
TT
38682014-02-19 Tom Tromey <tromey@redhat.com>
3869
3870 * target-delegates.c: Rebuild.
3871 * target.c (update_current_target): Don't inherit or default
3872 to_download_tracepoint.
3873 * target.h (struct target_ops) <to_download_tracepoint>: Use
3874 TARGET_DEFAULT_NORETURN.
3875
5536135b
TT
38762014-02-19 Tom Tromey <tromey@redhat.com>
3877
3878 * target-delegates.c: Rebuild.
3879 * target.c (update_current_target): Don't inherit or default
3880 to_trace_init.
3881 * target.h (struct target_ops) <to_trace_init>: Use
3882 TARGET_DEFAULT_RETURN.
3883
9409d39e
TT
38842014-02-19 Tom Tromey <tromey@redhat.com>
3885
3886 * target-delegates.c: Rebuild.
3887 * target.c (update_current_target): Don't inherit or default
3888 to_supports_string_tracing.
3889 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3890 TARGET_DEFAULT_RETURN.
3891
aab1b22d
TT
38922014-02-19 Tom Tromey <tromey@redhat.com>
3893
3894 * target-delegates.c: Rebuild.
3895 * target.c (update_current_target): Don't inherit or default
3896 to_supports_enable_disable_tracepoint.
3897 * target.h (struct target_ops)
3898 <to_supports_enable_disable_tracepoint>: Use
3899 TARGET_DEFAULT_RETURN.
3900
a7304748
TT
39012014-02-19 Tom Tromey <tromey@redhat.com>
3902
3903 * target-delegates.c: Rebuild.
3904 * target.c (update_current_target): Don't inherit or default
3905 to_supports_multi_process.
3906 * target.h (struct target_ops) <to_supports_multi_process>: Use
3907 TARGET_DEFAULT_RETURN.
3908
4229b31d
TT
39092014-02-19 Tom Tromey <tromey@redhat.com>
3910
3911 * target-delegates.c: Rebuild.
3912 * target.c (update_current_target): Don't inherit or default
3913 to_get_ada_task_ptid.
3914 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3915 TARGET_DEFAULT_FUNC.
3916
43eba180
TT
39172014-02-19 Tom Tromey <tromey@redhat.com>
3918
3919 * target-delegates.c: Rebuild.
3920 * target.c (update_current_target): Don't inherit or default
3921 to_thread_architecture.
3922 * target.h (struct target_ops) <to_thread_architecture>: Use
3923 TARGET_DEFAULT_FUNC.
3924
fe31bf5b
TT
39252014-02-19 Tom Tromey <tromey@redhat.com>
3926
3927 * target-delegates.c: Rebuild.
3928 * target.c (update_current_target): Don't inherit or default
3929 to_execution_direction.
3930 * target.h (struct target_ops) <to_execution_direction>: Use
3931 TARGET_DEFAULT_FUNC.
3932
53e1cfc7
TT
39332014-02-19 Tom Tromey <tromey@redhat.com>
3934
3935 * target-delegates.c: Rebuild.
3936 * target.c (update_current_target): Don't inherit or default
3937 to_can_execute_reverse.
3938 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3939 TARGET_DEFAULT_RETURN.
3940 (target_can_execute_reverse): Unconditionally delegate.
3941
9bb9d61d
TT
39422014-02-19 Tom Tromey <tromey@redhat.com>
3943
3944 * target-delegates.c: Rebuild.
3945 * target.c (update_current_target): Don't inherit or default
3946 to_goto_bookmark.
3947 (dummy_goto_bookmark): Remove.
3948 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3949 * target.h (struct target_ops) <to_goto_bookmark>: Use
3950 TARGET_DEFAULT_NORETURN.
3951
3dbafbbb
TT
39522014-02-19 Tom Tromey <tromey@redhat.com>
3953
3954 * target-delegates.c: Rebuild.
3955 * target.c (update_current_target): Don't inherit or default
3956 to_get_bookmark.
3957 (dummy_get_bookmark): Remove.
3958 (init_dummy_target): Don't inherit or default to_get_bookmark.
3959 * target.h (struct target_ops) <to_get_bookmark>: Use
3960 TARGET_DEFAULT_NORETURN
3961
16f796b1
TT
39622014-02-19 Tom Tromey <tromey@redhat.com>
3963
3964 * target-delegates.c: Rebuild.
3965 * target.c (update_current_target): Don't inherit or default
3966 to_make_corefile_notes.
3967 (init_dummy_target): Don't initialize to_make_corefile_notes.
3968 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3969 TARGET_DEFAULT_FUNC.
3970
0b5a2719
TT
39712014-02-19 Tom Tromey <tromey@redhat.com>
3972
3973 * target-delegates.c: Rebuild.
3974 * target.c (update_current_target): Don't inherit or default
3975 to_find_memory_regions.
3976 (init_dummy_target): Don't initialize to_find_memory_regions.
3977 * target.h (struct target_ops) <to_find_memory_regions>: Use
3978 TARGET_DEFAULT_FUNC.
3979
d9cb0195
TT
39802014-02-19 Tom Tromey <tromey@redhat.com>
3981
3982 * target-delegates.c: Rebuild.
3983 * target.c (update_current_target): Don't inherit or default
3984 to_log_command.
3985 * target.h (struct target_ops) <to_log_command>: Use
3986 TARGET_DEFAULT_IGNORE.
3987 (target_log_command): Unconditionally delegate.
3988
830ca330
TT
39892014-02-19 Tom Tromey <tromey@redhat.com>
3990
3991 * target-delegates.c: Rebuild.
3992 * target.c (update_current_target): Don't inherit or default
3993 to_pid_to_exec_file.
3994 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3995 TARGET_DEFAULT_RETURN.
3996
825828fc
TT
39972014-02-19 Tom Tromey <tromey@redhat.com>
3998
3999 * target-delegates.c: Rebuild.
4000 * target.c (update_current_target): Don't inherit or default
4001 to_thread_name.
4002 (target_thread_name): Unconditionally delegate.
4003 * target.h (struct target_ops) <to_thread_name>: Use
4004 TARGET_DEFAULT_RETURN.
4005
4a7e6dda
TT
40062014-02-19 Tom Tromey <tromey@redhat.com>
4007
4008 * target-delegates.c: Rebuild.
4009 * target.c (update_current_target): Don't inherit or default
4010 to_extra_thread_info.
4011 * target.h (struct target_ops) <to_extra_thread_info>: Use
4012 TARGET_DEFAULT_RETURN.
4013
0db88c1d
TT
40142014-02-19 Tom Tromey <tromey@redhat.com>
4015
4016 * target-delegates.c: Rebuild.
4017 * target.c (update_current_target): Don't inherit or default
4018 to_has_exited.
4019 * target.h (struct target_ops) <to_has_exited>: Use
4020 TARGET_DEFAULT_RETURN..
4021
6a9fa051
TT
40222014-02-19 Tom Tromey <tromey@redhat.com>
4023
4024 * target-delegates.c: Rebuild.
4025 * target.c (update_current_target): Don't inherit or default
4026 to_set_syscall_catchpoint.
4027 (return_one): Remove.
4028 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4029 TARGET_DEFAULT_RETURN.
4030
62f64d7a
TT
40312014-02-19 Tom Tromey <tromey@redhat.com>
4032
4033 * target-delegates.c: Rebuild.
4034 * target.c (update_current_target): Don't inherit or default
4035 to_insert_exec_catchpoint.
4036 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4037 TARGET_DEFAULT_RETURN.
4038
cda0f38c
TT
40392014-01-08 Tom Tromey <tromey@redhat.com>
4040
4041 * target-delegates.c: Rebuild.
4042 * target.c (update_current_target): Don't inherit or default
4043 to_insert_exec_catchpoint.
4044 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4045 TARGET_DEFAULT_RETURN.
4046
95c3375e
TT
40472014-02-19 Tom Tromey <tromey@redhat.com>
4048
4049 * target-delegates.c: Rebuild.
4050 * target.c (update_current_target): Don't inherit or default
4051 to_remove_vfork_catchpoint.
4052 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4053 TARGET_DEFAULT_RETURN.
4054
7e18a8dc
TT
40552014-02-19 Tom Tromey <tromey@redhat.com>
4056
4057 * target-delegates.c: Rebuild.
4058 * target.c (update_current_target): Don't inherit or default
4059 to_insert_vfork_catchpoint.
4060 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4061 TARGET_DEFAULT_RETURN.
4062
e1a21fb7
TT
40632014-02-19 Tom Tromey <tromey@redhat.com>
4064
4065 * target-delegates.c: Rebuild.
4066 * target.c (update_current_target): Don't inherit or default
4067 to_remove_fork_catchpoint.
4068 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4069 TARGET_DEFAULT_RETURN.
4070
5958ebeb
TT
40712014-02-19 Tom Tromey <tromey@redhat.com>
4072
4073 * target-delegates.c: Rebuild.
4074 * target.c (update_current_target): Don't inherit or default
4075 to_insert_fork_catchpoint.
4076 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4077 TARGET_DEFAULT_RETURN.
4078
340ba4bf
TT
40792014-02-19 Tom Tromey <tromey@redhat.com>
4080
4081 * target-delegates.c: Rebuild.
4082 * target.c (update_current_target): Don't inherit or default
4083 to_post_startup_inferior.
4084 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4085 TARGET_DEFAULT_IGNORE.
4086
7634da87
TT
40872014-02-19 Tom Tromey <tromey@redhat.com>
4088
4089 * target-delegates.c: Rebuild.
4090 * target.c (update_current_target): Don't inherit or default
4091 to_load.
4092 * target.h (struct target_ops) <to_load>: Use
4093 TARGET_DEFAULT_NORETURN.
4094
e19e919f
TT
40952014-02-19 Tom Tromey <tromey@redhat.com>
4096
4097 * target-delegates.c: Rebuild.
4098 * target.c (update_current_target): Don't inherit or default
4099 to_terminal_info.
4100 * target.h (struct target_ops) <to_terminal_info>: Use
4101 TARGET_DEFAULT_FUNC.
4102
c6ea8f79
TT
41032014-02-19 Tom Tromey <tromey@redhat.com>
4104
4105 * target-delegates.c: Rebuild.
4106 * target.c (update_current_target): Don't inherit or default
4107 to_terminal_save_ours.
4108 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4109 TARGET_DEFAULT_IGNORE.
4110
e4a733f1
TT
41112014-02-19 Tom Tromey <tromey@redhat.com>
4112
4113 * target-delegates.c: Rebuild.
4114 * target.c (update_current_target): Don't inherit or default
4115 to_terminal_ours.
4116 * target.h (struct target_ops) <to_terminal_ours>: Use
4117 TARGET_DEFAULT_IGNORE.
4118
74fcbef9
TT
41192014-02-19 Tom Tromey <tromey@redhat.com>
4120
4121 * target-delegates.c: Rebuild.
4122 * target.c (update_current_target): Don't inherit or default
4123 to_terminal_ours_for_output.
4124 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4125 TARGET_DEFAULT_IGNORE.
4126
ddeaacc9
TT
41272014-02-19 Tom Tromey <tromey@redhat.com>
4128
4129 * target-delegates.c: Rebuild.
4130 * target.c (update_current_target): Don't inherit or default
4131 to_terminal_inferior.
4132 * target.h (struct target_ops) <to_terminal_inferior>: Use
4133 TARGET_DEFAULT_IGNORE.
4134
0343661d
TT
41352014-02-19 Tom Tromey <tromey@redhat.com>
4136
4137 * target-delegates.c: Rebuild.
4138 * target.c (update_current_target): Don't inherit or default
4139 to_terminal_init.
4140 * target.h (struct target_ops) <to_terminal_init>: Use
4141 TARGET_DEFAULT_IGNORE.
4142
77cdffe9
TT
41432014-02-19 Tom Tromey <tromey@redhat.com>
4144
4145 * target-delegates.c: Rebuild.
4146 * target.c (update_current_target): Don't inherit or default
4147 to_can_accel_watchpoint_condition.
4148 * target.h (struct target_ops)
4149 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4150
d03655e4
TT
41512014-02-19 Tom Tromey <tromey@redhat.com>
4152
4153 * target-delegates.c: Rebuild.
4154 * target.c (update_current_target): Don't inherit or default
4155 to_region_ok_for_hw_watchpoint.
4156 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4157 Use TARGET_DEFAULT_FUNC.
4158
65f160a9
TT
41592014-02-19 Tom Tromey <tromey@redhat.com>
4160
4161 * target-delegates.c: Rebuild.
4162 * target.c (update_current_target): Don't inherit or default
4163 to_watchpoint_addr_within_range.
4164 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4165 Use TARGET_DEFAULT_FUNC.
4166
61dd109f
TT
41672014-02-19 Tom Tromey <tromey@redhat.com>
4168
4169 * target-delegates.c: Rebuild.
4170 * target.c (update_current_target): Don't inherit or default
4171 to_remove_watchpoint.
4172 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4173 TARGET_DEFAULT_NORETURN.
4174
016facd4
TT
41752014-02-19 Tom Tromey <tromey@redhat.com>
4176
4177 * target-delegates.c: Rebuild.
4178 * target.c (update_current_target): Don't inherit or default
4179 to_insert_watchpoint.
4180 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4181 TARGET_DEFAULT_RETURN.
4182
418dabac
TT
41832014-02-19 Tom Tromey <tromey@redhat.com>
4184
4185 * target-delegates.c: Rebuild.
4186 * target.c (update_current_target): Don't inherit or default
4187 to_remove_hw_breakpoint.
4188 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4189 TARGET_DEFAULT_RETURN.
4190
61b371f9
TT
41912014-02-19 Tom Tromey <tromey@redhat.com>
4192
4193 * target-delegates.c: Rebuild.
4194 * target.c (update_current_target): Don't inherit or default
4195 to_insert_hw_breakpoint.
4196 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4197 TARGET_DEFAULT_RETURN.
4198
52b51d06
TT
41992014-02-19 Tom Tromey <tromey@redhat.com>
4200
4201 * target-delegates.c: Rebuild.
4202 * target.c (update_current_target): Don't inherit or default
4203 to_can_use_hw_breakpoint.
4204 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4205 TARGET_DEFAULT_RETURN.
4206
f86e59b2
TT
42072014-02-19 Tom Tromey <tromey@redhat.com>
4208
4209 * target-delegates.c: Rebuild.
4210 * target.c (update_current_target): Don't inherit or default
4211 to_files_info.
4212 * target.h (struct target_ops) <to_files_info>: Use
4213 TARGET_DEFAULT_IGNORE.
4214
6c628163
TT
42152014-02-19 Tom Tromey <tromey@redhat.com>
4216
4217 * target-delegates.c: Rebuild.
4218 * target.c (update_current_target): Don't inherit or default
4219 to_store.
4220 * target.h (struct target_ops) <to_store>: Use
4221 TARGET_DEFAULT_NORETURN.
4222
bebd3233
TT
42232014-02-19 Tom Tromey <tromey@redhat.com>
4224
4225 * target-delegates.c: Rebuild.
4226 * target.c (update_current_target): Don't inherit or default
4227 to_post_attach.
4228 * target.h (struct target_ops) <to_post_attach>: Use
4229 TARGET_DEFAULT_IGNORE.
4230
a53f3625
TT
42312014-02-19 Tom Tromey <tromey@redhat.com>
4232
4233 * target-delegates.c: Rebuild.
4234 * target.c (update_current_target): Don't inherit or default
4235 to_rcmd.
4236 (default_rcmd): New function.
4237 (do_monitor_command): Unconditionally delegate.
4238 * target.h (struct target_ops) <to_rmcd>: Use
4239 TARGET_DEFAULT_FUNC.
4240
e9a29200
TT
42412014-02-19 Tom Tromey <tromey@redhat.com>
4242
4243 * target-delegates.c: Rebuild.
4244 * target.c (init_dummy_target): Don't initialize to_attach.
4245 (target_attach): Unconditionally delegate.
4246 * target.h (struct target_ops) <to_attach>: Use
4247 TARGET_DEFAULT_FUNC.
4248
09da0d0a
TT
42492014-02-19 Tom Tromey <tromey@redhat.com>
4250
4251 * target-delegates.c: Rebuild.
4252 * target.c (target_detach): Unconditionally delegate.
4253 (init_dummy_target): Don't initialize to_detach.
4254 * target.h (struct target_ops) <to_detach>: Use
4255 TARGET_DEFAULT_IGNORE.
4256
5436ff03
TT
42572014-02-19 Tom Tromey <tromey@redhat.com>
4258
4259 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4260 Add argument.
4261 (target_augmented_libraries_svr4_read): Add argument.
4262 * target.c (update_current_target): Update.
4263 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4264 argument.
4265
f0d960ea
TT
42662014-02-19 Tom Tromey <tromey@redhat.com>
4267
4268 * target.h (struct target_ops) <to_call_history_range>: Add
4269 argument.
4270 * target.c (target_call_history_range): Add argument.
4271 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4272 argument.
4273 (record_btrace_call_history_from): Update.
4274
ec0aea04
TT
42752014-02-19 Tom Tromey <tromey@redhat.com>
4276
4277 * target.h (struct target_ops) <to_call_history_from>: Add
4278 argument.
4279 * target.c (target_call_history_from): Add argument.
4280 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4281 argument.
4282
5df2fcba
TT
42832014-02-19 Tom Tromey <tromey@redhat.com>
4284
4285 * target.h (struct target_ops) <to_call_history>: Add argument.
4286 * target.c (target_call_history): Add argument.
4287 * record-btrace.c (record_btrace_call_history): Add 'self'
4288 argument.
4289
4e99c6b7
TT
42902014-02-19 Tom Tromey <tromey@redhat.com>
4291
4292 * target.h (struct target_ops) <to_insn_history_range>: Add
4293 argument.
4294 * target.c (target_insn_history_range): Add argument.
4295 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4296 argument.
4297 (record_btrace_insn_history_from): Update.
4298
9abc3ff3
TT
42992014-02-19 Tom Tromey <tromey@redhat.com>
4300
4301 * target.h (struct target_ops) <to_insn_history_from>: Add
4302 argument.
4303 * target.c (target_insn_history_from): Add argument.
4304 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4305 argument.
4306
7a6c5609
TT
43072014-02-19 Tom Tromey <tromey@redhat.com>
4308
4309 * target.h (struct target_ops) <to_insn_history>: Add argument.
4310 * target.c (target_insn_history): Add argument.
4311 * record-btrace.c (record_btrace_insn_history): Add 'self'
4312 argument.
4313
606183ac
TT
43142014-02-19 Tom Tromey <tromey@redhat.com>
4315
4316 * target.h (struct target_ops) <to_goto_record>: Add argument.
4317 * target.c (target_goto_record): Add argument.
4318 * record-full.c (record_full_goto): Add 'self' argument.
4319 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4320
307a1b91
TT
43212014-02-19 Tom Tromey <tromey@redhat.com>
4322
4323 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4324 * target.c (target_goto_record_end): Add argument.
4325 * record-full.c (record_full_goto_end): Add 'self' argument.
4326 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4327
08475817
TT
43282014-02-19 Tom Tromey <tromey@redhat.com>
4329
4330 * target.h (struct target_ops) <to_goto_record_begin>: Add
4331 argument.
4332 * target.c (target_goto_record_begin): Add argument.
4333 * record-full.c (record_full_goto_begin): Add 'self' argument.
4334 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4335 argument.
4336
1c63c994
TT
43372014-02-19 Tom Tromey <tromey@redhat.com>
4338
4339 * target.h (struct target_ops) <to_record_is_replaying>: Add
4340 argument.
4341 * target.c (target_record_is_replaying): Add argument.
4342 * record-full.c (record_full_is_replaying): Add 'self' argument.
4343 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4344 argument.
4345 (record_btrace_xfer_partial, record_btrace_store_registers)
4346 (record_btrace_prepare_to_store, record_btrace_resume)
4347 (record_btrace_wait, record_btrace_decr_pc_after_break)
4348 (record_btrace_find_new_threads, record_btrace_thread_alive):
4349 Update.
4350
d1b55219
TT
43512014-02-19 Tom Tromey <tromey@redhat.com>
4352
4353 * target.h (struct target_ops) <to_delete_record>: Add argument.
4354 * target.c (target_delete_record): Add argument.
4355 * record-full.c (record_full_delete): Add 'self' argument.
4356
1390f529
TT
43572014-02-19 Tom Tromey <tromey@redhat.com>
4358
4359 * target.h (struct target_ops) <to_save_record>: Add argument.
4360 * target.c (target_save_record): Add argument.
4361 * record-full.c (record_full_save): Add 'self' argument.
4362 (record_full_save): Add 'self' argument.
4363
630d6a4a
TT
43642014-02-19 Tom Tromey <tromey@redhat.com>
4365
4366 * target.h (struct target_ops) <to_info_record>: Add argument.
4367 * target.c (target_info_record): Add argument.
4368 * record.c (info_record_command): Add argument.
4369 * record-full.c (record_full_info): Add 'self' argument.
4370 * record-btrace.c (record_btrace_info): Add 'self' argument.
4371
c6cd7c02
TT
43722014-02-19 Tom Tromey <tromey@redhat.com>
4373
4374 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4375 * target.c (target_stop_recording): Add argument.
4376 * record.c (record_stop): Add argument.
4377 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4378 argument.
4379
39c49f83
TT
43802014-02-19 Tom Tromey <tromey@redhat.com>
4381
4382 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4383 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4384 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4385 argument.
4386 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4387 (_initialize_amd64_linux_nat): Use it.
4388 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4389 (_initialize_i386_linux_nat): Use it.
4390
1777056d
TT
43912014-02-19 Tom Tromey <tromey@redhat.com>
4392
4393 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4394 * target.c (target_teardown_btrace): Add argument.
4395 * remote.c (remote_teardown_btrace): Add 'self' argument.
4396 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4397 argument.
4398 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4399 argument.
4400
25e95349
TT
44012014-02-19 Tom Tromey <tromey@redhat.com>
4402
4403 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4404 * target.c (target_disable_btrace): Add argument.
4405 * remote.c (remote_disable_btrace): Add 'self' argument.
4406 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4407 argument.
4408 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4409 argument.
4410
e3c49f88
TT
44112014-02-19 Tom Tromey <tromey@redhat.com>
4412
4413 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4414 * target.c (target_enable_btrace): Add argument.
4415 * remote.c (remote_enable_btrace): Add 'self' argument.
4416 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4417 argument.
4418 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4419 argument.
4420
fe38f897
TT
44212014-02-19 Tom Tromey <tromey@redhat.com>
4422
4423 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4424 (target_can_use_agent): Add argument.
4425 * target.c (update_current_target): Update.
4426 * remote.c (remote_can_use_agent): Add 'self' argument.
4427 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4428
2c152180
TT
44292014-02-19 Tom Tromey <tromey@redhat.com>
4430
4431 * target.h (struct target_ops) <to_use_agent>: Add argument.
4432 (target_use_agent): Add argument.
4433 * target.c (update_current_target): Update.
4434 * remote.c (remote_use_agent): Add 'self' argument.
4435 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4436
a893e81f
TT
44372014-02-19 Tom Tromey <tromey@redhat.com>
4438
4439 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4440 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4441 (target_traceframe_info): Add argument.
4442 * target.c (update_current_target): Update.
4443 * remote.c (remote_traceframe_info): Add 'self' argument.
4444 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4445
c686c57f
TT
44462014-02-19 Tom Tromey <tromey@redhat.com>
4447
4448 * target.h (target_static_tracepoint_markers_by_strid): Add
4449 argument.
4450 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4451 'self' argument.
4452 * target.c (update_current_target): Update.
4453 * remote.c (struct target_ops)
4454 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4455 * linux-nat.c (struct target_ops)
4456 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4457
61fc905d
TT
44582014-02-19 Tom Tromey <tromey@redhat.com>
4459
4460 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4461 Add argument.
4462 (target_static_tracepoint_marker_at): Add argument.
4463 * target.c (update_current_target): Update.
4464 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4465 argument.
4466
c378d69d
TT
44672014-02-19 Tom Tromey <tromey@redhat.com>
4468
4469 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4470 (target_set_permissions): Add argument.
4471 * target.c (update_current_target): Update.
4472 * remote.c (remote_set_permissions): Add 'self' argument.
4473 (remote_start_remote): Update.
4474
bd7ae0f5
TT
44752014-02-19 Tom Tromey <tromey@redhat.com>
4476
4477 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4478 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4479 (target_get_tib_address): Add argument.
4480 * target.c (update_current_target): Update.
4481 * remote.c (remote_get_tib_address): Add 'self' argument.
4482
d9e68a2c
TT
44832014-02-19 Tom Tromey <tromey@redhat.com>
4484
4485 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4486 (target_set_trace_notes): Add argument.
4487 * target.c (update_current_target): Update.
4488 * remote.c (remote_set_trace_notes): Add 'self' argument.
4489
4da384be
TT
44902014-02-19 Tom Tromey <tromey@redhat.com>
4491
4492 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4493 argument.
4494 (target_set_trace_buffer_size): Add argument.
4495 * target.c (update_current_target): Update.
4496 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4497
736d5b1f
TT
44982014-02-19 Tom Tromey <tromey@redhat.com>
4499
4500 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4501 argument.
4502 (target_set_circular_trace_buffer): Add argument.
4503 * target.c (update_current_target): Update.
4504 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4505 argument.
4506
37b25738
TT
45072014-02-19 Tom Tromey <tromey@redhat.com>
4508
4509 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4510 argument.
4511 (target_set_disconnected_tracing): Add argument.
4512 * target.c (update_current_target): Update.
4513 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4514
0e67620a
TT
45152014-02-19 Tom Tromey <tromey@redhat.com>
4516
4517 * target.h (struct target_ops)
4518 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4519 (target_get_min_fast_tracepoint_insn_len): Add argument.
4520 * target.c (update_current_target): Update.
4521 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4522 argument.
4523
88ee6f45
TT
45242014-02-19 Tom Tromey <tromey@redhat.com>
4525
4526 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4527 argument.
4528 (target_get_raw_trace_data): Add argument.
4529 * target.c (update_current_target): Update.
4530 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4531
181e3713
TT
45322014-02-19 Tom Tromey <tromey@redhat.com>
4533
4534 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4535 Add argument.
4536 (target_upload_trace_state_variables): Add argument.
4537 * target.c (update_current_target): Update.
4538 * remote.c (remote_upload_trace_state_variables): Add 'self'
4539 argument.
4540 (remote_start_remote): Update.
4541
ab6617cc
TT
45422014-02-19 Tom Tromey <tromey@redhat.com>
4543
4544 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4545 argument.
4546 (target_upload_tracepoints): Add argument.
4547 * target.c (update_current_target): Update.
4548 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4549 (remote_start_remote): Update.
4550
dc3decaf
TT
45512014-02-19 Tom Tromey <tromey@redhat.com>
4552
4553 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4554 (target_save_trace_data): Add argument.
4555 * target.c (update_current_target): Update.
4556 * remote.c (remote_save_trace_data): Add 'self' argument.
4557
4011015b
TT
45582014-02-19 Tom Tromey <tromey@redhat.com>
4559
4560 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4561 argument.
4562 * target.h (struct target_ops)
4563 <to_get_trace_state_variable_value>: Add argument.
4564 (target_get_trace_state_variable_value): Add argument.
4565 * target.c (update_current_target): Update.
4566 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4567 argument.
4568 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4569
bd4c6793
TT
45702014-02-19 Tom Tromey <tromey@redhat.com>
4571
4572 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4573 * target.h (struct target_ops) <to_trace_find>: Add argument.
4574 (target_trace_find): Add argument.
4575 * target.c (update_current_target): Update.
4576 * remote.c (remote_trace_find): Add 'self' argument.
4577 * ctf.c (ctf_trace_find): Add 'self' argument.
4578
74499f1b
TT
45792014-02-19 Tom Tromey <tromey@redhat.com>
4580
4581 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4582 (target_trace_stop): Add argument.
4583 * target.c (update_current_target): Update.
4584 * remote.c (remote_trace_stop): Add 'self' argument.
4585
db90e85c
TT
45862014-02-19 Tom Tromey <tromey@redhat.com>
4587
4588 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4589 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4590 argument.
4591 (target_get_tracepoint_status): Add argument.
4592 * target.c (update_current_target): Update.
4593 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4594
8bd200f1
TT
45952014-02-19 Tom Tromey <tromey@redhat.com>
4596
4597 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4598 * target.h (struct target_ops) <to_get_trace_status>: Add
4599 argument.
4600 (target_get_trace_status): Add argument.
4601 * target.c (update_current_target): Update.
4602 * remote.c (remote_get_trace_status): Add 'self' argument.
4603 (remote_start_remote, remote_can_download_tracepoint): Update.
4604 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4605
e2d1aae3
TT
46062014-02-19 Tom Tromey <tromey@redhat.com>
4607
4608 * target.h (struct target_ops) <to_trace_start>: Add argument.
4609 (target_trace_start): Add argument.
4610 * target.c (update_current_target): Update.
4611 * remote.c (remote_trace_start): Add 'self' argument.
4612
583f9a86
TT
46132014-02-19 Tom Tromey <tromey@redhat.com>
4614
4615 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4616 Add argument.
4617 (target_trace_set_readonly_regions): Add argument.
4618 * target.c (update_current_target): Update.
4619 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4620 argument.
4621
780b049c
TT
46222014-02-19 Tom Tromey <tromey@redhat.com>
4623
4624 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4625 argument.
4626 (target_disable_tracepoint): Add argument.
4627 * target.c (update_current_target): Update.
4628 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4629
46670d57
TT
46302014-02-19 Tom Tromey <tromey@redhat.com>
4631
4632 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4633 argument.
4634 (target_enable_tracepoint): Add argument.
4635 * target.c (update_current_target): Update.
4636 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4637
559d2b81
TT
46382014-02-19 Tom Tromey <tromey@redhat.com>
4639
4640 * target.h (struct target_ops) <to_download_trace_state_variable>:
4641 Add argument.
4642 (target_download_trace_state_variable): Add argument.
4643 * target.c (update_current_target): Update.
4644 * remote.c (remote_download_trace_state_variable): Add 'self'
4645 argument.
4646
a52a8357
TT
46472014-02-19 Tom Tromey <tromey@redhat.com>
4648
4649 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4650 argument.
4651 (target_can_download_tracepoint): Add argument.
4652 * target.c (update_current_target): Update.
4653 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4654
548f7808
TT
46552014-02-19 Tom Tromey <tromey@redhat.com>
4656
4657 * target.h (struct target_ops) <to_download_tracepoint>: Add
4658 argument.
4659 (target_download_tracepoint): Add argument.
4660 * target.c (update_current_target): Update.
4661 * remote.c (remote_download_tracepoint): Add 'self' argument.
4662
ecae04e1
TT
46632014-02-19 Tom Tromey <tromey@redhat.com>
4664
4665 * target.h (struct target_ops) <to_trace_init>: Add argument.
4666 (target_trace_init): Add argument.
4667 * target.c (update_current_target): Update.
4668 * remote.c (remote_trace_init): Add 'self' argument.
4669
fab5aa7c
TT
46702014-02-19 Tom Tromey <tromey@redhat.com>
4671
4672 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4673 * target.c (target_fileio_readlink): Add argument.
4674 * remote.c (remote_hostio_readlink): Add 'self' argument.
4675 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4676
dbbca37d
TT
46772014-02-19 Tom Tromey <tromey@redhat.com>
4678
4679 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4680 * target.c (target_fileio_unlink): Add argument.
4681 * remote.c (remote_hostio_unlink): Add 'self' argument.
4682 (remote_file_delete): Update.
4683 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4684
df39ea25
TT
46852014-02-19 Tom Tromey <tromey@redhat.com>
4686
4687 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4688 * target.c (target_fileio_close): Add argument.
4689 * remote.c (remote_hostio_close): Add 'self' argument.
4690 (remote_hostio_close_cleanup): Update.
4691 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4692 Update.
4693 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4694
a3be983c
TT
46952014-02-19 Tom Tromey <tromey@redhat.com>
4696
4697 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4698 * target.c (target_fileio_pread): Add argument.
4699 * remote.c (remote_hostio_pread): Add 'self' argument.
4700 (remote_bfd_iovec_pread, remote_file_get): Update.
4701 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4702
0d866f62
TT
47032014-02-19 Tom Tromey <tromey@redhat.com>
4704
4705 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4706 * target.c (target_fileio_pwrite): Add argument.
4707 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4708 (remote_file_put): Update.
4709 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4710
cd897586
TT
47112014-02-19 Tom Tromey <tromey@redhat.com>
4712
4713 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4714 * target.c (target_fileio_open): Add argument.
4715 * remote.c (remote_hostio_open): Add 'self' argument.
4716 (remote_bfd_iovec_open): Add 'self' argument.
4717 (remote_file_put): Add 'self' argument.
4718 (remote_file_get): Add 'self' argument.
4719 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4720
78eff0ec
TT
47212014-02-19 Tom Tromey <tromey@redhat.com>
4722
4723 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4724 Add argument.
4725 (target_can_run_breakpoint_commands): Add argument.
4726 * target.c (update_current_target): Update.
4727 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4728 argument.
4729 (remote_insert_breakpoint): Add 'self' argument.
4730 (remote_insert_hw_breakpoint): Add 'self' argument.
4731 (remote_can_run_breakpoint_commands): Add 'self' argument.
4732
efcc2da7
TT
47332014-02-19 Tom Tromey <tromey@redhat.com>
4734
4735 * target.h (struct target_ops)
4736 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4737 (target_supports_evaluation_of_breakpoint_conditions): Add
4738 argument.
4739 * target.c (update_current_target): Update.
4740 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4741 argument.
4742 (remote_insert_breakpoint): Add 'self' argument.
4743 (remote_insert_hw_breakpoint): Add 'self' argument.
4744 (remote_supports_cond_breakpoints): Add 'self' argument.
4745
6de37a3a
TT
47462014-02-19 Tom Tromey <tromey@redhat.com>
4747
4748 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4749 argument.
4750 (target_supports_string_tracing): Add argument.
4751 * target.c (update_current_target): Update.
4752 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4753
2bfc0540
TT
47542014-02-19 Tom Tromey <tromey@redhat.com>
4755
4756 * target.h (struct target_ops)
4757 <to_supports_disable_randomization>: Add argument.
4758 * target.c (find_default_supports_disable_randomization): Add
4759 argument.
4760 (target_supports_disable_randomization): Add argument.
4761 (find_default_supports_disable_randomization): Add 'self'
4762 argument.
4763 * remote.c (extended_remote_supports_disable_randomization): Add
4764 'self' argument.
4765 (remote_supports_disable_randomization): Add 'self' argument.
4766 (extended_remote_create_inferior): Update.
4767 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4768 'self' argument.
4769
7d178d6a
TT
47702014-02-19 Tom Tromey <tromey@redhat.com>
4771
4772 * target.h (struct target_ops)
4773 <to_supports_enable_disable_tracepoint>: Add argument.
4774 (target_supports_enable_disable_tracepoint): Add argument.
4775 * target.c (update_current_target): Update.
4776 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4777 argument.
4778
86ce2668
TT
47792014-02-19 Tom Tromey <tromey@redhat.com>
4780
4781 * target.h (struct target_ops) <to_supports_multi_process>: Add
4782 argument.
4783 (target_supports_multi_process): Add argument.
4784 * target.c (update_current_target): Update.
4785 * remote.c (remote_supports_multi_process): Add 'self' argument.
4786 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4787 argument.
4788 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4789 argument.
4790
4c612759
TT
47912014-02-19 Tom Tromey <tromey@redhat.com>
4792
4793 * target.h (struct target_ops) <to_execution_direction>: Add
4794 argument.
4795 (target_execution_direction): Add argument.
4796 * target.c (default_execution_direction): Add 'self' argument.
4797 * record-full.c (record_full_execution_direction): Add 'self'
4798 argument.
4799
19db3e69
TT
48002014-02-19 Tom Tromey <tromey@redhat.com>
4801
4802 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4803 argument.
4804 (target_can_execute_reverse): Add argument.
4805 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4806 * record-full.c (record_full_can_execute_reverse): Add 'self'
4807 argument.
4808 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4809 argument.
4810
1e6b91a4
TT
48112014-02-19 Tom Tromey <tromey@redhat.com>
4812
4813 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4814 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4815 argument.
4816 (target_get_ada_task_ptid): Add argument.
4817 * target.c (update_current_target): Update.
4818 (default_get_ada_task_ptid): Add 'self' argument.
4819 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4820 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4821 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4822 argument.
4823 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4824 argument.
4825 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4826 argument.
4827 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4828 argument.
4829 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4830 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4831 argument.
4832
3c80fb48
TT
48332014-02-19 Tom Tromey <tromey@redhat.com>
4834
4835 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4836 (target_goto_bookmark): Add argument.
4837 * target.c (dummy_goto_bookmark): Add 'self' argument.
4838 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4839
dd0e2830
TT
48402014-02-19 Tom Tromey <tromey@redhat.com>
4841
4842 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4843 (target_get_bookmark): Add argument.
4844 * target.c (dummy_get_bookmark): Add 'self' argument.
4845 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4846
fc6691b2
TT
48472014-02-19 Tom Tromey <tromey@redhat.com>
4848
4849 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4850 argument.
4851 (target_make_corefile_notes): Add argument.
4852 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4853 * procfs.c (procfs_make_note_section): Add 'self' argument.
4854 (procfs_make_note_section): Add 'self' argument.
4855 (procfs_make_note_section): Add 'self' argument.
4856 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4857 argument.
4858 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4859 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4860 * exec.c (exec_make_note_section): Add 'self' argument.
4861 (exec_make_note_section): Add 'self' argument.
4862
2e73927c
TT
48632014-02-19 Tom Tromey <tromey@redhat.com>
4864
4865 * target.h (struct target_ops) <to_find_memory_regions>: Add
4866 argument.
4867 (target_find_memory_regions): Add argument.
4868 * target.c (dummy_find_memory_regions): Add 'self' argument.
4869 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4870 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4871 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4872 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4873 * exec. (exec_do_find_memory_regions): New global.
4874 (exec_set_find_memory_regions): Rewrite.
4875 (exec_find_memory_regions): New function.
4876 (init_exec_ops): Use exec_find_memory_regions.
4877
2a9a2795
TT
48782014-02-19 Tom Tromey <tromey@redhat.com>
4879
4880 * target.h (struct target_ops) <to_supports_non_stop>: Add
4881 argument.
4882 * target.c (find_default_supports_non_stop): Add argument.
4883 (target_supports_non_stop): Add argument.
4884 (find_default_supports_non_stop): Add 'self' argument.
4885 * remote.c (remote_supports_non_stop): Add 'self' argument.
4886 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4887
4ab76ea3
TT
48882014-02-19 Tom Tromey <tromey@redhat.com>
4889
4890 * target.h (struct target_ops) <to_log_command>: Add argument.
4891 (target_log_command): Add argument.
4892 * serial.h (serial_log_command): Add 'self' argument.
4893 * serial.c (serial_log_command): Add 'self' argument.
4894
8dd27370
TT
48952014-02-19 Tom Tromey <tromey@redhat.com>
4896
4897 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4898 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4899 argument.
4900 (target_pid_to_exec_file): Add argument.
4901 * target.c (debug_to_pid_to_exec_file): Add argument.
4902 (update_current_target): Update.
4903 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4904 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4905 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4906 (linux_handle_extended_wait): Update.
4907 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4908 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4909 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4910 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4911
1aac633b
TT
49122014-02-19 Tom Tromey <tromey@redhat.com>
4913
4914 * target.h (struct target_ops) <to_rcmd>: Add argument.
4915 (target_rcmd): Add argument.
4916 * target.c (debug_to_rcmd): Add argument.
4917 (update_current_target, do_monitor_command): Update.
4918 * remote.c (remote_rcmd): Add 'self' argument.
4919 * monitor.c (monitor_rcmd): Add 'self' argument.
4920
1eab8a48
TT
49212014-02-19 Tom Tromey <tromey@redhat.com>
4922
4923 * windows-nat.c (windows_stop): Add 'self' argument.
4924 * target.h (struct target_ops) <to_stop>: Add argument.
4925 * target.c (target_stop): Add argument.
4926 (debug_to_stop): Add argument.
4927 (update_current_target): Update.
4928 * remote.c (remote_stop): Add 'self' argument.
4929 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4930 (gdbsim_cntrl_c): Update.
4931 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4932 * procfs.c (procfs_stop): Add 'self' argument.
4933 * nto-procfs.c (procfs_stop): Add 'self' argument.
4934 * monitor.c (monitor_stop): Add 'self' argument.
4935 (monitor_open): Update.
4936 * linux-nat.c (linux_nat_stop): Add argument.
4937 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4938 * gnu-nat.c (gnu_stop): Add 'self' argument.
4939 * darwin-nat.c (darwin_stop): Add 'self' argument.
4940
503a628d
TT
49412014-02-19 Tom Tromey <tromey@redhat.com>
4942
4943 * target.h (struct target_ops) <to_thread_name>: Add argument.
4944 * target.c (target_thread_name): Add argument.
4945 (update_current_target): Update.
4946 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4947
c15906d8
TT
49482014-02-19 Tom Tromey <tromey@redhat.com>
4949
4950 * target.h (struct target_ops) <to_extra_thread_info>: Add
4951 argument.
4952 (target_extra_thread_info): Add argument.
4953 * target.c (update_current_target): Update.
4954 * remote.c (remote_threads_extra_info): Add 'self' argument.
4955 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4956 argument.
4957 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4958 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4959 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4960 argument.
4961 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4962 argument.
4963 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4964 argument.
4965 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4966 argument.
4967
daf5e9b6
TT
49682014-02-19 Tom Tromey <tromey@redhat.com>
4969
4970 * target.h (struct target_ops) <to_program_signals>: Add argument.
4971 * target.c (target_program_signals): Add argument.
4972 * remote.c (remote_program_signals): Add 'self' argument.
4973
94bedb42
TT
49742014-02-19 Tom Tromey <tromey@redhat.com>
4975
4976 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4977 * target.c (target_pass_signals): Add argument.
4978 * remote.c (remote_pass_signals): Add 'self' argument.
4979 (remote_start_remote): Update.
4980 * procfs.c (procfs_pass_signals): Add 'self' argument.
4981 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4982 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4983 (linux_nat_create_inferior, linux_nat_attach): Update.
4984
da82bd6b
TT
49852014-02-19 Tom Tromey <tromey@redhat.com>
4986
4987 * windows-nat.c (windows_can_run): Add 'self' argument.
4988 * target.h (struct target_ops) <to_can_run>: Add argument.
4989 (target_can_run): Add argument.
4990 * target.c (debug_to_can_run): Add argument.
4991 (update_current_target): Update.
4992 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4993 * inf-child.c (inf_child_can_run): Add 'self' argument.
4994 * go32-nat.c (go32_can_run): Add 'self' argument.
4995
d796e1d6
TT
49962014-02-19 Tom Tromey <tromey@redhat.com>
4997
4998 * target.h (struct target_ops) <to_has_exited>: Add argument.
4999 (target_has_exited): Add argument.
5000 * target.c (debug_to_has_exited): Add argument.
5001 (update_current_target): Update.
5002
ff214e67
TT
50032014-02-19 Tom Tromey <tromey@redhat.com>
5004
5005 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5006 argument.
5007 (target_set_syscall_catchpoint): Add argument.
5008 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5009 argument.
5010 * target.c (update_current_target): Update.
5011
758e29d2
TT
50122014-02-19 Tom Tromey <tromey@redhat.com>
5013
5014 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5015 argument.
5016 (target_remove_exec_catchpoint): Add argument.
5017 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5018 (update_current_target): Update.
5019 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5020 argument.
5021
ba025e51
TT
50222014-02-19 Tom Tromey <tromey@redhat.com>
5023
5024 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5025 argument.
5026 (target_insert_exec_catchpoint): Add argument.
5027 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5028 (update_current_target): Update.
5029 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5030 argument.
5031
e98cf0cd
TT
50322014-02-19 Tom Tromey <tromey@redhat.com>
5033
5034 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5035 argument.
5036 (target_remove_vfork_catchpoint): Add argument.
5037 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5038 (update_current_target): Update.
5039 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5040 argument.
5041
3ecc7da0
TT
50422014-02-19 Tom Tromey <tromey@redhat.com>
5043
5044 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5045 argument.
5046 (target_insert_vfork_catchpoint): Add argument.
5047 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5048 (update_current_target): Update.
5049 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5050 argument.
5051
973fc227
TT
50522014-02-19 Tom Tromey <tromey@redhat.com>
5053
5054 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5055 argument.
5056 (target_remove_fork_catchpoint): Add argument.
5057 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5058 (update_current_target): Update.
5059 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5060 argument.
5061
a863b201
TT
50622014-02-19 Tom Tromey <tromey@redhat.com>
5063
5064 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5065 argument.
5066 (target_insert_fork_catchpoint): Add argument.
5067 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5068 (update_current_target): Update.
5069 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5070 argument.
5071
2e97a79e
TT
50722014-02-19 Tom Tromey <tromey@redhat.com>
5073
5074 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5075 argument.
5076 (target_post_startup_inferior): Add argument.
5077 * target.c (debug_to_post_startup_inferior): Add argument.
5078 (update_current_target): Update.
5079 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5080 argument.
5081 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5082 argument.
5083 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5084 argument.
5085 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5086 argument.
5087 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5088 'self' argument.
5089 (super_post_startup_inferior): Likewise.
5090 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5091 'self' argument.
5092 (super_post_startup_inferior): Likewise.
5093 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5094 Add 'self' argument.
5095 (super_post_startup_inferior): Likewise.
5096
71a9f134
TT
50972014-02-19 Tom Tromey <tromey@redhat.com>
5098
5099 * target.h (struct target_ops) <to_load>: Add argument.
5100 * target.c (target_load): Add argument.
5101 (debug_to_load): Add argument.
5102 (update_current_target): Update.
5103 * remote.c (remote_load): Add 'self' argument.
5104 * remote-sim.c (gdbsim_load): Add 'self' argument.
5105 * remote-mips.c (mips_load): Add 'self' argument.
5106 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5107 * monitor.c (monitor_load): Add 'self' argument.
5108 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5109
0a4f40a2
TT
51102014-02-19 Tom Tromey <tromey@redhat.com>
5111
5112 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5113 (target_terminal_info): Add argument.
5114 * target.c (debug_to_terminal_info): Add argument.
5115 (default_terminal_info): Likewise.
5116 * inflow.c (child_terminal_info): Add 'self' argument.
5117 * inferior.h (child_terminal_info): Add 'self' argument.
5118 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5119
ae3bd431
TT
51202014-02-19 Tom Tromey <tromey@redhat.com>
5121
5122 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5123 argument.
5124 (target_terminal_save_ours): Add argument.
5125 * target.c (debug_to_terminal_save_ours): Add argument.
5126 (update_current_target): Update.
5127 * inflow.c (terminal_save_ours): Add 'self' argument.
5128 * inferior.h (terminal_save_ours): Add 'self' argument.
5129
e3594fd1
TT
51302014-02-19 Tom Tromey <tromey@redhat.com>
5131
5132 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5133 (target_terminal_ours): Add argument.
5134 * target.c (debug_to_terminal_ours): Add argument.
5135 (update_current_target): Update.
5136 * remote.c (remote_terminal_ours): Add 'self' argument.
5137 (remote_close): Update.
5138 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5139 * inflow.c (terminal_ours): Add 'self' argument.
5140 * inferior.h (terminal_ours): Add 'self' argument.
5141 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5142
2e1e1a19
TT
51432014-02-19 Pedro Alves <palves@redhat.com>
5144 Tom Tromey <tromey@redhat.com>
5145
5146 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5147 argument.
5148 (target_terminal_ours_for_output): Add argument.
5149 * target.c (debug_to_terminal_ours_for_output): Add argument.
5150 (update_current_target): Update.
5151 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5152 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5153 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5154
d2f640d4
TT
51552014-02-19 Tom Tromey <tromey@redhat.com>
5156
5157 * target.h (struct target_ops) <to_terminal_inferior>: Add
5158 argument.
5159 * target.c (target_terminal_inferior): Add argument.
5160 (update_current_target): Update.
5161 * remote.c (remote_terminal_inferior): Add 'self' argument.
5162 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5163 * inflow.c (terminal_inferior): Add 'self' argument.
5164 * inferior.h (terminal_inferior): Add 'self' argument.
5165 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5166 (go32_terminal_inferior): Add 'self' argument.
5167
c42bf286
TT
51682014-02-19 Tom Tromey <tromey@redhat.com>
5169
5170 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5171 (target_terminal_init): Add argument.
5172 * target.c (debug_to_terminal_init): Add argument.
5173 (update_current_target): Update.
5174 * inflow.c (terminal_init_inferior): Add 'self' argument.
5175 * inferior.h (terminal_init_inferior): Add 'self' argument.
5176 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5177 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5178
c3a5ff89
TT
51792014-02-19 Tom Tromey <tromey@redhat.com>
5180
5181 * target.h (struct target_ops)
5182 <to_can_accel_watchpoint_condition>: Add argument.
5183 (target_can_accel_watchpoint_condition): Add argument.
5184 * target.c (debug_to_can_accel_watchpoint_condition): Add
5185 argument.
5186 (update_current_target): Update.
5187 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5188 'self' argument.
5189
31568a15
TT
51902014-02-19 Tom Tromey <tromey@redhat.com>
5191
5192 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5193 Add argument.
5194 (target_region_ok_for_hw_watchpoint): Add argument.
5195 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5196 (default_region_ok_for_hw_watchpoint): Add argument.
5197 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5198 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5199 argument.
5200 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5201 argument.
5202 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5203 argument.
5204 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5205 'self' argument.
5206 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5207 'self' argument.
5208 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5209 'self' argument.
5210 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5211 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5212 'self' argument.
5213 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5214 Add 'self' argument.
5215
7bb99c53
TT
52162014-02-19 Tom Tromey <tromey@redhat.com>
5217
5218 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5219 argument.
5220 (target_insert_watchpoint): Add argument.
5221 * target.c (debug_to_insert_watchpoint): Add argument.
5222 (update_current_target): Update.
5223 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5224 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5225 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5226 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5227 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5228 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5229 argument.
5230 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5231 (procfs_insert_hw_watchpoint): Add 'self' argument.
5232 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5233 argument.
5234 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5235 argument.
5236 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5237 argument.
5238 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5239 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5240 argument.
5241 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5242 'self' argument.
5243
11b5219a
TT
52442014-02-19 Tom Tromey <tromey@redhat.com>
5245
5246 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5247 argument.
5248 (target_remove_watchpoint): Add argument.
5249 * target.c (debug_to_remove_watchpoint): Add argument.
5250 (update_current_target): Update.
5251 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5252 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5253 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5254 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5255 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5256 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5257 argument.
5258 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5259 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5260 argument.
5261 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5262 argument.
5263 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5264 argument.
5265 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5266 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5267 argument.
5268 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5269 'self' argument.
5270
a64dc96c
TT
52712014-02-19 Tom Tromey <tromey@redhat.com>
5272
5273 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5274 argument.
5275 (target_remove_hw_breakpoint): Add argument.
5276 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5277 (update_current_target): Update.
5278 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5279 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5280 argument.
5281 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5282 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5283 argument.
5284 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5285 'self' argument.
5286
23a26771
TT
52872014-02-19 Tom Tromey <tromey@redhat.com>
5288
5289 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5290 argument.
5291 (target_insert_hw_breakpoint): Add argument.
5292 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5293 (update_current_target): Update.
5294 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5295 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5296 argument.
5297 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5298 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5299 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5300 argument.
5301 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5302 'self' argument.
5303
5461485a
TT
53042014-02-19 Tom Tromey <tromey@redhat.com>
5305
5306 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5307 argument.
5308 (target_can_use_hardware_watchpoint): Add argument.
5309 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5310 (update_current_target): Update.
5311 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5312 argument.
5313 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5314 argument.
5315 * remote.c (remote_check_watch_resources): Add 'self' argument.
5316 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5317 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5318 argument.
5319 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5320 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5321 argument.
5322 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5323 argument.
5324 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5325 argument.
5326 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5327 argument.
5328 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5329 argument.
5330 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5331 argument.
5332 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5333 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5334 argument.
5335 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5336 'self' argument.
5337
f045800c
TT
53382014-02-19 Tom Tromey <tromey@redhat.com>
5339
5340 * target.h (struct target_ops) <to_post_attach>: Add argument.
5341 (target_post_attach): Add argument.
5342 * target.c (debug_to_post_attach): Add argument.
5343 (update_current_target): Update.
5344 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5345 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5346 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5347 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5348 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5349
de90e03d
TT
53502014-02-19 Tom Tromey <tromey@redhat.com>
5351
5352 * windows-nat.c (windows_close): Add 'self' argument.
5353 * tracepoint.c (tfile_close): Add 'self' argument.
5354 * target.h (struct target_ops) <to_close>: Add argument.
5355 * target.c (target_close): Add argument.
5356 (update_current_target): Update.
5357 * remote.c (remote_close): Add 'self' argument.
5358 * remote-sim.c (gdbsim_close): Add 'self' argument.
5359 * remote-mips.c (mips_close): Add 'self' argument.
5360 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5361 * record-full.c (record_full_close): Add 'self' argument.
5362 * record-btrace.c (record_btrace_close): Add 'self' argument.
5363 * monitor.h (monitor_close): Add 'self' argument.
5364 * monitor.c (monitor_close): Add 'self' argument.
5365 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5366 * linux-nat.c (linux_nat_close): Add argument.
5367 * go32-nat.c (go32_close): Add 'self' argument.
5368 * exec.c (exec_close_1): Add 'self' argument.
5369 * ctf.c (ctf_close): Add 'self' argument.
5370 * corelow.c (core_close): Add 'self' argument.
5371 (core_close_cleanup): Update.
5372 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5373 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5374
9dd130a0
TT
53752014-02-19 Tom Tromey <tromey@redhat.com>
5376
5377 * remote.c (remote_load): New function.
5378 (init_remote_ops): Use it.
5379
46917d26
TT
53802014-02-19 Tom Tromey <tromey@redhat.com>
5381
5382 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5383 argument.
5384 * common/linux-btrace.h (linux_supports_btrace): Update.
5385 * remote.c (remote_supports_btrace): Add "self" argument.
5386 * target-delegates.c: Rebuild.
5387 * target.c (target_supports_btrace): Remove.
5388 * target.h (struct target_ops) <to_supports_btrace>: Add
5389 target_ops argument.
5390 (target_supports_btrace): New define.
5391
6b84065d
TT
53922014-02-19 Tom Tromey <tromey@redhat.com>
5393
5394 * record-full.c (record_full_beneath_to_resume_ops)
5395 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5396 (record_full_beneath_to_wait)
5397 (record_full_beneath_to_store_registers_ops)
5398 (record_full_beneath_to_store_registers)
5399 (record_full_beneath_to_xfer_partial_ops)
5400 (record_full_beneath_to_xfer_partial)
5401 (record_full_beneath_to_insert_breakpoint_ops)
5402 (record_full_beneath_to_insert_breakpoint)
5403 (record_full_beneath_to_remove_breakpoint_ops)
5404 (record_full_beneath_to_remove_breakpoint)
5405 (record_full_beneath_to_stopped_by_watchpoint)
5406 (record_full_beneath_to_stopped_data_address)
5407 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5408 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5409 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5410 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5411 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5412 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5413 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5414 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5415 (record_full_resume, record_full_wait_1)
5416 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5417 (record_full_store_registers, record_full_xfer_partial)
5418 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5419 (record_full_async, record_full_core_xfer_partial): Use target
5420 delegation.
5421 * target-delegates.c: Rebuild.
5422 * target.c (current_xfer_partial): Remove.
5423 (update_current_target): Do not INHERIT or de_fault
5424 to_insert_breakpoint, to_remove_breakpoint,
5425 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5426 to_is_async_p, to_async. Do not set to_xfer_partial field.
5427 (default_xfer_partial): Simplify.
5428 (current_xfer_partial): Remove.
5429 (target_wait, target_resume): Simplify.
5430 (find_default_can_async_p, find_default_is_async_p): Update.
5431 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5432 to_xfer_partial, to_stopped_by_watchpoint,
5433 to_stopped_data_address.
5434 (target_store_registers): Simplify.
5435 (forward_target_remove_breakpoint)
5436 (forward_target_insert_breakpoint): Remove.
5437 (target_remove_breakpoint, target_insert_breakpoint)
5438 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5439 * target.h (struct target_ops) <to_resume, to_wait,
5440 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5441 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5442 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5443 markup.
5444 (forward_target_remove_breakpoint)
5445 (forward_target_insert_breakpoint): Remove.
5446 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5447 directly.
5448 (record_btrace_insert_breakpoint): Delegate directly.
5449
1101cb7b
TT
54502014-02-19 Tom Tromey <tromey@redhat.com>
5451
5452 PR build/7701:
5453 * target-delegates.c: New file.
5454 * target.c: Include target-delegates.c.
5455 (init_dummy_target): Call install_dummy_methods.
5456 (complete_target_initialization): Call install_delegators.
5457 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5458 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5459 * make-target-delegates: New file.
5460
8b06beed
TT
54612014-02-19 Tom Tromey <tromey@redhat.com>
5462
5463 * record.c (find_record_target): Use find_target_at.
5464 * target.c (find_target_at): New function.
5465 * target.h (find_target_at): Declare.
5466
6a109b6b
TT
54672014-02-19 Tom Tromey <tromey@redhat.com>
5468
5469 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5470 Add 'ops' argument.
5471 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5472 'ops' argument.
5473 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5474 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5475 'ops' argument.
5476 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5477 argument.
5478 * linux-nat.c (save_sigtrap): Update.
5479 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5480 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5481 (linux_nat_close): Update.
5482 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5483 argument.
5484 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5485 argument.
5486 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5487 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5488 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5489 (tmp_to_async): Add 'ops' argument.
5490 (record_full_stopped_by_watchpoint, record_full_async)
5491 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5492 argument.
5493 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5494 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5495 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5496 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5497 (remote_is_async_p, remote_async): Add 'ops' argument.
5498 (remote_stopped_data_address): Update.
5499 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5500 * target.c (update_current_target)
5501 (find_default_can_async_p, find_default_is_async_p): Update.
5502 (init_dummy_target): Update.
5503 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5504 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5505 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5506 (target_can_async_p, target_is_async_p, target_async)
5507 (target_stopped_by_watchpoint): Update.
5508
e095146b
YQ
55092014-02-19 Yao Qi <yao@codesourcery.com>
5510
5511 PR gdb/16220
5512 * gdbarch.sh: Remove startup_gdbarch.
5513 * gdbarch.c: Regenerated.
5514 * gdbarch.h: Likewise.
5515
bc3c6b36
KB
55162014-02-17 Kevin Buettner <kevinb@redhat.com>
5517
5518 * rl78-tdep.c (rl78_g10_register_name): New function.
5519 (rl78_return_value): Add g10 support.
5520 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5521 g10.
5522
98dc0167 55232014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
5524
5525 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5526 (SUBDIR_GUILE_SRCS): Ditto.
5527 (scm-gsmob.o): Ditto.
5528
842c05cd
YQ
55292014-02-17 Yao Qi <yao@codesourcery.com>
5530
5531 * gnu-nat.c (ILL_RPC): Declare defined function.
5532
25c0bd04
YQ
55332014-02-17 Yao Qi <yao@codesourcery.com>
5534
5535 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5536 mach_msg_type_number_t.
5537 (gnu_write_inferior): Likewise.
5538
a9a758e3
YQ
55392014-02-17 Yao Qi <yao@codesourcery.com>
5540
5541 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5542 in format string.
5543 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5544 (inf_validate_procs, inf_signal): Likewise.
5545 (S_exception_raise_request): Likewise.
5546 (do_mach_notify_dead_name): Likewise.
5547 (steal_exc_port): Likewise.
5548 (gnu_read_inferior): Change 'copy_count''s type to
5549 mach_msg_type_number_t.
5550 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5551 format string.
5552
bae8023e
TS
55532014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5554
c82f56d9
TS
5555 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5556 flag. Adjust all users; in particular...
5557 (gnu_wait): ..., don't decrement its value in here...
5558 (gnu_create_inferior): ..., and instead set the flag in here,
5559 around the startup_inferior call, and call that one with
5560 START_INFERIOR_TRAPS_EXPECTED.
5561
3398af6a
TS
5562 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5563 (ILL_RPC): ... new macro.
5564 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5565 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5566 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5567 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5568 functions with ILL_RPC macro.
5569 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5570 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5571 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5572 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5573 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5574 (S_proc_getlogin_reply, S_proc_getsid_reply)
5575 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5576 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5577 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5578 (S_proc_getnports_reply, S_proc_is_important_reply)
5579 (S_proc_get_code_reply): New stub functions, generated with
5580 ILL_RPC macro.
5581
d47642c9
TS
5582 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5583 collected the type check structures.
5584
bae8023e
TS
5585 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5586
8a55ffb0
DE
55872014-02-14 Doug Evans <dje@google.com>
5588
5589 * target.c (target_write_partial): Fix result type.
5590
c2853f3d
JM
55912014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5592
5593 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5594 the proper offsets to access fpregset_t.
5595
ac61d2db
SA
55962014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5597
5598 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5599 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5600 * h8300-tdep.c (setmachinelist): Remove global.
5601 * hppa-tdep.c (hppa_sigtramp): Remove global.
5602 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5603 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5604 * ravenscar-thread.c (update_target_observer): Remove global.
5605 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5606
9d2d0b8b
TT
56072014-02-12 Tom Tromey <tromey@redhat.com>
5608
5609 * common/rsp-low.c: Update comments.
5610 * common/rsp-low.h: Update comments.
5611
a7191e8b
TT
56122014-02-12 Tom Tromey <tromey@redhat.com>
5613
5614 * common/rsp-low.c (convert_ascii_to_int): Remove.
5615 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5616
ff0e980e
TT
56172014-02-12 Tom Tromey <tromey@redhat.com>
5618
5619 * common/rsp-low.h (unhexify): Don't declare.
5620 * common/rsp-low.c (unhexify): Remove.
5621
e9371aff
TT
56222014-02-12 Tom Tromey <tromey@redhat.com>
5623
5624 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5625 * common/rsp-low.c (convert_int_to_ascii): Remove.
5626
971dc0b8
TT
56272014-02-12 Tom Tromey <tromey@redhat.com>
5628
5629 * common/rsp-low.h (hexify): Don't declare.
5630 * common/rsp-low.c (hexify): Remove.
5631
0a822afb
TT
56322014-02-12 Tom Tromey <tromey@redhat.com>
5633
5634 * common/rsp-low.c (hexify): Never take strlen of argument.
5635
9f1b45b0
TT
56362014-02-12 Tom Tromey <tromey@redhat.com>
5637
5638 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5639 * remote.c (extended_remote_run, remote_rcmd)
5640 (remote_download_trace_state_variable, remote_save_trace_data)
5641 (remote_set_trace_notes): Update.
5642 * tracepoint.c (encode_source_string, tfile_write_status)
5643 (tfile_write_uploaded_tsv): Update.
5644
9c3d6531
TT
56452014-02-12 Tom Tromey <tromey@redhat.com>
5646
5647 * tracepoint.c: Include rsp-low.h.
5648 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5649 * remote.c: Include rsp-low.h.
5650 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5651 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5652 (remote_unescape_input): Move to common/rsp-low.c.
5653 * common/rsp-low.h: New file.
5654 * common/rsp-low.c: New file.
5655 * Makefile.in (SFILES): Add common/rsp-low.c.
5656 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5657 (COMMON_OBS): Add rsp-low.o.
5658 (rsp-low.o): New target.
5659
01fd3ea5
TT
56602014-02-12 Tom Tromey <tromey@redhat.com>
5661
5662 * utils.h: Include print-utils.h.
5663 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5664 (int_string, core_addr_to_string, core_addr_to_string_nz)
5665 (hex_string, hex_string_custom): Don't declare.
5666 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5667 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5668 (hex_string_custom, int_string, core_addr_to_string)
5669 (core_addr_to_string_nz, host_address_to_string): Move to
5670 common/print-utils.c.
5671 * common/print-utils.h: New file.
5672 * common/print-utils.c: New file
5673 * Makefile.in (SFILES): Add common/print-utils.c.
5674 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5675 (COMMON_OBS): Add print-utils.o.
5676 (print-utils.o): New target.
5677
9fb50108
TT
56782014-02-12 Tom Tromey <tromey@redhat.com>
5679
5680 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5681
0548b5db
MK
56822014-02-12 Mark Kettenis <kettenis@gnu.org>
5683
5684 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5685
493443a4
MK
56862014-02-12 Mark Kettenis <kettenis@gnu.org>
5687
5688 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5689 if a PT_IO ptrace request returns sucessfully but indicates that 0
5690 bytes were transferred.
5691
706d0883
PA
56922014-02-12 Pedro Alves <palves@redhat.com>
5693 Kevin Buettner <kevinb@redhat.com>
5694
5695 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5696 TYPE_INSTANCE_FLAG_CODE_SPACE.
5697
5caa2f0b
PA
56982014-02-12 Pedro Alves <palves@redhat.com>
5699
5700 * h8300-tdep.c (pseudo_from_raw_register)
5701 (raw_from_pseudo_register): New functions.
5702 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5703 them.
5704
76fd5f74
PA
57052014-02-12 Pedro Alves <palves@redhat.com>
5706
5707 * h8300-tdep.c (h8300_register_sim_regno): New function.
5708 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5709 gdbarch_register_sim_regno hook.
5710
8f008406
SA
57112014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5712
5713 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5714
195abc10
SA
57152014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5716
5717 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5718
93ffa5b9
MK
57192014-02-12 Mark Kettenis <kettenis@gnu.org>
5720
5721 * obsd-tdep.h (obsd_init_abi): New prototype.
5722 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5723 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5724 (obsd_init_abi): New functions.
5725 * i386obsd-tdep.c: Include "obsd-tdep.h".
5726 (i386obsd_init_abi): Call obsd_init_abi.
5727 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5728 (amd64obsd_init_abi): Call obsd_init_abi.
5729 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5730 obsd-tdep.c to gdb_target_obs.
5731
49caec94
JM
57322014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5733
5734 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5735 double float arguments to 16-byte in the argument slots.
5736
e1402065
DE
57372014-02-11 Doug Evans <xdje42@gmail.com>
5738
5739 * configure.ac: Don't crash if pkg-config is not found and guile
5740 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5741 in guile checks.
5742 * configure: Regenerate.
5743
edcc890f
YQ
57442014-02-11 Yao Qi <yao@codesourcery.com>
5745
5746 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5747 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5748 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5749 * gnu-nat.c (gnu_xfer_memory): Likewise.
5750 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5751 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5752 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5753 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5754
9b409511
YQ
57552014-02-11 Yao Qi <yao@codesourcery.com>
5756
5757 * target.h (enum target_xfer_error): Rename to ...
5758 (enum target_xfer_status): ... it. New. All users updated.
5759 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5760 New.
5761 (TARGET_XFER_STATUS_ERROR_P): New macro.
5762 (target_xfer_error_to_string): Remove declaration.
5763 (target_xfer_status_to_string): Declare.
5764 (target_xfer_partial_ftype): Adjust it.
5765 (struct target_ops) <to_xfer_partial>: Return
5766 target_xfer_status. Add argument xfered_len. Update
5767 comments.
5768 * target.c (target_xfer_error_to_string): Rename to ...
5769 (target_xfer_status_to_string): ... it. New. All callers
5770 updated.
5771 (target_read_live_memory): Likewise. Call target_xfer_partial
5772 instead of target_read.
5773 (memory_xfer_live_readonly_partial): Return
5774 target_xfer_status. Add argument xfered_len.
5775 (raw_memory_xfer_partial): Likewise.
5776 (memory_xfer_partial_1): Likewise.
5777 (memory_xfer_partial): Likewise.
5778 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5779 properly. Update debug message.
5780 (default_xfer_partial, current_xfer_partial): Likewise.
5781 (target_write_partial): Likewise.
5782 (target_read_partial): Likewise. All callers updated.
5783 (read_whatever_is_readable): Likewise.
5784 (target_write_with_progress): Likewise.
5785 (target_read_alloc_1): Likewise.
5786
5787 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5788 * auxv.c (procfs_xfer_auxv): Likewise.
5789 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5790 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5791 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5792 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5793 * corefile.c (read_memory): Adjust.
5794 * corelow.c (core_xfer_partial): Likewise.
5795 * ctf.c (ctf_xfer_partial): Likewise.
5796 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5797 updated.
5798 (darwin_xfer_partial): Likewise.
5799 * exec.c (section_table_xfer_memory_partial): Likewise. All
5800 callers updated.
5801 (exec_xfer_partial): Likewise.
5802 * exec.h (section_table_xfer_memory_partial): Update
5803 declaration.
5804 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5805 negative.
5806 (gnu_xfer_partial): Likewise.
5807 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5808 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5809 (ia64_hpux_xfer_solib_got): Likewise.
5810 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5811 type of 'partial_len' to ULONGEST.
5812 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5813 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5814 (linux_nat_xfer_partial): Likewise.
5815 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5816 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5817 * monitor.c (monitor_xfer_memory): Likewise.
5818 (monitor_xfer_partial): Likewise.
5819 * procfs.c (procfs_xfer_partial): Likewise.
5820 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5821 * record-full.c (record_full_xfer_partial): Likewise.
5822 (record_full_core_xfer_partial): Likewise.
5823 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5824 (gdbsim_xfer_partial): Likewise.
5825 * remote.c (remote_write_bytes_aux): Likewise. All callers
5826 updated.
5827 (remote_write_bytes, remote_read_bytes): Likewise. All
5828 callers updated.
5829 (remote_flash_erase): Likewise. All callers updated.
5830 (remote_write_qxfer): Likewise. All callers updated.
5831 (remote_read_qxfer): Likewise. All callers updated.
5832 (remote_xfer_partial): Likewise.
5833 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5834 (rs6000_xfer_shared_libraries): Likewise.
5835 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5836 (sol_thread_xfer_partial): Likewise.
5837 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5838 (sparc_xfer_partial): Likewise.
5839 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5840 updated.
5841 (spu_xfer_partial): Likewise.
5842 * spu-multiarch.c (spu_xfer_partial): Likewise.
5843 * tracepoint.c (tfile_xfer_partial): Likewise.
5844 * windows-nat.c (windows_xfer_memory): Likewise.
5845 (windows_xfer_shared_libraries): Likewise.
5846 (windows_xfer_partial): Likewise.
5847 * valprint.c: Replace 'target_xfer_error' with
5848 'target_xfer_status' in comments.
5849
a8e63083
JB
58502014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5851
5852 Checked in by Joel Brobecker <brobecker@adacore.com>.
5853 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5854
e86b67d3
JB
58552014-02-11 Joel Brobecker <brobecker@adacore.com>
5856
5857 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5858 function parameters.
5859
4b7d1f7f
WN
58602014-02-10 Will Newton <will.newton@linaro.org>
5861
5862 * elfread.c (elf_rel_plt_read): Look for a .got section if
5863 looking up .got.plt fails.
5864 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5865 on address passed to elf_gnu_ifunc_record_cache.
5866 (elf_gnu_ifunc_resolve_addr): Likewise.
5867 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5868
961842b2
JM
58692014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5870
5871 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5872 (X_RETTURN): New macro.
5873 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5874
5875 * sparc64-tdep.c (sparc64_init_abi): Hook
5876 sparc_in_function_epilogue_p.
5877
3f03e7b1
GB
58782014-02-10 Gary Benson <gbenson@redhat.com>
5879
5880 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5881 Rename name_matcher to symbol_matcher.
5882
96f861ef
GB
58832014-02-10 Gary Benson <gbenson@redhat.com>
5884
5885 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5886 Use expand_symtabs_file_matcher_ftype and
5887 expand_symtabs_symbol_matcher_ftype.
5888
ee01b665
JB
58892014-02-10 Joel Brobecker <brobecker@adacore.com>
5890
5891 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5892 (struct ada_symbol_cache): New.
5893 (ada_free_symbol_cache): Forward declare.
5894 (struct ada_pspace_data): New.
5895 (ada_pspace_data_handle): New static global.
5896 (get_ada_pspace_data, ada_pspace_data_cleanup)
5897 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5898 (cache_space, cache): Delete, now folded inside struct
5899 ada_pspace_data.
5900 (ada_get_symbol_cache): New function.
5901 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5902 implementation.
5903 (_initialize_ada_language): Remove initialization of cache_space.
5904 Move call to observer_attach_inferior_exit up, grouping it
5905 with the other observer registrations inside this function.
5906 Rename command to be more general. Add call to
5907 register_program_space_data_with_cleanup.
5908
143adbbf
JB
59092014-02-10 Joel Brobecker <brobecker@adacore.com>
5910
5911 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5912 ada_new_objfile_observer.
5913 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5914 (_initialize_tasks): Update uses of ada_new_objfile_observer
5915 and ada_tasks_normal_stop_observer.
5916
aa4fb036
JB
59172014-02-10 Joel Brobecker <brobecker@adacore.com>
5918
5919 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5920 returned by the 'Length attribute to integer.
5921
9dee8cc6
JB
59222014-02-10 Joel Brobecker <brobecker@adacore.com>
5923
5924 * ada-lang.c (_initialize_ada_language): Initialize
5925 cache_space obstack.
5926
3d9434b5
JB
59272014-02-10 Joel Brobecker <brobecker@adacore.com>
5928
5929 * ada-lang.c (HASH_SIZE): New macro.
5930 (struct cache_entry): New type.
5931 (cache_space, cache): New static globals.
5932 (ada_clear_symbol_cache, find_entry): New functions.
5933 (lookup_cached_symbol, cache_symbol): Implement.
5934 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5935 (_initialize_ada_language): Attach ada_new_objfile_observer
5936 and ada_free_objfile_observer.
5937
f0c5f9b2
JB
59382014-02-10 Joel Brobecker <brobecker@adacore.com>
5939
5940 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5941 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5942 struct block * parameter.
5943 (ada_lookup_symbol_list_worker): Constify local variable "block".
5944 Remove cast which is no longer necessary.
5945
ed3ef339
DE
59462014-02-10 Doug Evans <xdje42@gmail.com>
5947
5948 Add Guile as an extension language.
5949 * NEWS: Mention Guile scripting.
5950 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5951 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5952 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5953 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5954 (CLIBS): Add GUILE_LIBS.
5955 (install-guile): New rule.
5956 (guile.o): New rule.
5957 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5958 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5959 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5960 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5961 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5962 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5963 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5964 * configure.ac: New option --with-guile.
5965 * configure: Regenerate.
5966 * config.in: Regenerate.
5967 * auto-load.c: Remove #include "python/python.h". Add #include
5968 "gdb/section-scripts.h".
5969 (source_section_scripts): Handle Guile scripts.
5970 (_initialize_auto_load): Add name of Guile objfile script to
5971 scripts-directory help text.
5972 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5973 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5974 (struct breakpoint): New member scm_bp_object.
5975 * defs.h (enum command_control_type): New value guile_control.
5976 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5977 "extension.h".
5978 (show_user): Update comment.
5979 (_initialize_cli_cmds): Update help text for "show user". Update help
5980 text for max-user-call-depth.
5981 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5982 "extension.h".
5983 (multi_line_command_p): Add guile_control.
5984 (print_command_lines): Handle guile_control.
5985 (execute_control_command, recurse_read_control_structure): Ditto.
5986 (process_next_line): Recognize "guile" commands.
5987 * disasm.c (gdb_disassemble_info): Make non-static.
5988 * disasm.h: #include "dis-asm.h".
5989 (struct gdbarch): Add forward decl.
5990 (gdb_disassemble_info): Declare.
5991 * extension.c: #include "guile/guile.h".
5992 (extension_languages): Add guile.
5993 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5994 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5995 * gdbtypes.c (get_unsigned_type_max): New function.
5996 (get_signed_type_minmax): New function.
5997 * gdbtypes.h (get_unsigned_type_max): Declare.
5998 (get_signed_type_minmax): Declare.
5999 * guile/README: New file.
6000 * guile/guile-internal.h: New file.
6001 * guile/guile.c: New file.
6002 * guile/guile.h: New file.
6003 * guile/scm-arch.c: New file.
6004 * guile/scm-auto-load.c: New file.
6005 * guile/scm-block.c: New file.
6006 * guile/scm-breakpoint.c: New file.
6007 * guile/scm-disasm.c: New file.
6008 * guile/scm-exception.c: New file.
6009 * guile/scm-frame.c: New file.
6010 * guile/scm-gsmob.c: New file.
6011 * guile/scm-iterator.c: New file.
6012 * guile/scm-lazy-string.c: New file.
6013 * guile/scm-math.c: New file.
6014 * guile/scm-objfile.c: New file.
6015 * guile/scm-ports.c: New file.
6016 * guile/scm-pretty-print.c: New file.
6017 * guile/scm-safe-call.c: New file.
6018 * guile/scm-string.c: New file.
6019 * guile/scm-symbol.c: New file.
6020 * guile/scm-symtab.c: New file.
6021 * guile/scm-type.c: New file.
6022 * guile/scm-utils.c: New file.
6023 * guile/scm-value.c: New file.
6024 * guile/lib/gdb.scm: New file.
6025 * guile/lib/gdb/boot.scm: New file.
6026 * guile/lib/gdb/experimental.scm: New file.
6027 * guile/lib/gdb/init.scm: New file.
6028 * guile/lib/gdb/iterator.scm: New file.
6029 * guile/lib/gdb/printing.scm: New file.
6030 * guile/lib/gdb/types.scm: New file.
6031 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6032 (VPATH): Add $(GUILE_SRCDIR).
6033 (GUILE_DIR): New variable.
6034 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6035 (all): Add stamp-guile dependency.
6036 (stamp-guile): New rule.
6037 (clean-guile, install-guile, uninstall-guile): New rules.
6038 (install-only): Add install-guile dependency.
6039 (uninstall): Add uninstall-guile dependency.
6040 (clean): Add clean-guile dependency.
6041
ac020ec5
DE
60422014-02-09 Doug Evans <xdje42@gmail.com>
6043
6044 Revert this patch (which I approved, mea culpa).
6045
6046 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6047
6048 * Makefile.in (all-lib): Remove.
6049 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6050
2a081c59
JK
60512014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6052
6053 Fix Python stack corruption.
6054 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6055 gdb_py_longest.
6056
0a6bd22d
MK
60572014-02-08 Mark Kettenis <kettenis@gnu.org>
6058
6059 * Makefile.in (all-lib): Remove.
6060 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6061
1a860409
DE
60622014-02-07 Doug Evans <dje@google.com>
6063
6064 * extension-priv.h (extension_language_script_ops): Add comment.
6065 (extension_language_ops): Add comment.
caf5a491 6066 (active_ext_lang_state): Fix typo in comment.
1a860409 6067
d137e6dc
PA
60682014-02-07 Pedro Alves <palves@redhat.com>
6069
0dcb32c3 6070 PR breakpoints/16292
d137e6dc
PA
6071 * infrun.c (handle_signal_stop) <signal arrives while stepping
6072 over a breakpoint>: Switch back to the stepping thread.
6073
ce6d0892
YQ
60742014-02-07 Yao Qi <yao@codesourcery.com>
6075
6076 * target.c (target_xfer_partial): Return zero if LEN is zero.
6077
2ed4b548
YQ
60782014-02-07 Yao Qi <yao@codesourcery.com>
6079
6080 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6081 (ld_so_xfer_auxv): Likewise.
6082 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6083 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6084 * corelow.c (core_xfer_partial): Likewise.
6085 * ctf.c (ctf_xfer_partial): Likewise.
6086 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6087 (darwin_xfer_partial): Likewise.
6088 * exec.c (exec_xfer_partial): Likewise.
6089 * gnu-nat.c (gnu_xfer_partial): Likewise.
6090 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6091 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6092 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6093 * linux-nat.c (linux_xfer_siginfo): Likewise.
6094 (linux_proc_xfer_spu): Likewise.
6095 * procfs.c (procfs_xfer_partial): Likewise.
6096 * record-full.c (record_full_xfer_partial): Likewise.
6097 (record_full_core_xfer_partial): Likewise.
6098 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6099 * remote.c (remote_write_qxfer): Likewise.
6100 (remote_write_qxfer, remote_read_qxfer): Likewise.
6101 (remote_xfer_partial): Likewise.
6102 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6103 (rs6000_xfer_shared_libraries): Likewise.
6104 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6105 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6106 (spu_xfer_partial): Likewise.
6107 * target.c (memory_xfer_partial_1): Likewise.
6108 * tracepoint.c (tfile_xfer_partial): Likewise.
6109 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6110 (windows_xfer_partial): Likewise.
6111
c09f20e4
YQ
61122014-02-07 Yao Qi <yao@codesourcery.com>
6113
6114 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6115 comments.
6116 (core_xfer_shared_libraries_aix): Likewise.
6117 * gdbarch.c, gdbarch.h: Regenerated.
6118 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6119 ULONGEST. Change 'len_avail' type to ULONGEST.
6120 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6121 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6122 declaration.
6123 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6124
8635b3bf
YQ
61252014-02-07 Yao Qi <yao@codesourcery.com>
6126
6127 * corefile.c (memory_error): Get 'exception' from ERR and pass
6128 'exception' to throw_error.
6129
6dddc817
DE
61302014-02-06 Doug Evans <xdje42@gmail.com>
6131
6132 * configure.ac (libpython checking): Remove all but python.o from
6133 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6134 * configure: Regenerate.
6135
6136 * Makefile.in (SFILES): Add extension.c.
6137 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6138 (COMMON_OBS): Add extension.o.
6139 * extension.h: New file.
6140 * extension-priv.h: New file.
6141 * extension.c: New file.
6142
6143 * python/python-internal.h: #include "extension.h".
6144 (gdbpy_auto_load_enabled): Declare.
6145 (gdbpy_apply_val_pretty_printer): Declare.
6146 (gdbpy_apply_frame_filter): Declare.
6147 (gdbpy_preserve_values): Declare.
6148 (gdbpy_breakpoint_cond_says_stop): Declare.
6149 (gdbpy_breakpoint_has_cond): Declare.
6150 (void source_python_script_for_objfile): Delete.
6151 * python/python.c: #include "extension-priv.h".
6152 Delete inclusion of "observer.h".
6153 (extension_language_python): Moved here and renamed from
6154 script_language_python in py-auto-load.c.
6155 Redefined to be of type extension_language_defn.
6156 (python_extension_script_ops): New global.
6157 (python_extension_ops): New global.
6158 (struct python_env): New member previous_active.
6159 (restore_python_env): Call restore_active_ext_lang.
6160 (ensure_python_env): Call set_active_ext_lang.
6161 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6162 New arg extlang.
6163 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6164 New arg extlang.
6165 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6166 New arg extlang.
6167 (gdbpy_eval_from_control_command): Renamed from
6168 eval_python_from_control_command, made static. New arg extlang.
6169 (gdbpy_source_script) Renamed from source_python_script, made static.
6170 New arg extlang.
6171 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6172 result to int. New arg extlang.
6173 (gdbpy_source_objfile_script): Renamed from
6174 source_python_script_for_objfile, made static. New arg extlang.
6175 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6176 static. New args extlang, extlang_printers. Change result type to
6177 "void".
6178 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6179 static. New arg extlang. Rename arg printers to extlang_printers
6180 and change type to ext_lang_type_printers *.
6181 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6182 static. Replace argument arg with extlang, extlang_printers.
6183 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6184 (!HAVE_PYTHON, source_python_script): Delete.
6185 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6186 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6187 (!HAVE_PYTHON, start_type_printers): Delete.
6188 (!HAVE_PYTHON, apply_type_printers): Delete.
6189 (!HAVE_PYTHON, free_type_printers): Delete.
6190 (_initialize_python): Delete call to observer_attach_before_prompt.
6191 (finalize_python): Set/restore active extension language.
6192 (gdbpy_finish_initialization) Renamed from
6193 finish_python_initialization, made static. New arg extlang.
6194 (gdbpy_initialized): New function.
6195 * python/python.h: #include "extension.h". Delete #include
6196 "value.h", "mi/mi-cmds.h".
6197 (extension_language_python): Declare.
6198 (GDBPY_AUTO_FILE_NAME): Delete.
6199 (enum py_bt_status): Moved to extension.h and renamed to
6200 ext_lang_bt_status.
6201 (enum frame_filter_flags): Moved to extension.h.
6202 (enum py_frame_args): Moved to extension.h and renamed to
6203 ext_lang_frame_args.
6204 (finish_python_initialization): Delete.
6205 (eval_python_from_control_command): Delete.
6206 (source_python_script): Delete.
6207 (apply_val_pretty_printer): Delete.
6208 (apply_frame_filter): Delete.
6209 (preserve_python_values): Delete.
6210 (gdbpy_script_language_defn): Delete.
6211 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6212 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6213
6214 * auto-load.c: #include "extension.h".
6215 (GDB_AUTO_FILE_NAME): Delete.
6216 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6217 (script_language_gdb): Delete, moved to extension.c and renamed to
6218 extension_language_gdb.
6219 (source_gdb_script_for_objfile): Delete.
6220 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6221 (loaded_script): Change type of language member to
6222 struct extension_language_defn *.
6223 (init_loaded_scripts_info): Initialize
6224 unsupported_script_warning_printed.
6225 (maybe_add_script): Make static. Change type of language arg to
6226 struct extension_language_defn *.
6227 (clear_section_scripts): Reset unsupported_script_warning_printed.
6228 (auto_load_objfile_script_1): Rewrite to use extension language API.
6229 (auto_load_objfile_script): Make public. Remove support-compiled-in
6230 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6231 (source_section_scripts): Rewrite to use extension language API.
6232 (load_auto_scripts_for_objfile): Rewrite to use
6233 auto_load_scripts_for_objfile.
6234 (collect_matching_scripts_data): Change type of language member to
6235 struct extension_language_defn *.
6236 (auto_load_info_scripts): Change type of language arg to
6237 struct extension_language_defn *.
6238 (unsupported_script_warning_print): New function.
6239 (script_not_found_warning_print): Make static.
6240 (_initialize_auto_load): Rewrite construction of scripts-directory
6241 help.
6242 * auto-load.h (struct objfile): Add forward decl.
6243 (struct script_language): Delete.
6244 (struct auto_load_pspace_info): Add forward decl.
6245 (struct extension_language_defn): Add forward decl.
6246 (maybe_add_script): Delete.
6247 (auto_load_objfile_script): Declare.
6248 (script_not_found_warning_print): Delete.
6249 (auto_load_info_scripts): Update prototype.
6250 (auto_load_gdb_scripts_enabled): Declare.
6251 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6252 auto_load_python_scripts_enabled and made public.
6253 (script_language_python): Delete, moved to python.c.
6254 (gdbpy_script_language_defn): Delete.
6255 (info_auto_load_python_scripts): Update to use
6256 extension_language_python.
6257
6258 * breakpoint.c (condition_command): Replace call to
6259 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6260 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6261 with call to breakpoint_ext_lang_cond_says_stop.
6262 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6263 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6264 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6265 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6266 New arg slang.
6267 (local_setattro): Print name of extension language with existing
6268 stop condition.
6269
6270 * valprint.c (val_print, value_print): Update to call
6271 apply_ext_lang_val_pretty_printer.
6272 * cp-valprint.c (cp_print_value): Update call to
6273 apply_ext_lang_val_pretty_printer.
6274 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6275 (gdbpy_apply_val_pretty_printer): Renamed from
6276 apply_val_pretty_printer. New arg extlang.
6277 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6278
6279 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6280 extension language API.
6281 * cli/cli-script.c (execute_control_command): Update to call
6282 eval_ext_lang_from_control_command.
6283
6284 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6285 enum ext_lang_bt_status values. Update call to
6286 apply_ext_lang_frame_filter.
6287 (mi_cmd_stack_list_locals): Ditto.
6288 (mi_cmd_stack_list_args): Ditto.
6289 (mi_cmd_stack_list_variables): Ditto.
6290 * mi/mi-main.c: Delete #include "python/python-internal.h".
6291 Add #include "extension.h".
6292 (mi_cmd_list_features): Replace reference to python internal variable
6293 gdb_python_initialized with call to ext_lang_initialized_p.
6294
6295 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6296 Update to use enum ext_lang_frame_args. Update to call
6297 apply_ext_lang_frame_filter.
6298 * python/py-framefilter.c (extract_sym): Update to use enum
6299 ext_lang_bt_status.
6300 (extract_value, py_print_type, py_print_value): Ditto.
6301 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6302 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6303 (py_print_frame): Ditto.
6304 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6305 New arg extlang. Update to use enum ext_lang_bt_status.
6306
6307 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6308 finish_python_initialization. Replace with call to
6309 finish_ext_lang_initialization.
6310
6311 * typeprint.c (do_free_global_table): Update to call
6312 free_ext_lang_type_printers.
6313 (create_global_typedef_table): Update to call
6314 start_ext_lang_type_printers.
6315 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6316 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6317 (type_print_options): Change type of global_printers from "void *"
6318 to "struct ext_lang_type_printers *".
6319
6320 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6321 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6322 (gdbpy_preserve_values): Renamed from preserve_python_values.
6323 New arg extlang.
6324 (!HAVE_PYTHON, preserve_python_values): Delete.
6325
6326 * utils.c (quit_flag): Delete, moved to extension.c.
6327 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6328 extension.c.
6329
6330 * eval.c: Delete #include "python/python.h".
6331 * main.c: Delete #include "python/python.h".
6332
6333 * defs.h: Update comment.
6334
6af79985
JB
63352014-02-06 Joel Brobecker <brobecker@adacore.com>
6336
6337 GDB 7.7 released.
6338
12c5175d
MK
63392014-02-05 Mark Kettenis <kettenis@gnu.org>
6340
6341 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6342 defined.
6343
8dc5b319
YQ
63442014-02-05 Yao Qi <yao@codesourcery.com>
6345
6346 * remote.c (remote_pass_signals): Remove local 'buf' and use
6347 rs->buf.
6348 (remote_program_signals): Likewise.
6349
de7b2893
YQ
63502014-02-05 Yao Qi <yao@codesourcery.com>
6351
6352 * ctf.c: Include "inferior.h" and "gdbthread.h".
6353 (CTF_PID): A new macro.
6354 (ctf_open): Call inferior_appeared and add_thread_silent.
6355 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6356 (ctf_thread_alive): New function.
6357 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6358
66d032ac
YQ
63592014-02-05 Yao Qi <yao@codesourcery.com>
6360
6361 Revert this patch:
6362
6363 2013-05-24 Yao Qi <yao@codesourcery.com>
6364
6365 * tracepoint.c (TFILE_PID): Remove.
6366 (tfile_open): Don't add thread and inferior.
6367 (tfile_close): Don't set 'inferior_ptid'. Don't call
6368 exit_inferior_silent.
6369 (tfile_thread_alive): Remove.
6370 (init_tfile_ops): Don't set field 'to_thread_alive' of
6371 tfile_ops.
6372
f4ccffad
CE
63732014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6374
6375 * remote.c (remote_start_remote): Call remote_check_symbols even
6376 if only symbol-file (not file) has been given.
6377
591a12a1
UW
63782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6379
6380 * gdbarch.sh (skip_entrypoint): New callback.
6381 * gdbarch.c, gdbarch.h: Regenerate.
6382 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6383 * infrun.c (fill_in_stop_func): Likewise.
6384 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6385 (ppc_elfv2_elf_make_msymbol_special): New function.
6386 (ppc_elfv2_skip_entrypoint): Likewise.
6387 (ppc_linux_init_abi): Install them for ELFv2.
6388
cc0e89c5
UW
63892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6390
6391 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6392 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6393 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6394 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6395 structures returned in GPRs.
6396
52f548e4
UW
63972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6398
6399 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6400 offset to the stack parameter list for the ELFv2 ABI.
6401
d4094b6a
UW
64022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6403
6404 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6405 set_gdbarch_convert_from_func_ptr_addr and
6406 set_gdbarch_elf_make_msymbol_special for ELFv1.
6407 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6408 function descriptors on ELFv1.
6409 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6410 set up r12 at function entry.
6411
cd453cd0
UW
64122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6413
6414 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6415 (struct gdbarch_tdep): New member elf_abi.
6416
6417 * rs6000-tdep.c: Include "elf/ppc64.h".
6418 (rs6000_gdbarch_init): Detect ELF ABI version.
6419
0ff3e01f
UW
64202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6421
6422 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6423 within a register pair holding a DFP 128-bit value on little-endian.
6424 (ppc64_sysv_abi_return_value_base): Likewise.
6425 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6426 (dfp_pseudo_register_write): Likewise.
6427
5b757e5d
UW
64282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6429
6430 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6431 offset on little-endian when passing _Decimal32.
6432 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6433
084ee545
UW
64342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6435
6436 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6437 of the overlapped FP register within the VSX register on little-
6438 endian platforms.
6439 (efpr_pseudo_register_write): Likewise.
6440
d63167af
UW
64412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6442
6443 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6444 offset on little-endian when passing small structures.
6445
e765b44c
UW
64462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6447
6448 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6449 (struct ppc64_sysv_argpos): New data structure.
6450 (ppc64_sysv_abi_push_float): Remove.
6451 (ppc64_sysv_abi_push_val): New function.
6452 (ppc64_sysv_abi_push_integer): Likewise.
6453 (ppc64_sysv_abi_push_freg): Likewise.
6454 (ppc64_sysv_abi_push_vreg): Likewise.
6455 (ppc64_sysv_abi_push_param): Likewise.
6456 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6457 (ppc64_sysv_abi_return_value_base): New function.
6458 (ppc64_sysv_abi_return_value): Refactor to use it.
6459
36c24d95
UW
64602014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
6461
6462 * NEWS: Document new target powerpc64le-*-linux*.
6463
26fd9228
MK
64642014-02-04 Mark Kettenis <kettenis@gnu.org>
6465
6466 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6467 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6468 core dumps.
6469 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6470 register set used in ELF core dumps. Add floating-point register set.
6471
c5bb7362
KB
64722014-02-03 Kevin Buettner <kevinb@redhat.com>
6473
6474 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6475 dwarf2_to_gdb[] table using symbolic constants. Adjust
6476 penultimate entry from number representing the PC register
6477 to symbolic constant representing the MDR register. Add
6478 constant for the PC register to the end of the table.
6479
af09351e
MK
64802014-02-03 Mark Kettenis <kettenis@gnu.org>
6481
6482 * bsd-kvm.c: Include <sys/param.h>
6483
8507e05d
MK
64842014-02-03 Mark Kettenis <kettenis@gnu.org>
6485
6486 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6487
ae56bfb8
JB
64882014-01-31 Joel Brobecker <brobecker@adacore.com>
6489
6490 * ada-lang.h (clear_ada_sym_cache): Delete.
6491
718ee4dc
UW
64922014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
6493
6494 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6495
401e27fd
JM
64962014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6497
6498 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6499 the sigreturn register save area only if the syscall is
6500 sigreturn.
6501
a7c88acd
JB
65022014-01-29 Joel Brobecker <brobecker@adacore.com>
6503
6504 * valops.c (value_slice): Minor reformatting.
6505
fa0079ea
UW
65062014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
6507
6508 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6509
c6044dd1
JB
65102014-01-28 Joel Brobecker <brobecker@adacore.com>
6511
6512 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6513 New static globals.
6514 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6515 (ada_ignore_descriptive_types_p): New static global.
6516 (find_parallel_type_by_descriptive_type): Return immediately
6517 if ada_ignore_descriptive_types_p is set.
6518 (_initialize_ada_language): Register new commands "maintenance
6519 set ada", "maintenance show ada", "maintenance set ada
6520 ignore-descriptive-types" and "maintenance show ada
6521 ignore-descriptive-types".
6522 * NEWS: Add entry for new "maint ada set/show
6523 ignore-descriptive-types" commands.
6524
568e808b
MM
65252014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6526
6527 * record-btrace.c (record_btrace_close): Call btrace_teardown
6528 for all threads.
6529
467d141b
JB
65302014-01-27 Joel Brobecker <brobecker@adacore.com>
6531
6532 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6533 "ui-out.h".
6534
fb151210
JB
65352014-01-27 Joel Brobecker <brobecker@adacore.com>
6536
6537 * ada-typeprint (type_is_full_subrange_of_target_type):
6538 New function.
6539 (print_range): Add parameter bounds_prefered_p. If not set,
6540 try printing range types using the name of their base type.
6541 (print_range_type): Add parameter bounds_prefered_p.
6542 Use it in call to print_range.
6543 (print_array_type, ada_print_type): Update calls to print_range
6544 and print_range_type.
6545
aba02109
JB
65462014-01-27 Joel Brobecker <brobecker@adacore.com>
6547
6548 * ada-typeprint.c (print_array_type, print_choices, print_range)
6549 (print_range_bound, print_dynamic_range_bound, print_range_type):
6550 Remove declaration.
6551
e62e21fd
JB
65522014-01-27 Joel Brobecker <brobecker@adacore.com>
6553
6554 * ada-typeprint.c (print_range): Add missing empty line
6555 after local declaration.
6556
859cf5d1
JB
65572014-01-27 Joel Brobecker <brobecker@adacore.com>
6558
6559 * ada-valprint.c (print_optional_low_bound): Get index_type's
6560 target type for as long as it is a TYPE_CODE_RANGE.
6561
25790f6f
JB
65622014-01-27 Joel Brobecker <brobecker@adacore.com>
6563
6564 * procfs.c (procfs_make_note_section): Remove assertion and
6565 associated comment.
6566
6b6aa828
YQ
65672014-01-24 Yao Qi <yao@codesourcery.com>
6568
6569 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6570 * corelow.c (get_core_siginfo): Likewise.
6571
5d6df423
YQ
65722014-01-24 Yao Qi <yao@codesourcery.com>
6573
6574 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6575 ULONGEST. Don't check 'len' is negative.
6576 (remote_write_bytes): Change type of 'len' to ULONGEST.
6577
83b645b8
TT
65782014-01-23 Tom Tromey <tromey@redhat.com>
6579
6580 PR python/16485:
6581 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6582 Handle exception from frame.block.
6583 (FrameVars.fetch_frame_locals): Likewise.
6584
0740f8d8
TT
65852014-01-23 Tom Tromey <tromey@redhat.com>
6586
6587 PR python/16487:
6588 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6589 on a NULL pointer. Move "goto error" to correct place.
6590
21909fa1
TT
65912014-01-23 Tom Tromey <tromey@redhat.com>
6592
6593 PR python/16491:
6594 * python/py-framefilter.c (apply_frame_filter): Call
6595 ensure_python_env after computing gdbarch.
6596
17fde6d0
YQ
65972014-01-23 Yao Qi <yao@codesourcery.com>
6598
6599 * target.c (raw_memory_xfer_partial): Change argument type
6600 from void * to gdb_byte *.
6601 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6602
87ce2a04
DE
66032014-01-22 Doug Evans <dje@google.com>
6604
6605 New gdbserver option --debug-format=timestamp.
6606 * NEWS: Mention it.
6607
237b092b
AA
66082014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6609
6610 * syscalls/s390x-linux.xml: New file.
6611 * syscalls/s390-linux.xml: New file.
6612 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6613 (XML_SYSCALL_FILENAME_S390X): Likewise.
6614 (op_svc): New enum value for SVC opcode.
6615 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6616 (s390_linux_get_syscall_number): New function.
6617 (s390_gdbarch_init): Register '*get_syscall_number' and the
6618 syscall xml file name.
6619 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6620 "s390-linux.xml" and "s390x-linux.xml".
6621 * NEWS: Announce new feature.
6622
54bff650
BS
66232014-01-22 Baruch Siach <baruch@tkos.co.il>
6624
6625 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6626
14e361d7
PA
66272014-01-22 Pedro Alves <palves@redhat.com>
6628
6629 * xtensa-config.c: Include defs.h.
6630
46bbb3ed
JB
66312014-01-22 Joel Brobecker <brobecker@adacore.com>
6632
6633 * common/common-utils.h: Add "ARI:" comment beside __func__
6634 reference.
6635
3a80edfc
JB
66362014-01-22 Joel Brobecker <brobecker@adacore.com>
6637
6638 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6639 documentation a bit.
6640
4869db5e
RM
66412014-01-21 Roland McGrath <mcgrathr@google.com>
6642
6643 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6644 * configure: Regenerate.
6645 * aclocal.m4: Regenerate.
6646 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6647 New substituted variables.
6648 (install-strip): New target.
6649 (INSTALL_SCRIPT): New substituted variable.
6650 (FLAGS_TO_PASS): Add it.
6651 (install-only): Use $(INSTALL_SCRIPT) rather than
6652 $(INSTALL_PROGRAM) for gcore.
6653
9ea4267d
TT
66542014-01-20 Tom Tromey <tromey@redhat.com>
6655
6656 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6657 together.
6658
1f2bdf09
TT
66592014-01-20 Tom Tromey <tromey@redhat.com>
6660
6661 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6662 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6663 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6664 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6665 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6666 (struct cmd_list_element) <flags>: Remove.
6667 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6668 doc_allocated>: New fields.
6669 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6670 bitfields.
6671 * maint.c (maintenance_do_deprecate): Update.
6672 * top.c (execute_command): Update.
6673
e671835b
BS
66742014-01-20 Baruch Siach <baruch@tkos.co.il>
6675
6676 * xtensa-linux-nat.c: Include asm/ptrace.h.
6677
50367cd2
IB
66782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6679
6680 * Makefile.in (SFILES): Add d-support.c.
6681 (COMMON_OBS): Add d-support.o.
6682 * d-lang.h (d_parse_symbol): Add comment, now defined in
6683 d-support.c.
6684 * d-lang.c (parse_call_convention)
6685 (parse_attributes, parse_function_types)
6686 (parse_function_args, parse_type, parse_identifier)
6687 (call_convention_p, d_parse_symbol): Move functions to ...
6688 * d-support.c: ... New file.
6689
ec9f644a
IB
66902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6691
6692 * d-lang.h (d_parse_symbol): Add declaration.
6693 * d-lang.c (extract_identifiers)
6694 (extract_type_info): Remove functions.
6695 (parse_call_convention, parse_attributes)
6696 (parse_function_types, parse_function_args)
6697 (parse_type, parse_identifier, call_convention_p)
6698 (d_parse_symbol): New functions.
6699 (d_demangle): Use d_parse_symbol to demangle D symbols.
6700
94b1b47e
IB
67012014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6702
6703 * d-lang.h (struct builtin_d_type): New data type.
6704 (builtin_d_type): Add declaration.
6705 * d-lang.c (d_language_arch_info, build_d_types)
6706 (builtin_d_type): New functions.
6707 (enum d_primitive_types): New data type.
6708 (d_language_defn): Change c_language_arch_info to
6709 d_language_arch_info.
6710 (d_type_data): New static variable.
6711 (_initialize_d_language): Initialize d_type_data.
6712
63778547
IB
67132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6714
6715 * d-lang.h (d_main_name): Add declaration.
6716 * d-lang.c (d_main_name): New function.
6717 * symtab.c (find_main_name): Add call to d_main_name.
6718
3271ba66
IB
67192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6720
6721 * d-lang.c (d_language_defn): Change macro_expansion_c to
6722 macro_expansion_no.
6723
d36b3012
IB
67242014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6725
6726 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6727
c90a6fb7
SDJ
67282014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6729
6730 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6731 gdb_exception" declaration.
6732 * remote.c (getpkt_or_notif_sane): Likewise.
6733
749234e5
DE
67342014-01-17 Doug Evans <dje@google.com>
6735
6736 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6737 function, contents of dirnames_to_char_ptr_vec_append moved here.
6738 (delim_string_to_char_ptr_vec): New function.
6739 (dirnames_to_char_ptr_vec_append): Rewrite.
6740 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6741
df049a58
DE
67422014-01-17 Doug Evans <dje@google.com>
6743
6744 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6745 and moved here ...
6746 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6747 #include "common-utils.h".
6748 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6749 * common/vec.h (VEC_ASSERT_PASS): Update.
6750 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6751 (MACH_CHECK_ERROR): Update.
6752
69f97648
SM
67532014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6754
6755 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6756 comments.
6757 * gdbarch.h: Regenerate.
6758
98b1cfdc
TT
67592014-01-16 Tom Tromey <tromey@redhat.com>
6760
6761 * value.c (struct value) <regnum>: Move earlier.
6762
77a19445
TT
67632014-01-16 Tom Tromey <tromey@redhat.com>
6764
6765 * remote.c (extended_remote_create_inferior): Rename from
6766 extended_remote_create_inferior_1. Add "ops" argument. Remove
6767 old implementation.
6768
62261490
PA
67692014-01-16 Pedro Alves <palves@redhat.com>
6770
6771 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6772 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6773 the backchain.
6774
4d65956b
DE
67752014-01-16 Doug Evans <dje@google.com>
6776
6777 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6778
52834460
MM
67792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6780
6781 * btrace.h (btrace_thread_flag): New.
6782 (struct btrace_thread_info) <flags>: New.
6783 * record-btrace.c (record_btrace_resume_thread)
6784 (record_btrace_find_thread_to_move, btrace_step_no_history)
6785 (btrace_step_stopped, record_btrace_start_replaying)
6786 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6787 (record_btrace_find_resume_thread): New.
6788 (record_btrace_resume, record_btrace_wait): Extend.
6789 (record_btrace_can_execute_reverse): New.
6790 (record_btrace_open): Fail in non-stop mode.
6791 (record_btrace_set_replay): Split into this, ...
6792 (record_btrace_stop_replaying): ... this, ...
6793 (record_btrace_clear_histories): ... and this.
6794 (init_record_btrace_ops): Init to_can_execute_reverse.
6795 * NEWS: Announce it.
6796
118e6252
MM
67972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6798
6799 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6800 (forward_target_decr_pc_after_break)
6801 (target_decr_pc_after_break): New.
6802 * target.c (forward_target_decr_pc_after_break)
6803 (target_decr_pc_after_break): New.
6804 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6805 instead of gdbarch_decr_pc_after_break.
6806 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6807 instead of gdbarch_decr_pc_after_break.
6808 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6809 instead of gdbarch_decr_pc_after_break.
6810 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6811 instead of gdbarch_decr_pc_after_break.
6812 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6813 instead of gdbarch_decr_pc_after_break.
6814 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6815 instead of gdbarch_decr_pc_after_break.
6816
6e07b1d2
MM
68172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6818
6819 * btrace.c: Include regcache.h.
6820 (btrace_add_pc): New.
6821 (btrace_enable): Call btrace_add_pc.
6822 (btrace_is_empty): New.
6823 * btrace.h (btrace_is_empty): New.
6824 * record-btrace.c (require_btrace, record_btrace_info): Call
6825 btrace_is_empty.
6826
969c39fb
MM
68272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6828
6829 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6830 Support delta reads.
6831 (linux_disable_btrace): Change return type.
6832 * common/linux-btrace.h (linux_read_btrace): Change parameters
6833 and return type to allow error reporting. Update users.
6834 (linux_disable_btrace): Change return type. Update users.
6835 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6836 New.
6837 (btrace_error): New.
6838 (btrace_block) <begin>: Comment on BEGIN == 0.
6839 * btrace.c (btrace_compute_ftrace): Start from the end of
6840 the current trace.
6841 (btrace_stitch_trace, btrace_clear_history): New.
6842 (btrace_fetch): Read delta trace, return if replaying.
6843 (btrace_clear): Move clear history code to btrace_clear_history.
6844 (parse_xml_btrace): Throw an error if parsing failed.
6845 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6846 and return type to allow error reporting.
6847 (target_read_btrace): Change parameters and return type to allow
6848 error reporting.
6849 * target.c (target_read_btrace): Update.
6850 * remote.c (remote_read_btrace): Support delta reads. Pass
6851 errors on.
6852 * NEWS: Announce it.
6853
0b722aec
MM
68542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6855
6856 * record.h (record_btrace_frame_unwind)
6857 (record_btrace_tailcall_frame_unwind): New declarations.
6858 * dwarf2-frame: Include record.h
6859 (dwarf2_frame_cfa): Throw an error for btrace frames.
6860 * record-btrace.c: Include hashtab.h.
6861 (btrace_get_bfun_name): New.
6862 (btrace_call_history): Call btrace_get_bfun_name.
6863 (struct btrace_frame_cache): New.
6864 (bfcache): New.
6865 (bfcache_hash, bfcache_eq, bfcache_new): New.
6866 (btrace_get_frame_function): New.
6867 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6868 (record_btrace_frame_this_id): Compute own id.
6869 (record_btrace_frame_prev_register): Provide PC, throw_error
6870 for all other registers.
6871 (record_btrace_frame_sniffer): Detect btrace frames.
6872 (record_btrace_tailcall_frame_sniffer): New.
6873 (record_btrace_frame_dealloc_cache): New.
6874 (record_btrace_frame_unwind): Add new functions.
6875 (record_btrace_tailcall_frame_unwind): New.
6876 (_initialize_record_btrace): Allocate cache.
6877 * btrace.c (btrace_clear): Call reinit_frame_cache.
6878 * NEWS: Announce it.
6879
066ce621
MM
68802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6881
6882 * record-btrace.c (record_btrace_set_replay)
6883 (record_btrace_goto_begin, record_btrace_goto_end)
6884 (record_btrace_goto): New.
6885 (init_record_btrace_ops): Initialize them.
6886 * NEWS: Announce it.
6887
e2887aa3
MM
68882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6889
6890 * record-btrace.c (record_btrace_find_new_threads)
6891 (record_btrace_thread_alive): New.
6892 (init_record_btrace_ops): Initialize to_find_new_threads and
6893 to_thread_alive.
6894
b2f4cfde
MM
68952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6896
6897 * record-btrace.c (record_btrace_resume): New.
6898 (record_btrace_wait): New.
6899 (init_record_btrace_ops): Initialize to_wait and to_resume.
6900
633785ff
MM
69012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6902
6903 * record-btrace.c (record_btrace_xfer_partial)
6904 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6905 (record_btrace_allow_memory_access): New.
6906 (init_record_btrace_ops): Initialize new methods.
6907 * target.c (raw_memory_xfer_partial): Bail out if target reports
6908 that this memory is not available.
6909
3db08215
MM
69102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6911
6912 * target.h (target_ops) <to_insert_breakpoint>
6913 <to_remove_breakpoint>: Add target_ops parameter.
6914 (forward_target_insert_breakpoint): New.
6915 (forward_target_remove_breakpoint): New.
6916 (memory_remove_breakpoint, memory_insert_breakpoint):
6917 Add target_ops parameter.
6918 * target.c (target_insert_breakpoint): Split into this and ...
6919 (forward_target_insert_breakpoint): ... this.
6920 (target_remove_breakpoint): Split into this and ...
6921 (forward_target_remove_breakpoint): ... this.
6922 (debug_to_insert_breakpoint): Add target_ops parameter.
6923 Call forward_target_insert_breakpoint.
6924 (debug_to_remove_breakpoint): Add target_ops parameter.
6925 Call forward_target_remove_breakpoint.
6926 (update_current_target): Do not inherit or default to_insert_breakpoint
6927 and to_remove_breakpoint.
6928 * corelow.c (ignore): Add target_ops parameter.
6929 * exec.c (ignore): Add target_ops parameter.
6930 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6931 Add target_ops parameter.
6932 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6933 Add target_ops parameter.
6934 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6935 Add target_ops parameter.
6936 * record-full.c (record_full_beneath_to_insert_breakpoint)
6937 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6938 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6939 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6940 (record_full_core_remove_breakpoint): Add target_ops parameter.
6941 Update users.
6942 (record_full_beneath_to_insert_breakpoint_ops)
6943 (record_full_beneath_to_remove_breakpoint_ops)
6944 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6945 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6946 tmp_to_remove_breakpoint_ops,
6947 record_full_beneath_to_insert_breakpoint_ops, and
6948 record_full_beneath_to_remove_breakpoint_ops.
6949 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6950 (m32r_remove_breakpoint): Add target_ops parameter.
6951 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6952 Add target_ops parameter.
6953 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6954 Add target_ops parameter.
6955
cecac1ab
MM
69562014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6957 Markus Metzger <markus.t.metzger@intel.com>
6958
6959 * record-btrace.c: Include frame-unwind.h.
6960 (record_btrace_frame_unwind_stop_reason)
6961 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6962 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6963 New.
6964 (init_record_btrace_ops): Install it.
6965
824344ca
MM
69662014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6967
6968 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6969 get_prev_frame_1.
6970
32261e52
MM
69712014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6972
6973 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6974 earlier.
6975
ea001bdc
MM
69762014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6977
6978 * frame-unwind.c: Include target.h.
6979 (frame_unwind_try_unwinder): New function with code from ...
6980 (frame_unwind_find_by_frame): ... here. New variable
6981 unwinder_from_target, call also target_get_unwinder)
6982 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6983 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6984 * target.h (struct target_ops): New fields to_get_unwinder and
6985 to_get_tailcall_unwinder.
6986 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6987
1f3ef581
MM
69882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6989
6990 * record-btrace.c (record_btrace_fetch_registers)
6991 (record_btrace_store_registers)
6992 (record_btrace_to_prepare_to_store): New.
6993 (init_record_btrace_ops): Add the above.
6994
f32dbf8c
MM
69952014-01-16 Tom Tromey <tromey@redhat.com>
6996
6997 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6998 * target.h (struct target_ops) <to_prepare_to_store>: Add
6999 argument.
7000 (target_prepare_to_store): Add argument.
7001 * target.c (debug_to_prepare_to_store): Add argument.
7002 (update_current_target): Update.
7003 * remote.c (remote_prepare_to_store): Add 'self' argument.
7004 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7005 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7006 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7007 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7008 argument.
7009 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7010 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7011 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7012 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7013 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7014
07bbe694
MM
70152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7016
7017 * btrace.h (replay) <replay>: New.
7018 (btrace_is_replaying): New.
7019 * btrace.c (btrace_clear): Free replay iterator.
7020 (btrace_is_replaying): New.
7021 * record-btrace.c (record_btrace_is_replaying): New.
7022 (record_btrace_info): Print insn number if replaying.
7023 (record_btrace_insn_history): Start at replay position.
7024 (record_btrace_call_history): Start at replay position.
7025 (init_record_btrace_ops): Init to_record_is_replaying.
7026
0688d04e
MM
70272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7028
7029 * record-btrace.c (record_btrace_insn_history_range): Include
7030 end.
7031 (record_btrace_insn_history_from): Adjust range.
7032 (record_btrace_call_history_range): Include
7033 end.
7034 (record_btrace_call_history_from): Adjust range.
7035 * NEWS: Announce changes.
7036
8710b709
MM
70372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7038
7039 * record.h (enum record_print_flag)
7040 <record_print_indent_calls>: New.
7041 * record.c (get_call_history_modifiers): Recognize /c modifier.
7042 (_initialize_record): Document /c modifier.
7043 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7044 Reorder fields. Optionally indent the function name. Update
7045 all users.
7046 * NEWS: Announce changes.
7047
d0fa7535
MM
70482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7049
7050 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7051
5de9129b
MM
70522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7053
7054 * btrace.c (ftrace_new_function): Start counting at one.
7055 * record-btrace.c (record_btrace_info): Adjust number of calls
7056 and insns.
7057 * NEWS: Announce it.
7058
7acbe133
MM
70592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7060
7061 * record-btrace.c (btrace_call_history_insn_range): Print
7062 insn range as [begin, end].
7063
23a7fe75
MM
70642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7065
7066 * btrace.h (struct btrace_func_link): New.
7067 (enum btrace_function_flag): New.
7068 (struct btrace_inst): Rename to ...
7069 (struct btrace_insn): ...this. Update all users.
7070 (struct btrace_func) <ibegin, iend>: Remove.
7071 (struct btrace_func_link): New.
7072 (struct btrace_func): Rename to ...
7073 (struct btrace_function): ...this. Update all users.
7074 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7075 (number, level, flags>: New.
7076 (struct btrace_insn_iterator): Rename to ...
7077 (struct btrace_insn_history): ...this.
7078 Update all users.
7079 (struct btrace_insn_iterator, btrace_call_iterator): New.
7080 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7081 (struct btrace_target_info) <begin, end, level>
7082 <insn_history, call_history>: New.
7083 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7084 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7085 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7086 (btrace_call_number, btrace_call_begin, btrace_call_end)
7087 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7088 (btrace_find_function_by_number, btrace_set_insn_history)
7089 (btrace_set_call_history): New.
7090 * btrace.c (btrace_init_insn_iterator)
7091 (btrace_init_func_iterator, compute_itrace): Remove.
7092 (ftrace_print_function_name, ftrace_print_filename)
7093 (ftrace_skip_file): Change
7094 parameter to const.
7095 (ftrace_init_func): Remove.
7096 (ftrace_debug): Use new btrace_function fields.
7097 (ftrace_function_switched): Also consider gaining and
7098 losing symbol information).
7099 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7100 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7101 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7102 New.
7103 (ftrace_new_function): Move. Remove debug print.
7104 (ftrace_update_lines, ftrace_update_insns): New.
7105 (ftrace_update_function): Check for call, ret, and jump.
7106 (compute_ftrace): Renamed to ...
7107 (btrace_compute_ftrace): ...this. Rewritten to compute call
7108 stack.
7109 (btrace_fetch, btrace_clear): Updated.
7110 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7111 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7112 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7113 (btrace_call_number, btrace_call_begin, btrace_call_end)
7114 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7115 (btrace_find_function_by_number, btrace_set_insn_history)
7116 (btrace_set_call_history): New.
7117 * record-btrace.c (require_btrace): Use new btrace thread
7118 info fields.
7119 (record_btrace_info, btrace_insn_history)
7120 (record_btrace_insn_history, record_btrace_insn_history_range):
7121 Use new btrace thread info fields and new iterator.
7122 (btrace_func_history_src_line): Rename to ...
7123 (btrace_call_history_src_line): ...this. Use new btrace
7124 thread info fields.
7125 (btrace_func_history): Rename to ...
7126 (btrace_call_history): ...this. Use new btrace thread info
7127 fields and new iterator.
7128 (record_btrace_call_history, record_btrace_call_history_range):
7129 Use new btrace thread info fields and new iterator.
7130
8372a7cb
MM
71312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7132
7133 * frame.h (frame_id_build_unavailable_stack_special): New.
7134 * frame.c (frame_id_build_unavailable_stack_special): New.
7135
c2170eef
MM
71362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7137
7138 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7139 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7140 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7141 to gdbarch.
7142 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7143 (i386_insn_is_jump, i386_jmp_p): New.
7144 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7145 insn_is_jump to gdbarch.
7146 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7147 * gdbarch.h: Regenerated.
7148 * gdbarch.c: Regenerated.
7149 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7150 (default_insn_is_jump): New.
7151 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7152 (default_insn_is_jump): New.
7153
864089d2
MM
71542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7155
7156 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7157 Change to ...
7158 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7159 (btrace_read_type) <btrace_read_new>: Change to ...
7160 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7161
ed9edfb5
MM
71622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7163
7164 * common/linux-btrace.c (linux_read_btrace): Free trace from
7165 previous iteration.
7166
fbcbc3fd
DE
71672014-01-15 Doug Evans <dje@google.com>
7168
7169 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7170 uint32_t.
7171
3d548a53
TT
71722014-01-15 Tom Tromey <tromey@redhat.com>
7173
7174 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7175 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7176 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7177 (set_objfile_main_name): New function.
7178 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7179 language_of_main>: New fields.
7180 (set_objfile_main_name): Declare.
7181 * symtab.c (find_main_name): Loop over objfiles to find the main
7182 name and language.
7183 (set_main_name): Now static.
7184 (get_main_info): Add comment.
7185 * symtab.h (set_main_name): Don't declare.
7186
32ac0d11
TT
71872014-01-15 Tom Tromey <tromey@redhat.com>
7188
7189 * symtab.c (main_progspace_key): New global.
7190 (struct main_info): New.
7191 (name_of_main, language_of_main): Remove.
7192 (get_main_info, main_info_cleanup): New function.
7193 (set_main_name, main_name, main_language): Use get_main_info.
7194 (_initialize_symtab): Initialize main_progspace_key.
7195
9e6c82ad
TT
71962014-01-15 Tom Tromey <tromey@redhat.com>
7197
7198 * dbxread.c (process_one_symbol): Update.
7199 * dwarf2read.c (read_partial_die): Update.
7200 * symfile.c (set_initial_language): Call main_language.
7201 * symtab.c (language_of_main): Now static.
7202 (set_main_name): Add 'lang' parameter.
7203 (find_main_name): Update.
7204 (main_language): New function.
7205 (symtab_observer_executable_changed): Update.
7206 * symtab.h (set_main_name): Update.
7207 (language_of_main): Remove.
7208 (main_language): Declare.
7209
6ef55de7
TT
72102014-01-15 Tom Tromey <tromey@redhat.com>
7211
7212 * symfile.c (init_entry_point_info): Use new "initialized" field.
7213 Update.
7214 * objfiles.h (struct entry_point) <initialized>: New field.
7215 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7216 (struct objfile) <ei>: ...here. Remove.
7217 * objfiles.c (entry_point_address_query): Update.
7218
53eddfa6
TT
72192014-01-15 Tom Tromey <tromey@redhat.com>
7220
7221 * objfiles.c (entry_point_address_query): Relocate entry point
7222 address.
7223 (objfile_relocate1): Do not relocate entry point address.
7224 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7225 <the_bfd_section_index>: New field.
7226 * symfile.c (init_entry_point_info): Find the entry point's
7227 section.
7228
d56e56aa
TT
72292014-01-15 Tom Tromey <tromey@redhat.com>
7230
7231 * solib-frv.c (enable_break): Use entry_point_address_query.
7232
33a97bbe
OJ
72332014-01-15 Omair Javaid <omair.javaid@linaro.org>
7234
7235 * NEWS: Add note on improved process record-replay on
7236 arm*-linux* targets.
7237
c6ec2b30
OJ
72382014-01-15 Omair Javaid <omair.javaid@linaro.org>
7239
7240 * arm-tdep.c (enum arm_record_result): New enum.
7241 (arm_record_unsupported_insn): New function.
7242 (arm_record_coproc_data_proc): Removed.
7243 (thumb2_record_ld_st_multiple): New function.
7244 (thumb2_record_ld_st_dual_ex_tbb): New function.
7245 (thumb2_record_data_proc_sreg_mimm): New function.
7246 (thumb2_record_ps_dest_generic): New function.
7247 (thumb2_record_branch_misc_cntrl): New function.
7248 (thumb2_record_str_single_data): New function.
7249 (thumb2_record_ld_mem_hints): New function.
7250 (thumb2_record_ld_word): New function.
7251 (thumb2_record_lmul_lmla_div): New function.
7252 (thumb2_record_decode_insn_handler): New function.
7253 (decode_insn): Add thumb32 instruction handlers.
7254
97dfe206
OJ
72552014-01-15 Omair Javaid <omair.javaid@linaro.org>
7256
7257 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7258 (struct arm_linux_record_tdep): Declare.
7259 (arm_canonicalize_syscall): New function.
7260 (arm_all_but_pc_registers_record): New function.
7261 (arm_linux_syscall_record): New function.
7262 (arm_linux_init_abi): Add syscall recording constructs.
7263 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7264 decoding. (arm_record_coproc_data_proc): Update arm syscall
7265 decoding.
7266 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7267 <arm_syscall_record>: New field.
7268 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7269 gdb_target_obs.
7270
9904a494
OJ
72712014-01-15 Omair Javaid <omair.javaid@linaro.org>
7272
7273 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7274 register for push instruction recording.
7275
f969241e
OJ
72762014-01-15 Omair Javaid <omair.javaid@linaro.org>
7277
7278 * arm-tdep.c (thumb_record_misc): Update to correct logical
7279 error while recording ldm, ldmia and pop instructions.
7280
bfbbec00
OJ
72812014-01-15 Omair Javaid <omair.javaid@linaro.org>
7282
7283 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7284
e40adcc9
PA
72852014-01-15 Pedro Alves <palves@redhat.com>
7286
7287 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7288 (go32_resume, go32_fetch_registers, store_register)
7289 (go32_store_registers, go32_prepare_to_store)
7290 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7291 (go32_create_inferior, go32_can_run, go32_terminal_init)
7292 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7293 declarations.
7294
b0a16e66
TT
72952014-01-15 Tom Tromey <tromey@redhat.com>
7296
7297 * target.h (async_callback_ftype): New typedef.
7298 (struct target_ops) <to_async>: Use it.
7299
bf7105a4
JB
73002014-01-15 Joel Brobecker <brobecker@adacore.com>
7301
7302 * python/py-value.c (get_field_type): Remove unnecessary curly
7303 braces for single-statement if block.
7304
a8f35c2e
JB
73052014-01-15 Joel Brobecker <brobecker@adacore.com>
7306
7307 * python/py-type.c (convert_field): Add missing empty line
7308 after declarations.
7309
bb4142cf
DE
73102014-01-14 Doug Evans <dje@google.com>
7311
7312 * symfile.h (expand_symtabs_matching): Renamed from
7313 expand_partial_symbol_names. Update prototype.
7314 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7315 * symfile.c (expand_symtabs_matching): Renamed from
7316 expand_partial_symbol_names. New args file_matcher, kind.
7317 Rename arg fun to symbol_matcher.
7318 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7319 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7320 ada_expand_partial_symbol_name.
7321 (ada_make_symbol_completion_list): Update to call
7322 expand_symtabs_matching.
7323 (ada_add_global_exceptions): Call expand_symtabs_matching.
7324 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7325 call map_symbol_filenames.
7326 * symtab.c (sources_info): Update to call map_symbol_filenames.
7327 (search_symbols): Call expand_symtabs_matching.
7328 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7329 (default_make_symbol_completion_list_break_on): Update to call
7330 expand_symtabs_matching.
7331 (make_source_files_completion_list): Update to call
7332 map_symbol_filenames.
7333
206f2a57
DE
73342014-01-14 Doug Evans <dje@google.com>
7335
7336 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7337 (expand_symtabs_symbol_matcher_ftype): New typedef.
7338 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7339 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7340 * symfile.c (expand_partial_symbol_names): Update to use
7341 expand_symtabs_symbol_matcher_ftype.
7342 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7343 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7344 Arg name_matcher renamed to symbol_matcher.
7345 * psymtab.c (recursively_search_psymtabs): Update to use
7346 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7347 sym_matcher.
7348 (expand_symtabs_matching_via_partial): Update to use
7349 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7350 Arg name_matcher renamed to symbol_matcher.
7351
540c2971
DE
73522014-01-14 Doug Evans <dje@google.com>
7353
7354 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7355 (map_partial_symbol_filenames): Ditto.
7356 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7357 (map_partial_symbol_filenames): Ditto.
7358 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7359 (map_partial_symbol_filenames): Ditto.
7360 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7361 (map_partial_symbol_filenames): Ditto.
7362 * symtab.c: Delete #include "psymtab.h".
7363
8213266a
PA
73642014-01-14 Pedro Alves <palves@redhat.com>
7365 Tom Tromey <tromey@redhat.com>
7366
7367 * infrun.c (use_displaced_stepping): Use find_record_target
7368 instead of RECORD_IS_USED.
7369 (adjust_pc_after_break): Use record_full_is_used instead of
7370 RECORD_IS_USED.
7371 * record-btrace.c (record_btrace_open): Call record_preopen
7372 instead of checking RECORD_IS_USED.
7373 * record-full.c (record_full_shortname)
7374 (record_full_core_shortname): New globals.
7375 (record_full_is_used): New function.
7376 (find_full_open): Call record_preopen instead of checking
7377 RECORD_IS_USED.
7378 (init_record_full_ops): Set the target's shortname to
7379 record_full_shortname.
7380 (init_record_full_core_ops): Set the target's shortname to
7381 record_full_core_shortname.
7382 * record-full.h (record_full_is_used): Declare.
7383 * record.c (find_record_target): Make extern.
7384 (record_preopen): New function.
7385 * record.h (RECORD_IS_USED): Delete macro.
7386 (find_record_target, record_preopen): Declare functions.
7387
7ec1862d
YQ
73882014-01-14 Yao Qi <yao@codesourcery.com>
7389
7390 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7391 'len''s type to ULONGEST.
7392 (core_xfer_shared_libraries_aix): Likewise.
7393 * gdbarch.c, gdbarch.h: Regenerated.
7394 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7395 Change type of 'len' to ULONGEST.
7396 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7397 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7398
dea80a27
YQ
73992014-01-14 Yao Qi <yao@codesourcery.com>
7400
7401 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7402 type of 'len' to ULONGEST.
7403 (linux_xfer_osdata_processgroups): Likewise.
7404 (linux_xfer_osdata_threads): Likewise.
7405 (linux_xfer_osdata_fds): Likewise.
7406 (linux_xfer_osdata_isockets): Likewise.
7407 (linux_xfer_osdata_shm): Likewise.
7408 (linux_xfer_osdata_sem): Likewise.
7409 (linux_xfer_osdata_msg): Likewise.
7410 (linux_common_xfer_osdata): Likewise.
7411 (struct osdata_type) <getter>: Likewise.
7412 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7413 the declaration.
7414
b55e14c7
YQ
74152014-01-14 Yao Qi <yao@codesourcery.com>
7416
7417 * target.h (target_xfer_partial_ftype): Update.
7418 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7419 ULONGEST.
7420 * aix-thread.c (aix_thread_xfer_partial): Change type of
7421 argument 'len' to ULONGEST.
7422 * auxv.c (procfs_xfer_auxv): Likewise.
7423 (ld_so_xfer_auxv): Likewise.
7424 (memory_xfer_auxv): Likewise.
7425 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7426 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7427 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7428 * corelow.c (core_xfer_partial): Likewise.
7429 * ctf.c (ctf_xfer_partial): Likewise.
7430 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7431 '%u'.
7432 (darwin_read_dyld_info): Likewise.
7433 (darwin_xfer_partial): Likewise.
7434 * exec.c (section_table_xfer_memory_partial): Likewise.
7435 (exec_xfer_partial): Likewise.
7436 * exec.h (section_table_xfer_memory_partial): Update
7437 declaration.
7438 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7439 instead of plongest.
7440 (gnu_xfer_partial): Likewise.
7441 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7442 (ia64_hpux_xfer_solib_got): Likewise.
7443 (ia64_hpux_xfer_partial): Likewise.
7444 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7445 * inf-ptrace.c (inf_ptrace_xfer_partial):
7446 * inf-ttrace.c (inf_ttrace_xfer_partial):
7447 * linux-nat.c (linux_xfer_siginfo): Likewise.
7448 (linux_nat_xfer_partial): Likewise.
7449 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7450 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7451 * monitor.c (monitor_xfer_memory): Likewise.
7452 (monitor_xfer_partial): Likewise.
7453 * procfs.c (procfs_xfer_partial): Likewise.
7454 * record-full.c (record_full_xfer_partial): Likewise.
7455 (record_full_core_xfer_partial): Likewise.
7456 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7457 instead of plongest.
7458 (gdbsim_xfer_partial): Likewise.
7459 * remote.c (remote_xfer_partial): Likewise.
7460 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7461 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7462 declaration.
7463 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7464 (rs6000_xfer_shared_libraries): Likewise.
7465 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7466 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7467 (sparc_xfer_partial): Likewise.
7468 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7469 (spu_xfer_partial): Likewise.
7470 * spu-multiarch.c (spu_xfer_partial): Likewise.
7471 * target.c (target_read_live_memory): Likewise.
7472 (memory_xfer_live_readonly_partial): Likewise.
7473 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7474 (target_xfer_partial, default_xfer_partial): Likewise.
7475 (current_xfer_partial): Likewise.
7476 * tracepoint.c (tfile_xfer_partial): Likewise.
7477 * windows-nat.c (windows_xfer_memory): Likewise. Call
7478 pulongest instead of plongest.
7479 (windows_xfer_partial): Likewise.
7480 (windows_xfer_shared_libraries): Likewise.
7481
05804640
YQ
74822014-01-14 Yao Qi <yao@codesourcery.com>
7483
7484 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7485 target_xfer_partial_ftype.
7486
b5b08fb4
SC
74872014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7488
7489 PR python/15464
7490 PR python/16113
7491 * valops.c (value_struct_elt_bitpos): New function
7492 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7493 object to 'None' if the field name is an empty string ("").
7494 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7495 attribute to look for a field when 'name' is 'None'.
7496 (get_field_type): New function
7497
13aaf454
DE
74982014-01-13 Doug Evans <dje@google.com>
7499
7500 PR symtab/16426
7501 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7502 (try_open_dwop_file): Ditto.
7503 * gdb_bfd.c: #include "vec.h".
7504 (bfdp): New typedef.
7505 (struct gdb_bfd_data): New member included_bfds.
7506 (gdb_bfd_unref): Unref all included bfds.
7507 (gdb_bfd_record_inclusion): New function.
7508 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7509
c2cec97c
TT
75102014-01-13 Tom Tromey <tromey@redhat.com>
7511
7512 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7513
78e5999d
TT
75142014-01-13 Tom Tromey <tromey@redhat.com>
7515
7516 * defs.h (use_windows): Remove.
7517 * gdb.c (main): Update.
7518 * main.c (captured_main, gdb_main): Update.
7519 * main.h (struct captured_main_args) <use_windows>: Remove.
7520 * top.c (use_windows): Remove.
7521
f2052bbe
TT
75222014-01-13 Tom Tromey <tromey@redhat.com>
7523
7524 * defs.h (deprecated_flush_hook): Remove.
7525
fde4f8ed
JK
75262014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7527
7528 PR threads/16216
7529 * linux-thread-db.c (try_thread_db_load): Add parameter
7530 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7531 (try_thread_db_load_from_pdir_1): Move it there from here.
7532 (try_thread_db_load_from_sdir): Update caller.
7533 (try_thread_db_load_from_dir): Move it there from here.
7534
bdf61915
PP
75352014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7536
7537 * regformats/regdat.sh: Always rewrite the register file.
7538
f71e1a8d
PA
75392014-01-13 Pedro Alves <palves@redhat.com>
7540
7541 * Makefile.in (CHECK_HEADERS): New variable.
7542 (check-headers:): New rule.
7543
42c85435
TT
75442014-01-13 Tom Tromey <tromey@redhat.com>
7545
7546 * cli/cli-setshow.c (do_set_command): Update.
7547 * defs.h (deprecated_set_hook): Remove.
7548 * top.c (deprecated_set_hook): Remove.
7549
f8de5129
PA
75502014-01-13 Pedro Alves <palves@redhat.com>
7551
7552 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7553 the tracepoint if the PC is a pseudo-register.
7554
fc270c35
TT
75552014-01-13 Tom Tromey <tromey@redhat.com>
7556
7557 * defs.h (XCALLOC): Remove.
7558 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7559 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7560 * dwarf2loc.c (allocate_piece_closure): Likewise.
7561 * elfread.c (elf_symfile_segments): Likewise.
7562 (elf_symfile_segments): Likewise.
7563 * gdbtypes.c (copy_type_recursive): Likewise.
7564 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7565 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7566 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7567 XCALLOC.
7568 * mt-tdep.c (mt_gdbarch_init): Likewise.
7569 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7570 XCALLOC.
7571 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7572 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7573 * registry.c (registry_alloc_data): Likewise.
7574 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7575 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7576 * serial.c (serial_fdopen_ops): Likewise.
7577 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7578 XCALLOC.
7579 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7580 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7581 not XCALLOC.
7582
70ba0933
TT
75832014-01-13 Tom Tromey <tromey@redhat.com>
7584
7585 * defs.h (XMALLOC): Remove.
7586 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7587 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7588 * cli-out.c (struct ui_out *): Likewise.
7589 * cli/cli-dump.c (add_dump_command): Likewise.
7590 (add_dump_command): Likewise.
7591 * complaints.c (get_complaints): Likewise.
7592 (find_complaint): Likewise.
7593 * dwarf2-frame.c (execute_cfa_program): Likewise.
7594 * dwarf2read.c (abbrev_table_read_table): Likewise.
7595 * gdbarch.sh: Likewise.
7596 * gdbarch.c: Rebuild.
7597 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7598 * interps.c (interp_new): Likewise.
7599 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7600 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7601 * mi/mi-console.c (mi_console_file_new): Likewise.
7602 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7603 * mi/mi-out.c (mi_out_new): Likewise.
7604 * mi/mi-parse.c (mi_parse): Likewise.
7605 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7606 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7607 * observer.c (xalloc_observer_list_node): Likewise.
7608 * regcache.c (regcache_xmalloc_1): Likewise.
7609 * reggroups.c (reggroup_new): Likewise.
7610 (_initialize_reggroup): Likewise.
7611 * registry.c (register_data_with_cleanup): Likewise.
7612 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7613 * ser-base.c (serial_ttystate): Likewise.
7614 * ser-mingw.c (make_pipe_state): Likewise.
7615 * ser-pipe.c (pipe_open): Likewise.
7616 * serial.c (serial_open): Likewise.
7617 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7618 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7619 (tui_alloc_win_info): Likewise.
7620 (tui_add_content_elements): Likewise.
7621 * tui/tui-file.c (tui_file_new): Likewise.
7622 * tui/tui-out.c (tui_out_new): Likewise.
7623 * ui-file.c (mem_file_new): Likewise.
7624 * ui-out.c (push_level): Likewise.
7625 (make_cleanup_ui_out_end): Likewise.
7626 (append_header_to_list): Likewise.
7627 (ui_out_new): Likewise.
7628 * user-regs.c (user_reg_add_builtin): Likewise.
7629
41bf6aca
TT
76302014-01-13 Tom Tromey <tromey@redhat.com>
7631
7632 * defs.h (XZALLOC): Remove.
7633 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7634 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7635 (get_ada_tasks_inferior_data): Likewise.
7636 * auto-load.c (get_auto_load_pspace_data): Likewise.
7637 * auxv.c (get_auxv_inferior_data): Likewise.
7638 * bfd-target.c (target_bfd_reopen): Likewise.
7639 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7640 (deprecated_insert_raw_breakpoint): Likewise.
7641 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7642 * corelow.c (core_open): Likewise.
7643 * darwin-nat.c (darwin_check_new_threads): Likewise.
7644 (darwin_attach_pid): Likewise.
7645 * dummy-frame.c (dummy_frame_push): Likewise.
7646 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7647 * dwarf2loc.c (allocate_piece_closure): Likewise.
7648 * elfread.c (elf_symfile_segments): Likewise.
7649 * eval.c (ptrmath_type_p): Likewise.
7650 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7651 * gdbtypes.c (alloc_type_arch): Likewise.
7652 (alloc_type_instance): Likewise.
7653 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7654 * inf-child.c (inf_child_can_use_agent): Likewise.
7655 * inflow.c (get_inflow_inferior_data): Likewise.
7656 * infrun.c (save_infcall_suspend_state): Likewise.
7657 * jit.c (jit_reader_load): Likewise.
7658 (get_jit_objfile_data): Likewise.
7659 (get_jit_program_space_data): Likewise.
7660 (jit_object_open_impl): Likewise.
7661 (jit_symtab_open_impl): Likewise.
7662 (jit_block_open_impl): Likewise.
7663 (jit_frame_sniffer): Likewise.
7664 * linux-fork.c (add_fork): Likewise.
7665 * maint.c (make_command_stats_cleanup): Likewise.
7666 * objfiles.c (get_objfile_pspace_data): Likewise.
7667 * opencl-lang.c (struct lval_closure): Likewise.
7668 * osdata.c (osdata_start_osdata): Likewise.
7669 * progspace.c (new_address_space): Likewise.
7670 (add_program_space): Likewise.
7671 * remote-sim.c (get_sim_inferior_data): Likewise.
7672 * sh-tdep.c (sh_gdbarch_init): Likewise.
7673 * skip.c (Ignore): Likewise.
7674 (skip_delete_command): Likewise.
7675 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7676 (library_list_start_library): Likewise.
7677 (solib_aix_current_sos): Likewise.
7678 * solib-darwin.c (get_darwin_info): Likewise.
7679 (darwin_current_sos): Likewise.
7680 * solib-dsbt.c (get_dsbt_info): Likewise.
7681 * solib-ia64-hpux.c (new_so_list): Likewise.
7682 (ia64_hpux_get_solib_linkage_addr): Likewise.
7683 * solib-spu.c (append_ocl_sos): Likewise.
7684 (spu_current_sos): Likewise.
7685 * solib-svr4.c (get_svr4_info): Likewise.
7686 (svr4_keep_data_in_core): Likewise.
7687 (library_list_start_library): Likewise.
7688 (svr4_default_sos): Likewise.
7689 (svr4_read_so_list): Likewise.
7690 * solib-target.c (library_list_start_library): Likewise.
7691 (solib_target_current_sos): Likewise.
7692 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7693 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7694 * symfile.c (default_symfile_segments): Likewise.
7695 * target-descriptions.c (tdesc_data_init): Likewise.
7696 (tdesc_create_reg): Likewise.
7697 (struct tdesc_type *): Likewise.
7698 (tdesc_create_vector): Likewise.
7699 (tdesc_set_struct_size): Likewise.
7700 (struct tdesc_type *): Likewise.
7701 (tdesc_free_feature): Likewise.
7702 (tdesc_create_feature): Likewise.
7703 * windows-nat.c (windows_add_thread): Likewise.
7704 (windows_make_so): Likewise.
7705 * xml-support.c (gdb_xml_body_text): Likewise.
7706 (gdb_xml_create_parser_and_cleanup): Likewise.
7707 (xml_process_xincludes): Likewise.
7708 * xml-syscall.c (allocate_syscalls_info): Likewise.
7709 (syscall_create_syscall_desc): Likewise.
7710
5acfdbae
SDJ
77112014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7712
7713 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7714 function, with code from i386_stap_parse_special_token.
7715 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7716 (i386_stap_parse_special_token): Move code to the two functions
7717 above; simplify it.
7718
0000e5cc
PA
77192014-01-09 Pedro Alves <palves@redhat.com>
7720 Hui Zhu <hui@codesourcery.com>
7721
7722 PR gdb/16101
7723 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7724 bp_err_string. Don't mark the location shlib_disabled if the
7725 error thrown wasn't a generic or memory error. Catch errors
7726 thrown while inserting breakpoints in overlayed code. Output
7727 error message of software breakpoints.
7728 * remote.c (remote_insert_breakpoint): If this breakpoint has
7729 target-side commands but this stub doesn't support Z0 packets,
7730 throw NOT_SUPPORTED_ERROR error.
7731 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7732 * target.h (target_insert_breakpoint): Extend comment.
7733 (target_insert_hw_breakpoint): Add comment.
7734
b7ea362b
PA
77352014-01-08 Pedro Alves <palves@redhat.com>
7736
7737 * remote.c (remote_add_thread): Add threads silently if starting
7738 up.
7739 (remote_notice_new_inferior): If in all-stop, and starting up,
7740 don't call notice_new_inferior.
7741 (get_current_thread): New function, factored out from ...
7742 (add_current_inferior_and_thread): ... this. Adjust.
7743 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7744 found any thread, then select the remote's current thread as GDB's
7745 current thread too.
7746
b7bba001
JB
77472014-01-08 Joel Brobecker <brobecker@adacore.com>
7748
7749 * NEWS: Create a new section for the next release branch.
7750 Rename the section of the current branch, now that it has
7751 been cut.
7752
16dfbded
JB
77532014-01-08 Joel Brobecker <brobecker@adacore.com>
7754
7755 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7756 * version.in: Bump version to 7.7.50.DATE-cvs.
7757
22c90ac1
YQ
77582014-01-08 Yao Qi <yao@codesourcery.com>
7759
7760 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7761 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7762 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7763
d64ad97c
YQ
77642014-01-08 Yao Qi <yao@codesourcery.com>
7765
7766 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7767 return value of bfd_get_filename to symbol_file_add_from_bfd.
7768
f93ba80c
PM
77692014-01-08 Pierre Muller <muller@sourceware.org>
7770
7771 Fix PR16201.
7772 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7773 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7774 to prim_record_mininal_symbol_and_info.
7775 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7776 in call to prim_record_minimal_symbol_and_info.
7777 (read_pe_exported_syms): Set index field of section_data.
7778
a4d9ba85
AP
77792014-01-07 Andrew Pinski <apinski@cavium.com>
7780
7781 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7782 * features/aarch64.c: Regenerate.
7783
1b67eb02
AS
77842014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7785
7786 * target.c (return_null): Define.
7787 (update_current_target): Use it instead of return_zero for
7788 functions that return a pointer.
7789
5e3f4fab
EBM
77902014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7791
7792 * source.c (add_path): Fix check for duplicated paths in the previously
7793 included paths.
7794
e2616788
HK
77952014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7796
7797 * ada-lang.c: Remove duplicated include statements.
7798 * alphabsd-nat.c: Ditto.
7799 * amd64-darwin-tdep.c: Ditto.
7800 * amd64fbsd-nat.c: Ditto.
7801 * auto-load.c: Ditto.
7802 * ax-gdb.c: Ditto.
7803 * breakpoint.c: Ditto.
7804 * dbxread.c: Ditto.
7805 * fork-child.c: Ditto.
7806 * gdb_usleep.c: Ditto.
7807 * i386-darwin-tdep.c: Ditto.
7808 * i386fbsd-nat.c: Ditto.
7809 * infcmd.c: Ditto.
7810 * inferior.c: Ditto.
7811 * jv-lang.c: Ditto.
7812 * linux-nat.c: Ditto.
7813 * linux-tdep.c: Ditto.
7814 * m68kbsd-nat.c: Ditto.
7815 * m68klinux-nat.c: Ditto.
7816 * microblaze-tdep.c: Ditto.
7817 * mips-linux-tdep.c: Ditto.
7818 * mn10300-tdep.c: Ditto.
7819 * nto-tdep.c: Ditto.
7820 * opencl-lang.c: Ditto.
7821 * osdata.c: Ditto.
7822 * printcmd.c: Ditto.
7823 * regcache.c: Ditto.
7824 * remote-m32r-sdi.c: Ditto.
7825 * remote.c: Ditto.
7826 * symfile.c: Ditto.
7827 * symtab.c: Ditto.
7828 * tilegx-linux-nat.c: Ditto.
7829 * tilegx-tdep.c: Ditto.
7830 * tracepoint.c: Ditto.
7831 * valops.c: Ditto.
7832 * vaxbsd-nat.c: Ditto.
7833 * windows-nat.c: Ditto.
7834 * xtensa-tdep.c: Ditto.
7835
bd1f7788
YQ
78362014-01-07 Yao Qi <yao@codesourcery.com>
7837
7838 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7839
79301218
JB
78402014-01-07 Yao Qi <yao@codesourcery.com>
7841 Joel Brobecker <brobecker@adacore.com>
7842
7843 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7844 (pdc_write_regs): Likewise.
7845 (fetch_regs_kernel_thread): Likewise.
7846 (store_regs_kernel_thread): Likewise.
7847
78482014-01-07 Joel Brobecker <brobecker@adacore.com>
7849
7850 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7851 tagged type objects to their actual type.
7852
8e355c5d
JB
78532014-01-07 Joel Brobecker <brobecker@adacore.com>
7854
7855 * ada-valprint.c (print_field_values): Add "language" parameter.
7856 Update calls to print_field_values and print_variant_part.
7857 Pass new parameter "language" in call to val_print instead
7858 of "current_language". Replace call to ada_val_print by call
7859 to val_print.
7860 (print_variant_part): Add "language" parameter.
7861 (ada_val_print_struct_union): Update call to print_field_values.
7862
4fbf5aa5
JB
78632014-01-07 Joel Brobecker <brobecker@adacore.com>
7864
7865 * ada-valprint.c (ui_memcpy): Delete.
7866 (ada_print_floating): Update documentation. Add empty line
7867 between between function documentation and implementation.
7868 Delete variable "buffer". Use ui_file_xstrdup in place of
7869 ui_file_put. Minor adjustments following this change.
7870
71855601
JB
78712014-01-07 Joel Brobecker <brobecker@adacore.com>
7872
7873 * ada-valprint.c (ada_val_print_string): New function,
7874 extracted from ada_val_print_array.
7875 (ada_val_print_array): Replace extracted code by call
7876 to ada_val_print_string followed by a return. Move
7877 "else" branch to the function's top block.
7878
4eb27a30
JB
78792014-01-07 Joel Brobecker <brobecker@adacore.com>
7880
7881 * ada-valprint.c (ada_val_print_array): Move implementation
7882 down. Rename parameter "offset" and "val" into "offset_aligned"
7883 and "original_value" respectively. Add parameter "offset".
7884
34b27950
JB
78852014-01-07 Joel Brobecker <brobecker@adacore.com>
7886
7887 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7888 re-organizing the code. Change the "???" message printed
7889 when target type is a TYPE_CODE_UNDEF into
7890 "<ref to undefined type>".
7891
079e4591
JB
78922014-01-07 Joel Brobecker <brobecker@adacore.com>
7893
7894 * ada-valprint.c (print_record): Delete, implementation inlined...
7895 (ada_val_print_struct_union): ... here. Remove call to
7896 ada_check_typedef in inlined implementation.
7897
8004dfd1
JB
78982014-01-07 Joel Brobecker <brobecker@adacore.com>
7899
7900 * ada-valprint.c (ada_val_print_gnat_array): New function,
7901 extracted from ada_val_print_1;
7902 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7903 (ada_val_print_flt, ada_val_print_struct_union)
7904 (ada_val_print_ref): Likewise.
7905 (ada_val_print_1): Delete variables i and elttype.
7906 Replace extracted-out code by call to corresponding
7907 new functions.
7908
760a2db0
JB
79092014-01-07 Joel Brobecker <brobecker@adacore.com>
7910
7911 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7912
3a92c861
JB
79132014-01-07 Joel Brobecker <brobecker@adacore.com>
7914
7915 * ada-valprint.c (ada_val_print_1): Replace calls to
7916 ada_val_print_1 by calls to val_print.
7917
cd1630f9
JB
79182014-01-07 Joel Brobecker <brobecker@adacore.com>
7919
7920 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7921 Update calls to self accordingly. Replace calls to c_val_print
7922 by calls to val_print.
7923
bdf779a0
JB
79242014-01-07 Joel Brobecker <brobecker@adacore.com>
7925
7926 * ada-valprint.c (print_record): Delete declaration.
7927 (adjust_type_signedness, ada_val_print_1): Likewise.
7928 (ada_val_print): Move function implementation down.
7929 (print_variant_part, print_field_values, print_record):
7930 Move function implementation up.
7931
c0d48811
JB
79322014-01-07 Joel Brobecker <brobecker@adacore.com>
7933
7934 * python/py-type.c (typy_get_name): New function.
7935 (type_object_getset): Add entry for attribute "name".
7936 * NEWS: Add entry mentioning this new attribute.
7937
c26e9cbb
YQ
79382014-01-07 Yao Qi <yao@codesourcery.com>
7939
7940 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7941 statement.
7942
0cc6f43d
YQ
79432014-01-07 Yao Qi <yao@codesourcery.com>
7944
7945 * gnu-nat.c (info_port_rights): Add qualifier const to
7946 argument args.
7947
eec03155
YQ
79482014-01-07 Yao Qi <yao@codesourcery.com>
7949
7950 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7951
f04a82ef
YQ
79522014-01-07 Yao Qi <yao@codesourcery.com>
7953
7954 * gnu-nat.c (make_inf) Update declaration.
7955 (make_inf): Make it static.
7956 (inf_set_traced): Likewise.
7957 (inf_port_to_thread, inf_task_died_status): Likewise.
7958
d57dda0a
YQ
79592014-01-07 Yao Qi <yao@codesourcery.com>
7960
7961 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7962
3aa8c969
YQ
79632014-01-07 Yao Qi <yao@codesourcery.com>
7964
7965 * gnu-nat.c (_initialize_gnu_nat): Declare.
7966
94123b4f
YQ
79672014-01-07 Yao Qi <yao@codesourcery.com>
7968
7969 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7970 'enum bfd_endian'.
7971 (struct gdbarch_info) <byte_order>: Change type to
7972 'enum bfd_endian'.
7973 <byte_order_for_code>: Likewise.
7974 * gdbarch.c, gdbarch.h: Regenerated.
7975
dc81d70a
TT
79762014-01-06 Sasha Smundak <asmundak@google.com>
7977
7978 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7979
cc2f3c35
TT
79802014-01-06 Tom Tromey <tromey@redhat.com>
7981
7982 * doublest.c (convert_doublest_to_floatformat): Use const, not
7983 CONST.
7984 * somread.c (som_symtab_read): Likewise.
7985
adcf2eed
HZ
79862014-01-07 Hui Zhu <hui@codesourcery.com>
7987
7988 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7989 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7990 (gdb_bfd_fopen): Ditto.
7991 (gdb_bfd_openr): Ditto.
7992 (gdb_bfd_openw): Ditto.
7993 (gdb_bfd_openr_iovec): Ditto.
7994 (gdb_bfd_fdopenr): Ditto.
7995 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7996 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7997 with xstrdup.
7998 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7999 with xstrdup.
8000 * symfile-mem.c (symbol_file_add_from_memory): Removed
8001 gdb_bfd_stash_filename.
8002
50722198
DE
80032014-01-03 Doug Evans <dje@google.com>
8004
8005 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8006 output.
8007
2fa4b862
JB
80082014-01-01 Joel Brobecker <brobecker@adacore.com>
8009
8010 Update year range in copyright notice of all files.
8011
28498c42
JB
80122014-01-01 Joel Brobecker <brobecker@adacore.com>
8013
8014 * top.c (print_gdb_version): Set copyright year to 2014.
8015
7b6e1046
JB
80162014-01-01 Joel Brobecker <brobecker@adacore.com>
8017
8018 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8019
df96af55 8020For older changes see ChangeLog-2013.
c906108c
SS
8021\f
8022Local Variables:
8023mode: change-log
8024left-margin: 8
8025fill-column: 74
8026version-control: never
57da7796 8027coding: utf-8
c906108c 8028End: